On Wednesday, 15 January 2020 14:57:01 CET Paul Cercueil wrote:
Le mer., janv. 15, 2020 at 14:44, Daniel Lezcano
<daniel.lezcano@xxxxxxxxxx> a écrit :
> Is the JZ47xx OST really a mfd needing a regmap? (Note regmap_read
> will take a lock).
Yes, the TCU_REG_OST_TCSR register is shared with the clocks driver.
The TCU_REG_OST_TCSR register is only used in the probe though.
To get the counter value from TCU_REG_OST_CNTL/TCU_REG_OST_CNTH you
could technically do it by reading the register directly, if performance
concerns make it necessary to bypass the usual kernel infrastructure for
dealing with shared registers.