]> git.sur5r.net Git - u-boot/blobdiff - drivers/video/bcm2835.c
mtd: pxa3xx_nand: Correct null dereference
[u-boot] / drivers / video / bcm2835.c
index 61d054dd8923d7423df19aa5ee13366c6e084d32..bff1fcb9eaf7eb9ed293b0a752051b9740dbf95e 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <lcd.h>
+#include <memalign.h>
+#include <phys2bus.h>
 #include <asm/arch/mbox.h>
 #include <asm/global_data.h>
 
@@ -102,7 +104,8 @@ void lcd_ctrl_init(void *lcdbase)
        panel_info.vl_row = h;
        panel_info.vl_bpix = LCD_COLOR16;
 
-       gd->fb_base = msg_setup->allocate_buffer.body.resp.fb_address;
+       gd->fb_base = bus_to_phys(
+               msg_setup->allocate_buffer.body.resp.fb_address);
 }
 
 void lcd_enable(void)