summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Linder <pascal.linder@edu.hefr.ch>2019-07-09 09:30:26 +0200
committerStefan Roese <sr@denx.de>2019-08-12 09:12:38 +0200
commitb75e9e3fce8d8fa2ca45e12032fae57240821f65 (patch)
tree9c80b3729ceb49bb57e4a65b3c4319f793fe5130
parent9db6bff8b5ffc7d11e83048f7cf56c9dffc2a671 (diff)
downloadu-boot-b75e9e3fce8d8fa2ca45e12032fae57240821f65.tar.gz
km/uart: port UART interface of KM Kirkwood boards to driver model
Activate the driver model for the serial interface in the KM Kirkwood Kconfig file. The associated preprocessor definitions could be removed from the header file. However, the clock of 200 MHz needs to be declared in the device tree. Signed-off-by: Pascal Linder <pascal.linder@edu.hefr.ch> Signed-off-by: Holger Brunck <holger.brunck@ch.abb.com> Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r--arch/arm/dts/kirkwood-km_common.dtsi1
-rw-r--r--board/keymile/km_arm/Kconfig1
-rw-r--r--include/configs/km/km_arm.h9
3 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/dts/kirkwood-km_common.dtsi b/arch/arm/dts/kirkwood-km_common.dtsi
index 75dc83914f..9d0fc51c2d 100644
--- a/arch/arm/dts/kirkwood-km_common.dtsi
+++ b/arch/arm/dts/kirkwood-km_common.dtsi
@@ -22,6 +22,7 @@
serial@12000 {
status = "okay";
+ clock-frequency = <200000000>;
};
};
diff --git a/board/keymile/km_arm/Kconfig b/board/keymile/km_arm/Kconfig
index 7da052f4c4..335a45446a 100644
--- a/board/keymile/km_arm/Kconfig
+++ b/board/keymile/km_arm/Kconfig
@@ -42,6 +42,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y
select BOARD_LATE_INIT
select DM
+ select DM_SERIAL
select DM_SPI
select DM_SPI_FLASH
imply CMD_CRAMFS
diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h
index 8b0b665af5..96227b198e 100644
--- a/include/configs/km/km_arm.h
+++ b/include/configs/km/km_arm.h
@@ -61,15 +61,6 @@
#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
/*
- * NS16550 Configuration
- */
-#define CONFIG_SYS_NS16550_SERIAL
-#define CONFIG_SYS_NS16550_REG_SIZE (-4)
-#define CONFIG_SYS_NS16550_CLK CONFIG_SYS_TCLK
-#define CONFIG_SYS_NS16550_COM1 KW_UART0_BASE
-#define CONFIG_SYS_NS16550_COM2 KW_UART1_BASE
-
-/*
* For booting Linux, the board info and command line data
* have to be in the first 8 MB of memory, since this is
* the maximum mapped by the Linux kernel during initialization.