]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Add SDCA register map support
authorMark Brown <broonie@kernel.org>
Thu, 27 Feb 2025 16:44:41 +0000 (16:44 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 27 Feb 2025 16:44:41 +0000 (16:44 +0000)
commitd0343fdb567dddaa74ac1b7b6994fd70100a0f6e
tree2cd76efbd867e2c6df389b7ca1394b1cfbe80201
parent79ed408b2402e8113aa5a298f3bb9088ede58f6c
parentc143755d8cce31e770234732ff23134993b0550f
Add SDCA register map support

Merge series from Charles Keepax <ckeepax@opensource.cirrus.com>:

This series is the next step of adding SDCA support. Here we add
helper functions to allow drivers to easily use the SDCA DisCo
information to create a register map for the device.

The basic idea here is the code takes the list of SDCA controls parsed
from DisCo and uses primarily the Access Mode to determine if the
register should be marked as readable/writable etc. Further more
some additional concepts such as DisCo Constants and Defaults are
handled. There is some potential confusion, as DisCo Constants are
handled as an entry in the regmap defaults table, whereas a DisCo
Default is simply handled as a write to the register. Alas the naming
confusion is an unavoidable result of the slight impedance mismatch
between the two systems.