commit | 0f4e21cae85f18d09ee4c8f5c3f6aaeaacfb9904 | [log] [tgz] |
---|---|---|
author | Mateusz Holenko <mholenko@antmicro.com> | Thu Oct 10 13:56:13 2019 +0200 |
committer | Maureen Helm <maureen.helm@nxp.com> | Mon Oct 21 08:40:09 2019 -0500 |
tree | 9c1b9ed7a1896656643146cf8a9b48f9718416dc | |
parent | 51b009d045c724ec0a7b90a61aa4539b003006ca [diff] |
soc: riscv: litex: Add helpers for accessing CSRs Depending on LiteX configuration, CSRs (control&status registers) might be split into several consecutive registers. This introduces common helper functions for all LiteX drivers providing access to CSRs for a default LiteX configuration (data_width = 8bit, bus_width = 32bit). Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>