Skip to content
Commit 6a24f567 authored by Orson Zhai's avatar Orson Zhai Committed by Lee Jones
Browse files

mfd: syscon: Add arguments support for syscon reference



There are a lot of similar global registers being used across multiple SoCs
from Unisoc. But most of these registers are assigned with different offset
for different SoCs. It is hard to handle all of them in an all-in-one
kernel image.

Add a helper function to get regmap with arguments where we could put some
extra information such as the offset value.

Signed-off-by: default avatarOrson Zhai <orson.zhai@unisoc.com>
Tested-by: default avatarBaolin Wang <baolin.wang@unisoc.com>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 2f3dc25c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment