From afab6ac78303dd86bd7de62f17b32daf444f8d1a Mon Sep 17 00:00:00 2001 From: Vicente Bergas Date: Tue, 12 Feb 2013 00:04:59 +0100 Subject: 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 Signed-off-by: Sascha Hauer --- arch/arm/lib/armlinux.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/arm/lib/armlinux.c') 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); -- cgit v1.2.3