/drivers/mfd/ |
D | arizona-core.c | 36 int arizona_clk32k_enable(struct arizona *arizona) in arizona_clk32k_enable() argument 40 mutex_lock(&arizona->clk_lock); in arizona_clk32k_enable() 42 arizona->clk32k_ref++; in arizona_clk32k_enable() 44 if (arizona->clk32k_ref == 1) { in arizona_clk32k_enable() 45 switch (arizona->pdata.clk32k_src) { in arizona_clk32k_enable() 47 ret = pm_runtime_resume_and_get(arizona->dev); in arizona_clk32k_enable() 50 ret = clk_prepare_enable(arizona->mclk[ARIZONA_MCLK1]); in arizona_clk32k_enable() 52 pm_runtime_put_sync(arizona->dev); in arizona_clk32k_enable() 57 ret = clk_prepare_enable(arizona->mclk[ARIZONA_MCLK2]); in arizona_clk32k_enable() 63 ret = regmap_update_bits(arizona->regmap, ARIZONA_CLOCK_32K_1, in arizona_clk32k_enable() [all …]
|
D | arizona-irq.c | 29 static int arizona_map_irq(struct arizona *arizona, int irq) in arizona_map_irq() argument 33 if (arizona->aod_irq_chip) { in arizona_map_irq() 34 ret = regmap_irq_get_virq(arizona->aod_irq_chip, irq); in arizona_map_irq() 39 return regmap_irq_get_virq(arizona->irq_chip, irq); in arizona_map_irq() 42 int arizona_request_irq(struct arizona *arizona, int irq, char *name, in arizona_request_irq() argument 45 irq = arizona_map_irq(arizona, irq); in arizona_request_irq() 54 void arizona_free_irq(struct arizona *arizona, int irq, void *data) in arizona_free_irq() argument 56 irq = arizona_map_irq(arizona, irq); in arizona_free_irq() 64 int arizona_set_irq_wake(struct arizona *arizona, int irq, int on) in arizona_set_irq_wake() argument 66 irq = arizona_map_irq(arizona, irq); in arizona_set_irq_wake() [all …]
|
D | arizona-spi.c | 52 static int arizona_spi_acpi_windows_probe(struct arizona *arizona) in arizona_spi_acpi_windows_probe() argument 59 devm_acpi_dev_add_driver_gpios(arizona->dev, arizona_acpi_gpios); in arizona_spi_acpi_windows_probe() 62 lookup = devm_kzalloc(arizona->dev, in arizona_spi_acpi_windows_probe() 68 lookup->dev_id = dev_name(arizona->dev); in arizona_spi_acpi_windows_probe() 72 ret = devm_add_action_or_reset(arizona->dev, arizona_spi_acpi_remove_lookup, lookup); in arizona_spi_acpi_windows_probe() 77 status = acpi_evaluate_object(ACPI_HANDLE(arizona->dev), "CLKE", NULL, NULL); in arizona_spi_acpi_windows_probe() 79 dev_warn(arizona->dev, "Failed to enable 32KHz clk ACPI error %d\n", status); in arizona_spi_acpi_windows_probe() 85 static int arizona_spi_acpi_android_probe(struct arizona *arizona) in arizona_spi_acpi_android_probe() argument 94 arizona->pdata.reset = devm_gpiod_get(arizona->dev, "reset", GPIOD_OUT_LOW); in arizona_spi_acpi_android_probe() 95 if (IS_ERR(arizona->pdata.reset)) { in arizona_spi_acpi_android_probe() [all …]
|
D | arizona-i2c.c | 27 struct arizona *arizona; in arizona_i2c_probe() local 68 arizona = devm_kzalloc(&i2c->dev, sizeof(*arizona), GFP_KERNEL); in arizona_i2c_probe() 69 if (arizona == NULL) in arizona_i2c_probe() 72 arizona->regmap = devm_regmap_init_i2c(i2c, regmap_config); in arizona_i2c_probe() 73 if (IS_ERR(arizona->regmap)) { in arizona_i2c_probe() 74 ret = PTR_ERR(arizona->regmap); in arizona_i2c_probe() 80 arizona->type = type; in arizona_i2c_probe() 81 arizona->dev = &i2c->dev; in arizona_i2c_probe() 82 arizona->irq = i2c->irq; in arizona_i2c_probe() 84 return arizona_dev_init(arizona); in arizona_i2c_probe() [all …]
|
D | arizona.h | 46 int arizona_dev_init(struct arizona *arizona); 47 int arizona_dev_exit(struct arizona *arizona); 48 int arizona_irq_init(struct arizona *arizona); 49 int arizona_irq_exit(struct arizona *arizona);
|
D | Makefile | 37 arizona-objs := arizona-core.o arizona-irq.o 38 obj-$(CONFIG_MFD_ARIZONA) += arizona.o 39 obj-$(CONFIG_MFD_ARIZONA_I2C) += arizona-i2c.o 40 obj-$(CONFIG_MFD_ARIZONA_SPI) += arizona-spi.o 42 arizona-objs += wm5102-tables.o 45 arizona-objs += wm5110-tables.o 48 arizona-objs += wm8997-tables.o 51 arizona-objs += wm8998-tables.o 54 arizona-objs += cs47l24-tables.o
|
D | wm5110-tables.c | 260 int wm5110_patch(struct arizona *arizona) in wm5110_patch() argument 262 switch (arizona->rev) { in wm5110_patch() 264 return regmap_register_patch(arizona->regmap, in wm5110_patch() 268 return regmap_register_patch(arizona->regmap, in wm5110_patch() 272 return regmap_register_patch(arizona->regmap, in wm5110_patch() 276 return regmap_register_patch(arizona->regmap, in wm5110_patch() 1863 struct arizona *arizona = dev_get_drvdata(dev); in wm5110_is_adsp_memory() local 1865 switch (arizona->rev) { in wm5110_is_adsp_memory()
|
D | wm8997-tables.c | 28 int wm8997_patch(struct arizona *arizona) in wm8997_patch() argument 30 switch (arizona->rev) { in wm8997_patch() 32 return regmap_register_patch(arizona->regmap, in wm8997_patch()
|
D | wm5102-tables.c | 78 int wm5102_patch(struct arizona *arizona) in wm5102_patch() argument 83 switch (arizona->rev) { in wm5102_patch() 93 return regmap_multi_reg_write_bypassed(arizona->regmap, in wm5102_patch()
|
D | wm8998-tables.c | 43 int wm8998_patch(struct arizona *arizona) in wm8998_patch() argument 45 return regmap_register_patch(arizona->regmap, in wm8998_patch()
|
D | cs47l24-tables.c | 27 int cs47l24_patch(struct arizona *arizona) in cs47l24_patch() argument 29 return regmap_register_patch(arizona->regmap, in cs47l24_patch()
|
/drivers/input/misc/ |
D | arizona-haptics.c | 23 struct arizona *arizona; member 36 struct arizona *arizona = haptics->arizona; in arizona_haptics_work() local 38 snd_soc_dapm_to_component(arizona->dapm); in arizona_haptics_work() 41 if (!haptics->arizona->dapm) { in arizona_haptics_work() 42 dev_err(arizona->dev, "No DAPM context\n"); in arizona_haptics_work() 47 ret = regmap_update_bits(arizona->regmap, in arizona_haptics_work() 52 dev_err(arizona->dev, "Failed to set intensity: %d\n", in arizona_haptics_work() 58 ret = regmap_update_bits(arizona->regmap, in arizona_haptics_work() 63 dev_err(arizona->dev, "Failed to start haptics: %d\n", in arizona_haptics_work() 70 dev_err(arizona->dev, "Failed to start HAPTICS: %d\n", in arizona_haptics_work() [all …]
|
D | Makefile | 19 obj-$(CONFIG_INPUT_ARIZONA_HAPTICS) += arizona-haptics.o
|
D | Kconfig | 95 module will be called arizona-haptics.
|
/drivers/gpio/ |
D | gpio-arizona.c | 22 struct arizona *arizona; member 29 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_direction_in() local 34 ret = regmap_update_bits_check(arizona->regmap, in arizona_gpio_direction_in() 52 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_get() local 57 ret = regmap_read(arizona->regmap, reg, &val); in arizona_gpio_get() 71 ret = regcache_drop_region(arizona->regmap, reg, reg); in arizona_gpio_get() 79 ret = regmap_read(arizona->regmap, reg, &val); in arizona_gpio_get() 99 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_direction_out() local 104 ret = regmap_read(arizona->regmap, ARIZONA_GPIO1_CTRL + offset, &val); in arizona_gpio_direction_out() 120 return regmap_update_bits(arizona->regmap, ARIZONA_GPIO1_CTRL + offset, in arizona_gpio_direction_out() [all …]
|
D | Makefile | 35 obj-$(CONFIG_GPIO_ARIZONA) += gpio-arizona.o
|
/drivers/regulator/ |
D | arizona-micsupp.c | 309 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in arizona_micsupp_probe() local 317 micsupp->regmap = arizona->regmap; in arizona_micsupp_probe() 318 micsupp->dapm = &arizona->dapm; in arizona_micsupp_probe() 319 micsupp->dev = arizona->dev; in arizona_micsupp_probe() 328 switch (arizona->type) { in arizona_micsupp_probe() 341 &arizona->pdata.micvdd); in arizona_micsupp_probe()
|
D | arizona-ldo1.c | 297 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in arizona_ldo1_probe() local 307 ldo1->regmap = arizona->regmap; in arizona_ldo1_probe() 314 switch (arizona->type) { in arizona_ldo1_probe() 334 &arizona->pdata.ldo1, in arizona_ldo1_probe() 337 arizona->external_dcvdd = external_dcvdd; in arizona_ldo1_probe()
|
D | Makefile | 24 obj-$(CONFIG_REGULATOR_ARIZONA_LDO1) += arizona-ldo1.o 25 obj-$(CONFIG_REGULATOR_ARIZONA_MICSUPP) += arizona-micsupp.o
|