diff mbox

[U-Boot,12/17] sunxi: sunxi-common.h: Reduce bootm_size to take the framebuffer into account

Message ID 1419447989-21959-13-git-send-email-hdegoede@redhat.com
State Superseded
Delegated to: Ian Campbell
Headers show

Commit Message

Hans de Goede Dec. 24, 2014, 7:06 p.m. UTC
Before video output support can be enabled on the A13-OLinuXinoM, bootm_size
must first be reduced to take into account that the framebuffer is shaved of
the top of the DRAM. For other boards this is not an issue since bootm was set
to 256M and all boards have at least 512M except for the A13-OLinuXinoM.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 include/configs/sunxi-common.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Comments

Ian Campbell Dec. 29, 2014, 1:52 p.m. UTC | #1
On Wed, 2014-12-24 at 20:06 +0100, Hans de Goede wrote:
> Before video output support can be enabled on the A13-OLinuXinoM, bootm_size
> must first be reduced to take into account that the framebuffer is shaved of
> the top of the DRAM. For other boards this is not an issue since bootm was set
> to 256M and all boards have at least 512M except for the A13-OLinuXinoM.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Acked-by: Ian Campbell <ijc@hellion.org.uk>
diff mbox

Patch

diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 30b7ee4..809e700 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -269,10 +269,13 @@ 
 #ifndef CONFIG_SPL_BUILD
 #include <config_distro_defaults.h>
 
-/* 256M RAM (minimum), 32M uncompressed kernel, 16M compressed kernel, 1M fdt,
- * 1M script, 1M pxe and the ramdisk at the end */
+/*
+ * 240M RAM (256M minimum minus space for the framebuffer),
+ * 32M uncompressed kernel, 16M compressed kernel, 1M fdt,
+ * 1M script, 1M pxe and the ramdisk at the end.
+ */
 #define MEM_LAYOUT_ENV_SETTINGS \
-	"bootm_size=0x10000000\0" \
+	"bootm_size=0xf000000\0" \
 	"kernel_addr_r=0x42000000\0" \
 	"fdt_addr_r=0x43000000\0" \
 	"scriptaddr=0x43100000\0" \