mips: mt7628: fix ddr_type for MT7688KN
authorWeijie Gao <weijie.gao@mediatek.com>
Tue, 23 Feb 2021 07:12:44 +0000 (15:12 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Thu, 22 Apr 2021 00:44:20 +0000 (02:44 +0200)
commita9961e5acd5f918a4bf145a1f8b8df061fffe9c7
treeaab8a15fb90cd40fe1c4fc325701ebb67b38a89f
parent42b51432105dc5ff32292c33ea609733c239db1e
mips: mt7628: fix ddr_type for MT7688KN

The MT7688KN is a multi-chip package with 8MiB DDR1 KGD. So the DDR type
from bootstrap register must be ignored, and always be assumed as DDR1.

This patch fixes an issue that mt7628_ddr_pad_ldo_config() may be passed
with a wrong ddr_type in MT7688KN.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/mips/mach-mtmips/mt7628/ddr.c