summaryrefslogtreecommitdiff
path: root/board/renesas/ulcb
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2017-09-05 13:11:14 (GMT)
committerTom Rini <trini@konsulko.com>2017-09-08 00:04:40 (GMT)
commit183f5fd3caec9266432a7cbd50f59cec8bbddc6a (patch)
tree3778e664ad6d12a7900bd185e2dbe9043c617b5a /board/renesas/ulcb
parentec6bc928bbe852a5dae242d24cfd28f868f6286c (diff)
downloadu-boot-183f5fd3caec9266432a7cbd50f59cec8bbddc6a.tar.xz
ARM: rmobile: Fix SD divider settings on Gen3
On RCar M3 and on RCar H3 newer than and not including ES1.0, the SD clock must be divided by 4 rather than 2 because a hardware workaround present only in the H3 ES1.0 has been removed from these chips. U-Boot currently only supports M3 and H3 ES 2.0 and newer, so configure the SD pre-divider to 4 to prevent SD instability. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'board/renesas/ulcb')
-rw-r--r--board/renesas/ulcb/ulcb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/board/renesas/ulcb/ulcb.c b/board/renesas/ulcb/ulcb.c
index 2b6cc61..dc23228 100644
--- a/board/renesas/ulcb/ulcb.c
+++ b/board/renesas/ulcb/ulcb.c
@@ -72,10 +72,10 @@ int board_early_init_f(void)
/* SDHI0 */
mstp_clrbits_le32(MSTPSR3, SMSTPCR3, SD0_MSTP314);
- writel(0, SD0CKCR);
- writel(0, SD1CKCR);
- writel(0, SD2CKCR);
- writel(0, SD3CKCR);
+ writel(1, SD0CKCR);
+ writel(1, SD1CKCR);
+ writel(1, SD2CKCR);
+ writel(1, SD3CKCR);
#if defined(CONFIG_SYS_I2C) && defined(CONFIG_SYS_I2C_SH)
/* DVFS for reset */