u-boot/boot
Andre Przywara 1bf98bd4e2 sunxi: Kconfig: introduce SUNXI_MINIMUM_DRAM_MB
Traditionally we assumed that every Allwinner board would come with at
least 256 MB of DRAM, and set our DRAM layout accordingly. This affected
both the default load addresses, but also U-Boot's own address
expectations (like being loaded at 160 MB).

Some SoCs come with co-packaged DRAM, but only provide 32 or 64MB. So
far we special-cased those *chips*, as there was only one chip per DRAM
size. However new chips force us to take a more general approach.

Introduce a Kconfig symbol, which provides the minimum DRAM size of the
board. If nothing else is specified, we use 256 MB, and default to
smaller values for those co-packaged SoCs.
Then select the different DRAM maps according to this new symbol, so
that different SoCs with the same DRAM size can share those definitions.

Inspired by an idea from Icenowy.

This is just refactoring: compiled for all boards before and after this
patch: the binaries were identical.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
2022-10-19 14:15:02 +01:00
..
android_ab.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
boot_fit.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
bootdev-uclass.c bootstd: Allow the bootdev to be optional in bootflows 2022-08-12 08:17:11 -04:00
bootflow.c bootstd: Allow scanning for global bootmeths separately 2022-08-12 08:17:11 -04:00
bootm.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
bootm_os.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
bootmeth-uclass.c bootstd: Allow scanning for global bootmeths separately 2022-08-12 08:17:11 -04:00
bootmeth_distro.c Rename disto_[pxe_]getfile to distro_[pxe_]getfile 2022-08-26 16:33:48 -06:00
bootmeth_efi.c bootstd: Add an implementation of EFI boot 2022-04-25 10:00:04 -04:00
bootmeth_efi_mgr.c bootstd: Allow EFI bootmgr to support an invalid bootflow 2022-08-12 08:17:10 -04:00
bootmeth_pxe.c Rename disto_[pxe_]getfile to distro_[pxe_]getfile 2022-08-26 16:33:48 -06:00
bootmeth_sandbox.c bootstd: Add a sandbox bootmeth driver 2022-04-25 10:00:04 -04:00
bootmeth_script.c bootstd: Add an implementation of script boot 2022-04-25 10:00:04 -04:00
bootretry.c cyclic: Use schedule() instead of WATCHDOG_RESET() 2022-09-18 10:26:33 +02:00
bootstd-uclass.c bootstd: Drop the system bootdev 2022-08-12 08:17:11 -04:00
common_fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
fdt_region.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-android-dt.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-android.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
image-board.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
image-cipher.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-fdt.c event: Pass the images to EVT_FT_FIXUP 2022-09-29 16:07:58 -04:00
image-fit-sig.c tools: Pass the key blob around 2022-01-26 08:50:44 -07:00
image-fit.c treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
image-host.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-pre-load.c boot: image-pre-load: Check environment for location of signature info 2022-10-11 15:40:48 -04:00
image-sig.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
Kconfig sunxi: Kconfig: introduce SUNXI_MINIMUM_DRAM_MB 2022-10-19 14:15:02 +01:00
Makefile vbe: Support VBE simple 2022-08-12 08:17:11 -04:00
pxe_utils.c cmd: pxe: add alias devicetree-overlay for fdtoverlays 2022-10-11 15:40:48 -04:00
vbe.c boot: fix vbe_find_first_device() 2022-08-26 16:32:59 -06:00
vbe_simple.c dm: core: Split ofnode_path_root() into two functions 2022-09-29 22:43:43 -04:00