mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
mfd: qcom-rpm: Driver for the Qualcomm RPM
Driver for the Resource Power Manager (RPM) found in Qualcomm 8660, 8960 and 8064 based devices. The driver exposes resources that child drivers can operate on; to implementing regulator, clock and bus frequency drivers. Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
committed by
Lee Jones
parent
aa0c4b8150
commit
58e214382b
@@ -602,6 +602,20 @@ config MFD_PM8921_CORE
|
||||
Say M here if you want to include support for PM8921 chip as a module.
|
||||
This will build a module called "pm8921-core".
|
||||
|
||||
config MFD_QCOM_RPM
|
||||
tristate "Qualcomm Resource Power Manager (RPM)"
|
||||
depends on ARCH_QCOM && OF
|
||||
help
|
||||
If you say yes to this option, support will be included for the
|
||||
Resource Power Manager system found in the Qualcomm 8660, 8960 and
|
||||
8064 based devices.
|
||||
|
||||
This is required to access many regulators, clocks and bus
|
||||
frequencies controlled by the RPM on these devices.
|
||||
|
||||
Say M here if you want to include support for the Qualcomm RPM as a
|
||||
module. This will build a module called "qcom_rpm".
|
||||
|
||||
config MFD_SPMI_PMIC
|
||||
tristate "Qualcomm SPMI PMICs"
|
||||
depends on ARCH_QCOM || COMPILE_TEST
|
||||
|
||||
@@ -153,6 +153,7 @@ obj-$(CONFIG_MFD_SI476X_CORE) += si476x-core.o
|
||||
obj-$(CONFIG_MFD_CS5535) += cs5535-mfd.o
|
||||
obj-$(CONFIG_MFD_OMAP_USB_HOST) += omap-usb-host.o omap-usb-tll.o
|
||||
obj-$(CONFIG_MFD_PM8921_CORE) += pm8921-core.o ssbi.o
|
||||
obj-$(CONFIG_MFD_QCOM_RPM) += qcom_rpm.o
|
||||
obj-$(CONFIG_MFD_SPMI_PMIC) += qcom-spmi-pmic.o
|
||||
obj-$(CONFIG_TPS65911_COMPARATOR) += tps65911-comparator.o
|
||||
obj-$(CONFIG_MFD_TPS65090) += tps65090.o
|
||||
|
||||
581
drivers/mfd/qcom_rpm.c
Normal file
581
drivers/mfd/qcom_rpm.c
Normal file
File diff suppressed because it is too large
Load Diff
13
include/linux/mfd/qcom_rpm.h
Normal file
13
include/linux/mfd/qcom_rpm.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef __QCOM_RPM_H__
|
||||
#define __QCOM_RPM_H__
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
struct qcom_rpm;
|
||||
|
||||
#define QCOM_RPM_ACTIVE_STATE 0
|
||||
#define QCOM_RPM_SLEEP_STATE 1
|
||||
|
||||
int qcom_rpm_write(struct qcom_rpm *rpm, int state, int resource, u32 *buf, size_t count);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user