diff mbox

[U-Boot,v1,3/4] VIDEO: add macro to set LCD size for DSS driver

Message ID 1350396426-11400-3-git-send-email-sbabic@denx.de
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Stefano Babic Oct. 16, 2012, 2:07 p.m. UTC
Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 arch/arm/include/asm/arch-omap3/dss.h |    1 +
 1 file changed, 1 insertion(+)

Comments

Anatolij Gustschin Oct. 16, 2012, 2:26 p.m. UTC | #1
On Tue, 16 Oct 2012 16:07:05 +0200
Stefano Babic <sbabic@denx.de> wrote:

> Signed-off-by: Stefano Babic <sbabic@denx.de>
> ---
>  arch/arm/include/asm/arch-omap3/dss.h |    1 +
>  1 file changed, 1 insertion(+)

Acked-by: Anatolij Gustschin <agust@denx.de>

Thanks!
diff mbox

Patch

diff --git a/arch/arm/include/asm/arch-omap3/dss.h b/arch/arm/include/asm/arch-omap3/dss.h
index 54add4b..ffaffbb 100644
--- a/arch/arm/include/asm/arch-omap3/dss.h
+++ b/arch/arm/include/asm/arch-omap3/dss.h
@@ -190,6 +190,7 @@  struct panel_config {
 
 #define PANEL_TIMING_H(bp, fp, sw) (DSS_HBP(bp) | DSS_HFP(fp) | DSS_HSW(sw))
 #define PANEL_TIMING_V(bp, fp, sw) (DSS_VBP(bp) | DSS_VFP(fp) | DSS_VSW(sw))
+#define PANEL_LCD_SIZE(xres, yres) ((yres - 1) << 16 | (xres - 1))
 
 /* Generic DSS Functions */
 void omap3_dss_venc_config(const struct venc_regs *venc_cfg,