Fix copy paste error in MD pin handling for 5500 Mbps and 4800 Mbps case,
each should be handled by MD[19,17] == 2 and MD[19,17] == 3 respectively.

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 drivers/ram/renesas/dbsc5/dram.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ram/renesas/dbsc5/dram.c b/drivers/ram/renesas/dbsc5/dram.c
index 210a68f6496..939775d4d16 100644
--- a/drivers/ram/renesas/dbsc5/dram.c
+++ b/drivers/ram/renesas/dbsc5/dram.c
@@ -4450,10 +4450,10 @@ static int renesas_dbsc5_dram_probe(struct udevice *dev)
        } else if (md == 1) {
                priv->ddr_mbps = 6000;
                priv->ddr_mbpsdiv = 1;
-       } else if (md == 1) {
+       } else if (md == 2) {
                priv->ddr_mbps = 5500;
                priv->ddr_mbpsdiv = 1;
-       } else if (md == 1) {
+       } else if (md == 3) {
                priv->ddr_mbps = 4800;
                priv->ddr_mbpsdiv = 1;
        }
-- 
2.47.2

Reply via email to