aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/e400.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/e400.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/e400.c')
-rw-r--r--arch/arm/mach-pxa/e400.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/e400.c b/arch/arm/mach-pxa/e400.c
index 405e6dcfc3ce..0bcf9ece3d33 100644
--- a/arch/arm/mach-pxa/e400.c
+++ b/arch/arm/mach-pxa/e400.c
@@ -17,12 +17,41 @@
17#include <asm/mach/arch.h> 17#include <asm/mach/arch.h>
18#include <asm/mach-types.h> 18#include <asm/mach-types.h>
19 19
20#include <mach/pxa-regs.h>
20#include <mach/mfp-pxa25x.h> 21#include <mach/mfp-pxa25x.h>
21#include <mach/hardware.h> 22#include <mach/hardware.h>
22 23
24#include <mach/pxafb.h>
25
23#include "generic.h" 26#include "generic.h"
24#include "eseries.h" 27#include "eseries.h"
25 28
29/* ------------------------ E400 LCD definitions ------------------------ */
30
31static struct pxafb_mode_info e400_pxafb_mode_info = {
32 .pixclock = 140703,
33 .xres = 240,
34 .yres = 320,
35 .bpp = 16,
36 .hsync_len = 4,
37 .left_margin = 28,
38 .right_margin = 8,
39 .vsync_len = 3,
40 .upper_margin = 5,
41 .lower_margin = 6,
42 .sync = 0,
43};
44
45static struct pxafb_mach_info e400_pxafb_mach_info = {
46 .modes = &e400_pxafb_mode_info,
47 .num_modes = 1,
48 .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_Act,
49 .lccr3 = 0,
50 .pxafb_backlight_power = NULL,
51};
52
53/* ------------------------ E400 MFP config ----------------------------- */
54
26static unsigned long e400_pin_config[] __initdata = { 55static unsigned long e400_pin_config[] __initdata = {
27 /* Chip selects */ 56 /* Chip selects */
28 GPIO15_nCS_1, /* CS1 - Flash */ 57 GPIO15_nCS_1, /* CS1 - Flash */
@@ -41,9 +70,12 @@ static unsigned long e400_pin_config[] __initdata = {
41 GPIO0_GPIO | WAKEUP_ON_EDGE_RISE, 70 GPIO0_GPIO | WAKEUP_ON_EDGE_RISE,
42}; 71};
43 72
73/* ---------------------------------------------------------------------- */
74
44static void __init e400_init(void) 75static void __init e400_init(void)
45{ 76{
46 pxa2xx_mfp_config(ARRAY_AND_SIZE(e400_pin_config)); 77 pxa2xx_mfp_config(ARRAY_AND_SIZE(e400_pin_config));
78 set_pxa_fb_info(&e400_pxafb_mach_info);
47} 79}
48 80
49MACHINE_START(E400, "Toshiba e400") 81MACHINE_START(E400, "Toshiba e400")