Lines Matching full:madera
3 * Pinctrl for Cirrus Logic Madera codecs
21 #include <linux/mfd/madera/core.h>
22 #include <linux/mfd/madera/registers.h>
26 #include "pinctrl-madera.h"
524 ret = regmap_read(priv->madera->regmap, reg, &conf[0]); in madera_pin_dbg_show()
528 ret = regmap_read(priv->madera->regmap, reg + 1, &conf[1]); in madera_pin_dbg_show()
614 struct madera *madera = priv->madera; in madera_mux_set_mux() local
643 ret = regmap_update_bits(madera->regmap, reg, in madera_mux_set_mux()
661 ret = regmap_update_bits(madera->regmap, in madera_mux_set_mux()
679 struct madera *madera = priv->madera; in madera_gpio_set_direction() local
689 ret = regmap_update_bits(madera->regmap, reg, MADERA_GP1_DIR_MASK, val); in madera_gpio_set_direction()
701 struct madera *madera = priv->madera; in madera_gpio_request_enable() local
706 ret = regmap_update_bits(madera->regmap, reg, MADERA_GP1_FN_MASK, 1); in madera_gpio_request_enable()
718 struct madera *madera = priv->madera; in madera_gpio_disable_free() local
725 ret = regmap_update_bits(madera->regmap, reg, MADERA_GP1_FN_MASK, 1); in madera_gpio_disable_free()
751 ret = regmap_read(priv->madera->regmap, reg, &conf[0]); in madera_pin_conf_get()
753 ret = regmap_read(priv->madera->regmap, reg + 1, &conf[1]); in madera_pin_conf_get()
927 ret = regmap_update_bits(priv->madera->regmap, reg, mask[0], conf[0]); in madera_pin_conf_set()
932 ret = regmap_update_bits(priv->madera->regmap, reg, mask[1], conf[1]); in madera_pin_conf_set()
989 .name = "madera-pinctrl",
999 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_pin_probe() local
1000 const struct madera_pdata *pdata = &madera->pdata; in madera_pin_probe()
1016 priv->madera = madera; in madera_pin_probe()
1018 switch (madera->type) { in madera_pin_probe()
1090 if (priv->madera->pdata.gpio_configs) in madera_pin_remove()
1091 pinctrl_unregister_mappings(priv->madera->pdata.gpio_configs); in madera_pin_remove()
1100 .name = "madera-pinctrl",
1106 MODULE_DESCRIPTION("Madera pinctrl driver");