Samuel Holland c222a0e369 spl: sunxi: Replace ARCH_SUNXI with BOARD_SUNXI
This provides a unified configuration across all sunxi boards,
regardless of CPU architecture.

Series-to: Andre Przywara <andre.przywara@arm.com>
Series-to: Jagan Teki <jagan@amarulasolutions.com>
Series-cc: u-boot@lists.denx.de

Cover-letter:
sunxi: Prepare platform Kconfig to support multiple architectures
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:
c12cf6c5d7.patch

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

Signed-off-by: Samuel Holland <samuel@sholland.org>
2023-10-30 23:44:38 -05:00
..
2023-10-06 14:38:13 -04:00
2023-10-23 17:07:06 +03:00
2023-10-06 14:38:12 -04:00
2023-03-30 15:09:59 -04:00
2022-11-02 08:42:03 +01:00
2013-04-01 16:33:52 -04:00
2022-01-19 18:11:34 +01:00
2023-10-23 17:07:06 +03:00
2022-08-04 16:18:47 -04:00
2023-07-17 17:12:07 +08:00
2023-03-14 16:08:51 -06:00
2023-06-23 14:38:16 -04:00
2021-04-20 07:31:12 -04:00
2023-10-09 15:24:31 -04:00
2023-02-07 14:33:50 -05:00
2023-05-13 09:52:32 -04:00