Skip to contentSkip to conversation

km/uart: port UART interface of KM Kirkwood boards to driver model

PATCH New Pascal Linder 1 participant 5 messages Jul 9, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/9 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.

---
 arch/arm/dts/kirkwood-km_common.dtsi | 1 +
 board/keymile/km_arm/Kconfig         | 1 +
 include/configs/km/km_arm.h          | 9 ---------
 3 files changed, 2 insertions(+), 9 deletions(-)
arch/arm/dts/kirkwood-km_common.dtsi +1 -0
index 75dc83914f..9d0fc51c2d 100644
@@ -22,6 +22,7 @@
 
 		serial at 12000 {
 			status = "okay";
+			clock-frequency = <200000000>;
 		};
 	};
 
board/keymile/km_arm/Kconfig +1 -0
index 7da052f4c4..335a45446a 100644
@@ -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
include/configs/km/km_arm.h +0 -9
index b257c384dc..a6cdf1ca3e 100644
@@ -58,15 +58,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
Signature · 1 line
2.21.0
#1 lore raw

PATCH 6/9 km/rgmii: port Ethernet interface of KM Kirkwood boards to driver model

Activate the driver model for the Ethernet interface (RGMII) in the KM Kirkwood Kconfig file. Additionally, raise the auto negotiation timeout to eight seconds as more time is required for those boards.

---
 board/keymile/km_arm/Kconfig | 1 +
 include/configs/km/km_arm.h  | 1 +
 2 files changed, 2 insertions(+)
board/keymile/km_arm/Kconfig +1 -0
index 335a45446a..be6b162815 100644
@@ -42,6 +42,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	def_bool y
 	select BOARD_LATE_INIT
 	select DM
+	select DM_ETH
 	select DM_SERIAL
 	select DM_SPI
 	select DM_SPI_FLASH
include/configs/km/km_arm.h +1 -0
index a6cdf1ca3e..bdb2dcfb86 100644
@@ -80,6 +80,7 @@
 /*
  * Ethernet Driver configuration
  */
+#define PHY_ANEG_TIMEOUT	8000	/* PHY needs a longer autoneg timeout */
 #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
 #define CONFIG_PHY_BASE_ADR	0
 
Signature · 1 line
2.21.0
#2 lore raw

PATCH 7/9 km/arm: remove unmaintained target PORTL2

In reply to Pascal Linder

Remove the PORTL2 board and all its dependencies as it is no longer supported by the company.

---
 board/keymile/km_arm/MAINTAINERS |  1 -
 configs/portl2_defconfig         | 47 --------------------------------
 include/configs/km_kirkwood.h    |  4 ---
 scripts/config_whitelist.txt     |  1 -
 4 files changed, 53 deletions(-)
 delete mode 100644 configs/portl2_defconfig
board/keymile/km_arm/MAINTAINERS +0 -1
index d156e8574b..d80589ded7 100644
@@ -11,4 +11,3 @@ F:	configs/kmnusa_defconfig
 F:	configs/kmsugp1_defconfig
 F:	configs/kmsuv31_defconfig
 F:	configs/mgcoge3un_defconfig
-F:	configs/portl2_defconfig
configs/portl2_defconfig deleted +0 -47

47 lines not on this page · raw message

include/configs/km_kirkwood.h +0 -4
index 92b0590d08..6fce83cfcd 100644
@@ -66,10 +66,6 @@
 #define CONFIG_HOSTNAME			"kmcoge5un"
 #define CONFIG_KM_DISABLE_PCIE
 
-/* KM_PORTL2 */
-#elif defined(CONFIG_KM_PORTL2)
-#define CONFIG_HOSTNAME			"portl2"
-
 /* KM_SUV31 */
 #elif defined(CONFIG_KM_SUV31)
 #define CONFIG_HOSTNAME			"kmsuv31"
scripts/config_whitelist.txt +0 -1
index fab6bbae3a..f6eb2d75f1 100644
@@ -975,7 +975,6 @@ CONFIG_KM_KIRKWOOD_PCI
 CONFIG_KM_MGCOGE3UN
 CONFIG_KM_NEW_ENV
 CONFIG_KM_NUSA
-CONFIG_KM_PORTL2
 CONFIG_KM_ROOTFSSIZE
 CONFIG_KM_SUGP1
 CONFIG_KM_SUV31
Signature · 1 line
2.21.0
#3 lore raw

PATCH 8/9 powerpc/km: remove unmaintained target KMVECT1

In reply to Pascal Linder

From: Holger Brunck <[email protected]>

---
 arch/powerpc/cpu/mpc83xx/Kconfig |   4 -
 board/keymile/common/ivm.c       |   5 -
 board/keymile/km83xx/Kconfig     |  19 ----
 board/keymile/km83xx/MAINTAINERS |   1 -
 board/keymile/km83xx/km83xx.c    |  81 --------------
 configs/kmvect1_defconfig        | 181 -------------------------------
 include/configs/kmvect1.h        |  56 ----------
 scripts/config_whitelist.txt     |   1 -
 8 files changed, 348 deletions(-)
 delete mode 100644 configs/kmvect1_defconfig
 delete mode 100644 include/configs/kmvect1.h
arch/powerpc/cpu/mpc83xx/Kconfig +0 -4
index 3f68b6f645..72053ceab4 100644
@@ -110,10 +110,6 @@ config TARGET_SUVD3
 	bool "Support suvd3"
 	select VENDOR_KM
 
-config TARGET_KMVECT1
-	bool "Support kmvect1"
-	select VENDOR_KM
-
 config TARGET_KMTEGR1
 	bool "Support kmtegr1"
 	select VENDOR_KM
board/keymile/common/ivm.c +0 -5
index 23bd21c4bc..d22f3fa75a 100644
@@ -310,11 +310,6 @@ static int ivm_populate_env(unsigned char *buf, int len)
 	/* if an offset is defined, add it */
 	process_mac(valbuf, page2, CONFIG_PIGGY_MAC_ADRESS_OFFSET, true);
 	env_set((char *)"ethaddr", (char *)valbuf);
-#ifdef CONFIG_KMVECT1
-/* KMVECT1 has two ethernet interfaces */
-	process_mac(valbuf, page2, 1, true);
-	env_set((char *)"eth1addr", (char *)valbuf);
-#endif
 #else
 /* KMTEGR1 has a special setup. eth0 has no connection to the outside and
  * gets an locally administred MAC address, eth1 is the debug interface and
board/keymile/km83xx/Kconfig +0 -19
index 0a41be57f5..1011cc8b2c 100644
@@ -38,25 +38,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 
 endif
 
-if TARGET_KMVECT1
-
-config SYS_BOARD
-	default "km83xx"
-
-config SYS_VENDOR
-	default "keymile"
-
-config SYS_CONFIG_NAME
-	default "kmvect1"
-
-config BOARD_SPECIFIC_OPTIONS # dummy
-	def_bool y
-	select ARCH_MPC8309
-	imply CMD_CRAMFS
-	imply FS_CRAMFS
-
-endif
-
 if TARGET_KMTEGR1
 
 config SYS_BOARD
board/keymile/km83xx/MAINTAINERS +0 -1
index 94e0d572e2..d2af983073 100644
@@ -10,7 +10,6 @@ F:	configs/kmopti2_defconfig
 F:	configs/kmtepr2_defconfig
 F:	include/configs/suvd3.h
 F:	configs/kmtegr1_defconfig
-F:	configs/kmvect1_defconfig
 F:	configs/suvd3_defconfig
 F:	configs/tuge1_defconfig
 F:	configs/tuxx1_defconfig
board/keymile/km83xx/km83xx.c +0 -81

99 lines not on this page · raw message

configs/kmvect1_defconfig deleted +0 -181

181 lines not on this page · raw message

include/configs/kmvect1.h deleted +0 -56

56 lines not on this page · raw message

scripts/config_whitelist.txt +0 -1
index f6eb2d75f1..5234600ea0 100644
@@ -951,7 +951,6 @@ CONFIG_KMCOGE4
 CONFIG_KMLION1
 CONFIG_KMP204X
 CONFIG_KMTEGR1
-CONFIG_KMVECT1
 CONFIG_KM_BOARD_EXTRA_ENV
 CONFIG_KM_BOARD_NAME
 CONFIG_KM_COGE5UN
Signature · 1 line
2.21.0
#4 lore raw

PATCH 9/9 powerpc/km: remove unmaintained board KMLION1

In reply to Pascal Linder

From: Holger Brunck <[email protected]>

This board is unmaintained and can be removed. This also allows us to remove kmp204x-common.h and integrate it in kmp204x.h.

---
 board/keymile/kmp204x/MAINTAINERS   |   1 -
 configs/kmlion1_defconfig           |  57 ----
 include/configs/km/kmp204x-common.h | 394 --------------------------
 include/configs/kmp204x.h           | 410 ++++++++++++++++++++++++++--
 scripts/config_whitelist.txt        |   1 -
 5 files changed, 390 insertions(+), 473 deletions(-)
 delete mode 100644 configs/kmlion1_defconfig
 delete mode 100644 include/configs/km/kmp204x-common.h
board/keymile/kmp204x/MAINTAINERS +0 -1
index c5170c97e7..fb3aefdd37 100644
@@ -4,4 +4,3 @@ S:	Maintained
 F:	board/keymile/kmp204x/
 F:	include/configs/kmp204x.h
 F:	configs/kmcoge4_defconfig
-F:	configs/kmlion1_defconfig
configs/kmlion1_defconfig deleted +0 -57

57 lines not on this page · raw message

include/configs/km/kmp204x-common.h deleted +0 -394

394 lines not on this page · raw message

include/configs/kmp204x.h +390 -20

434 lines not on this page · raw message

scripts/config_whitelist.txt +0 -1
index 5234600ea0..91067df5b3 100644
@@ -948,7 +948,6 @@ CONFIG_KIRKWOOD_RGMII_PAD_1V8
 CONFIG_KIRQ_EN
 CONFIG_KM8321
 CONFIG_KMCOGE4
-CONFIG_KMLION1
 CONFIG_KMP204X
 CONFIG_KMTEGR1
 CONFIG_KM_BOARD_EXTRA_ENV
Signature · 1 line
2.21.0