platform: Use CSR_<FOO> instead of <foo> for csr_*()

Some older toolchains may not have all the csr's defined. Update all
the csr functions to use the CSR_ #define values instead of the
toolchain defined values.

Suggested-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
Atish Patra
2019-02-12 18:32:58 -08:00
committed by Anup Patel
parent 70a474d2c2
commit 28d1dd2430

View File

@@ -88,7 +88,7 @@
#define SPI1_BASE_ADDR (0x53000000U)
#define SPI3_BASE_ADDR (0x54000000U)
#define read_cycle() csr_read(mcycle)
#define read_cycle() csr_read(CSR_MCYCLE)
/*
* PLIC External Interrupt Numbers