diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-igep0020.c')
-rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index c62c297e0a3d..ad20f7b5aa4a 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -112,7 +112,7 @@ static void __init igep2_get_revision(void) | |||
112 | * So MTD regards it as 4KiB page size and 256KiB block size 64*(2*2048) | 112 | * So MTD regards it as 4KiB page size and 256KiB block size 64*(2*2048) |
113 | */ | 113 | */ |
114 | 114 | ||
115 | static struct mtd_partition igep2_onenand_partitions[] = { | 115 | static struct mtd_partition igep_onenand_partitions[] = { |
116 | { | 116 | { |
117 | .name = "X-Loader", | 117 | .name = "X-Loader", |
118 | .offset = 0, | 118 | .offset = 0, |
@@ -140,21 +140,21 @@ static struct mtd_partition igep2_onenand_partitions[] = { | |||
140 | }, | 140 | }, |
141 | }; | 141 | }; |
142 | 142 | ||
143 | static struct omap_onenand_platform_data igep2_onenand_data = { | 143 | static struct omap_onenand_platform_data igep_onenand_data = { |
144 | .parts = igep2_onenand_partitions, | 144 | .parts = igep_onenand_partitions, |
145 | .nr_parts = ARRAY_SIZE(igep2_onenand_partitions), | 145 | .nr_parts = ARRAY_SIZE(igep_onenand_partitions), |
146 | .dma_channel = -1, /* disable DMA in OMAP OneNAND driver */ | 146 | .dma_channel = -1, /* disable DMA in OMAP OneNAND driver */ |
147 | }; | 147 | }; |
148 | 148 | ||
149 | static struct platform_device igep2_onenand_device = { | 149 | static struct platform_device igep_onenand_device = { |
150 | .name = "omap2-onenand", | 150 | .name = "omap2-onenand", |
151 | .id = -1, | 151 | .id = -1, |
152 | .dev = { | 152 | .dev = { |
153 | .platform_data = &igep2_onenand_data, | 153 | .platform_data = &igep_onenand_data, |
154 | }, | 154 | }, |
155 | }; | 155 | }; |
156 | 156 | ||
157 | static void __init igep2_flash_init(void) | 157 | static void __init igep_flash_init(void) |
158 | { | 158 | { |
159 | u8 cs = 0; | 159 | u8 cs = 0; |
160 | u8 onenandcs = GPMC_CS_NUM + 1; | 160 | u8 onenandcs = GPMC_CS_NUM + 1; |
@@ -166,7 +166,7 @@ static void __init igep2_flash_init(void) | |||
166 | /* Check if NAND/oneNAND is configured */ | 166 | /* Check if NAND/oneNAND is configured */ |
167 | if ((ret & 0xC00) == 0x800) | 167 | if ((ret & 0xC00) == 0x800) |
168 | /* NAND found */ | 168 | /* NAND found */ |
169 | pr_err("IGEP2: Unsupported NAND found\n"); | 169 | pr_err("IGEP: Unsupported NAND found\n"); |
170 | else { | 170 | else { |
171 | ret = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG7); | 171 | ret = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG7); |
172 | if ((ret & 0x3F) == (ONENAND_MAP >> 24)) | 172 | if ((ret & 0x3F) == (ONENAND_MAP >> 24)) |
@@ -176,18 +176,18 @@ static void __init igep2_flash_init(void) | |||
176 | } | 176 | } |
177 | 177 | ||
178 | if (onenandcs > GPMC_CS_NUM) { | 178 | if (onenandcs > GPMC_CS_NUM) { |
179 | pr_err("IGEP2: Unable to find configuration in GPMC\n"); | 179 | pr_err("IGEP: Unable to find configuration in GPMC\n"); |
180 | return; | 180 | return; |
181 | } | 181 | } |
182 | 182 | ||
183 | igep2_onenand_data.cs = onenandcs; | 183 | igep_onenand_data.cs = onenandcs; |
184 | 184 | ||
185 | if (platform_device_register(&igep2_onenand_device) < 0) | 185 | if (platform_device_register(&igep_onenand_device) < 0) |
186 | pr_err("IGEP2: Unable to register OneNAND device\n"); | 186 | pr_err("IGEP: Unable to register OneNAND device\n"); |
187 | } | 187 | } |
188 | 188 | ||
189 | #else | 189 | #else |
190 | static void __init igep2_flash_init(void) {} | 190 | static void __init igep_flash_init(void) {} |
191 | #endif | 191 | #endif |
192 | 192 | ||
193 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | 193 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
@@ -211,11 +211,11 @@ static inline void __init igep2_init_smsc911x(void) | |||
211 | static inline void __init igep2_init_smsc911x(void) { } | 211 | static inline void __init igep2_init_smsc911x(void) { } |
212 | #endif | 212 | #endif |
213 | 213 | ||
214 | static struct regulator_consumer_supply igep2_vmmc1_supply = | 214 | static struct regulator_consumer_supply igep_vmmc1_supply = |
215 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"); | 215 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"); |
216 | 216 | ||
217 | /* VMMC1 for OMAP VDD_MMC1 (i/o) and MMC1 card */ | 217 | /* VMMC1 for OMAP VDD_MMC1 (i/o) and MMC1 card */ |
218 | static struct regulator_init_data igep2_vmmc1 = { | 218 | static struct regulator_init_data igep_vmmc1 = { |
219 | .constraints = { | 219 | .constraints = { |
220 | .min_uV = 1850000, | 220 | .min_uV = 1850000, |
221 | .max_uV = 3150000, | 221 | .max_uV = 3150000, |
@@ -226,13 +226,13 @@ static struct regulator_init_data igep2_vmmc1 = { | |||
226 | | REGULATOR_CHANGE_STATUS, | 226 | | REGULATOR_CHANGE_STATUS, |
227 | }, | 227 | }, |
228 | .num_consumer_supplies = 1, | 228 | .num_consumer_supplies = 1, |
229 | .consumer_supplies = &igep2_vmmc1_supply, | 229 | .consumer_supplies = &igep_vmmc1_supply, |
230 | }; | 230 | }; |
231 | 231 | ||
232 | static struct regulator_consumer_supply igep2_vio_supply = | 232 | static struct regulator_consumer_supply igep_vio_supply = |
233 | REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.1"); | 233 | REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.1"); |
234 | 234 | ||
235 | static struct regulator_init_data igep2_vio = { | 235 | static struct regulator_init_data igep_vio = { |
236 | .constraints = { | 236 | .constraints = { |
237 | .min_uV = 1800000, | 237 | .min_uV = 1800000, |
238 | .max_uV = 1800000, | 238 | .max_uV = 1800000, |
@@ -244,34 +244,34 @@ static struct regulator_init_data igep2_vio = { | |||
244 | | REGULATOR_CHANGE_STATUS, | 244 | | REGULATOR_CHANGE_STATUS, |
245 | }, | 245 | }, |
246 | .num_consumer_supplies = 1, | 246 | .num_consumer_supplies = 1, |
247 | .consumer_supplies = &igep2_vio_supply, | 247 | .consumer_supplies = &igep_vio_supply, |
248 | }; | 248 | }; |
249 | 249 | ||
250 | static struct regulator_consumer_supply igep2_vmmc2_supply = | 250 | static struct regulator_consumer_supply igep_vmmc2_supply = |
251 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.1"); | 251 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.1"); |
252 | 252 | ||
253 | static struct regulator_init_data igep2_vmmc2 = { | 253 | static struct regulator_init_data igep_vmmc2 = { |
254 | .constraints = { | 254 | .constraints = { |
255 | .valid_modes_mask = REGULATOR_MODE_NORMAL, | 255 | .valid_modes_mask = REGULATOR_MODE_NORMAL, |
256 | .always_on = 1, | 256 | .always_on = 1, |
257 | }, | 257 | }, |
258 | .num_consumer_supplies = 1, | 258 | .num_consumer_supplies = 1, |
259 | .consumer_supplies = &igep2_vmmc2_supply, | 259 | .consumer_supplies = &igep_vmmc2_supply, |
260 | }; | 260 | }; |
261 | 261 | ||
262 | static struct fixed_voltage_config igep2_vwlan = { | 262 | static struct fixed_voltage_config igep_vwlan = { |
263 | .supply_name = "vwlan", | 263 | .supply_name = "vwlan", |
264 | .microvolts = 3300000, | 264 | .microvolts = 3300000, |
265 | .gpio = -EINVAL, | 265 | .gpio = -EINVAL, |
266 | .enabled_at_boot = 1, | 266 | .enabled_at_boot = 1, |
267 | .init_data = &igep2_vmmc2, | 267 | .init_data = &igep_vmmc2, |
268 | }; | 268 | }; |
269 | 269 | ||
270 | static struct platform_device igep2_vwlan_device = { | 270 | static struct platform_device igep_vwlan_device = { |
271 | .name = "reg-fixed-voltage", | 271 | .name = "reg-fixed-voltage", |
272 | .id = 0, | 272 | .id = 0, |
273 | .dev = { | 273 | .dev = { |
274 | .platform_data = &igep2_vwlan, | 274 | .platform_data = &igep_vwlan, |
275 | }, | 275 | }, |
276 | }; | 276 | }; |
277 | 277 | ||
@@ -296,7 +296,7 @@ static struct omap2_hsmmc_info mmc[] = { | |||
296 | #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE) | 296 | #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE) |
297 | #include <linux/leds.h> | 297 | #include <linux/leds.h> |
298 | 298 | ||
299 | static struct gpio_led igep2_gpio_leds[] = { | 299 | static struct gpio_led igep_gpio_leds[] = { |
300 | [0] = { | 300 | [0] = { |
301 | .name = "gpio-led:red:d0", | 301 | .name = "gpio-led:red:d0", |
302 | .gpio = IGEP2_GPIO_LED0_RED, | 302 | .gpio = IGEP2_GPIO_LED0_RED, |
@@ -320,34 +320,34 @@ static struct gpio_led igep2_gpio_leds[] = { | |||
320 | }, | 320 | }, |
321 | }; | 321 | }; |
322 | 322 | ||
323 | static struct gpio_led_platform_data igep2_led_pdata = { | 323 | static struct gpio_led_platform_data igep_led_pdata = { |
324 | .leds = igep2_gpio_leds, | 324 | .leds = igep_gpio_leds, |
325 | .num_leds = ARRAY_SIZE(igep2_gpio_leds), | 325 | .num_leds = ARRAY_SIZE(igep_gpio_leds), |
326 | }; | 326 | }; |
327 | 327 | ||
328 | static struct platform_device igep2_led_device = { | 328 | static struct platform_device igep_led_device = { |
329 | .name = "leds-gpio", | 329 | .name = "leds-gpio", |
330 | .id = -1, | 330 | .id = -1, |
331 | .dev = { | 331 | .dev = { |
332 | .platform_data = &igep2_led_pdata, | 332 | .platform_data = &igep_led_pdata, |
333 | }, | 333 | }, |
334 | }; | 334 | }; |
335 | 335 | ||
336 | static void __init igep2_leds_init(void) | 336 | static void __init igep_leds_init(void) |
337 | { | 337 | { |
338 | platform_device_register(&igep2_led_device); | 338 | platform_device_register(&igep_led_device); |
339 | } | 339 | } |
340 | 340 | ||
341 | #else | 341 | #else |
342 | static struct gpio igep2_gpio_leds[] __initdata = { | 342 | static struct gpio igep_gpio_leds[] __initdata = { |
343 | { IGEP2_GPIO_LED0_RED, GPIOF_OUT_INIT_LOW, "gpio-led:red:d0" }, | 343 | { IGEP2_GPIO_LED0_RED, GPIOF_OUT_INIT_LOW, "gpio-led:red:d0" }, |
344 | { IGEP2_GPIO_LED0_GREEN, GPIOF_OUT_INIT_LOW, "gpio-led:green:d0" }, | 344 | { IGEP2_GPIO_LED0_GREEN, GPIOF_OUT_INIT_LOW, "gpio-led:green:d0" }, |
345 | { IGEP2_GPIO_LED1_RED, GPIOF_OUT_INIT_LOW, "gpio-led:red:d1" }, | 345 | { IGEP2_GPIO_LED1_RED, GPIOF_OUT_INIT_LOW, "gpio-led:red:d1" }, |
346 | }; | 346 | }; |
347 | 347 | ||
348 | static inline void igep2_leds_init(void) | 348 | static inline void igep_leds_init(void) |
349 | { | 349 | { |
350 | if (gpio_request_array(igep2_gpio_leds, ARRAY_SIZE(igep2_gpio_leds))) { | 350 | if (gpio_request_array(igep_gpio_leds, ARRAY_SIZE(igep_gpio_leds))) { |
351 | pr_warning("IGEP v2: Could not obtain leds gpios\n"); | 351 | pr_warning("IGEP v2: Could not obtain leds gpios\n"); |
352 | return; | 352 | return; |
353 | } | 353 | } |
@@ -363,7 +363,7 @@ static struct gpio igep2_twl_gpios[] = { | |||
363 | { -EINVAL, GPIOF_OUT_INIT_LOW, "GPIO_USBH_CPEN" }, | 363 | { -EINVAL, GPIOF_OUT_INIT_LOW, "GPIO_USBH_CPEN" }, |
364 | }; | 364 | }; |
365 | 365 | ||
366 | static int igep2_twl_gpio_setup(struct device *dev, | 366 | static int igep_twl_gpio_setup(struct device *dev, |
367 | unsigned gpio, unsigned ngpio) | 367 | unsigned gpio, unsigned ngpio) |
368 | { | 368 | { |
369 | int ret; | 369 | int ret; |
@@ -392,23 +392,23 @@ static int igep2_twl_gpio_setup(struct device *dev, | |||
392 | if (ret == 0) | 392 | if (ret == 0) |
393 | gpio_export(gpio + TWL4030_GPIO_MAX + 1, 0); | 393 | gpio_export(gpio + TWL4030_GPIO_MAX + 1, 0); |
394 | else | 394 | else |
395 | pr_warning("IGEP v2: Could not obtain gpio GPIO_LED1_GREEN\n"); | 395 | pr_warning("IGEP: Could not obtain gpio GPIO_LED1_GREEN\n"); |
396 | #else | 396 | #else |
397 | igep2_gpio_leds[3].gpio = gpio + TWL4030_GPIO_MAX + 1; | 397 | igep_gpio_leds[3].gpio = gpio + TWL4030_GPIO_MAX + 1; |
398 | #endif | 398 | #endif |
399 | 399 | ||
400 | return 0; | 400 | return 0; |
401 | }; | 401 | }; |
402 | 402 | ||
403 | static struct twl4030_gpio_platform_data igep2_twl4030_gpio_pdata = { | 403 | static struct twl4030_gpio_platform_data igep_twl4030_gpio_pdata = { |
404 | .gpio_base = OMAP_MAX_GPIO_LINES, | 404 | .gpio_base = OMAP_MAX_GPIO_LINES, |
405 | .irq_base = TWL4030_GPIO_IRQ_BASE, | 405 | .irq_base = TWL4030_GPIO_IRQ_BASE, |
406 | .irq_end = TWL4030_GPIO_IRQ_END, | 406 | .irq_end = TWL4030_GPIO_IRQ_END, |
407 | .use_leds = true, | 407 | .use_leds = true, |
408 | .setup = igep2_twl_gpio_setup, | 408 | .setup = igep_twl_gpio_setup, |
409 | }; | 409 | }; |
410 | 410 | ||
411 | static struct twl4030_usb_data igep2_usb_data = { | 411 | static struct twl4030_usb_data igep_usb_data = { |
412 | .usb_mode = T2_USB_MODE_ULPI, | 412 | .usb_mode = T2_USB_MODE_ULPI, |
413 | }; | 413 | }; |
414 | 414 | ||
@@ -476,11 +476,11 @@ static void __init igep2_display_init(void) | |||
476 | pr_err("IGEP v2: Could not obtain gpio GPIO_DVI_PUP\n"); | 476 | pr_err("IGEP v2: Could not obtain gpio GPIO_DVI_PUP\n"); |
477 | } | 477 | } |
478 | 478 | ||
479 | static struct platform_device *igep2_devices[] __initdata = { | 479 | static struct platform_device *igep_devices[] __initdata = { |
480 | &igep2_vwlan_device, | 480 | &igep_vwlan_device, |
481 | }; | 481 | }; |
482 | 482 | ||
483 | static void __init igep2_init_early(void) | 483 | static void __init igep_init_early(void) |
484 | { | 484 | { |
485 | omap2_init_common_infrastructure(); | 485 | omap2_init_common_infrastructure(); |
486 | omap2_init_common_devices(m65kxxxxam_sdrc_params, | 486 | omap2_init_common_devices(m65kxxxxam_sdrc_params, |
@@ -525,18 +525,18 @@ static struct twl4030_keypad_data igep2_keypad_pdata = { | |||
525 | .rep = 1, | 525 | .rep = 1, |
526 | }; | 526 | }; |
527 | 527 | ||
528 | static struct twl4030_platform_data igep2_twldata = { | 528 | static struct twl4030_platform_data igep_twldata = { |
529 | .irq_base = TWL4030_IRQ_BASE, | 529 | .irq_base = TWL4030_IRQ_BASE, |
530 | .irq_end = TWL4030_IRQ_END, | 530 | .irq_end = TWL4030_IRQ_END, |
531 | 531 | ||
532 | /* platform_data for children goes here */ | 532 | /* platform_data for children goes here */ |
533 | .usb = &igep2_usb_data, | 533 | .usb = &igep_usb_data, |
534 | .codec = &igep2_codec_data, | 534 | .codec = &igep2_codec_data, |
535 | .gpio = &igep2_twl4030_gpio_pdata, | 535 | .gpio = &igep_twl4030_gpio_pdata, |
536 | .keypad = &igep2_keypad_pdata, | 536 | .keypad = &igep2_keypad_pdata, |
537 | .vmmc1 = &igep2_vmmc1, | 537 | .vmmc1 = &igep_vmmc1, |
538 | .vpll2 = &igep2_vpll2, | 538 | .vpll2 = &igep2_vpll2, |
539 | .vio = &igep2_vio, | 539 | .vio = &igep_vio, |
540 | }; | 540 | }; |
541 | 541 | ||
542 | static struct i2c_board_info __initdata igep2_i2c3_boardinfo[] = { | 542 | static struct i2c_board_info __initdata igep2_i2c3_boardinfo[] = { |
@@ -545,11 +545,11 @@ static struct i2c_board_info __initdata igep2_i2c3_boardinfo[] = { | |||
545 | }, | 545 | }, |
546 | }; | 546 | }; |
547 | 547 | ||
548 | static void __init igep2_i2c_init(void) | 548 | static void __init igep_i2c_init(void) |
549 | { | 549 | { |
550 | int ret; | 550 | int ret; |
551 | 551 | ||
552 | omap3_pmic_init("twl4030", &igep2_twldata); | 552 | omap3_pmic_init("twl4030", &igep_twldata); |
553 | 553 | ||
554 | /* | 554 | /* |
555 | * Bus 3 is attached to the DVI port where devices like the pico DLP | 555 | * Bus 3 is attached to the DVI port where devices like the pico DLP |
@@ -561,7 +561,7 @@ static void __init igep2_i2c_init(void) | |||
561 | pr_warning("IGEP2: Could not register I2C3 bus (%d)\n", ret); | 561 | pr_warning("IGEP2: Could not register I2C3 bus (%d)\n", ret); |
562 | } | 562 | } |
563 | 563 | ||
564 | static const struct usbhs_omap_board_data usbhs_bdata __initconst = { | 564 | static const struct usbhs_omap_board_data igep2_usbhs_bdata __initconst = { |
565 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, | 565 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, |
566 | .port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED, | 566 | .port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED, |
567 | .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED, | 567 | .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED, |
@@ -579,64 +579,64 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
579 | #endif | 579 | #endif |
580 | 580 | ||
581 | #if defined(CONFIG_LIBERTAS_SDIO) || defined(CONFIG_LIBERTAS_SDIO_MODULE) | 581 | #if defined(CONFIG_LIBERTAS_SDIO) || defined(CONFIG_LIBERTAS_SDIO_MODULE) |
582 | static struct gpio igep2_wlan_bt_gpios[] __initdata = { | 582 | static struct gpio igep_wlan_bt_gpios[] __initdata = { |
583 | { -EINVAL, GPIOF_OUT_INIT_HIGH, "GPIO_WIFI_NPD" }, | 583 | { -EINVAL, GPIOF_OUT_INIT_HIGH, "GPIO_WIFI_NPD" }, |
584 | { -EINVAL, GPIOF_OUT_INIT_HIGH, "GPIO_WIFI_NRESET" }, | 584 | { -EINVAL, GPIOF_OUT_INIT_HIGH, "GPIO_WIFI_NRESET" }, |
585 | { -EINVAL, GPIOF_OUT_INIT_HIGH, "GPIO_BT_NRESET" }, | 585 | { -EINVAL, GPIOF_OUT_INIT_HIGH, "GPIO_BT_NRESET" }, |
586 | }; | 586 | }; |
587 | 587 | ||
588 | static void __init igep2_wlan_bt_init(void) | 588 | static void __init igep_wlan_bt_init(void) |
589 | { | 589 | { |
590 | int err; | 590 | int err; |
591 | 591 | ||
592 | /* GPIO's for WLAN-BT combo depends on hardware revision */ | 592 | /* GPIO's for WLAN-BT combo depends on hardware revision */ |
593 | if (hwrev == IGEP2_BOARD_HWREV_B) { | 593 | if (hwrev == IGEP2_BOARD_HWREV_B) { |
594 | igep2_wlan_bt_gpios[0].gpio = IGEP2_RB_GPIO_WIFI_NPD; | 594 | igep_wlan_bt_gpios[0].gpio = IGEP2_RB_GPIO_WIFI_NPD; |
595 | igep2_wlan_bt_gpios[1].gpio = IGEP2_RB_GPIO_WIFI_NRESET; | 595 | igep_wlan_bt_gpios[1].gpio = IGEP2_RB_GPIO_WIFI_NRESET; |
596 | igep2_wlan_bt_gpios[2].gpio = IGEP2_RB_GPIO_BT_NRESET; | 596 | igep_wlan_bt_gpios[2].gpio = IGEP2_RB_GPIO_BT_NRESET; |
597 | } else if (hwrev == IGEP2_BOARD_HWREV_C) { | 597 | } else if (hwrev == IGEP2_BOARD_HWREV_C) { |
598 | igep2_wlan_bt_gpios[0].gpio = IGEP2_RC_GPIO_WIFI_NPD; | 598 | igep_wlan_bt_gpios[0].gpio = IGEP2_RC_GPIO_WIFI_NPD; |
599 | igep2_wlan_bt_gpios[1].gpio = IGEP2_RC_GPIO_WIFI_NRESET; | 599 | igep_wlan_bt_gpios[1].gpio = IGEP2_RC_GPIO_WIFI_NRESET; |
600 | igep2_wlan_bt_gpios[2].gpio = IGEP2_RC_GPIO_BT_NRESET; | 600 | igep_wlan_bt_gpios[2].gpio = IGEP2_RC_GPIO_BT_NRESET; |
601 | } else | 601 | } else |
602 | return; | 602 | return; |
603 | 603 | ||
604 | err = gpio_request_array(igep2_wlan_bt_gpios, | 604 | err = gpio_request_array(igep_wlan_bt_gpios, |
605 | ARRAY_SIZE(igep2_wlan_bt_gpios)); | 605 | ARRAY_SIZE(igep_wlan_bt_gpios)); |
606 | if (err) { | 606 | if (err) { |
607 | pr_warning("IGEP2: Could not obtain WIFI/BT gpios\n"); | 607 | pr_warning("IGEP2: Could not obtain WIFI/BT gpios\n"); |
608 | return; | 608 | return; |
609 | } | 609 | } |
610 | 610 | ||
611 | gpio_export(igep2_wlan_bt_gpios[0].gpio, 0); | 611 | gpio_export(igep_wlan_bt_gpios[0].gpio, 0); |
612 | gpio_export(igep2_wlan_bt_gpios[1].gpio, 0); | 612 | gpio_export(igep_wlan_bt_gpios[1].gpio, 0); |
613 | gpio_export(igep2_wlan_bt_gpios[2].gpio, 0); | 613 | gpio_export(igep_wlan_bt_gpios[2].gpio, 0); |
614 | 614 | ||
615 | gpio_set_value(igep2_wlan_bt_gpios[1].gpio, 0); | 615 | gpio_set_value(igep_wlan_bt_gpios[1].gpio, 0); |
616 | udelay(10); | 616 | udelay(10); |
617 | gpio_set_value(igep2_wlan_bt_gpios[1].gpio, 1); | 617 | gpio_set_value(igep_wlan_bt_gpios[1].gpio, 1); |
618 | 618 | ||
619 | } | 619 | } |
620 | #else | 620 | #else |
621 | static inline void __init igep2_wlan_bt_init(void) { } | 621 | static inline void __init igep_wlan_bt_init(void) { } |
622 | #endif | 622 | #endif |
623 | 623 | ||
624 | static void __init igep2_init(void) | 624 | static void __init igep_init(void) |
625 | { | 625 | { |
626 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 626 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
627 | 627 | ||
628 | /* Get IGEP2 hardware revision */ | 628 | /* Get IGEP2 hardware revision */ |
629 | igep2_get_revision(); | 629 | igep2_get_revision(); |
630 | /* Register I2C busses and drivers */ | 630 | /* Register I2C busses and drivers */ |
631 | igep2_i2c_init(); | 631 | igep_i2c_init(); |
632 | platform_add_devices(igep2_devices, ARRAY_SIZE(igep2_devices)); | 632 | platform_add_devices(igep_devices, ARRAY_SIZE(igep_devices)); |
633 | omap_display_init(&igep2_dss_data); | 633 | omap_display_init(&igep2_dss_data); |
634 | omap_serial_init(); | 634 | omap_serial_init(); |
635 | usb_musb_init(NULL); | 635 | usb_musb_init(NULL); |
636 | usbhs_init(&usbhs_bdata); | 636 | usbhs_init(&igep2_usbhs_bdata); |
637 | 637 | ||
638 | igep2_flash_init(); | 638 | igep_flash_init(); |
639 | igep2_leds_init(); | 639 | igep_leds_init(); |
640 | igep2_display_init(); | 640 | igep2_display_init(); |
641 | igep2_init_smsc911x(); | 641 | igep2_init_smsc911x(); |
642 | 642 | ||
@@ -644,7 +644,7 @@ static void __init igep2_init(void) | |||
644 | * WLAN-BT combo module from MuRata which has a Marvell WLAN | 644 | * WLAN-BT combo module from MuRata which has a Marvell WLAN |
645 | * (88W8686) + CSR Bluetooth chipset. Uses SDIO interface. | 645 | * (88W8686) + CSR Bluetooth chipset. Uses SDIO interface. |
646 | */ | 646 | */ |
647 | igep2_wlan_bt_init(); | 647 | igep_wlan_bt_init(); |
648 | 648 | ||
649 | } | 649 | } |
650 | 650 | ||
@@ -652,8 +652,8 @@ MACHINE_START(IGEP0020, "IGEP v2 board") | |||
652 | .boot_params = 0x80000100, | 652 | .boot_params = 0x80000100, |
653 | .reserve = omap_reserve, | 653 | .reserve = omap_reserve, |
654 | .map_io = omap3_map_io, | 654 | .map_io = omap3_map_io, |
655 | .init_early = igep2_init_early, | 655 | .init_early = igep_init_early, |
656 | .init_irq = omap_init_irq, | 656 | .init_irq = omap_init_irq, |
657 | .init_machine = igep2_init, | 657 | .init_machine = igep_init, |
658 | .timer = &omap_timer, | 658 | .timer = &omap_timer, |
659 | MACHINE_END | 659 | MACHINE_END |