u-boot/drivers/ram
Andre Przywara 124289bd56 sunxi: add R528/T113-s3/D1(s) DRAM initialisation code
The Allwinner R528/T113-s/D1/D1s SoCs all share the same die, so use the
same DRAM initialisation code.
Make use of prior art here and lift some code from awboot[1], which
carried init code based on earlier decompilation efforts, but with a
GPL2 license tag.
This code has been heavily reworked and cleaned up, to match previous
DRAM routines for other SoCs, and also to be closer to U-Boot's coding
style and support routines.
The actual DRAM chip timing parameters are included in the main file,
since they cover all DRAM types, and are protected by a new Kconfig
CONFIG_SUNXI_DRAM_TYPE symbol, which allows the compiler to pick only
the relevant settings, at build time.

The relevant DRAM chips/board specific configuration parameters are
delivered via Kconfig, so this code here should work for all supported
SoCs and DRAM chips combinations.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Sam Edwards <CFSworks@gmail.com>
2023-10-22 23:41:52 +01:00
..
aspeed ram: ast2600: Keep MPLL power on 2023-03-06 17:03:56 -05:00
cadence ram: cadence: add driver for Cadence EDAC 2023-05-13 04:01:30 +02:00
k3-ddrss treewide: use dev_read_addr_*_ptr() where appropriate 2023-10-13 14:01:42 -06:00
mediatek board: mediatek: update config headers 2023-08-03 09:40:49 -04:00
octeon global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
renesas board: schneider: add RZN1 board support 2023-05-13 04:01:30 +02:00
rockchip common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
sifive ram: sifive: Fix -Wint-to-pointer-cast warnings 2021-10-20 10:59:09 +08:00
starfive ram: starfive: Read memory size information from EEPROM 2023-07-12 13:21:40 +08:00
stm32mp1 STM32 MCU: 2023-10-04 10:49:30 -04:00
sunxi sunxi: add R528/T113-s3/D1(s) DRAM initialisation code 2023-10-22 23:41:52 +01:00
bmips_ram.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
imxrt_sdram.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
k3-am654-ddrss.c treewide: use dev_read_addr_*_ptr() where appropriate 2023-10-13 14:01:42 -06:00
k3-am654-ddrss.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
Kconfig Kconfig: sunxi: prepare for using drivers/ram/sunxi 2023-10-22 23:41:51 +01:00
Makefile sunxi: add R528/T113-s3/D1(s) DRAM initialisation code 2023-10-22 23:41:52 +01:00
mpc83xx_sdram.c global: Remove unused CONFIG symbols 2022-12-22 10:31:48 -05:00
ram-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
sandbox_ram.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32_sdram.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00