]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mach-k3: common: fix compile warnings with PHYS_64BIT on 32bit
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Wed, 27 Sep 2023 13:43:14 +0000 (15:43 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 9 Oct 2023 19:24:31 +0000 (15:24 -0400)
commit17deab0edd2ba0a79a2b566c9a4e52e303bed362
tree78375d50ec82a003dba5af593e1ee7170a90e5e9
parent34124ad9a433eb829b7a1942e074dd500302d964
arm: mach-k3: common: fix compile warnings with PHYS_64BIT on 32bit

Use uintptr_t instead of phys_addr_t where appropriate, so passing the
addresses to writel() doesn't result in compile warnings when PHYS_64BIT
is set for 32bit builds (which is actually a useful configuration, as
the K3 SoC family boots from an R5 SPL, which may pass bank information
based on gd->bd->bi_dram to fdt_fixup_memory_banks() etc., so PHYS_64BIT
is needed for fixing up the upper bank).

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
arch/arm/mach-k3/common.c
arch/arm/mach-k3/common.h