diff options
author | Min Li <min.li.xe@renesas.com> | 2023-03-27 21:39:53 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-04-26 13:40:34 +0300 |
commit | 67d6c76fc815cddc77de9529221f9ff8dd1fb10e (patch) | |
tree | 6bbf40419b7d9af1ddf612b3d16938417d1ee922 /include/linux/mfd | |
parent | fb9d4960a876e9344ab2c8a22c5c0fcd8c64210d (diff) | |
download | linux-67d6c76fc815cddc77de9529221f9ff8dd1fb10e.tar.xz |
mfd: rsmu: Support 32-bit address space
We used to assume 0x2010xxxx address. Now that we need to access
0x2011xxxx address, we need to support read/write the whole 32-bit
address space.
Also defined RSMU_MAX_WRITE_COUNT and RSMU_MAX_READ_COUNT for readability
Signed-off-by: Min Li <min.li.xe@renesas.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/MW5PR03MB693295AF31ABCAF6AE52EE74A08B9@MW5PR03MB6932.namprd03.prod.outlook.com
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/rsmu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/mfd/rsmu.h b/include/linux/mfd/rsmu.h index 6870de608233..0379aa207428 100644 --- a/include/linux/mfd/rsmu.h +++ b/include/linux/mfd/rsmu.h @@ -8,6 +8,9 @@ #ifndef __LINUX_MFD_RSMU_H #define __LINUX_MFD_RSMU_H +#define RSMU_MAX_WRITE_COUNT (255) +#define RSMU_MAX_READ_COUNT (255) + /* The supported devices are ClockMatrix, Sabre and SnowLotus */ enum rsmu_type { RSMU_CM = 0x34000, @@ -31,6 +34,6 @@ struct rsmu_ddata { struct regmap *regmap; struct mutex lock; enum rsmu_type type; - u16 page; + u32 page; }; #endif /* __LINUX_MFD_RSMU_H */ |