Skip to contentSkip to conversation

Small Turris MOX and Omnia changes

PATCH In review Marek Behún 2 participants 26 messages Oct 9, 2021 – Oct 21, 2021

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

cover Small Turris MOX and Omnia changes

From: Marek Behún <[email protected]>

Hi Stefan,

these are some small changes for Turris Omnia and MOX, mainly moving options from board config header to Kconfig, but also some other.

Two patchs are touching other mvebu boards.

Marek

Marek Behún (12):
arm: mvebu: turris_mox: Drop SF_DEFAULT_MODE from defconfig
arm: mvebu: turris_mox: Move options to defconfig
arm: mvebu: a3720: Create Kconfig option for I2C_MV
arm: kirkwood, mvebu: Remove CONFIG_SYS_RESET_ADDRESS option
arm: mvebu: turris_mox: Cosmetic update for board config header
arm: mvebu: turris_mox: Use show_board_info()
arm: mvebu: turris_mox: Always handle reset button
arm: mvebu: turris_mox: Better check for valid ethernet addresses in
env
arm: mvebu: turris_omnia: Overwrite ethaddr only if invalid
arm: mvebu: turris_omnia: Use show_board_info()
arm: mvebu: turris_omnia: Move SPL's SYS_MALLOC_SIMPLE to Kconfig
arm: mvebu: turris_omnia: Move CONFIG_SPL_DRIVERS_MISC to Kconfig

 arch/arm/mach-mvebu/Kconfig                 |  2 +
 board/CZ.NIC/turris_mox/turris_mox.c        | 86 +++++++++++----------
 board/CZ.NIC/turris_omnia/turris_omnia.c    | 26 ++++---
 configs/mvebu_db-88f3720_defconfig          |  1 +
 configs/mvebu_espressobin-88f3720_defconfig |  1 +
 configs/turris_mox_defconfig                |  4 +-
 configs/uDPU_defconfig                      |  1 +
 drivers/i2c/Kconfig                         |  6 ++
 drivers/i2c/Makefile                        |  2 +-
 include/configs/SBx81LIFKW.h                |  5 --
 include/configs/SBx81LIFXCAT.h              |  5 --
 include/configs/edminiv2.h                  |  6 --
 include/configs/mv-common.h                 |  1 -
 include/configs/mvebu_armada-37xx.h         |  6 --
 include/configs/mvebu_armada-8k.h           |  1 -
 include/configs/turris_mox.h                | 74 ++++++------------
 include/configs/turris_omnia.h              |  5 --
 include/configs/x530.h                      |  5 --
 scripts/config_whitelist.txt                |  1 -
 19 files changed, 95 insertions(+), 143 deletions(-)
Signature · 1 line
2.32.0
#1 lore raw

PATCH 1/12 arm: mvebu: turris_mox: Drop SF_DEFAULT_MODE from defconfig

From: Marek Behún <[email protected]>

This config option defaults to 0, so it is redundant in defconfig.

---
 configs/turris_mox_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/turris_mox_defconfig +0 -1
index 82ad68b6a1..6ff551e477 100644
@@ -67,7 +67,6 @@ CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_MMC_SDHCI_XENON=y
 CONFIG_MTD=y
 CONFIG_DM_MTD=y
-CONFIG_SF_DEFAULT_MODE=0
 CONFIG_SF_DEFAULT_SPEED=20000000
 CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SPI_FLASH_SPANSION=y
Signature · 1 line
2.32.0
#2 lore raw

Re: [PATCH u-boot-marvell 01/12] arm: mvebu: turris_mox: Drop SF_DEFAULT_MODE from defconfig

Quoted 5 lines · Marek Behún

From: Marek Behún <[email protected]>

This config option defaults to 0, so it is redundant in defconfig.

Already removed by Tom's recent sync.

Thanks,
Stefan

Quoted 10 lines
---
  configs/turris_mox_defconfig | 1 -
  1 file changed, 1 deletion(-)
configs/turris_mox_defconfig +0 -0
index 82ad68b6a1..6ff551e477 100644

configs/turris_mox_defconfig CONFIG_MMC_SDHCI_SDMA=y · line 72

Quoted 7 lines
configs/turris_mox_defconfig +0 -1
@@ -67,7 +67,6 @@ CONFIG_MMC_SDHCI_SDMA=y
  CONFIG_MMC_SDHCI_XENON=y
  CONFIG_MTD=y
  CONFIG_DM_MTD=y
-CONFIG_SF_DEFAULT_MODE=0
  CONFIG_SF_DEFAULT_SPEED=20000000
  CONFIG_SPI_FLASH_MACRONIX=y
  CONFIG_SPI_FLASH_SPANSION=y

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#3 lore raw

PATCH 2/12 arm: mvebu: turris_mox: Move options to defconfig

In reply to Marek Behún

From: Marek Behún <[email protected]>

Move config options CONFIG_LAST_STAGE_INIT and CONFIG_DISPLAY_BOARDINFO_LATE to turris_mox_defconfig.

---
 configs/turris_mox_defconfig | 2 ++
 include/configs/turris_mox.h | 7 -------
 2 files changed, 2 insertions(+), 7 deletions(-)
configs/turris_mox_defconfig +2 -0
index 6ff551e477..e494aebecc 100644
@@ -24,7 +24,9 @@ CONFIG_USE_PREBOOT=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
+CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_ARCH_EARLY_INIT_R=y
+CONFIG_LAST_STAGE_INIT=y
 CONFIG_MISC_INIT_R=y
 CONFIG_CMD_SHA1SUM=y
 CONFIG_CMD_CLK=y
include/configs/turris_mox.h +0 -7
index 0bbc984753..0fcf216eb1 100644
@@ -10,13 +10,6 @@
 
 #define CONFIG_SYS_BOOTM_LEN (64 << 20)
 
-#define CONFIG_LAST_STAGE_INIT
-
-/*
- * High Level Configuration Options (easy to change)
- */
-#define CONFIG_DISPLAY_BOARDINFO_LATE
-
 /* additions for new ARM relocation support */
 #define CONFIG_SYS_SDRAM_BASE	0x00000000
 
Signature · 1 line
2.32.0
Reviewed-by on v1 2/12
#4 lore raw

Re: [PATCH u-boot-marvell 02/12] arm: mvebu: turris_mox: Move options to defconfig

Quoted 6 lines · Marek Behún

From: Marek Behún <[email protected]>

Move config options CONFIG_LAST_STAGE_INIT and CONFIG_DISPLAY_BOARDINFO_LATE to turris_mox_defconfig.

Thanks,
Stefan

Quoted 28 lines
---
  configs/turris_mox_defconfig | 2 ++
  include/configs/turris_mox.h | 7 -------
  2 files changed, 2 insertions(+), 7 deletions(-)
configs/turris_mox_defconfig +2 -0
index 6ff551e477..e494aebecc 100644
@@ -24,7 +24,9 @@ CONFIG_USE_PREBOOT=y
  CONFIG_SYS_CONSOLE_INFO_QUIET=y
  # CONFIG_DISPLAY_CPUINFO is not set
  # CONFIG_DISPLAY_BOARDINFO is not set
+CONFIG_DISPLAY_BOARDINFO_LATE=y
  CONFIG_ARCH_EARLY_INIT_R=y
+CONFIG_LAST_STAGE_INIT=y
  CONFIG_MISC_INIT_R=y
  CONFIG_CMD_SHA1SUM=y
  CONFIG_CMD_CLK=y
include/configs/turris_mox.h +0 -0
index 0bbc984753..0fcf216eb1 100644
@@ -10,13 +10,6 @@
 
  #define CONFIG_SYS_BOOTM_LEN (64 << 20)
 

include/configs/turris_mox.h line 15

Quoted 10 lines
include/configs/turris_mox.h +0 -7
-#define CONFIG_LAST_STAGE_INIT
-
-/*
- * High Level Configuration Options (easy to change)
- */
-#define CONFIG_DISPLAY_BOARDINFO_LATE
-
  /* additions for new ARM relocation support */
  #define CONFIG_SYS_SDRAM_BASE	0x00000000
 

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#5 lore raw

PATCH 3/12 arm: mvebu: a3720: Create Kconfig option for I2C_MV

In reply to Marek Behún

From: Marek Behún <[email protected]>

Move the config option CONFIG_I2C_MV to a Kconfig option CONFIG_SYS_I2C_MV and move the default definition from config header files into defconfigs.

---
 configs/mvebu_db-88f3720_defconfig          | 1 +
 configs/mvebu_espressobin-88f3720_defconfig | 1 +
 configs/turris_mox_defconfig                | 1 +
 configs/uDPU_defconfig                      | 1 +
 drivers/i2c/Kconfig                         | 6 ++++++
 drivers/i2c/Makefile                        | 2 +-
 include/configs/mvebu_armada-37xx.h         | 5 -----
 include/configs/turris_mox.h                | 5 -----
 scripts/config_whitelist.txt                | 1 -
 9 files changed, 11 insertions(+), 12 deletions(-)
configs/mvebu_db-88f3720_defconfig +1 -0
index d401f4765f..6c2a2180a4 100644
@@ -45,6 +45,7 @@ CONFIG_CLK=y
 CONFIG_CLK_MVEBU=y
 # CONFIG_MVEBU_GPIO is not set
 CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_MV=y
 CONFIG_MISC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
configs/mvebu_espressobin-88f3720_defconfig +1 -0
index 01cf24aec9..b783246562 100644
@@ -54,6 +54,7 @@ CONFIG_AHCI_MVEBU=y
 CONFIG_CLK=y
 CONFIG_CLK_MVEBU=y
 CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_MV=y
 CONFIG_MISC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
configs/turris_mox_defconfig +1 -0
index e494aebecc..3cae32f69b 100644
@@ -61,6 +61,7 @@ CONFIG_CLK=y
 CONFIG_CLK_MVEBU=y
 # CONFIG_MVEBU_GPIO is not set
 CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_MV=y
 CONFIG_LED=y
 CONFIG_LED_GPIO=y
 CONFIG_MISC=y
configs/uDPU_defconfig +1 -0
index a06a25378e..6a222f3d6c 100644
@@ -54,6 +54,7 @@ CONFIG_CLK=y
 CONFIG_CLK_MVEBU=y
 CONFIG_DM_I2C=y
 CONFIG_DM_I2C_GPIO=y
+CONFIG_SYS_I2C_MV=y
 CONFIG_MISC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
drivers/i2c/Kconfig +6 -0
index 57cac4483f..b1c3a96dc0 100644
@@ -611,6 +611,12 @@ config SYS_I2C_VERSATILE
 	  Add support for the Arm Ltd Versatile Express I2C driver. The I2C host
 	  controller is present in the development boards manufactured by Arm Ltd.
 
+config SYS_I2C_MV
+	bool "Marvell PXA (Armada 3720) I2C driver"
+	help
+	  Support for PXA based I2C controller used on Armada 3720 SoC.
+	  In Linux, this driver is called i2c-pxa.
+
 config SYS_I2C_MVTWSI
 	bool "Marvell I2C driver"
 	help
drivers/i2c/Makefile +1 -1
index 67841bf3e0..7cfb3b9043 100644
@@ -10,7 +10,6 @@ obj-$(CONFIG_$(SPL_)DM_I2C_GPIO) += i2c-gpio.o
 obj-$(CONFIG_$(SPL_)I2C_CROS_EC_TUNNEL) += cros_ec_tunnel.o
 obj-$(CONFIG_$(SPL_)I2C_CROS_EC_LDO) += cros_ec_ldo.o
 
-obj-$(CONFIG_I2C_MV) += mv_i2c.o
 obj-$(CONFIG_$(SPL_)SYS_I2C_LEGACY) += i2c_core.o
 obj-$(CONFIG_SYS_I2C_ASPEED) += ast_i2c.o
 obj-$(CONFIG_SYS_I2C_AT91) += at91_i2c.o
@@ -29,6 +28,7 @@ obj-$(CONFIG_SYS_I2C_IPROC) += iproc_i2c.o
 obj-$(CONFIG_SYS_I2C_KONA) += kona_i2c.o
 obj-$(CONFIG_SYS_I2C_LPC32XX) += lpc32xx_i2c.o
 obj-$(CONFIG_SYS_I2C_MESON) += meson_i2c.o
+obj-$(CONFIG_SYS_I2C_MV) += mv_i2c.o
 obj-$(CONFIG_SYS_I2C_MVTWSI) += mvtwsi.o
 obj-$(CONFIG_SYS_I2C_MXC) += mxc_i2c.o
 obj-$(CONFIG_SYS_I2C_NEXELL) += nx_i2c.o
include/configs/mvebu_armada-37xx.h +0 -5
index 755f59eee9..8c315eb563 100644
@@ -36,11 +36,6 @@
 /* End of 16M scrubbed by training in bootrom */
 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_TEXT_BASE + 0xFF0000)
 
-/*
- * I2C
- */
-#define CONFIG_I2C_MV
-
 /*
  * Environment
  */
include/configs/turris_mox.h +0 -5
index 0fcf216eb1..ab7931d35b 100644
@@ -34,11 +34,6 @@
 /* End of 16M scrubbed by training in bootrom */
 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_TEXT_BASE + 0xFF0000)
 
-/*
- * I2C
- */
-#define CONFIG_I2C_MV
-
 /* Environment in SPI NOR flash */
 
 /*
scripts/config_whitelist.txt +0 -1
index 02d86d79cf..3475d0bc6d 100644
@@ -601,7 +601,6 @@ CONFIG_I2C_ENV_EEPROM_BUS
 CONFIG_I2C_GSC
 CONFIG_I2C_MBB_TIMEOUT
 CONFIG_I2C_MULTI_BUS
-CONFIG_I2C_MV
 CONFIG_I2C_MVTWSI
 CONFIG_I2C_MVTWSI_BASE
 CONFIG_I2C_MVTWSI_BASE0
Signature · 1 line
2.32.0
Reviewed-by on v1 3/12
#6 lore raw

Re: [PATCH u-boot-marvell 03/12] arm: mvebu: a3720: Create Kconfig option for I2C_MV

Quoted 7 lines · Marek Behún

From: Marek Behún <[email protected]>

Move the config option CONFIG_I2C_MV to a Kconfig option CONFIG_SYS_I2C_MV and move the default definition from config header files into defconfigs.

Thanks,
Stefan

Quoted 135 lines
---
  configs/mvebu_db-88f3720_defconfig          | 1 +
  configs/mvebu_espressobin-88f3720_defconfig | 1 +
  configs/turris_mox_defconfig                | 1 +
  configs/uDPU_defconfig                      | 1 +
  drivers/i2c/Kconfig                         | 6 ++++++
  drivers/i2c/Makefile                        | 2 +-
  include/configs/mvebu_armada-37xx.h         | 5 -----
  include/configs/turris_mox.h                | 5 -----
  scripts/config_whitelist.txt                | 1 -
  9 files changed, 11 insertions(+), 12 deletions(-)
configs/mvebu_db-88f3720_defconfig +1 -0
index d401f4765f..6c2a2180a4 100644
@@ -45,6 +45,7 @@ CONFIG_CLK=y
  CONFIG_CLK_MVEBU=y
  # CONFIG_MVEBU_GPIO is not set
  CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_MV=y
  CONFIG_MISC=y
  CONFIG_MMC_SDHCI=y
  CONFIG_MMC_SDHCI_SDMA=y
configs/mvebu_espressobin-88f3720_defconfig +1 -0
index 01cf24aec9..b783246562 100644
@@ -54,6 +54,7 @@ CONFIG_AHCI_MVEBU=y
  CONFIG_CLK=y
  CONFIG_CLK_MVEBU=y
  CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_MV=y
  CONFIG_MISC=y
  CONFIG_MMC_SDHCI=y
  CONFIG_MMC_SDHCI_SDMA=y
configs/turris_mox_defconfig +1 -0
index e494aebecc..3cae32f69b 100644
@@ -61,6 +61,7 @@ CONFIG_CLK=y
  CONFIG_CLK_MVEBU=y
  # CONFIG_MVEBU_GPIO is not set
  CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_MV=y
  CONFIG_LED=y
  CONFIG_LED_GPIO=y
  CONFIG_MISC=y
configs/uDPU_defconfig +1 -0
index a06a25378e..6a222f3d6c 100644
@@ -54,6 +54,7 @@ CONFIG_CLK=y
  CONFIG_CLK_MVEBU=y
  CONFIG_DM_I2C=y
  CONFIG_DM_I2C_GPIO=y
+CONFIG_SYS_I2C_MV=y
  CONFIG_MISC=y
  CONFIG_MMC_SDHCI=y
  CONFIG_MMC_SDHCI_SDMA=y
drivers/i2c/Kconfig +6 -0
index 57cac4483f..b1c3a96dc0 100644
@@ -611,6 +611,12 @@ config SYS_I2C_VERSATILE
  	  Add support for the Arm Ltd Versatile Express I2C driver. The I2C host
  	  controller is present in the development boards manufactured by Arm Ltd.
 
+config SYS_I2C_MV
+	bool "Marvell PXA (Armada 3720) I2C driver"
+	help
+	  Support for PXA based I2C controller used on Armada 3720 SoC.
+	  In Linux, this driver is called i2c-pxa.
+
  config SYS_I2C_MVTWSI
  	bool "Marvell I2C driver"
  	help
drivers/i2c/Makefile +1 -1
index 67841bf3e0..7cfb3b9043 100644
@@ -10,7 +10,6 @@ obj-$(CONFIG_$(SPL_)DM_I2C_GPIO) += i2c-gpio.o
  obj-$(CONFIG_$(SPL_)I2C_CROS_EC_TUNNEL) += cros_ec_tunnel.o
  obj-$(CONFIG_$(SPL_)I2C_CROS_EC_LDO) += cros_ec_ldo.o
 
-obj-$(CONFIG_I2C_MV) += mv_i2c.o
  obj-$(CONFIG_$(SPL_)SYS_I2C_LEGACY) += i2c_core.o
  obj-$(CONFIG_SYS_I2C_ASPEED) += ast_i2c.o
  obj-$(CONFIG_SYS_I2C_AT91) += at91_i2c.o
@@ -29,6 +28,7 @@ obj-$(CONFIG_SYS_I2C_IPROC) += iproc_i2c.o
  obj-$(CONFIG_SYS_I2C_KONA) += kona_i2c.o
  obj-$(CONFIG_SYS_I2C_LPC32XX) += lpc32xx_i2c.o
  obj-$(CONFIG_SYS_I2C_MESON) += meson_i2c.o
+obj-$(CONFIG_SYS_I2C_MV) += mv_i2c.o
  obj-$(CONFIG_SYS_I2C_MVTWSI) += mvtwsi.o
  obj-$(CONFIG_SYS_I2C_MXC) += mxc_i2c.o
  obj-$(CONFIG_SYS_I2C_NEXELL) += nx_i2c.o
include/configs/mvebu_armada-37xx.h +0 -5
index 755f59eee9..8c315eb563 100644
@@ -36,11 +36,6 @@
  /* End of 16M scrubbed by training in bootrom */
  #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_TEXT_BASE + 0xFF0000)
 
-/*
- * I2C
- */
-#define CONFIG_I2C_MV
-
  /*
   * Environment
   */
include/configs/turris_mox.h +0 -5
index 0fcf216eb1..ab7931d35b 100644
@@ -34,11 +34,6 @@
  /* End of 16M scrubbed by training in bootrom */
  #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_TEXT_BASE + 0xFF0000)
 
-/*
- * I2C
- */
-#define CONFIG_I2C_MV
-
  /* Environment in SPI NOR flash */
 
  /*
scripts/config_whitelist.txt +0 -0
index 02d86d79cf..3475d0bc6d 100644

scripts/config_whitelist.txt CONFIG_I2C_ENV_EEPROM_BUS · line 606

Quoted 7 lines
scripts/config_whitelist.txt +0 -1
@@ -601,7 +601,6 @@ CONFIG_I2C_ENV_EEPROM_BUS
  CONFIG_I2C_GSC
  CONFIG_I2C_MBB_TIMEOUT
  CONFIG_I2C_MULTI_BUS
-CONFIG_I2C_MV
  CONFIG_I2C_MVTWSI
  CONFIG_I2C_MVTWSI_BASE
  CONFIG_I2C_MVTWSI_BASE0

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#7 lore raw

PATCH 4/12 arm: kirkwood, mvebu: Remove CONFIG_SYS_RESET_ADDRESS option

In reply to Marek Behún

From: Marek Behún <[email protected]>

This option is not used anywhere.

---
 include/configs/SBx81LIFKW.h        | 5 -----
 include/configs/SBx81LIFXCAT.h      | 5 -----
 include/configs/edminiv2.h          | 6 ------
 include/configs/mv-common.h         | 1 -
 include/configs/mvebu_armada-37xx.h | 1 -
 include/configs/mvebu_armada-8k.h   | 1 -
 include/configs/turris_mox.h        | 1 -
 include/configs/x530.h              | 5 -----
 8 files changed, 25 deletions(-)
include/configs/SBx81LIFKW.h +0 -5
index fc6167cf96..462619ff69 100644
@@ -59,11 +59,6 @@
 /* There is no PHY directly connected so don't ask it for link status */
 #undef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-/*
- * Other required minimal configurations
- */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
-
 /*
  * Ethernet Driver configuration
  */
include/configs/SBx81LIFXCAT.h +0 -5
index 06be63e242..a271567f85 100644
@@ -64,11 +64,6 @@
 /* There is no PHY directly connected so don't ask it for link status */
 #undef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-/*
- * Other required minimal configurations
- */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
-
 /*
  * Ethernet Driver configuration
  */
include/configs/edminiv2.h +0 -6
index fbe468010b..664d6d1f34 100644
@@ -151,12 +151,6 @@
  *  Environment variables configurations
  */
 
-/*
- * Other required minimal configurations
- */
-
-#define CONFIG_SYS_RESET_ADDRESS	0xffff0000
-
 /* Enable command line editing */
 
 /* provide extensive help */
include/configs/mv-common.h +0 -1
index e460f69a08..cc3b597f28 100644
@@ -55,7 +55,6 @@
 /*
  * Other required minimal configurations
  */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
 #define CONFIG_SYS_MAXARGS	32	/* max number of command args */
 
 /* ====> Include platform Common Definitions */
include/configs/mvebu_armada-37xx.h +0 -1
index 8c315eb563..e7f7e772fc 100644
@@ -30,7 +30,6 @@
 /*
  * Other required minimal configurations
  */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
 #define CONFIG_SYS_MAXARGS	32	/* max number of command args */
 
 /* End of 16M scrubbed by training in bootrom */
include/configs/mvebu_armada-8k.h +0 -1
index 2f8be2ee49..886f44c903 100644
@@ -24,7 +24,6 @@
 /*
  * Other required minimal configurations
  */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
 #define CONFIG_SYS_MAXARGS	32	/* max number of command args */
 
 /* End of 16M scrubbed by training in bootrom */
include/configs/turris_mox.h +0 -1
index ab7931d35b..070abe38db 100644
@@ -28,7 +28,6 @@
 /*
  * Other required minimal configurations
  */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
 #define CONFIG_SYS_MAXARGS	32	/* max number of command args */
 
 /* End of 16M scrubbed by training in bootrom */
include/configs/x530.h +0 -5
index d6aec6d7f2..699deffbe0 100644
@@ -61,11 +61,6 @@
 
 #include <asm/arch/config.h>
 
-/*
- * Other required minimal configurations
- */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
-
 /* Keep device tree and initrd in low memory so the kernel can access them */
 #define CONFIG_EXTRA_ENV_SETTINGS	\
 	"fdt_high=0x10000000\0"		\
Signature · 1 line
2.32.0
Reviewed-by on v1 4/12
#8 lore raw

Re: [PATCH u-boot-marvell 04/12] arm: kirkwood, mvebu: Remove CONFIG_SYS_RESET_ADDRESS option

Quoted 5 lines · Marek Behún

From: Marek Behún <[email protected]>

This option is not used anywhere.

Thanks,
Stefan

Quoted 115 lines
---
  include/configs/SBx81LIFKW.h        | 5 -----
  include/configs/SBx81LIFXCAT.h      | 5 -----
  include/configs/edminiv2.h          | 6 ------
  include/configs/mv-common.h         | 1 -
  include/configs/mvebu_armada-37xx.h | 1 -
  include/configs/mvebu_armada-8k.h   | 1 -
  include/configs/turris_mox.h        | 1 -
  include/configs/x530.h              | 5 -----
  8 files changed, 25 deletions(-)
include/configs/SBx81LIFKW.h +0 -5
index fc6167cf96..462619ff69 100644
@@ -59,11 +59,6 @@
  /* There is no PHY directly connected so don't ask it for link status */
  #undef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-/*
- * Other required minimal configurations
- */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
-
  /*
   * Ethernet Driver configuration
   */
include/configs/SBx81LIFXCAT.h +0 -5
index 06be63e242..a271567f85 100644
@@ -64,11 +64,6 @@
  /* There is no PHY directly connected so don't ask it for link status */
  #undef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-/*
- * Other required minimal configurations
- */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
-
  /*
   * Ethernet Driver configuration
   */
include/configs/edminiv2.h +0 -6
index fbe468010b..664d6d1f34 100644
@@ -151,12 +151,6 @@
   *  Environment variables configurations
   */
 
-/*
- * Other required minimal configurations
- */
-
-#define CONFIG_SYS_RESET_ADDRESS	0xffff0000
-
  /* Enable command line editing */
 
  /* provide extensive help */
include/configs/mv-common.h +0 -1
index e460f69a08..cc3b597f28 100644
@@ -55,7 +55,6 @@
  /*
   * Other required minimal configurations
   */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
  #define CONFIG_SYS_MAXARGS	32	/* max number of command args */
 
  /* ====> Include platform Common Definitions */
include/configs/mvebu_armada-37xx.h +0 -1
index 8c315eb563..e7f7e772fc 100644
@@ -30,7 +30,6 @@
  /*
   * Other required minimal configurations
   */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
  #define CONFIG_SYS_MAXARGS	32	/* max number of command args */
 
  /* End of 16M scrubbed by training in bootrom */
include/configs/mvebu_armada-8k.h +0 -1
index 2f8be2ee49..886f44c903 100644
@@ -24,7 +24,6 @@
  /*
   * Other required minimal configurations
   */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
  #define CONFIG_SYS_MAXARGS	32	/* max number of command args */
 
  /* End of 16M scrubbed by training in bootrom */
include/configs/turris_mox.h +0 -1
index ab7931d35b..070abe38db 100644
@@ -28,7 +28,6 @@
  /*
   * Other required minimal configurations
   */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
  #define CONFIG_SYS_MAXARGS	32	/* max number of command args */
 
  /* End of 16M scrubbed by training in bootrom */
include/configs/x530.h +0 -0
index d6aec6d7f2..699deffbe0 100644
@@ -61,11 +61,6 @@
 

include/configs/x530.h line 66

Quoted 10 lines
include/configs/x530.h +0 -5
  #include <asm/arch/config.h>
 
-/*
- * Other required minimal configurations
- */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
-
  /* Keep device tree and initrd in low memory so the kernel can access them */
  #define CONFIG_EXTRA_ENV_SETTINGS	\
  	"fdt_high=0x10000000\0"		\

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#9 lore raw

PATCH 5/12 arm: mvebu: turris_mox: Cosmetic update for board config header

In reply to Marek Behún

From: Marek Behún <[email protected]>

Reorder the definitions in Turris MOX' board config header, drop the comment relics from when this file was copied, fix indentation.

---
 include/configs/turris_mox.h | 61 +++++++++++++-----------------------
 1 file changed, 22 insertions(+), 39 deletions(-)
include/configs/turris_mox.h +22 -39
index 070abe38db..3cfad7cca9 100644
@@ -8,13 +8,11 @@
 #ifndef _CONFIG_TURRIS_MOX_H
 #define _CONFIG_TURRIS_MOX_H
 
-#define CONFIG_SYS_BOOTM_LEN (64 << 20)
-
-/* additions for new ARM relocation support */
-#define CONFIG_SYS_SDRAM_BASE	0x00000000
-
-/* auto boot */
-
+#define CONFIG_SYS_BOOTM_LEN		(64 << 20)
+#define CONFIG_SYS_SDRAM_BASE		0x00000000
+#define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_TEXT_BASE + 0xFF0000)
+#define CONFIG_SYS_CBSIZE		1024
+#define CONFIG_SYS_MAXARGS		32
 #define CONFIG_SYS_BAUDRATE_TABLE	{ 300, 600, 1200, 1800, 2400, 4800, \
 					  9600, 19200, 38400, 57600, 115200, \
 					  230400, 460800, 500000, 576000, \
@@ -23,25 +21,10 @@
 					  4000000, 4500000, 5000000, 5500000, \
 					  6000000 }
 
-#define	CONFIG_SYS_CBSIZE	1024	/* Console I/O Buff Size */
-
-/*
- * Other required minimal configurations
- */
-#define CONFIG_SYS_MAXARGS	32	/* max number of command args */
-
-/* End of 16M scrubbed by training in bootrom */
-#define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_TEXT_BASE + 0xFF0000)
-
-/* Environment in SPI NOR flash */
-
-/*
- * Ethernet Driver configuration
- */
-#define CONFIG_ARP_TIMEOUT	200
-#define CONFIG_NET_RETRY_COUNT	50
+#define CONFIG_ARP_TIMEOUT		200
+#define CONFIG_NET_RETRY_COUNT		50
 
-#define CONFIG_USB_MAX_CONTROLLER_COUNT (3 + 3)
+#define CONFIG_USB_MAX_CONTROLLER_COUNT	6
 
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
@@ -51,22 +34,22 @@
 
 #include <config_distro_bootcmd.h>
 
-#define TURRIS_MOX_BOOTCMD_RESCUE \
-	"setenv bootargs \"console=ttyMV0,115200 " \
-			  "earlycon=ar3700_uart,0xd0012000\" && " \
-	"sf probe && " \
-	"sf read 0x5000000 0x190000 && " \
-	"lzmadec 0x5000000 0x5800000 && " \
+#define TURRIS_MOX_BOOTCMD_RESCUE					\
+	"setenv bootargs \"console=ttyMV0,115200 "			\
+			  "earlycon=ar3700_uart,0xd0012000\" && "	\
+	"sf probe && "							\
+	"sf read 0x5000000 0x190000 && "				\
+	"lzmadec 0x5000000 0x5800000 && "				\
 	"bootm 0x5800000"
 
-#define CONFIG_EXTRA_ENV_SETTINGS	\
-	"scriptaddr=0x4d00000\0"	\
-	"pxefile_addr_r=0x4e00000\0"	\
-	"fdt_addr_r=0x4f00000\0"	\
-	"kernel_addr_r=0x5000000\0"	\
-	"ramdisk_addr_r=0x8000000\0"	\
-	"fdtfile=marvell/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
-	"bootcmd_rescue=" TURRIS_MOX_BOOTCMD_RESCUE "\0" \
+#define CONFIG_EXTRA_ENV_SETTINGS				\
+	"scriptaddr=0x4d00000\0"				\
+	"pxefile_addr_r=0x4e00000\0"				\
+	"fdt_addr_r=0x4f00000\0"				\
+	"kernel_addr_r=0x5000000\0"				\
+	"ramdisk_addr_r=0x8000000\0"				\
+	"fdtfile=marvell/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0"	\
+	"bootcmd_rescue=" TURRIS_MOX_BOOTCMD_RESCUE "\0"	\
 	BOOTENV
 
 #endif /* _CONFIG_TURRIS_MOX_H */
Signature · 1 line
2.32.0
Reviewed-by on v1 5/12
#10 lore raw

Re: [PATCH u-boot-marvell 05/12] arm: mvebu: turris_mox: Cosmetic update for board config header

Quoted 6 lines · Marek Behún

From: Marek Behún <[email protected]>

Reorder the definitions in Turris MOX' board config header, drop the comment relics from when this file was copied, fix indentation.

Thanks,
Stefan

Quoted 84 lines
---
  include/configs/turris_mox.h | 61 +++++++++++++-----------------------
  1 file changed, 22 insertions(+), 39 deletions(-)
include/configs/turris_mox.h +15 -39
index 070abe38db..3cfad7cca9 100644
@@ -8,13 +8,11 @@
  #ifndef _CONFIG_TURRIS_MOX_H
  #define _CONFIG_TURRIS_MOX_H
 
-#define CONFIG_SYS_BOOTM_LEN (64 << 20)
-
-/* additions for new ARM relocation support */
-#define CONFIG_SYS_SDRAM_BASE	0x00000000
-
-/* auto boot */
-
+#define CONFIG_SYS_BOOTM_LEN		(64 << 20)
+#define CONFIG_SYS_SDRAM_BASE		0x00000000
+#define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_TEXT_BASE + 0xFF0000)
+#define CONFIG_SYS_CBSIZE		1024
+#define CONFIG_SYS_MAXARGS		32
  #define CONFIG_SYS_BAUDRATE_TABLE	{ 300, 600, 1200, 1800, 2400, 4800, \
  					  9600, 19200, 38400, 57600, 115200, \
  					  230400, 460800, 500000, 576000, \
@@ -23,25 +21,10 @@
  					  4000000, 4500000, 5000000, 5500000, \
  					  6000000 }
 
-#define	CONFIG_SYS_CBSIZE	1024	/* Console I/O Buff Size */
-
-/*
- * Other required minimal configurations
- */
-#define CONFIG_SYS_MAXARGS	32	/* max number of command args */
-
-/* End of 16M scrubbed by training in bootrom */
-#define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_TEXT_BASE + 0xFF0000)
-
-/* Environment in SPI NOR flash */
-
-/*
- * Ethernet Driver configuration
- */
-#define CONFIG_ARP_TIMEOUT	200
-#define CONFIG_NET_RETRY_COUNT	50
+#define CONFIG_ARP_TIMEOUT		200
+#define CONFIG_NET_RETRY_COUNT		50
 
-#define CONFIG_USB_MAX_CONTROLLER_COUNT (3 + 3)
+#define CONFIG_USB_MAX_CONTROLLER_COUNT	6
 
  #define BOOT_TARGET_DEVICES(func) \
  	func(MMC, mmc, 0) \
@@ -51,22 +34,22 @@
 
  #include <config_distro_bootcmd.h>
 
-#define TURRIS_MOX_BOOTCMD_RESCUE \
-	"setenv bootargs \"console=ttyMV0,115200 " \
-			  "earlycon=ar3700_uart,0xd0012000\" && " \
-	"sf probe && " \
-	"sf read 0x5000000 0x190000 && " \
-	"lzmadec 0x5000000 0x5800000 && " \
+#define TURRIS_MOX_BOOTCMD_RESCUE					\
+	"setenv bootargs \"console=ttyMV0,115200 "			\
+			  "earlycon=ar3700_uart,0xd0012000\" && "	\
+	"sf probe && "							\
+	"sf read 0x5000000 0x190000 && "				\
+	"lzmadec 0x5000000 0x5800000 && "				\
  	"bootm 0x5800000"
 
-#define CONFIG_EXTRA_ENV_SETTINGS	\
-	"scriptaddr=0x4d00000\0"	\
-	"pxefile_addr_r=0x4e00000\0"	\
-	"fdt_addr_r=0x4f00000\0"	\
-	"kernel_addr_r=0x5000000\0"	\
-	"ramdisk_addr_r=0x8000000\0"	\
-	"fdtfile=marvell/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
-	"bootcmd_rescue=" TURRIS_MOX_BOOTCMD_RESCUE "\0" \
+#define CONFIG_EXTRA_ENV_SETTINGS				\

include/configs/turris_mox.h line 55

Quoted 10 lines
include/configs/turris_mox.h +7 -0
+	"scriptaddr=0x4d00000\0"				\
+	"pxefile_addr_r=0x4e00000\0"				\
+	"fdt_addr_r=0x4f00000\0"				\
+	"kernel_addr_r=0x5000000\0"				\
+	"ramdisk_addr_r=0x8000000\0"				\
+	"fdtfile=marvell/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0"	\
+	"bootcmd_rescue=" TURRIS_MOX_BOOTCMD_RESCUE "\0"	\
  	BOOTENV
 
  #endif /* _CONFIG_TURRIS_MOX_H */

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#11 lore raw

PATCH 6/12 arm: mvebu: turris_mox: Use show_board_info()

In reply to Marek Behún

From: Marek Behún <[email protected]>

We are printing board information in last_stage_init(), but U-Boot has dedicated function, show_board_info(), for this.

Move code which prints board information (board version, serial number, module topology, ...) to show_board_info().

---
 board/CZ.NIC/turris_mox/turris_mox.c | 67 ++++++++++++++--------------
 1 file changed, 33 insertions(+), 34 deletions(-)
board/CZ.NIC/turris_mox/turris_mox.c +33 -34
index 428cd23a19..ff0ed28045 100644
@@ -485,44 +485,34 @@ static void handle_reset_button(void)
 	}
 }
 
-static void mox_print_info(void)
+int show_board_info(void)
 {
-	int ret, board_version, ram_size;
-	u64 serial_number;
+	int i, ret, board_version, ram_size, is_sd;
 	const char *pub_key;
+	const u8 *topology;
+	u64 serial_number;
+
+	printf("Model: CZ.NIC Turris Mox Board\n");
 
 	ret = mbox_sp_get_board_info(&serial_number, NULL, NULL, &board_version,
 				     &ram_size);
-	if (ret < 0)
-		return;
-
-	printf("Turris Mox:\n");
-	printf("  Board version: %i\n", board_version);
-	printf("  RAM size: %i MiB\n", ram_size);
-	printf("  Serial Number: %016llX\n", serial_number);
+	if (ret < 0) {
+		printf("  Cannot read board info: %i\n", ret);
+	} else {
+		printf("  Board version: %i\n", board_version);
+		printf("  RAM size: %i MiB\n", ram_size);
+		printf("  Serial Number: %016llX\n", serial_number);
+	}
 
 	pub_key = mox_sp_get_ecdsa_public_key();
 	if (pub_key)
 		printf("  ECDSA Public Key: %s\n", pub_key);
 	else
-		printf("Cannot read ECDSA Public Key\n");
-}
-
-int last_stage_init(void)
-{
-	int ret, i;
-	const u8 *topology;
-	int is_sd;
-	struct mii_dev *bus;
-	struct gpio_desc reset_gpio = {};
-
-	mox_print_info();
+		printf("  Cannot read ECDSA Public Key\n");
 
 	ret = mox_get_topology(&topology, &module_count, &is_sd);
-	if (ret) {
+	if (ret)
 		printf("Cannot read module topology!\n");
-		return 0;
-	}
 
 	printf("  SD/eMMC version: %s\n", is_sd ? "SD" : "eMMC");
 
@@ -554,8 +544,7 @@ int last_stage_init(void)
 		}
 	}
 
-	/* now check if modules are connected in supported mode */
-
+	/* check if modules are connected in supported mode */
 	for (i = 0; i < module_count; ++i) {
 		switch (topology[i]) {
 		case MOX_MODULE_SFP:
@@ -616,8 +605,17 @@ int last_stage_init(void)
 		}
 	}
 
-	/* now configure modules */
+	if (module_count)
+		printf("\n");
+
+	return 0;
+}
+
+int last_stage_init(void)
+{
+	struct gpio_desc reset_gpio = {};
 
+	/* configure modules */
 	if (get_reset_gpio(&reset_gpio) < 0)
 		return 0;
 
@@ -633,16 +631,19 @@ int last_stage_init(void)
 		mdelay(50);
 	}
 
+	/*
+	 * check if the addresses are set by reading Scratch & Misc register
+	 * 0x70 of Peridot (and potentially Topaz) modules
+	 */
 	if (peridot || topaz) {
-		/*
-		 * now check if the addresses are set by reading Scratch & Misc
-		 * register 0x70 of Peridot (and potentially Topaz) modules
-		 */
+		struct mii_dev *bus;
 
 		bus = miiphy_get_dev_by_name("neta@30000");
 		if (!bus) {
 			printf("Cannot get MDIO bus device!\n");
 		} else {
+			int i;
+
 			for (i = 0; i < peridot; ++i)
 				check_switch_address(bus, 0x10 + i);
 
@@ -653,8 +654,6 @@ int last_stage_init(void)
 		}
 	}
 
-	printf("\n");
-
 	handle_reset_button();
 
 	return 0;
Signature · 1 line
2.32.0
Reviewed-by on v1 6/12
#12 lore raw

Re: [PATCH u-boot-marvell 06/12] arm: mvebu: turris_mox: Use show_board_info()

Quoted 9 lines · Marek Behún

From: Marek Behún <[email protected]>

We are printing board information in last_stage_init(), but U-Boot has dedicated function, show_board_info(), for this.

Move code which prints board information (board version, serial number, module topology, ...) to show_board_info().

Thanks,
Stefan

Quoted 123 lines
---
  board/CZ.NIC/turris_mox/turris_mox.c | 67 ++++++++++++++--------------
  1 file changed, 33 insertions(+), 34 deletions(-)
board/CZ.NIC/turris_mox/turris_mox.c +33 -32
index 428cd23a19..ff0ed28045 100644
@@ -485,44 +485,34 @@ static void handle_reset_button(void)
  	}
  }
 
-static void mox_print_info(void)
+int show_board_info(void)
  {
-	int ret, board_version, ram_size;
-	u64 serial_number;
+	int i, ret, board_version, ram_size, is_sd;
  	const char *pub_key;
+	const u8 *topology;
+	u64 serial_number;
+
+	printf("Model: CZ.NIC Turris Mox Board\n");
 
  	ret = mbox_sp_get_board_info(&serial_number, NULL, NULL, &board_version,
  				     &ram_size);
-	if (ret < 0)
-		return;
-
-	printf("Turris Mox:\n");
-	printf("  Board version: %i\n", board_version);
-	printf("  RAM size: %i MiB\n", ram_size);
-	printf("  Serial Number: %016llX\n", serial_number);
+	if (ret < 0) {
+		printf("  Cannot read board info: %i\n", ret);
+	} else {
+		printf("  Board version: %i\n", board_version);
+		printf("  RAM size: %i MiB\n", ram_size);
+		printf("  Serial Number: %016llX\n", serial_number);
+	}
 
  	pub_key = mox_sp_get_ecdsa_public_key();
  	if (pub_key)
  		printf("  ECDSA Public Key: %s\n", pub_key);
  	else
-		printf("Cannot read ECDSA Public Key\n");
-}
-
-int last_stage_init(void)
-{
-	int ret, i;
-	const u8 *topology;
-	int is_sd;
-	struct mii_dev *bus;
-	struct gpio_desc reset_gpio = {};
-
-	mox_print_info();
+		printf("  Cannot read ECDSA Public Key\n");
 
  	ret = mox_get_topology(&topology, &module_count, &is_sd);
-	if (ret) {
+	if (ret)
  		printf("Cannot read module topology!\n");
-		return 0;
-	}
 
  	printf("  SD/eMMC version: %s\n", is_sd ? "SD" : "eMMC");
 
@@ -554,8 +544,7 @@ int last_stage_init(void)
  		}
  	}
 
-	/* now check if modules are connected in supported mode */
-
+	/* check if modules are connected in supported mode */
  	for (i = 0; i < module_count; ++i) {
  		switch (topology[i]) {
  		case MOX_MODULE_SFP:
@@ -616,8 +605,17 @@ int last_stage_init(void)
  		}
  	}
 
-	/* now configure modules */
+	if (module_count)
+		printf("\n");
+
+	return 0;
+}
+
+int last_stage_init(void)
+{
+	struct gpio_desc reset_gpio = {};
 
+	/* configure modules */
  	if (get_reset_gpio(&reset_gpio) < 0)
  		return 0;
 
@@ -633,16 +631,19 @@ int last_stage_init(void)
  		mdelay(50);
  	}
 
+	/*
+	 * check if the addresses are set by reading Scratch & Misc register
+	 * 0x70 of Peridot (and potentially Topaz) modules
+	 */
  	if (peridot || topaz) {
-		/*
-		 * now check if the addresses are set by reading Scratch & Misc
-		 * register 0x70 of Peridot (and potentially Topaz) modules
-		 */
+		struct mii_dev *bus;
 
  		bus = miiphy_get_dev_by_name("neta@30000");
  		if (!bus) {
  			printf("Cannot get MDIO bus device!\n");
  		} else {
+			int i;
+
  			for (i = 0; i < peridot; ++i)
  				check_switch_address(bus, 0x10 + i);
 

board/CZ.NIC/turris_mox/turris_mox.c int last_stage_init(void) · line 659

Quoted 8 lines
board/CZ.NIC/turris_mox/turris_mox.c +0 -2
@@ -653,8 +654,6 @@ int last_stage_init(void)
  		}
  	}
 
-	printf("\n");
-
  	handle_reset_button();
 
  	return 0;

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#13 lore raw

PATCH 7/12 arm: mvebu: turris_mox: Always handle reset button

In reply to Marek Behún

From: Marek Behún <[email protected]>

Handle reset button even if we can't configure modules.

This happens if we fail retrieving reset GPIO with which we can reset the modules.

(Note that this GPIO is different from reset button GPIO.)

---
 board/CZ.NIC/turris_mox/turris_mox.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/CZ.NIC/turris_mox/turris_mox.c +2 -1
index ff0ed28045..7c5acfd1d9 100644
@@ -617,7 +617,7 @@ int last_stage_init(void)
 
 	/* configure modules */
 	if (get_reset_gpio(&reset_gpio) < 0)
-		return 0;
+		goto handle_reset_btn;
 
 	if (peridot > 0) {
 		if (configure_peridots(&reset_gpio) < 0) {
@@ -654,6 +654,7 @@ int last_stage_init(void)
 		}
 	}
 
+handle_reset_btn:
 	handle_reset_button();
 
 	return 0;
Signature · 1 line
2.32.0
Reviewed-by on v1 7/12
#14 lore raw

Re: [PATCH u-boot-marvell 07/12] arm: mvebu: turris_mox: Always handle reset button

Quoted 10 lines · Marek Behún

From: Marek Behún <[email protected]>

Handle reset button even if we can't configure modules.

This happens if we fail retrieving reset GPIO with which we can reset the modules.

(Note that this GPIO is different from reset button GPIO.)

Thanks,
Stefan

Quoted 19 lines
---
  board/CZ.NIC/turris_mox/turris_mox.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
board/CZ.NIC/turris_mox/turris_mox.c +1 -1
index ff0ed28045..7c5acfd1d9 100644
@@ -617,7 +617,7 @@ int last_stage_init(void)
 
  	/* configure modules */
  	if (get_reset_gpio(&reset_gpio) < 0)
-		return 0;
+		goto handle_reset_btn;
 
  	if (peridot > 0) {
  		if (configure_peridots(&reset_gpio) < 0) {

board/CZ.NIC/turris_mox/turris_mox.c int last_stage_init(void) · line 660

Quoted 7 lines
board/CZ.NIC/turris_mox/turris_mox.c +1 -0
@@ -654,6 +654,7 @@ int last_stage_init(void)
  		}
  	}
 
+handle_reset_btn:
  	handle_reset_button();
 
  	return 0;

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#15 lore raw

PATCH 8/12 arm: mvebu: turris_mox: Better check for valid ethernet addresses in env

In reply to Marek Behún

From: Marek Behún <[email protected]>

Currently we overwrite ethaddr and eth1addr only if these variables don't exist.

Better overwrite them even if the env variable exists, but is invalid - eth_env_get_enetaddr_by_index() checks for validity.

Refactor the code to use a for cycle.

---
 board/CZ.NIC/turris_mox/turris_mox.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
board/CZ.NIC/turris_mox/turris_mox.c +9 -7
index 7c5acfd1d9..2202eb8cfb 100644
@@ -359,20 +359,22 @@ static int get_reset_gpio(struct gpio_desc *reset_gpio)
 
 int misc_init_r(void)
 {
-	int ret;
-	u8 mac1[6], mac2[6];
+	u8 mac[2][6];
+	int i, ret;
 
-	ret = mbox_sp_get_board_info(NULL, mac1, mac2, NULL, NULL);
+	ret = mbox_sp_get_board_info(NULL, mac[0], mac[1], NULL, NULL);
 	if (ret < 0) {
 		printf("Cannot read data from OTP!\n");
 		return 0;
 	}
 
-	if (is_valid_ethaddr(mac1) && !env_get("ethaddr"))
-		eth_env_set_enetaddr("ethaddr", mac1);
+	for (i = 0; i < 2; ++i) {
+		u8 oldmac[6];
 
-	if (is_valid_ethaddr(mac2) && !env_get("eth1addr"))
-		eth_env_set_enetaddr("eth1addr", mac2);
+		if (is_valid_ethaddr(mac[i]) &&
+		    !eth_env_get_enetaddr_by_index("eth", i, oldmac))
+			eth_env_set_enetaddr_by_index("eth", i, mac[i]);
+	}
 
 	return 0;
 }
Signature · 1 line
2.32.0
Reviewed-by on v1 8/12
#16 lore raw

Re: [PATCH u-boot-marvell 08/12] arm: mvebu: turris_mox: Better check for valid ethernet addresses in env

Quoted 11 lines · Marek Behún

From: Marek Behún <[email protected]>

Currently we overwrite ethaddr and eth1addr only if these variables don't exist.

Better overwrite them even if the env variable exists, but is invalid - eth_env_get_enetaddr_by_index() checks for validity.

Refactor the code to use a for cycle.

Thanks,
Stefan

Quoted 29 lines
---
  board/CZ.NIC/turris_mox/turris_mox.c | 16 +++++++++-------
  1 file changed, 9 insertions(+), 7 deletions(-)
board/CZ.NIC/turris_mox/turris_mox.c +5 -5
index 7c5acfd1d9..2202eb8cfb 100644
@@ -359,20 +359,22 @@ static int get_reset_gpio(struct gpio_desc *reset_gpio)
 
  int misc_init_r(void)
  {
-	int ret;
-	u8 mac1[6], mac2[6];
+	u8 mac[2][6];
+	int i, ret;
 
-	ret = mbox_sp_get_board_info(NULL, mac1, mac2, NULL, NULL);
+	ret = mbox_sp_get_board_info(NULL, mac[0], mac[1], NULL, NULL);
  	if (ret < 0) {
  		printf("Cannot read data from OTP!\n");
  		return 0;
  	}
 
-	if (is_valid_ethaddr(mac1) && !env_get("ethaddr"))
-		eth_env_set_enetaddr("ethaddr", mac1);
+	for (i = 0; i < 2; ++i) {
+		u8 oldmac[6];

board/CZ.NIC/turris_mox/turris_mox.c static int get_reset_gpio(struct gpio_desc *reset_gpio) · line 380

Quoted 10 lines
board/CZ.NIC/turris_mox/turris_mox.c +4 -2
 
-	if (is_valid_ethaddr(mac2) && !env_get("eth1addr"))
-		eth_env_set_enetaddr("eth1addr", mac2);
+		if (is_valid_ethaddr(mac[i]) &&
+		    !eth_env_get_enetaddr_by_index("eth", i, oldmac))
+			eth_env_set_enetaddr_by_index("eth", i, mac[i]);
+	}
 
  	return 0;
  }

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#17 lore raw

PATCH 9/12 arm: mvebu: turris_omnia: Overwrite ethaddr only if invalid

In reply to Marek Behún

From: Marek Behún <[email protected]>

Currently we always overwrite ethaddrs with those from EEPROM.

In order to allow user to use a cloned MAC address in U-Boot, change the code so that it sets ethaddr variables only if they aren't set or are invalid.

---
 board/CZ.NIC/turris_omnia/turris_omnia.c | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)
board/CZ.NIC/turris_omnia/turris_omnia.c +12 -10
index a48e1f5c30..7a86111890 100644
@@ -518,6 +518,15 @@ static void increment_mac(u8 *mac)
 	}
 }
 
+static void set_mac_if_invalid(int i, u8 *mac)
+{
+	u8 oldmac[6];
+
+	if (is_valid_ethaddr(mac) &&
+	    !eth_env_get_enetaddr_by_index("eth", i, oldmac))
+		eth_env_set_enetaddr_by_index("eth", i, mac);
+}
+
 int misc_init_r(void)
 {
 	int err;
@@ -550,18 +559,11 @@ int misc_init_r(void)
 	mac[4] = mac1[2];
 	mac[5] = mac1[3];
 
-	if (is_valid_ethaddr(mac))
-		eth_env_set_enetaddr("eth1addr", mac);
-
+	set_mac_if_invalid(1, mac);
 	increment_mac(mac);
-
-	if (is_valid_ethaddr(mac))
-		eth_env_set_enetaddr("eth2addr", mac);
-
+	set_mac_if_invalid(2, mac);
 	increment_mac(mac);
-
-	if (is_valid_ethaddr(mac))
-		eth_env_set_enetaddr("ethaddr", mac);
+	set_mac_if_invalid(0, mac);
 
 out:
 	return 0;
Signature · 1 line
2.32.0
Reviewed-by on v1 9/12
#18 lore raw

Re: [PATCH u-boot-marvell 09/12] arm: mvebu: turris_omnia: Overwrite ethaddr only if invalid

Quoted 9 lines · Marek Behún

From: Marek Behún <[email protected]>

Currently we always overwrite ethaddrs with those from EEPROM.

In order to allow user to use a cloned MAC address in U-Boot, change the code so that it sets ethaddr variables only if they aren't set or are invalid.

Thanks,
Stefan

Quoted 37 lines
---
  board/CZ.NIC/turris_omnia/turris_omnia.c | 22 ++++++++++++----------
  1 file changed, 12 insertions(+), 10 deletions(-)
board/CZ.NIC/turris_omnia/turris_omnia.c +10 -6
index a48e1f5c30..7a86111890 100644
@@ -518,6 +518,15 @@ static void increment_mac(u8 *mac)
  	}
  }
 
+static void set_mac_if_invalid(int i, u8 *mac)
+{
+	u8 oldmac[6];
+
+	if (is_valid_ethaddr(mac) &&
+	    !eth_env_get_enetaddr_by_index("eth", i, oldmac))
+		eth_env_set_enetaddr_by_index("eth", i, mac);
+}
+
  int misc_init_r(void)
  {
  	int err;
@@ -550,18 +559,11 @@ int misc_init_r(void)
  	mac[4] = mac1[2];
  	mac[5] = mac1[3];
 
-	if (is_valid_ethaddr(mac))
-		eth_env_set_enetaddr("eth1addr", mac);
-
+	set_mac_if_invalid(1, mac);
  	increment_mac(mac);
-
-	if (is_valid_ethaddr(mac))
-		eth_env_set_enetaddr("eth2addr", mac);

board/CZ.NIC/turris_omnia/turris_omnia.c int misc_init_r(void) · line 569

Quoted 10 lines
board/CZ.NIC/turris_omnia/turris_omnia.c +2 -4
-
+	set_mac_if_invalid(2, mac);
  	increment_mac(mac);
-
-	if (is_valid_ethaddr(mac))
-		eth_env_set_enetaddr("ethaddr", mac);
+	set_mac_if_invalid(0, mac);
 
  out:
  	return 0;

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#19 lore raw

PATCH 10/12 arm: mvebu: turris_omnia: Use show_board_info()

In reply to Marek Behún

From: Marek Behún <[email protected]>

We are printing board information in checkboard() function, which is called from the default weak implementation of show_board_info().

Rename checkboard() to show_board_info(). This throws away the weak implementation of show_board_info().

---
 board/CZ.NIC/turris_omnia/turris_omnia.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/CZ.NIC/turris_omnia/turris_omnia.c +2 -2
index 7a86111890..39051a803a 100644
@@ -468,7 +468,7 @@ static struct udevice *get_atsha204a_dev(void)
 	return dev;
 }
 
-int checkboard(void)
+int show_board_info(void)
 {
 	u32 version_num, serial_num;
 	int err = 1;
@@ -496,7 +496,7 @@ int checkboard(void)
 	}
 
 out:
-	printf("Turris Omnia:\n");
+	printf("Model: Turris Omnia\n");
 	printf("  RAM size: %i MiB\n", omnia_get_ram_size_gb() * 1024);
 	if (err)
 		printf("  Serial Number: unknown\n");
Signature · 1 line
2.32.0
Reviewed-by on v1 10/12
#20 lore raw

Re: [PATCH u-boot-marvell 10/12] arm: mvebu: turris_omnia: Use show_board_info()

Quoted 9 lines · Marek Behún

From: Marek Behún <[email protected]>

We are printing board information in checkboard() function, which is called from the default weak implementation of show_board_info().

Rename checkboard() to show_board_info(). This throws away the weak implementation of show_board_info().

Thanks,
Stefan

Quoted 19 lines
---
  board/CZ.NIC/turris_omnia/turris_omnia.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
board/CZ.NIC/turris_omnia/turris_omnia.c +1 -1
index 7a86111890..39051a803a 100644
@@ -468,7 +468,7 @@ static struct udevice *get_atsha204a_dev(void)
  	return dev;
  }
 
-int checkboard(void)
+int show_board_info(void)
  {
  	u32 version_num, serial_num;
  	int err = 1;

board/CZ.NIC/turris_omnia/turris_omnia.c int checkboard(void) · line 502

Quoted 8 lines
board/CZ.NIC/turris_omnia/turris_omnia.c +1 -1
@@ -496,7 +496,7 @@ int checkboard(void)
  	}
 
  out:
-	printf("Turris Omnia:\n");
+	printf("Model: Turris Omnia\n");
  	printf("  RAM size: %i MiB\n", omnia_get_ram_size_gb() * 1024);
  	if (err)
  		printf("  Serial Number: unknown\n");

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#21 lore raw

PATCH 11/12 arm: mvebu: turris_omnia: Move SPL's SYS_MALLOC_SIMPLE to Kconfig

In reply to Marek Behún

From: Marek Behún <[email protected]>

Instead of declaring CONFIG_SYS_MALLOC_SIMPLE dependant on CONFIG_SPL_BUILD in board config header, select CONFIG_SPL_SYS_MALLOC_SIMPLE in Kconfig.

---
 arch/arm/mach-mvebu/Kconfig    | 1 +
 include/configs/turris_omnia.h | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)
arch/arm/mach-mvebu/Kconfig +1 -0
index 54dff9986b..8365305733 100644
@@ -128,6 +128,7 @@ config TARGET_TURRIS_OMNIA
 	select I2C_MUX
 	select I2C_MUX_PCA954x
 	select SPL_I2C_MUX
+	select SPL_SYS_MALLOC_SIMPLE
 	select SYS_I2C_MVTWSI
 	select ATSHA204A
 
include/configs/turris_omnia.h +0 -4
index 8646633ea4..562b49327f 100644
@@ -36,10 +36,6 @@
 #define CONFIG_SPL_BSS_START_ADDR	(0x40000000 + CONFIG_SPL_SIZE)
 #define CONFIG_SPL_BSS_MAX_SIZE		(16 << 10)
 
-#ifdef CONFIG_SPL_BUILD
-#define CONFIG_SYS_MALLOC_SIMPLE
-#endif
-
 #define CONFIG_SPL_STACK		(0x40000000 + ((192 - 16) << 10))
 #define CONFIG_SPL_BOOTROM_SAVE		(CONFIG_SPL_STACK + 4)
 #define CONFIG_SPL_DRIVERS_MISC
Signature · 1 line
2.32.0
Reviewed-by on v1 11/12
#22 lore raw

Re: [PATCH u-boot-marvell 11/12] arm: mvebu: turris_omnia: Move SPL's SYS_MALLOC_SIMPLE to Kconfig

Quoted 7 lines · Marek Behún

From: Marek Behún <[email protected]>

Instead of declaring CONFIG_SYS_MALLOC_SIMPLE dependant on CONFIG_SPL_BUILD in board config header, select CONFIG_SPL_SYS_MALLOC_SIMPLE in Kconfig.

Thanks,
Stefan

Quoted 23 lines
---
  arch/arm/mach-mvebu/Kconfig    | 1 +
  include/configs/turris_omnia.h | 4 ----
  2 files changed, 1 insertion(+), 4 deletions(-)
arch/arm/mach-mvebu/Kconfig +1 -0
index 54dff9986b..8365305733 100644
@@ -128,6 +128,7 @@ config TARGET_TURRIS_OMNIA
  	select I2C_MUX
  	select I2C_MUX_PCA954x
  	select SPL_I2C_MUX
+	select SPL_SYS_MALLOC_SIMPLE
  	select SYS_I2C_MVTWSI
  	select ATSHA204A
 
include/configs/turris_omnia.h +0 -0
index 8646633ea4..562b49327f 100644

include/configs/turris_omnia.h line 41

Quoted 10 lines
include/configs/turris_omnia.h +0 -4
@@ -36,10 +36,6 @@
  #define CONFIG_SPL_BSS_START_ADDR	(0x40000000 + CONFIG_SPL_SIZE)
  #define CONFIG_SPL_BSS_MAX_SIZE		(16 << 10)
 
-#ifdef CONFIG_SPL_BUILD
-#define CONFIG_SYS_MALLOC_SIMPLE
-#endif
-
  #define CONFIG_SPL_STACK		(0x40000000 + ((192 - 16) << 10))
  #define CONFIG_SPL_BOOTROM_SAVE		(CONFIG_SPL_STACK + 4)
  #define CONFIG_SPL_DRIVERS_MISC

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#23 lore raw

PATCH 12/12 arm: mvebu: turris_omnia: Move CONFIG_SPL_DRIVERS_MISC to Kconfig

In reply to Marek Behún

From: Marek Behún <[email protected]>

Instead of declaring CONFIG_SPL_DRIVERS_MISC in board config header, select it in Kconfig.

---
 arch/arm/mach-mvebu/Kconfig    | 1 +
 include/configs/turris_omnia.h | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mvebu/Kconfig +1 -0
index 8365305733..c66dab6012 100644
@@ -127,6 +127,7 @@ config TARGET_TURRIS_OMNIA
 	select DM_I2C
 	select I2C_MUX
 	select I2C_MUX_PCA954x
+	select SPL_DRIVERS_MISC
 	select SPL_I2C_MUX
 	select SPL_SYS_MALLOC_SIMPLE
 	select SYS_I2C_MVTWSI
include/configs/turris_omnia.h +0 -1
index 562b49327f..3af62ef48c 100644
@@ -38,7 +38,6 @@
 
 #define CONFIG_SPL_STACK		(0x40000000 + ((192 - 16) << 10))
 #define CONFIG_SPL_BOOTROM_SAVE		(CONFIG_SPL_STACK + 4)
-#define CONFIG_SPL_DRIVERS_MISC
 
 #ifdef CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC
 /* SPL related MMC defines */
Signature · 1 line
2.32.0
Reviewed-by on v1 12/12
#24 lore raw

Re: [PATCH u-boot-marvell 12/12] arm: mvebu: turris_omnia: Move CONFIG_SPL_DRIVERS_MISC to Kconfig

Quoted 6 lines · Marek Behún

From: Marek Behún <[email protected]>

Instead of declaring CONFIG_SPL_DRIVERS_MISC in board config header, select it in Kconfig.

Thanks,
Stefan

Quoted 23 lines
---
  arch/arm/mach-mvebu/Kconfig    | 1 +
  include/configs/turris_omnia.h | 1 -
  2 files changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mvebu/Kconfig +1 -0
index 8365305733..c66dab6012 100644
@@ -127,6 +127,7 @@ config TARGET_TURRIS_OMNIA
  	select DM_I2C
  	select I2C_MUX
  	select I2C_MUX_PCA954x
+	select SPL_DRIVERS_MISC
  	select SPL_I2C_MUX
  	select SPL_SYS_MALLOC_SIMPLE
  	select SYS_I2C_MVTWSI
include/configs/turris_omnia.h +0 -0
index 562b49327f..3af62ef48c 100644

include/configs/turris_omnia.h line 43

Quoted 7 lines
include/configs/turris_omnia.h +0 -1
@@ -38,7 +38,6 @@
 
  #define CONFIG_SPL_STACK		(0x40000000 + ((192 - 16) << 10))
  #define CONFIG_SPL_BOOTROM_SAVE		(CONFIG_SPL_STACK + 4)
-#define CONFIG_SPL_DRIVERS_MISC
 
  #ifdef CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC
  /* SPL related MMC defines */

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#25 lore raw
In reply to Marek Behún
Quoted 38 lines · Marek Behún

From: Marek Behún <[email protected]>

Hi Stefan,

these are some small changes for Turris Omnia and MOX, mainly moving options from board config header to Kconfig, but also some other.

Two patchs are touching other mvebu boards.

Marek

Marek Behún (12):
arm: mvebu: turris_mox: Drop SF_DEFAULT_MODE from defconfig
arm: mvebu: turris_mox: Move options to defconfig
arm: mvebu: a3720: Create Kconfig option for I2C_MV
arm: kirkwood, mvebu: Remove CONFIG_SYS_RESET_ADDRESS option
arm: mvebu: turris_mox: Cosmetic update for board config header
arm: mvebu: turris_mox: Use show_board_info()
arm: mvebu: turris_mox: Always handle reset button
arm: mvebu: turris_mox: Better check for valid ethernet addresses in
env
arm: mvebu: turris_omnia: Overwrite ethaddr only if invalid
arm: mvebu: turris_omnia: Use show_board_info()
arm: mvebu: turris_omnia: Move SPL's SYS_MALLOC_SIMPLE to Kconfig
arm: mvebu: turris_omnia: Move CONFIG_SPL_DRIVERS_MISC to Kconfig

  arch/arm/mach-mvebu/Kconfig                 |  2 +
  board/CZ.NIC/turris_mox/turris_mox.c        | 86 +++++++++++----------
  board/CZ.NIC/turris_omnia/turris_omnia.c    | 26 ++++---
  configs/mvebu_db-88f3720_defconfig          |  1 +
  configs/mvebu_espressobin-88f3720_defconfig |  1 +
  configs/turris_mox_defconfig                |  4 +-
  configs/uDPU_defconfig                      |  1 +
  drivers/i2c/Kconfig                         |  6 ++
  drivers/i2c/Makefile                        |  2 +-
  include/configs/SBx81LIFKW.h                |  5 --
  include/configs/SBx81LIFXCAT.h              |  5 --
  include/configs/edminiv2.h                  |  6 --
Quoted 9 lines
  include/configs/mv-common.h                 |  1 -
  include/configs/mvebu_armada-37xx.h         |  6 --
  include/configs/mvebu_armada-8k.h           |  1 -
  include/configs/turris_mox.h                | 74 ++++++------------
  include/configs/turris_omnia.h              |  5 --
  include/configs/x530.h                      |  5 --
  scripts/config_whitelist.txt                |  1 -
  19 files changed, 95 insertions(+), 143 deletions(-)

Applied to u-boot-marvell/master

Thanks,
Stefan