]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ppc4xx: POST UART: Use in/out_8() io-accessor functions
authorStefan Roese <sr@denx.de>
Tue, 14 Sep 2010 07:38:18 +0000 (09:38 +0200)
committerStefan Roese <sr@denx.de>
Thu, 23 Sep 2010 06:43:56 +0000 (08:43 +0200)
commitab25e880ca9d508b7a807aa969105af32c3e6e51
treee62fc4dc3265d01915badb5001c4313404ee47ab
parent6aa9195daecf18f682a825213a08d28224644b93
ppc4xx: POST UART: Use in/out_8() io-accessor functions

This patch fixes a problem in the PPC4xx POST UART driver. This driver
incorrectly used the in/out8() io-accessor functions. This could lead to
problems since these functions don't guarantee execution ordering. This
patch now replaces these functions with the correct ones.

Additionally the driver is converted to using the NS16550 struct instead
of macros for the register offsets.

And some common code is factored out for better maintainability.

Signed-off-by: Stefan Roese <sr@denx.de>
include/ppc4xx.h
post/cpu/ppc4xx/uart.c