From: Tom Rini Date: Fri, 10 Aug 2018 21:44:42 -0400 Subject: [U-Boot] [PATCH 0/9] Support 4GB of memory on 32bit systems In-Reply-To: <1532613591-8444-1-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1532613591-8444-1-git-send-email-philipp.tomsich@theobroma-systems.com> Message-ID: <20180811014442.GN29229@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jul 26, 2018 at 03:59:42PM +0200, Philipp Tomsich wrote: > 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 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(-) Please rework this on top of https://patchwork.ozlabs.org/user/todo/uboot/?series=59452 thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: