MIPS: lantiq: export soc type
authorJohn Crispin <blogic@openwrt.org>
Wed, 10 Sep 2014 20:29:21 +0000 (22:29 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:45:18 +0000 (07:45 +0100)
The voice and dsl drivers need to know which SoC we are running on.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/8046/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-lantiq/lantiq.h
arch/mips/lantiq/prom.c

index f196cceb73229ab5ea39448b3e020c5529f26e4a..4e5ae6523cb421158e6ddcc0db24e2b3afd8ee73 100644 (file)
@@ -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
index 758970e3815b7296073444641a5b8a036dd49281..968da50b51116aa28f9a55e65627efedc832dc6d 100644 (file)
@@ -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)
 {
 }