diff options
Diffstat (limited to 'drivers/video/sa1100fb.c')
-rw-r--r-- | drivers/video/sa1100fb.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/video/sa1100fb.c b/drivers/video/sa1100fb.c index ab2b2110478bc2..a4bacc265150ad 100644 --- a/drivers/video/sa1100fb.c +++ b/drivers/video/sa1100fb.c @@ -397,6 +397,26 @@ static struct sa1100fb_mach_info shannon_info __initdata = { }; #endif +#ifdef CONFIG_SA1100_JORNADA56X +static struct sa1100fb_mach_info jornada56x_info __initdata = { + .pixclock = 179264, .bpp = 16, + .xres = 240, .yres = 320, + .hsync_len = 4, .vsync_len = 2, + .left_margin = 7, .upper_margin = 2, + .right_margin = 3, .lower_margin = 3, + .sync = 0, .cmap_static = 1, + .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_Act, + .lccr3 = LCCR3_OutEnH | LCCR3_PixRsEdg | LCCR3_ACBsDiv(2), +}; + +static struct sa1100fb_rgb jornada56x_rgb_16 = { + .red = { .offset = 12, .length = 4, }, + .green = { .offset = 7, .length = 4, }, + .blue = { .offset = 1, .length = 4, }, + .transp = { .offset = 0, .length = 0, }, +}; +#endif + static struct sa1100fb_mach_info * __init @@ -461,6 +481,12 @@ sa1100fb_get_machine_info(struct sa1100fb_info *fbi) inf = &shannon_info; } #endif +#ifdef CONFIG_SA1100_JORNADA56X + if (machine_is_jornada56x()) { + inf= &jornada56x_info; + fbi->rgb[RGB_16] = &jornada56x_rgb_16; + } +#endif return inf; } |