Patchwork [U-Boot,5/7] video, da8xx-fb: show fb addr in bdinfo

login
register
mail settings
Submitter Heiko Schocher
Date Aug. 3, 2013, 5:22 a.m.
Message ID <1375507373-13785-6-git-send-email-hs@denx.de>
Download mbox | patch
Permalink /patch/264392/
State Accepted
Delegated to: Anatolij Gustschin
Headers show

Comments

Heiko Schocher - Aug. 3, 2013, 5:22 a.m.
without this patch the bdinfo command shows:
U-Boot# bd
arch_number = 0x000010DC
[...]
sp start    = 0x8EF32F20
FB base     = 0x00000000

with this patch it shows the address where the framebuffer
for this video driver start:

arch_number = 0x000010DC
[...]
sp start    = 0x8EF32F20
FB base     = 0x8EF3C788

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Tom Rini <trini@ti.com>
---
 drivers/video/da8xx-fb.c | 1 +
 1 Datei geändert, 1 Zeile hinzugefügt(+)
Tom Rini - Aug. 6, 2013, 3:28 p.m.
On Sat, Aug 03, 2013 at 07:22:51AM +0200, Heiko Schocher wrote:

> without this patch the bdinfo command shows:
> U-Boot# bd
> arch_number = 0x000010DC
> [...]
> sp start    = 0x8EF32F20
> FB base     = 0x00000000
> 
> with this patch it shows the address where the framebuffer
> for this video driver start:
> 
> arch_number = 0x000010DC
> [...]
> sp start    = 0x8EF32F20
> FB base     = 0x8EF3C788
> 
> Signed-off-by: Heiko Schocher <hs@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:02 a.m.
On Sat,  3 Aug 2013 07:22:51 +0200
Heiko Schocher <hs@denx.de> wrote:

> without this patch the bdinfo command shows:
> U-Boot# bd
> arch_number = 0x000010DC
> [...]
> sp start    = 0x8EF32F20
> FB base     = 0x00000000
> 
> with this patch it shows the address where the framebuffer
> for this video driver start:
> 
> arch_number = 0x000010DC
> [...]
> sp start    = 0x8EF32F20
> FB base     = 0x8EF3C788
> 
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Cc: Anatolij Gustschin <agust@denx.de>
> Cc: Tom Rini <trini@ti.com>
> ---
>  drivers/video/da8xx-fb.c | 1 +
>  1 Datei geändert, 1 Zeile hinzugefügt(+)

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

Anatolij

Patch

diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index b0bde2d..3a5f325 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -959,6 +959,7 @@  void *video_hw_init(void)
 		printf("GLCD: malloc for frame buffer failed\n");
 		goto err_release_fb;
 	}
+	gd->fb_base = (int)par->vram_virt;
 
 	gpanel.frameAdrs = (unsigned int)par->vram_virt;
 	da8xx_fb_info->screen_base = (char *) par->vram_virt;