[U-Boot] [U-Boot, v3, 02/13] ns16550: change map_sysmem to map_physmem

Tom Rini trini at konsulko.com
Sun Nov 22 16:52:34 CET 2015


On Thu, Nov 19, 2015 at 09:48:04PM +0800, Thomas Chou wrote:

> Change map_sysmem() to map_physmem(,,MAP_NOCACHE). Though map_sysmem()
> can be used to map system memory, it might be wrong to use it for I/O
> ports.  The map_physmem() serves the same purpose to translate physical
> address to virtual address with the additional flag to take care of cache
> property. Most drivers use map_physmem() since I/O ports access should be
> uncached. As ns16550 is a driver, it should use map_physmem() rather
> than map_sysmem().
> 
> Signed-off-by: Thomas Chou <thomas at wytron.com.tw>
> Acked-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151122/aaf809b5/attachment.sig>


More information about the U-Boot mailing list