From: John Crispin Date: Wed, 10 Sep 2014 20:29:21 +0000 (+0200) Subject: MIPS: lantiq: export soc type X-Git-Tag: v3.19-rc1~115^2~81 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e8b8ca8cb34486fc27984c402ee89a183ef1b1b7;p=karo-tx-linux.git MIPS: lantiq: export soc type The voice and dsl drivers need to know which SoC we are running on. Signed-off-by: Álvaro Fernández Rojas Patchwork: http://patchwork.linux-mips.org/patch/8046/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/mach-lantiq/lantiq.h b/arch/mips/include/asm/mach-lantiq/lantiq.h index f196cceb7322..4e5ae6523cb4 100644 --- a/arch/mips/include/asm/mach-lantiq/lantiq.h +++ b/arch/mips/include/asm/mach-lantiq/lantiq.h @@ -48,6 +48,8 @@ extern struct clk *clk_get_ppe(void); extern unsigned char ltq_boot_select(void); /* find out what caused the last cpu reset */ extern int ltq_reset_cause(void); +/* find out the soc type */ +extern int ltq_soc_type(void); #define IOPORT_RESOURCE_START 0x10000000 #define IOPORT_RESOURCE_END 0xffffffff diff --git a/arch/mips/lantiq/prom.c b/arch/mips/lantiq/prom.c index 758970e3815b..968da50b5111 100644 --- a/arch/mips/lantiq/prom.c +++ b/arch/mips/lantiq/prom.c @@ -36,6 +36,11 @@ const char *get_system_type(void) return soc_info.sys_type; } +int ltq_soc_type(void) +{ + return soc_info.type; +} + void prom_free_prom_memory(void) { }