aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2009-05-28 17:03:31 -0400
committerTony Lindgren <tony@atomide.com>2009-05-28 17:03:31 -0400
commit088962c243db42b9c608f30be3e3a05a5b696895 (patch)
tree9d3c15affc704ca6aeb3a06123205a02226154d8 /arch/arm/mach-omap1
parentf5525786b0c481a0000989f2603257ba3aaef8ba (diff)
ARM: OMAP1: Make 770 LCD work
Make 770 LCD work by adding clk_add_alias(). Also remove the old unused functions. Note that the clk_add_alias() could probably be moved to arch/arm/clkdev.c later on. Cc: linux-fbdev-devel@lists.sourceforge.net Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Imre Deak <imre.deak@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r--arch/arm/mach-omap1/board-nokia770.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c
index 8780ca666398..e70fc7c66bbb 100644
--- a/arch/arm/mach-omap1/board-nokia770.c
+++ b/arch/arm/mach-omap1/board-nokia770.c
@@ -33,9 +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>
38#include <mach/usb.h> 39#include <mach/usb.h>
40#include <mach/clock.h>
39 41
40#define ADS7846_PENDOWN_GPIO 15 42#define ADS7846_PENDOWN_GPIO 15
41 43
@@ -163,6 +165,15 @@ static struct spi_board_info nokia770_spi_board_info[] __initdata = {
163 }, 165 },
164}; 166};
165 167
168static struct hwa742_platform_data nokia770_hwa742_platform_data = {
169 .te_connected = 1,
170};
171
172static 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}
166 177
167/* assume no Mini-AB port */ 178/* assume no Mini-AB port */
168 179
@@ -371,6 +382,7 @@ static void __init omap_nokia770_init(void)
371 omap_serial_init(); 382 omap_serial_init();
372 omap_register_i2c_bus(1, 100, NULL, 0); 383 omap_register_i2c_bus(1, 100, NULL, 0);
373 omap_dsp_init(); 384 omap_dsp_init();
385 hwa742_dev_init();
374 ads7846_dev_init(); 386 ads7846_dev_init();
375 mipid_dev_init(); 387 mipid_dev_init();
376 omap_usb_init(&nokia770_usb_config); 388 omap_usb_init(&nokia770_usb_config);