Skip to content

Commit 5a86bf3

Browse files
Kenneth Heitkegregkh
authored andcommitted
spmi: Linux driver framework for SPMI
System Power Management Interface (SPMI) is a specification developed by the MIPI (Mobile Industry Process Interface) Alliance optimized for the real time control of Power Management ICs (PMIC). SPMI is a two-wire serial interface that supports up to 4 master devices and up to 16 logical slaves. The framework supports message APIs, multiple busses (1 controller per bus) and multiple clients/slave devices per controller. Signed-off-by: Kenneth Heitke <kheitke@codeaurora.org> Signed-off-by: Michael Bohan <mbohan@codeaurora.org> Signed-off-by: Josh Cartwright <joshc@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a2a720e commit 5a86bf3

8 files changed

Lines changed: 842 additions & 0 deletions

File tree

‎drivers/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ source "drivers/i2c/Kconfig"
5252

5353
source "drivers/spi/Kconfig"
5454

55+
source "drivers/spmi/Kconfig"
56+
5557
source "drivers/hsi/Kconfig"
5658

5759
source "drivers/pps/Kconfig"

‎drivers/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ obj-$(CONFIG_ATA) += ata/
6666
obj-$(CONFIG_TARGET_CORE) += target/
6767
obj-$(CONFIG_MTD) += mtd/
6868
obj-$(CONFIG_SPI) += spi/
69+
obj-$(CONFIG_SPMI) += spmi/
6970
obj-y += hsi/
7071
obj-y += net/
7172
obj-$(CONFIG_ATM) += atm/

‎drivers/spmi/Kconfig‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# SPMI driver configuration
3+
#
4+
menuconfig SPMI
5+
tristate "SPMI support"
6+
help
7+
SPMI (System Power Management Interface) is a two-wire
8+
serial interface between baseband and application processors
9+
and Power Management Integrated Circuits (PMIC).

‎drivers/spmi/Makefile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#
2+
# Makefile for kernel SPMI framework.
3+
#
4+
obj-$(CONFIG_SPMI) += spmi.o

0 commit comments

Comments
 (0)