From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 8/8] OMAP3: mt_ventoux: added video support
Date: Tue, 28 Aug 2012 10:11:36 +0200 [thread overview]
Message-ID: <503C7D38.1070205@denx.de> (raw)
In-Reply-To: <1346140007-9563-8-git-send-email-sbabic@denx.de>
Hello Stefano,
On 28.08.2012 09:46, Stefano Babic wrote:
> Signed-off-by: Stefano Babic<sbabic@denx.de>
> ---
> board/teejet/mt_ventoux/mt_ventoux.c | 91 ++++++++++++++++++++++++++++++++++
> board/teejet/mt_ventoux/mt_ventoux.h | 2 +-
> include/configs/mt_ventoux.h | 16 ++++++
> 3 files changed, 108 insertions(+), 1 deletion(-)
>
> diff --git a/board/teejet/mt_ventoux/mt_ventoux.c b/board/teejet/mt_ventoux/mt_ventoux.c
> index 814e72f..a2bda4b 100644
> --- a/board/teejet/mt_ventoux/mt_ventoux.c
> +++ b/board/teejet/mt_ventoux/mt_ventoux.c
> @@ -21,13 +21,17 @@
>
> #include<common.h>
> #include<netdev.h>
> +#include<malloc.h>
> #include<fpga.h>
> +#include<video_fb.h>
> #include<asm/io.h>
> #include<asm/arch/mem.h>
> #include<asm/arch/mux.h>
> #include<asm/arch/sys_proto.h>
> #include<asm/omap_gpio.h>
> #include<asm/arch/mmc_host_def.h>
> +#include<asm/arch/dss.h>
> +#include<asm/arch/clocks.h>
> #include<i2c.h>
> #include<spartan3.h>
> #include<asm/gpio.h>
> @@ -53,6 +57,50 @@ DECLARE_GLOBAL_DATA_PTR;
> #define FPGA_INIT 119
> #define FPGA_DONE 154
>
> +#define LCD_PWR 138
> +#define LCD_PON_PIN 139
> +
> +#if defined(CONFIG_VIDEO)&& !defined(CONFIG_SPL_BUILD)
> +static struct {
> + u32 xres;
> + u32 yres;
> +} panel_resolution[] = {
> + { 480, 272 },
> + { 800, 480 }
> +};
> +
> +static struct panel_config lcd_cfg[] = {
> + {
> + .timing_h = ((4 /* hpb */ - 1)<< 20) |
> + ((8 /*hfp */- 1)<< 8) |
> + (41 /* hsw */ - 1), /* Horizontal timing */
Could we use here a define, something like this:
#define PANEL_TIMING_H(bp, fp, sw) (((bp - 1) << 20) | ((fp - 1) << 8) | (sw - 1))
.panel_config = {
.timing_h = PANEL_TIMING_H(4, 8, 41),
> + .timing_v = (2 /*vbp */<< 24) |
^^
Is this correct? In the manual I
see for the timing H and V settings
the same bitpositions!
> + (4 /* vfp */<< 8) |
> + (10 - 1), /* Vertical timing */
#define PANEL_TIMING_V(bp, fp, sw) (((bp) << 20) | ((fp) << 8) | (sw - 1))
and here too ?
> + .pol_freq = 0x00000000, /* Pol Freq */
> + .divisor = 0x0001000d, /* 33Mhz Pixel Clock */
> + .panel_type = 0x01, /* TFT */
> + .data_lines = 0x03, /* 24 Bit RGB */
> + .load_mode = 0x02, /* Frame Mode */
> + .panel_color = 0,
> + },
> + {
> + .timing_h = ((20 /* hpb */ - 1)<< 20) |
> + ((192 /*hfp */- 1)<< 8) |
> + (4 /* hsw */ - 1), /* Horizontal timing */
and here ...
> + .timing_v = (2 /*vbp */<< 24) |
> + (20 /* vfp */<< 8) |
> + (10 /* vsw */ - 1), /* Vertical timing */
and here.
> + .pol_freq = 0x00004000, /* Pol Freq */
> + .divisor = 0x0001000E, /* 36Mhz Pixel Clock */
> + .panel_type = 0x01, /* TFT */
> + .data_lines = 0x03, /* 24 Bit RGB */
> + .load_mode = 0x02, /* Frame Mode */
> + .panel_color = 0,
> + }
> +};
> +#endif
[...]
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2012-08-28 8:11 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-28 7:46 [U-Boot] [PATCH v1 1/8] OMAP3: tam3517: add function to read MAC from EEPROM Stefano Babic
2012-08-28 7:46 ` [U-Boot] [PATCH v1 2/8] OMAP3: twister : get MAC address " Stefano Babic
2012-08-28 7:46 ` [U-Boot] [PATCH v1 3/8] OMAP3: mt_ventoux: Correct board pinmux Stefano Babic
2012-08-28 7:46 ` [U-Boot] [PATCH v1 4/8] OMAP3: mt_ventoux: activate GPIO4 Stefano Babic
2012-08-28 7:46 ` [U-Boot] [PATCH v1 5/8] OMAP3: mt_ventoux: read MAC address from EEPROM Stefano Babic
2012-08-28 7:46 ` [U-Boot] [PATCH v1 6/8] OMAP3: mt_ventoux: disable the buzzer at start-up Stefano Babic
2012-08-28 7:46 ` [U-Boot] [PATCH v1 7/8] video: drop duplicate set of DISPC_CONFIG register Stefano Babic
2012-08-28 10:40 ` Jeroen Hofstee
2012-08-28 10:59 ` Stefano Babic
2012-08-28 7:46 ` [U-Boot] [PATCH v1 8/8] OMAP3: mt_ventoux: added video support Stefano Babic
2012-08-28 8:11 ` Heiko Schocher [this message]
2012-08-28 8:28 ` Stefano Babic
2012-08-28 8:47 ` Jeroen Hofstee
2012-08-28 11:05 ` Stefano Babic
2012-08-28 12:21 ` [U-Boot] [PATCH v2 0/9] This patchset updates boards based on the TAM3517 SOM Stefano Babic
2012-08-28 12:21 ` [U-Boot] [PATCH v2 1/9] OMAP3: tam3517: add function to read MAC from EEPROM Stefano Babic
2012-08-28 12:21 ` [U-Boot] [PATCH v2 2/9] OMAP3: twister : get MAC address " Stefano Babic
2012-08-28 12:21 ` [U-Boot] [PATCH v2 3/9] OMAP3: mt_ventoux: Correct board pinmux Stefano Babic
2012-08-28 12:21 ` [U-Boot] [PATCH v2 4/9] OMAP3: mt_ventoux: activate GPIO4 Stefano Babic
2012-08-28 12:21 ` [U-Boot] [PATCH v2 5/9] OMAP3: mt_ventoux: read MAC address from EEPROM Stefano Babic
2012-08-28 12:21 ` [U-Boot] [PATCH v2 6/9] OMAP3: mt_ventoux: disable the buzzer at start-up Stefano Babic
2012-08-28 12:21 ` [U-Boot] [PATCH v2 7/9] video: drop duplicate set of DISPC_CONFIG register Stefano Babic
2012-08-28 20:49 ` Jeroen Hofstee
2012-08-28 12:21 ` [U-Boot] [PATCH v2 8/9] OMAP3: video: add macros to set display parameters Stefano Babic
2012-08-28 14:01 ` Heiko Schocher
2012-08-28 22:22 ` Jeroen Hofstee
2012-08-28 22:29 ` Tom Rini
2012-08-29 7:40 ` Stefano Babic
2012-08-28 12:21 ` [U-Boot] [PATCH v2 9/9] OMAP3: mt_ventoux: added video support Stefano Babic
2012-08-29 11:21 ` [U-Boot] [PATCH v3 0/9] This patchset updates boards based on the TAM3517 SOM Stefano Babic
2012-08-29 11:21 ` [U-Boot] [PATCH v3 1/9] OMAP3: tam3517: add function to read MAC from EEPROM Stefano Babic
2012-08-29 11:22 ` [U-Boot] [PATCH v3 2/9] OMAP3: twister : get MAC address " Stefano Babic
2012-08-29 11:22 ` [U-Boot] [PATCH v3 3/9] OMAP3: mt_ventoux: Correct board pinmux Stefano Babic
2012-08-29 11:22 ` [U-Boot] [PATCH v3 4/9] OMAP3: mt_ventoux: activate GPIO4 Stefano Babic
2012-08-29 11:22 ` [U-Boot] [PATCH v3 5/9] OMAP3: mt_ventoux: read MAC address from EEPROM Stefano Babic
2012-08-29 11:22 ` [U-Boot] [PATCH v3 6/9] OMAP3: mt_ventoux: disable the buzzer at start-up Stefano Babic
2012-08-29 11:22 ` [U-Boot] [PATCH v3 7/9] video: drop duplicate set of DISPC_CONFIG register Stefano Babic
2012-08-29 11:22 ` [U-Boot] [PATCH v3 8/9] OMAP3: video: add macros to set display parameters Stefano Babic
2012-08-29 11:22 ` [U-Boot] [PATCH v3 9/9] OMAP3: mt_ventoux: added video support Stefano Babic
2012-08-29 15:13 ` [U-Boot] [PATCH v3 0/9] This patchset updates boards based on the TAM3517 SOM Tom Rini
2012-08-31 23:07 ` Tom Rini
2012-08-29 16:28 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=503C7D38.1070205@denx.de \
--to=hs@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox