public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 00/22] sunxi: Prepare platform Kconfig to support multiple architectures
@ 2022-11-01  5:08 Samuel Holland
  2022-11-01  5:08 ` [PATCH 01/22] sunxi: Fix default-enablement of USB host drivers Samuel Holland
                   ` (22 more replies)
  0 siblings, 23 replies; 29+ messages in thread
From: Samuel Holland @ 2022-11-01  5:08 UTC (permalink / raw)
  To: Andre Przywara, Jagan Teki; +Cc: u-boot, Samuel Holland

sunxi is getting a new RISC-V platform, D1. We want to share as much of
the existing configuration as possible, to provide a familiar
environment, DRAM layout, partition layout, etc.

Because U-Boot includes all architecture Kconfig files at once, we must
use a symbol outside of both CONFIG_ARM and CONFIG_RISCV to contain
shared Kconfig options. I chose BOARD_SUNXI, corresponding to the file
location and somewhat following the BOARD_SPECIFIC_OPTIONS pattern.

I did a buildman run on this series. The only net option changes are the
expected ones:
 - Host-side USB gets enabled on several boards by the first patch
   (emlid_neutis_n5_devboard orangepi_zero2 pinephone pinetab tanix_tx6
   x96_mate teres_i)
 - CONFIG_BOARD_SUNXI gets added everywhere
 - CONFIG_SYS_I2C_MVTWSI gets enabled by the corresponding patch

Andre, please feel free to take any subset of these; they don't all have
to go in at once. And I'm open to suggestions about what instances of
ARCH_SUNXI should (not) be converted. Some of them are open to opinion.

I left alone the options in arch/arm/mach-sunxi/Kconfig that are covered
by other series (MMC CD/USB PHY/power pins, AXP GPIO).

After this series, the Kconfig changes needed for D1 support are quite
small, something like this commit:
https://github.com/smaeul/u-boot/commit/c12cf6c5d72f5327eff793518229ddbd41dcf729.patch

Adding SUNXI_MINIMUM_DRAM_MB certainly made things nicer. There are a
few options that probably still need some adjustment to respect it.


Samuel Holland (22):
  sunxi: Fix default-enablement of USB host drivers
  sunxi: Remove unnecessary Kconfig selections
  sunxi: Add missing dependencies to Kconfig selections
  sunxi: Hide image type selection if SPL is disabled
  sunxi: Share the board Kconfig across architectures
  sunxi: Move most Kconfig selections to the board Kconfig
  sunxi: Globally enable SUPPORT_SPL
  sunxi: Downgrade driver selections to implications
  sunxi: Enable the I2C driver by default
  sunxi: Move default values to the board Kconfig
  sunxi: Hide the SUNXI_MINIMUM_DRAM_MB symbol
  sunxi: Clean up the SPL_STACK_R_ADDR defaults
  sunxi: Move PRE_CON_BUF_ADDR to the board Kconfig
  sunxi: Move SPL_BSS_START_ADDR to the board Kconfig
  sunxi: Move SPL_TEXT_BASE to the board Kconfig
  sunxi: Move SYS_LOAD_ADDR to the board Kconfig
  sunxi: Move TEXT_BASE to the board Kconfig
  sunxi: Move most board options to the board Kconfig
  env: sunxi: Replace ARCH_SUNXI with BOARD_SUNXI
  drivers: sunxi: Replace ARCH_SUNXI with BOARD_SUNXI
  disk: sunxi: Replace ARCH_SUNXI with BOARD_SUNXI
  spl: sunxi: Replace ARCH_SUNXI with BOARD_SUNXI

 Kconfig                       |   3 -
 arch/Kconfig                  |   1 +
 arch/arm/Kconfig              |  48 +-------
 arch/arm/mach-sunxi/Kconfig   | 154 -----------------------
 board/sunxi/Kconfig           | 224 ++++++++++++++++++++++++++++++++++
 boot/Kconfig                  |   4 -
 common/Kconfig                |   2 -
 common/spl/Kconfig            |  18 +--
 disk/Kconfig                  |   6 +-
 drivers/clk/sunxi/Kconfig     |   2 +-
 drivers/fastboot/Kconfig      |  13 +-
 drivers/gpio/Kconfig          |   2 +-
 drivers/mmc/Kconfig           |   2 +-
 drivers/net/phy/Kconfig       |   4 +-
 drivers/phy/allwinner/Kconfig |   2 +-
 drivers/pinctrl/sunxi/Kconfig |   2 +-
 drivers/reset/Kconfig         |   2 +-
 drivers/spi/Kconfig           |   2 +-
 drivers/usb/Kconfig           |   2 +-
 drivers/usb/gadget/Kconfig    |   8 +-
 drivers/usb/host/Kconfig      |   2 -
 drivers/usb/musb-new/Kconfig  |   2 +-
 drivers/video/Kconfig         |   2 +-
 drivers/watchdog/Kconfig      |   4 +-
 env/Kconfig                   |  12 +-
 scripts/Makefile.spl          |   2 +-
 26 files changed, 267 insertions(+), 258 deletions(-)

-- 
2.37.3


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2022-11-11  1:14 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-01  5:08 [PATCH 00/22] sunxi: Prepare platform Kconfig to support multiple architectures Samuel Holland
2022-11-01  5:08 ` [PATCH 01/22] sunxi: Fix default-enablement of USB host drivers Samuel Holland
2022-11-11  1:09   ` Andre Przywara
2022-11-01  5:08 ` [PATCH 02/22] sunxi: Remove unnecessary Kconfig selections Samuel Holland
2022-11-11  1:09   ` Andre Przywara
2022-11-01  5:08 ` [PATCH 03/22] sunxi: Add missing dependencies to " Samuel Holland
2022-11-11  1:11   ` Andre Przywara
2022-11-01  5:08 ` [PATCH 04/22] sunxi: Hide image type selection if SPL is disabled Samuel Holland
2022-11-11  1:12   ` Andre Przywara
2022-11-01  5:08 ` [PATCH 05/22] sunxi: Share the board Kconfig across architectures Samuel Holland
2022-11-01  5:08 ` [PATCH 06/22] sunxi: Move most Kconfig selections to the board Kconfig Samuel Holland
2022-11-01  5:08 ` [PATCH 07/22] sunxi: Globally enable SUPPORT_SPL Samuel Holland
2022-11-01  5:08 ` [PATCH 08/22] sunxi: Downgrade driver selections to implications Samuel Holland
2022-11-01  5:08 ` [PATCH 09/22] sunxi: Enable the I2C driver by default Samuel Holland
2022-11-01  5:08 ` [PATCH 10/22] sunxi: Move default values to the board Kconfig Samuel Holland
2022-11-01  5:08 ` [PATCH 11/22] sunxi: Hide the SUNXI_MINIMUM_DRAM_MB symbol Samuel Holland
2022-11-01  5:08 ` [PATCH 12/22] sunxi: Clean up the SPL_STACK_R_ADDR defaults Samuel Holland
2022-11-01  5:08 ` [PATCH 13/22] sunxi: Move PRE_CON_BUF_ADDR to the board Kconfig Samuel Holland
2022-11-01  5:08 ` [PATCH 14/22] sunxi: Move SPL_BSS_START_ADDR " Samuel Holland
2022-11-01  5:08 ` [PATCH 15/22] sunxi: Move SPL_TEXT_BASE " Samuel Holland
2022-11-01  5:08 ` [PATCH 16/22] sunxi: Move SYS_LOAD_ADDR " Samuel Holland
2022-11-01  5:08 ` [PATCH 17/22] sunxi: Move TEXT_BASE " Samuel Holland
2022-11-01  5:08 ` [PATCH 18/22] sunxi: Move most board options " Samuel Holland
2022-11-01  5:08 ` [PATCH 19/22] env: sunxi: Replace ARCH_SUNXI with BOARD_SUNXI Samuel Holland
2022-11-01  5:08 ` [PATCH 20/22] drivers: " Samuel Holland
2022-11-01  5:08 ` [PATCH 21/22] disk: " Samuel Holland
2022-11-01  5:08 ` [PATCH 22/22] spl: " Samuel Holland
2022-11-03 16:46 ` [PATCH 00/22] sunxi: Prepare platform Kconfig to support multiple architectures Andre Przywara
2022-11-06 22:32   ` Samuel Holland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox