[PATCH 04/16] mx35 3stack display support
Sascha Hauer
s.hauer at pengutronix.de
Wed Dec 9 08:05:30 EST 2009
On Wed, Dec 09, 2009 at 10:03:29AM +0100, Sascha Hauer wrote:
> From: Juergen nogit Beisert <jbe at pengutronix.de>
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
> board/freescale-mx35-3-stack/3stack.c | 92 +++++++++++++++++++++++++++++++++
> 1 files changed, 92 insertions(+), 0 deletions(-)
>
> diff --git a/board/freescale-mx35-3-stack/3stack.c b/board/freescale-mx35-3-stack/3stack.c
> index 63f7bba..ecb4037 100644
> --- a/board/freescale-mx35-3-stack/3stack.c
> +++ b/board/freescale-mx35-3-stack/3stack.c
> @@ -47,6 +47,7 @@
> #include <mach/iomux-mx35.h>
> #include <mach/iomux-v3.h>
> #include <mach/pmic.h>
> +#include <mach/imx-ipu-fb.h>
>
> #include <i2c/i2c.h>
> #include <i2c/mc13892.h>
> @@ -111,6 +112,62 @@ static struct device_d i2c_dev = {
> .map_base = IMX_I2C1_BASE,
> };
>
> +/*
> + * Generic display, shipped with the PDK
> + */
> +static struct fb_videomode CTP_CLAA070LC0ACW = {
> + /* 800x480 @ 60 Hz */
> + .name = "CTP-CLAA070LC0ACW",
> + .refresh = 60,
> + .xres = 800,
> + .yres = 480,
> + .pixclock = KHZ2PICOS(27000),
> + .left_margin = 50,
> + .right_margin = 50, /* whole line should have 900 clocks */
> + .upper_margin = 10,
> + .lower_margin = 10, /* whole frame should have 500 lines */
> + .hsync_len = 1, /* note: DE only display */
> + .vsync_len = 1, /* note: DE only display */
> + .sync = FB_SYNC_CLK_IDLE_EN | FB_SYNC_OE_ACT_HIGH,
> + .vmode = FB_VMODE_NONINTERLACED,
> + .flag = 0,
> +};
> +
> +#if 0
> +/*
> + * Customers display
> + */
> +static struct fb_videomode NEC_NL8048BC19 = {
> + /* 800x480 @ 60 Hz */
> + .name = "NEC-NL8048BC19",
> + .refresh = 60,
> + .xres = 800,
> + .yres = 480,
> + .pixclock = KHZ2PICOS(32256),
> + .left_margin = 112,
> + .right_margin = 112, /* whole line should have 1024 clocks */
> + .upper_margin = 23,
> + .lower_margin = 23, /* whole frame should have 525 lines */
> + .hsync_len = 1, /* note: DE only display */
> + .vsync_len = 1, /* note: DE only display */
> + .sync = FB_SYNC_OE_ACT_HIGH,
> + .vmode = FB_VMODE_NONINTERLACED,
> + .flag = 0,
> +};
> +#endif
This is a customer specific display, should be removed here.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the u-boot-v2
mailing list