diff options
author | Icenowy Zheng <icenowy@aosc.io> | 2018-10-25 17:23:06 +0800 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-10-29 20:41:15 +0530 |
commit | f8aa3f8d84af6e9ae0dce9c3577d342c6a013b14 (patch) | |
tree | 8c739300f825ed24528896f8c211a35cb82be9b6 /arch/arm/mach-sunxi | |
parent | 7009134c99512bd8a9a09cf14f35450f32a8602c (diff) | |
download | u-boot-f8aa3f8d84af6e9ae0dce9c3577d342c6a013b14.zip u-boot-f8aa3f8d84af6e9ae0dce9c3577d342c6a013b14.tar.gz u-boot-f8aa3f8d84af6e9ae0dce9c3577d342c6a013b14.tar.bz2 |
sunxi: add Kconfig option for the maximum accessible DRAM
Allwinner 64-bit SoCs can use 4GiB DRAM chip, however their memory map
has only allocated 3GiB for DRAM, so only 3GiB of the DRAM is
accessible.
Add a Kconfig option for the maximum accessible DRAM.
For A80 it should be a much higher value (8GiB), but as I have no A80
device to test and originally U-Boot only supports 2GiB DRAM on A80, it
currently still falls under the 2GiB situation.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'arch/arm/mach-sunxi')
-rw-r--r-- | arch/arm/mach-sunxi/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 764337c..6277abc 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -140,6 +140,12 @@ config MACH_SUNXI_H3_H5 select SUNXI_GEN_SUN6I select SUPPORT_SPL +# TODO: try out A80's 8GiB DRAM space +config SUNXI_DRAM_MAX_SIZE + hex + default 0xC0000000 if MACH_SUN50I || MACH_SUN50I_H5 || MACH_SUN50I_H6 + default 0x80000000 + choice prompt "Sunxi SoC Variant" optional |