public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/6] Add 3GiB DRAM support to 64-bit Allwinner SoCs
@ 2018-03-23  8:18 Icenowy Zheng
  2018-03-23  8:18 ` [U-Boot] [PATCH v2 1/6] sunxi: map DRAM part with 3G size on AArch64 Icenowy Zheng
                   ` (5 more replies)
  0 siblings, 6 replies; 30+ messages in thread
From: Icenowy Zheng @ 2018-03-23  8:18 UTC (permalink / raw)
  To: u-boot

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 (6):
  sunxi: map DRAM part with 3G size on AArch64
  sunxi: add Kconfig option for the maximum accessible DRAM
  sunxi: let sunxi_dram_init return unsigned long long
  sunxi: restrict the ram_size to the accessible range in SPL
  sunxi: add code for recalculating the DRAM size in U-Boot
  sunxi: add size recalculation code for common DesignWare DRAM driver

 arch/arm/include/asm/arch-sunxi/dram.h |  5 ++++-
 arch/arm/mach-sunxi/Kconfig            | 15 +++++++++++++++
 arch/arm/mach-sunxi/Makefile           |  2 +-
 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    | 30 +++++++++++++++++++++++++++---
 board/sunxi/board.c                    | 21 +++++++++++++++++++--
 board/sunxi/dram_sun4i_auto.c          |  2 +-
 board/sunxi/dram_sun5i_auto.c          |  2 +-
 13 files changed, 75 insertions(+), 16 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2018-04-03 18:16 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-23  8:18 [U-Boot] [PATCH v2 0/6] Add 3GiB DRAM support to 64-bit Allwinner SoCs Icenowy Zheng
2018-03-23  8:18 ` [U-Boot] [PATCH v2 1/6] sunxi: map DRAM part with 3G size on AArch64 Icenowy Zheng
2018-03-23  8:18 ` [U-Boot] [PATCH v2 2/6] sunxi: add Kconfig option for the maximum accessible DRAM Icenowy Zheng
2018-03-23  9:39   ` Maxime Ripard
2018-03-23  9:42     ` Chen-Yu Tsai
2018-03-23  9:45     ` Icenowy Zheng
2018-03-23  8:18 ` [U-Boot] [PATCH v2 3/6] sunxi: let sunxi_dram_init return unsigned long long Icenowy Zheng
2018-03-23  8:18 ` [U-Boot] [PATCH v2 4/6] sunxi: restrict the ram_size to the accessible range in SPL Icenowy Zheng
2018-03-23  9:43   ` Maxime Ripard
2018-03-23  8:18 ` [U-Boot] [PATCH v2 5/6] sunxi: add code for recalculating the DRAM size in U-Boot Icenowy Zheng
2018-03-23  9:40   ` Maxime Ripard
2018-03-23  9:41     ` Icenowy Zheng
2018-03-26  7:06       ` Maxime Ripard
2018-03-26  7:11         ` Icenowy Zheng
2018-03-28 11:28           ` Maxime Ripard
2018-03-28 11:31             ` Icenowy Zheng
2018-03-29  9:37               ` Maxime Ripard
2018-03-29 12:21                 ` Andre Przywara
2018-04-03  9:29                   ` Maxime Ripard
2018-04-03 10:13                     ` Andre Przywara
2018-04-03 10:39                       ` Icenowy Zheng
2018-04-03 10:46                         ` Dr. Philipp Tomsich
2018-04-03 11:34                       ` Maxime Ripard
2018-04-03 11:41                         ` Andre Przywara
2018-04-03 11:49                           ` Icenowy Zheng
2018-04-03 11:51                         ` Icenowy Zheng
2018-04-03 12:43                           ` Andre Przywara
2018-04-03 14:13                             ` [U-Boot] [linux-sunxi] " Siarhei Siamashka
2018-04-03 18:16                               ` André Przywara
2018-03-23  8:18 ` [U-Boot] [PATCH v2 6/6] sunxi: add size recalculation code for common DesignWare DRAM driver Icenowy Zheng

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