diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-nokia770.c')
-rw-r--r-- | arch/arm/mach-omap1/board-nokia770.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c index 7bc7a3cb9c51..e70fc7c66bbb 100644 --- a/arch/arm/mach-omap1/board-nokia770.c +++ b/arch/arm/mach-omap1/board-nokia770.c | |||
@@ -33,8 +33,11 @@ | |||
33 | #include <mach/common.h> | 33 | #include <mach/common.h> |
34 | #include <mach/dsp_common.h> | 34 | #include <mach/dsp_common.h> |
35 | #include <mach/omapfb.h> | 35 | #include <mach/omapfb.h> |
36 | #include <mach/hwa742.h> | ||
36 | #include <mach/lcd_mipid.h> | 37 | #include <mach/lcd_mipid.h> |
37 | #include <mach/mmc.h> | 38 | #include <mach/mmc.h> |
39 | #include <mach/usb.h> | ||
40 | #include <mach/clock.h> | ||
38 | 41 | ||
39 | #define ADS7846_PENDOWN_GPIO 15 | 42 | #define ADS7846_PENDOWN_GPIO 15 |
40 | 43 | ||
@@ -162,6 +165,15 @@ static struct spi_board_info nokia770_spi_board_info[] __initdata = { | |||
162 | }, | 165 | }, |
163 | }; | 166 | }; |
164 | 167 | ||
168 | static struct hwa742_platform_data nokia770_hwa742_platform_data = { | ||
169 | .te_connected = 1, | ||
170 | }; | ||
171 | |||
172 | static void hwa742_dev_init(void) | ||
173 | { | ||
174 | clk_add_alias("hwa_sys_ck", NULL, "bclk", NULL); | ||
175 | omapfb_set_ctrl_platform_data(&nokia770_hwa742_platform_data); | ||
176 | } | ||
165 | 177 | ||
166 | /* assume no Mini-AB port */ | 178 | /* assume no Mini-AB port */ |
167 | 179 | ||
@@ -181,11 +193,7 @@ static struct omap_usb_config nokia770_usb_config __initdata = { | |||
181 | static int nokia770_mmc_set_power(struct device *dev, int slot, int power_on, | 193 | static int nokia770_mmc_set_power(struct device *dev, int slot, int power_on, |
182 | int vdd) | 194 | int vdd) |
183 | { | 195 | { |
184 | if (power_on) | 196 | gpio_set_value(NOKIA770_GPIO_MMC_POWER, power_on); |
185 | gpio_set_value(NOKIA770_GPIO_MMC_POWER, 1); | ||
186 | else | ||
187 | gpio_set_value(NOKIA770_GPIO_MMC_POWER, 0); | ||
188 | |||
189 | return 0; | 197 | return 0; |
190 | } | 198 | } |
191 | 199 | ||
@@ -374,6 +382,7 @@ static void __init omap_nokia770_init(void) | |||
374 | omap_serial_init(); | 382 | omap_serial_init(); |
375 | omap_register_i2c_bus(1, 100, NULL, 0); | 383 | omap_register_i2c_bus(1, 100, NULL, 0); |
376 | omap_dsp_init(); | 384 | omap_dsp_init(); |
385 | hwa742_dev_init(); | ||
377 | ads7846_dev_init(); | 386 | ads7846_dev_init(); |
378 | mipid_dev_init(); | 387 | mipid_dev_init(); |
379 | omap_usb_init(&nokia770_usb_config); | 388 | omap_usb_init(&nokia770_usb_config); |