diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-innovator.c')
| -rw-r--r-- | arch/arm/mach-omap1/board-innovator.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index 411cc5b14ce..c2317c9f615 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
| @@ -33,7 +33,7 @@ | |||
| 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 <../plat-omap/fpga.h> |
| 37 | #include <plat/tc.h> | 37 | #include <plat/tc.h> |
| 38 | #include <linux/platform_data/keypad-omap.h> | 38 | #include <linux/platform_data/keypad-omap.h> |
| 39 | 39 | ||
| @@ -215,7 +215,7 @@ static struct platform_device *innovator1510_devices[] __initdata = { | |||
| 215 | 215 | ||
| 216 | static int innovator_get_pendown_state(void) | 216 | static int innovator_get_pendown_state(void) |
| 217 | { | 217 | { |
| 218 | return !(fpga_read(OMAP1510_FPGA_TOUCHSCREEN) & (1 << 5)); | 218 | return !(__raw_readb(OMAP1510_FPGA_TOUCHSCREEN) & (1 << 5)); |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | static const struct ads7846_platform_data innovator1510_ts_info = { | 221 | static const struct ads7846_platform_data innovator1510_ts_info = { |
| @@ -279,7 +279,7 @@ static struct platform_device *innovator1610_devices[] __initdata = { | |||
| 279 | static void __init innovator_init_smc91x(void) | 279 | static void __init innovator_init_smc91x(void) |
| 280 | { | 280 | { |
| 281 | if (cpu_is_omap1510()) { | 281 | if (cpu_is_omap1510()) { |
| 282 | fpga_write(fpga_read(OMAP1510_FPGA_RST) & ~1, | 282 | __raw_writeb(__raw_readb(OMAP1510_FPGA_RST) & ~1, |
| 283 | OMAP1510_FPGA_RST); | 283 | OMAP1510_FPGA_RST); |
| 284 | udelay(750); | 284 | udelay(750); |
| 285 | } else { | 285 | } else { |
| @@ -335,10 +335,10 @@ static int mmc_set_power(struct device *dev, int slot, int power_on, | |||
| 335 | int vdd) | 335 | int vdd) |
| 336 | { | 336 | { |
| 337 | if (power_on) | 337 | if (power_on) |
| 338 | fpga_write(fpga_read(OMAP1510_FPGA_POWER) | (1 << 3), | 338 | __raw_writeb(__raw_readb(OMAP1510_FPGA_POWER) | (1 << 3), |
| 339 | OMAP1510_FPGA_POWER); | 339 | OMAP1510_FPGA_POWER); |
| 340 | else | 340 | else |
| 341 | fpga_write(fpga_read(OMAP1510_FPGA_POWER) & ~(1 << 3), | 341 | __raw_writeb(__raw_readb(OMAP1510_FPGA_POWER) & ~(1 << 3), |
| 342 | OMAP1510_FPGA_POWER); | 342 | OMAP1510_FPGA_POWER); |
| 343 | 343 | ||
| 344 | return 0; | 344 | return 0; |
| @@ -390,14 +390,14 @@ static void __init innovator_init(void) | |||
| 390 | omap_cfg_reg(UART3_TX); | 390 | omap_cfg_reg(UART3_TX); |
| 391 | omap_cfg_reg(UART3_RX); | 391 | omap_cfg_reg(UART3_RX); |
| 392 | 392 | ||
| 393 | reg = fpga_read(OMAP1510_FPGA_POWER); | 393 | reg = __raw_readb(OMAP1510_FPGA_POWER); |
| 394 | reg |= OMAP1510_FPGA_PCR_COM1_EN; | 394 | reg |= OMAP1510_FPGA_PCR_COM1_EN; |
| 395 | fpga_write(reg, OMAP1510_FPGA_POWER); | 395 | __raw_writeb(reg, OMAP1510_FPGA_POWER); |
| 396 | udelay(10); | 396 | udelay(10); |
| 397 | 397 | ||
| 398 | reg = fpga_read(OMAP1510_FPGA_POWER); | 398 | reg = __raw_readb(OMAP1510_FPGA_POWER); |
| 399 | reg |= OMAP1510_FPGA_PCR_COM2_EN; | 399 | reg |= OMAP1510_FPGA_PCR_COM2_EN; |
| 400 | fpga_write(reg, OMAP1510_FPGA_POWER); | 400 | __raw_writeb(reg, OMAP1510_FPGA_POWER); |
| 401 | udelay(10); | 401 | udelay(10); |
| 402 | 402 | ||
| 403 | platform_add_devices(innovator1510_devices, ARRAY_SIZE(innovator1510_devices)); | 403 | platform_add_devices(innovator1510_devices, ARRAY_SIZE(innovator1510_devices)); |
| @@ -437,6 +437,7 @@ static void __init innovator_init(void) | |||
| 437 | */ | 437 | */ |
| 438 | static void __init innovator_map_io(void) | 438 | static void __init innovator_map_io(void) |
| 439 | { | 439 | { |
| 440 | #ifdef CONFIG_ARCH_OMAP15XX | ||
| 440 | omap15xx_map_io(); | 441 | omap15xx_map_io(); |
| 441 | 442 | ||
| 442 | iotable_init(innovator1510_io_desc, ARRAY_SIZE(innovator1510_io_desc)); | 443 | iotable_init(innovator1510_io_desc, ARRAY_SIZE(innovator1510_io_desc)); |
| @@ -444,9 +445,10 @@ static void __init innovator_map_io(void) | |||
| 444 | 445 | ||
| 445 | /* Dump the Innovator FPGA rev early - useful info for support. */ | 446 | /* Dump the Innovator FPGA rev early - useful info for support. */ |
| 446 | pr_debug("Innovator FPGA Rev %d.%d Board Rev %d\n", | 447 | pr_debug("Innovator FPGA Rev %d.%d Board Rev %d\n", |
| 447 | fpga_read(OMAP1510_FPGA_REV_HIGH), | 448 | __raw_readb(OMAP1510_FPGA_REV_HIGH), |
| 448 | fpga_read(OMAP1510_FPGA_REV_LOW), | 449 | __raw_readb(OMAP1510_FPGA_REV_LOW), |
| 449 | fpga_read(OMAP1510_FPGA_BOARD_REV)); | 450 | __raw_readb(OMAP1510_FPGA_BOARD_REV)); |
| 451 | #endif | ||
| 450 | } | 452 | } |
| 451 | 453 | ||
| 452 | MACHINE_START(OMAP_INNOVATOR, "TI-Innovator") | 454 | MACHINE_START(OMAP_INNOVATOR, "TI-Innovator") |
