Lines Matching full:lochnagar

3  * Lochnagar pin and GPIO control
23 #include <linux/mfd/lochnagar.h>
27 #include <dt-bindings/pinctrl/lochnagar.h>
51 static const struct lochnagar_pin lochnagar##REV##_##ID##_pin = { \
52 .name = NAME, .type = LN_PTYPE_GPIO, .reg = LOCHNAGAR##REV##_##REG, \
53 .shift = LOCHNAGAR##REV##_##SHIFT##_SHIFT, .invert = INVERT, \
57 static const struct lochnagar_pin lochnagar##REV##_##ID##_pin = \
90 #define LN_PIN(REV, ID) [LOCHNAGAR##REV##_PIN_##ID] = { \
91 .number = LOCHNAGAR##REV##_PIN_##ID, \
92 .name = lochnagar##REV##_##ID##_pin.name, \
93 .drv_data = (void *)&lochnagar##REV##_##ID##_pin, \
362 LOCHNAGAR##REV##_PIN_##ID##_BCLK, \
363 LOCHNAGAR##REV##_PIN_##ID##_LRCLK, \
364 LOCHNAGAR##REV##_PIN_##ID##_TXDAT, \
365 LOCHNAGAR##REV##_PIN_##ID##_RXDAT,
441 LN_FUNC(lochnagar##REV##_##ID##_pin.name, PIN, OP)
447 LN_FUNC(lochnagar##REV##_##ID##_aif.name, AIF, OP)
606 .name = lochnagar##REV##_##ID##_pin.name, \
608 .pins = &lochnagar##REV##_pins[LOCHNAGAR##REV##_PIN_##ID].number, \
610 .priv = &lochnagar##REV##_pins[LOCHNAGAR##REV##_PIN_##ID], \
614 .name = lochnagar##REV##_##ID##_aif.name, \
616 .pins = lochnagar##REV##_##ID##_aif.pins, \
617 .npins = ARRAY_SIZE(lochnagar##REV##_##ID##_aif.pins), \
618 .priv = &lochnagar##REV##_##ID##_aif, \
708 struct lochnagar *lochnagar; member
795 struct regmap *regmap = priv->lochnagar->regmap; in lochnagar2_get_gpio_chan()
837 switch (priv->lochnagar->type) { in lochnagar_pin_set_mux()
854 ret = regmap_write(priv->lochnagar->regmap, pin->reg, op); in lochnagar_pin_set_mux()
866 struct regmap *regmap = priv->lochnagar->regmap; in lochnagar_aif_set_mux()
937 struct lochnagar *lochnagar = priv->lochnagar; in lochnagar_gpio_request() local
943 if (lochnagar->type == LOCHNAGAR1 || pin->type != LN_PTYPE_MUX) in lochnagar_gpio_request()
988 struct regmap *regmap = priv->lochnagar->regmap; in lochnagar_aif_set_master()
1050 .name = "lochnagar-pinctrl",
1062 struct lochnagar *lochnagar = priv->lochnagar; in lochnagar_gpio_set() local
1081 ret = regmap_update_bits(lochnagar->regmap, pin->reg, in lochnagar_gpio_set()
1136 struct lochnagar *lochnagar = dev_get_drvdata(pdev->dev.parent); in lochnagar_pin_probe() local
1148 priv->lochnagar = lochnagar; in lochnagar_pin_probe()
1168 switch (lochnagar->type) { in lochnagar_pin_probe()
1190 dev_err(dev, "Unknown Lochnagar type: %d\n", lochnagar->type); in lochnagar_pin_probe()
1218 { .compatible = "cirrus,lochnagar-pinctrl" },
1225 .name = "lochnagar-pinctrl",
1234 MODULE_DESCRIPTION("Pinctrl driver for Cirrus Logic Lochnagar Board");