[U-Boot] [PATCH 8/8] arm: ls1021atwr: Enable driver model lpuart serial driver
Bin Meng
bmeng.cn at gmail.com
Thu Dec 31 09:53:10 CET 2015
Convert ls1021atwr_nor_lpuart to driver model support. As a start,
enable lpuart serial port driver.
Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---
arch/arm/dts/ls1021a-twr.dts | 4 ++++
configs/ls1021atwr_nor_lpuart_defconfig | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/arch/arm/dts/ls1021a-twr.dts b/arch/arm/dts/ls1021a-twr.dts
index aead13f..deabb12 100644
--- a/arch/arm/dts/ls1021a-twr.dts
+++ b/arch/arm/dts/ls1021a-twr.dts
@@ -21,6 +21,10 @@
};
chosen {
+ /*
+ * With ls1021atwr_nor_lpuart_defconfig configuration,
+ * this needs to be changed to &lpuart0.
+ */
stdout-path = &uart0;
};
};
diff --git a/configs/ls1021atwr_nor_lpuart_defconfig b/configs/ls1021atwr_nor_lpuart_defconfig
index 58cd61f..5346359 100644
--- a/configs/ls1021atwr_nor_lpuart_defconfig
+++ b/configs/ls1021atwr_nor_lpuart_defconfig
@@ -1,7 +1,11 @@
CONFIG_ARM=y
CONFIG_TARGET_LS1021ATWR=y
+CONFIG_DM_SERIAL=y
+CONFIG_DEFAULT_DEVICE_TREE="ls1021a-twr"
CONFIG_SYS_EXTRA_OPTIONS="LPUART"
# CONFIG_CMD_SETEXPR is not set
+CONFIG_OF_CONTROL=y
+CONFIG_DM=y
CONFIG_NETDEVICES=y
CONFIG_E1000=y
CONFIG_FSL_LPUART=y
--
1.8.2.1
More information about the U-Boot
mailing list