diff options
author | Nikita Kiryanov <nikita@compulab.co.il> | 2013-01-30 21:39:55 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-03-08 16:41:13 -0500 |
commit | bcc6cc9b3777f0c7246ff441f1d275552109713e (patch) | |
tree | c3889b03d88d3da377ae0bd74b7911ea717ecdd2 /drivers/video | |
parent | bc84b18f7512b979c3ee2917a372bde56cc13aa5 (diff) | |
download | u-boot-imx-bcc6cc9b3777f0c7246ff441f1d275552109713e.zip u-boot-imx-bcc6cc9b3777f0c7246ff441f1d275552109713e.tar.gz u-boot-imx-bcc6cc9b3777f0c7246ff441f1d275552109713e.tar.bz2 |
omap3: allow dynamic selection of gfx_format
Currently, omap3_dss_panel_config() sets gfx_format to a value that is hardcoded
in the code. This forces anyone who wants to use a different gfx_format to make
adjustments after calling omap3_dss_panel_config(). This could be avoided if the
value of gfx_format were parameterized as input for omap3_dss_panel_config().
Make gfx_format a field in struct panel_config, and update existing structs to
set this field to the value that was originally hard coded.
Cc: Wolfgang Denk <wd@denx.de>
Cc: Jeroen Hofstee <jeroen@myspectrum.nl>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap3_dss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/omap3_dss.c b/drivers/video/omap3_dss.c index b1424bf..6efba12 100644 --- a/drivers/video/omap3_dss.c +++ b/drivers/video/omap3_dss.c @@ -121,7 +121,7 @@ void omap3_dss_panel_config(const struct panel_config *panel_cfg) if (!panel_cfg->frame_buffer) return; - writel(8 << GFX_FORMAT_SHIFT | GFX_ENABLE, &dispc->gfx_attributes); + writel(panel_cfg->gfx_format | GFX_ENABLE, &dispc->gfx_attributes); writel(1, &dispc->gfx_row_inc); writel(1, &dispc->gfx_pixel_inc); writel(panel_cfg->lcd_size, &dispc->gfx_size); |