diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2019-02-27 20:02:08 +0530 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2019-03-04 18:08:56 +0530 |
commit | 8d9bf46847cd66989d944060d9ad4b37bb2bc460 (patch) | |
tree | 336cd9a4e0bbb1c4edd24fb5cb1b00a8dd9b87a9 /drivers/spi/sh_spi.h | |
parent | 8cbf09ba1cfdc7b47ead3ff330e9a7bc57bda4ab (diff) |
spi: sun4i: Access registers and bits via enum offsets
Allwinner support two different SPI controllers one for A10 and
another for A31 with minimal changes in register offsets and
respective register bits, but the logic for accessing the SPI
master via SPI slave remains nearly similar.
Add enum offsets for register set and register bits, so-that
it can access both classes of SPI controllers.
Assign same control register for global, transfer and fifo control
registers to make the same code compatible with A31 SPI controller.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Stefan Mavrodiev <stefan@olimex.com> # A20-SOM204
Diffstat (limited to 'drivers/spi/sh_spi.h')
0 files changed, 0 insertions, 0 deletions