public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Proposed change to PL010 serial driver
@ 2006-12-05 10:43 Robert Deliën
  0 siblings, 0 replies; only message in thread
From: Robert Deliën @ 2006-12-05 10:43 UTC (permalink / raw)
  To: u-boot

Hi,

I am currently cleaning up my patch that provides ADM5120 support in U-Boot.
But before submitting it I'd like to propose a change to the PL010 serial
port driver. As far as I know, the PL010 uart is mostly used in ARM based
SoCs. It's currently implemented for big endian only. The ADM5120 is MIPS
based and has two PL010 serial ports on board. Most of the targets using the
ADM5120 are configured for little endian mode.

The patch below replaces the IO_READ and IO_WRITE macros with the readl and
writel functions from asm/io.h, the designated functions for reading from
and writing to IO, swapping endianness if necessary.
It also replaces the various bitrate macros with one macro containing a
unified bitrate calculation formula, using the newly introduced
CFG_UART_PL010_CLOCK macro. The only other target using this serial port
driver is intergratorap.h. I have backward calculated the uart clock for
this target and added it to its configuration.

With kind regards,

	Robert.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: serial_pl010.patch
Type: application/octet-stream
Size: 4931 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20061205/104edefb/attachment.obj 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-05 10:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-05 10:43 [U-Boot-Users] [PATCH] Proposed change to PL010 serial driver Robert Deliën

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox