mfd: rsmu: Support 32-bit address space
authorMin Li <min.li.xe@renesas.com>
Mon, 27 Mar 2023 18:39:53 +0000 (14:39 -0400)
committerLee Jones <lee@kernel.org>
Wed, 26 Apr 2023 10:40:34 +0000 (11:40 +0100)
commit67d6c76fc815cddc77de9529221f9ff8dd1fb10e
tree6bbf40419b7d9af1ddf612b3d16938417d1ee922
parentfb9d4960a876e9344ab2c8a22c5c0fcd8c64210d
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
drivers/mfd/rsmu.h
drivers/mfd/rsmu_i2c.c
drivers/mfd/rsmu_spi.c
include/linux/mfd/rsmu.h