[PATCH] ARM: mxs: Change duart device to use amba-pl011

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Jan 3 05:35:39 EST 2011


On Wed, Dec 22, 2010 at 09:25:42PM +0100, Uwe Kleine-König wrote:
> Hello Shawn,
> 
> On Tue, Dec 21, 2010 at 09:12:10PM +0800, Shawn Guo wrote:
> > The mxs duart is actually an amba-pl011 device. This commit changes
> > the duart device code to dynamically allocate amba-pl011 device,
> > so that drivers/serial/amba-pl011.c can be used on mxs.
> I have problems using this.  The problem I found up to now is that
> during probe of the device (triggered by mxs_add_duart ->
> amba_device_register -> amba_put_disable_pclk) the uart clock is
> disabled.

Which uart clock is disabled?  The PCLK or the UARTCLK (names as defined
in the ARM PL011 TRM).

If the pclk code is disabling the UARTCLK, then add a dummy apb_pclk to
your clock lookups, which is what everyone else who can't control the
APB PCLK does.



More information about the linux-arm-kernel mailing list