riscv: make use of the barrier functions from Linux
authorLukas Auer <lukas.auer@aisec.fraunhofer.de>
Thu, 22 Nov 2018 10:26:18 +0000 (11:26 +0100)
committerAndes <uboot@andestech.com>
Mon, 26 Nov 2018 05:57:30 +0000 (13:57 +0800)
commitfc8c76f42e5231c215433fa5c5c4be951fd5eb56
treea25cdfa898098d1528e3b018f6b2a4e1a554b5bd
parentb2c860c6dc5078c710b34a0dec9d6514cf390a85
riscv: make use of the barrier functions from Linux

Replace the barrier functions in arch/riscv/include/asm/io.h with those
defined in barrier.h, which is imported from Linux. This version is
modified to remove the include statement of asm-generic/barrier.h, which
is not available in U-Boot or required.

Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/include/asm/barrier.h [new file with mode: 0644]
arch/riscv/include/asm/io.h