mfd: altera-sysmgr: Add SOCFPGA System Manager
authorThor Thayer <thor.thayer@linux.intel.com>
Mon, 11 Mar 2019 22:18:03 +0000 (17:18 -0500)
committerLee Jones <lee.jones@linaro.org>
Tue, 2 Apr 2019 06:37:45 +0000 (07:37 +0100)
commitf36e789a1f8d0b75ee2b459dfac10efd7d299a6d
tree27571ad233594339795ba36a70d8e8c589ede1f6
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
mfd: altera-sysmgr: Add SOCFPGA System Manager

The SOCFPGA System Manager register block aggregates different
peripheral functions into one area.
On 32 bit ARM parts, handle in the same way as syscon.
On 64 bit ARM parts, the System Manager can only be accessed by
EL3 secure mode. Since a SMC call to EL3 is required, this new
driver uses regmaps similar to syscon to handle the SMC call.

Since regmaps abstract out the underlying register access, the
changes to drivers accessing the System Manager are minimal.

Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
MAINTAINERS
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/altera-sysmgr.c [new file with mode: 0644]
include/linux/mfd/altera-sysmgr.h [new file with mode: 0644]