android_kernel_oneplus_msm8998/drivers/bif/Kconfig
Abhijeet Dharmapurikar 0c98f90e2e spmi_devices: change to platform_devices
Change to using upstream spmi bus architecture. All the spmi devices,
marked by spmi-dev-container, become platform devices.
spmi-slave-container devices become spmi_devices each representing
a slave. The read/write functions use regmap api's instead of calls to
spmi_ext_register_read/write() implemented by the spmi bus. This
regmap is instantiated per slave.
The spmi bus helper functions like spmi_get_irq get changed to their
platform bus equivalents.

Change Kconfig files include
* Remove dependence on OF_SPMI, MSM_QPNP_INT
* There were few places where an earlier commit
 dcc2aedc80746acee589e4b47d3e6adf5d3ec253
missed adding dependence on SPMI along with MSM_SPMI.
Fix them.
* Add depends on ARCH_MSM. ARCH_MSM is used for internal builds.

Change the nodes in DTSI files to confirm to the modified drivers.
Update their binding docs to drop spmi-dev-container and
spmi-slave-container;

Finally update defconfig to use upstream SPMI.

Change-Id: Ic85bff27c09c84b152cb38acbc3cadd05c0ec57a
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-03-01 12:22:33 -08:00

25 lines
834 B
Text

#
# BIF framework and drivers
#
menuconfig BIF
bool "MIPI-BIF support"
select CRC_CCITT
select BITREVERSE
help
MIPI-BIF (battery interface) is a one-wire serial interface between a
host master device and one or more slave devices which are located in
a battery pack or also on the host. Enabling this option allows for
BIF consumer drivers to issue transactions via BIF controller drivers.
if BIF
config BIF_QPNP
depends on SPMI
tristate "Qualcomm QPNP BIF support"
help
This driver supports the QPNP BSI peripheral found inside of Qualcomm
QPNP PMIC devices. The BSI peripheral is able to communicate using
the BIF protocol. The QPNP BSI driver hooks into the BIF framework.
Enable this option in order to provide support for BIF communication
on targets which have BSI PMIC peripherals.
endif