* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
-
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
-
#include <linux/input.h>
#include <asm/hardware.h>
#include <asm/mach/map.h>
#include <asm/arch/gpio.h>
-
#include <asm/arch/tc.h>
+#include <asm/arch/usb.h>
#include <asm/arch/common.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_uart_config h6300_uart_config __initdata = {
+ .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)),
+};
+
+/* assume no Mini-AB port */
+static struct omap_usb_config h6300_usb_config __initdata = {
+ .hmc_mode = 0,
+ .register_dev = 1,
+ .pins[0] = 0,
+};
+
+static struct omap_board_config_kernel h6300_config[] = {
+ { OMAP_TAG_LCD, &h6300_lcd_config },
+ { OMAP_TAG_UART, &h6300_uart_config },
+ { OMAP_TAG_USB, &h6300_usb_config },
+};
+
static void __init h6300_init_irq(void)
{
omap1_init_common_hw();
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();
}