summaryrefslogtreecommitdiffstats
path: root/arch/nios2/dts/Makefile
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-10-18 19:42:09 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-10-23 07:28:38 +0800
commite6e2c15d487c0dce423c145233d1feab7798bc50 (patch)
treeeaa8bf2f73fa2461d22edaa871a5c3463a87853c /arch/nios2/dts/Makefile
parent1226dfdaddaf3a0c3e3451e69fad9f480df89d9b (diff)
downloadtalos-obmc-uboot-e6e2c15d487c0dce423c145233d1feab7798bc50.tar.gz
talos-obmc-uboot-e6e2c15d487c0dce423c145233d1feab7798bc50.zip
nios2: enable device tree control of U-Boot
This patch adds device tree control of U-Boot to nios2 boards. The example dts is taken from Linux kernel. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/nios2/dts/Makefile')
-rw-r--r--arch/nios2/dts/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/nios2/dts/Makefile b/arch/nios2/dts/Makefile
new file mode 100644
index 0000000000..b40eca9e0a
--- /dev/null
+++ b/arch/nios2/dts/Makefile
@@ -0,0 +1,11 @@
+dtb-y += $(CONFIG_DEFAULT_DEVICE_TREE:"%"=%).dtb
+
+targets += $(dtb-y)
+
+DTC_FLAGS += -R 4 -p 0x1000
+
+PHONY += dtbs
+dtbs: $(addprefix $(obj)/, $(dtb-y))
+ @:
+
+clean-files := *.dtb
OpenPOWER on IntegriCloud