[U-Boot] [PATCH 23/29] blackfin: bf537-stamp: Enable CONFIG_OF_CONTROL

Simon Glass sjg at chromium.org
Thu Dec 15 04:27:54 CET 2016


Enable device-tree control for this board, as an example for others. This
pushes the size of U-Boot over the 256KB limit, so extend this limit to
512KB.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/blackfin/dts/Makefile        | 18 ++++++++++++++++++
 arch/blackfin/dts/bf537-stamp.dts | 11 +++++++++++
 configs/bf537-stamp_defconfig     |  2 ++
 include/configs/bf537-stamp.h     |  1 +
 4 files changed, 32 insertions(+)
 create mode 100644 arch/blackfin/dts/Makefile
 create mode 100644 arch/blackfin/dts/bf537-stamp.dts

diff --git a/arch/blackfin/dts/Makefile b/arch/blackfin/dts/Makefile
new file mode 100644
index 0000000..757b1b0
--- /dev/null
+++ b/arch/blackfin/dts/Makefile
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2016 Google, Inc
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+dtb-$(CONFIG_BLACKFIN) += bf537-stamp.dtb
+
+targets += $(dtb-y)
+
+# Add any required device tree compiler flags here
+DTC_FLAGS +=
+
+PHONY += dtbs
+dtbs: $(addprefix $(obj)/, $(dtb-y))
+	@:
+
+clean-files := *.dtb
diff --git a/arch/blackfin/dts/bf537-stamp.dts b/arch/blackfin/dts/bf537-stamp.dts
new file mode 100644
index 0000000..84fb1ef
--- /dev/null
+++ b/arch/blackfin/dts/bf537-stamp.dts
@@ -0,0 +1,11 @@
+/dts-v1/;
+
+/ {
+	chosen {
+		stdout-path = &uart0;
+	};
+
+	uart0: uart0 {
+		compatible = "adi,uart-v1";
+	};
+};
diff --git a/configs/bf537-stamp_defconfig b/configs/bf537-stamp_defconfig
index b691702..599a4a0 100644
--- a/configs/bf537-stamp_defconfig
+++ b/configs/bf537-stamp_defconfig
@@ -1,5 +1,6 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF537_STAMP=y
+CONFIG_DEFAULT_DEVICE_TREE="bf537-stamp"
 CONFIG_BOOTDELAY=5
 CONFIG_SILENT_CONSOLE=y
 CONFIG_CMD_MMC=y
@@ -16,6 +17,7 @@ CONFIG_CMD_DNS=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
+CONFIG_OF_CONTROL=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_ATMEL=y
diff --git a/include/configs/bf537-stamp.h b/include/configs/bf537-stamp.h
index 4f861aa..f8639d8 100644
--- a/include/configs/bf537-stamp.h
+++ b/include/configs/bf537-stamp.h
@@ -238,6 +238,7 @@
 /*
  * Misc Settings
  */
+#define CONFIG_BOARD_SIZE_LIMIT $$(( 512 * 1024 ))
 #define CONFIG_MISC_INIT_R
 #define CONFIG_RTC_BFIN
 #define CONFIG_UART_CONSOLE	0
-- 
2.8.0.rc3.226.g39d4020



More information about the U-Boot mailing list