/linux/drivers/mfd/ |
A D | madera-core.c | 241 static int madera_wait_for_boot(struct madera *madera) in madera_wait_for_boot() argument 257 static int madera_soft_reset(struct madera *madera) in madera_soft_reset() argument 292 struct madera *madera = dev_get_drvdata(dev); in madera_runtime_resume() local 314 if (!madera->pdata.reset || madera->reset_errata) { in madera_runtime_resume() 354 struct madera *madera = dev_get_drvdata(dev); in madera_runtime_suspend() local 390 static int madera_get_reset_gpio(struct madera *madera) in madera_get_reset_gpio() argument 455 int madera_dev_init(struct madera *madera) in madera_dev_init() argument 464 dev_set_drvdata(madera->dev, madera); in madera_dev_init() 551 madera->dcvdd = regulator_get(madera->dev, "DCVDD"); in madera_dev_init() 685 if (!madera->pdata.reset || madera->reset_errata) { in madera_dev_init() [all …]
|
A D | madera.h | 14 struct madera; 19 int madera_dev_init(struct madera *madera); 20 int madera_dev_exit(struct madera *madera); 28 int cs47l15_patch(struct madera *madera); 34 int cs47l35_patch(struct madera *madera); 40 int cs47l85_patch(struct madera *madera); 46 int cs47l90_patch(struct madera *madera); 52 int cs47l92_patch(struct madera *madera);
|
A D | madera-i2c.c | 23 struct madera *madera; in madera_i2c_probe() local 87 madera = devm_kzalloc(&i2c->dev, sizeof(*madera), GFP_KERNEL); in madera_i2c_probe() 88 if (!madera) in madera_i2c_probe() 92 if (IS_ERR(madera->regmap)) { in madera_i2c_probe() 93 ret = PTR_ERR(madera->regmap); in madera_i2c_probe() 107 madera->type = type; in madera_i2c_probe() 108 madera->type_name = name; in madera_i2c_probe() 109 madera->dev = &i2c->dev; in madera_i2c_probe() 110 madera->irq = i2c->irq; in madera_i2c_probe() 117 struct madera *madera = dev_get_drvdata(&i2c->dev); in madera_i2c_remove() local [all …]
|
A D | madera-spi.c | 23 struct madera *madera; in madera_spi_probe() local 87 madera = devm_kzalloc(&spi->dev, sizeof(*madera), GFP_KERNEL); in madera_spi_probe() 88 if (!madera) in madera_spi_probe() 92 if (IS_ERR(madera->regmap)) { in madera_spi_probe() 93 ret = PTR_ERR(madera->regmap); in madera_spi_probe() 107 madera->type = type; in madera_spi_probe() 108 madera->type_name = name; in madera_spi_probe() 109 madera->dev = &spi->dev; in madera_spi_probe() 110 madera->irq = spi->irq; in madera_spi_probe() 117 struct madera *madera = spi_get_drvdata(spi); in madera_spi_remove() local [all …]
|
A D | Makefile | 78 madera-objs := madera-core.o 80 madera-objs += cs47l15-tables.o 83 madera-objs += cs47l35-tables.o 86 madera-objs += cs47l85-tables.o 89 madera-objs += cs47l90-tables.o 92 madera-objs += cs47l92-tables.o 94 obj-$(CONFIG_MFD_MADERA) += madera.o 95 obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o 96 obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
|
A D | cs47l92-tables.c | 92 int cs47l92_patch(struct madera *madera) in cs47l92_patch() argument 96 ret = regmap_register_patch(madera->regmap, in cs47l92_patch() 100 dev_err(madera->dev, in cs47l92_patch() 105 ret = regmap_register_patch(madera->regmap_32bit, in cs47l92_patch() 109 dev_err(madera->dev, in cs47l92_patch()
|
A D | cs47l85-tables.c | 311 int cs47l85_patch(struct madera *madera) in cs47l85_patch() argument 318 switch (madera->rev) { in cs47l85_patch() 336 ret = regmap_register_patch(madera->regmap, patch16, num16); in cs47l85_patch() 338 dev_err(madera->dev, in cs47l85_patch() 343 ret = regmap_register_patch(madera->regmap_32bit, patch32, num32); in cs47l85_patch() 345 dev_err(madera->dev, in cs47l85_patch()
|
A D | cs47l15-tables.c | 31 int cs47l15_patch(struct madera *madera) in cs47l15_patch() argument 35 ret = regmap_register_patch(madera->regmap, in cs47l15_patch() 39 dev_err(madera->dev, in cs47l15_patch()
|
/linux/drivers/gpio/ |
A D | gpio-madera.c | 18 struct madera *madera; member 27 struct madera *madera = madera_gpio->madera; in madera_gpio_get_direction() local 46 struct madera *madera = madera_gpio->madera; in madera_gpio_direction_in() local 49 return regmap_update_bits(madera->regmap, in madera_gpio_direction_in() 57 struct madera *madera = madera_gpio->madera; in madera_gpio_get() local 74 struct madera *madera = madera_gpio->madera; in madera_gpio_direction_out() local 79 ret = regmap_update_bits(madera->regmap, in madera_gpio_direction_out() 94 struct madera *madera = madera_gpio->madera; in madera_gpio_set() local 125 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_gpio_probe() local 135 madera_gpio->madera = madera; in madera_gpio_probe() [all …]
|
/linux/sound/soc/codecs/ |
A D | madera.c | 171 struct madera *madera = priv->madera; in madera_clk_ev() local 210 struct madera *madera = priv->madera; in madera_spin_sysclk() local 275 struct madera *madera = priv->madera; in madera_spk_ev() local 335 struct madera *madera = priv->madera; in madera_init_overheat() local 357 struct madera *madera = priv->madera; in madera_free_overheat() local 400 struct madera *madera = priv->madera; in madera_prop_get_inmode() local 428 struct madera *madera = priv->madera; in madera_prop_get_pdata() local 490 struct madera *madera = priv->madera; in madera_debug_dump_domain_groups() local 548 struct madera *madera = priv->madera; in madera_out1_demux_put() local 649 struct madera *madera = priv->madera; in madera_inmux_put() local [all …]
|
A D | cs47l92.c | 61 struct madera *madera = priv->madera; in cs47l92_put_demux() local 103 dev_warn(madera->dev, in cs47l92_put_demux() 142 struct madera *madera = priv->madera; in cs47l92_adsp_power_ev() local 148 dev_err(madera->dev, in cs47l92_adsp_power_ev() 174 struct madera *madera = priv->madera; in cs47l92_outclk_ev() local 1840 struct madera *madera = priv->madera; in cs47l92_open() local 1859 struct madera *madera = priv->madera; in cs47l92_adsp2_irq() local 1881 struct madera *madera = cs47l92->core.madera; in cs47l92_component_probe() local 1914 struct madera *madera = cs47l92->core.madera; in cs47l92_component_remove() local 1966 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in cs47l92_probe() local [all …]
|
A D | cs47l15.c | 75 struct madera *madera = priv->madera; in cs47l15_adsp_power_ev() local 81 dev_err(madera->dev, in cs47l15_adsp_power_ev() 1239 struct madera *madera = priv->madera; in cs47l15_open() local 1245 dev_err(madera->dev, in cs47l15_open() 1258 struct madera *madera = priv->madera; in cs47l15_adsp2_irq() local 1277 struct madera *madera = cs47l15->core.madera; in cs47l15_component_probe() local 1312 struct madera *madera = cs47l15->core.madera; in cs47l15_component_remove() local 1315 madera->dapm = NULL; in cs47l15_component_remove() 1361 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in cs47l15_probe() local 1368 if (!madera->irq_dev) { in cs47l15_probe() [all …]
|
A D | cs47l35.c | 93 struct madera *madera = priv->madera; in cs47l35_adsp_power_ev() local 99 dev_err(madera->dev, in cs47l35_adsp_power_ev() 1506 struct madera *madera = priv->madera; in cs47l35_open() local 1514 dev_err(madera->dev, in cs47l35_open() 1527 struct madera *madera = priv->madera; in cs47l35_adsp2_irq() local 1559 struct madera *madera = cs47l35->core.madera; in cs47l35_component_probe() local 1595 struct madera *madera = cs47l35->core.madera; in cs47l35_component_remove() local 1599 madera->dapm = NULL; in cs47l35_component_remove() 1646 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in cs47l35_probe() local 1653 if (!madera->irq_dev) { in cs47l35_probe() [all …]
|
A D | madera.h | 107 struct madera; 122 struct madera *madera; member 159 struct madera *madera; member 410 int madera_init_fll(struct madera *madera, int id, int base, 443 struct madera *madera = priv->madera; in madera_register_notifier() local 445 return blocking_notifier_chain_register(&madera->notifier, nb); in madera_register_notifier() 453 struct madera *madera = priv->madera; in madera_unregister_notifier() local 455 return blocking_notifier_chain_unregister(&madera->notifier, nb); in madera_unregister_notifier()
|
A D | cs47l85.c | 117 struct madera *madera = priv->madera; in cs47l85_adsp_power_ev() local 123 dev_err(madera->dev, in cs47l85_adsp_power_ev() 2448 struct madera *madera = priv->madera; in cs47l85_open() local 2456 dev_err(madera->dev, in cs47l85_open() 2469 struct madera *madera = priv->madera; in cs47l85_adsp2_irq() local 2497 struct madera *madera = cs47l85->core.madera; in cs47l85_component_probe() local 2532 struct madera *madera = cs47l85->core.madera; in cs47l85_component_remove() local 2536 madera->dapm = NULL; in cs47l85_component_remove() 2590 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in cs47l85_probe() local 2597 if (!madera->irq_dev) { in cs47l85_probe() [all …]
|
A D | cs47l90.c | 117 struct madera *madera = priv->madera; in cs47l90_adsp_power_ev() local 123 dev_err(madera->dev, in cs47l90_adsp_power_ev() 2367 struct madera *madera = priv->madera; in cs47l90_open() local 2375 dev_err(madera->dev, in cs47l90_open() 2388 struct madera *madera = priv->madera; in cs47l90_adsp2_irq() local 2416 struct madera *madera = cs47l90->core.madera; in cs47l90_component_probe() local 2451 struct madera *madera = cs47l90->core.madera; in cs47l90_component_remove() local 2455 madera->dapm = NULL; in cs47l90_component_remove() 2505 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in cs47l90_probe() local 2512 if (!madera->irq_dev) { in cs47l90_probe() [all …]
|
/linux/drivers/irqchip/ |
A D | irq-madera.c | 103 struct madera *madera = dev_get_drvdata(dev->parent); in madera_suspend() local 119 struct madera *madera = dev_get_drvdata(dev->parent); in madera_suspend_noirq() local 124 enable_irq(madera->irq); in madera_suspend_noirq() 131 struct madera *madera = dev_get_drvdata(dev->parent); in madera_resume_noirq() local 146 struct madera *madera = dev_get_drvdata(dev->parent); in madera_resume() local 151 enable_irq(madera->irq); in madera_resume() 165 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_irq_probe() local 214 ret = regmap_add_irq_chip(madera->regmap, madera->irq, IRQF_ONESHOT, 0, in madera_irq_probe() 229 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_irq_remove() local 235 madera->irq_dev = NULL; in madera_irq_remove() [all …]
|
/linux/include/linux/irqchip/ |
A D | irq-madera.h | 94 static inline int madera_get_irq_mapping(struct madera *madera, int irq) in madera_get_irq_mapping() argument 96 if (!madera->irq_dev) in madera_get_irq_mapping() 99 return regmap_irq_get_virq(madera->irq_data, irq); in madera_get_irq_mapping() 102 static inline int madera_request_irq(struct madera *madera, int irq, in madera_request_irq() argument 106 irq = madera_get_irq_mapping(madera, irq); in madera_request_irq() 114 static inline void madera_free_irq(struct madera *madera, int irq, void *data) in madera_free_irq() argument 116 irq = madera_get_irq_mapping(madera, irq); in madera_free_irq() 123 static inline int madera_set_irq_wake(struct madera *madera, int irq, int on) in madera_set_irq_wake() argument 125 irq = madera_get_irq_mapping(madera, irq); in madera_set_irq_wake()
|
/linux/drivers/pinctrl/cirrus/ |
A D | Makefile | 5 pinctrl-madera-objs := pinctrl-madera-core.o 7 pinctrl-madera-objs += pinctrl-cs47l15.o 10 pinctrl-madera-objs += pinctrl-cs47l35.o 13 pinctrl-madera-objs += pinctrl-cs47l85.o 16 pinctrl-madera-objs += pinctrl-cs47l90.o 19 pinctrl-madera-objs += pinctrl-cs47l92.o 22 obj-$(CONFIG_PINCTRL_MADERA) += pinctrl-madera.o
|
A D | pinctrl-madera-core.c | 612 struct madera *madera = priv->madera; in madera_mux_set_mux() local 641 ret = regmap_update_bits(madera->regmap, reg, in madera_mux_set_mux() 659 ret = regmap_update_bits(madera->regmap, in madera_mux_set_mux() 677 struct madera *madera = priv->madera; in madera_gpio_set_direction() local 699 struct madera *madera = priv->madera; in madera_gpio_request_enable() local 716 struct madera *madera = priv->madera; in madera_gpio_disable_free() local 997 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_pin_probe() local 1012 priv->madera = madera; in madera_pin_probe() 1013 pdev->dev.of_node = madera->dev->of_node; in madera_pin_probe() 1015 switch (madera->type) { in madera_pin_probe() [all …]
|
A D | pinctrl-madera.h | 25 struct madera *madera; member
|
/linux/drivers/regulator/ |
A D | arizona-micsupp.c | 346 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_micsupp_probe() local 353 micsupp->regmap = madera->regmap; in madera_micsupp_probe() 354 micsupp->dapm = &madera->dapm; in madera_micsupp_probe() 355 micsupp->dev = madera->dev; in madera_micsupp_probe() 359 &madera->pdata.micvdd); in madera_micsupp_probe()
|
A D | arizona-ldo1.c | 354 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_ldo1_probe() local 363 ldo1->regmap = madera->regmap; in madera_ldo1_probe() 368 &madera->pdata.ldo1, in madera_ldo1_probe() 373 madera->internal_dcvdd = !external_dcvdd; in madera_ldo1_probe()
|
/linux/Documentation/devicetree/bindings/mfd/ |
A D | cirrus,madera.yaml | 4 $id: http://devicetree.org/schemas/mfd/cirrus,madera.yaml# 18 bindings/pinctrl/cirrus,madera.yaml 20 bindings/sound/cirrus,madera.yaml 23 - $ref: /schemas/pinctrl/cirrus,madera.yaml# 25 - $ref: /schemas/sound/cirrus,madera.yaml# 234 #include <dt-bindings/sound/madera.h>
|
/linux/Documentation/devicetree/bindings/sound/ |
A D | cirrus,madera.yaml | 4 $id: http://devicetree.org/schemas/sound/cirrus,madera.yaml# 17 Documentation/devicetree/bindings/mfd/cirrus,madera.yaml 21 include/dt-bindings/sound/madera.h
|