soc: apple: Add driver for Apple PMGR power state controls
authorHector Martin <marcan@marcan.st>
Wed, 24 Nov 2021 07:34:18 +0000 (16:34 +0900)
committerHector Martin <marcan@marcan.st>
Tue, 7 Dec 2021 04:13:13 +0000 (13:13 +0900)
commit6df9d38f9146e83b473f0c9e57fb5fdf3fcc93e2
treeceb6c251de3a7ea08d6b1313145bf5ec06b31a78
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
soc: apple: Add driver for Apple PMGR power state controls

Implements genpd and reset providers for downstream devices. Each
instance of the driver binds to a single register and represents a
single SoC power domain.

The driver does not currently implement all features (clockgate-only
state, misc flags), but we declare the respective registers for
documentation purposes. These features will be added as they become
useful for downstream devices.

This also creates the apple/soc tree and Kconfig submenu.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/soc/Kconfig
drivers/soc/Makefile
drivers/soc/apple/Kconfig [new file with mode: 0644]
drivers/soc/apple/Makefile [new file with mode: 0644]
drivers/soc/apple/apple-pmgr-pwrstate.c [new file with mode: 0644]