diff mbox

[U-Boot,v2,8/9] OMAP3: video: add macros to set display parameters

Message ID 1346156513-6953-9-git-send-email-sbabic@denx.de
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

Stefano Babic Aug. 28, 2012, 12:21 p.m. UTC
Add a common macros to set the registers for horizontal
and vertical timing.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---

 arch/arm/include/asm/arch-omap3/dss.h |    4 ++++
 1 file changed, 4 insertions(+)

Comments

Heiko Schocher Aug. 28, 2012, 2:01 p.m. UTC | #1
Hello Stefano,

On 28.08.2012 14:21, Stefano Babic wrote:
> Add a common macros to set the registers for horizontal
> and vertical timing.
>
> Signed-off-by: Stefano Babic<sbabic@denx.de>
> ---
>
>   arch/arm/include/asm/arch-omap3/dss.h |    4 ++++
>   1 file changed, 4 insertions(+)

Acked-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
diff mbox

Patch

diff --git a/arch/arm/include/asm/arch-omap3/dss.h b/arch/arm/include/asm/arch-omap3/dss.h
index 8913a71..df5b978 100644
--- a/arch/arm/include/asm/arch-omap3/dss.h
+++ b/arch/arm/include/asm/arch-omap3/dss.h
@@ -181,6 +181,10 @@  struct panel_config {
 	void *frame_buffer;
 };
 
+#define PANEL_TIMING_H(bp, fp, sw) (((bp - 1) << 20) | \
+		 ((fp - 1) << 8) | (sw - 1))
+#define PANEL_TIMING_V(bp, fp, sw) ((bp << 20) | (fp << 8) | (sw - 1))
+
 /* Generic DSS Functions */
 void omap3_dss_venc_config(const struct venc_regs *venc_cfg,
 			u32 height, u32 width);