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

Tom Rini trini at ti.com
Thu Sep 27 19:07:49 CEST 2012


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

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>

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

iQIcBAEBAgAGBQJQZIflAAoJENk4IS6UOR1WsGkQAI7g2jXMC9Q99414/wH2Deqv
+pWEYhJ6kDrtrI4mDUyO1B0sKOyPbSufhql0NQwxzVBhXLMcMVjoGpth/asC/MEq
UXQNnrYXJas8O4A0O16a18UVBVNhSK8XQYggpVlFuzosvc/8ngsCEzBMD8u20dYp
WT0S9KaLHhL4U19nqFG/adnjMA2QU90BPkY4qZTsB7ECJc7lcRzfyJdeNL5fAmLW
eDE1TXvV1xghHkjY1kT5gjjIJaC+KH1hsMxaRx1h+wUrTLFY4iv3WB/Uv4uQ60xn
8NalBIQZIqCSmshsKijm5SwOUkV4M/dm/Mwxxx7kOKpD897w4DxDAJucndCP95iD
LMfjpQIWhaMYctEJXq2d66cPLTVWUr6yCH5byjX82pwYZRN8PyYLjAzknaDnIgaW
Z2qC0krsTFWV9K19TjSdGlG/PaC8FUJtTD3NjQ7SFed/Kn8/YQYawCwlYkqpnjs6
cBQ47Cxp2tQYZU9qEZ/Cc6T24Nc764FYw/fw/nn8LzSelxN05qxkenAG3OsuUyf4
W1NQ6wCrpL7WJWpyztzKqqs7nYqE4OfTER8Gy7XlDBNCU3s0cQQQicSIuFbrIVRo
f1po4M2wsQQjgQoAEjGSPKxpIZCnnMabF+bYtQbqwVxkUbANGeGl8FHKHHUyS6kv
9pIP75En06Yl40c1BQeZ
=cnRl
-----END PGP SIGNATURE-----


More information about the U-Boot mailing list