mpc85xx: remove linux 3.10 support
[openwrt/staging/chunkeey.git] / target / linux / lantiq / patches-3.10 / 0209-lantiq-export-soc-type.patch
1 --- a/arch/mips/include/asm/mach-lantiq/lantiq.h
2 +++ b/arch/mips/include/asm/mach-lantiq/lantiq.h
3 @@ -48,6 +48,8 @@ extern struct clk *clk_get_ppe(void);
4 extern unsigned char ltq_boot_select(void);
5 /* find out what caused the last cpu reset */
6 extern int ltq_reset_cause(void);
7 +/* find out the soc type */
8 +extern int ltq_soc_type(void);
9
10 #define IOPORT_RESOURCE_START 0x10000000
11 #define IOPORT_RESOURCE_END 0xffffffff
12 --- a/arch/mips/lantiq/prom.c
13 +++ b/arch/mips/lantiq/prom.c
14 @@ -35,6 +35,11 @@ const char *get_system_type(void)
15 return soc_info.sys_type;
16 }
17
18 +int ltq_soc_type(void)
19 +{
20 + return soc_info.type;
21 +}
22 +
23 void prom_free_prom_memory(void)
24 {
25 }