[U-Boot] [PATCH 1/6] am33xx: Enable UART{1,2,4,5} clocks

Tom Rini trini at ti.com
Thu Sep 27 19:22:04 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/27/12 10:11, Marek Vasut wrote:
> Dear Tom Rini,
> 
>> On 09/27/12 09:45, Marek Vasut wrote:
>>> Dear Tom Rini,
>>>
>>>> On Thu, Sep 27, 2012 at 06:13:36PM +0200, Marek Vasut wrote:
>>>>> Dear Andrew Bradford,
>>>>>
>>>>>> If configured to use UART{1,2,4,5}, such as on the Beaglebone
>>>>>> RS232 cape, enable the required clocks for the UART in use.
>>>>>>
>>>>>> Signed-off-by: Andrew Bradford <andrew at bradfordembedded.com>
>>>>>> ---
>>>>>>
>>>>>> arch/arm/cpu/armv7/am33xx/clock.c |   28
>>>>>> ++++++++++++++++++++++++++++ 1 file changed, 28
>>>>>> insertions(+)
>>>>>>
>>>>>> diff --git a/arch/arm/cpu/armv7/am33xx/clock.c
>>>>>> b/arch/arm/cpu/armv7/am33xx/clock.c index 2b19506..4eb9226
>>>>>> 100644 --- a/arch/arm/cpu/armv7/am33xx/clock.c +++
>>>>>> b/arch/arm/cpu/armv7/am33xx/clock.c @@ -114,6 +114,34 @@
>>>>>> static void enable_per_clocks(void)
>>>>>>
>>>>>> while (readl(&cmwkup->wkup_uart0ctrl) != PRCM_MOD_EN)  ;
>>>>>>
>>>>>> +	/* UART1 */ +#ifdef CONFIG_SERIAL2 +	writel(PRCM_MOD_EN,
>>>>>> &cmper->uart1clkctrl); +	while (readl(&cmper->uart1clkctrl)
>>>>>> != PRCM_MOD_EN) +		;
>>>>>
>>>>> Call WATCHDOG_RESET() here, fix glboally
>>>>
>>>> We don't have WATCHDOG_RESET...
>>>
>>> You do, and it opts-out to udelay(1) is most cases.
>>
>> It looks like it opts-out to {} in most cases, in <watchdog.h>
> 
> Correct, we use it to retrigger watchdog timer if implemented.

Which the SoC support isn't doing and the rest of the code also isn't
trying to use.  Arguably the whole file should be doing udelay(1) in
each of these instances and a clean up patch which this series depends
on might be useful.

- -- 
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQZIs8AAoJENk4IS6UOR1Wx0AP/09nGNb5Ce6vIEQcRxLP+Oqv
VvXqK3xxgd6QCECr9JbKGmAgZLFsqGKrE/MNCBFqikx4J3pTDJ3DXO/re9dGaXr3
p+ompug8mxrH41pPfoKiCDn0RD0IkUZTQ3I8MxZqgiJ4D61nFBG7Eyf9weFSBLJ0
pIielx2DcczqIxJ3vj01UM+h5COc1lUVK568oN/tNP7aw/4QBXiAKMStce0cjuPm
O5vqxMx81scex9cQF3thkOvonNcB0zmy5sy+vC76a2Fhi2KE0tOxY988WjZPN7g3
wxQ2cYke+gJw1LPlDI4zIIqZ2XnFaHBA4XpgCjRq/ie61gwQGBXF1i96Jc4C4kEE
IGMPTUlm4nvPFdFCqCcWVl67S61GZmnDaXXfQHzpAhNQVwksnOEaUN6HhIVCVhGL
zHLNTYm1f4bUztXZ/yfyn3HNbY2N2rZ2wmkepaCbkSjohe2trhNdA4TQlWO1vs5a
RFse7F0BTVBu251Y1QenDP6iCwj3C9qS7fdlXSBa3cw7/ZxHYjblDp03qA3Eawve
T2Aiib9hdx2WGeyYAtMF8TMOUF2jy0G9PDYtE1rGPl9leaCpn7WAcZq3SzctAHE3
aQiaEivv2W//dyFCnKOGlYYoymr86oitp3rtmsPtLd4GVLr2936CxS89pAWOSFP/
FOG5SLL43UgbpdDaiCBr
=qRPe
-----END PGP SIGNATURE-----


More information about the U-Boot mailing list