/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | motorola-cpcap.c | 19 #include <linux/mfd/motorola-cpcap.h> 61 static int cpcap_check_revision(struct cpcap_ddata *cpcap) in cpcap_check_revision() argument 66 ret = cpcap_get_vendor(&cpcap->spi->dev, cpcap->regmap, &vendor); in cpcap_check_revision() 70 ret = cpcap_get_revision(&cpcap->spi->dev, cpcap->regmap, &rev); in cpcap_check_revision() 74 dev_info(&cpcap->spi->dev, "CPCAP vendor: %s rev: %i.%i (%x)\n", in cpcap_check_revision() 80 dev_info(&cpcap->spi->dev, in cpcap_check_revision() 94 .name = "cpcap-m2", 103 .name = "cpcap 122 cpcap_init_one_regmap_irq(struct cpcap_ddata *cpcap, struct regmap_irq *rirq, int irq_base, int irq) cpcap_init_one_regmap_irq() argument 140 cpcap_init_irq_chip(struct cpcap_ddata *cpcap, int irq_chip, int irq_start, int nr_irqs) cpcap_init_irq_chip() argument 169 cpcap_init_irq(struct cpcap_ddata *cpcap) cpcap_init_irq() argument 289 struct cpcap_ddata *cpcap; cpcap_probe() local [all...] |
H A D | Makefile | 126 obj-$(CONFIG_MFD_CPCAP) += motorola-cpcap.o
|
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | motorola-cpcap.c | 19 #include <linux/mfd/motorola-cpcap.h> 61 static int cpcap_check_revision(struct cpcap_ddata *cpcap) in cpcap_check_revision() argument 66 ret = cpcap_get_vendor(&cpcap->spi->dev, cpcap->regmap, &vendor); in cpcap_check_revision() 70 ret = cpcap_get_revision(&cpcap->spi->dev, cpcap->regmap, &rev); in cpcap_check_revision() 74 dev_info(&cpcap->spi->dev, "CPCAP vendor: %s rev: %i.%i (%x)\n", in cpcap_check_revision() 80 dev_info(&cpcap->spi->dev, in cpcap_check_revision() 94 .name = "cpcap-m2", 103 .name = "cpcap 122 cpcap_init_one_regmap_irq(struct cpcap_ddata *cpcap, struct regmap_irq *rirq, int irq_base, int irq) cpcap_init_one_regmap_irq() argument 140 cpcap_init_irq_chip(struct cpcap_ddata *cpcap, int irq_chip, int irq_start, int nr_irqs) cpcap_init_irq_chip() argument 169 cpcap_init_irq(struct cpcap_ddata *cpcap) cpcap_init_irq() argument 294 struct cpcap_ddata *cpcap; cpcap_probe() local [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | cpcap.c | 14 #include <linux/mfd/motorola-cpcap.h> 269 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_st_workaround() local 273 if (cpcap->vendor != CPCAP_VENDOR_ST) in cpcap_st_workaround() 278 err = regmap_write(cpcap->regmap, CPCAP_REG_TEST, in cpcap_st_workaround() 282 err = regmap_write(cpcap->regmap, CPCAP_REG_ST_TEST1, in cpcap_st_workaround() 288 err = regmap_write(cpcap->regmap, CPCAP_REG_ST_TEST1, in cpcap_st_workaround() 292 err = regmap_write(cpcap->regmap, CPCAP_REG_TEST, in cpcap_st_workaround() 370 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_output_mux_get_enum() local 376 err = regmap_read(cpcap->regmap, CPCAP_REG_RXCOA, ®_voice); in cpcap_output_mux_get_enum() 379 err = regmap_read(cpcap in cpcap_output_mux_get_enum() 413 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_output_mux_put_enum() local 458 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_input_right_mux_get_enum() local 497 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_input_right_mux_put_enum() local 542 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_input_left_mux_get_enum() local 573 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_input_left_mux_put_enum() local 958 cpcap_set_sysclk(struct cpcap_audio *cpcap, enum cpcap_dai dai, int clk_id, int freq) cpcap_set_sysclk() argument 1044 cpcap_set_samprate(struct cpcap_audio *cpcap, enum cpcap_dai dai, int samplerate) cpcap_set_samprate() argument 1128 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_hifi_hw_params() local 1139 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_hifi_set_dai_sysclk() local 1150 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_hifi_set_dai_fmt() local 1231 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_hifi_set_mute() local 1259 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_voice_hw_params() local 1297 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_voice_set_dai_sysclk() local 1308 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_voice_set_dai_fmt() local 1391 cpcap_voice_call(struct cpcap_audio *cpcap, struct snd_soc_dai *dai, bool voice_call) cpcap_voice_call() argument 1462 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_voice_set_tdm_slot() local 1500 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_voice_set_mute() local 1557 cpcap_dai_mux(struct cpcap_audio *cpcap, bool swap_dai_configuration) cpcap_dai_mux() argument 1592 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_audio_reset() local 1631 struct cpcap_audio *cpcap; cpcap_soc_probe() local [all...] |
/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A D | cpcap.c | 14 #include <linux/mfd/motorola-cpcap.h> 260 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_st_workaround() local 264 if (cpcap->vendor != CPCAP_VENDOR_ST) in cpcap_st_workaround() 269 err = regmap_write(cpcap->regmap, CPCAP_REG_TEST, in cpcap_st_workaround() 273 err = regmap_write(cpcap->regmap, CPCAP_REG_ST_TEST1, in cpcap_st_workaround() 279 err = regmap_write(cpcap->regmap, CPCAP_REG_ST_TEST1, in cpcap_st_workaround() 283 err = regmap_write(cpcap->regmap, CPCAP_REG_TEST, in cpcap_st_workaround() 361 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_output_mux_get_enum() local 367 err = regmap_read(cpcap->regmap, CPCAP_REG_RXCOA, ®_voice); in cpcap_output_mux_get_enum() 370 err = regmap_read(cpcap in cpcap_output_mux_get_enum() 404 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_output_mux_put_enum() local 449 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_input_right_mux_get_enum() local 488 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_input_right_mux_put_enum() local 533 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_input_left_mux_get_enum() local 564 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_input_left_mux_put_enum() local 949 cpcap_set_sysclk(struct cpcap_audio *cpcap, enum cpcap_dai dai, int clk_id, int freq) cpcap_set_sysclk() argument 1035 cpcap_set_samprate(struct cpcap_audio *cpcap, enum cpcap_dai dai, int samplerate) cpcap_set_samprate() argument 1119 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_hifi_hw_params() local 1130 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_hifi_set_dai_sysclk() local 1141 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_hifi_set_dai_fmt() local 1222 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_hifi_set_mute() local 1250 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_voice_hw_params() local 1288 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_voice_set_dai_sysclk() local 1299 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_voice_set_dai_fmt() local 1378 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_voice_set_mute() local 1434 cpcap_dai_mux(struct cpcap_audio *cpcap, bool swap_dai_configuration) cpcap_dai_mux() argument 1469 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); cpcap_audio_reset() local 1508 struct cpcap_audio *cpcap; cpcap_soc_probe() local [all...] |
H A D | Makefile | 46 snd-soc-cpcap-objs := cpcap.o 356 obj-$(CONFIG_SND_SOC_CPCAP) += snd-soc-cpcap.o
|
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-cpcap.c | 5 * Based on cpcap-regulator.c from Motorola Linux kernel tree 26 #include <linux/mfd/motorola-cpcap.h> 51 static void cpcap2rtc_time(struct rtc_time *rtc, struct cpcap_time *cpcap) in cpcap2rtc_time() argument 56 tod = (cpcap->tod1 & TOD1_MASK) | ((cpcap->tod2 & TOD2_MASK) << 8); in cpcap2rtc_time() 57 time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); in cpcap2rtc_time() 62 static void rtc2cpcap_time(struct cpcap_time *cpcap, struct rtc_time *rtc) in rtc2cpcap_time() argument 68 cpcap->day = time / SECS_PER_DAY; in rtc2cpcap_time() 70 cpcap->tod2 = (time >> 8) & TOD2_MASK; in rtc2cpcap_time() 71 cpcap in rtc2cpcap_time() [all...] |
H A D | Makefile | 43 obj-$(CONFIG_RTC_DRV_CPCAP) += rtc-cpcap.o
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-cpcap.c | 5 * Based on cpcap-regulator.c from Motorola Linux kernel tree 26 #include <linux/mfd/motorola-cpcap.h> 51 static void cpcap2rtc_time(struct rtc_time *rtc, struct cpcap_time *cpcap) in cpcap2rtc_time() argument 56 tod = (cpcap->tod1 & TOD1_MASK) | ((cpcap->tod2 & TOD2_MASK) << 8); in cpcap2rtc_time() 57 time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); in cpcap2rtc_time() 62 static void rtc2cpcap_time(struct cpcap_time *cpcap, struct rtc_time *rtc) in rtc2cpcap_time() argument 68 cpcap->day = time / SECS_PER_DAY; in rtc2cpcap_time() 70 cpcap->tod2 = (time >> 8) & TOD2_MASK; in rtc2cpcap_time() 71 cpcap in rtc2cpcap_time() [all...] |
H A D | Makefile | 43 obj-$(CONFIG_RTC_DRV_CPCAP) += rtc-cpcap.o
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | Makefile | 26 obj-$(CONFIG_BATTERY_CPCAP) += cpcap-battery.o 64 obj-$(CONFIG_CHARGER_CPCAP) += cpcap-charger.o
|
H A D | cpcap-battery.c | 34 #include <linux/mfd/motorola-cpcap.h> 58 * the coulomb counter like cpcap does. So for now, we use the twl6030 style 275 * cpcap_battery_read_accumulated - reads cpcap coulomb counter 337 * cpcap_battery_cc_get_avg_current - read cpcap coulumb counter 338 * @ddata: cpcap battery driver device data 834 .compatible = "motorola,cpcap-battery",
|
H A D | cpcap-charger.c | 31 #include <linux/mfd/motorola-cpcap.h> 38 * similar. Also see the Motorola Linux kernel cpcap-regbits.h. CPCAP_REG_CHRGR_1 820 .compatible = "motorola,mapphone-cpcap-charger", 917 .name = "cpcap-charger", 927 MODULE_ALIAS("platform:cpcap-charger");
|
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | Makefile | 26 obj-$(CONFIG_BATTERY_CPCAP) += cpcap-battery.o 66 obj-$(CONFIG_CHARGER_CPCAP) += cpcap-charger.o
|
/kernel/linux/linux-5.10/drivers/input/misc/ |
H A D | cpcap-pwrbutton.c | 25 #include <linux/mfd/motorola-cpcap.h> 74 button->idev->name = "cpcap-pwrbutton"; in cpcap_power_button_probe() 75 button->idev->phys = "cpcap-pwrbutton/input0"; in cpcap_power_button_probe() 99 { .compatible = "motorola,cpcap-pwrbutton" }, 108 .name = "cpcap-pwrbutton", 114 MODULE_ALIAS("platform:cpcap-pwrbutton");
|
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | cpcap-pwrbutton.c | 17 #include <linux/mfd/motorola-cpcap.h> 70 button->idev->name = "cpcap-pwrbutton"; in cpcap_power_button_probe() 71 button->idev->phys = "cpcap-pwrbutton/input0"; in cpcap_power_button_probe() 94 { .compatible = "motorola,cpcap-pwrbutton" }, 103 .name = "cpcap-pwrbutton", 109 MODULE_ALIAS("platform:cpcap-pwrbutton");
|
/kernel/linux/linux-5.10/drivers/leds/ |
H A D | leds-cpcap.c | 7 #include <linux/mfd/motorola-cpcap.h> 150 { .compatible = "motorola,cpcap-led-red", .data = &cpcap_led_red }, 151 { .compatible = "motorola,cpcap-led-green", .data = &cpcap_led_green }, 152 { .compatible = "motorola,cpcap-led-blue", .data = &cpcap_led_blue }, 153 { .compatible = "motorola,cpcap-led-adl", .data = &cpcap_led_adl }, 154 { .compatible = "motorola,cpcap-led-cp", .data = &cpcap_led_cp }, 218 .name = "cpcap-led",
|
/kernel/linux/linux-6.6/drivers/leds/ |
H A D | leds-cpcap.c | 7 #include <linux/mfd/motorola-cpcap.h> 150 { .compatible = "motorola,cpcap-led-red", .data = &cpcap_led_red }, 151 { .compatible = "motorola,cpcap-led-green", .data = &cpcap_led_green }, 152 { .compatible = "motorola,cpcap-led-blue", .data = &cpcap_led_blue }, 153 { .compatible = "motorola,cpcap-led-adl", .data = &cpcap_led_adl }, 154 { .compatible = "motorola,cpcap-led-cp", .data = &cpcap_led_cp }, 218 .name = "cpcap-led",
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | Makefile | 39 obj-$(CONFIG_CPCAP_ADC) += cpcap-adc.o
|
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | Makefile | 41 obj-$(CONFIG_CPCAP_ADC) += cpcap-adc.o
|
/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
H A D | Makefile | 34 obj-y += pmic-cpcap.o
|
/kernel/linux/linux-6.6/arch/arm/mach-omap2/ |
H A D | Makefile | 33 obj-y += pmic-cpcap.o
|
/kernel/linux/linux-5.10/drivers/regulator/ |
H A D | cpcap-regulator.c | 4 * Based on cpcap-regulator.c from Motorola Linux kernel tree 28 #include <linux/mfd/motorola-cpcap.h> 491 .compatible = "motorola,cpcap-regulator", 494 .compatible = "motorola,mapphone-cpcap-regulator", 498 .compatible = "motorola,xoom-cpcap-regulator", 563 .name = "cpcap-regulator", 570 MODULE_ALIAS("platform:cpcap-regulator");
|
/kernel/linux/linux-6.6/drivers/regulator/ |
H A D | cpcap-regulator.c | 5 * Based on cpcap-regulator.c from Motorola Linux kernel tree 20 #include <linux/mfd/motorola-cpcap.h> 483 .compatible = "motorola,cpcap-regulator", 486 .compatible = "motorola,mapphone-cpcap-regulator", 490 .compatible = "motorola,xoom-cpcap-regulator", 555 .name = "cpcap-regulator", 563 MODULE_ALIAS("platform:cpcap-regulator");
|
/kernel/linux/linux-5.10/drivers/phy/motorola/ |
H A D | phy-cpcap-usb.c | 6 * board-mapphone-usb.c and cpcap-usb-det.c: 34 #include <linux/mfd/motorola-cpcap.h> 607 .compatible = "motorola,cpcap-usb-phy", 610 .compatible = "motorola,mapphone-cpcap-usb-phy", 726 .name = "cpcap-usb-phy",
|