rockchip: pinctrl: rk3399: add support for the SPI5 controller
[oweals/u-boot.git] / drivers / pinctrl / pinctrl_stm32.c
index 01f0429a39925457f49a73e7b1142a117ffe602a..d7b5ea3e1c001b5b840ff46f7a17ce09488b5e3f 100644 (file)
@@ -7,6 +7,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#define MAX_PINS_ONE_IP                        70
 #define MODE_BITS_MASK                 3
 #define OSPEED_MASK                    3
 #define PUPD_MASK                      3
@@ -95,7 +96,7 @@ static int prep_gpio_ctl(struct stm32_gpio_ctl *gpio_ctl, u32 gpio_fn, int node)
 static int stm32_pinctrl_set_state_simple(struct udevice *dev,
                                          struct udevice *periph)
 {
-       u32 pin_mux[50];
+       u32 pin_mux[MAX_PINS_ONE_IP];
        struct fdtdec_phandle_args args;
        int rv, len;