[U-Boot] [PATCH 0/9] Support 4GB of memory on 32bit systems

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Thu Jul 26 13:59:42 UTC 2018


Even on 32bit systems a full 4GB of DRAM may be installed and reported
by the DRAM controller.  Whether these 4GB are larger available
depends on the size/configuration of address decoding windows and
architectural features.

This increases the fields holding the RAM size to have at least 33bits
(i.e. we use a u64) and fixes the fallout from the change: some casts,
the usage of min() and a few printf formats have to be adjusted.


Philipp Tomsich (9):
  dm: allow 4GB of DRAM on 32bit systems
  rockchip: support 4GB DRAM on 32bit systems
  common: include <inttypes.h> always
  MIPS: use PRIx64 macros for printing ram size
  rockchip: rk3368: change type of ram-size field for a
    min()-calculation
  ram: stm32mp1: use PRIx64 macros for printing ram size
  board: keymile: add explicit cast to truncate the 64bit ram size field
  board: cm_fx6: use PRIx64 macros for printing ram size
  mpc85xx: add casts for ram size in min() calculation.

 arch/arm/include/asm/arch-rockchip/sdram_common.h | 2 +-
 arch/arm/mach-rockchip/sdram_common.c             | 8 ++++----
 arch/arm/mach-stm32mp/dram_init.c                 | 2 +-
 arch/mips/mach-bmips/dram.c                       | 2 +-
 arch/powerpc/cpu/mpc85xx/cpu.c                    | 6 ++++--
 board/compulab/cm_fx6/cm_fx6.c                    | 3 ++-
 board/keymile/km_arm/km_arm.c                     | 6 ++++--
 drivers/ram/rockchip/dmc-rk3368.c                 | 2 +-
 drivers/ram/stm32mp1/stm32mp1_ram.c               | 2 +-
 include/asm-generic/global_data.h                 | 2 +-
 include/common.h                                  | 1 +
 include/ram.h                                     | 9 ++++++++-
 12 files changed, 29 insertions(+), 16 deletions(-)

-- 
2.1.4



More information about the U-Boot mailing list