From: Kever Yang Date: Thu, 7 Sep 2017 03:20:51 +0000 (+0800) Subject: rockchip: ram: rk3399: update reg map for of-platdata X-Git-Tag: v2017.11-rc1~87^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6e5bd8d6f34445958eba1203999cd3e1475791ac;p=u-boot rockchip: ram: rk3399: update reg map for of-platdata After Simon's patch, the dtoc can work with 64bit address, so we need to fix reg number for it. Depend on Simon's patch set: https://patchwork.ozlabs.org/cover/807266/ Signed-off-by: Kever Yang Reviewed-by: Philipp Tomsich Acked-by: Philipp Tomsich --- diff --git a/arch/arm/mach-rockchip/rk3399/sdram_rk3399.c b/arch/arm/mach-rockchip/rk3399/sdram_rk3399.c index 63342ab5c9..5ed4b03837 100644 --- a/arch/arm/mach-rockchip/rk3399/sdram_rk3399.c +++ b/arch/arm/mach-rockchip/rk3399/sdram_rk3399.c @@ -1115,7 +1115,7 @@ static int conv_of_platdata(struct udevice *dev) int ret; ret = regmap_init_mem_platdata(dev, dtplat->reg, - ARRAY_SIZE(dtplat->reg) / 4, + ARRAY_SIZE(dtplat->reg) / 2, &plat->map); if (ret) return ret;