aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2006-09-18 18:02:25 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-09-25 05:25:34 -0400
commit98954df6917cb8f7e65f4f0f79ed641112fcf6b6 (patch)
tree64c6d17b7f05b8b1d7322f9d05201e374d779c6b
parentcdf3f8e0387e81477dee72ecb2e3be28feac05c8 (diff)
[ARM] 3816/1: iop3xx: rename config symbols
Rename CONFIG_ARCH_IOP321 to CONFIG_ARCH_IOP32X and CONFIG_ARCH_IOP331 to CONFIG_ARCH_IOP33X. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/boot/compressed/head.S2
-rw-r--r--arch/arm/configs/ep80219_defconfig4
-rw-r--r--arch/arm/configs/iq31244_defconfig4
-rw-r--r--arch/arm/configs/iq80321_defconfig4
-rw-r--r--arch/arm/configs/iq80331_defconfig2
-rw-r--r--arch/arm/configs/iq80332_defconfig2
-rw-r--r--arch/arm/mach-iop3xx/Kconfig16
-rw-r--r--arch/arm/mach-iop3xx/Makefile4
-rw-r--r--arch/arm/mach-iop3xx/Makefile.boot2
-rw-r--r--arch/arm/mach-iop3xx/iop331-setup.c2
-rw-r--r--arch/arm/oprofile/op_model_xscale.c4
-rw-r--r--drivers/i2c/busses/i2c-iop3xx.c4
-rw-r--r--include/asm-arm/arch-iop3xx/debug-macro.S2
-rw-r--r--include/asm-arm/arch-iop3xx/entry-macro.S4
-rw-r--r--include/asm-arm/arch-iop3xx/iop321.h2
-rw-r--r--include/asm-arm/arch-iop3xx/iop331.h4
-rw-r--r--include/asm-arm/arch-iop3xx/irqs.h4
-rw-r--r--include/asm-arm/arch-iop3xx/memory.h6
-rw-r--r--include/asm-arm/arch-iop3xx/system.h4
-rw-r--r--include/asm-arm/arch-iop3xx/uncompress.h4
20 files changed, 40 insertions, 40 deletions
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S
index 14a9ff9c68df..d7ecc7ece82d 100644
--- a/arch/arm/boot/compressed/head.S
+++ b/arch/arm/boot/compressed/head.S
@@ -42,7 +42,7 @@
42 add \rb, \rb, #0x00010000 @ Ser1 42 add \rb, \rb, #0x00010000 @ Ser1
43#endif 43#endif
44 .endm 44 .endm
45#elif defined(CONFIG_ARCH_IOP331) 45#elif defined(CONFIG_ARCH_IOP33X)
46 .macro loadsp, rb 46 .macro loadsp, rb
47 mov \rb, #0xff000000 47 mov \rb, #0xff000000
48 orr \rb, \rb, #0x00ff0000 48 orr \rb, \rb, #0x00ff0000
diff --git a/arch/arm/configs/ep80219_defconfig b/arch/arm/configs/ep80219_defconfig
index 3c73b707c2f3..199f1567345d 100644
--- a/arch/arm/configs/ep80219_defconfig
+++ b/arch/arm/configs/ep80219_defconfig
@@ -93,8 +93,8 @@ CONFIG_ARCH_IQ31244=y
93# CONFIG_ARCH_IQ80331 is not set 93# CONFIG_ARCH_IQ80331 is not set
94# CONFIG_MACH_IQ80332 is not set 94# CONFIG_MACH_IQ80332 is not set
95CONFIG_ARCH_EP80219=y 95CONFIG_ARCH_EP80219=y
96CONFIG_ARCH_IOP321=y 96CONFIG_ARCH_IOP32X=y
97# CONFIG_ARCH_IOP331 is not set 97# CONFIG_ARCH_IOP33X is not set
98 98
99# 99#
100# IOP3xx Chipset Features 100# IOP3xx Chipset Features
diff --git a/arch/arm/configs/iq31244_defconfig b/arch/arm/configs/iq31244_defconfig
index 32467160a6df..27f884417b90 100644
--- a/arch/arm/configs/iq31244_defconfig
+++ b/arch/arm/configs/iq31244_defconfig
@@ -94,8 +94,8 @@ CONFIG_ARCH_IQ31244=y
94# CONFIG_ARCH_IQ80331 is not set 94# CONFIG_ARCH_IQ80331 is not set
95# CONFIG_MACH_IQ80332 is not set 95# CONFIG_MACH_IQ80332 is not set
96# CONFIG_ARCH_EP80219 is not set 96# CONFIG_ARCH_EP80219 is not set
97CONFIG_ARCH_IOP321=y 97CONFIG_ARCH_IOP32X=y
98# CONFIG_ARCH_IOP331 is not set 98# CONFIG_ARCH_IOP33X is not set
99 99
100# 100#
101# IOP3xx Chipset Features 101# IOP3xx Chipset Features
diff --git a/arch/arm/configs/iq80321_defconfig b/arch/arm/configs/iq80321_defconfig
index b000da753c41..33f21a24cf4e 100644
--- a/arch/arm/configs/iq80321_defconfig
+++ b/arch/arm/configs/iq80321_defconfig
@@ -93,8 +93,8 @@ CONFIG_ARCH_IQ80321=y
93# CONFIG_ARCH_IQ80331 is not set 93# CONFIG_ARCH_IQ80331 is not set
94# CONFIG_MACH_IQ80332 is not set 94# CONFIG_MACH_IQ80332 is not set
95# CONFIG_ARCH_EP80219 is not set 95# CONFIG_ARCH_EP80219 is not set
96CONFIG_ARCH_IOP321=y 96CONFIG_ARCH_IOP32X=y
97# CONFIG_ARCH_IOP331 is not set 97# CONFIG_ARCH_IOP33X is not set
98 98
99# 99#
100# IOP3xx Chipset Features 100# IOP3xx Chipset Features
diff --git a/arch/arm/configs/iq80331_defconfig b/arch/arm/configs/iq80331_defconfig
index 46c79e1efe07..67a8bd7dba29 100644
--- a/arch/arm/configs/iq80331_defconfig
+++ b/arch/arm/configs/iq80331_defconfig
@@ -93,7 +93,7 @@ CONFIG_ARCH_IOP3XX=y
93CONFIG_ARCH_IQ80331=y 93CONFIG_ARCH_IQ80331=y
94# CONFIG_MACH_IQ80332 is not set 94# CONFIG_MACH_IQ80332 is not set
95# CONFIG_ARCH_EP80219 is not set 95# CONFIG_ARCH_EP80219 is not set
96CONFIG_ARCH_IOP331=y 96CONFIG_ARCH_IOP33X=y
97 97
98# 98#
99# IOP3xx Chipset Features 99# IOP3xx Chipset Features
diff --git a/arch/arm/configs/iq80332_defconfig b/arch/arm/configs/iq80332_defconfig
index 11959b705d82..c8dea45cb017 100644
--- a/arch/arm/configs/iq80332_defconfig
+++ b/arch/arm/configs/iq80332_defconfig
@@ -93,7 +93,7 @@ CONFIG_ARCH_IOP3XX=y
93# CONFIG_ARCH_IQ80331 is not set 93# CONFIG_ARCH_IQ80331 is not set
94CONFIG_MACH_IQ80332=y 94CONFIG_MACH_IQ80332=y
95# CONFIG_ARCH_EP80219 is not set 95# CONFIG_ARCH_EP80219 is not set
96CONFIG_ARCH_IOP331=y 96CONFIG_ARCH_IOP33X=y
97 97
98# 98#
99# IOP3xx Chipset Features 99# IOP3xx Chipset Features
diff --git a/arch/arm/mach-iop3xx/Kconfig b/arch/arm/mach-iop3xx/Kconfig
index 4422f2388607..887c3753727f 100644
--- a/arch/arm/mach-iop3xx/Kconfig
+++ b/arch/arm/mach-iop3xx/Kconfig
@@ -6,48 +6,48 @@ comment "IOP3xx Platform Types"
6 6
7config ARCH_IQ80321 7config ARCH_IQ80321
8 bool "Enable support for IQ80321" 8 bool "Enable support for IQ80321"
9 select ARCH_IOP321 9 select ARCH_IOP32X
10 help 10 help
11 Say Y here if you want to run your kernel on the Intel IQ80321 11 Say Y here if you want to run your kernel on the Intel IQ80321
12 evaluation kit for the IOP321 chipset. 12 evaluation kit for the IOP321 chipset.
13 13
14config ARCH_IQ31244 14config ARCH_IQ31244
15 bool "Enable support for IQ31244" 15 bool "Enable support for IQ31244"
16 select ARCH_IOP321 16 select ARCH_IOP32X
17 help 17 help
18 Say Y here if you want to run your kernel on the Intel IQ31244 18 Say Y here if you want to run your kernel on the Intel IQ31244
19 evaluation kit for the IOP321 chipset. 19 evaluation kit for the IOP321 chipset.
20 20
21config ARCH_IQ80331 21config ARCH_IQ80331
22 bool "Enable support for IQ80331" 22 bool "Enable support for IQ80331"
23 select ARCH_IOP331 23 select ARCH_IOP33X
24 help 24 help
25 Say Y here if you want to run your kernel on the Intel IQ80331 25 Say Y here if you want to run your kernel on the Intel IQ80331
26 evaluation kit for the IOP331 chipset. 26 evaluation kit for the IOP331 chipset.
27 27
28config MACH_IQ80332 28config MACH_IQ80332
29 bool "Enable support for IQ80332" 29 bool "Enable support for IQ80332"
30 select ARCH_IOP331 30 select ARCH_IOP33X
31 help 31 help
32 Say Y here if you want to run your kernel on the Intel IQ80332 32 Say Y here if you want to run your kernel on the Intel IQ80332
33 evaluation kit for the IOP332 chipset. 33 evaluation kit for the IOP332 chipset.
34 34
35config ARCH_EP80219 35config ARCH_EP80219
36 bool "Enable support for EP80219" 36 bool "Enable support for EP80219"
37 select ARCH_IOP321 37 select ARCH_IOP32X
38 select ARCH_IQ31244 38 select ARCH_IQ31244
39 help 39 help
40 Say Y here if you want to run your kernel on the Intel EP80219 40 Say Y here if you want to run your kernel on the Intel EP80219
41 evaluation kit for the Intel 80219 chipset (a IOP321 variant). 41 evaluation kit for the Intel 80219 chipset (a IOP321 variant).
42 42
43# Which IOP variant are we running? 43# Which IOP variant are we running?
44config ARCH_IOP321 44config ARCH_IOP32X
45 bool 45 bool
46 help 46 help
47 The IQ80321 uses the IOP321 variant. 47 The IQ80321 uses the IOP321 variant.
48 The IQ31244 and EP80219 uses the IOP321 variant. 48 The IQ31244 and EP80219 uses the IOP321 variant.
49 49
50config ARCH_IOP331 50config ARCH_IOP33X
51 bool 51 bool
52 default ARCH_IQ80331 52 default ARCH_IQ80331
53 help 53 help
@@ -57,7 +57,7 @@ comment "IOP3xx Chipset Features"
57 57
58config IOP331_STEPD 58config IOP331_STEPD
59 bool "Chip stepping D of the IOP80331 processor or IOP80333" 59 bool "Chip stepping D of the IOP80331 processor or IOP80333"
60 depends on (ARCH_IOP331) 60 depends on ARCH_IOP33X
61 help 61 help
62 Say Y here if you have StepD of the IOP80331 or IOP8033 62 Say Y here if you have StepD of the IOP80331 or IOP8033
63 based platforms. 63 based platforms.
diff --git a/arch/arm/mach-iop3xx/Makefile b/arch/arm/mach-iop3xx/Makefile
index b17eb1f46102..ad3051524480 100644
--- a/arch/arm/mach-iop3xx/Makefile
+++ b/arch/arm/mach-iop3xx/Makefile
@@ -10,9 +10,9 @@ obj-m :=
10obj-n := 10obj-n :=
11obj- := 11obj- :=
12 12
13obj-$(CONFIG_ARCH_IOP321) += iop321-setup.o iop321-irq.o iop321-pci.o iop321-time.o 13obj-$(CONFIG_ARCH_IOP32X) += iop321-setup.o iop321-irq.o iop321-pci.o iop321-time.o
14 14
15obj-$(CONFIG_ARCH_IOP331) += iop331-setup.o iop331-irq.o iop331-pci.o iop331-time.o 15obj-$(CONFIG_ARCH_IOP33X) += iop331-setup.o iop331-irq.o iop331-pci.o iop331-time.o
16 16
17obj-$(CONFIG_ARCH_IQ80321) += iq80321-mm.o iq80321-pci.o 17obj-$(CONFIG_ARCH_IQ80321) += iq80321-mm.o iq80321-pci.o
18 18
diff --git a/arch/arm/mach-iop3xx/Makefile.boot b/arch/arm/mach-iop3xx/Makefile.boot
index 6387aa20461b..e120c233b706 100644
--- a/arch/arm/mach-iop3xx/Makefile.boot
+++ b/arch/arm/mach-iop3xx/Makefile.boot
@@ -1,7 +1,7 @@
1 zreladdr-y := 0xa0008000 1 zreladdr-y := 0xa0008000
2params_phys-y := 0xa0000100 2params_phys-y := 0xa0000100
3initrd_phys-y := 0xa0800000 3initrd_phys-y := 0xa0800000
4ifeq ($(CONFIG_ARCH_IOP331),y) 4ifeq ($(CONFIG_ARCH_IOP33X),y)
5 zreladdr-y := 0x00008000 5 zreladdr-y := 0x00008000
6params_phys-y := 0x00000100 6params_phys-y := 0x00000100
7initrd_phys-y := 0x00800000 7initrd_phys-y := 0x00800000
diff --git a/arch/arm/mach-iop3xx/iop331-setup.c b/arch/arm/mach-iop3xx/iop331-setup.c
index 3cc98d892ad4..b2f24931d143 100644
--- a/arch/arm/mach-iop3xx/iop331-setup.c
+++ b/arch/arm/mach-iop3xx/iop331-setup.c
@@ -177,7 +177,7 @@ void __init iop331_map_io(void)
177 iotable_init(iop331_std_desc, ARRAY_SIZE(iop331_std_desc)); 177 iotable_init(iop331_std_desc, ARRAY_SIZE(iop331_std_desc));
178} 178}
179 179
180#ifdef CONFIG_ARCH_IOP331 180#ifdef CONFIG_ARCH_IOP33X
181extern void iop331_init_irq(void); 181extern void iop331_init_irq(void);
182extern struct sys_timer iop331_timer; 182extern struct sys_timer iop331_timer;
183#endif 183#endif
diff --git a/arch/arm/oprofile/op_model_xscale.c b/arch/arm/oprofile/op_model_xscale.c
index 34fdc733743b..7e0cc5b15b15 100644
--- a/arch/arm/oprofile/op_model_xscale.c
+++ b/arch/arm/oprofile/op_model_xscale.c
@@ -36,10 +36,10 @@
36#ifdef CONFIG_ARCH_IOP310 36#ifdef CONFIG_ARCH_IOP310
37#define XSCALE_PMU_IRQ IRQ_XS80200_PMU 37#define XSCALE_PMU_IRQ IRQ_XS80200_PMU
38#endif 38#endif
39#ifdef CONFIG_ARCH_IOP321 39#ifdef CONFIG_ARCH_IOP32X
40#define XSCALE_PMU_IRQ IRQ_IOP321_CORE_PMU 40#define XSCALE_PMU_IRQ IRQ_IOP321_CORE_PMU
41#endif 41#endif
42#ifdef CONFIG_ARCH_IOP331 42#ifdef CONFIG_ARCH_IOP33X
43#define XSCALE_PMU_IRQ IRQ_IOP331_CORE_PMU 43#define XSCALE_PMU_IRQ IRQ_IOP331_CORE_PMU
44#endif 44#endif
45#ifdef CONFIG_ARCH_PXA 45#ifdef CONFIG_ARCH_PXA
diff --git a/drivers/i2c/busses/i2c-iop3xx.c b/drivers/i2c/busses/i2c-iop3xx.c
index 48c56939c861..035417f5a003 100644
--- a/drivers/i2c/busses/i2c-iop3xx.c
+++ b/drivers/i2c/busses/i2c-iop3xx.c
@@ -82,9 +82,9 @@ iop3xx_i2c_enable(struct i2c_algo_iop3xx_data *iop3xx_adap)
82 82
83 /* 83 /*
84 * Every time unit enable is asserted, GPOD needs to be cleared 84 * Every time unit enable is asserted, GPOD needs to be cleared
85 * on IOP321 to avoid data corruption on the bus. 85 * on IOP32X to avoid data corruption on the bus.
86 */ 86 */
87#ifdef CONFIG_ARCH_IOP321 87#ifdef CONFIG_ARCH_IOP32X
88#define IOP321_GPOD_I2C0 0x00c0 /* clear these bits to enable ch0 */ 88#define IOP321_GPOD_I2C0 0x00c0 /* clear these bits to enable ch0 */
89#define IOP321_GPOD_I2C1 0x0030 /* clear these bits to enable ch1 */ 89#define IOP321_GPOD_I2C1 0x0030 /* clear these bits to enable ch1 */
90 90
diff --git a/include/asm-arm/arch-iop3xx/debug-macro.S b/include/asm-arm/arch-iop3xx/debug-macro.S
index ce007e531994..dcc6856d14ff 100644
--- a/include/asm-arm/arch-iop3xx/debug-macro.S
+++ b/include/asm-arm/arch-iop3xx/debug-macro.S
@@ -15,7 +15,7 @@
15 mov \rx, #0xfe000000 @ physical 15 mov \rx, #0xfe000000 @ physical
16#if defined(CONFIG_ARCH_IQ80321) || defined(CONFIG_ARCH_IQ31244) 16#if defined(CONFIG_ARCH_IQ80321) || defined(CONFIG_ARCH_IQ31244)
17 orr \rx, \rx, #0x00800000 @ location of the UART 17 orr \rx, \rx, #0x00800000 @ location of the UART
18#elif defined(CONFIG_ARCH_IOP331) 18#elif defined(CONFIG_ARCH_IOP33X)
19 mrc p15, 0, \rx, c1, c0 19 mrc p15, 0, \rx, c1, c0
20 tst \rx, #1 @ MMU enabled? 20 tst \rx, #1 @ MMU enabled?
21 moveq \rx, #0x000fe000 @ Physical Base 21 moveq \rx, #0x000fe000 @ Physical Base
diff --git a/include/asm-arm/arch-iop3xx/entry-macro.S b/include/asm-arm/arch-iop3xx/entry-macro.S
index 926668c098a5..f3db54637ad3 100644
--- a/include/asm-arm/arch-iop3xx/entry-macro.S
+++ b/include/asm-arm/arch-iop3xx/entry-macro.S
@@ -9,7 +9,7 @@
9 */ 9 */
10#include <asm/arch/irqs.h> 10#include <asm/arch/irqs.h>
11 11
12#if defined(CONFIG_ARCH_IOP321) 12#if defined(CONFIG_ARCH_IOP32X)
13 .macro disable_fiq 13 .macro disable_fiq
14 .endm 14 .endm
15 15
@@ -28,7 +28,7 @@
281001: 281001:
29 .endm 29 .endm
30 30
31#elif defined(CONFIG_ARCH_IOP331) 31#elif defined(CONFIG_ARCH_IOP33X)
32 .macro disable_fiq 32 .macro disable_fiq
33 .endm 33 .endm
34 34
diff --git a/include/asm-arm/arch-iop3xx/iop321.h b/include/asm-arm/arch-iop3xx/iop321.h
index f8df778a356f..d198d72a50a4 100644
--- a/include/asm-arm/arch-iop3xx/iop321.h
+++ b/include/asm-arm/arch-iop3xx/iop321.h
@@ -21,7 +21,7 @@
21 * IOP3xx variants but behave slightly differently on each. 21 * IOP3xx variants but behave slightly differently on each.
22 */ 22 */
23#ifndef __ASSEMBLY__ 23#ifndef __ASSEMBLY__
24#ifdef CONFIG_ARCH_IOP321 24#ifdef CONFIG_ARCH_IOP32X
25#define iop_is_321() (((processor_id & 0xfffff5e0) == 0x69052420)) 25#define iop_is_321() (((processor_id & 0xfffff5e0) == 0x69052420))
26#else 26#else
27#define iop_is_321() 0 27#define iop_is_321() 0
diff --git a/include/asm-arm/arch-iop3xx/iop331.h b/include/asm-arm/arch-iop3xx/iop331.h
index fbf0cc11bdd9..4d7bcc62cb3e 100644
--- a/include/asm-arm/arch-iop3xx/iop331.h
+++ b/include/asm-arm/arch-iop3xx/iop331.h
@@ -20,7 +20,7 @@
20 * IOP3xx variants but behave slightly differently on each. 20 * IOP3xx variants but behave slightly differently on each.
21 */ 21 */
22#ifndef __ASSEMBLY__ 22#ifndef __ASSEMBLY__
23#ifdef CONFIG_ARCH_IOP331 23#ifdef CONFIG_ARCH_IOP33X
24/*#define iop_is_331() ((processor_id & 0xffffffb0) == 0x69054090) */ 24/*#define iop_is_331() ((processor_id & 0xffffffb0) == 0x69054090) */
25#define iop_is_331() ((processor_id & 0xffffff30) == 0x69054010) 25#define iop_is_331() ((processor_id & 0xffffff30) == 0x69054010)
26#else 26#else
@@ -257,7 +257,7 @@
257#define IOP331_TU_TISR (volatile u32 *)IOP331_REG_ADDR(0x000007E8) 257#define IOP331_TU_TISR (volatile u32 *)IOP331_REG_ADDR(0x000007E8)
258#define IOP331_TU_WDTCR (volatile u32 *)IOP331_REG_ADDR(0x000007EC) 258#define IOP331_TU_WDTCR (volatile u32 *)IOP331_REG_ADDR(0x000007EC)
259 259
260#if defined(CONFIG_ARCH_IOP331) 260#if defined(CONFIG_ARCH_IOP33X)
261#define IOP331_TICK_RATE 266000000 /* 266 MHz IB clock */ 261#define IOP331_TICK_RATE 266000000 /* 266 MHz IB clock */
262#endif 262#endif
263 263
diff --git a/include/asm-arm/arch-iop3xx/irqs.h b/include/asm-arm/arch-iop3xx/irqs.h
index b2c03f4c269c..4f7c7aa87b4a 100644
--- a/include/asm-arm/arch-iop3xx/irqs.h
+++ b/include/asm-arm/arch-iop3xx/irqs.h
@@ -12,10 +12,10 @@
12/* 12/*
13 * Chipset-specific bits 13 * Chipset-specific bits
14 */ 14 */
15#ifdef CONFIG_ARCH_IOP321 15#ifdef CONFIG_ARCH_IOP32X
16#include "iop321-irqs.h" 16#include "iop321-irqs.h"
17#endif 17#endif
18 18
19#ifdef CONFIG_ARCH_IOP331 19#ifdef CONFIG_ARCH_IOP33X
20#include "iop331-irqs.h" 20#include "iop331-irqs.h"
21#endif 21#endif
diff --git a/include/asm-arm/arch-iop3xx/memory.h b/include/asm-arm/arch-iop3xx/memory.h
index e43ebd984745..25666184e8fc 100644
--- a/include/asm-arm/arch-iop3xx/memory.h
+++ b/include/asm-arm/arch-iop3xx/memory.h
@@ -10,7 +10,7 @@
10/* 10/*
11 * Physical DRAM offset. 11 * Physical DRAM offset.
12 */ 12 */
13#ifndef CONFIG_ARCH_IOP331 13#ifndef CONFIG_ARCH_IOP33X
14#define PHYS_OFFSET UL(0xa0000000) 14#define PHYS_OFFSET UL(0xa0000000)
15#else 15#else
16#define PHYS_OFFSET UL(0x00000000) 16#define PHYS_OFFSET UL(0x00000000)
@@ -23,12 +23,12 @@
23 * bus_to_virt: Used to convert an address for DMA operations 23 * bus_to_virt: Used to convert an address for DMA operations
24 * to an address that the kernel can use. 24 * to an address that the kernel can use.
25 */ 25 */
26#if defined(CONFIG_ARCH_IOP321) 26#if defined(CONFIG_ARCH_IOP32X)
27 27
28#define __virt_to_bus(x) (((__virt_to_phys(x)) & ~(*IOP321_IATVR2)) | ((*IOP321_IABAR2) & 0xfffffff0)) 28#define __virt_to_bus(x) (((__virt_to_phys(x)) & ~(*IOP321_IATVR2)) | ((*IOP321_IABAR2) & 0xfffffff0))
29#define __bus_to_virt(x) (__phys_to_virt(((x) & ~(*IOP321_IALR2)) | ( *IOP321_IATVR2))) 29#define __bus_to_virt(x) (__phys_to_virt(((x) & ~(*IOP321_IALR2)) | ( *IOP321_IATVR2)))
30 30
31#elif defined(CONFIG_ARCH_IOP331) 31#elif defined(CONFIG_ARCH_IOP33X)
32 32
33#define __virt_to_bus(x) (((__virt_to_phys(x)) & ~(*IOP331_IATVR2)) | ((*IOP331_IABAR2) & 0xfffffff0)) 33#define __virt_to_bus(x) (((__virt_to_phys(x)) & ~(*IOP331_IATVR2)) | ((*IOP331_IABAR2) & 0xfffffff0))
34#define __bus_to_virt(x) (__phys_to_virt(((x) & ~(*IOP331_IALR2)) | ( *IOP331_IATVR2))) 34#define __bus_to_virt(x) (__phys_to_virt(((x) & ~(*IOP331_IALR2)) | ( *IOP331_IATVR2)))
diff --git a/include/asm-arm/arch-iop3xx/system.h b/include/asm-arm/arch-iop3xx/system.h
index af6ae8cd36c9..a16cbb77a7f6 100644
--- a/include/asm-arm/arch-iop3xx/system.h
+++ b/include/asm-arm/arch-iop3xx/system.h
@@ -16,11 +16,11 @@ static inline void arch_idle(void)
16 16
17static inline void arch_reset(char mode) 17static inline void arch_reset(char mode)
18{ 18{
19#ifdef CONFIG_ARCH_IOP321 19#ifdef CONFIG_ARCH_IOP32X
20 *IOP321_PCSR = 0x30; 20 *IOP321_PCSR = 0x30;
21#endif 21#endif
22 22
23#ifdef CONFIG_ARCH_IOP331 23#ifdef CONFIG_ARCH_IOP33X
24 *IOP331_PCSR = 0x30; 24 *IOP331_PCSR = 0x30;
25#endif 25#endif
26 26
diff --git a/include/asm-arm/arch-iop3xx/uncompress.h b/include/asm-arm/arch-iop3xx/uncompress.h
index fbdd5af644fe..066c16bc1250 100644
--- a/include/asm-arm/arch-iop3xx/uncompress.h
+++ b/include/asm-arm/arch-iop3xx/uncompress.h
@@ -6,9 +6,9 @@
6#include <linux/serial_reg.h> 6#include <linux/serial_reg.h>
7#include <asm/hardware.h> 7#include <asm/hardware.h>
8 8
9#ifdef CONFIG_ARCH_IOP321 9#ifdef CONFIG_ARCH_IOP32X
10#define UTYPE unsigned char * 10#define UTYPE unsigned char *
11#elif defined(CONFIG_ARCH_IOP331) 11#elif defined(CONFIG_ARCH_IOP33X)
12#define UTYPE u32 * 12#define UTYPE u32 *
13#else 13#else
14#error "Missing IOP3xx arch type def" 14#error "Missing IOP3xx arch type def"