[U-Boot] [PATCH 0/5] Add 3GiB DRAM support to 64-bit Allwinner SoCs

Icenowy Zheng icenowy at aosc.io
Wed Feb 7 19:35:21 UTC 2018


Allwinner 64-bit SoCs have allocated 3GiB space in the memory map for
DRAM. If memory bigger than 3GiB is installed (as memory usually come as
pow of 2 and they are not known to support 3GiB LPDDR3 modules, it means
4GiB memory is installed), the whole 3GiB space can be all used.

However, in many situations we still only defined 2GiB for the DRAM.

Add support for 3GiB DRAM. Tested on a customized Pine A64-LTS with 4GiB
LPDDR3 memory installed.

Icenowy Zheng (5):
  sunxi: map DRAM part with 3G size
  sunxi: add Kconfig option for the maximum accessible DRAM
  sunxi: add 3GiB DRAM detection support in main U-Boot
  sunxi: let sunxi_dram_init return unsigned long long
  sunxi: restrict the ram_size to the accessible range in SPL

 arch/arm/include/asm/arch-sunxi/dram.h |  2 +-
 arch/arm/mach-sunxi/Kconfig            |  7 +++++++
 arch/arm/mach-sunxi/board.c            |  2 +-
 arch/arm/mach-sunxi/dram_sun6i.c       |  2 +-
 arch/arm/mach-sunxi/dram_sun8i_a23.c   |  2 +-
 arch/arm/mach-sunxi/dram_sun8i_a33.c   |  2 +-
 arch/arm/mach-sunxi/dram_sun8i_a83t.c  |  2 +-
 arch/arm/mach-sunxi/dram_sun9i.c       |  4 ++--
 arch/arm/mach-sunxi/dram_sunxi_dw.c    |  4 ++--
 board/sunxi/board.c                    | 36 ++++++++++++++++++++++++++++++++--
 board/sunxi/dram_sun4i_auto.c          |  2 +-
 board/sunxi/dram_sun5i_auto.c          |  2 +-
 include/configs/sunxi-common.h         |  2 +-
 13 files changed, 54 insertions(+), 15 deletions(-)

-- 
2.15.1



More information about the U-Boot mailing list