]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
arm efi: Use fdt from firmware when available
authorAlexander Graf <agraf@suse.de>
Sun, 28 Feb 2016 23:22:24 +0000 (00:22 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 10 Nov 2016 12:21:00 +0000 (13:21 +0100)
If EFI is nice enough to pass us an FDT using configuration tables on 32bit
ARM, we should really try and make use of it.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/arm/linux.h

index 059dbba4292a85fdd271e03913c59991b19380d9..a66caad13db8c5c3b0da10f624d01a81640eab44 100644 (file)
 # define LINUX_PHYS_OFFSET        (0x00008000)
 # define LINUX_INITRD_PHYS_OFFSET (LINUX_PHYS_OFFSET + 0x02000000)
 # define LINUX_FDT_PHYS_OFFSET    (LINUX_INITRD_PHYS_OFFSET - 0x10000)
-static inline grub_addr_t
-grub_arm_firmware_get_boot_data (void)
-{
-  return 0;
-}
+# define grub_arm_firmware_get_boot_data (grub_addr_t)grub_efi_get_firmware_fdt
 static inline grub_uint32_t
 grub_arm_firmware_get_machine_type (void)
 {