Author: blogic
Date: 2014-09-01 15:21:21 +0200 (Mon, 01 Sep 2014)
New Revision: 42360

Added:
   
branches/barrier_breaker/target/linux/lantiq/patches-3.10/0209-lantiq-export-soc-type.patch
Log:
lantiq: export soc type

Signed-off-by: ?\195?\129lvaro Fern?\195?\161ndez Rojas <[email protected]>

Backport of r42181

Added: 
branches/barrier_breaker/target/linux/lantiq/patches-3.10/0209-lantiq-export-soc-type.patch
===================================================================
--- 
branches/barrier_breaker/target/linux/lantiq/patches-3.10/0209-lantiq-export-soc-type.patch
                         (rev 0)
+++ 
branches/barrier_breaker/target/linux/lantiq/patches-3.10/0209-lantiq-export-soc-type.patch
 2014-09-01 13:21:21 UTC (rev 42360)
@@ -0,0 +1,25 @@
+--- 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
+--- a/arch/mips/lantiq/prom.c
++++ b/arch/mips/lantiq/prom.c
+@@ -35,6 +35,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)
+ {
+ }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to