Patchwork [U-Boot] video:cache:fix: Enable dcache flush at LCD subsystem for Exynos based boards

login
register
mail settings
Submitter Łukasz Majewski
Date Jan. 8, 2013, 9:59 a.m.
Message ID <1357639140-7619-1-git-send-email-l.majewski@samsung.com>
Download mbox | patch
Permalink /patch/210325/
State Changes Requested
Delegated to: Minkyu Kang
Headers show

Comments

Łukasz Majewski - Jan. 8, 2013, 9:59 a.m.
lcd_set_flush_dcache(1) function is called from exynos_fb.c (exynos_lcd_init()) file
to enable lcd_sync() function.

Tested-at: TRATS (Exynos 4210)
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
---
 drivers/video/exynos_fb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Minkyu Kang - Jan. 8, 2013, 12:37 p.m.
On 08/01/13 18:59, Lukasz Majewski wrote:
> lcd_set_flush_dcache(1) function is called from exynos_fb.c (exynos_lcd_init()) file
> to enable lcd_sync() function.
> 
> Tested-at: TRATS (Exynos 4210)
> Tested-by: Lukasz Majewski <l.majewski@samsung.com>
> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> ---
>  drivers/video/exynos_fb.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/video/exynos_fb.c b/drivers/video/exynos_fb.c
> index d9a3f9a..17e1069 100644
> --- a/drivers/video/exynos_fb.c
> +++ b/drivers/video/exynos_fb.c
> @@ -63,6 +63,8 @@ static void exynos_lcd_init_mem(void *lcdbase, vidinfo_t *vid)
>  static void exynos_lcd_init(vidinfo_t *vid)
>  {
>  	exynos_fimd_lcd_init(vid);

please add blank line here.

> +	/* Enable flushing after LCD writes if requested */
> +	lcd_set_flush_dcache(1);
>  }
>  
>  static void draw_logo(void)
> 

Thanks.
Minkyu Kang.

Patch

diff --git a/drivers/video/exynos_fb.c b/drivers/video/exynos_fb.c
index d9a3f9a..17e1069 100644
--- a/drivers/video/exynos_fb.c
+++ b/drivers/video/exynos_fb.c
@@ -63,6 +63,8 @@  static void exynos_lcd_init_mem(void *lcdbase, vidinfo_t *vid)
 static void exynos_lcd_init(vidinfo_t *vid)
 {
 	exynos_fimd_lcd_init(vid);
+	/* Enable flushing after LCD writes if requested */
+	lcd_set_flush_dcache(1);
 }
 
 static void draw_logo(void)