From: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/9] Support 4GB of memory on 32bit systems
Date: Thu, 26 Jul 2018 15:59:42 +0200 [thread overview]
Message-ID: <1532613591-8444-1-git-send-email-philipp.tomsich@theobroma-systems.com> (raw)
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
next reply other threads:[~2018-07-26 13:59 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-26 13:59 Philipp Tomsich [this message]
2018-07-26 13:59 ` [U-Boot] [PATCH 1/9] dm: allow 4GB of DRAM on 32bit systems Philipp Tomsich
2018-08-02 20:36 ` Simon Glass
2018-08-02 21:31 ` Dr. Philipp Tomsich
2018-09-02 11:10 ` Alexander Graf
2018-09-02 16:04 ` Vagrant Cascadian
2018-09-02 17:49 ` Alexander Graf
2018-09-03 14:29 ` Lokesh Vutla
2018-09-14 10:53 ` Simon Glass
2018-09-14 11:03 ` Philipp Tomsich
2019-01-19 15:21 ` Rask Ingemann Lambertsen
2018-07-26 13:59 ` [U-Boot] [PATCH 2/9] rockchip: support 4GB " Philipp Tomsich
2018-07-26 20:05 ` Carlo Caione
2018-07-26 20:08 ` Dr. Philipp Tomsich
2018-07-26 20:09 ` Dr. Philipp Tomsich
2018-07-26 22:54 ` Dr. Philipp Tomsich
2018-07-27 7:50 ` Carlo Caione
2018-07-27 9:12 ` Dr. Philipp Tomsich
2018-07-26 13:59 ` [U-Boot] [PATCH 3/9] common: include <inttypes.h> always Philipp Tomsich
2018-07-31 1:41 ` Masahiro Yamada
2018-08-02 16:56 ` Simon Glass
2018-08-03 15:01 ` Tom Rini
2018-08-06 2:54 ` Masahiro Yamada
2018-08-02 8:46 ` Patrick DELAUNAY
2018-07-26 13:59 ` [U-Boot] [PATCH 4/9] MIPS: use PRIx64 macros for printing ram size Philipp Tomsich
2018-08-02 20:36 ` Simon Glass
2018-08-07 14:41 ` Daniel Schwierzeck
2018-07-26 13:59 ` [U-Boot] [PATCH 5/9] rockchip: rk3368: change type of ram-size field for a min()-calculation Philipp Tomsich
2018-08-02 20:36 ` Simon Glass
2018-07-26 13:59 ` [U-Boot] [PATCH 6/9] ram: stm32mp1: use PRIx64 macros for printing ram size Philipp Tomsich
2018-08-02 8:52 ` Patrick DELAUNAY
2018-08-02 16:56 ` Simon Glass
2018-07-26 13:59 ` [U-Boot] [PATCH 7/9] board: keymile: add explicit cast to truncate the 64bit ram size field Philipp Tomsich
2018-08-02 20:36 ` Simon Glass
2018-07-26 13:59 ` [U-Boot] [PATCH 8/9] board: cm_fx6: use PRIx64 macros for printing ram size Philipp Tomsich
2018-07-31 1:42 ` Masahiro Yamada
2018-08-02 20:36 ` Simon Glass
2018-07-26 13:59 ` [U-Boot] [PATCH 9/9] mpc85xx: add casts for ram size in min() calculation Philipp Tomsich
2018-07-26 16:12 ` York Sun
2018-08-11 1:44 ` [U-Boot] [PATCH 0/9] Support 4GB of memory on 32bit systems Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1532613591-8444-1-git-send-email-philipp.tomsich@theobroma-systems.com \
--to=philipp.tomsich@theobroma-systems.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.