mxs: remove linux 3.14 support
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 010-MIPS-BCM63XX-remove-RUNTIME_DETECT-code-from-registe.patch
1 From 082a49f0490008b999db80e3ccf1521c7dd21cec Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Mon, 2 Dec 2013 12:32:44 +0100
4 Subject: [PATCH 1/8] MIPS: BCM63XX: remove !RUNTIME_DETECT code from register
5 sets
6
7 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
8 ---
9 arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h | 33 ------------------------
10 1 file changed, 33 deletions(-)
11
12 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
13 +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
14 @@ -598,10 +598,6 @@ enum bcm63xx_regs_set {
15
16 extern const unsigned long *bcm63xx_regs_base;
17
18 -#define __GEN_RSET_BASE(__cpu, __rset) \
19 - case RSET_## __rset : \
20 - return BCM_## __cpu ##_## __rset ##_BASE;
21 -
22 #define __GEN_RSET(__cpu) \
23 switch (set) { \
24 __GEN_RSET_BASE(__cpu, DSL_LMEM) \
25 @@ -693,36 +689,7 @@ extern const unsigned long *bcm63xx_regs
26
27 static inline unsigned long bcm63xx_regset_address(enum bcm63xx_regs_set set)
28 {
29 -#ifdef BCMCPU_RUNTIME_DETECT
30 return bcm63xx_regs_base[set];
31 -#else
32 -#ifdef CONFIG_BCM63XX_CPU_3368
33 - __GEN_RSET(3368)
34 -#endif
35 -#ifdef CONFIG_BCM63XX_CPU_6328
36 - __GEN_RSET(6328)
37 -#endif
38 -#ifdef CONFIG_BCM63XX_CPU_6338
39 - __GEN_RSET(6338)
40 -#endif
41 -#ifdef CONFIG_BCM63XX_CPU_6345
42 - __GEN_RSET(6345)
43 -#endif
44 -#ifdef CONFIG_BCM63XX_CPU_6348
45 - __GEN_RSET(6348)
46 -#endif
47 -#ifdef CONFIG_BCM63XX_CPU_6358
48 - __GEN_RSET(6358)
49 -#endif
50 -#ifdef CONFIG_BCM63XX_CPU_6362
51 - __GEN_RSET(6362)
52 -#endif
53 -#ifdef CONFIG_BCM63XX_CPU_6368
54 - __GEN_RSET(6368)
55 -#endif
56 -#endif
57 - /* unreached */
58 - return 0;
59 }
60
61 /*