diff options
author | Hirokazu Takata <takata@linux-m32r.org> | 2005-07-07 20:59:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 21:24:11 -0400 |
commit | 316240f66a64c95e373d52dc401d882d77a594ee (patch) | |
tree | 1d04cba74cd2455bb6b886ed4b85b7bbb73b8544 /arch/m32r/kernel/setup_mappi3.c | |
parent | e34ac862ee6644378bfe6ea65c2e0dda4545513d (diff) |
[PATCH] m32r: framebuffer device support
This patch is for supporting Epson s1d13xxx framebuffer device for m32r. #
Sorry, a little bigger.
The Epson s1d13806 is already supported by 2.6.12 kernel, and its driver is
placed as drivers/video/s1d13xxxfb.c.
For the m32r, a header file include/asm-m32r/s1d13806.h was prepared for
several m32r target platforms. It was originally generated by an Epson
tool S1D13806CFG.EXE, and modified manually for the m32r platforms.
Signed-off-by: Hayato Fujiwara <fujiwara@linux-m32r.org>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/m32r/kernel/setup_mappi3.c')
-rw-r--r-- | arch/m32r/kernel/setup_mappi3.c | 52 |
1 files changed, 50 insertions, 2 deletions
diff --git a/arch/m32r/kernel/setup_mappi3.c b/arch/m32r/kernel/setup_mappi3.c index 3d60a85aaec5..a76412e883e8 100644 --- a/arch/m32r/kernel/setup_mappi3.c +++ b/arch/m32r/kernel/setup_mappi3.c | |||
@@ -3,8 +3,8 @@ | |||
3 | * | 3 | * |
4 | * Setup routines for Renesas MAPPI-III(M3A-2170) Board | 4 | * Setup routines for Renesas MAPPI-III(M3A-2170) Board |
5 | * | 5 | * |
6 | * Copyright (c) 2001-2005 Hiroyuki Kondo, Hirokazu Takata, | 6 | * Copyright (c) 2001-2005 Hiroyuki Kondo, Hirokazu Takata, |
7 | * Hitoshi Yamamoto, Mamoru Sakugawa | 7 | * Hitoshi Yamamoto, Mamoru Sakugawa |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/config.h> | 10 | #include <linux/config.h> |
@@ -178,6 +178,8 @@ void __init init_IRQ(void) | |||
178 | #endif /* CONFIG_M32R_CFC */ | 178 | #endif /* CONFIG_M32R_CFC */ |
179 | } | 179 | } |
180 | 180 | ||
181 | #if defined(CONFIG_SMC91X) | ||
182 | |||
181 | #define LAN_IOSTART 0x300 | 183 | #define LAN_IOSTART 0x300 |
182 | #define LAN_IOEND 0x320 | 184 | #define LAN_IOEND 0x320 |
183 | static struct resource smc91x_resources[] = { | 185 | static struct resource smc91x_resources[] = { |
@@ -200,9 +202,55 @@ static struct platform_device smc91x_device = { | |||
200 | .resource = smc91x_resources, | 202 | .resource = smc91x_resources, |
201 | }; | 203 | }; |
202 | 204 | ||
205 | #endif | ||
206 | |||
207 | #if defined(CONFIG_FB_S1D13XXX) | ||
208 | |||
209 | #include <video/s1d13xxxfb.h> | ||
210 | #include <asm/s1d13806.h> | ||
211 | |||
212 | static struct s1d13xxxfb_pdata s1d13xxxfb_data = { | ||
213 | .initregs = s1d13xxxfb_initregs, | ||
214 | .initregssize = ARRAY_SIZE(s1d13xxxfb_initregs), | ||
215 | .platform_init_video = NULL, | ||
216 | #ifdef CONFIG_PM | ||
217 | .platform_suspend_video = NULL, | ||
218 | .platform_resume_video = NULL, | ||
219 | #endif | ||
220 | }; | ||
221 | |||
222 | static struct resource s1d13xxxfb_resources[] = { | ||
223 | [0] = { | ||
224 | .start = 0x1d600000UL, | ||
225 | .end = 0x1d73FFFFUL, | ||
226 | .flags = IORESOURCE_MEM, | ||
227 | }, | ||
228 | [1] = { | ||
229 | .start = 0x1d400000UL, | ||
230 | .end = 0x1d4001FFUL, | ||
231 | .flags = IORESOURCE_MEM, | ||
232 | } | ||
233 | }; | ||
234 | |||
235 | static struct platform_device s1d13xxxfb_device = { | ||
236 | .name = S1D_DEVICENAME, | ||
237 | .id = 0, | ||
238 | .dev = { | ||
239 | .platform_data = &s1d13xxxfb_data, | ||
240 | }, | ||
241 | .num_resources = ARRAY_SIZE(s1d13xxxfb_resources), | ||
242 | .resource = s1d13xxxfb_resources, | ||
243 | }; | ||
244 | #endif | ||
245 | |||
203 | static int __init platform_init(void) | 246 | static int __init platform_init(void) |
204 | { | 247 | { |
248 | #if defined(CONFIG_SMC91X) | ||
205 | platform_device_register(&smc91x_device); | 249 | platform_device_register(&smc91x_device); |
250 | #endif | ||
251 | #if defined(CONFIG_FB_S1D13XXX) | ||
252 | platform_device_register(&s1d13xxxfb_device); | ||
253 | #endif | ||
206 | return 0; | 254 | return 0; |
207 | } | 255 | } |
208 | arch_initcall(platform_init); | 256 | arch_initcall(platform_init); |