Merge tag 'dm-pull-6feb20' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm
[oweals/u-boot.git] / drivers / pinctrl / mscc / mscc-common.h
index b0001db44c9396028adca0c0866d1e45392e4428..3c5c1faf840ff8fd22a2b3bf10a626c6c5f876ef 100644 (file)
@@ -9,6 +9,19 @@
 
 #define MSCC_FUNC_PER_PIN      4
 
+enum mscc_regs_gpio {
+       MSCC_GPIO_OUT_SET,
+       MSCC_GPIO_OUT_CLR,
+       MSCC_GPIO_OUT,
+       MSCC_GPIO_IN,
+       MSCC_GPIO_OE,
+       MSCC_GPIO_INTR,
+       MSCC_GPIO_INTR_ENA,
+       MSCC_GPIO_INTR_IDENT,
+       MSCC_GPIO_ALT0,
+       MSCC_GPIO_ALT1,
+};
+
 struct mscc_pin_caps {
        unsigned int pin;
        unsigned char functions[MSCC_FUNC_PER_PIN];
@@ -41,11 +54,13 @@ struct mscc_pinctrl {
        const struct mscc_pin_data *mscc_pins;
        int num_pins;
        char * const *function_names;
+       const unsigned long *mscc_gpios;
 };
 
 int mscc_pinctrl_probe(struct udevice *dev, int num_func,
                       const struct mscc_pin_data *mscc_pins, int num_pins,
-                      char * const *function_names);
+                      char * const *function_names,
+                      const unsigned long *mscc_gpios);
 const struct pinctrl_ops mscc_pinctrl_ops;
 
 const struct dm_gpio_ops mscc_gpio_ops;