aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/e750.c
diff options
context:
space:
mode:
authorIan Molton <spyro@f2s.com>2008-08-19 08:01:28 -0400
committerIan Molton <spyro@f2s.com>2008-08-19 08:44:07 -0400
commit0ec3cf69304d2e35ad29da3aa9ab43c3dd97677c (patch)
tree5c4cfa67f4f015da30aa7a49071c74f314c0c8d6 /arch/arm/mach-pxa/e750.c
parent7dc964148c2850e5df84fc17807ba48edb628c88 (diff)
[ARM] eseries: move LCD defs into machine files
This patch removes the seperate files used for the LCD definitions on e-series and places the definitions into the machine specific files. Signed-off-by: Ian Molton <spyro@f2s.com>
Diffstat (limited to 'arch/arm/mach-pxa/e750.c')
-rw-r--r--arch/arm/mach-pxa/e750.c88
1 files changed, 88 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/e750.c b/arch/arm/mach-pxa/e750.c
index bb6f814d5642..7e9a21dddd4d 100644
--- a/arch/arm/mach-pxa/e750.c
+++ b/arch/arm/mach-pxa/e750.c
@@ -12,6 +12,11 @@
12 12
13#include <linux/kernel.h> 13#include <linux/kernel.h>
14#include <linux/init.h> 14#include <linux/init.h>
15#include <linux/device.h>
16#include <linux/platform_device.h>
17#include <linux/fb.h>
18
19#include <video/w100fb.h>
15 20
16#include <asm/setup.h> 21#include <asm/setup.h>
17#include <asm/mach/arch.h> 22#include <asm/mach/arch.h>
@@ -23,6 +28,88 @@
23#include "generic.h" 28#include "generic.h"
24#include "eseries.h" 29#include "eseries.h"
25 30
31/* ---------------------- E750 LCD definitions -------------------- */
32
33static struct w100_gen_regs e750_lcd_regs = {
34 .lcd_format = 0x00008003,
35 .lcdd_cntl1 = 0x00000000,
36 .lcdd_cntl2 = 0x0003ffff,
37 .genlcd_cntl1 = 0x00fff003,
38 .genlcd_cntl2 = 0x003c0f03,
39 .genlcd_cntl3 = 0x000143aa,
40};
41
42static struct w100_mode e750_lcd_mode = {
43 .xres = 240,
44 .yres = 320,
45 .left_margin = 21,
46 .right_margin = 22,
47 .upper_margin = 5,
48 .lower_margin = 4,
49 .crtc_ss = 0x80150014,
50 .crtc_ls = 0x8014000d,
51 .crtc_gs = 0xc1000005,
52 .crtc_vpos_gs = 0x00020147,
53 .crtc_rev = 0x0040010a,
54 .crtc_dclk = 0xa1700030,
55 .crtc_gclk = 0x80cc0015,
56 .crtc_goe = 0x80cc0015,
57 .crtc_ps1_active = 0x61060017,
58 .pll_freq = 57,
59 .pixclk_divider = 4,
60 .pixclk_divider_rotated = 4,
61 .pixclk_src = CLK_SRC_XTAL,
62 .sysclk_divider = 1,
63 .sysclk_src = CLK_SRC_PLL,
64};
65
66static struct w100_gpio_regs e750_w100_gpio_info = {
67 .init_data1 = 0x01192f1b,
68 .gpio_dir1 = 0xd5ffdeff,
69 .gpio_oe1 = 0x000020bf,
70 .init_data2 = 0x010f010f,
71 .gpio_dir2 = 0xffffffff,
72 .gpio_oe2 = 0x000001cf,
73};
74
75static struct w100fb_mach_info e750_fb_info = {
76 .modelist = &e750_lcd_mode,
77 .num_modes = 1,
78 .regs = &e750_lcd_regs,
79 .gpio = &e750_w100_gpio_info,
80 .xtal_freq = 14318000,
81 .xtal_dbl = 1,
82};
83
84static struct resource e750_fb_resources[] = {
85 [0] = {
86 .start = 0x0c000000,
87 .end = 0x0cffffff,
88 .flags = IORESOURCE_MEM,
89 },
90};
91
92static struct platform_device e750_fb_device = {
93 .name = "w100fb",
94 .id = -1,
95 .dev = {
96 .platform_data = &e750_fb_info,
97 },
98 .num_resources = ARRAY_SIZE(e750_fb_resources),
99 .resource = e750_fb_resources,
100};
101
102/* ----------------------------------------------------------------------- */
103
104static struct platform_device *devices[] __initdata = {
105 &e750_fb_device,
106};
107
108static void __init e750_init(void)
109{
110 platform_add_devices(devices, ARRAY_SIZE(devices));
111}
112
26MACHINE_START(E750, "Toshiba e750") 113MACHINE_START(E750, "Toshiba e750")
27 /* Maintainer: Ian Molton (spyro@f2s.com) */ 114 /* Maintainer: Ian Molton (spyro@f2s.com) */
28 .phys_io = 0x40000000, 115 .phys_io = 0x40000000,
@@ -31,6 +118,7 @@ MACHINE_START(E750, "Toshiba e750")
31 .map_io = pxa_map_io, 118 .map_io = pxa_map_io,
32 .init_irq = pxa25x_init_irq, 119 .init_irq = pxa25x_init_irq,
33 .fixup = eseries_fixup, 120 .fixup = eseries_fixup,
121 .init_machine = e750_init,
34 .timer = &pxa_timer, 122 .timer = &pxa_timer,
35MACHINE_END 123MACHINE_END
36 124