blob: 5cd29c6b33d7ece1107402976c72b899b9b32d40 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
John Crispin171bb2f2011-03-30 09:27:47 +02002/*
John Crispin171bb2f2011-03-30 09:27:47 +02003 *
John Crispin97b92102016-05-05 09:57:56 +02004 * Copyright (C) 2010 John Crispin <john@phrozen.org>
John Crispin171bb2f2011-03-30 09:27:47 +02005 */
6
7#ifndef _LTQ_PROM_H__
8#define _LTQ_PROM_H__
9
10#define LTQ_SYS_TYPE_LEN 0x100
Ralf Baechle70342282013-01-22 12:59:30 +010011#define LTQ_SYS_REV_LEN 0x10
John Crispin171bb2f2011-03-30 09:27:47 +020012
13struct ltq_soc_info {
14 unsigned char *name;
15 unsigned int rev;
John Crispin215ed202012-04-30 11:33:08 +020016 unsigned char rev_type[LTQ_SYS_REV_LEN];
17 unsigned int srev;
John Crispin171bb2f2011-03-30 09:27:47 +020018 unsigned int partnum;
19 unsigned int type;
20 unsigned char sys_type[LTQ_SYS_TYPE_LEN];
John Crispin215ed202012-04-30 11:33:08 +020021 unsigned char *compatible;
John Crispin171bb2f2011-03-30 09:27:47 +020022};
23
24extern void ltq_soc_detect(struct ltq_soc_info *i);
John Crispin215ed202012-04-30 11:33:08 +020025extern void ltq_soc_init(void);
John Crispin171bb2f2011-03-30 09:27:47 +020026
John Crispin171bb2f2011-03-30 09:27:47 +020027#endif