From: Stefano Babic Date: Tue, 16 Oct 2012 04:07:05 +0000 (+0000) Subject: VIDEO: add macro to set LCD size for DSS driver X-Git-Tag: v2013.01-rc1~73^2~11^2~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=60c41d907e234871b40f14283dc2e18abc324461;p=oweals%2Fu-boot.git VIDEO: add macro to set LCD size for DSS driver Signed-off-by: Stefano Babic Acked-by: Anatolij Gustschin --- diff --git a/arch/arm/include/asm/arch-omap3/dss.h b/arch/arm/include/asm/arch-omap3/dss.h index 54add4b456..ffaffbb3bf 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,