diff options
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/Kconfig | 5 | ||||
-rw-r--r-- | arch/arm/plat-omap/common.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/gpio.c | 58 | ||||
-rw-r--r-- | arch/arm/plat-omap/i2c.c | 8 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/cpu.h | 8 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/io.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/mcbsp.h | 8 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap34xx.h | 6 | ||||
-rw-r--r-- | arch/arm/plat-omap/mcbsp.c | 6 | ||||
-rw-r--r-- | arch/arm/plat-omap/sram.c | 2 |
10 files changed, 53 insertions, 52 deletions
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig index df497fc33f2b..1e223924da8a 100644 --- a/arch/arm/plat-omap/Kconfig +++ b/arch/arm/plat-omap/Kconfig | |||
@@ -30,6 +30,7 @@ config ARCH_OMAP3 | |||
30 | bool "TI OMAP3" | 30 | bool "TI OMAP3" |
31 | depends on ARCH_OMAP2PLUS | 31 | depends on ARCH_OMAP2PLUS |
32 | select CPU_V7 | 32 | select CPU_V7 |
33 | select USB_ARCH_HAS_EHCI | ||
33 | 34 | ||
34 | config ARCH_OMAP4 | 35 | config ARCH_OMAP4 |
35 | bool "TI OMAP4" | 36 | bool "TI OMAP4" |
@@ -124,7 +125,7 @@ config OMAP_MPU_TIMER | |||
124 | 125 | ||
125 | config OMAP_32K_TIMER | 126 | config OMAP_32K_TIMER |
126 | bool "Use 32KHz timer" | 127 | bool "Use 32KHz timer" |
127 | depends on ARCH_OMAP16XX || ARCH_OMAP2 || ARCH_OMAP34XX || ARCH_OMAP4 | 128 | depends on ARCH_OMAP16XX || ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP4 |
128 | help | 129 | help |
129 | 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. |
130 | 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 |
@@ -145,7 +146,7 @@ config OMAP_32K_TIMER_HZ | |||
145 | 146 | ||
146 | config OMAP_DM_TIMER | 147 | config OMAP_DM_TIMER |
147 | bool "Use dual-mode timer" | 148 | bool "Use dual-mode timer" |
148 | depends on ARCH_OMAP16XX || ARCH_OMAP2 || ARCH_OMAP34XX || ARCH_OMAP4 | 149 | depends on ARCH_OMAP16XX || ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP4 |
149 | help | 150 | help |
150 | 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. |
151 | 152 | ||
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index 7cbc0a214aab..4f29e8c0f539 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c | |||
@@ -127,7 +127,7 @@ static cycle_t omap2430_32k_read(struct clocksource *cs) | |||
127 | #define omap2430_32k_read NULL | 127 | #define omap2430_32k_read NULL |
128 | #endif | 128 | #endif |
129 | 129 | ||
130 | #ifdef CONFIG_ARCH_OMAP34XX | 130 | #ifdef CONFIG_ARCH_OMAP3 |
131 | static cycle_t omap34xx_32k_read(struct clocksource *cs) | 131 | static cycle_t omap34xx_32k_read(struct clocksource *cs) |
132 | { | 132 | { |
133 | return omap_readl(OMAP3430_32KSYNCT_BASE + 0x10); | 133 | return omap_readl(OMAP3430_32KSYNCT_BASE + 0x10); |
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 0fb0e58fec93..9608019fd6e4 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c | |||
@@ -178,11 +178,11 @@ struct gpio_bank { | |||
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_OMAP2) || \ |
181 | defined(CONFIG_ARCH_OMAP34XX) || defined(CONFIG_ARCH_OMAP4) | 181 | defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4) |
182 | u32 suspend_wakeup; | 182 | u32 suspend_wakeup; |
183 | u32 saved_wakeup; | 183 | u32 saved_wakeup; |
184 | #endif | 184 | #endif |
185 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) || \ | 185 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ |
186 | defined(CONFIG_ARCH_OMAP4) | 186 | defined(CONFIG_ARCH_OMAP4) |
187 | u32 non_wakeup_gpios; | 187 | u32 non_wakeup_gpios; |
188 | u32 enabled_non_wakeup_gpios; | 188 | u32 enabled_non_wakeup_gpios; |
@@ -276,7 +276,7 @@ static struct gpio_bank gpio_bank_243x[5] = { | |||
276 | 276 | ||
277 | #endif | 277 | #endif |
278 | 278 | ||
279 | #ifdef CONFIG_ARCH_OMAP34XX | 279 | #ifdef CONFIG_ARCH_OMAP3 |
280 | static struct gpio_bank gpio_bank_34xx[6] = { | 280 | static struct gpio_bank gpio_bank_34xx[6] = { |
281 | { OMAP34XX_GPIO1_BASE, NULL, INT_34XX_GPIO_BANK1, IH_GPIO_BASE, | 281 | { OMAP34XX_GPIO1_BASE, NULL, INT_34XX_GPIO_BANK1, IH_GPIO_BASE, |
282 | METHOD_GPIO_24XX }, | 282 | METHOD_GPIO_24XX }, |
@@ -426,7 +426,7 @@ static void _set_gpio_direction(struct gpio_bank *bank, int gpio, int is_input) | |||
426 | reg += OMAP7XX_GPIO_DIR_CONTROL; | 426 | reg += OMAP7XX_GPIO_DIR_CONTROL; |
427 | break; | 427 | break; |
428 | #endif | 428 | #endif |
429 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 429 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
430 | case METHOD_GPIO_24XX: | 430 | case METHOD_GPIO_24XX: |
431 | reg += OMAP24XX_GPIO_OE; | 431 | reg += OMAP24XX_GPIO_OE; |
432 | break; | 432 | break; |
@@ -493,7 +493,7 @@ static void _set_gpio_dataout(struct gpio_bank *bank, int gpio, int enable) | |||
493 | l &= ~(1 << gpio); | 493 | l &= ~(1 << gpio); |
494 | break; | 494 | break; |
495 | #endif | 495 | #endif |
496 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 496 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
497 | case METHOD_GPIO_24XX: | 497 | case METHOD_GPIO_24XX: |
498 | if (enable) | 498 | if (enable) |
499 | reg += OMAP24XX_GPIO_SETDATAOUT; | 499 | reg += OMAP24XX_GPIO_SETDATAOUT; |
@@ -546,7 +546,7 @@ static int _get_gpio_datain(struct gpio_bank *bank, int gpio) | |||
546 | reg += OMAP7XX_GPIO_DATA_INPUT; | 546 | reg += OMAP7XX_GPIO_DATA_INPUT; |
547 | break; | 547 | break; |
548 | #endif | 548 | #endif |
549 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 549 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
550 | case METHOD_GPIO_24XX: | 550 | case METHOD_GPIO_24XX: |
551 | reg += OMAP24XX_GPIO_DATAIN; | 551 | reg += OMAP24XX_GPIO_DATAIN; |
552 | break; | 552 | break; |
@@ -592,7 +592,7 @@ static int _get_gpio_dataout(struct gpio_bank *bank, int gpio) | |||
592 | reg += OMAP7XX_GPIO_DATA_OUTPUT; | 592 | reg += OMAP7XX_GPIO_DATA_OUTPUT; |
593 | break; | 593 | break; |
594 | #endif | 594 | #endif |
595 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) || \ | 595 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ |
596 | defined(CONFIG_ARCH_OMAP4) | 596 | defined(CONFIG_ARCH_OMAP4) |
597 | case METHOD_GPIO_24XX: | 597 | case METHOD_GPIO_24XX: |
598 | reg += OMAP24XX_GPIO_DATAOUT; | 598 | reg += OMAP24XX_GPIO_DATAOUT; |
@@ -684,7 +684,7 @@ void omap_set_gpio_debounce_time(int gpio, int enc_time) | |||
684 | } | 684 | } |
685 | EXPORT_SYMBOL(omap_set_gpio_debounce_time); | 685 | EXPORT_SYMBOL(omap_set_gpio_debounce_time); |
686 | 686 | ||
687 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) || \ | 687 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ |
688 | defined(CONFIG_ARCH_OMAP4) | 688 | defined(CONFIG_ARCH_OMAP4) |
689 | static inline void set_24xx_gpio_triggering(struct gpio_bank *bank, int gpio, | 689 | static inline void set_24xx_gpio_triggering(struct gpio_bank *bank, int gpio, |
690 | int trigger) | 690 | int trigger) |
@@ -856,7 +856,7 @@ static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger) | |||
856 | goto bad; | 856 | goto bad; |
857 | break; | 857 | break; |
858 | #endif | 858 | #endif |
859 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) || \ | 859 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ |
860 | defined(CONFIG_ARCH_OMAP4) | 860 | defined(CONFIG_ARCH_OMAP4) |
861 | case METHOD_GPIO_24XX: | 861 | case METHOD_GPIO_24XX: |
862 | set_24xx_gpio_triggering(bank, gpio, trigger); | 862 | set_24xx_gpio_triggering(bank, gpio, trigger); |
@@ -937,7 +937,7 @@ static void _clear_gpio_irqbank(struct gpio_bank *bank, int gpio_mask) | |||
937 | reg += OMAP7XX_GPIO_INT_STATUS; | 937 | reg += OMAP7XX_GPIO_INT_STATUS; |
938 | break; | 938 | break; |
939 | #endif | 939 | #endif |
940 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 940 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
941 | case METHOD_GPIO_24XX: | 941 | case METHOD_GPIO_24XX: |
942 | reg += OMAP24XX_GPIO_IRQSTATUS1; | 942 | reg += OMAP24XX_GPIO_IRQSTATUS1; |
943 | break; | 943 | break; |
@@ -954,7 +954,7 @@ static void _clear_gpio_irqbank(struct gpio_bank *bank, int gpio_mask) | |||
954 | __raw_writel(gpio_mask, reg); | 954 | __raw_writel(gpio_mask, reg); |
955 | 955 | ||
956 | /* Workaround for clearing DSP GPIO interrupts to allow retention */ | 956 | /* Workaround for clearing DSP GPIO interrupts to allow retention */ |
957 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 957 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
958 | reg = bank->base + OMAP24XX_GPIO_IRQSTATUS2; | 958 | reg = bank->base + OMAP24XX_GPIO_IRQSTATUS2; |
959 | #endif | 959 | #endif |
960 | #if defined(CONFIG_ARCH_OMAP4) | 960 | #if defined(CONFIG_ARCH_OMAP4) |
@@ -1008,7 +1008,7 @@ static u32 _get_gpio_irqbank_mask(struct gpio_bank *bank) | |||
1008 | inv = 1; | 1008 | inv = 1; |
1009 | break; | 1009 | break; |
1010 | #endif | 1010 | #endif |
1011 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 1011 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
1012 | case METHOD_GPIO_24XX: | 1012 | case METHOD_GPIO_24XX: |
1013 | reg += OMAP24XX_GPIO_IRQENABLE1; | 1013 | reg += OMAP24XX_GPIO_IRQENABLE1; |
1014 | mask = 0xffffffff; | 1014 | mask = 0xffffffff; |
@@ -1077,7 +1077,7 @@ static void _enable_gpio_irqbank(struct gpio_bank *bank, int gpio_mask, int enab | |||
1077 | l |= gpio_mask; | 1077 | l |= gpio_mask; |
1078 | break; | 1078 | break; |
1079 | #endif | 1079 | #endif |
1080 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 1080 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
1081 | case METHOD_GPIO_24XX: | 1081 | case METHOD_GPIO_24XX: |
1082 | if (enable) | 1082 | if (enable) |
1083 | reg += OMAP24XX_GPIO_SETIRQENABLE1; | 1083 | reg += OMAP24XX_GPIO_SETIRQENABLE1; |
@@ -1131,7 +1131,7 @@ static int _set_gpio_wakeup(struct gpio_bank *bank, int gpio, int enable) | |||
1131 | spin_unlock_irqrestore(&bank->lock, flags); | 1131 | spin_unlock_irqrestore(&bank->lock, flags); |
1132 | return 0; | 1132 | return 0; |
1133 | #endif | 1133 | #endif |
1134 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) || \ | 1134 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ |
1135 | defined(CONFIG_ARCH_OMAP4) | 1135 | defined(CONFIG_ARCH_OMAP4) |
1136 | case METHOD_GPIO_24XX: | 1136 | case METHOD_GPIO_24XX: |
1137 | if (bank->non_wakeup_gpios & (1 << gpio)) { | 1137 | if (bank->non_wakeup_gpios & (1 << gpio)) { |
@@ -1227,7 +1227,7 @@ static void omap_gpio_free(struct gpio_chip *chip, unsigned offset) | |||
1227 | __raw_writel(1 << offset, reg); | 1227 | __raw_writel(1 << offset, reg); |
1228 | } | 1228 | } |
1229 | #endif | 1229 | #endif |
1230 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) || \ | 1230 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ |
1231 | defined(CONFIG_ARCH_OMAP4) | 1231 | defined(CONFIG_ARCH_OMAP4) |
1232 | if (bank->method == METHOD_GPIO_24XX) { | 1232 | if (bank->method == METHOD_GPIO_24XX) { |
1233 | /* Disable wake-up during idle for dynamic tick */ | 1233 | /* Disable wake-up during idle for dynamic tick */ |
@@ -1286,7 +1286,7 @@ static void gpio_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
1286 | if (bank->method == METHOD_GPIO_7XX) | 1286 | if (bank->method == METHOD_GPIO_7XX) |
1287 | isr_reg = bank->base + OMAP7XX_GPIO_INT_STATUS; | 1287 | isr_reg = bank->base + OMAP7XX_GPIO_INT_STATUS; |
1288 | #endif | 1288 | #endif |
1289 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 1289 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
1290 | if (bank->method == METHOD_GPIO_24XX) | 1290 | if (bank->method == METHOD_GPIO_24XX) |
1291 | isr_reg = bank->base + OMAP24XX_GPIO_IRQSTATUS1; | 1291 | isr_reg = bank->base + OMAP24XX_GPIO_IRQSTATUS1; |
1292 | #endif | 1292 | #endif |
@@ -1766,7 +1766,7 @@ static int __init _omap_gpio_init(void) | |||
1766 | gpio_bank = gpio_bank_243x; | 1766 | gpio_bank = gpio_bank_243x; |
1767 | } | 1767 | } |
1768 | #endif | 1768 | #endif |
1769 | #ifdef CONFIG_ARCH_OMAP34XX | 1769 | #ifdef CONFIG_ARCH_OMAP3 |
1770 | if (cpu_is_omap34xx()) { | 1770 | if (cpu_is_omap34xx()) { |
1771 | gpio_bank_count = OMAP34XX_NR_GPIOS; | 1771 | gpio_bank_count = OMAP34XX_NR_GPIOS; |
1772 | gpio_bank = gpio_bank_34xx; | 1772 | gpio_bank = gpio_bank_34xx; |
@@ -1809,7 +1809,7 @@ static int __init _omap_gpio_init(void) | |||
1809 | gpio_count = 32; /* 7xx has 32-bit GPIOs */ | 1809 | gpio_count = 32; /* 7xx has 32-bit GPIOs */ |
1810 | } | 1810 | } |
1811 | 1811 | ||
1812 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) || \ | 1812 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ |
1813 | defined(CONFIG_ARCH_OMAP4) | 1813 | defined(CONFIG_ARCH_OMAP4) |
1814 | if (bank->method == METHOD_GPIO_24XX) { | 1814 | if (bank->method == METHOD_GPIO_24XX) { |
1815 | static const u32 non_wakeup_gpios[] = { | 1815 | static const u32 non_wakeup_gpios[] = { |
@@ -1904,7 +1904,7 @@ static int __init _omap_gpio_init(void) | |||
1904 | } | 1904 | } |
1905 | 1905 | ||
1906 | #if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2) || \ | 1906 | #if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2) || \ |
1907 | defined(CONFIG_ARCH_OMAP34XX) || defined(CONFIG_ARCH_OMAP4) | 1907 | defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4) |
1908 | static int omap_gpio_suspend(struct sys_device *dev, pm_message_t mesg) | 1908 | static int omap_gpio_suspend(struct sys_device *dev, pm_message_t mesg) |
1909 | { | 1909 | { |
1910 | int i; | 1910 | int i; |
@@ -1927,7 +1927,7 @@ static int omap_gpio_suspend(struct sys_device *dev, pm_message_t mesg) | |||
1927 | wake_set = bank->base + OMAP1610_GPIO_SET_WAKEUPENA; | 1927 | wake_set = bank->base + OMAP1610_GPIO_SET_WAKEUPENA; |
1928 | break; | 1928 | break; |
1929 | #endif | 1929 | #endif |
1930 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 1930 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
1931 | case METHOD_GPIO_24XX: | 1931 | case METHOD_GPIO_24XX: |
1932 | wake_status = bank->base + OMAP24XX_GPIO_WAKE_EN; | 1932 | wake_status = bank->base + OMAP24XX_GPIO_WAKE_EN; |
1933 | wake_clear = bank->base + OMAP24XX_GPIO_CLEARWKUENA; | 1933 | wake_clear = bank->base + OMAP24XX_GPIO_CLEARWKUENA; |
@@ -1975,7 +1975,7 @@ static int omap_gpio_resume(struct sys_device *dev) | |||
1975 | wake_set = bank->base + OMAP1610_GPIO_SET_WAKEUPENA; | 1975 | wake_set = bank->base + OMAP1610_GPIO_SET_WAKEUPENA; |
1976 | break; | 1976 | break; |
1977 | #endif | 1977 | #endif |
1978 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 1978 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
1979 | case METHOD_GPIO_24XX: | 1979 | case METHOD_GPIO_24XX: |
1980 | wake_clear = bank->base + OMAP24XX_GPIO_CLEARWKUENA; | 1980 | wake_clear = bank->base + OMAP24XX_GPIO_CLEARWKUENA; |
1981 | wake_set = bank->base + OMAP24XX_GPIO_SETWKUENA; | 1981 | wake_set = bank->base + OMAP24XX_GPIO_SETWKUENA; |
@@ -2013,7 +2013,7 @@ static struct sys_device omap_gpio_device = { | |||
2013 | 2013 | ||
2014 | #endif | 2014 | #endif |
2015 | 2015 | ||
2016 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) || \ | 2016 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ |
2017 | defined(CONFIG_ARCH_OMAP4) | 2017 | defined(CONFIG_ARCH_OMAP4) |
2018 | 2018 | ||
2019 | static int workaround_enabled; | 2019 | static int workaround_enabled; |
@@ -2030,7 +2030,7 @@ void omap2_gpio_prepare_for_retention(void) | |||
2030 | 2030 | ||
2031 | if (!(bank->enabled_non_wakeup_gpios)) | 2031 | if (!(bank->enabled_non_wakeup_gpios)) |
2032 | continue; | 2032 | continue; |
2033 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 2033 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
2034 | bank->saved_datain = __raw_readl(bank->base + OMAP24XX_GPIO_DATAIN); | 2034 | bank->saved_datain = __raw_readl(bank->base + OMAP24XX_GPIO_DATAIN); |
2035 | l1 = __raw_readl(bank->base + OMAP24XX_GPIO_FALLINGDETECT); | 2035 | l1 = __raw_readl(bank->base + OMAP24XX_GPIO_FALLINGDETECT); |
2036 | l2 = __raw_readl(bank->base + OMAP24XX_GPIO_RISINGDETECT); | 2036 | l2 = __raw_readl(bank->base + OMAP24XX_GPIO_RISINGDETECT); |
@@ -2045,7 +2045,7 @@ void omap2_gpio_prepare_for_retention(void) | |||
2045 | bank->saved_risingdetect = l2; | 2045 | bank->saved_risingdetect = l2; |
2046 | l1 &= ~bank->enabled_non_wakeup_gpios; | 2046 | l1 &= ~bank->enabled_non_wakeup_gpios; |
2047 | l2 &= ~bank->enabled_non_wakeup_gpios; | 2047 | l2 &= ~bank->enabled_non_wakeup_gpios; |
2048 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 2048 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
2049 | __raw_writel(l1, bank->base + OMAP24XX_GPIO_FALLINGDETECT); | 2049 | __raw_writel(l1, bank->base + OMAP24XX_GPIO_FALLINGDETECT); |
2050 | __raw_writel(l2, bank->base + OMAP24XX_GPIO_RISINGDETECT); | 2050 | __raw_writel(l2, bank->base + OMAP24XX_GPIO_RISINGDETECT); |
2051 | #endif | 2051 | #endif |
@@ -2074,7 +2074,7 @@ void omap2_gpio_resume_after_retention(void) | |||
2074 | 2074 | ||
2075 | if (!(bank->enabled_non_wakeup_gpios)) | 2075 | if (!(bank->enabled_non_wakeup_gpios)) |
2076 | continue; | 2076 | continue; |
2077 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 2077 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
2078 | __raw_writel(bank->saved_fallingdetect, | 2078 | __raw_writel(bank->saved_fallingdetect, |
2079 | bank->base + OMAP24XX_GPIO_FALLINGDETECT); | 2079 | bank->base + OMAP24XX_GPIO_FALLINGDETECT); |
2080 | __raw_writel(bank->saved_risingdetect, | 2080 | __raw_writel(bank->saved_risingdetect, |
@@ -2113,7 +2113,7 @@ void omap2_gpio_resume_after_retention(void) | |||
2113 | 2113 | ||
2114 | if (gen) { | 2114 | if (gen) { |
2115 | u32 old0, old1; | 2115 | u32 old0, old1; |
2116 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 2116 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
2117 | old0 = __raw_readl(bank->base + OMAP24XX_GPIO_LEVELDETECT0); | 2117 | old0 = __raw_readl(bank->base + OMAP24XX_GPIO_LEVELDETECT0); |
2118 | old1 = __raw_readl(bank->base + OMAP24XX_GPIO_LEVELDETECT1); | 2118 | old1 = __raw_readl(bank->base + OMAP24XX_GPIO_LEVELDETECT1); |
2119 | __raw_writel(old0 | gen, bank->base + | 2119 | __raw_writel(old0 | gen, bank->base + |
@@ -2144,7 +2144,7 @@ void omap2_gpio_resume_after_retention(void) | |||
2144 | 2144 | ||
2145 | #endif | 2145 | #endif |
2146 | 2146 | ||
2147 | #ifdef CONFIG_ARCH_OMAP34XX | 2147 | #ifdef CONFIG_ARCH_OMAP3 |
2148 | /* save the registers of bank 2-6 */ | 2148 | /* save the registers of bank 2-6 */ |
2149 | void omap_gpio_save_context(void) | 2149 | void omap_gpio_save_context(void) |
2150 | { | 2150 | { |
@@ -2241,7 +2241,7 @@ static int __init omap_gpio_sysinit(void) | |||
2241 | mpuio_init(); | 2241 | mpuio_init(); |
2242 | 2242 | ||
2243 | #if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2) || \ | 2243 | #if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2) || \ |
2244 | defined(CONFIG_ARCH_OMAP34XX) || defined(CONFIG_ARCH_OMAP4) | 2244 | defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4) |
2245 | if (cpu_is_omap16xx() || cpu_class_is_omap2()) { | 2245 | if (cpu_is_omap16xx() || cpu_class_is_omap2()) { |
2246 | if (ret == 0) { | 2246 | if (ret == 0) { |
2247 | ret = sysdev_class_register(&omap_gpio_sysclass); | 2247 | ret = sysdev_class_register(&omap_gpio_sysclass); |
@@ -2301,7 +2301,7 @@ static int dbg_gpio_show(struct seq_file *s, void *unused) | |||
2301 | 2301 | ||
2302 | irqstat = irq_desc[irq].status; | 2302 | irqstat = irq_desc[irq].status; |
2303 | #if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2) || \ | 2303 | #if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2) || \ |
2304 | defined(CONFIG_ARCH_OMAP34XX) || defined(CONFIG_ARCH_OMAP4) | 2304 | defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4) |
2305 | if (is_in && ((bank->suspend_wakeup & mask) | 2305 | if (is_in && ((bank->suspend_wakeup & mask) |
2306 | || irqstat & IRQ_TYPE_SENSE_MASK)) { | 2306 | || irqstat & IRQ_TYPE_SENSE_MASK)) { |
2307 | char *trigger = NULL; | 2307 | char *trigger = NULL; |
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index 7773bceca442..96d2781ac4f5 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c | |||
@@ -50,10 +50,10 @@ static const char name[] = "i2c_omap"; | |||
50 | 50 | ||
51 | static struct resource i2c_resources[][2] = { | 51 | static struct resource i2c_resources[][2] = { |
52 | { I2C_RESOURCE_BUILDER(0, 0) }, | 52 | { I2C_RESOURCE_BUILDER(0, 0) }, |
53 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 53 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
54 | { I2C_RESOURCE_BUILDER(OMAP2_I2C_BASE2, INT_24XX_I2C2_IRQ) }, | 54 | { I2C_RESOURCE_BUILDER(OMAP2_I2C_BASE2, INT_24XX_I2C2_IRQ) }, |
55 | #endif | 55 | #endif |
56 | #if defined(CONFIG_ARCH_OMAP34XX) | 56 | #if defined(CONFIG_ARCH_OMAP3) |
57 | { I2C_RESOURCE_BUILDER(OMAP2_I2C_BASE3, INT_34XX_I2C3_IRQ) }, | 57 | { I2C_RESOURCE_BUILDER(OMAP2_I2C_BASE3, INT_34XX_I2C3_IRQ) }, |
58 | #endif | 58 | #endif |
59 | }; | 59 | }; |
@@ -72,10 +72,10 @@ static struct resource i2c_resources[][2] = { | |||
72 | static u32 i2c_rate[ARRAY_SIZE(i2c_resources)]; | 72 | static u32 i2c_rate[ARRAY_SIZE(i2c_resources)]; |
73 | static struct platform_device omap_i2c_devices[] = { | 73 | static struct platform_device omap_i2c_devices[] = { |
74 | I2C_DEV_BUILDER(1, i2c_resources[0], &i2c_rate[0]), | 74 | I2C_DEV_BUILDER(1, i2c_resources[0], &i2c_rate[0]), |
75 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 75 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
76 | I2C_DEV_BUILDER(2, i2c_resources[1], &i2c_rate[1]), | 76 | I2C_DEV_BUILDER(2, i2c_resources[1], &i2c_rate[1]), |
77 | #endif | 77 | #endif |
78 | #if defined(CONFIG_ARCH_OMAP34XX) | 78 | #if defined(CONFIG_ARCH_OMAP3) |
79 | I2C_DEV_BUILDER(3, i2c_resources[2], &i2c_rate[2]), | 79 | I2C_DEV_BUILDER(3, i2c_resources[2], &i2c_rate[2]), |
80 | #endif | 80 | #endif |
81 | }; | 81 | }; |
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h index 527aaae61720..995466d0432a 100644 --- a/arch/arm/plat-omap/include/plat/cpu.h +++ b/arch/arm/plat-omap/include/plat/cpu.h | |||
@@ -114,7 +114,7 @@ unsigned int omap_rev(void); | |||
114 | # define OMAP_NAME omap16xx | 114 | # define OMAP_NAME omap16xx |
115 | # endif | 115 | # endif |
116 | #endif | 116 | #endif |
117 | #if (defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX)) | 117 | #if (defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)) |
118 | # if (defined(OMAP_NAME) || defined(MULTI_OMAP1)) | 118 | # if (defined(OMAP_NAME) || defined(MULTI_OMAP1)) |
119 | # error "OMAP1 and OMAP2 can't be selected at the same time" | 119 | # error "OMAP1 and OMAP2 can't be selected at the same time" |
120 | # endif | 120 | # endif |
@@ -241,7 +241,7 @@ IS_OMAP_SUBCLASS(443x, 0x443) | |||
241 | # define cpu_is_omap242x() is_omap242x() | 241 | # define cpu_is_omap242x() is_omap242x() |
242 | # define cpu_is_omap243x() is_omap243x() | 242 | # define cpu_is_omap243x() is_omap243x() |
243 | # endif | 243 | # endif |
244 | # if defined(CONFIG_ARCH_OMAP34XX) | 244 | # if defined(CONFIG_ARCH_OMAP3) |
245 | # undef cpu_is_omap34xx | 245 | # undef cpu_is_omap34xx |
246 | # undef cpu_is_omap343x | 246 | # undef cpu_is_omap343x |
247 | # define cpu_is_omap34xx() is_omap34xx() | 247 | # define cpu_is_omap34xx() is_omap34xx() |
@@ -260,7 +260,7 @@ IS_OMAP_SUBCLASS(443x, 0x443) | |||
260 | # undef cpu_is_omap243x | 260 | # undef cpu_is_omap243x |
261 | # define cpu_is_omap243x() 1 | 261 | # define cpu_is_omap243x() 1 |
262 | # endif | 262 | # endif |
263 | # if defined(CONFIG_ARCH_OMAP34XX) | 263 | # if defined(CONFIG_ARCH_OMAP3) |
264 | # undef cpu_is_omap34xx | 264 | # undef cpu_is_omap34xx |
265 | # define cpu_is_omap34xx() 1 | 265 | # define cpu_is_omap34xx() 1 |
266 | # endif | 266 | # endif |
@@ -385,7 +385,7 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
385 | # define cpu_is_omap2430() is_omap2430() | 385 | # define cpu_is_omap2430() is_omap2430() |
386 | #endif | 386 | #endif |
387 | 387 | ||
388 | #if defined(CONFIG_ARCH_OMAP34XX) | 388 | #if defined(CONFIG_ARCH_OMAP3) |
389 | # undef cpu_is_omap3430 | 389 | # undef cpu_is_omap3430 |
390 | # undef cpu_is_omap3503 | 390 | # undef cpu_is_omap3503 |
391 | # undef cpu_is_omap3515 | 391 | # undef cpu_is_omap3515 |
diff --git a/arch/arm/plat-omap/include/plat/io.h b/arch/arm/plat-omap/include/plat/io.h index 19257bbbc9f3..eef914d53971 100644 --- a/arch/arm/plat-omap/include/plat/io.h +++ b/arch/arm/plat-omap/include/plat/io.h | |||
@@ -284,7 +284,7 @@ static inline void omap243x_map_common_io(void) | |||
284 | } | 284 | } |
285 | #endif | 285 | #endif |
286 | 286 | ||
287 | #ifdef CONFIG_ARCH_OMAP34XX | 287 | #ifdef CONFIG_ARCH_OMAP3 |
288 | extern void omap34xx_map_common_io(void); | 288 | extern void omap34xx_map_common_io(void); |
289 | #else | 289 | #else |
290 | static inline void omap34xx_map_common_io(void) | 290 | static inline void omap34xx_map_common_io(void) |
diff --git a/arch/arm/plat-omap/include/plat/mcbsp.h b/arch/arm/plat-omap/include/plat/mcbsp.h index 951506277ec8..0d7e536a3c95 100644 --- a/arch/arm/plat-omap/include/plat/mcbsp.h +++ b/arch/arm/plat-omap/include/plat/mcbsp.h | |||
@@ -103,7 +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_OMAP34XX) || \ | 106 | #elif defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ |
107 | defined(CONFIG_ARCH_OMAP4) | 107 | defined(CONFIG_ARCH_OMAP4) |
108 | 108 | ||
109 | #define OMAP_MCBSP_REG_DRR2 0x00 | 109 | #define OMAP_MCBSP_REG_DRR2 0x00 |
@@ -374,7 +374,7 @@ struct omap_mcbsp_platform_data { | |||
374 | u8 dma_rx_sync, dma_tx_sync; | 374 | u8 dma_rx_sync, dma_tx_sync; |
375 | u16 rx_irq, tx_irq; | 375 | u16 rx_irq, tx_irq; |
376 | struct omap_mcbsp_ops *ops; | 376 | struct omap_mcbsp_ops *ops; |
377 | #ifdef CONFIG_ARCH_OMAP34XX | 377 | #ifdef CONFIG_ARCH_OMAP3 |
378 | u16 buffer_size; | 378 | u16 buffer_size; |
379 | #endif | 379 | #endif |
380 | }; | 380 | }; |
@@ -410,7 +410,7 @@ struct omap_mcbsp { | |||
410 | struct omap_mcbsp_platform_data *pdata; | 410 | struct omap_mcbsp_platform_data *pdata; |
411 | struct clk *iclk; | 411 | struct clk *iclk; |
412 | struct clk *fclk; | 412 | struct clk *fclk; |
413 | #ifdef CONFIG_ARCH_OMAP34XX | 413 | #ifdef CONFIG_ARCH_OMAP3 |
414 | int dma_op_mode; | 414 | int dma_op_mode; |
415 | u16 max_tx_thres; | 415 | u16 max_tx_thres; |
416 | u16 max_rx_thres; | 416 | u16 max_rx_thres; |
@@ -423,7 +423,7 @@ int omap_mcbsp_init(void); | |||
423 | void omap_mcbsp_register_board_cfg(struct omap_mcbsp_platform_data *config, | 423 | void omap_mcbsp_register_board_cfg(struct omap_mcbsp_platform_data *config, |
424 | int size); | 424 | int size); |
425 | void omap_mcbsp_config(unsigned int id, const struct omap_mcbsp_reg_cfg * config); | 425 | void omap_mcbsp_config(unsigned int id, const struct omap_mcbsp_reg_cfg * config); |
426 | #ifdef CONFIG_ARCH_OMAP34XX | 426 | #ifdef CONFIG_ARCH_OMAP3 |
427 | void omap_mcbsp_set_tx_threshold(unsigned int id, u16 threshold); | 427 | void omap_mcbsp_set_tx_threshold(unsigned int id, u16 threshold); |
428 | void omap_mcbsp_set_rx_threshold(unsigned int id, u16 threshold); | 428 | void omap_mcbsp_set_rx_threshold(unsigned int id, u16 threshold); |
429 | u16 omap_mcbsp_get_max_tx_threshold(unsigned int id); | 429 | u16 omap_mcbsp_get_max_tx_threshold(unsigned int id); |
diff --git a/arch/arm/plat-omap/include/plat/omap34xx.h b/arch/arm/plat-omap/include/plat/omap34xx.h index 077f05979f86..2845fdc658b0 100644 --- a/arch/arm/plat-omap/include/plat/omap34xx.h +++ b/arch/arm/plat-omap/include/plat/omap34xx.h | |||
@@ -21,8 +21,8 @@ | |||
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #ifndef __ASM_ARCH_OMAP34XX_H | 24 | #ifndef __ASM_ARCH_OMAP3_H |
25 | #define __ASM_ARCH_OMAP34XX_H | 25 | #define __ASM_ARCH_OMAP3_H |
26 | 26 | ||
27 | /* | 27 | /* |
28 | * Please place only base defines here and put the rest in device | 28 | * Please place only base defines here and put the rest in device |
@@ -82,5 +82,5 @@ | |||
82 | 82 | ||
83 | #define OMAP34XX_MAILBOX_BASE (L4_34XX_BASE + 0x94000) | 83 | #define OMAP34XX_MAILBOX_BASE (L4_34XX_BASE + 0x94000) |
84 | 84 | ||
85 | #endif /* __ASM_ARCH_OMAP34XX_H */ | 85 | #endif /* __ASM_ARCH_OMAP3_H */ |
86 | 86 | ||
diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c index f75767278fc3..c1eb61529394 100644 --- a/arch/arm/plat-omap/mcbsp.c +++ b/arch/arm/plat-omap/mcbsp.c | |||
@@ -198,7 +198,7 @@ void omap_mcbsp_config(unsigned int id, const struct omap_mcbsp_reg_cfg *config) | |||
198 | } | 198 | } |
199 | EXPORT_SYMBOL(omap_mcbsp_config); | 199 | EXPORT_SYMBOL(omap_mcbsp_config); |
200 | 200 | ||
201 | #ifdef CONFIG_ARCH_OMAP34XX | 201 | #ifdef CONFIG_ARCH_OMAP3 |
202 | /* | 202 | /* |
203 | * omap_mcbsp_set_tx_threshold configures how to deal | 203 | * omap_mcbsp_set_tx_threshold configures how to deal |
204 | * with transmit threshold. the threshold value and handler can be | 204 | * with transmit threshold. the threshold value and handler can be |
@@ -1107,7 +1107,7 @@ void omap_mcbsp_set_spi_mode(unsigned int id, | |||
1107 | } | 1107 | } |
1108 | EXPORT_SYMBOL(omap_mcbsp_set_spi_mode); | 1108 | EXPORT_SYMBOL(omap_mcbsp_set_spi_mode); |
1109 | 1109 | ||
1110 | #ifdef CONFIG_ARCH_OMAP34XX | 1110 | #ifdef CONFIG_ARCH_OMAP3 |
1111 | #define max_thres(m) (mcbsp->pdata->buffer_size) | 1111 | #define max_thres(m) (mcbsp->pdata->buffer_size) |
1112 | #define valid_threshold(m, val) ((val) <= max_thres(m)) | 1112 | #define valid_threshold(m, val) ((val) <= max_thres(m)) |
1113 | #define THRESHOLD_PROP_BUILDER(prop) \ | 1113 | #define THRESHOLD_PROP_BUILDER(prop) \ |
@@ -1246,7 +1246,7 @@ static inline void __devexit omap34xx_device_exit(struct omap_mcbsp *mcbsp) | |||
1246 | #else | 1246 | #else |
1247 | static inline void __devinit omap34xx_device_init(struct omap_mcbsp *mcbsp) {} | 1247 | static inline void __devinit omap34xx_device_init(struct omap_mcbsp *mcbsp) {} |
1248 | static inline void __devexit omap34xx_device_exit(struct omap_mcbsp *mcbsp) {} | 1248 | static inline void __devexit omap34xx_device_exit(struct omap_mcbsp *mcbsp) {} |
1249 | #endif /* CONFIG_ARCH_OMAP34XX */ | 1249 | #endif /* CONFIG_ARCH_OMAP3 */ |
1250 | 1250 | ||
1251 | /* | 1251 | /* |
1252 | * McBSP1 and McBSP3 are directly mapped on 1610 and 1510. | 1252 | * McBSP1 and McBSP3 are directly mapped on 1610 and 1510. |
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index e0cbb9349bc1..51f4dfb82e2b 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c | |||
@@ -53,7 +53,7 @@ | |||
53 | #define OMAP4_SRAM_PUB_PA (OMAP4_SRAM_PA + 0x4000) | 53 | #define OMAP4_SRAM_PUB_PA (OMAP4_SRAM_PA + 0x4000) |
54 | #define OMAP4_SRAM_PUB_VA (OMAP4_SRAM_VA + 0x4000) | 54 | #define OMAP4_SRAM_PUB_VA (OMAP4_SRAM_VA + 0x4000) |
55 | 55 | ||
56 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP34XX) | 56 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
57 | #define SRAM_BOOTLOADER_SZ 0x00 | 57 | #define SRAM_BOOTLOADER_SZ 0x00 |
58 | #else | 58 | #else |
59 | #define SRAM_BOOTLOADER_SZ 0x80 | 59 | #define SRAM_BOOTLOADER_SZ 0x80 |