diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-zoom2.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom2.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/arch/arm/mach-omap2/board-zoom2.c b/arch/arm/mach-omap2/board-zoom2.c index 86d4515b54b4..00c8f835649f 100644 --- a/arch/arm/mach-omap2/board-zoom2.c +++ b/arch/arm/mach-omap2/board-zoom2.c | |||
@@ -35,49 +35,6 @@ static void __init omap_zoom2_init_irq(void) | |||
35 | omap_gpio_init(); | 35 | omap_gpio_init(); |
36 | } | 36 | } |
37 | 37 | ||
38 | /* EXTMUTE callback function */ | ||
39 | void zoom2_set_hs_extmute(int mute) | ||
40 | { | ||
41 | gpio_set_value(ZOOM2_HEADSET_EXTMUTE_GPIO, mute); | ||
42 | } | ||
43 | |||
44 | static struct twl4030_codec_audio_data zoom2_audio_data = { | ||
45 | .audio_mclk = 26000000, | ||
46 | .ramp_delay_value = 3, /* 161 ms */ | ||
47 | .hs_extmute = 1, | ||
48 | .set_hs_extmute = zoom2_set_hs_extmute, | ||
49 | }; | ||
50 | |||
51 | static struct twl4030_codec_data zoom2_codec_data = { | ||
52 | .audio_mclk = 26000000, | ||
53 | .audio = &zoom2_audio_data, | ||
54 | }; | ||
55 | |||
56 | static struct twl4030_platform_data zoom2_twldata = { | ||
57 | .irq_base = TWL4030_IRQ_BASE, | ||
58 | .irq_end = TWL4030_IRQ_END, | ||
59 | |||
60 | /* platform_data for children goes here */ | ||
61 | .codec = &zoom2_codec_data, | ||
62 | }; | ||
63 | |||
64 | static struct i2c_board_info __initdata zoom2_i2c_boardinfo[] = { | ||
65 | { | ||
66 | I2C_BOARD_INFO("twl4030", 0x48), | ||
67 | .flags = I2C_CLIENT_WAKE, | ||
68 | .irq = INT_34XX_SYS_NIRQ, | ||
69 | .platform_data = &zoom2_twldata, | ||
70 | }, | ||
71 | }; | ||
72 | |||
73 | static int __init omap3_zoom2_i2c_init(void) | ||
74 | { | ||
75 | omap_register_i2c_bus(1, 2600, zoom2_i2c_boardinfo, | ||
76 | ARRAY_SIZE(zoom2_i2c_boardinfo)); | ||
77 | return 0; | ||
78 | } | ||
79 | |||
80 | |||
81 | #ifdef CONFIG_OMAP_MUX | 38 | #ifdef CONFIG_OMAP_MUX |
82 | static struct omap_board_mux board_mux[] __initdata = { | 39 | static struct omap_board_mux board_mux[] __initdata = { |
83 | /* WLAN IRQ - GPIO 162 */ | 40 | /* WLAN IRQ - GPIO 162 */ |
@@ -144,7 +101,6 @@ static void __init omap_zoom2_init(void) | |||
144 | { | 101 | { |
145 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 102 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
146 | zoom_peripherals_init(); | 103 | zoom_peripherals_init(); |
147 | omap3_zoom2_i2c_init(); | ||
148 | board_nand_init(zoom_nand_partitions, | 104 | board_nand_init(zoom_nand_partitions, |
149 | ARRAY_SIZE(zoom_nand_partitions), ZOOM_NAND_CS); | 105 | ARRAY_SIZE(zoom_nand_partitions), ZOOM_NAND_CS); |
150 | zoom_debugboard_init(); | 106 | zoom_debugboard_init(); |