summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-08-18 13:08:59 +0000
committerJohn Crispin <john@openwrt.org>2014-08-18 13:08:59 +0000
commitdb2e450ab50729f5960ed2898fd07f321ec10ef3 (patch)
treed6837fab9e431703f9930a113dce5da0a4ee3a50 /target
parent5f71dbb0054f245f9cadb6dfe99270ab8373bc54 (diff)
downloadmtk-20170518-db2e450ab50729f5960ed2898fd07f321ec10ef3.zip
mtk-20170518-db2e450ab50729f5960ed2898fd07f321ec10ef3.tar.gz
mtk-20170518-db2e450ab50729f5960ed2898fd07f321ec10ef3.tar.bz2
lantiq: export soc type
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 42181
Diffstat (limited to 'target')
-rw-r--r--target/linux/lantiq/patches-3.10/0209-lantiq-export-soc-type.patch25
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 0000000..cb0a559
--- /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)
+ {
+ }