csr: use external csr_readl()/csr_writel() if present
authorSean Cross <sean@xobs.io>
Sat, 22 Sep 2018 14:33:15 +0000 (16:33 +0200)
committerSean Cross <sean@xobs.io>
Sat, 22 Sep 2018 14:55:09 +0000 (16:55 +0200)
commit6f25a0d8a1dced95c87bbe38e014f85ec56a1528
tree8349e4a80365e7c55d770a6653f497b7c23df305
parent9a252e367c18db23388d02814b3b4d7a3f0370e4
csr: use external csr_readl()/csr_writel() if present

If the variable CSR_ACCESSORS_DEFINED is set, then use external
csr_readl() and csr_writel() instead of locally-generated inline
functions.

With this patch, csr.h can be used with etherbone.h and litex_server to
prototype drivers remotely.

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