diff mbox

[U-Boot,2/7] video, da8xx: move da8xx-fb.h to drivers/video

Message ID 1375507373-13785-3-git-send-email-hs@denx.de
State Accepted
Delegated to: Anatolij Gustschin
Headers show

Commit Message

Heiko Schocher Aug. 3, 2013, 5:22 a.m. UTC
the da8xx-fb driver works also on am335x boards. So move
the da8xx-fb.h file from arch/arm/include/asm/arch-davinci
to drivers/video, so this driver can used from am335x
based boards. Also add WVGA panel_type.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Tom Rini <trini@ti.com>
---
 board/davinci/ea20/ea20.c                                       | 2 +-
 drivers/video/da8xx-fb.c                                        | 2 +-
 {arch/arm/include/asm/arch-davinci => drivers/video}/da8xx-fb.h | 3 ++-
 3 Dateien geändert, 4 Zeilen hinzugefügt(+), 3 Zeilen entfernt(-)
 rename {arch/arm/include/asm/arch-davinci => drivers/video}/da8xx-fb.h (99%)

Comments

Tom Rini Aug. 6, 2013, 3:24 p.m. UTC | #1
On Sat, Aug 03, 2013 at 07:22:48AM +0200, Heiko Schocher wrote:

> the da8xx-fb driver works also on am335x boards. So move
> the da8xx-fb.h file from arch/arm/include/asm/arch-davinci
> to drivers/video, so this driver can used from am335x
> based boards. Also add WVGA panel_type.
> 
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Anatolij Gustschin <agust@denx.de>
> Cc: Tom Rini <trini@ti.com>

Acked-by: Tom Rini <trini@ti.com>
Anatolij Gustschin Aug. 10, 2013, 9:01 a.m. UTC | #2
On Sat,  3 Aug 2013 07:22:48 +0200
Heiko Schocher <hs@denx.de> wrote:

> the da8xx-fb driver works also on am335x boards. So move
> the da8xx-fb.h file from arch/arm/include/asm/arch-davinci
> to drivers/video, so this driver can used from am335x
> based boards. Also add WVGA panel_type.
> 
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Anatolij Gustschin <agust@denx.de>
> Cc: Tom Rini <trini@ti.com>
> ---
>  board/davinci/ea20/ea20.c                                       | 2 +-
>  drivers/video/da8xx-fb.c                                        | 2 +-
>  {arch/arm/include/asm/arch-davinci => drivers/video}/da8xx-fb.h | 3 ++-
>  3 Dateien geändert, 4 Zeilen hinzugefügt(+), 3 Zeilen entfernt(-)
>  rename {arch/arm/include/asm/arch-davinci => drivers/video}/da8xx-fb.h (99%)

Applied to u-boot-video/master, thanks!

Anatolij
diff mbox

Patch

diff --git a/board/davinci/ea20/ea20.c b/board/davinci/ea20/ea20.c
index c786997..89ee079 100644
--- a/board/davinci/ea20/ea20.c
+++ b/board/davinci/ea20/ea20.c
@@ -24,7 +24,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/davinci_misc.h>
 #include <asm/gpio.h>
-#include <asm/arch/da8xx-fb.h>
+#include "../../../drivers/video/da8xx-fb.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index 373991d..dd7ce36 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -24,7 +24,7 @@ 
 #include <asm/arch/hardware.h>
 
 #include "videomodes.h"
-#include <asm/arch/da8xx-fb.h>
+#include "da8xx-fb.h"
 
 #define DRIVER_NAME "da8xx_lcdc"
 
diff --git a/arch/arm/include/asm/arch-davinci/da8xx-fb.h b/drivers/video/da8xx-fb.h
similarity index 99%
rename from arch/arm/include/asm/arch-davinci/da8xx-fb.h
rename to drivers/video/da8xx-fb.h
index c115034..f48fdfd 100644
--- a/arch/arm/include/asm/arch-davinci/da8xx-fb.h
+++ b/drivers/video/da8xx-fb.h
@@ -17,7 +17,8 @@ 
 #define DA8XX_FB_H
 
 enum panel_type {
-	QVGA = 0
+	QVGA = 0,
+	WVGA
 };
 
 enum panel_shade {