RFC: Using regmap in ARM64 for EL3 register access

From: Thor Thayer
Date: Thu Mar 29 2018 - 18:57:54 EST


Hi,

I'm working on an ARM64 architecture that needs to manipulate some protected registers that are only accessible in EL3. Linux is running at EL1 which doesn't have the proper permissions for these registers.

Since U-Boot is running at the higher EL3, we communicate to the U-Boot functions through a SMC mechanism.

The regmap framework seems like a good match for accessing these registers. We need the same functionality as I2C and SPI regmaps - read, write, and update registers.

Any comments or suggestions about using regmap for this purpose? Is there a better method?

Thanks,

Thor