Patchwork [U-Boot,06/12] ARM: rpi_b: set bi_boot_params

login
register
mail settings
Submitter Stephen Warren
Date July 4, 2012, 2:02 a.m.
Message ID <1341367375-11467-7-git-send-email-swarren@wwwdotorg.org>
Download mbox | patch
Permalink /patch/168869/
State Changes Requested
Delegated to: Tom Rini
Headers show

Comments

Stephen Warren - July 4, 2012, 2:02 a.m.
This defines where ATAGs will be written to when booting a Linux kernel.

Extracted from work by Oleksandr Tymoshenko <gonzo@bluezbox.com>.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
---
 board/raspberrypi/rpi_b/rpi_b.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/board/raspberrypi/rpi_b/rpi_b.c b/board/raspberrypi/rpi_b/rpi_b.c
index f39440f..26df74b 100644
--- a/board/raspberrypi/rpi_b/rpi_b.c
+++ b/board/raspberrypi/rpi_b/rpi_b.c
@@ -28,5 +28,7 @@  int dram_init(void)
 
 int board_init(void)
 {
+	gd->bd->bi_boot_params = 0x100;
+
 	return 0;
 }