diff options
author | Vicente Bergas <vicencb@gmail.com> | 2013-02-12 00:04:59 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-12 09:04:27 +0100 |
commit | afab6ac78303dd86bd7de62f17b32daf444f8d1a (patch) | |
tree | 51cc3b179034506f8d56cafc0a3ac97e7ced831c /arch/arm/lib/armlinux.c | |
parent | c0ba0a64ae16bc9f722187acb0769bb48d674c5d (diff) | |
download | barebox-afab6ac78303dd86bd7de62f17b32daf444f8d1a.tar.gz barebox-afab6ac78303dd86bd7de62f17b32daf444f8d1a.tar.xz |
DeviceTree: add support for initrd in the DT
Add the initrd start and end address to the DT, code comes from u-boot.
Signed-off-by: Vicente Bergas <vicencb@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib/armlinux.c')
-rw-r--r-- | arch/arm/lib/armlinux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/lib/armlinux.c b/arch/arm/lib/armlinux.c index 40a63ea7e1..4dd84ed79c 100644 --- a/arch/arm/lib/armlinux.c +++ b/arch/arm/lib/armlinux.c @@ -266,6 +266,8 @@ void start_linux(void *adr, int swap, unsigned long initrd_address, if (oftree) { printf("booting Linux kernel with devicetree\n"); + fdt_initrd(oftree, initrd_address, + initrd_address + initrd_size, 1); params = oftree; } else { setup_tags(initrd_address, initrd_size, swap); |