diff options
| author | Frank Wunderlich <[email protected]> | 2024-06-15 11:34:56 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-06-27 10:52:39 -0600 |
| commit | efee71ab4d51e4ee68960a93b0c23682be040bd9 (patch) | |
| tree | 7f646ea06cdb645b3dbd49fe7b5a59ddcc32e565 | |
| parent | c38af2ccfd296b7f277b951759b30b879ed2a199 (diff) | |
arm: mediatek: fix ram init for mt7622 (decrease to 1G)
RAM init on mt7622 based bananapi R64 is broken since v2023.10.
Increasing the mem-map does not help here, so i reduced the maximum
available ram in get_ram_size call from 2G to 1G (board has only 1G).
Fixes: 5fd6d4c7b3ad ("arm: mediatek: retrieve ram_base from dts node for armv8 platform")
Signed-off-by: Frank Wunderlich <[email protected]>
| -rw-r--r-- | arch/arm/mach-mediatek/mt7622/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mediatek/mt7622/init.c b/arch/arm/mach-mediatek/mt7622/init.c index 00d3eb9ce7a..1f32ff947dc 100644 --- a/arch/arm/mach-mediatek/mt7622/init.c +++ b/arch/arm/mach-mediatek/mt7622/init.c @@ -28,7 +28,7 @@ int dram_init(void) if (ret) return ret; - gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_2G); + gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_1G); return 0; } |
