aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v32
diff options
context:
space:
mode:
authorJesper Nilsson <jespern@axis.com>2015-10-02 05:22:55 -0400
committerJesper Nilsson <jespern@axis.com>2015-11-02 14:03:05 -0500
commite301a08be4e4ad349b6195562197950d74c86e8a (patch)
treeb6534fa894b76510a5a8335fab9d311c55ef93d5 /arch/cris/arch-v32
parent9f4137fa2cf20bd1ffb1fcb2711c3c347cc86fea (diff)
CRIS: Drop code related to obsolete or unused kconfigs
Drop all code related to Kconfigs that don't exist. Fix one Kconfig where it was actually typo:ed (ETRAX_KGB_PORT2) Drop content related to CRIS v32 SoCs from etraxgpio.h headerfile, all use of GPIO for both ETRAX FS and ARTPEC-3 should now be through standard gpiolib instead. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/arch-v32')
-rw-r--r--arch/cris/arch-v32/kernel/debugport.c2
-rw-r--r--arch/cris/arch-v32/kernel/head.S4
-rw-r--r--arch/cris/arch-v32/kernel/irq.c2
-rw-r--r--arch/cris/arch-v32/kernel/setup.c8
-rw-r--r--arch/cris/arch-v32/mach-fs/Kconfig19
5 files changed, 1 insertions, 34 deletions
diff --git a/arch/cris/arch-v32/kernel/debugport.c b/arch/cris/arch-v32/kernel/debugport.c
index 02e33ebe51ec..d2f3f9c37102 100644
--- a/arch/cris/arch-v32/kernel/debugport.c
+++ b/arch/cris/arch-v32/kernel/debugport.c
@@ -77,8 +77,6 @@ static struct dbg_port *port =
77 &ports[2]; 77 &ports[2];
78#elif defined(CONFIG_ETRAX_DEBUG_PORT3) 78#elif defined(CONFIG_ETRAX_DEBUG_PORT3)
79 &ports[3]; 79 &ports[3];
80#elif defined(CONFIG_ETRAX_DEBUG_PORT4)
81 &ports[4];
82#else 80#else
83 NULL; 81 NULL;
84#endif 82#endif
diff --git a/arch/cris/arch-v32/kernel/head.S b/arch/cris/arch-v32/kernel/head.S
index 74a66e0e3777..ea6366800df7 100644
--- a/arch/cris/arch-v32/kernel/head.S
+++ b/arch/cris/arch-v32/kernel/head.S
@@ -292,11 +292,7 @@ _no_romfs_in_flash:
292 ;; For cramfs, partition starts with magic and length. 292 ;; For cramfs, partition starts with magic and length.
293 ;; For jffs2, a jhead is prepended which contains with magic and length. 293 ;; For jffs2, a jhead is prepended which contains with magic and length.
294 ;; The jhead is not part of the jffs2 partition however. 294 ;; The jhead is not part of the jffs2 partition however.
295#ifndef CONFIG_ETRAXFS_SIM
296 move.d __bss_start, $r0 295 move.d __bss_start, $r0
297#else
298 move.d __end, $r0
299#endif
300 move.d [$r0], $r1 296 move.d [$r0], $r1
301 cmp.d CRAMFS_MAGIC, $r1 ; cramfs magic? 297 cmp.d CRAMFS_MAGIC, $r1 ; cramfs magic?
302 beq 2f ; yes, jump 298 beq 2f ; yes, jump
diff --git a/arch/cris/arch-v32/kernel/irq.c b/arch/cris/arch-v32/kernel/irq.c
index b566a038d2a1..6de8db67cb09 100644
--- a/arch/cris/arch-v32/kernel/irq.c
+++ b/arch/cris/arch-v32/kernel/irq.c
@@ -37,7 +37,7 @@
37#define IGNOREMASK (1 << (SER0_INTR_VECT - FIRST_IRQ)) 37#define IGNOREMASK (1 << (SER0_INTR_VECT - FIRST_IRQ))
38#elif defined(CONFIG_ETRAX_KGDB_PORT1) 38#elif defined(CONFIG_ETRAX_KGDB_PORT1)
39#define IGNOREMASK (1 << (SER1_INTR_VECT - FIRST_IRQ)) 39#define IGNOREMASK (1 << (SER1_INTR_VECT - FIRST_IRQ))
40#elif defined(CONFIG_ETRAX_KGB_PORT2) 40#elif defined(CONFIG_ETRAX_KGDB_PORT2)
41#define IGNOREMASK (1 << (SER2_INTR_VECT - FIRST_IRQ)) 41#define IGNOREMASK (1 << (SER2_INTR_VECT - FIRST_IRQ))
42#elif defined(CONFIG_ETRAX_KGDB_PORT3) 42#elif defined(CONFIG_ETRAX_KGDB_PORT3)
43#define IGNOREMASK (1 << (SER3_INTR_VECT - FIRST_IRQ)) 43#define IGNOREMASK (1 << (SER3_INTR_VECT - FIRST_IRQ))
diff --git a/arch/cris/arch-v32/kernel/setup.c b/arch/cris/arch-v32/kernel/setup.c
index cd1865d68b2e..fe50287aa928 100644
--- a/arch/cris/arch-v32/kernel/setup.c
+++ b/arch/cris/arch-v32/kernel/setup.c
@@ -129,10 +129,6 @@ static struct i2c_board_info __initdata i2c_info[] = {
129#ifdef CONFIG_RTC_DRV_PCF8563 129#ifdef CONFIG_RTC_DRV_PCF8563
130 {I2C_BOARD_INFO("pcf8563", 0x51)}, 130 {I2C_BOARD_INFO("pcf8563", 0x51)},
131#endif 131#endif
132#ifdef CONFIG_ETRAX_VIRTUAL_GPIO
133 {I2C_BOARD_INFO("vgpio", 0x20)},
134 {I2C_BOARD_INFO("vgpio", 0x21)},
135#endif
136 {I2C_BOARD_INFO("pca9536", 0x41)}, 132 {I2C_BOARD_INFO("pca9536", 0x41)},
137 {I2C_BOARD_INFO("fnp300", 0x40)}, 133 {I2C_BOARD_INFO("fnp300", 0x40)},
138 {I2C_BOARD_INFO("fnp300", 0x42)}, 134 {I2C_BOARD_INFO("fnp300", 0x42)},
@@ -146,10 +142,6 @@ static struct i2c_board_info __initdata i2c_info2[] = {
146 {I2C_BOARD_INFO("tmp100", 0x4C)}, 142 {I2C_BOARD_INFO("tmp100", 0x4C)},
147 {I2C_BOARD_INFO("tmp100", 0x4D)}, 143 {I2C_BOARD_INFO("tmp100", 0x4D)},
148 {I2C_BOARD_INFO("tmp100", 0x4E)}, 144 {I2C_BOARD_INFO("tmp100", 0x4E)},
149#ifdef CONFIG_ETRAX_VIRTUAL_GPIO
150 {I2C_BOARD_INFO("vgpio", 0x20)},
151 {I2C_BOARD_INFO("vgpio", 0x21)},
152#endif
153 {I2C_BOARD_INFO("pca9536", 0x41)}, 145 {I2C_BOARD_INFO("pca9536", 0x41)},
154 {I2C_BOARD_INFO("fnp300", 0x40)}, 146 {I2C_BOARD_INFO("fnp300", 0x40)},
155 {I2C_BOARD_INFO("fnp300", 0x42)}, 147 {I2C_BOARD_INFO("fnp300", 0x42)},
diff --git a/arch/cris/arch-v32/mach-fs/Kconfig b/arch/cris/arch-v32/mach-fs/Kconfig
index 774de82abef6..7d1ab972bc0f 100644
--- a/arch/cris/arch-v32/mach-fs/Kconfig
+++ b/arch/cris/arch-v32/mach-fs/Kconfig
@@ -192,25 +192,6 @@ config ETRAX_DEF_GIO_PE_OUT
192 Configures the initial data for the general port E bits. Most 192 Configures the initial data for the general port E bits. Most
193 products should use 00000 here. 193 products should use 00000 here.
194 194
195config ETRAX_DEF_GIO_PV_OE
196 hex "GIO_PV_OE"
197 depends on ETRAX_VIRTUAL_GPIO
198 default "0000"
199 help
200 Configures the direction of virtual general port V bits. 1 is out,
201 0 is in. This is often totally different depending on the product
202 used. These bits are used for all kinds of stuff. If you don't know
203 what to use, it is always safe to put all as inputs, although
204 floating inputs isn't good.
205
206config ETRAX_DEF_GIO_PV_OUT
207 hex "GIO_PV_OUT"
208 depends on ETRAX_VIRTUAL_GPIO
209 default "0000"
210 help
211 Configures the initial data for the virtual general port V bits.
212 Most products should use 0000 here.
213
214endmenu 195endmenu
215 196
216endif 197endif