diff options
| -rw-r--r-- | arch/arm/mach-omap2/board-rx51-peripherals.c | 6 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/clock3xxx_data.c | 2 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/dsp.c | 3 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/id.c | 11 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/irq.c | 1 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/mux.c | 3 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/mux.h | 11 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/omap_l3_smx.c | 3 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/pm34xx.c | 1 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/prm2xxx_3xxx.c | 14 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/serial.c | 67 | ||||
| -rw-r--r-- | arch/arm/plat-omap/include/plat/cpu.h | 33 | ||||
| -rw-r--r-- | arch/arm/plat-omap/include/plat/mmc.h | 4 |
13 files changed, 110 insertions, 49 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index ff53deccecab..df2534de3361 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
| @@ -144,7 +144,6 @@ static struct lis3lv02d_platform_data rx51_lis3lv02d_data = { | |||
| 144 | .release_resources = lis302_release, | 144 | .release_resources = lis302_release, |
| 145 | .st_min_limits = {-32, 3, 3}, | 145 | .st_min_limits = {-32, 3, 3}, |
| 146 | .st_max_limits = {-3, 32, 32}, | 146 | .st_max_limits = {-3, 32, 32}, |
| 147 | .irq2 = OMAP_GPIO_IRQ(LIS302_IRQ2_GPIO), | ||
| 148 | }; | 147 | }; |
| 149 | #endif | 148 | #endif |
| 150 | 149 | ||
| @@ -1030,7 +1029,6 @@ static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_3[] = { | |||
| 1030 | { | 1029 | { |
| 1031 | I2C_BOARD_INFO("lis3lv02d", 0x1d), | 1030 | I2C_BOARD_INFO("lis3lv02d", 0x1d), |
| 1032 | .platform_data = &rx51_lis3lv02d_data, | 1031 | .platform_data = &rx51_lis3lv02d_data, |
| 1033 | .irq = OMAP_GPIO_IRQ(LIS302_IRQ1_GPIO), | ||
| 1034 | }, | 1032 | }, |
| 1035 | #endif | 1033 | #endif |
| 1036 | }; | 1034 | }; |
| @@ -1056,6 +1054,10 @@ static int __init rx51_i2c_init(void) | |||
| 1056 | omap_pmic_init(1, 2200, "twl5030", INT_34XX_SYS_NIRQ, &rx51_twldata); | 1054 | omap_pmic_init(1, 2200, "twl5030", INT_34XX_SYS_NIRQ, &rx51_twldata); |
| 1057 | omap_register_i2c_bus(2, 100, rx51_peripherals_i2c_board_info_2, | 1055 | omap_register_i2c_bus(2, 100, rx51_peripherals_i2c_board_info_2, |
| 1058 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_2)); | 1056 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_2)); |
| 1057 | #if defined(CONFIG_SENSORS_LIS3_I2C) || defined(CONFIG_SENSORS_LIS3_I2C_MODULE) | ||
| 1058 | rx51_lis3lv02d_data.irq2 = gpio_to_irq(LIS302_IRQ2_GPIO); | ||
| 1059 | rx51_peripherals_i2c_board_info_3[0].irq = gpio_to_irq(LIS302_IRQ1_GPIO); | ||
| 1060 | #endif | ||
| 1059 | omap_register_i2c_bus(3, 400, rx51_peripherals_i2c_board_info_3, | 1061 | omap_register_i2c_bus(3, 400, rx51_peripherals_i2c_board_info_3, |
| 1060 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_3)); | 1062 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_3)); |
| 1061 | return 0; | 1063 | return 0; |
diff --git a/arch/arm/mach-omap2/clock3xxx_data.c b/arch/arm/mach-omap2/clock3xxx_data.c index 4e1a3b0e8cc8..1efdec236ae8 100644 --- a/arch/arm/mach-omap2/clock3xxx_data.c +++ b/arch/arm/mach-omap2/clock3xxx_data.c | |||
| @@ -3514,7 +3514,7 @@ int __init omap3xxx_clk_init(void) | |||
| 3514 | struct omap_clk *c; | 3514 | struct omap_clk *c; |
| 3515 | u32 cpu_clkflg = 0; | 3515 | u32 cpu_clkflg = 0; |
| 3516 | 3516 | ||
| 3517 | if (cpu_is_omap3517()) { | 3517 | if (soc_is_am35xx()) { |
| 3518 | cpu_mask = RATE_IN_34XX; | 3518 | cpu_mask = RATE_IN_34XX; |
| 3519 | cpu_clkflg = CK_AM35XX; | 3519 | cpu_clkflg = CK_AM35XX; |
| 3520 | } else if (cpu_is_omap3630()) { | 3520 | } else if (cpu_is_omap3630()) { |
diff --git a/arch/arm/mach-omap2/dsp.c b/arch/arm/mach-omap2/dsp.c index 845309f146fe..88ffa1e645cd 100644 --- a/arch/arm/mach-omap2/dsp.c +++ b/arch/arm/mach-omap2/dsp.c | |||
| @@ -20,6 +20,9 @@ | |||
| 20 | 20 | ||
| 21 | #include <linux/module.h> | 21 | #include <linux/module.h> |
| 22 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
| 23 | |||
| 24 | #include <asm/memblock.h> | ||
| 25 | |||
| 23 | #include "cm2xxx_3xxx.h" | 26 | #include "cm2xxx_3xxx.h" |
| 24 | #include "prm2xxx_3xxx.h" | 27 | #include "prm2xxx_3xxx.h" |
| 25 | #ifdef CONFIG_BRIDGE_DVFS | 28 | #ifdef CONFIG_BRIDGE_DVFS |
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 0389b3264abe..00486a8564fd 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c | |||
| @@ -247,6 +247,17 @@ void __init omap3xxx_check_features(void) | |||
| 247 | omap_features |= OMAP3_HAS_SDRC; | 247 | omap_features |= OMAP3_HAS_SDRC; |
| 248 | 248 | ||
| 249 | /* | 249 | /* |
| 250 | * am35x fixups: | ||
| 251 | * - The am35x Chip ID register has bits 12, 7:5, and 3:2 marked as | ||
| 252 | * reserved and therefore return 0 when read. Unfortunately, | ||
| 253 | * OMAP3_CHECK_FEATURE() will interpret some of those zeroes to | ||
| 254 | * mean that a feature is present even though it isn't so clear | ||
| 255 | * the incorrectly set feature bits. | ||
| 256 | */ | ||
| 257 | if (soc_is_am35xx()) | ||
| 258 | omap_features &= ~(OMAP3_HAS_IVA | OMAP3_HAS_ISP); | ||
| 259 | |||
| 260 | /* | ||
| 250 | * TODO: Get additional info (where applicable) | 261 | * TODO: Get additional info (where applicable) |
| 251 | * e.g. Size of L2 cache. | 262 | * e.g. Size of L2 cache. |
| 252 | */ | 263 | */ |
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index fdc4303be563..6038a8c84b74 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c | |||
| @@ -149,6 +149,7 @@ omap_alloc_gc(void __iomem *base, unsigned int irq_start, unsigned int num) | |||
| 149 | ct->chip.irq_ack = omap_mask_ack_irq; | 149 | ct->chip.irq_ack = omap_mask_ack_irq; |
| 150 | ct->chip.irq_mask = irq_gc_mask_disable_reg; | 150 | ct->chip.irq_mask = irq_gc_mask_disable_reg; |
| 151 | ct->chip.irq_unmask = irq_gc_unmask_enable_reg; | 151 | ct->chip.irq_unmask = irq_gc_unmask_enable_reg; |
| 152 | ct->chip.flags |= IRQCHIP_SKIP_SET_WAKE; | ||
| 152 | 153 | ||
| 153 | ct->regs.enable = INTC_MIR_CLEAR0; | 154 | ct->regs.enable = INTC_MIR_CLEAR0; |
| 154 | ct->regs.disable = INTC_MIR_SET0; | 155 | ct->regs.disable = INTC_MIR_SET0; |
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 80e55c5c9998..4b46b91cca5c 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
| @@ -217,8 +217,7 @@ static int __init _omap_mux_get_by_name(struct omap_mux_partition *partition, | |||
| 217 | return -ENODEV; | 217 | return -ENODEV; |
| 218 | } | 218 | } |
| 219 | 219 | ||
| 220 | static int __init | 220 | int __init omap_mux_get_by_name(const char *muxname, |
| 221 | omap_mux_get_by_name(const char *muxname, | ||
| 222 | struct omap_mux_partition **found_partition, | 221 | struct omap_mux_partition **found_partition, |
| 223 | struct omap_mux **found_mux) | 222 | struct omap_mux **found_mux) |
| 224 | { | 223 | { |
diff --git a/arch/arm/mach-omap2/mux.h b/arch/arm/mach-omap2/mux.h index 69fe060a0b75..471e62a74a16 100644 --- a/arch/arm/mach-omap2/mux.h +++ b/arch/arm/mach-omap2/mux.h | |||
| @@ -59,6 +59,7 @@ | |||
| 59 | #define OMAP_PIN_OFF_WAKEUPENABLE OMAP_WAKEUP_EN | 59 | #define OMAP_PIN_OFF_WAKEUPENABLE OMAP_WAKEUP_EN |
| 60 | 60 | ||
| 61 | #define OMAP_MODE_GPIO(x) (((x) & OMAP_MUX_MODE7) == OMAP_MUX_MODE4) | 61 | #define OMAP_MODE_GPIO(x) (((x) & OMAP_MUX_MODE7) == OMAP_MUX_MODE4) |
| 62 | #define OMAP_MODE_UART(x) (((x) & OMAP_MUX_MODE7) == OMAP_MUX_MODE0) | ||
| 62 | 63 | ||
| 63 | /* Flags for omapX_mux_init */ | 64 | /* Flags for omapX_mux_init */ |
| 64 | #define OMAP_PACKAGE_MASK 0xffff | 65 | #define OMAP_PACKAGE_MASK 0xffff |
| @@ -225,8 +226,18 @@ omap_hwmod_mux_init(struct omap_device_pad *bpads, int nr_pads); | |||
| 225 | */ | 226 | */ |
| 226 | void omap_hwmod_mux(struct omap_hwmod_mux_info *hmux, u8 state); | 227 | void omap_hwmod_mux(struct omap_hwmod_mux_info *hmux, u8 state); |
| 227 | 228 | ||
| 229 | int omap_mux_get_by_name(const char *muxname, | ||
| 230 | struct omap_mux_partition **found_partition, | ||
| 231 | struct omap_mux **found_mux); | ||
| 228 | #else | 232 | #else |
| 229 | 233 | ||
| 234 | static inline int omap_mux_get_by_name(const char *muxname, | ||
| 235 | struct omap_mux_partition **found_partition, | ||
| 236 | struct omap_mux **found_mux) | ||
| 237 | { | ||
| 238 | return 0; | ||
| 239 | } | ||
| 240 | |||
| 230 | static inline int omap_mux_init_gpio(int gpio, int val) | 241 | static inline int omap_mux_init_gpio(int gpio, int val) |
| 231 | { | 242 | { |
| 232 | return 0; | 243 | return 0; |
diff --git a/arch/arm/mach-omap2/omap_l3_smx.c b/arch/arm/mach-omap2/omap_l3_smx.c index a05a62f9ee5b..acc216491b8a 100644 --- a/arch/arm/mach-omap2/omap_l3_smx.c +++ b/arch/arm/mach-omap2/omap_l3_smx.c | |||
| @@ -155,10 +155,11 @@ static irqreturn_t omap3_l3_block_irq(struct omap3_l3 *l3, | |||
| 155 | u8 multi = error & L3_ERROR_LOG_MULTI; | 155 | u8 multi = error & L3_ERROR_LOG_MULTI; |
| 156 | u32 address = omap3_l3_decode_addr(error_addr); | 156 | u32 address = omap3_l3_decode_addr(error_addr); |
| 157 | 157 | ||
| 158 | WARN(true, "%s seen by %s %s at address %x\n", | 158 | pr_err("%s seen by %s %s at address %x\n", |
| 159 | omap3_l3_code_string(code), | 159 | omap3_l3_code_string(code), |
| 160 | omap3_l3_initiator_string(initid), | 160 | omap3_l3_initiator_string(initid), |
| 161 | multi ? "Multiple Errors" : "", address); | 161 | multi ? "Multiple Errors" : "", address); |
| 162 | WARN_ON(1); | ||
| 162 | 163 | ||
| 163 | return IRQ_HANDLED; | 164 | return IRQ_HANDLED; |
| 164 | } | 165 | } |
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index a34023d0ca7c..3a595e899724 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c | |||
| @@ -724,6 +724,7 @@ int __init omap3_pm_init(void) | |||
| 724 | ret = request_irq(omap_prcm_event_to_irq("io"), | 724 | ret = request_irq(omap_prcm_event_to_irq("io"), |
| 725 | _prcm_int_handle_io, IRQF_SHARED | IRQF_NO_SUSPEND, "pm_io", | 725 | _prcm_int_handle_io, IRQF_SHARED | IRQF_NO_SUSPEND, "pm_io", |
| 726 | omap3_pm_init); | 726 | omap3_pm_init); |
| 727 | enable_irq(omap_prcm_event_to_irq("io")); | ||
| 727 | 728 | ||
| 728 | if (ret) { | 729 | if (ret) { |
| 729 | pr_err("pm: Failed to request pm_io irq\n"); | 730 | pr_err("pm: Failed to request pm_io irq\n"); |
diff --git a/arch/arm/mach-omap2/prm2xxx_3xxx.c b/arch/arm/mach-omap2/prm2xxx_3xxx.c index 9ce765407ad5..21cb74003a56 100644 --- a/arch/arm/mach-omap2/prm2xxx_3xxx.c +++ b/arch/arm/mach-omap2/prm2xxx_3xxx.c | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
| 16 | #include <linux/err.h> | 16 | #include <linux/err.h> |
| 17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
| 18 | #include <linux/irq.h> | ||
| 18 | 19 | ||
| 19 | #include "common.h" | 20 | #include "common.h" |
| 20 | #include <plat/cpu.h> | 21 | #include <plat/cpu.h> |
| @@ -303,8 +304,15 @@ void omap3xxx_prm_restore_irqen(u32 *saved_mask) | |||
| 303 | 304 | ||
| 304 | static int __init omap3xxx_prcm_init(void) | 305 | static int __init omap3xxx_prcm_init(void) |
| 305 | { | 306 | { |
| 306 | if (cpu_is_omap34xx()) | 307 | int ret = 0; |
| 307 | return omap_prcm_register_chain_handler(&omap3_prcm_irq_setup); | 308 | |
| 308 | return 0; | 309 | if (cpu_is_omap34xx()) { |
| 310 | ret = omap_prcm_register_chain_handler(&omap3_prcm_irq_setup); | ||
| 311 | if (!ret) | ||
| 312 | irq_set_status_flags(omap_prcm_event_to_irq("io"), | ||
| 313 | IRQ_NOAUTOEN); | ||
| 314 | } | ||
| 315 | |||
| 316 | return ret; | ||
| 309 | } | 317 | } |
| 310 | subsys_initcall(omap3xxx_prcm_init); | 318 | subsys_initcall(omap3xxx_prcm_init); |
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 292d4aaca068..c1b93c752d70 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
| @@ -57,6 +57,7 @@ struct omap_uart_state { | |||
| 57 | 57 | ||
| 58 | struct list_head node; | 58 | struct list_head node; |
| 59 | struct omap_hwmod *oh; | 59 | struct omap_hwmod *oh; |
| 60 | struct omap_device_pad default_omap_uart_pads[2]; | ||
| 60 | }; | 61 | }; |
| 61 | 62 | ||
| 62 | static LIST_HEAD(uart_list); | 63 | static LIST_HEAD(uart_list); |
| @@ -126,11 +127,70 @@ static void omap_uart_set_smartidle(struct platform_device *pdev) {} | |||
| 126 | #endif /* CONFIG_PM */ | 127 | #endif /* CONFIG_PM */ |
| 127 | 128 | ||
| 128 | #ifdef CONFIG_OMAP_MUX | 129 | #ifdef CONFIG_OMAP_MUX |
| 129 | static void omap_serial_fill_default_pads(struct omap_board_data *bdata) | 130 | |
| 131 | #define OMAP_UART_DEFAULT_PAD_NAME_LEN 28 | ||
| 132 | static char rx_pad_name[OMAP_UART_DEFAULT_PAD_NAME_LEN], | ||
| 133 | tx_pad_name[OMAP_UART_DEFAULT_PAD_NAME_LEN] __initdata; | ||
| 134 | |||
| 135 | static void __init | ||
| 136 | omap_serial_fill_uart_tx_rx_pads(struct omap_board_data *bdata, | ||
| 137 | struct omap_uart_state *uart) | ||
| 138 | { | ||
| 139 | uart->default_omap_uart_pads[0].name = rx_pad_name; | ||
| 140 | uart->default_omap_uart_pads[0].flags = OMAP_DEVICE_PAD_REMUX | | ||
| 141 | OMAP_DEVICE_PAD_WAKEUP; | ||
| 142 | uart->default_omap_uart_pads[0].enable = OMAP_PIN_INPUT | | ||
| 143 | OMAP_MUX_MODE0; | ||
| 144 | uart->default_omap_uart_pads[0].idle = OMAP_PIN_INPUT | OMAP_MUX_MODE0; | ||
| 145 | uart->default_omap_uart_pads[1].name = tx_pad_name; | ||
| 146 | uart->default_omap_uart_pads[1].enable = OMAP_PIN_OUTPUT | | ||
| 147 | OMAP_MUX_MODE0; | ||
| 148 | bdata->pads = uart->default_omap_uart_pads; | ||
| 149 | bdata->pads_cnt = ARRAY_SIZE(uart->default_omap_uart_pads); | ||
| 150 | } | ||
| 151 | |||
| 152 | static void __init omap_serial_check_wakeup(struct omap_board_data *bdata, | ||
| 153 | struct omap_uart_state *uart) | ||
| 130 | { | 154 | { |
| 155 | struct omap_mux_partition *tx_partition = NULL, *rx_partition = NULL; | ||
| 156 | struct omap_mux *rx_mux = NULL, *tx_mux = NULL; | ||
| 157 | char *rx_fmt, *tx_fmt; | ||
| 158 | int uart_nr = bdata->id + 1; | ||
| 159 | |||
| 160 | if (bdata->id != 2) { | ||
| 161 | rx_fmt = "uart%d_rx.uart%d_rx"; | ||
| 162 | tx_fmt = "uart%d_tx.uart%d_tx"; | ||
| 163 | } else { | ||
| 164 | rx_fmt = "uart%d_rx_irrx.uart%d_rx_irrx"; | ||
| 165 | tx_fmt = "uart%d_tx_irtx.uart%d_tx_irtx"; | ||
| 166 | } | ||
| 167 | |||
| 168 | snprintf(rx_pad_name, OMAP_UART_DEFAULT_PAD_NAME_LEN, rx_fmt, | ||
| 169 | uart_nr, uart_nr); | ||
| 170 | snprintf(tx_pad_name, OMAP_UART_DEFAULT_PAD_NAME_LEN, tx_fmt, | ||
| 171 | uart_nr, uart_nr); | ||
| 172 | |||
| 173 | if (omap_mux_get_by_name(rx_pad_name, &rx_partition, &rx_mux) >= 0 && | ||
| 174 | omap_mux_get_by_name | ||
| 175 | (tx_pad_name, &tx_partition, &tx_mux) >= 0) { | ||
| 176 | u16 tx_mode, rx_mode; | ||
| 177 | |||
| 178 | tx_mode = omap_mux_read(tx_partition, tx_mux->reg_offset); | ||
| 179 | rx_mode = omap_mux_read(rx_partition, rx_mux->reg_offset); | ||
| 180 | |||
| 181 | /* | ||
| 182 | * Check if uart is used in default tx/rx mode i.e. in mux mode0 | ||
| 183 | * if yes then configure rx pin for wake up capability | ||
| 184 | */ | ||
| 185 | if (OMAP_MODE_UART(rx_mode) && OMAP_MODE_UART(tx_mode)) | ||
| 186 | omap_serial_fill_uart_tx_rx_pads(bdata, uart); | ||
| 187 | } | ||
| 131 | } | 188 | } |
| 132 | #else | 189 | #else |
| 133 | static void omap_serial_fill_default_pads(struct omap_board_data *bdata) {} | 190 | static void __init omap_serial_check_wakeup(struct omap_board_data *bdata, |
| 191 | struct omap_uart_state *uart) | ||
| 192 | { | ||
| 193 | } | ||
| 134 | #endif | 194 | #endif |
| 135 | 195 | ||
| 136 | static char *cmdline_find_option(char *str) | 196 | static char *cmdline_find_option(char *str) |
| @@ -287,8 +347,7 @@ void __init omap_serial_board_init(struct omap_uart_port_info *info) | |||
| 287 | bdata.pads = NULL; | 347 | bdata.pads = NULL; |
| 288 | bdata.pads_cnt = 0; | 348 | bdata.pads_cnt = 0; |
| 289 | 349 | ||
| 290 | if (cpu_is_omap44xx() || cpu_is_omap34xx()) | 350 | omap_serial_check_wakeup(&bdata, uart); |
| 291 | omap_serial_fill_default_pads(&bdata); | ||
| 292 | 351 | ||
| 293 | if (!info) | 352 | if (!info) |
| 294 | omap_serial_init_port(&bdata, NULL); | 353 | omap_serial_init_port(&bdata, NULL); |
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h index 297245dba66e..de6c0a08f461 100644 --- a/arch/arm/plat-omap/include/plat/cpu.h +++ b/arch/arm/plat-omap/include/plat/cpu.h | |||
| @@ -252,8 +252,6 @@ IS_AM_SUBCLASS(335x, 0x335) | |||
| 252 | * cpu_is_omap2423(): True for OMAP2423 | 252 | * cpu_is_omap2423(): True for OMAP2423 |
| 253 | * cpu_is_omap2430(): True for OMAP2430 | 253 | * cpu_is_omap2430(): True for OMAP2430 |
| 254 | * cpu_is_omap3430(): True for OMAP3430 | 254 | * cpu_is_omap3430(): True for OMAP3430 |
| 255 | * cpu_is_omap3505(): True for OMAP3505 | ||
| 256 | * cpu_is_omap3517(): True for OMAP3517 | ||
| 257 | */ | 255 | */ |
| 258 | #define GET_OMAP_TYPE ((omap_rev() >> 16) & 0xffff) | 256 | #define GET_OMAP_TYPE ((omap_rev() >> 16) & 0xffff) |
| 259 | 257 | ||
| @@ -277,8 +275,6 @@ IS_OMAP_TYPE(2422, 0x2422) | |||
| 277 | IS_OMAP_TYPE(2423, 0x2423) | 275 | IS_OMAP_TYPE(2423, 0x2423) |
| 278 | IS_OMAP_TYPE(2430, 0x2430) | 276 | IS_OMAP_TYPE(2430, 0x2430) |
| 279 | IS_OMAP_TYPE(3430, 0x3430) | 277 | IS_OMAP_TYPE(3430, 0x3430) |
| 280 | IS_OMAP_TYPE(3505, 0x3517) | ||
| 281 | IS_OMAP_TYPE(3517, 0x3517) | ||
| 282 | 278 | ||
| 283 | #define cpu_is_omap310() 0 | 279 | #define cpu_is_omap310() 0 |
| 284 | #define cpu_is_omap730() 0 | 280 | #define cpu_is_omap730() 0 |
| @@ -293,12 +289,6 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
| 293 | #define cpu_is_omap2422() 0 | 289 | #define cpu_is_omap2422() 0 |
| 294 | #define cpu_is_omap2423() 0 | 290 | #define cpu_is_omap2423() 0 |
| 295 | #define cpu_is_omap2430() 0 | 291 | #define cpu_is_omap2430() 0 |
| 296 | #define cpu_is_omap3503() 0 | ||
| 297 | #define cpu_is_omap3515() 0 | ||
| 298 | #define cpu_is_omap3525() 0 | ||
| 299 | #define cpu_is_omap3530() 0 | ||
| 300 | #define cpu_is_omap3505() 0 | ||
| 301 | #define cpu_is_omap3517() 0 | ||
| 302 | #define cpu_is_omap3430() 0 | 292 | #define cpu_is_omap3430() 0 |
| 303 | #define cpu_is_omap3630() 0 | 293 | #define cpu_is_omap3630() 0 |
| 304 | 294 | ||
| @@ -350,12 +340,6 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
| 350 | 340 | ||
| 351 | #if defined(CONFIG_ARCH_OMAP3) | 341 | #if defined(CONFIG_ARCH_OMAP3) |
| 352 | # undef cpu_is_omap3430 | 342 | # undef cpu_is_omap3430 |
| 353 | # undef cpu_is_omap3503 | ||
| 354 | # undef cpu_is_omap3515 | ||
| 355 | # undef cpu_is_omap3525 | ||
| 356 | # undef cpu_is_omap3530 | ||
| 357 | # undef cpu_is_omap3505 | ||
| 358 | # undef cpu_is_omap3517 | ||
| 359 | # undef cpu_is_ti81xx | 343 | # undef cpu_is_ti81xx |
| 360 | # undef cpu_is_ti816x | 344 | # undef cpu_is_ti816x |
| 361 | # undef cpu_is_ti814x | 345 | # undef cpu_is_ti814x |
| @@ -363,19 +347,6 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
| 363 | # undef cpu_is_am33xx | 347 | # undef cpu_is_am33xx |
| 364 | # undef cpu_is_am335x | 348 | # undef cpu_is_am335x |
| 365 | # define cpu_is_omap3430() is_omap3430() | 349 | # define cpu_is_omap3430() is_omap3430() |
| 366 | # define cpu_is_omap3503() (cpu_is_omap3430() && \ | ||
| 367 | (!omap3_has_iva()) && \ | ||
| 368 | (!omap3_has_sgx())) | ||
| 369 | # define cpu_is_omap3515() (cpu_is_omap3430() && \ | ||
| 370 | (!omap3_has_iva()) && \ | ||
| 371 | (omap3_has_sgx())) | ||
| 372 | # define cpu_is_omap3525() (cpu_is_omap3430() && \ | ||
| 373 | (!omap3_has_sgx()) && \ | ||
| 374 | (omap3_has_iva())) | ||
| 375 | # define cpu_is_omap3530() (cpu_is_omap3430()) | ||
| 376 | # define cpu_is_omap3517() is_omap3517() | ||
| 377 | # define cpu_is_omap3505() (cpu_is_omap3517() && \ | ||
| 378 | !omap3_has_sgx()) | ||
| 379 | # undef cpu_is_omap3630 | 350 | # undef cpu_is_omap3630 |
| 380 | # define cpu_is_omap3630() is_omap363x() | 351 | # define cpu_is_omap3630() is_omap363x() |
| 381 | # define cpu_is_ti81xx() is_ti81xx() | 352 | # define cpu_is_ti81xx() is_ti81xx() |
| @@ -424,10 +395,6 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
| 424 | #define OMAP3630_REV_ES1_1 (OMAP363X_CLASS | (0x1 << 8)) | 395 | #define OMAP3630_REV_ES1_1 (OMAP363X_CLASS | (0x1 << 8)) |
| 425 | #define OMAP3630_REV_ES1_2 (OMAP363X_CLASS | (0x2 << 8)) | 396 | #define OMAP3630_REV_ES1_2 (OMAP363X_CLASS | (0x2 << 8)) |
| 426 | 397 | ||
| 427 | #define OMAP3517_CLASS 0x35170034 | ||
| 428 | #define OMAP3517_REV_ES1_0 OMAP3517_CLASS | ||
| 429 | #define OMAP3517_REV_ES1_1 (OMAP3517_CLASS | (0x1 << 8)) | ||
| 430 | |||
| 431 | #define TI816X_CLASS 0x81600034 | 398 | #define TI816X_CLASS 0x81600034 |
| 432 | #define TI8168_REV_ES1_0 TI816X_CLASS | 399 | #define TI8168_REV_ES1_0 TI816X_CLASS |
| 433 | #define TI8168_REV_ES1_1 (TI816X_CLASS | (0x1 << 8)) | 400 | #define TI8168_REV_ES1_1 (TI816X_CLASS | (0x1 << 8)) |
diff --git a/arch/arm/plat-omap/include/plat/mmc.h b/arch/arm/plat-omap/include/plat/mmc.h index a7754a886d42..5493bd95da5e 100644 --- a/arch/arm/plat-omap/include/plat/mmc.h +++ b/arch/arm/plat-omap/include/plat/mmc.h | |||
| @@ -172,8 +172,7 @@ struct omap_mmc_platform_data { | |||
| 172 | extern void omap_mmc_notify_cover_event(struct device *dev, int slot, | 172 | extern void omap_mmc_notify_cover_event(struct device *dev, int slot, |
| 173 | int is_closed); | 173 | int is_closed); |
| 174 | 174 | ||
| 175 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) || \ | 175 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) |
| 176 | defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE) | ||
| 177 | void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data, | 176 | void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data, |
| 178 | int nr_controllers); | 177 | int nr_controllers); |
| 179 | void omap242x_init_mmc(struct omap_mmc_platform_data **mmc_data); | 178 | void omap242x_init_mmc(struct omap_mmc_platform_data **mmc_data); |
| @@ -185,7 +184,6 @@ static inline void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data, | |||
| 185 | static inline void omap242x_init_mmc(struct omap_mmc_platform_data **mmc_data) | 184 | static inline void omap242x_init_mmc(struct omap_mmc_platform_data **mmc_data) |
| 186 | { | 185 | { |
| 187 | } | 186 | } |
| 188 | |||
| 189 | #endif | 187 | #endif |
| 190 | 188 | ||
| 191 | extern int omap_msdi_reset(struct omap_hwmod *oh); | 189 | extern int omap_msdi_reset(struct omap_hwmod *oh); |
