sunxi: a133: dram: fix data type for address variable
authorAndre Przywara <andre.przywara@arm.com>
Fri, 18 Jul 2025 23:58:34 +0000 (00:58 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 11 Aug 2025 23:50:57 +0000 (00:50 +0100)
commitcef5636d5ab6a4d8a553840a4a706ab86ca61291
tree871b4b32aa3904e7a66a76dcaf2756f4ffe3bd0b
parent50dfe957c622addf3f4a70cbdc760af8aee565dd
sunxi: a133: dram: fix data type for address variable

Variables holding addresses are typically using the "long" C type in
U-Boot, to be easily compatible with both 32-bit and 64-bit builds.

The A133 DRAM driver is typically compiled for AArch64, so u64 is the
same type as unsigned long, but that breaks when compiling the DRAM
driver in AArch32 (for some experiments).

Fix the type to make the code more portable.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
arch/arm/mach-sunxi/dram_sun50i_a133.c