[PATCH v1 2/8] spi: dw: Add device tree properties for fields in CTRL0

Marek Vasut marex at denx.de
Sun Mar 22 02:51:48 CET 2020


On 3/5/20 8:19 PM, Sean Anderson wrote:
> Some devices have different layouts for the fields in CTRL0 (e.g. the
> Kendryte K210). Allow this layout to be configurable from the device tree.
> The documentation has been taken from Linux.
> 
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Can't you just have different compatible string for each SoC and derive
the various fields based on that compatible string, instead of
describing all the register bitfields in DT ?

What does Linux do ?


More information about the U-Boot mailing list