#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
-
#include <linux/input.h>
#include <mach/hardware.h>
#include <mach/mux.h>
#include <mach/gpio.h>
#include <mach/common.h>
+#include <mach/board.h>
+
+static struct platform_device h6300_lcd_device = {
+ .name = "lcd_h6300",
+ .id = -1,
+};
+
+static struct platform_device *h6300_devices[] __initdata = {
+ &h6300_lcd_device,
+};
+
+static struct omap_lcd_config h6300_lcd_config __initdata = {
+ .ctrl_name = "internal",
+};
+
+static struct omap_board_config_kernel h6300_config[] = {
+ { OMAP_TAG_LCD, &h6300_lcd_config },
+};
static void __init h6300_init_irq(void)
{
static void __init h6300_init(void)
{
+ int ret;
+
+ ret = platform_add_devices(h6300_devices, ARRAY_SIZE(h6300_devices));
+ if (ret) {
+ printk(KERN_WARNING "Unable to add h6300 platform devices.");
+ }
+ omap_board_config = h6300_config;
+ omap_board_config_size = ARRAY_SIZE(h6300_config);
omap_serial_init();
omap_register_i2c_bus(1, 100, NULL, 0);
}