diff options
author | John Crispin <blogic@openwrt.org> | 2014-09-01 13:21:21 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-09-01 13:21:21 +0000 |
commit | eb5be6dea22220e5deb2d4722ecaab3de31d3ba7 (patch) | |
tree | bba139b74e54ac1cd7ba2d9455090ca0ccd8aea5 /target/linux | |
parent | 3e62942b7c1520534271fc46e5e9095a8e2c4d8b (diff) | |
download | upstream-eb5be6dea22220e5deb2d4722ecaab3de31d3ba7.tar.gz upstream-eb5be6dea22220e5deb2d4722ecaab3de31d3ba7.tar.bz2 upstream-eb5be6dea22220e5deb2d4722ecaab3de31d3ba7.zip |
lantiq: export soc type
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Backport of r42181
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42360 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/lantiq/patches-3.10/0209-lantiq-export-soc-type.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-3.10/0209-lantiq-export-soc-type.patch b/target/linux/lantiq/patches-3.10/0209-lantiq-export-soc-type.patch new file mode 100644 index 0000000000..cb0a559cf7 --- /dev/null +++ b/target/linux/lantiq/patches-3.10/0209-lantiq-export-soc-type.patch @@ -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) + { + } |