2 * linux/arch/arm/mach-w90x900/mach-nuc950evb.c
4 * Based on mach-s3c2410/mach-smdk2410.c by Jonas Dietsche
6 * Copyright (C) 2008 Nuvoton technology corporation.
8 * Wan ZongShun <mcuos.com@gmail.com>
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation;version 2 of the License.
14 * Wang Qiang (rurality.linux@gmail.com) add LCD support
18 #include <linux/platform_device.h>
19 #include <asm/mach/arch.h>
20 #include <asm/mach/map.h>
21 #include <asm/mach-types.h>
23 #include <mach/regs-ldm.h>
28 #ifdef CONFIG_FB_NUC900
30 static struct nuc900fb_display __initdata nuc950_lcd_info[] = {
31 /* Giantplus Technology GPM1040A0 320x240 Color TFT LCD */
33 .type = LCM_DCCS_VA_SRC_RGB565,
53 static struct nuc900fb_mach_info nuc950_fb_info __initdata = {
54 #if defined(CONFIG_GPM1040A0_320X240)
55 .displays = &nuc950_lcd_info[0],
57 .displays = nuc950_lcd_info,
59 .num_displays = ARRAY_SIZE(nuc950_lcd_info),
61 .gpio_dir = 0x00000004,
62 .gpio_dir_mask = 0xFFFFFFFD,
63 .gpio_data = 0x00000004,
64 .gpio_data_mask = 0xFFFFFFFD,
68 static void __init nuc950evb_map_io(void)
74 static void __init nuc950evb_init(void)
77 #ifdef CONFIG_FB_NUC900
78 nuc900_fb_set_platdata(&nuc950_fb_info);
82 MACHINE_START(W90P950EVB, "W90P950EVB")
83 /* Maintainer: Wan ZongShun */
84 .phys_io = W90X900_PA_UART,
85 .io_pg_offst = (((u32)W90X900_VA_UART) >> 18) & 0xfffc,
87 .map_io = nuc950evb_map_io,
88 .init_irq = nuc900_init_irq,
89 .init_machine = nuc950evb_init,
90 .timer = &nuc900_timer,