csr: use readl()/writel() accessors for accessing mmio
authorSean Cross <sean@xobs.io>
Sat, 22 Sep 2018 14:30:05 +0000 (16:30 +0200)
committerSean Cross <sean@xobs.io>
Sat, 22 Sep 2018 14:54:46 +0000 (16:54 +0200)
commit9a252e367c18db23388d02814b3b4d7a3f0370e4
tree8bfaa5e2b05936824c7bf80e7444ce1e3354af29
parent9d4da737ffd282b01c8c0ea9bf33f8b497aa619b
csr: use readl()/writel() accessors for accessing mmio

Instead of directly dereferencing pointers, use variants on readl()/writel().
This way we can replace these functions with others for remote access
when writing drivers and code outside of the litex environment.

Signed-off-by: Sean Cross <sean@xobs.io>
litex/soc/integration/cpu_interface.py
litex/soc/software/include/hw/common.h