rockchip: rk3288: pinctrl: support more pins
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sun, 28 Feb 2016 21:24:58 +0000 (22:24 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 27 May 2016 15:00:48 +0000 (09:00 -0600)
The rgmii_pins node in rk3288.dtsi configures 15 pins. Increase the size
of the cell array to accomedate that, otherwise only the first 10 get
configured.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/rockchip/pinctrl_rk3288.c

index 7c769bdb016c799989bbcae34d5089e7d099f62a..1fa1daa939c75c296d62bbf240bd667eb691e1fc 100644 (file)
@@ -623,7 +623,7 @@ static int rk3288_pinctrl_set_state(struct udevice *dev, struct udevice *config)
 {
        const void *blob = gd->fdt_blob;
        int pcfg_node, ret, flags, count, i;
-       u32 cell[40], *ptr;
+       u32 cell[60], *ptr;
 
        debug("%s: %s %s\n", __func__, dev->name, config->name);
        ret = fdtdec_get_int_array_count(blob, config->of_offset,