Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f7b16cfa authored by Orson Zhai's avatar Orson Zhai Committed by Alistair Delva
Browse files

UPSTREAM: 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>

Bug: 146258076
Change-Id: I836fb64d0cdc9596623453b49fad10d3d181906e
(cherry picked from commit 6a24f567af4accef6d73b0be407227c537b94a1f)
Signed-off-by: default avatarOrson Zhai <orson.zhai@unisoc.com>
parent 015003c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment