aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Leach <Matthew.Leach@arm.com>2014-01-23 17:29:30 +0000
committerMark Rutland <mark.rutland@arm.com>2014-03-12 11:15:58 +0000
commite4ae51a1c128ccaac01bdc834692fd15c3a3c8de (patch)
tree5adbdd4645704d6c7a7fb28d043974369f6a1023
parentd7cb1d660d17f3ecd715e26c6b84e12e2a2ca0cb (diff)
downloadboot-wrapper-aarch64-e4ae51a1c128ccaac01bdc834692fd15c3a3c8de.tar.gz
If enabled, add the PSCI node to the FDT
PSCI requires a node to be inserted into the FDT. Do this for the user automatically if PSCI is enabled. Signed-off-by: Matthew Leach <matthew.leach@arm.com> [Mark: add missing "method" property, fix indentation] Signed-off-by: Mark Rutland <mark.rutland@arm.com>
-rw-r--r--Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 763eb58..610e3bb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,8 +26,15 @@ BOOTLOADER := boot.S
if PSCI
BOOTMETHOD := psci.o
+PSCI_NODE := psci { \
+ compatible = \"arm,psci\"; \
+ method = \"smc\"; \
+ cpu_on = <0x84000002>; \
+ cpu_off = <0x84000001>; \
+ };
else
BOOTMETHOD := spin.o
+PSCI_NODE :=
endif
MBOX_OFFSET := 0xfff8
@@ -72,7 +79,7 @@ model.lds: $(LD_SCRIPT) Makefile
$(CPP) $(CPPFLAGS) -ansi -DPHYS_OFFSET=$(PHYS_OFFSET) -DMBOX_OFFSET=$(MBOX_OFFSET) -DKERNEL_OFFSET=$(KERNEL_OFFSET) -DFDT_OFFSET=$(FDT_OFFSET) -DFS_OFFSET=$(FS_OFFSET) -DKERNEL=$(KERNEL_IMAGE) -DFILESYSTEM=$(FILESYSTEM) -DBOOTMETHOD=$(BOOTMETHOD) -P -C -o $@ $<
fdt.dtb: $(KERNEL_DTB) Makefile
- ( $(DTC) -O dts -I dtb $(KERNEL_DTB) ; echo "/ { $(CHOSEN_NODE) };" ) | $(DTC) -O dtb -o $@ -
+ ( $(DTC) -O dts -I dtb $(KERNEL_DTB) ; echo "/ { $(CHOSEN_NODE) $(PSCI_NODE) };" ) | $(DTC) -O dtb -o $@ -
# The filesystem archive might not exist if INITRD is not being used
.PHONY: all clean $(FILESYSTEM)