Lines Matching full:lochnagar

3  * Lochnagar pin and GPIO control
25 #include <linux/mfd/lochnagar.h>
29 #include <dt-bindings/pinctrl/lochnagar.h>
53 static const struct lochnagar_pin lochnagar##REV##_##ID##_pin = { \
54 .name = NAME, .type = LN_PTYPE_GPIO, .reg = LOCHNAGAR##REV##_##REG, \
55 .shift = LOCHNAGAR##REV##_##SHIFT##_SHIFT, .invert = INVERT, \
59 static const struct lochnagar_pin lochnagar##REV##_##ID##_pin = \
92 #define LN_PIN(REV, ID) [LOCHNAGAR##REV##_PIN_##ID] = { \
93 .number = LOCHNAGAR##REV##_PIN_##ID, \
94 .name = lochnagar##REV##_##ID##_pin.name, \
95 .drv_data = (void *)&lochnagar##REV##_##ID##_pin, \
364 LOCHNAGAR##REV##_PIN_##ID##_BCLK, \
365 LOCHNAGAR##REV##_PIN_##ID##_LRCLK, \
366 LOCHNAGAR##REV##_PIN_##ID##_TXDAT, \
367 LOCHNAGAR##REV##_PIN_##ID##_RXDAT,
443 LN_FUNC(lochnagar##REV##_##ID##_pin.name, PIN, OP)
449 LN_FUNC(lochnagar##REV##_##ID##_aif.name, AIF, OP)
608 .name = lochnagar##REV##_##ID##_pin.name, \
610 .pins = &lochnagar##REV##_pins[LOCHNAGAR##REV##_PIN_##ID].number, \
612 .priv = &lochnagar##REV##_pins[LOCHNAGAR##REV##_PIN_##ID], \
616 .name = lochnagar##REV##_##ID##_aif.name, \
618 .pins = lochnagar##REV##_##ID##_aif.pins, \
619 .npins = ARRAY_SIZE(lochnagar##REV##_##ID##_aif.pins), \
620 .priv = &lochnagar##REV##_##ID##_aif, \
710 struct lochnagar *lochnagar; member
797 struct regmap *regmap = priv->lochnagar->regmap; in lochnagar2_get_gpio_chan()
839 switch (priv->lochnagar->type) { in lochnagar_pin_set_mux()
856 ret = regmap_write(priv->lochnagar->regmap, pin->reg, op); in lochnagar_pin_set_mux()
868 struct regmap *regmap = priv->lochnagar->regmap; in lochnagar_aif_set_mux()
939 struct lochnagar *lochnagar = priv->lochnagar; in lochnagar_gpio_request() local
945 if (lochnagar->type == LOCHNAGAR1 || pin->type != LN_PTYPE_MUX) in lochnagar_gpio_request()
990 struct regmap *regmap = priv->lochnagar->regmap; in lochnagar_aif_set_master()
1052 .name = "lochnagar-pinctrl",
1064 struct lochnagar *lochnagar = priv->lochnagar; in lochnagar_gpio_set() local
1083 ret = regmap_update_bits(lochnagar->regmap, pin->reg, in lochnagar_gpio_set()
1138 struct lochnagar *lochnagar = dev_get_drvdata(pdev->dev.parent); in lochnagar_pin_probe() local
1150 priv->lochnagar = lochnagar; in lochnagar_pin_probe()
1167 switch (lochnagar->type) { in lochnagar_pin_probe()
1189 dev_err(dev, "Unknown Lochnagar type: %d\n", lochnagar->type); in lochnagar_pin_probe()
1217 { .compatible = "cirrus,lochnagar-pinctrl" },
1224 .name = "lochnagar-pinctrl",
1233 MODULE_DESCRIPTION("Pinctrl driver for Cirrus Logic Lochnagar Board");