summaryrefslogtreecommitdiffstats
path: root/drivers/video/exynos/exynos_fb.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-02-21 21:08:41 -0700
committerMinkyu Kang <mk7.kang@samsung.com>2016-05-25 13:25:17 +0900
commit40d500212f74c92ef014ae8df697416e160ee743 (patch)
tree614b0280c5dbb56d572ec1dcec4ae0f80567e6d7 /drivers/video/exynos/exynos_fb.c
parentaaca5b1902e1d711d34f2fb741417ec7bae59ad6 (diff)
downloadtalos-obmc-uboot-40d500212f74c92ef014ae8df697416e160ee743.tar.gz
talos-obmc-uboot-40d500212f74c92ef014ae8df697416e160ee743.zip
exynos: video: Drop the static lcd_base_addr variable
Drop this and use parameters instead. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/video/exynos/exynos_fb.c')
-rw-r--r--drivers/video/exynos/exynos_fb.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c
index 90d203822f..a3acdcc2d9 100644
--- a/drivers/video/exynos/exynos_fb.c
+++ b/drivers/video/exynos/exynos_fb.c
@@ -45,22 +45,9 @@ ushort *configuration_get_cmap(void)
#endif
}
-static void exynos_lcd_init_mem(void *lcdbase, struct vidinfo *vid)
+static void exynos_lcd_init(struct vidinfo *vid, ulong lcd_base)
{
- unsigned long palette_size;
- unsigned int fb_size;
-
- fb_size = vid->vl_row * vid->vl_col * (NBITS(vid->vl_bpix) >> 3);
-
- palette_size = NBITS(vid->vl_bpix) == 8 ? 256 : 16;
-
- exynos_fimd_lcd_init_mem((unsigned long)lcdbase,
- (unsigned long)fb_size, palette_size);
-}
-
-static void exynos_lcd_init(struct vidinfo *vid)
-{
- exynos_fimd_lcd_init(vid);
+ exynos_fimd_lcd_init(vid, lcd_base);
/* Enable flushing after LCD writes if requested */
lcd_set_flush_dcache(1);
@@ -297,9 +284,7 @@ void lcd_ctrl_init(void *lcdbase)
panel_width = panel_info.vl_width;
panel_height = panel_info.vl_height;
- exynos_lcd_init_mem(lcdbase, &panel_info);
-
- exynos_lcd_init(&panel_info);
+ exynos_lcd_init(&panel_info, (ulong)lcdbase);
}
void lcd_enable(void)
OpenPOWER on IntegriCloud