Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2009 Integration Software and Electronic Engineering. |
| 3 | * |
| 4 | * Modified from mach-omap2/board-generic.c |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | #include <linux/kernel.h> |
| 12 | #include <linux/init.h> |
| 13 | #include <linux/platform_device.h> |
| 14 | #include <linux/delay.h> |
| 15 | #include <linux/err.h> |
| 16 | #include <linux/clk.h> |
| 17 | #include <linux/io.h> |
| 18 | #include <linux/gpio.h> |
| 19 | #include <linux/interrupt.h> |
| 20 | |
| 21 | #include <linux/regulator/machine.h> |
Marc Zyngier | da07c0c | 2010-12-20 18:48:16 -0800 | [diff] [blame] | 22 | #include <linux/regulator/fixed.h> |
Balaji T K | ebeb53e | 2009-12-15 20:09:02 +0530 | [diff] [blame] | 23 | #include <linux/i2c/twl.h> |
Sukumar Ghorai | 3a63833 | 2010-09-15 14:49:23 +0000 | [diff] [blame] | 24 | #include <linux/mmc/host.h> |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 25 | |
| 26 | #include <asm/mach-types.h> |
| 27 | #include <asm/mach/arch.h> |
| 28 | |
| 29 | #include <plat/board.h> |
| 30 | #include <plat/common.h> |
| 31 | #include <plat/gpmc.h> |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 32 | #include <plat/usb.h> |
Enric Balletbo i Serra | 691de27 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 33 | #include <plat/display.h> |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 34 | #include <plat/onenand.h> |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 35 | |
Tony Lindgren | ca5742b | 2009-12-11 16:16:32 -0800 | [diff] [blame] | 36 | #include "mux.h" |
Adrian Hunter | d02a900b | 2010-02-15 10:03:34 -0800 | [diff] [blame] | 37 | #include "hsmmc.h" |
Enric Balletbo i Serra | 22f1baa | 2010-02-17 14:09:27 -0800 | [diff] [blame] | 38 | #include "sdram-numonyx-m65kxxxxam.h" |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 39 | |
| 40 | #define IGEP2_SMSC911X_CS 5 |
| 41 | #define IGEP2_SMSC911X_GPIO 176 |
| 42 | #define IGEP2_GPIO_USBH_NRESET 24 |
Enric Balletbo i Serra | 5a9fcc9 | 2010-10-08 10:22:43 -0700 | [diff] [blame] | 43 | #define IGEP2_GPIO_LED0_GREEN 26 |
| 44 | #define IGEP2_GPIO_LED0_RED 27 |
| 45 | #define IGEP2_GPIO_LED1_RED 28 |
| 46 | #define IGEP2_GPIO_DVI_PUP 170 |
| 47 | |
| 48 | #define IGEP2_RB_GPIO_WIFI_NPD 94 |
| 49 | #define IGEP2_RB_GPIO_WIFI_NRESET 95 |
| 50 | #define IGEP2_RB_GPIO_BT_NRESET 137 |
| 51 | #define IGEP2_RC_GPIO_WIFI_NPD 138 |
| 52 | #define IGEP2_RC_GPIO_WIFI_NRESET 139 |
| 53 | #define IGEP2_RC_GPIO_BT_NRESET 137 |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 54 | |
Enric Balletbo i Serra | 3f8c48d | 2010-10-08 10:22:35 -0700 | [diff] [blame] | 55 | /* |
| 56 | * IGEP2 Hardware Revision Table |
| 57 | * |
Enric Balletbo i Serra | 5a9fcc9 | 2010-10-08 10:22:43 -0700 | [diff] [blame] | 58 | * -------------------------------------------------------------------------- |
| 59 | * | Id. | Hw Rev. | HW0 (28) | WIFI_NPD | WIFI_NRESET | BT_NRESET | |
| 60 | * -------------------------------------------------------------------------- |
| 61 | * | 0 | B | high | gpio94 | gpio95 | - | |
| 62 | * | 0 | B/C (B-compatible) | high | gpio94 | gpio95 | gpio137 | |
| 63 | * | 1 | C | low | gpio138 | gpio139 | gpio137 | |
| 64 | * -------------------------------------------------------------------------- |
Enric Balletbo i Serra | 3f8c48d | 2010-10-08 10:22:35 -0700 | [diff] [blame] | 65 | */ |
| 66 | |
| 67 | #define IGEP2_BOARD_HWREV_B 0 |
| 68 | #define IGEP2_BOARD_HWREV_C 1 |
| 69 | |
| 70 | static u8 hwrev; |
| 71 | |
| 72 | static void __init igep2_get_revision(void) |
| 73 | { |
| 74 | u8 ret; |
| 75 | |
| 76 | omap_mux_init_gpio(IGEP2_GPIO_LED1_RED, OMAP_PIN_INPUT); |
| 77 | |
| 78 | if ((gpio_request(IGEP2_GPIO_LED1_RED, "GPIO_HW0_REV") == 0) && |
| 79 | (gpio_direction_input(IGEP2_GPIO_LED1_RED) == 0)) { |
| 80 | ret = gpio_get_value(IGEP2_GPIO_LED1_RED); |
| 81 | if (ret == 0) { |
| 82 | pr_info("IGEP2: Hardware Revision C (B-NON compatible)\n"); |
| 83 | hwrev = IGEP2_BOARD_HWREV_C; |
| 84 | } else if (ret == 1) { |
| 85 | pr_info("IGEP2: Hardware Revision B/C (B compatible)\n"); |
| 86 | hwrev = IGEP2_BOARD_HWREV_B; |
| 87 | } else { |
| 88 | pr_err("IGEP2: Unknown Hardware Revision\n"); |
| 89 | hwrev = -1; |
| 90 | } |
| 91 | } else { |
| 92 | pr_warning("IGEP2: Could not obtain gpio GPIO_HW0_REV\n"); |
| 93 | pr_err("IGEP2: Unknown Hardware Revision\n"); |
| 94 | } |
| 95 | |
| 96 | gpio_free(IGEP2_GPIO_LED1_RED); |
| 97 | } |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 98 | |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 99 | #if defined(CONFIG_MTD_ONENAND_OMAP2) || \ |
| 100 | defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) |
| 101 | |
| 102 | #define ONENAND_MAP 0x20000000 |
| 103 | |
| 104 | /* NAND04GR4E1A ( x2 Flash built-in COMBO POP MEMORY ) |
| 105 | * Since the device is equipped with two DataRAMs, and two-plane NAND |
| 106 | * Flash memory array, these two component enables simultaneous program |
| 107 | * of 4KiB. Plane1 has only even blocks such as block0, block2, block4 |
| 108 | * while Plane2 has only odd blocks such as block1, block3, block5. |
| 109 | * So MTD regards it as 4KiB page size and 256KiB block size 64*(2*2048) |
| 110 | */ |
| 111 | |
| 112 | static struct mtd_partition igep2_onenand_partitions[] = { |
| 113 | { |
| 114 | .name = "X-Loader", |
| 115 | .offset = 0, |
| 116 | .size = 2 * (64*(2*2048)) |
| 117 | }, |
| 118 | { |
| 119 | .name = "U-Boot", |
| 120 | .offset = MTDPART_OFS_APPEND, |
| 121 | .size = 6 * (64*(2*2048)), |
| 122 | }, |
| 123 | { |
| 124 | .name = "Environment", |
| 125 | .offset = MTDPART_OFS_APPEND, |
| 126 | .size = 2 * (64*(2*2048)), |
| 127 | }, |
| 128 | { |
| 129 | .name = "Kernel", |
| 130 | .offset = MTDPART_OFS_APPEND, |
| 131 | .size = 12 * (64*(2*2048)), |
| 132 | }, |
| 133 | { |
| 134 | .name = "File System", |
| 135 | .offset = MTDPART_OFS_APPEND, |
| 136 | .size = MTDPART_SIZ_FULL, |
| 137 | }, |
| 138 | }; |
| 139 | |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 140 | static struct omap_onenand_platform_data igep2_onenand_data = { |
| 141 | .parts = igep2_onenand_partitions, |
| 142 | .nr_parts = ARRAY_SIZE(igep2_onenand_partitions), |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 143 | .dma_channel = -1, /* disable DMA in OMAP OneNAND driver */ |
| 144 | }; |
| 145 | |
| 146 | static struct platform_device igep2_onenand_device = { |
| 147 | .name = "omap2-onenand", |
| 148 | .id = -1, |
| 149 | .dev = { |
| 150 | .platform_data = &igep2_onenand_data, |
| 151 | }, |
| 152 | }; |
| 153 | |
Manjunath Kondaiah G | 04aeae7 | 2010-10-08 09:58:35 -0700 | [diff] [blame] | 154 | static void __init igep2_flash_init(void) |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 155 | { |
Enric Balletbo i Serra | 235228b | 2010-10-23 16:49:00 +0000 | [diff] [blame] | 156 | u8 cs = 0; |
| 157 | u8 onenandcs = GPMC_CS_NUM + 1; |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 158 | |
Enric Balletbo i Serra | 235228b | 2010-10-23 16:49:00 +0000 | [diff] [blame] | 159 | for (cs = 0; cs < GPMC_CS_NUM; cs++) { |
| 160 | u32 ret; |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 161 | ret = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1); |
| 162 | |
| 163 | /* Check if NAND/oneNAND is configured */ |
| 164 | if ((ret & 0xC00) == 0x800) |
| 165 | /* NAND found */ |
Enric Balletbo i Serra | 235228b | 2010-10-23 16:49:00 +0000 | [diff] [blame] | 166 | pr_err("IGEP2: Unsupported NAND found\n"); |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 167 | else { |
| 168 | ret = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG7); |
| 169 | if ((ret & 0x3F) == (ONENAND_MAP >> 24)) |
| 170 | /* ONENAND found */ |
| 171 | onenandcs = cs; |
| 172 | } |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 173 | } |
Enric Balletbo i Serra | 235228b | 2010-10-23 16:49:00 +0000 | [diff] [blame] | 174 | |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 175 | if (onenandcs > GPMC_CS_NUM) { |
Enric Balletbo i Serra | 235228b | 2010-10-23 16:49:00 +0000 | [diff] [blame] | 176 | pr_err("IGEP2: Unable to find configuration in GPMC\n"); |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 177 | return; |
| 178 | } |
| 179 | |
Enric Balletbo i Serra | 235228b | 2010-10-23 16:49:00 +0000 | [diff] [blame] | 180 | igep2_onenand_data.cs = onenandcs; |
| 181 | |
| 182 | if (platform_device_register(&igep2_onenand_device) < 0) |
| 183 | pr_err("IGEP2: Unable to register OneNAND device\n"); |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 184 | } |
| 185 | |
| 186 | #else |
Manjunath Kondaiah G | 04aeae7 | 2010-10-08 09:58:35 -0700 | [diff] [blame] | 187 | static void __init igep2_flash_init(void) {} |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 188 | #endif |
| 189 | |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 190 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
| 191 | |
| 192 | #include <linux/smsc911x.h> |
| 193 | |
| 194 | static struct smsc911x_platform_config igep2_smsc911x_config = { |
| 195 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, |
| 196 | .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN, |
| 197 | .flags = SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS , |
| 198 | .phy_interface = PHY_INTERFACE_MODE_MII, |
| 199 | }; |
| 200 | |
| 201 | static struct resource igep2_smsc911x_resources[] = { |
| 202 | { |
| 203 | .flags = IORESOURCE_MEM, |
| 204 | }, |
| 205 | { |
| 206 | .start = OMAP_GPIO_IRQ(IGEP2_SMSC911X_GPIO), |
| 207 | .end = OMAP_GPIO_IRQ(IGEP2_SMSC911X_GPIO), |
| 208 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL, |
| 209 | }, |
| 210 | }; |
| 211 | |
| 212 | static struct platform_device igep2_smsc911x_device = { |
| 213 | .name = "smsc911x", |
| 214 | .id = 0, |
| 215 | .num_resources = ARRAY_SIZE(igep2_smsc911x_resources), |
| 216 | .resource = igep2_smsc911x_resources, |
| 217 | .dev = { |
| 218 | .platform_data = &igep2_smsc911x_config, |
| 219 | }, |
| 220 | }; |
| 221 | |
| 222 | static inline void __init igep2_init_smsc911x(void) |
| 223 | { |
| 224 | unsigned long cs_mem_base; |
| 225 | |
| 226 | if (gpmc_cs_request(IGEP2_SMSC911X_CS, SZ_16M, &cs_mem_base) < 0) { |
| 227 | pr_err("IGEP v2: Failed request for GPMC mem for smsc911x\n"); |
| 228 | gpmc_cs_free(IGEP2_SMSC911X_CS); |
| 229 | return; |
| 230 | } |
| 231 | |
| 232 | igep2_smsc911x_resources[0].start = cs_mem_base + 0x0; |
| 233 | igep2_smsc911x_resources[0].end = cs_mem_base + 0xff; |
| 234 | |
| 235 | if ((gpio_request(IGEP2_SMSC911X_GPIO, "SMSC911X IRQ") == 0) && |
| 236 | (gpio_direction_input(IGEP2_SMSC911X_GPIO) == 0)) { |
| 237 | gpio_export(IGEP2_SMSC911X_GPIO, 0); |
| 238 | } else { |
| 239 | pr_err("IGEP v2: Could not obtain gpio for for SMSC911X IRQ\n"); |
| 240 | return; |
| 241 | } |
| 242 | |
| 243 | platform_device_register(&igep2_smsc911x_device); |
| 244 | } |
| 245 | |
| 246 | #else |
| 247 | static inline void __init igep2_init_smsc911x(void) { } |
| 248 | #endif |
| 249 | |
Marc Zyngier | da07c0c | 2010-12-20 18:48:16 -0800 | [diff] [blame] | 250 | static struct regulator_consumer_supply igep2_vmmc1_supply = |
| 251 | REGULATOR_SUPPLY("vmmc", "mmci-omap-hs.0"); |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 252 | |
| 253 | /* VMMC1 for OMAP VDD_MMC1 (i/o) and MMC1 card */ |
| 254 | static struct regulator_init_data igep2_vmmc1 = { |
| 255 | .constraints = { |
| 256 | .min_uV = 1850000, |
| 257 | .max_uV = 3150000, |
| 258 | .valid_modes_mask = REGULATOR_MODE_NORMAL |
| 259 | | REGULATOR_MODE_STANDBY, |
| 260 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
| 261 | | REGULATOR_CHANGE_MODE |
| 262 | | REGULATOR_CHANGE_STATUS, |
| 263 | }, |
| 264 | .num_consumer_supplies = 1, |
| 265 | .consumer_supplies = &igep2_vmmc1_supply, |
| 266 | }; |
| 267 | |
Marc Zyngier | da07c0c | 2010-12-20 18:48:16 -0800 | [diff] [blame] | 268 | static struct regulator_consumer_supply igep2_vio_supply = |
| 269 | REGULATOR_SUPPLY("vmmc_aux", "mmci-omap-hs.1"); |
| 270 | |
| 271 | static struct regulator_init_data igep2_vio = { |
| 272 | .constraints = { |
| 273 | .min_uV = 1800000, |
| 274 | .max_uV = 1800000, |
| 275 | .apply_uV = 1, |
| 276 | .valid_modes_mask = REGULATOR_MODE_NORMAL |
| 277 | | REGULATOR_MODE_STANDBY, |
| 278 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
| 279 | | REGULATOR_CHANGE_MODE |
| 280 | | REGULATOR_CHANGE_STATUS, |
| 281 | }, |
| 282 | .num_consumer_supplies = 1, |
| 283 | .consumer_supplies = &igep2_vio_supply, |
| 284 | }; |
| 285 | |
| 286 | static struct regulator_consumer_supply igep2_vmmc2_supply = |
| 287 | REGULATOR_SUPPLY("vmmc", "mmci-omap-hs.1"); |
| 288 | |
| 289 | static struct regulator_init_data igep2_vmmc2 = { |
| 290 | .constraints = { |
| 291 | .valid_modes_mask = REGULATOR_MODE_NORMAL, |
| 292 | .always_on = 1, |
| 293 | }, |
| 294 | .num_consumer_supplies = 1, |
| 295 | .consumer_supplies = &igep2_vmmc2_supply, |
| 296 | }; |
| 297 | |
| 298 | static struct fixed_voltage_config igep2_vwlan = { |
| 299 | .supply_name = "vwlan", |
| 300 | .microvolts = 3300000, |
| 301 | .gpio = -EINVAL, |
| 302 | .enabled_at_boot = 1, |
| 303 | .init_data = &igep2_vmmc2, |
| 304 | }; |
| 305 | |
| 306 | static struct platform_device igep2_vwlan_device = { |
| 307 | .name = "reg-fixed-voltage", |
| 308 | .id = 0, |
| 309 | .dev = { |
| 310 | .platform_data = &igep2_vwlan, |
| 311 | }, |
| 312 | }; |
| 313 | |
Adrian Hunter | 68ff042 | 2010-02-15 10:03:34 -0800 | [diff] [blame] | 314 | static struct omap2_hsmmc_info mmc[] = { |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 315 | { |
| 316 | .mmc = 1, |
Sukumar Ghorai | 3a63833 | 2010-09-15 14:49:23 +0000 | [diff] [blame] | 317 | .caps = MMC_CAP_4_BIT_DATA, |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 318 | .gpio_cd = -EINVAL, |
| 319 | .gpio_wp = -EINVAL, |
| 320 | }, |
Enric Balletbo i Serra | 5a9fcc9 | 2010-10-08 10:22:43 -0700 | [diff] [blame] | 321 | #if defined(CONFIG_LIBERTAS_SDIO) || defined(CONFIG_LIBERTAS_SDIO_MODULE) |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 322 | { |
| 323 | .mmc = 2, |
Sukumar Ghorai | 3a63833 | 2010-09-15 14:49:23 +0000 | [diff] [blame] | 324 | .caps = MMC_CAP_4_BIT_DATA, |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 325 | .gpio_cd = -EINVAL, |
| 326 | .gpio_wp = -EINVAL, |
| 327 | }, |
Enric Balletbo i Serra | 5a9fcc9 | 2010-10-08 10:22:43 -0700 | [diff] [blame] | 328 | #endif |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 329 | {} /* Terminator */ |
| 330 | }; |
| 331 | |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 332 | #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE) |
| 333 | #include <linux/leds.h> |
| 334 | |
| 335 | static struct gpio_led igep2_gpio_leds[] = { |
| 336 | [0] = { |
| 337 | .name = "gpio-led:red:d0", |
| 338 | .gpio = IGEP2_GPIO_LED0_RED, |
| 339 | .default_trigger = "default-off" |
| 340 | }, |
| 341 | [1] = { |
| 342 | .name = "gpio-led:green:d0", |
| 343 | .gpio = IGEP2_GPIO_LED0_GREEN, |
| 344 | .default_trigger = "default-off", |
| 345 | }, |
| 346 | [2] = { |
| 347 | .name = "gpio-led:red:d1", |
| 348 | .gpio = IGEP2_GPIO_LED1_RED, |
| 349 | .default_trigger = "default-off", |
| 350 | }, |
| 351 | [3] = { |
| 352 | .name = "gpio-led:green:d1", |
| 353 | .default_trigger = "heartbeat", |
| 354 | .gpio = -EINVAL, /* gets replaced */ |
Laurent Pinchart | 70e7776 | 2010-12-17 18:15:08 -0800 | [diff] [blame] | 355 | .active_low = 1, |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 356 | }, |
| 357 | }; |
| 358 | |
| 359 | static struct gpio_led_platform_data igep2_led_pdata = { |
| 360 | .leds = igep2_gpio_leds, |
| 361 | .num_leds = ARRAY_SIZE(igep2_gpio_leds), |
| 362 | }; |
| 363 | |
| 364 | static struct platform_device igep2_led_device = { |
| 365 | .name = "leds-gpio", |
| 366 | .id = -1, |
| 367 | .dev = { |
| 368 | .platform_data = &igep2_led_pdata, |
| 369 | }, |
| 370 | }; |
| 371 | |
| 372 | static void __init igep2_leds_init(void) |
| 373 | { |
| 374 | platform_device_register(&igep2_led_device); |
| 375 | } |
| 376 | |
| 377 | #else |
| 378 | static inline void igep2_leds_init(void) |
| 379 | { |
| 380 | if ((gpio_request(IGEP2_GPIO_LED0_RED, "gpio-led:red:d0") == 0) && |
Laurent Pinchart | 62d8e9e | 2010-12-17 18:15:07 -0800 | [diff] [blame] | 381 | (gpio_direction_output(IGEP2_GPIO_LED0_RED, 0) == 0)) |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 382 | gpio_export(IGEP2_GPIO_LED0_RED, 0); |
Laurent Pinchart | 62d8e9e | 2010-12-17 18:15:07 -0800 | [diff] [blame] | 383 | else |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 384 | pr_warning("IGEP v2: Could not obtain gpio GPIO_LED0_RED\n"); |
| 385 | |
| 386 | if ((gpio_request(IGEP2_GPIO_LED0_GREEN, "gpio-led:green:d0") == 0) && |
Laurent Pinchart | 62d8e9e | 2010-12-17 18:15:07 -0800 | [diff] [blame] | 387 | (gpio_direction_output(IGEP2_GPIO_LED0_GREEN, 0) == 0)) |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 388 | gpio_export(IGEP2_GPIO_LED0_GREEN, 0); |
Laurent Pinchart | 62d8e9e | 2010-12-17 18:15:07 -0800 | [diff] [blame] | 389 | else |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 390 | pr_warning("IGEP v2: Could not obtain gpio GPIO_LED0_GREEN\n"); |
| 391 | |
| 392 | if ((gpio_request(IGEP2_GPIO_LED1_RED, "gpio-led:red:d1") == 0) && |
Laurent Pinchart | 62d8e9e | 2010-12-17 18:15:07 -0800 | [diff] [blame] | 393 | (gpio_direction_output(IGEP2_GPIO_LED1_RED, 0) == 0)) |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 394 | gpio_export(IGEP2_GPIO_LED1_RED, 0); |
Laurent Pinchart | 62d8e9e | 2010-12-17 18:15:07 -0800 | [diff] [blame] | 395 | else |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 396 | pr_warning("IGEP v2: Could not obtain gpio GPIO_LED1_RED\n"); |
| 397 | |
| 398 | } |
| 399 | #endif |
| 400 | |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 401 | static int igep2_twl_gpio_setup(struct device *dev, |
| 402 | unsigned gpio, unsigned ngpio) |
| 403 | { |
| 404 | /* gpio + 0 is "mmc0_cd" (input/IRQ) */ |
| 405 | mmc[0].gpio_cd = gpio + 0; |
Adrian Hunter | 68ff042 | 2010-02-15 10:03:34 -0800 | [diff] [blame] | 406 | omap2_hsmmc_init(mmc); |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 407 | |
Enric Balletbo i Serra | 72f381b | 2010-10-08 10:22:57 -0700 | [diff] [blame] | 408 | /* |
Enric Balletbo i Serra | 61e118d | 2010-10-08 10:22:19 -0700 | [diff] [blame] | 409 | * REVISIT: need ehci-omap hooks for external VBUS |
| 410 | * power switch and overcurrent detect |
| 411 | */ |
| 412 | if ((gpio_request(gpio + 1, "GPIO_EHCI_NOC") < 0) || |
| 413 | (gpio_direction_input(gpio + 1) < 0)) |
| 414 | pr_err("IGEP2: Could not obtain gpio for EHCI NOC"); |
| 415 | |
| 416 | /* |
| 417 | * TWL4030_GPIO_MAX + 0 == ledA, GPIO_USBH_CPEN |
| 418 | * (out, active low) |
| 419 | */ |
| 420 | if ((gpio_request(gpio + TWL4030_GPIO_MAX, "GPIO_USBH_CPEN") < 0) || |
| 421 | (gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0) < 0)) |
| 422 | pr_err("IGEP2: Could not obtain gpio for USBH_CPEN"); |
| 423 | |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 424 | /* TWL4030_GPIO_MAX + 1 == ledB (out, active low LED) */ |
| 425 | #if !defined(CONFIG_LEDS_GPIO) && !defined(CONFIG_LEDS_GPIO_MODULE) |
| 426 | if ((gpio_request(gpio+TWL4030_GPIO_MAX+1, "gpio-led:green:d1") == 0) |
Laurent Pinchart | 70e7776 | 2010-12-17 18:15:08 -0800 | [diff] [blame] | 427 | && (gpio_direction_output(gpio + TWL4030_GPIO_MAX + 1, 1) == 0)) |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 428 | gpio_export(gpio + TWL4030_GPIO_MAX + 1, 0); |
Laurent Pinchart | 62d8e9e | 2010-12-17 18:15:07 -0800 | [diff] [blame] | 429 | else |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 430 | pr_warning("IGEP v2: Could not obtain gpio GPIO_LED1_GREEN\n"); |
| 431 | #else |
| 432 | igep2_gpio_leds[3].gpio = gpio + TWL4030_GPIO_MAX + 1; |
| 433 | #endif |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 434 | |
| 435 | return 0; |
| 436 | }; |
| 437 | |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 438 | static struct twl4030_gpio_platform_data igep2_twl4030_gpio_pdata = { |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 439 | .gpio_base = OMAP_MAX_GPIO_LINES, |
| 440 | .irq_base = TWL4030_GPIO_IRQ_BASE, |
| 441 | .irq_end = TWL4030_GPIO_IRQ_END, |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 442 | .use_leds = true, |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 443 | .setup = igep2_twl_gpio_setup, |
| 444 | }; |
| 445 | |
| 446 | static struct twl4030_usb_data igep2_usb_data = { |
| 447 | .usb_mode = T2_USB_MODE_ULPI, |
| 448 | }; |
| 449 | |
Enric Balletbo i Serra | 691de27 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 450 | static int igep2_enable_dvi(struct omap_dss_device *dssdev) |
| 451 | { |
| 452 | gpio_direction_output(IGEP2_GPIO_DVI_PUP, 1); |
| 453 | |
| 454 | return 0; |
| 455 | } |
| 456 | |
| 457 | static void igep2_disable_dvi(struct omap_dss_device *dssdev) |
| 458 | { |
| 459 | gpio_direction_output(IGEP2_GPIO_DVI_PUP, 0); |
| 460 | } |
| 461 | |
| 462 | static struct omap_dss_device igep2_dvi_device = { |
| 463 | .type = OMAP_DISPLAY_TYPE_DPI, |
| 464 | .name = "dvi", |
| 465 | .driver_name = "generic_panel", |
| 466 | .phy.dpi.data_lines = 24, |
| 467 | .platform_enable = igep2_enable_dvi, |
| 468 | .platform_disable = igep2_disable_dvi, |
| 469 | }; |
| 470 | |
| 471 | static struct omap_dss_device *igep2_dss_devices[] = { |
| 472 | &igep2_dvi_device |
| 473 | }; |
| 474 | |
| 475 | static struct omap_dss_board_info igep2_dss_data = { |
| 476 | .num_devices = ARRAY_SIZE(igep2_dss_devices), |
| 477 | .devices = igep2_dss_devices, |
| 478 | .default_device = &igep2_dvi_device, |
| 479 | }; |
| 480 | |
| 481 | static struct platform_device igep2_dss_device = { |
| 482 | .name = "omapdss", |
| 483 | .id = -1, |
| 484 | .dev = { |
| 485 | .platform_data = &igep2_dss_data, |
| 486 | }, |
| 487 | }; |
| 488 | |
| 489 | static struct regulator_consumer_supply igep2_vpll2_supply = { |
| 490 | .supply = "vdds_dsi", |
| 491 | .dev = &igep2_dss_device.dev, |
| 492 | }; |
| 493 | |
| 494 | static struct regulator_init_data igep2_vpll2 = { |
| 495 | .constraints = { |
| 496 | .name = "VDVI", |
| 497 | .min_uV = 1800000, |
| 498 | .max_uV = 1800000, |
| 499 | .apply_uV = true, |
| 500 | .valid_modes_mask = REGULATOR_MODE_NORMAL |
| 501 | | REGULATOR_MODE_STANDBY, |
| 502 | .valid_ops_mask = REGULATOR_CHANGE_MODE |
| 503 | | REGULATOR_CHANGE_STATUS, |
| 504 | }, |
| 505 | .num_consumer_supplies = 1, |
| 506 | .consumer_supplies = &igep2_vpll2_supply, |
| 507 | }; |
| 508 | |
| 509 | static void __init igep2_display_init(void) |
| 510 | { |
| 511 | if (gpio_request(IGEP2_GPIO_DVI_PUP, "GPIO_DVI_PUP") && |
| 512 | gpio_direction_output(IGEP2_GPIO_DVI_PUP, 1)) |
| 513 | pr_err("IGEP v2: Could not obtain gpio GPIO_DVI_PUP\n"); |
| 514 | } |
Enric Balletbo i Serra | 228893f | 2010-03-01 11:18:08 +0000 | [diff] [blame] | 515 | |
Enric Balletbo i Serra | 691de27 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 516 | static struct platform_device *igep2_devices[] __initdata = { |
| 517 | &igep2_dss_device, |
Marc Zyngier | da07c0c | 2010-12-20 18:48:16 -0800 | [diff] [blame] | 518 | &igep2_vwlan_device, |
Enric Balletbo i Serra | 691de27 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 519 | }; |
| 520 | |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 521 | static void __init igep2_init_irq(void) |
| 522 | { |
Paul Walmsley | 4805734 | 2010-12-21 15:25:10 -0700 | [diff] [blame] | 523 | omap2_init_common_infrastructure(); |
| 524 | omap2_init_common_devices(m65kxxxxam_sdrc_params, |
| 525 | m65kxxxxam_sdrc_params); |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 526 | omap_init_irq(); |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 527 | } |
| 528 | |
Enric Balletbo i Serra | 7f5f23d | 2010-02-17 14:09:25 -0800 | [diff] [blame] | 529 | static struct twl4030_codec_audio_data igep2_audio_data = { |
| 530 | .audio_mclk = 26000000, |
| 531 | }; |
| 532 | |
| 533 | static struct twl4030_codec_data igep2_codec_data = { |
| 534 | .audio_mclk = 26000000, |
| 535 | .audio = &igep2_audio_data, |
| 536 | }; |
| 537 | |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 538 | static struct twl4030_platform_data igep2_twldata = { |
| 539 | .irq_base = TWL4030_IRQ_BASE, |
| 540 | .irq_end = TWL4030_IRQ_END, |
| 541 | |
| 542 | /* platform_data for children goes here */ |
| 543 | .usb = &igep2_usb_data, |
Enric Balletbo i Serra | 7f5f23d | 2010-02-17 14:09:25 -0800 | [diff] [blame] | 544 | .codec = &igep2_codec_data, |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 545 | .gpio = &igep2_twl4030_gpio_pdata, |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 546 | .vmmc1 = &igep2_vmmc1, |
Enric Balletbo i Serra | 691de27 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 547 | .vpll2 = &igep2_vpll2, |
Marc Zyngier | da07c0c | 2010-12-20 18:48:16 -0800 | [diff] [blame] | 548 | .vio = &igep2_vio, |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 549 | }; |
| 550 | |
Enric Balletbo i Serra | 91d139c | 2010-10-08 10:22:51 -0700 | [diff] [blame] | 551 | static struct i2c_board_info __initdata igep2_i2c1_boardinfo[] = { |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 552 | { |
| 553 | I2C_BOARD_INFO("twl4030", 0x48), |
| 554 | .flags = I2C_CLIENT_WAKE, |
| 555 | .irq = INT_34XX_SYS_NIRQ, |
| 556 | .platform_data = &igep2_twldata, |
| 557 | }, |
| 558 | }; |
| 559 | |
Enric Balletbo i Serra | 91d139c | 2010-10-08 10:22:51 -0700 | [diff] [blame] | 560 | static struct i2c_board_info __initdata igep2_i2c3_boardinfo[] = { |
| 561 | { |
| 562 | I2C_BOARD_INFO("eeprom", 0x50), |
| 563 | }, |
| 564 | }; |
| 565 | |
| 566 | static void __init igep2_i2c_init(void) |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 567 | { |
Enric Balletbo i Serra | 91d139c | 2010-10-08 10:22:51 -0700 | [diff] [blame] | 568 | int ret; |
| 569 | |
| 570 | ret = omap_register_i2c_bus(1, 2600, igep2_i2c1_boardinfo, |
| 571 | ARRAY_SIZE(igep2_i2c1_boardinfo)); |
| 572 | if (ret) |
| 573 | pr_warning("IGEP2: Could not register I2C1 bus (%d)\n", ret); |
| 574 | |
| 575 | /* |
| 576 | * Bus 3 is attached to the DVI port where devices like the pico DLP |
| 577 | * projector don't work reliably with 400kHz |
| 578 | */ |
| 579 | ret = omap_register_i2c_bus(3, 100, igep2_i2c3_boardinfo, |
| 580 | ARRAY_SIZE(igep2_i2c3_boardinfo)); |
| 581 | if (ret) |
| 582 | pr_warning("IGEP2: Could not register I2C3 bus (%d)\n", ret); |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 583 | } |
| 584 | |
Maulik Mankad | 884b836 | 2010-02-17 14:09:30 -0800 | [diff] [blame] | 585 | static struct omap_musb_board_data musb_board_data = { |
| 586 | .interface_type = MUSB_INTERFACE_ULPI, |
| 587 | .mode = MUSB_OTG, |
| 588 | .power = 100, |
| 589 | }; |
| 590 | |
Felipe Balbi | 6f69a18 | 2010-03-04 09:45:53 +0200 | [diff] [blame] | 591 | static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { |
Enric Balletbo i Serra | f6b7453 | 2010-03-01 15:02:36 +0000 | [diff] [blame] | 592 | .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, |
| 593 | .port_mode[1] = EHCI_HCD_OMAP_MODE_UNKNOWN, |
Enric Balletbo i Serra | d0885486 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 594 | .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, |
| 595 | |
| 596 | .phy_reset = true, |
Enric Balletbo i Serra | f6b7453 | 2010-03-01 15:02:36 +0000 | [diff] [blame] | 597 | .reset_gpio_port[0] = IGEP2_GPIO_USBH_NRESET, |
| 598 | .reset_gpio_port[1] = -EINVAL, |
Enric Balletbo i Serra | d0885486 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 599 | .reset_gpio_port[2] = -EINVAL, |
| 600 | }; |
| 601 | |
Tony Lindgren | ca5742b | 2009-12-11 16:16:32 -0800 | [diff] [blame] | 602 | #ifdef CONFIG_OMAP_MUX |
| 603 | static struct omap_board_mux board_mux[] __initdata = { |
| 604 | { .reg_offset = OMAP_MUX_TERMINATOR }, |
| 605 | }; |
Tony Lindgren | ca5742b | 2009-12-11 16:16:32 -0800 | [diff] [blame] | 606 | #endif |
| 607 | |
Enric Balletbo i Serra | 5a9fcc9 | 2010-10-08 10:22:43 -0700 | [diff] [blame] | 608 | #if defined(CONFIG_LIBERTAS_SDIO) || defined(CONFIG_LIBERTAS_SDIO_MODULE) |
| 609 | |
| 610 | static void __init igep2_wlan_bt_init(void) |
| 611 | { |
| 612 | unsigned npd, wreset, btreset; |
| 613 | |
| 614 | /* GPIO's for WLAN-BT combo depends on hardware revision */ |
| 615 | if (hwrev == IGEP2_BOARD_HWREV_B) { |
| 616 | npd = IGEP2_RB_GPIO_WIFI_NPD; |
| 617 | wreset = IGEP2_RB_GPIO_WIFI_NRESET; |
| 618 | btreset = IGEP2_RB_GPIO_BT_NRESET; |
| 619 | } else if (hwrev == IGEP2_BOARD_HWREV_C) { |
| 620 | npd = IGEP2_RC_GPIO_WIFI_NPD; |
| 621 | wreset = IGEP2_RC_GPIO_WIFI_NRESET; |
| 622 | btreset = IGEP2_RC_GPIO_BT_NRESET; |
| 623 | } else |
| 624 | return; |
| 625 | |
| 626 | /* Set GPIO's for WLAN-BT combo module */ |
| 627 | if ((gpio_request(npd, "GPIO_WIFI_NPD") == 0) && |
| 628 | (gpio_direction_output(npd, 1) == 0)) { |
| 629 | gpio_export(npd, 0); |
| 630 | } else |
| 631 | pr_warning("IGEP2: Could not obtain gpio GPIO_WIFI_NPD\n"); |
| 632 | |
| 633 | if ((gpio_request(wreset, "GPIO_WIFI_NRESET") == 0) && |
| 634 | (gpio_direction_output(wreset, 1) == 0)) { |
| 635 | gpio_export(wreset, 0); |
| 636 | gpio_set_value(wreset, 0); |
| 637 | udelay(10); |
| 638 | gpio_set_value(wreset, 1); |
| 639 | } else |
| 640 | pr_warning("IGEP2: Could not obtain gpio GPIO_WIFI_NRESET\n"); |
| 641 | |
| 642 | if ((gpio_request(btreset, "GPIO_BT_NRESET") == 0) && |
| 643 | (gpio_direction_output(btreset, 1) == 0)) { |
| 644 | gpio_export(btreset, 0); |
| 645 | } else |
| 646 | pr_warning("IGEP2: Could not obtain gpio GPIO_BT_NRESET\n"); |
| 647 | } |
| 648 | #else |
| 649 | static inline void __init igep2_wlan_bt_init(void) { } |
| 650 | #endif |
| 651 | |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 652 | static void __init igep2_init(void) |
| 653 | { |
Tony Lindgren | ca5742b | 2009-12-11 16:16:32 -0800 | [diff] [blame] | 654 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
Enric Balletbo i Serra | 3f8c48d | 2010-10-08 10:22:35 -0700 | [diff] [blame] | 655 | |
| 656 | /* Get IGEP2 hardware revision */ |
| 657 | igep2_get_revision(); |
Enric Balletbo i Serra | 91d139c | 2010-10-08 10:22:51 -0700 | [diff] [blame] | 658 | /* Register I2C busses and drivers */ |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 659 | igep2_i2c_init(); |
Enric Balletbo i Serra | 691de27 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 660 | platform_add_devices(igep2_devices, ARRAY_SIZE(igep2_devices)); |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 661 | omap_serial_init(); |
Maulik Mankad | 884b836 | 2010-02-17 14:09:30 -0800 | [diff] [blame] | 662 | usb_musb_init(&musb_board_data); |
Enric Balletbo i Serra | d0885486 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 663 | usb_ehci_init(&ehci_pdata); |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 664 | |
Enric Balletbo i Serra | cddb483 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 665 | igep2_flash_init(); |
Enric Balletbo i Serra | bee1539 | 2010-10-08 10:22:28 -0700 | [diff] [blame] | 666 | igep2_leds_init(); |
Enric Balletbo i Serra | 691de27 | 2010-02-17 14:09:26 -0800 | [diff] [blame] | 667 | igep2_display_init(); |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 668 | igep2_init_smsc911x(); |
| 669 | |
Enric Balletbo i Serra | 5a9fcc9 | 2010-10-08 10:22:43 -0700 | [diff] [blame] | 670 | /* |
| 671 | * WLAN-BT combo module from MuRata wich has a Marvell WLAN |
| 672 | * (88W8686) + CSR Bluetooth chipset. Uses SDIO interface. |
| 673 | */ |
| 674 | igep2_wlan_bt_init(); |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 675 | |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 676 | } |
| 677 | |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 678 | MACHINE_START(IGEP0020, "IGEP v2 board") |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 679 | .boot_params = 0x80000100, |
Mike Rapoport | 869fef4 | 2010-08-04 14:43:18 +0300 | [diff] [blame] | 680 | .map_io = omap3_map_io, |
Russell King | 71ee7da | 2010-05-23 10:18:16 +0100 | [diff] [blame] | 681 | .reserve = omap_reserve, |
Enric Balletbo i Serra | 58e1116 | 2009-11-18 18:41:07 -0800 | [diff] [blame] | 682 | .init_irq = igep2_init_irq, |
| 683 | .init_machine = igep2_init, |
| 684 | .timer = &omap_timer, |
| 685 | MACHINE_END |