diff options
author | Donghwa Lee <dh09.lee@samsung.com> | 2012-04-23 15:37:05 (GMT) |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-05-15 06:31:30 (GMT) |
commit | f78095e40b5d9f0c03985e296289be5a84a40f8a (patch) | |
tree | 30edd5c12252f69c63f1eb093df3f865b03cf836 /drivers/video/exynos_fb.c | |
parent | 51b1cd6df7fbabe3f85ff3ba693f181deef44473 (diff) | |
download | u-boot-f78095e40b5d9f0c03985e296289be5a84a40f8a.tar.xz |
EXYNOS: Change bits per pixel value proper for u-boot.
vl_bpix of vidinfo_t was changed proper value for u-boot.
It is used to multiple of 2 by using NBITS() macro.
Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/video/exynos_fb.c')
-rw-r--r-- | drivers/video/exynos_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/exynos_fb.c b/drivers/video/exynos_fb.c index 0eb7f58..a1cf449 100644 --- a/drivers/video/exynos_fb.c +++ b/drivers/video/exynos_fb.c @@ -52,7 +52,7 @@ static void exynos_lcd_init_mem(void *lcdbase, vidinfo_t *vid) unsigned long palette_size; unsigned int fb_size; - fb_size = vid->vl_row * vid->vl_col * (vid->vl_bpix >> 3); + fb_size = vid->vl_row * vid->vl_col * (NBITS(vid->vl_bpix) >> 3); lcd_base = lcdbase; |