mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 16 Mar 2017 08:30:28 +0000 (09:30 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 27 Apr 2017 08:25:05 +0000 (09:25 +0100)
commitfe9d7cb22ef3a26a74e49730c0efdbdae4b17d4b
tree9d45102f006477482862c93300e356305f30f83c
parent119d53d44cb0da2e3140106a9e359fc53bd6d837
mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation

These new helpers + macro definitions are meant to replace the old ones
which are unpractical to use.

Note that the macros and function prefixes have been intentionally
changed to ATMEL_[H]SMC_XX and atmel_[h]smc_ to reflect the fact that
this IP is also embedded in avr32 SoCs (and not only in at91 ones).

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/atmel-smc.c [new file with mode: 0644]
include/linux/mfd/syscon/atmel-smc.h