aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-am3517evm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/board-am3517evm.c')
-rw-r--r--arch/arm/mach-omap2/board-am3517evm.c41
1 files changed, 17 insertions, 24 deletions
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c
index 913538ad17d8..ce7d5e6e4150 100644
--- a/arch/arm/mach-omap2/board-am3517evm.c
+++ b/arch/arm/mach-omap2/board-am3517evm.c
@@ -200,6 +200,9 @@ static struct pca953x_platform_data am3517evm_gpio_expander_info_0 = {
200}; 200};
201static struct i2c_board_info __initdata am3517evm_i2c2_boardinfo[] = { 201static struct i2c_board_info __initdata am3517evm_i2c2_boardinfo[] = {
202 { 202 {
203 I2C_BOARD_INFO("tlv320aic23", 0x1A),
204 },
205 {
203 I2C_BOARD_INFO("tca6416", 0x21), 206 I2C_BOARD_INFO("tca6416", 0x21),
204 .platform_data = &am3517evm_gpio_expander_info_0, 207 .platform_data = &am3517evm_gpio_expander_info_0,
205 }, 208 },
@@ -378,37 +381,23 @@ static struct omap_dss_board_info am3517_evm_dss_data = {
378 .default_device = &am3517_evm_lcd_device, 381 .default_device = &am3517_evm_lcd_device,
379}; 382};
380 383
381static struct platform_device am3517_evm_dss_device = {
382 .name = "omapdss",
383 .id = -1,
384 .dev = {
385 .platform_data = &am3517_evm_dss_data,
386 },
387};
388
389/* 384/*
390 * Board initialization 385 * Board initialization
391 */ 386 */
392static struct omap_board_config_kernel am3517_evm_config[] __initdata = { 387static void __init am3517_evm_init_early(void)
393};
394
395static struct platform_device *am3517_evm_devices[] __initdata = {
396 &am3517_evm_dss_device,
397};
398
399static void __init am3517_evm_init_irq(void)
400{ 388{
401 omap_board_config = am3517_evm_config;
402 omap_board_config_size = ARRAY_SIZE(am3517_evm_config);
403 omap2_init_common_infrastructure(); 389 omap2_init_common_infrastructure();
404 omap2_init_common_devices(NULL, NULL); 390 omap2_init_common_devices(NULL, NULL);
405 omap_init_irq();
406} 391}
407 392
408static struct omap_musb_board_data musb_board_data = { 393static struct omap_musb_board_data musb_board_data = {
409 .interface_type = MUSB_INTERFACE_ULPI, 394 .interface_type = MUSB_INTERFACE_ULPI,
410 .mode = MUSB_OTG, 395 .mode = MUSB_OTG,
411 .power = 500, 396 .power = 500,
397 .set_phy_power = am35x_musb_phy_power,
398 .clear_irq = am35x_musb_clear_irq,
399 .set_mode = am35x_musb_set_mode,
400 .reset = am35x_musb_reset,
412}; 401};
413 402
414static __init void am3517_evm_musb_init(void) 403static __init void am3517_evm_musb_init(void)
@@ -490,14 +479,17 @@ static void am3517_evm_hecc_init(struct ti_hecc_platform_data *pdata)
490 platform_device_register(&am3517_hecc_device); 479 platform_device_register(&am3517_hecc_device);
491} 480}
492 481
482static struct omap_board_config_kernel am3517_evm_config[] __initdata = {
483};
484
493static void __init am3517_evm_init(void) 485static void __init am3517_evm_init(void)
494{ 486{
487 omap_board_config = am3517_evm_config;
488 omap_board_config_size = ARRAY_SIZE(am3517_evm_config);
495 omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); 489 omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
496 490
497 am3517_evm_i2c_init(); 491 am3517_evm_i2c_init();
498 platform_add_devices(am3517_evm_devices, 492 omap_display_init(&am3517_evm_dss_data);
499 ARRAY_SIZE(am3517_evm_devices));
500
501 omap_serial_init(); 493 omap_serial_init();
502 494
503 /* Configure GPIO for EHCI port */ 495 /* Configure GPIO for EHCI port */
@@ -521,9 +513,10 @@ static void __init am3517_evm_init(void)
521 513
522MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") 514MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM")
523 .boot_params = 0x80000100, 515 .boot_params = 0x80000100,
524 .map_io = omap3_map_io,
525 .reserve = omap_reserve, 516 .reserve = omap_reserve,
526 .init_irq = am3517_evm_init_irq, 517 .map_io = omap3_map_io,
518 .init_early = am3517_evm_init_early,
519 .init_irq = omap_init_irq,
527 .init_machine = am3517_evm_init, 520 .init_machine = am3517_evm_init,
528 .timer = &omap_timer, 521 .timer = &omap_timer,
529MACHINE_END 522MACHINE_END