ANDROID: GKI: Build-in REGMAP_SPMI

REGMAP_SPMI is a hidden symbol normally selected by other SPMI drivers,
but it wasn't built-in to GKI like other REGMAP APIs so vendors had to
build it downstream.

This is a small amount of code and can be modularized later.

For allmodconfig, select SPMI via Kconfig.gki instead of gki_defconfig,
because otherwise allmodconfig will build SPMI=m and REGMAP_SPMI=y,
which is not allowed.

Bug: 248307451
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: Ic3833e3a2dc44386c12a2422562994a1581a549c
This commit is contained in:
Alistair Delva
2022-09-23 11:39:13 -07:00
parent 066ab8e6b6
commit 4c43a506ef
4 changed files with 2 additions and 3 deletions

View File

@@ -18,6 +18,8 @@ config GKI_HIDDEN_REGMAP_CONFIGS
bool "Hidden Regmap configs needed for GKI"
select REGMAP_IRQ
select REGMAP_MMIO
select REGMAP_SPMI
select SPMI
help
Dummy config option used to enable hidden regmap configs.
These are normally selected implicitly when a module