diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-innovator.c')
| -rw-r--r-- | arch/arm/mach-omap1/board-innovator.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index db5f7d2976e7..f8033fab0f82 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
| @@ -33,16 +33,15 @@ | |||
| 33 | 33 | ||
| 34 | #include <mach/mux.h> | 34 | #include <mach/mux.h> |
| 35 | #include <mach/flash.h> | 35 | #include <mach/flash.h> |
| 36 | #include <plat/fpga.h> | 36 | #include <mach/tc.h> |
| 37 | #include <plat/tc.h> | ||
| 38 | #include <linux/platform_data/keypad-omap.h> | 37 | #include <linux/platform_data/keypad-omap.h> |
| 39 | #include <plat/mmc.h> | ||
| 40 | 38 | ||
| 41 | #include <mach/hardware.h> | 39 | #include <mach/hardware.h> |
| 42 | #include <mach/usb.h> | 40 | #include <mach/usb.h> |
| 43 | 41 | ||
| 44 | #include "iomap.h" | 42 | #include "iomap.h" |
| 45 | #include "common.h" | 43 | #include "common.h" |
| 44 | #include "mmc.h" | ||
| 46 | 45 | ||
| 47 | /* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */ | 46 | /* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */ |
| 48 | #define INNOVATOR1610_ETHR_START 0x04000300 | 47 | #define INNOVATOR1610_ETHR_START 0x04000300 |
| @@ -215,7 +214,7 @@ static struct platform_device *innovator1510_devices[] __initdata = { | |||
| 215 | 214 | ||
| 216 | static int innovator_get_pendown_state(void) | 215 | static int innovator_get_pendown_state(void) |
| 217 | { | 216 | { |
| 218 | return !(fpga_read(OMAP1510_FPGA_TOUCHSCREEN) & (1 << 5)); | 217 | return !(__raw_readb(OMAP1510_FPGA_TOUCHSCREEN) & (1 << 5)); |
| 219 | } | 218 | } |
| 220 | 219 | ||
| 221 | static const struct ads7846_platform_data innovator1510_ts_info = { | 220 | static const struct ads7846_platform_data innovator1510_ts_info = { |
| @@ -279,7 +278,7 @@ static struct platform_device *innovator1610_devices[] __initdata = { | |||
| 279 | static void __init innovator_init_smc91x(void) | 278 | static void __init innovator_init_smc91x(void) |
| 280 | { | 279 | { |
| 281 | if (cpu_is_omap1510()) { | 280 | if (cpu_is_omap1510()) { |
| 282 | fpga_write(fpga_read(OMAP1510_FPGA_RST) & ~1, | 281 | __raw_writeb(__raw_readb(OMAP1510_FPGA_RST) & ~1, |
| 283 | OMAP1510_FPGA_RST); | 282 | OMAP1510_FPGA_RST); |
| 284 | udelay(750); | 283 | udelay(750); |
| 285 | } else { | 284 | } else { |
| @@ -335,10 +334,10 @@ static int mmc_set_power(struct device *dev, int slot, int power_on, | |||
| 335 | int vdd) | 334 | int vdd) |
| 336 | { | 335 | { |
| 337 | if (power_on) | 336 | if (power_on) |
| 338 | fpga_write(fpga_read(OMAP1510_FPGA_POWER) | (1 << 3), | 337 | __raw_writeb(__raw_readb(OMAP1510_FPGA_POWER) | (1 << 3), |
| 339 | OMAP1510_FPGA_POWER); | 338 | OMAP1510_FPGA_POWER); |
| 340 | else | 339 | else |
| 341 | fpga_write(fpga_read(OMAP1510_FPGA_POWER) & ~(1 << 3), | 340 | __raw_writeb(__raw_readb(OMAP1510_FPGA_POWER) & ~(1 << 3), |
| 342 | OMAP1510_FPGA_POWER); | 341 | OMAP1510_FPGA_POWER); |
| 343 | 342 | ||
| 344 | return 0; | 343 | return 0; |
| @@ -390,14 +389,14 @@ static void __init innovator_init(void) | |||
| 390 | omap_cfg_reg(UART3_TX); | 389 | omap_cfg_reg(UART3_TX); |
| 391 | omap_cfg_reg(UART3_RX); | 390 | omap_cfg_reg(UART3_RX); |
| 392 | 391 | ||
| 393 | reg = fpga_read(OMAP1510_FPGA_POWER); | 392 | reg = __raw_readb(OMAP1510_FPGA_POWER); |
| 394 | reg |= OMAP1510_FPGA_PCR_COM1_EN; | 393 | reg |= OMAP1510_FPGA_PCR_COM1_EN; |
| 395 | fpga_write(reg, OMAP1510_FPGA_POWER); | 394 | __raw_writeb(reg, OMAP1510_FPGA_POWER); |
| 396 | udelay(10); | 395 | udelay(10); |
| 397 | 396 | ||
| 398 | reg = fpga_read(OMAP1510_FPGA_POWER); | 397 | reg = __raw_readb(OMAP1510_FPGA_POWER); |
| 399 | reg |= OMAP1510_FPGA_PCR_COM2_EN; | 398 | reg |= OMAP1510_FPGA_PCR_COM2_EN; |
| 400 | fpga_write(reg, OMAP1510_FPGA_POWER); | 399 | __raw_writeb(reg, OMAP1510_FPGA_POWER); |
| 401 | udelay(10); | 400 | udelay(10); |
| 402 | 401 | ||
| 403 | platform_add_devices(innovator1510_devices, ARRAY_SIZE(innovator1510_devices)); | 402 | platform_add_devices(innovator1510_devices, ARRAY_SIZE(innovator1510_devices)); |
| @@ -437,6 +436,7 @@ static void __init innovator_init(void) | |||
| 437 | */ | 436 | */ |
| 438 | static void __init innovator_map_io(void) | 437 | static void __init innovator_map_io(void) |
| 439 | { | 438 | { |
| 439 | #ifdef CONFIG_ARCH_OMAP15XX | ||
| 440 | omap15xx_map_io(); | 440 | omap15xx_map_io(); |
| 441 | 441 | ||
| 442 | iotable_init(innovator1510_io_desc, ARRAY_SIZE(innovator1510_io_desc)); | 442 | iotable_init(innovator1510_io_desc, ARRAY_SIZE(innovator1510_io_desc)); |
| @@ -444,9 +444,10 @@ static void __init innovator_map_io(void) | |||
| 444 | 444 | ||
| 445 | /* Dump the Innovator FPGA rev early - useful info for support. */ | 445 | /* Dump the Innovator FPGA rev early - useful info for support. */ |
| 446 | pr_debug("Innovator FPGA Rev %d.%d Board Rev %d\n", | 446 | pr_debug("Innovator FPGA Rev %d.%d Board Rev %d\n", |
| 447 | fpga_read(OMAP1510_FPGA_REV_HIGH), | 447 | __raw_readb(OMAP1510_FPGA_REV_HIGH), |
| 448 | fpga_read(OMAP1510_FPGA_REV_LOW), | 448 | __raw_readb(OMAP1510_FPGA_REV_LOW), |
| 449 | fpga_read(OMAP1510_FPGA_BOARD_REV)); | 449 | __raw_readb(OMAP1510_FPGA_BOARD_REV)); |
| 450 | #endif | ||
| 450 | } | 451 | } |
| 451 | 452 | ||
| 452 | MACHINE_START(OMAP_INNOVATOR, "TI-Innovator") | 453 | MACHINE_START(OMAP_INNOVATOR, "TI-Innovator") |
| @@ -454,7 +455,6 @@ MACHINE_START(OMAP_INNOVATOR, "TI-Innovator") | |||
| 454 | .atag_offset = 0x100, | 455 | .atag_offset = 0x100, |
| 455 | .map_io = innovator_map_io, | 456 | .map_io = innovator_map_io, |
| 456 | .init_early = omap1_init_early, | 457 | .init_early = omap1_init_early, |
| 457 | .reserve = omap_reserve, | ||
| 458 | .init_irq = omap1_init_irq, | 458 | .init_irq = omap1_init_irq, |
| 459 | .init_machine = innovator_init, | 459 | .init_machine = innovator_init, |
| 460 | .init_late = omap1_init_late, | 460 | .init_late = omap1_init_late, |
