Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
John Crispin | 171bb2f | 2011-03-30 09:27:47 +0200 | [diff] [blame] | 2 | /* |
John Crispin | 171bb2f | 2011-03-30 09:27:47 +0200 | [diff] [blame] | 3 | * |
John Crispin | 97b9210 | 2016-05-05 09:57:56 +0200 | [diff] [blame] | 4 | * Copyright (C) 2010 John Crispin <john@phrozen.org> |
John Crispin | 171bb2f | 2011-03-30 09:27:47 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _LTQ_PROM_H__ |
| 8 | #define _LTQ_PROM_H__ |
| 9 | |
| 10 | #define LTQ_SYS_TYPE_LEN 0x100 |
Ralf Baechle | 7034228 | 2013-01-22 12:59:30 +0100 | [diff] [blame] | 11 | #define LTQ_SYS_REV_LEN 0x10 |
John Crispin | 171bb2f | 2011-03-30 09:27:47 +0200 | [diff] [blame] | 12 | |
| 13 | struct ltq_soc_info { |
| 14 | unsigned char *name; |
| 15 | unsigned int rev; |
John Crispin | 215ed20 | 2012-04-30 11:33:08 +0200 | [diff] [blame] | 16 | unsigned char rev_type[LTQ_SYS_REV_LEN]; |
| 17 | unsigned int srev; |
John Crispin | 171bb2f | 2011-03-30 09:27:47 +0200 | [diff] [blame] | 18 | unsigned int partnum; |
| 19 | unsigned int type; |
| 20 | unsigned char sys_type[LTQ_SYS_TYPE_LEN]; |
John Crispin | 215ed20 | 2012-04-30 11:33:08 +0200 | [diff] [blame] | 21 | unsigned char *compatible; |
John Crispin | 171bb2f | 2011-03-30 09:27:47 +0200 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | extern void ltq_soc_detect(struct ltq_soc_info *i); |
John Crispin | 215ed20 | 2012-04-30 11:33:08 +0200 | [diff] [blame] | 25 | extern void ltq_soc_init(void); |
John Crispin | 171bb2f | 2011-03-30 09:27:47 +0200 | [diff] [blame] | 26 | |
John Crispin | 171bb2f | 2011-03-30 09:27:47 +0200 | [diff] [blame] | 27 | #endif |