]> git.sur5r.net Git - u-boot/commit
MIPS: Fix map_physmem for cached mappings
authorPaul Burton <paul.burton@imgtec.com>
Mon, 26 Sep 2016 18:28:57 +0000 (19:28 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 30 Nov 2016 15:18:19 +0000 (16:18 +0100)
commit6fd596a1aa57bd431263f45b0c57ee8ae6b2403c
treee98e62c2e8a860fc0d28ac40b0d5368b7cd66425
parent7a3e0f74a7c3ff83ba0607ebf8a14310ff08db60
MIPS: Fix map_physmem for cached mappings

map_physmem should return a pointer that can be used by the CPU to
access the given memory - on MIPS simply returning the physical address
as it does prior to this patch doesn't achieve that. Instead return a
pointer to the memory within (c)kseg0, which matches up consistently
with the (c)kseg1 pointer that uncached mappings return via ioremap.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
arch/mips/include/asm/io.h