diff options
author | John Crispin <john@openwrt.org> | 2012-05-27 16:12:59 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2012-05-27 16:12:59 +0000 |
commit | 800277052019b54e9a5669d086a4e96bf2dcbe75 (patch) | |
tree | 57a5594d93d1a6ff1cc4d897f7bc3551e8af6128 /target/linux/lantiq/patches-3.2/0023-MIPS-lantiq-helper-functions-for-SoC-detection.patch | |
parent | 81ddc886e172dae27ae9f15721d2ee34fc00d890 (diff) | |
download | mtk-20170518-800277052019b54e9a5669d086a4e96bf2dcbe75.zip mtk-20170518-800277052019b54e9a5669d086a4e96bf2dcbe75.tar.gz mtk-20170518-800277052019b54e9a5669d086a4e96bf2dcbe75.tar.bz2 |
3.2 R.I.P.
SVN-Revision: 31911
Diffstat (limited to 'target/linux/lantiq/patches-3.2/0023-MIPS-lantiq-helper-functions-for-SoC-detection.patch')
-rw-r--r-- | target/linux/lantiq/patches-3.2/0023-MIPS-lantiq-helper-functions-for-SoC-detection.patch | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/target/linux/lantiq/patches-3.2/0023-MIPS-lantiq-helper-functions-for-SoC-detection.patch b/target/linux/lantiq/patches-3.2/0023-MIPS-lantiq-helper-functions-for-SoC-detection.patch deleted file mode 100644 index 9439425..0000000 --- a/target/linux/lantiq/patches-3.2/0023-MIPS-lantiq-helper-functions-for-SoC-detection.patch +++ /dev/null @@ -1,52 +0,0 @@ -From ba0e580e5af68726cea08990891fc4abf1cfcde4 Mon Sep 17 00:00:00 2001 -From: John Crispin <blogic@openwrt.org> -Date: Tue, 21 Feb 2012 14:25:03 +0100 -Subject: [PATCH 23/73] MIPS: lantiq: helper functions for SoC detection - -Add additional functions for runtime soc detection. We need these for the -serial driver. - -Signed-off-by: John Crispin <blogic@openwrt.org> ---- - .../include/asm/mach-lantiq/falcon/lantiq_soc.h | 16 ++++++++++++++-- - .../mips/include/asm/mach-lantiq/xway/lantiq_soc.h | 5 +++++ - 2 files changed, 19 insertions(+), 2 deletions(-) - ---- a/arch/mips/include/asm/mach-lantiq/falcon/lantiq_soc.h -+++ b/arch/mips/include/asm/mach-lantiq/falcon/lantiq_soc.h -@@ -134,8 +134,20 @@ extern int ltq_gpio_mux_set(unsigned int - #define LTQ_EIU_BASE_ADDR 0 - #define LTQ_EBU_PCC_ISTAT 0 - --#define ltq_is_ar9() 0 --#define ltq_is_vr9() 0 -+static inline int ltq_is_ar9(void) -+{ -+ return 0; -+} -+ -+static inline int ltq_is_vr9(void) -+{ -+ return 0; -+} -+ -+static inline int ltq_is_falcon(void) -+{ -+ return 1; -+} - - #endif /* CONFIG_SOC_FALCON */ - #endif /* _LTQ_XWAY_H__ */ ---- a/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h -+++ b/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h -@@ -164,5 +164,10 @@ static inline int ltq_is_vr9(void) - return (ltq_get_soc_type() == SOC_TYPE_VR9); - } - -+static inline int ltq_is_falcon(void) -+{ -+ return 0; -+} -+ - #endif /* CONFIG_SOC_TYPE_XWAY */ - #endif /* _LTQ_XWAY_H__ */ |