Commit ec767c1b authored by Chiaki Fujii's avatar Chiaki Fujii Committed by Marek Vasut
Browse files

fix(drivers/rcar3): ddr: update DDR setting for H3, M3, M3N



[IPL/DDR]
- Update H3, M3, M3N DDR setting rev.0.41.
Signed-off-by: default avatarChiaki Fujii <chiaki.fujii.wj@renesas.com>
Signed-off-by: default avatarYoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>
Change-Id: Idd2fbea621365d84b566748b5b7d7fb2f0d08168
parent b757d3a1
...@@ -4147,7 +4147,13 @@ int32_t rcar_dram_init(void) ...@@ -4147,7 +4147,13 @@ int32_t rcar_dram_init(void)
} }
/* THCTR Bit6: PONM=0 , Bit0: THSST=0 */ /* THCTR Bit6: PONM=0 , Bit0: THSST=0 */
data_l = mmio_read_32(THS1_THCTR) & 0xFFFFFFBE; data_l = mmio_read_32(THS1_THCTR);
if (data_l & 0x00000040U) {
data_l = data_l & 0xFFFFFFBEU;
} else {
data_l = data_l | BIT(1);
}
mmio_write_32(THS1_THCTR, data_l); mmio_write_32(THS1_THCTR, data_l);
/* Judge product and cut */ /* Judge product and cut */
......
/* /*
* Copyright (c) 2015-2020, Renesas Electronics Corporation. * Copyright (c) 2015-2021, Renesas Electronics Corporation.
* All rights reserved. * All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#define RCAR_DDR_VERSION "rev.0.40" #define RCAR_DDR_VERSION "rev.0.41"
#define DRAM_CH_CNT 0x04 #define DRAM_CH_CNT 0x04
#define SLICE_CNT 0x04 #define SLICE_CNT 0x04
#define CS_CNT 0x02 #define CS_CNT 0x02
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment