RISC-V: Add early ioremap support
authorAtish Patra <atish.patra@wdc.com>
Thu, 17 Sep 2020 22:37:11 +0000 (15:37 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 2 Oct 2020 21:31:03 +0000 (14:31 -0700)
commit6262f661ff5d7d6a2613b95d0b7820c60b46b0b5
tree2753d9f367b40e59ecdaa896337d0d13b681b77f
parent8f3a2b4a96dc014e99e1df327db1450fdbbd5e15
RISC-V: Add early ioremap support

UEFI uses early IO or memory mappings for runtime services before
normal ioremap() is usable. Add the necessary fixmap bindings and
pmd mappings for generic ioremap support to work.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig
arch/riscv/include/asm/Kbuild
arch/riscv/include/asm/fixmap.h
arch/riscv/include/asm/io.h
arch/riscv/kernel/setup.c
arch/riscv/mm/init.c