u-boot-brain/arch
Bin Meng 4d2583dba1 riscv: Access CSRs using CSR numbers
We should prefer accessing CSRs using their CSR numbers
because:
1. It compiles fine with older toolchains.
2. We can use latest CSR names in #define macro names of CSR
   numbers as-per RISC-V spec.
3. We can access newly added CSRs even if toolchain does not
   recognize newly added CSRs by name.

This commit is inspired from Linux kernel commit a3182c91ef4e
("RISC-V: Access CSRs using CSR numbers").

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
2019-08-15 13:42:28 +08:00
..
arc CONFIG_SPL_SYS_[DI]CACHE_OFF: add 2019-05-18 08:15:35 -04:00
arm Merge https://gitlab.denx.de/u-boot/custodians/u-boot-marvell 2019-08-12 23:03:44 -04:00
m68k env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
microblaze env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
mips env: Move env_init() to env.h 2019-08-11 16:43:41 -04:00
nds32 env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
nios2 .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore 2018-06-18 14:43:12 -04:00
powerpc Merge https://gitlab.denx.de/u-boot/custodians/u-boot-marvell 2019-08-12 23:03:44 -04:00
riscv riscv: Access CSRs using CSR numbers 2019-08-15 13:42:28 +08:00
sandbox doc: arch: sandbox: Replace all the instances of README.sandbox 2019-07-29 09:32:09 -04:00
sh sh: r0p7734: Remove the board 2019-06-14 12:42:06 +02:00
x86 env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
xtensa env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
.gitignore
Kconfig test: dm: add a test for MDIO MUX DM uclass 2019-07-18 16:37:13 -05:00