aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-h3.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2007-12-18 23:58:32 -0500
committerTony Lindgren <tony@atomide.com>2008-02-08 13:38:02 -0500
commite27a93a944a5ba6a0112750c8243abba86d56e94 (patch)
tree2b7e895acd757783501c8689aac34a2b13ac0269 /arch/arm/mach-omap1/board-h3.c
parent80dbfde54bfc40c1e39ace7dbb371f095e74665f (diff)
ARM: OMAP1: Misc clean-up
This patch cleans up omap1 files to sync up with linux-omap tree: - Remove omap-generic MMC config as it should be defined in board-*.c files instead of using board-generic.c - New style I2C board_info from David Brownell <dbrownell@users.sourceforge.net> - Init section fixes from Dirk Behme <dirk.behme@googlemail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-h3.c')
-rw-r--r--arch/arm/mach-omap1/board-h3.c36
1 files changed, 3 insertions, 33 deletions
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c
index 7cf6ccd4e7ff..6fc516855a8c 100644
--- a/arch/arm/mach-omap1/board-h3.c
+++ b/arch/arm/mach-omap1/board-h3.c
@@ -51,8 +51,6 @@
51#include <asm/arch/mcbsp.h> 51#include <asm/arch/mcbsp.h>
52#include <asm/arch/omap-alsa.h> 52#include <asm/arch/omap-alsa.h>
53 53
54extern int omap_gpio_init(void);
55
56static int h3_keymap[] = { 54static int h3_keymap[] = {
57 KEY(0, 0, KEY_LEFT), 55 KEY(0, 0, KEY_LEFT),
58 KEY(0, 1, KEY_RIGHT), 56 KEY(0, 1, KEY_RIGHT),
@@ -452,26 +450,13 @@ static struct omap_lcd_config h3_lcd_config __initdata = {
452 .ctrl_name = "internal", 450 .ctrl_name = "internal",
453}; 451};
454 452
455static struct omap_board_config_kernel h3_config[] = { 453static struct omap_board_config_kernel h3_config[] __initdata = {
456 { OMAP_TAG_USB, &h3_usb_config }, 454 { OMAP_TAG_USB, &h3_usb_config },
457 { OMAP_TAG_MMC, &h3_mmc_config }, 455 { OMAP_TAG_MMC, &h3_mmc_config },
458 { OMAP_TAG_UART, &h3_uart_config }, 456 { OMAP_TAG_UART, &h3_uart_config },
459 { OMAP_TAG_LCD, &h3_lcd_config }, 457 { OMAP_TAG_LCD, &h3_lcd_config },
460}; 458};
461 459
462static struct i2c_board_info __initdata h3_i2c_board_info[] = {
463 {
464 I2C_BOARD_INFO("tps65010", 0x48),
465 .type = "tps65013",
466 /* .irq = OMAP_GPIO_IRQ(??), */
467 },
468 /* TODO when driver support is ready:
469 * - isp1301 OTG transceiver
470 * - optional ov9640 camera sensor at 0x30
471 * - ...
472 */
473};
474
475static struct omap_gpio_switch h3_gpio_switches[] __initdata = { 460static struct omap_gpio_switch h3_gpio_switches[] __initdata = {
476 { 461 {
477 .name = "mmc_slot", 462 .name = "mmc_slot",
@@ -514,6 +499,8 @@ static void __init h3_init(void)
514 omap_cfg_reg(V2_1710_GPIO10); 499 omap_cfg_reg(V2_1710_GPIO10);
515 500
516 platform_add_devices(devices, ARRAY_SIZE(devices)); 501 platform_add_devices(devices, ARRAY_SIZE(devices));
502 spi_register_board_info(h3_spi_board_info,
503 ARRAY_SIZE(h3_spi_board_info));
517 omap_board_config = h3_config; 504 omap_board_config = h3_config;
518 omap_board_config_size = ARRAY_SIZE(h3_config); 505 omap_board_config_size = ARRAY_SIZE(h3_config);
519 omap_serial_init(); 506 omap_serial_init();
@@ -544,23 +531,6 @@ static void __init h3_map_io(void)
544 omap1_map_common_io(); 531 omap1_map_common_io();
545} 532}
546 533
547#ifdef CONFIG_TPS65010
548static int __init h3_tps_init(void)
549{
550 if (!machine_is_omap_h3())
551 return 0;
552
553 /* gpio4 for SD, gpio3 for VDD_DSP */
554 /* FIXME send power to DSP iff it's configured */
555
556 /* Enable LOW_PWR */
557 tps65013_set_low_pwr(ON);
558
559 return 0;
560}
561fs_initcall(h3_tps_init);
562#endif
563
564MACHINE_START(OMAP_H3, "TI OMAP1710 H3 board") 534MACHINE_START(OMAP_H3, "TI OMAP1710 H3 board")
565 /* Maintainer: Texas Instruments, Inc. */ 535 /* Maintainer: Texas Instruments, Inc. */
566 .phys_io = 0xfff00000, 536 .phys_io = 0xfff00000,