aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/configs/multi_v7_defconfig2
-rw-r--r--arch/arm/configs/pxa_defconfig1
-rw-r--r--arch/arm/configs/qcom_defconfig1
-rw-r--r--drivers/leds/Kconfig2
-rw-r--r--drivers/mfd/Kconfig14
-rw-r--r--drivers/mfd/Makefile2
-rw-r--r--drivers/mfd/qcom-pm8xxx.c (renamed from drivers/mfd/pm8921-core.c)42
7 files changed, 29 insertions, 35 deletions
diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index 437d0740dec6..4280de7b9b4e 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -489,7 +489,7 @@ CONFIG_MFD_MAX8907=y
489CONFIG_MFD_MAX8997=y 489CONFIG_MFD_MAX8997=y
490CONFIG_MFD_MAX8998=y 490CONFIG_MFD_MAX8998=y
491CONFIG_MFD_RK808=y 491CONFIG_MFD_RK808=y
492CONFIG_MFD_PM8921_CORE=y 492CONFIG_MFD_PM8XXX=y
493CONFIG_MFD_QCOM_RPM=y 493CONFIG_MFD_QCOM_RPM=y
494CONFIG_MFD_SPMI_PMIC=y 494CONFIG_MFD_SPMI_PMIC=y
495CONFIG_MFD_SEC_CORE=y 495CONFIG_MFD_SEC_CORE=y
diff --git a/arch/arm/configs/pxa_defconfig b/arch/arm/configs/pxa_defconfig
index a016ecc0084b..e4314b1227a3 100644
--- a/arch/arm/configs/pxa_defconfig
+++ b/arch/arm/configs/pxa_defconfig
@@ -411,7 +411,6 @@ CONFIG_MFD_MAX77693=y
411CONFIG_MFD_MAX8907=m 411CONFIG_MFD_MAX8907=m
412CONFIG_EZX_PCAP=y 412CONFIG_EZX_PCAP=y
413CONFIG_UCB1400_CORE=m 413CONFIG_UCB1400_CORE=m
414CONFIG_MFD_PM8921_CORE=m
415CONFIG_MFD_SEC_CORE=y 414CONFIG_MFD_SEC_CORE=y
416CONFIG_MFD_PALMAS=y 415CONFIG_MFD_PALMAS=y
417CONFIG_MFD_TPS65090=y 416CONFIG_MFD_TPS65090=y
diff --git a/arch/arm/configs/qcom_defconfig b/arch/arm/configs/qcom_defconfig
index c2dff4fd5fc4..74e9cd759b99 100644
--- a/arch/arm/configs/qcom_defconfig
+++ b/arch/arm/configs/qcom_defconfig
@@ -119,7 +119,6 @@ CONFIG_POWER_RESET=y
119CONFIG_POWER_RESET_MSM=y 119CONFIG_POWER_RESET_MSM=y
120CONFIG_THERMAL=y 120CONFIG_THERMAL=y
121CONFIG_MFD_PM8XXX=y 121CONFIG_MFD_PM8XXX=y
122CONFIG_MFD_PM8921_CORE=y
123CONFIG_MFD_QCOM_RPM=y 122CONFIG_MFD_QCOM_RPM=y
124CONFIG_MFD_SPMI_PMIC=y 123CONFIG_MFD_SPMI_PMIC=y
125CONFIG_REGULATOR=y 124CONFIG_REGULATOR=y
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index 7a628c6516f6..86bb1515a00e 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -645,7 +645,7 @@ config LEDS_VERSATILE
645 645
646config LEDS_PM8058 646config LEDS_PM8058
647 tristate "LED Support for the Qualcomm PM8058 PMIC" 647 tristate "LED Support for the Qualcomm PM8058 PMIC"
648 depends on MFD_PM8921_CORE 648 depends on MFD_PM8XXX
649 depends on LEDS_CLASS 649 depends on LEDS_CLASS
650 help 650 help
651 Choose this option if you want to use the LED drivers in 651 Choose this option if you want to use the LED drivers in
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index c6df6442ba2b..1ed0584f494e 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -756,24 +756,20 @@ config UCB1400_CORE
756 module will be called ucb1400_core. 756 module will be called ucb1400_core.
757 757
758config MFD_PM8XXX 758config MFD_PM8XXX
759 tristate 759 tristate "Qualcomm PM8xxx PMIC chips driver"
760
761config MFD_PM8921_CORE
762 tristate "Qualcomm PM8921 PMIC chip"
763 depends on (ARM || HEXAGON) 760 depends on (ARM || HEXAGON)
764 select IRQ_DOMAIN 761 select IRQ_DOMAIN
765 select MFD_CORE 762 select MFD_CORE
766 select MFD_PM8XXX
767 select REGMAP 763 select REGMAP
768 help 764 help
769 If you say yes to this option, support will be included for the 765 If you say yes to this option, support will be included for the
770 built-in PM8921 PMIC chip. 766 built-in PM8xxx PMIC chips.
771 767
772 This is required if your board has a PM8921 and uses its features, 768 This is required if your board has a PM8xxx and uses its features,
773 such as: MPPs, GPIOs, regulators, interrupts, and PWM. 769 such as: MPPs, GPIOs, regulators, interrupts, and PWM.
774 770
775 Say M here if you want to include support for PM8921 chip as a module. 771 Say M here if you want to include support for PM8xxx chips as a
776 This will build a module called "pm8921-core". 772 module. This will build a module called "pm8xxx-core".
777 773
778config MFD_QCOM_RPM 774config MFD_QCOM_RPM
779 tristate "Qualcomm Resource Power Manager (RPM)" 775 tristate "Qualcomm Resource Power Manager (RPM)"
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
index 9834e669d985..7bb5a50127cb 100644
--- a/drivers/mfd/Makefile
+++ b/drivers/mfd/Makefile
@@ -172,7 +172,7 @@ obj-$(CONFIG_MFD_SI476X_CORE) += si476x-core.o
172 172
173obj-$(CONFIG_MFD_CS5535) += cs5535-mfd.o 173obj-$(CONFIG_MFD_CS5535) += cs5535-mfd.o
174obj-$(CONFIG_MFD_OMAP_USB_HOST) += omap-usb-host.o omap-usb-tll.o 174obj-$(CONFIG_MFD_OMAP_USB_HOST) += omap-usb-host.o omap-usb-tll.o
175obj-$(CONFIG_MFD_PM8921_CORE) += pm8921-core.o ssbi.o 175obj-$(CONFIG_MFD_PM8XXX) += qcom-pm8xxx.o ssbi.o
176obj-$(CONFIG_MFD_QCOM_RPM) += qcom_rpm.o 176obj-$(CONFIG_MFD_QCOM_RPM) += qcom_rpm.o
177obj-$(CONFIG_MFD_SPMI_PMIC) += qcom-spmi-pmic.o 177obj-$(CONFIG_MFD_SPMI_PMIC) += qcom-spmi-pmic.o
178obj-$(CONFIG_TPS65911_COMPARATOR) += tps65911-comparator.o 178obj-$(CONFIG_TPS65911_COMPARATOR) += tps65911-comparator.o
diff --git a/drivers/mfd/pm8921-core.c b/drivers/mfd/qcom-pm8xxx.c
index 0e3a2ea25942..7f9620ec61e8 100644
--- a/drivers/mfd/pm8921-core.c
+++ b/drivers/mfd/qcom-pm8xxx.c
@@ -53,7 +53,7 @@
53#define REG_HWREV 0x002 /* PMIC4 revision */ 53#define REG_HWREV 0x002 /* PMIC4 revision */
54#define REG_HWREV_2 0x0E8 /* PMIC4 revision 2 */ 54#define REG_HWREV_2 0x0E8 /* PMIC4 revision 2 */
55 55
56#define PM8921_NR_IRQS 256 56#define PM8XXX_NR_IRQS 256
57 57
58struct pm_irq_chip { 58struct pm_irq_chip {
59 struct regmap *regmap; 59 struct regmap *regmap;
@@ -308,22 +308,22 @@ static const struct regmap_config ssbi_regmap_config = {
308 .reg_write = ssbi_reg_write 308 .reg_write = ssbi_reg_write
309}; 309};
310 310
311static const struct of_device_id pm8921_id_table[] = { 311static const struct of_device_id pm8xxx_id_table[] = {
312 { .compatible = "qcom,pm8018", }, 312 { .compatible = "qcom,pm8018", },
313 { .compatible = "qcom,pm8058", }, 313 { .compatible = "qcom,pm8058", },
314 { .compatible = "qcom,pm8921", }, 314 { .compatible = "qcom,pm8921", },
315 { } 315 { }
316}; 316};
317MODULE_DEVICE_TABLE(of, pm8921_id_table); 317MODULE_DEVICE_TABLE(of, pm8xxx_id_table);
318 318
319static int pm8921_probe(struct platform_device *pdev) 319static int pm8xxx_probe(struct platform_device *pdev)
320{ 320{
321 struct regmap *regmap; 321 struct regmap *regmap;
322 int irq, rc; 322 int irq, rc;
323 unsigned int val; 323 unsigned int val;
324 u32 rev; 324 u32 rev;
325 struct pm_irq_chip *chip; 325 struct pm_irq_chip *chip;
326 unsigned int nirqs = PM8921_NR_IRQS; 326 unsigned int nirqs = PM8XXX_NR_IRQS;
327 327
328 irq = platform_get_irq(pdev, 0); 328 irq = platform_get_irq(pdev, 0);
329 if (irq < 0) 329 if (irq < 0)
@@ -384,46 +384,46 @@ static int pm8921_probe(struct platform_device *pdev)
384 return rc; 384 return rc;
385} 385}
386 386
387static int pm8921_remove_child(struct device *dev, void *unused) 387static int pm8xxx_remove_child(struct device *dev, void *unused)
388{ 388{
389 platform_device_unregister(to_platform_device(dev)); 389 platform_device_unregister(to_platform_device(dev));
390 return 0; 390 return 0;
391} 391}
392 392
393static int pm8921_remove(struct platform_device *pdev) 393static int pm8xxx_remove(struct platform_device *pdev)
394{ 394{
395 int irq = platform_get_irq(pdev, 0); 395 int irq = platform_get_irq(pdev, 0);
396 struct pm_irq_chip *chip = platform_get_drvdata(pdev); 396 struct pm_irq_chip *chip = platform_get_drvdata(pdev);
397 397
398 device_for_each_child(&pdev->dev, NULL, pm8921_remove_child); 398 device_for_each_child(&pdev->dev, NULL, pm8xxx_remove_child);
399 irq_set_chained_handler_and_data(irq, NULL, NULL); 399 irq_set_chained_handler_and_data(irq, NULL, NULL);
400 irq_domain_remove(chip->irqdomain); 400 irq_domain_remove(chip->irqdomain);
401 401
402 return 0; 402 return 0;
403} 403}
404 404
405static struct platform_driver pm8921_driver = { 405static struct platform_driver pm8xxx_driver = {
406 .probe = pm8921_probe, 406 .probe = pm8xxx_probe,
407 .remove = pm8921_remove, 407 .remove = pm8xxx_remove,
408 .driver = { 408 .driver = {
409 .name = "pm8921-core", 409 .name = "pm8xxx-core",
410 .of_match_table = pm8921_id_table, 410 .of_match_table = pm8xxx_id_table,
411 }, 411 },
412}; 412};
413 413
414static int __init pm8921_init(void) 414static int __init pm8xxx_init(void)
415{ 415{
416 return platform_driver_register(&pm8921_driver); 416 return platform_driver_register(&pm8xxx_driver);
417} 417}
418subsys_initcall(pm8921_init); 418subsys_initcall(pm8xxx_init);
419 419
420static void __exit pm8921_exit(void) 420static void __exit pm8xxx_exit(void)
421{ 421{
422 platform_driver_unregister(&pm8921_driver); 422 platform_driver_unregister(&pm8xxx_driver);
423} 423}
424module_exit(pm8921_exit); 424module_exit(pm8xxx_exit);
425 425
426MODULE_LICENSE("GPL v2"); 426MODULE_LICENSE("GPL v2");
427MODULE_DESCRIPTION("PMIC 8921 core driver"); 427MODULE_DESCRIPTION("PMIC 8xxx core driver");
428MODULE_VERSION("1.0"); 428MODULE_VERSION("1.0");
429MODULE_ALIAS("platform:pm8921-core"); 429MODULE_ALIAS("platform:pm8xxx-core");