From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Schwierzeck Date: Thu, 26 May 2016 00:09:13 +0200 Subject: [U-Boot] [PATCH v4 3/5] dm: ns16550: Don't map_physmem for I/O ports In-Reply-To: <1464213697-7262-1-git-send-email-daniel.schwierzeck@gmail.com> References: <1463467408-13245-4-git-send-email-paul.burton@imgtec.com> <1464213697-7262-1-git-send-email-daniel.schwierzeck@gmail.com> Message-ID: <57462289.3020200@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 26.05.2016 um 00:01 schrieb Daniel Schwierzeck: > From: Paul Burton > > 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 > Signed-off-by: Daniel Schwierzeck > --- > > Updated patch due to discussion in: > http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/261776/focus=262627 > > Changes in v4: > - Only do map_physmem() once in ns16550_serial_ofdata_to_platdata(). > Changes in v3: None > Changes in v2: > - New patch, part of a simplified approach tackling only a single Malta UART. > > > drivers/serial/ns16550.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > applied to u-boot-mips, thanks. -- - Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: