rockchip: ram: rk3399: update reg map for of-platdata
authorKever Yang <kever.yang@rock-chips.com>
Thu, 7 Sep 2017 03:20:51 +0000 (11:20 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 18 Sep 2017 18:40:38 +0000 (20:40 +0200)
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 <kever.yang@rock-chips.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/mach-rockchip/rk3399/sdram_rk3399.c

index 63342ab5c98ab9e8f059e7862c5b9b45f9778be7..5ed4b03837d63f4b8482d914cfe786e1260b34ea 100644 (file)
@@ -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;