aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2010-02-12 15:26:48 -0500
committerTony Lindgren <tony@atomide.com>2010-02-15 12:27:04 -0500
commit140455fa007a618d2d1bf5e6e888206534035e6f (patch)
treede32228b71e7992ad95a00756daaa2f527043c8f
parenta8eb7ca0cbb41c9cd379b8d2a2a5efb503aa65e9 (diff)
omap2/3/4: Replace orred CONFIG_ARCH_OMAP2/3/4 with CONFIG_ARCH_OMAP2PLUS
omap: Replace orred CONFIG_ARCH_OMAP2/3/4 with CONFIG_ARCH_OMAP2PLUS Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/Kconfig2
-rw-r--r--arch/arm/plat-omap/Kconfig4
-rw-r--r--arch/arm/plat-omap/dma.c3
-rw-r--r--arch/arm/plat-omap/dmtimer.c12
-rw-r--r--arch/arm/plat-omap/gpio.c36
-rw-r--r--arch/arm/plat-omap/include/plat/clock.h6
-rw-r--r--arch/arm/plat-omap/include/plat/control.h3
-rw-r--r--arch/arm/plat-omap/include/plat/mcbsp.h3
-rw-r--r--arch/arm/plat-omap/include/plat/memory.h3
9 files changed, 25 insertions, 47 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 317b8cb375be..f90b225ef888 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -29,7 +29,7 @@ config OMAP_PACKAGE_CBP
29 bool 29 bool
30 30
31comment "OMAP Board Type" 31comment "OMAP Board Type"
32 depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP4 32 depends on ARCH_OMAP2PLUS
33 33
34config MACH_OMAP_GENERIC 34config MACH_OMAP_GENERIC
35 bool "Generic OMAP board" 35 bool "Generic OMAP board"
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig
index 1e223924da8a..97d0c79ffd2b 100644
--- a/arch/arm/plat-omap/Kconfig
+++ b/arch/arm/plat-omap/Kconfig
@@ -125,7 +125,7 @@ config OMAP_MPU_TIMER
125 125
126config OMAP_32K_TIMER 126config OMAP_32K_TIMER
127 bool "Use 32KHz timer" 127 bool "Use 32KHz timer"
128 depends on ARCH_OMAP16XX || ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP4 128 depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS
129 help 129 help
130 Select this option if you want to enable the OMAP 32KHz timer. 130 Select this option if you want to enable the OMAP 32KHz timer.
131 This timer saves power compared to the OMAP_MPU_TIMER, and has 131 This timer saves power compared to the OMAP_MPU_TIMER, and has
@@ -146,7 +146,7 @@ config OMAP_32K_TIMER_HZ
146 146
147config OMAP_DM_TIMER 147config OMAP_DM_TIMER
148 bool "Use dual-mode timer" 148 bool "Use dual-mode timer"
149 depends on ARCH_OMAP16XX || ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP4 149 depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS
150 help 150 help
151 Select this option if you want to use OMAP Dual-Mode timers. 151 Select this option if you want to use OMAP Dual-Mode timers.
152 152
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index 728c64204184..30ff525fe33c 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -1870,8 +1870,7 @@ static irqreturn_t omap1_dma_irq_handler(int irq, void *dev_id)
1870#define omap1_dma_irq_handler NULL 1870#define omap1_dma_irq_handler NULL
1871#endif 1871#endif
1872 1872
1873#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 1873#ifdef CONFIG_ARCH_OMAP2PLUS
1874 defined(CONFIG_ARCH_OMAP4)
1875 1874
1876static int omap2_dma_handle_ch(int ch) 1875static int omap2_dma_handle_ch(int ch)
1877{ 1876{
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index c588cdf35db1..24bf692fe65e 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -153,8 +153,7 @@
153struct omap_dm_timer { 153struct omap_dm_timer {
154 unsigned long phys_base; 154 unsigned long phys_base;
155 int irq; 155 int irq;
156#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 156#ifdef CONFIG_ARCH_OMAP2PLUS
157 defined(CONFIG_ARCH_OMAP4)
158 struct clk *iclk, *fclk; 157 struct clk *iclk, *fclk;
159#endif 158#endif
160 void __iomem *io_base; 159 void __iomem *io_base;
@@ -490,8 +489,7 @@ __u32 omap_dm_timer_modify_idlect_mask(__u32 inputmask)
490} 489}
491EXPORT_SYMBOL_GPL(omap_dm_timer_modify_idlect_mask); 490EXPORT_SYMBOL_GPL(omap_dm_timer_modify_idlect_mask);
492 491
493#elif defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 492#else
494 defined(CONFIG_ARCH_OMAP4)
495 493
496struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *timer) 494struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *timer)
497{ 495{
@@ -535,8 +533,7 @@ void omap_dm_timer_stop(struct omap_dm_timer *timer)
535 if (l & OMAP_TIMER_CTRL_ST) { 533 if (l & OMAP_TIMER_CTRL_ST) {
536 l &= ~0x1; 534 l &= ~0x1;
537 omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, l); 535 omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, l);
538#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 536#ifdef CONFIG_ARCH_OMAP2PLUS
539 defined(CONFIG_ARCH_OMAP4)
540 /* Readback to make sure write has completed */ 537 /* Readback to make sure write has completed */
541 omap_dm_timer_read_reg(timer, OMAP_TIMER_CTRL_REG); 538 omap_dm_timer_read_reg(timer, OMAP_TIMER_CTRL_REG);
542 /* 539 /*
@@ -781,8 +778,7 @@ int __init omap_dm_timer_init(void)
781 timer->io_base = ioremap(timer->phys_base, map_size); 778 timer->io_base = ioremap(timer->phys_base, map_size);
782 BUG_ON(!timer->io_base); 779 BUG_ON(!timer->io_base);
783 780
784#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 781#ifdef CONFIG_ARCH_OMAP2PLUS
785 defined(CONFIG_ARCH_OMAP4)
786 if (cpu_class_is_omap2()) { 782 if (cpu_class_is_omap2()) {
787 char clk_name[16]; 783 char clk_name[16];
788 sprintf(clk_name, "gpt%d_ick", i + 1); 784 sprintf(clk_name, "gpt%d_ick", i + 1);
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
index 9608019fd6e4..a888304b8383 100644
--- a/arch/arm/plat-omap/gpio.c
+++ b/arch/arm/plat-omap/gpio.c
@@ -177,13 +177,11 @@ struct gpio_bank {
177 u16 irq; 177 u16 irq;
178 u16 virtual_irq_start; 178 u16 virtual_irq_start;
179 int method; 179 int method;
180#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2) || \ 180#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2PLUS)
181 defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4)
182 u32 suspend_wakeup; 181 u32 suspend_wakeup;
183 u32 saved_wakeup; 182 u32 saved_wakeup;
184#endif 183#endif
185#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 184#ifdef CONFIG_ARCH_OMAP2PLUS
186 defined(CONFIG_ARCH_OMAP4)
187 u32 non_wakeup_gpios; 185 u32 non_wakeup_gpios;
188 u32 enabled_non_wakeup_gpios; 186 u32 enabled_non_wakeup_gpios;
189 187
@@ -592,8 +590,7 @@ static int _get_gpio_dataout(struct gpio_bank *bank, int gpio)
592 reg += OMAP7XX_GPIO_DATA_OUTPUT; 590 reg += OMAP7XX_GPIO_DATA_OUTPUT;
593 break; 591 break;
594#endif 592#endif
595#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 593#ifdef CONFIG_ARCH_OMAP2PLUS
596 defined(CONFIG_ARCH_OMAP4)
597 case METHOD_GPIO_24XX: 594 case METHOD_GPIO_24XX:
598 reg += OMAP24XX_GPIO_DATAOUT; 595 reg += OMAP24XX_GPIO_DATAOUT;
599 break; 596 break;
@@ -684,8 +681,7 @@ void omap_set_gpio_debounce_time(int gpio, int enc_time)
684} 681}
685EXPORT_SYMBOL(omap_set_gpio_debounce_time); 682EXPORT_SYMBOL(omap_set_gpio_debounce_time);
686 683
687#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 684#ifdef CONFIG_ARCH_OMAP2PLUS
688 defined(CONFIG_ARCH_OMAP4)
689static inline void set_24xx_gpio_triggering(struct gpio_bank *bank, int gpio, 685static inline void set_24xx_gpio_triggering(struct gpio_bank *bank, int gpio,
690 int trigger) 686 int trigger)
691{ 687{
@@ -856,8 +852,7 @@ static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger)
856 goto bad; 852 goto bad;
857 break; 853 break;
858#endif 854#endif
859#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 855#ifdef CONFIG_ARCH_OMAP2PLUS
860 defined(CONFIG_ARCH_OMAP4)
861 case METHOD_GPIO_24XX: 856 case METHOD_GPIO_24XX:
862 set_24xx_gpio_triggering(bank, gpio, trigger); 857 set_24xx_gpio_triggering(bank, gpio, trigger);
863 break; 858 break;
@@ -1131,8 +1126,7 @@ static int _set_gpio_wakeup(struct gpio_bank *bank, int gpio, int enable)
1131 spin_unlock_irqrestore(&bank->lock, flags); 1126 spin_unlock_irqrestore(&bank->lock, flags);
1132 return 0; 1127 return 0;
1133#endif 1128#endif
1134#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 1129#ifdef CONFIG_ARCH_OMAP2PLUS
1135 defined(CONFIG_ARCH_OMAP4)
1136 case METHOD_GPIO_24XX: 1130 case METHOD_GPIO_24XX:
1137 if (bank->non_wakeup_gpios & (1 << gpio)) { 1131 if (bank->non_wakeup_gpios & (1 << gpio)) {
1138 printk(KERN_ERR "Unable to modify wakeup on " 1132 printk(KERN_ERR "Unable to modify wakeup on "
@@ -1227,8 +1221,7 @@ static void omap_gpio_free(struct gpio_chip *chip, unsigned offset)
1227 __raw_writel(1 << offset, reg); 1221 __raw_writel(1 << offset, reg);
1228 } 1222 }
1229#endif 1223#endif
1230#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 1224#ifdef CONFIG_ARCH_OMAP2PLUS
1231 defined(CONFIG_ARCH_OMAP4)
1232 if (bank->method == METHOD_GPIO_24XX) { 1225 if (bank->method == METHOD_GPIO_24XX) {
1233 /* Disable wake-up during idle for dynamic tick */ 1226 /* Disable wake-up during idle for dynamic tick */
1234 void __iomem *reg = bank->base + OMAP24XX_GPIO_CLEARWKUENA; 1227 void __iomem *reg = bank->base + OMAP24XX_GPIO_CLEARWKUENA;
@@ -1809,8 +1802,7 @@ static int __init _omap_gpio_init(void)
1809 gpio_count = 32; /* 7xx has 32-bit GPIOs */ 1802 gpio_count = 32; /* 7xx has 32-bit GPIOs */
1810 } 1803 }
1811 1804
1812#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 1805#ifdef CONFIG_ARCH_OMAP2PLUS
1813 defined(CONFIG_ARCH_OMAP4)
1814 if (bank->method == METHOD_GPIO_24XX) { 1806 if (bank->method == METHOD_GPIO_24XX) {
1815 static const u32 non_wakeup_gpios[] = { 1807 static const u32 non_wakeup_gpios[] = {
1816 0xe203ffc0, 0x08700040 1808 0xe203ffc0, 0x08700040
@@ -1903,8 +1895,7 @@ static int __init _omap_gpio_init(void)
1903 return 0; 1895 return 0;
1904} 1896}
1905 1897
1906#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2) || \ 1898#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2PLUS)
1907 defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4)
1908static int omap_gpio_suspend(struct sys_device *dev, pm_message_t mesg) 1899static int omap_gpio_suspend(struct sys_device *dev, pm_message_t mesg)
1909{ 1900{
1910 int i; 1901 int i;
@@ -2013,8 +2004,7 @@ static struct sys_device omap_gpio_device = {
2013 2004
2014#endif 2005#endif
2015 2006
2016#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 2007#ifdef CONFIG_ARCH_OMAP2PLUS
2017 defined(CONFIG_ARCH_OMAP4)
2018 2008
2019static int workaround_enabled; 2009static int workaround_enabled;
2020 2010
@@ -2240,8 +2230,7 @@ static int __init omap_gpio_sysinit(void)
2240 2230
2241 mpuio_init(); 2231 mpuio_init();
2242 2232
2243#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2) || \ 2233#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2PLUS)
2244 defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4)
2245 if (cpu_is_omap16xx() || cpu_class_is_omap2()) { 2234 if (cpu_is_omap16xx() || cpu_class_is_omap2()) {
2246 if (ret == 0) { 2235 if (ret == 0) {
2247 ret = sysdev_class_register(&omap_gpio_sysclass); 2236 ret = sysdev_class_register(&omap_gpio_sysclass);
@@ -2300,8 +2289,7 @@ static int dbg_gpio_show(struct seq_file *s, void *unused)
2300/* FIXME for at least omap2, show pullup/pulldown state */ 2289/* FIXME for at least omap2, show pullup/pulldown state */
2301 2290
2302 irqstat = irq_desc[irq].status; 2291 irqstat = irq_desc[irq].status;
2303#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2) || \ 2292#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2PLUS)
2304 defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4)
2305 if (is_in && ((bank->suspend_wakeup & mask) 2293 if (is_in && ((bank->suspend_wakeup & mask)
2306 || irqstat & IRQ_TYPE_SENSE_MASK)) { 2294 || irqstat & IRQ_TYPE_SENSE_MASK)) {
2307 char *trigger = NULL; 2295 char *trigger = NULL;
diff --git a/arch/arm/plat-omap/include/plat/clock.h b/arch/arm/plat-omap/include/plat/clock.h
index e41313208125..8a86df4ad99c 100644
--- a/arch/arm/plat-omap/include/plat/clock.h
+++ b/arch/arm/plat-omap/include/plat/clock.h
@@ -26,8 +26,7 @@ struct clkops {
26 void (*find_companion)(struct clk *, void __iomem **, u8 *); 26 void (*find_companion)(struct clk *, void __iomem **, u8 *);
27}; 27};
28 28
29#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 29#ifdef CONFIG_ARCH_OMAP2PLUS
30 defined(CONFIG_ARCH_OMAP4)
31 30
32struct clksel_rate { 31struct clksel_rate {
33 u32 val; 32 u32 val;
@@ -89,8 +88,7 @@ struct clk {
89 __u8 enable_bit; 88 __u8 enable_bit;
90 __s8 usecount; 89 __s8 usecount;
91 u8 fixed_div; 90 u8 fixed_div;
92#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 91#ifdef CONFIG_ARCH_OMAP2PLUS
93 defined(CONFIG_ARCH_OMAP4)
94 void __iomem *clksel_reg; 92 void __iomem *clksel_reg;
95 u32 clksel_mask; 93 u32 clksel_mask;
96 const struct clksel *clksel; 94 const struct clksel *clksel;
diff --git a/arch/arm/plat-omap/include/plat/control.h b/arch/arm/plat-omap/include/plat/control.h
index 61e7b8a8c993..fcdc71bf4c6e 100644
--- a/arch/arm/plat-omap/include/plat/control.h
+++ b/arch/arm/plat-omap/include/plat/control.h
@@ -309,8 +309,7 @@
309 309
310 310
311#ifndef __ASSEMBLY__ 311#ifndef __ASSEMBLY__
312#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 312#ifdef CONFIG_ARCH_OMAP2PLUS
313 defined(CONFIG_ARCH_OMAP4)
314extern void __iomem *omap_ctrl_base_get(void); 313extern void __iomem *omap_ctrl_base_get(void);
315extern u8 omap_ctrl_readb(u16 offset); 314extern u8 omap_ctrl_readb(u16 offset);
316extern u16 omap_ctrl_readw(u16 offset); 315extern u16 omap_ctrl_readw(u16 offset);
diff --git a/arch/arm/plat-omap/include/plat/mcbsp.h b/arch/arm/plat-omap/include/plat/mcbsp.h
index 0d7e536a3c95..d93fa44b1c9a 100644
--- a/arch/arm/plat-omap/include/plat/mcbsp.h
+++ b/arch/arm/plat-omap/include/plat/mcbsp.h
@@ -103,8 +103,7 @@
103#define AUDIO_DMA_TX OMAP_DMA_MCBSP1_TX 103#define AUDIO_DMA_TX OMAP_DMA_MCBSP1_TX
104#define AUDIO_DMA_RX OMAP_DMA_MCBSP1_RX 104#define AUDIO_DMA_RX OMAP_DMA_MCBSP1_RX
105 105
106#elif defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 106#else
107 defined(CONFIG_ARCH_OMAP4)
108 107
109#define OMAP_MCBSP_REG_DRR2 0x00 108#define OMAP_MCBSP_REG_DRR2 0x00
110#define OMAP_MCBSP_REG_DRR1 0x04 109#define OMAP_MCBSP_REG_DRR1 0x04
diff --git a/arch/arm/plat-omap/include/plat/memory.h b/arch/arm/plat-omap/include/plat/memory.h
index 3325f7b49eaa..d5306bee44b2 100644
--- a/arch/arm/plat-omap/include/plat/memory.h
+++ b/arch/arm/plat-omap/include/plat/memory.h
@@ -38,8 +38,7 @@
38 */ 38 */
39#if defined(CONFIG_ARCH_OMAP1) 39#if defined(CONFIG_ARCH_OMAP1)
40#define PHYS_OFFSET UL(0x10000000) 40#define PHYS_OFFSET UL(0x10000000)
41#elif defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 41#else
42 defined(CONFIG_ARCH_OMAP4)
43#define PHYS_OFFSET UL(0x80000000) 42#define PHYS_OFFSET UL(0x80000000)
44#endif 43#endif
45 44