]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: Use asm-generic/io.h
authorPaul Burton <paul.burton@imgtec.com>
Thu, 14 Sep 2017 22:05:13 +0000 (15:05 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 3 Oct 2017 01:52:24 +0000 (21:52 -0400)
commitf7ae1ca3e894d67ef1e8b6256a26c08e30e25127
tree8c669e393695f36ccaba5f94b8a69aa6df489762
parentae07d609e951d0018daa1bd82aa56a1c294743cc
sandbox: Use asm-generic/io.h

Convert the sandbox architecture to make use of the new asm-generic/io.h
to provide address mapping functions. As sandbox actually performs
non-identity mapping between physical & virtual addresses we can't
simply make use of the generic mapping functions, but are able to
implement phys_to_virt() & make use of it from map_physmem().

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/cpu.c
arch/sandbox/include/asm/io.h