diff options
author | Stefano Babic <sbabic@denx.de> | 2012-08-29 01:22:06 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-04 17:05:39 -0700 |
commit | fb380bfa8c0b841dff973bb6c74b2b5e40fe64f4 (patch) | |
tree | c2932c5661422538e13079308632cb714b5ec010 | |
parent | baee780013cdb4190f582abd1e53fcd788c70182 (diff) | |
download | u-boot-imx-fb380bfa8c0b841dff973bb6c74b2b5e40fe64f4.zip u-boot-imx-fb380bfa8c0b841dff973bb6c74b2b5e40fe64f4.tar.gz u-boot-imx-fb380bfa8c0b841dff973bb6c74b2b5e40fe64f4.tar.bz2 |
OMAP3: video: add macros to set display parameters
Add a common macros to set the registers for horizontal
and vertical timing.
Signed-off-by: Stefano Babic <sbabic@denx.de>
-rw-r--r-- | arch/arm/include/asm/arch-omap3/dss.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-omap3/dss.h b/arch/arm/include/asm/arch-omap3/dss.h index 8913a71..54add4b 100644 --- a/arch/arm/include/asm/arch-omap3/dss.h +++ b/arch/arm/include/asm/arch-omap3/dss.h @@ -181,6 +181,16 @@ struct panel_config { void *frame_buffer; }; +#define DSS_HBP(bp) (((bp) - 1) << 20) +#define DSS_HFP(fp) (((fp) - 1) << 8) +#define DSS_HSW(sw) ((sw) - 1) +#define DSS_VBP(bp) ((bp) << 20) +#define DSS_VFP(fp) ((fp) << 8) +#define DSS_VSW(sw) ((sw) - 1) + +#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)) + /* Generic DSS Functions */ void omap3_dss_venc_config(const struct venc_regs *venc_cfg, u32 height, u32 width); |