The TPS6507x family of Texas Instruments power management ICs (pmic) are multi-function chips that include voltage regulation and touch screen controller capabilities. This patch set adds a TPS6507x multi-function device driver and change the TPS6507x regulator driver to use the TPS6507x MFD driver instead of interacting with the chip directly. The changes are needed before a touch screen driver can be added. The patch set applies cleanly to the MFD repository: git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6.git If the MFD and voltage regulator maintainer would prefer I post patches for a different repository, please let me know. The TPS6507x touch screen input driver will be posted to linux-input@vger.kernel.org list. --
Other sub-drivers for the TPS6507x chip will need to use register definition so move it out of the source file and into a header file. Signed-off-by: Todd Fischer <todd.fischer@ridgerun.com> --- drivers/regulator/Kconfig | 1 + drivers/regulator/tps6507x-regulator.c | 60 +-------------- include/linux/mfd/tps6507x.h | 134 ++++++++++++++++++++++++++++++++ 3 files changed, 136 insertions(+), 59 deletions(-) create mode 100644 include/linux/mfd/tps6507x.h diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 04f2e08..f090829 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -190,6 +190,7 @@ config REGULATOR_TPS65023 config REGULATOR_TPS6507X tristate "TI TPS6507X Power regulators" depends on I2C + depends on CPU_FREQ help This driver supports TPS6507X voltage regulator chips. TPS6507X provides three step-down converters and two general-purpose LDO voltage regulators. diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c index c2a9539..91172e3 100644 --- a/drivers/regulator/tps6507x-regulator.c +++ b/drivers/regulator/tps6507x-regulator.c @@ -24,65 +24,7 @@ #include <linux/regulator/machine.h> #include <linux/i2c.h> #include <linux/delay.h> - -/* Register definitions ...
...doesn't match up with this change (which seems bogus anyway). The register move itself seems fine. --
Hi Todd, Mark's review is fairly complete. Please address his concerns, and I'll merge this patchset. Cheers, -- Intel Open Source Technology Centre http://oss.intel.com/ --
This is the second posting of the TPS6507x driver set. I have incorporated Mark Brown's feedback and retested. Patches 3 and 5 have been combined so there are only 4 patches in the series now. The TPS6507x family of Texas Instruments power management ICs (pmic) are multi-function chips that include voltage regulation and touch screen controller capabilities. This patch set adds a TPS6507x multi-function device driver and change the TPS6507x regulator driver to use the TPS6507x MFD driver instead of interacting with the chip directly. The changes are needed before a touch screen driver can be added. The patch set applies cleanly to the MFD repository: git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6.git If the MFD and voltage regulator maintainer would prefer I post patches for a different repository, please let me know. The TPS6507x touch screen input driver will be posted to linux-input@vger.kernel.org list. --
