mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
ARM: OMAP: SmartReflex: Move smartreflex driver to drivers/
After a clean-up of the interfaces the OMAP Smartreflex IP driver is now a generic driver. Move it to drivers/power/avs/. The build is controlled by the following Kconfig options: . CONFIG_POWER_AVS: general knob for Adaptive Voltage Scaling support, . CONFIG_POWER_AVS_OMAP: AVS(Adaptive Voltage Scaling) support on OMAP containing the version 1 or version 2 of the SmartReflex IP, . CONFIG_POWER_AVS_OMAP_CLASS3: Class 3 implementation of Smartreflex. Signed-off-by: Jean Pihet <[email protected]> Signed-off-by: J Keerthy <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Kevin Hilman <[email protected]> Signed-off-by: Kevin Hilman <[email protected]>
This commit is contained in:
parent
7fb149ffe3
commit
21ff63ad13
7 changed files with 22 additions and 25 deletions
|
|
@ -308,3 +308,5 @@ config AB8500_BATTERY_THERM_ON_BATCTRL
|
|||
Say Y to enable battery temperature measurements using
|
||||
thermistor connected on BATCTRL ADC.
|
||||
endif # POWER_SUPPLY
|
||||
|
||||
source "drivers/power/avs/Kconfig"
|
||||
|
|
|
|||
|
|
@ -43,4 +43,5 @@ obj-$(CONFIG_CHARGER_GPIO) += gpio-charger.o
|
|||
obj-$(CONFIG_CHARGER_MANAGER) += charger-manager.o
|
||||
obj-$(CONFIG_CHARGER_MAX8997) += max8997_charger.o
|
||||
obj-$(CONFIG_CHARGER_MAX8998) += max8998_charger.o
|
||||
obj-$(CONFIG_POWER_AVS) += avs/
|
||||
obj-$(CONFIG_CHARGER_SMB347) += smb347-charger.o
|
||||
|
|
|
|||
12
drivers/power/avs/Kconfig
Normal file
12
drivers/power/avs/Kconfig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
menuconfig POWER_AVS
|
||||
tristate "Adaptive Voltage Scaling class support"
|
||||
help
|
||||
AVS is a power management technique which finely controls the
|
||||
operating voltage of a device in order to optimize (i.e. reduce)
|
||||
its power consumption.
|
||||
At a given operating point the voltage is adapted depending on
|
||||
static factors (chip manufacturing process) and dynamic factors
|
||||
(temperature depending performance).
|
||||
AVS is also called SmartReflex on OMAP devices.
|
||||
|
||||
Say Y here to enable Adaptive Voltage Scaling class support.
|
||||
1
drivers/power/avs/Makefile
Normal file
1
drivers/power/avs/Makefile
Normal file
|
|
@ -0,0 +1 @@
|
|||
obj-$(CONFIG_POWER_AVS_OMAP) += smartreflex.o
|
||||
1126
drivers/power/avs/smartreflex.c
Normal file
1126
drivers/power/avs/smartreflex.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue