regulator: support PMIC mc13892
PATCH v4 1/1 regulator: support PMIC mc13892
Some update according to comments of v3.
PATCH v4 1/1 regulator: support PMIC mc13892
From: Yong Shen <[email protected]>
add support for mc13892, tested on mx51 babbage board
--- drivers/regulator/Kconfig | 8 + drivers/regulator/Makefile | 1 + drivers/regulator/mc13892-regulator.c | 635 +++++++++++++++++++++++++++++++++ include/linux/mfd/mc13892.h | 39 ++ 4 files changed, 683 insertions(+), 0 deletions(-) create mode 100644 drivers/regulator/mc13892-regulator.c create mode 100644 include/linux/mfd/mc13892.h
drivers/regulator/Kconfig +8 -0
@@ -197,6 +197,14 @@ config REGULATOR_MC13783 Say y here to support the regulators found on the Freescale MC13783 PMIC. +config REGULATOR_MC13892 + tristate "Support regulators on Freescale MC13892 PMIC" + depends on MFD_MC13XXX + select REGULATOR_MC13XXX_CORE + help + Say y here to support the regulators found on the Freescale MC13892 + PMIC. + config REGULATOR_AB3100 tristate "ST-Ericsson AB3100 Regulator functions" depends on AB3100_CORE
drivers/regulator/Makefile +1 -0
@@ -30,6 +30,7 @@ obj-$(CONFIG_REGULATOR_DA903X) += da903x.o obj-$(CONFIG_REGULATOR_PCF50633) += pcf50633-regulator.o obj-$(CONFIG_REGULATOR_PCAP) += pcap-regulator.o obj-$(CONFIG_REGULATOR_MC13783) += mc13783-regulator.o +obj-$(CONFIG_REGULATOR_MC13892) += mc13892-regulator.o obj-$(CONFIG_REGULATOR_MC13XXX_CORE) += mc13xxx-regulator-core.o obj-$(CONFIG_REGULATOR_AB3100) += ab3100.o
drivers/regulator/mc13892-regulator.c new file +635 -0
635 lines not on this page · raw message
include/linux/mfd/mc13892.h new file +39 -0
@@ -0,0 +1,39 @@ +/* +* Copyright 2010 Yong Shen <[email protected]> +* +* This program is free software; you can redistribute it and/or modify it under +* the terms of the GNU General Public License version 2 as published by the +* Free Software Foundation. +*/ + +#ifndef __LINUX_MFD_MC13892_H +#define __LINUX_MFD_MC13892_H + +#include <linux/mfd/mc13xxx.h> + +#define MC13892_SW1 0 +#define MC13892_SW2 1 +#define MC13892_SW3 2 +#define MC13892_SW4 3 +#define MC13892_SWBST 4 +#define MC13892_VIOHI 5 +#define MC13892_VPLL 6 +#define MC13892_VDIG 7 +#define MC13892_VSD 8 +#define MC13892_VUSB2 9 +#define MC13892_VVIDEO 10 +#define MC13892_VAUDIO 11 +#define MC13892_VCAM 12 +#define MC13892_VGEN1 13 +#define MC13892_VGEN2 14 +#define MC13892_VGEN3 15 +#define MC13892_VUSB 16 +#define MC13892_GPO1 17 +#define MC13892_GPO2 18 +#define MC13892_GPO3 19 +#define MC13892_GPO4 20 +#define MC13892_PWGT1SPI 21 +#define MC13892_PWGT2SPI 22 +#define MC13892_VCOINCELL 23 + +#endif
Signature · 1 line
1.7.0.4
Liam Girdwood
AppliedPATCH v4 1/1 regulator: support PMIC mc13892
Quoted 8 lines · yong.shen at freescale.com
From: Yong Shen <[email protected]>
add support for mc13892, tested on mx51 babbage board
Signed-off-by Arnaud Patard <[email protected]>Signed-off-by Yong Shen <[email protected]>Acked-by Sascha Hauer <[email protected]>Acked-by Samuel Ortiz <[email protected]>
Quoted 9 lines
--- drivers/regulator/Kconfig | 8 + drivers/regulator/Makefile | 1 + drivers/regulator/mc13892-regulator.c | 635 +++++++++++++++++++++++++++++++++ include/linux/mfd/mc13892.h | 39 ++ 4 files changed, 683 insertions(+), 0 deletions(-) create mode 100644 drivers/regulator/mc13892-regulator.c create mode 100644 include/linux/mfd/mc13892.h
Applied.
Can you check regulator for-next as one of your previous patches may have been missed.
Thanks
Liam
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
PATCH v4 1/1 regulator: support PMIC mc13892
Quoted 19 lines · Liam Girdwood
Quoted 8 lines · yong.shen at freescale.com
From: Yong Shen <[email protected]>
add support for mc13892, tested on mx51 babbage board
Signed-off-by Arnaud Patard <[email protected]>Signed-off-by Yong Shen <[email protected]>Acked-by Sascha Hauer <[email protected]>Acked-by Samuel Ortiz <[email protected]>Quoted 9 lines
---
?drivers/regulator/Kconfig ? ? ? ? ? ? | ? ?8 + ?drivers/regulator/Makefile ? ? ? ? ? ?| ? ?1 + ?drivers/regulator/mc13892-regulator.c | ?635 +++++++++++++++++++++++++++++++++ ?include/linux/mfd/mc13892.h ? ? ? ? ? | ? 39 ++?4 files changed, 683 insertions(+), 0 deletions(-) ?create mode 100644
drivers/regulator/mc13892-regulator.c?create mode 100644include/linux/mfd/mc13892.h
Quoted 5 lines
Applied.
Can you check regulator for-next as one of your previous patches may have been missed.
There were two patches posted previously, they are:
Change-the-register-name-definitions-for-mc13783 make-mc13783-regulator-code-generic
I think these two should be applied before mc13892 patch.
Since they may not be applied on your tree, I will resend them based on your 'for-next' tree.
Cheers
Yong