]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: ns16550: Don't map_physmem for I/O ports
authorPaul Burton <paul.burton@imgtec.com>
Tue, 17 May 2016 06:43:26 +0000 (07:43 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 25 May 2016 23:34:13 +0000 (01:34 +0200)
commitdf8ec55d52c74a9c73df549da846f5e6c5acb5ab
treee4ae9a58079800ade3cb2e992e2c3f4d0e3494a1
parent49717b18be6760cc560767ed3a0c72ecfd3cb076
dm: ns16550: Don't map_physmem for I/O ports

If the UART is to be accessed using I/O port accessors (inb & outb) then
using map_physmem doesn't make sense, since it operates in a different
memory space. Remove the call to map_physmem when
CONFIG_SYS_NS16550_PORT_MAPPED is defined, allowing I/O port addresses
to not be mangled by the incorrect mapping.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
drivers/serial/ns16550.c