diff mbox

[U-Boot,v2,2/4] DaVinci DA850: UART2 clock ID comes from ASYNC3

Message ID 1343727037-17419-3-git-send-email-lwithers@guralp.com
State Accepted
Headers show

Commit Message

Laurence Withers July 31, 2012, 9:30 a.m. UTC
On the DA830, UART2's clock is derived from PLL controller 0 output 2.
On the DA850, it is in the ASYNC3 group, and may be switched between PLL
controller 0 or 1. Fix the definition of the ID to match.

Signed-off-by: Laurence Withers <lwithers@guralp.com>
Cc: Tom Rini <trini@ti.com>
Cc: Prabhakar Lad <prabhakar.csengg@gmail.com>
---
Changes in v2:
 - Re-ordered patch series to tidy up clock IDs before tidying up users
   (set_cpu_clk_info()).
---
 arch/arm/include/asm/arch-davinci/hardware.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Comments

Tom Rini Aug. 3, 2012, 4:06 p.m. UTC | #1
On Tue, Jul 31, 2012 at 09:30:35AM +0000, Laurence Withers wrote:

> On the DA830, UART2's clock is derived from PLL controller 0 output 2.
> On the DA850, it is in the ASYNC3 group, and may be switched between PLL
> controller 0 or 1. Fix the definition of the ID to match.
> 
> Signed-off-by: Laurence Withers <lwithers@guralp.com>
> Cc: Tom Rini <trini@ti.com>
> Cc: Prabhakar Lad <prabhakar.csengg@gmail.com>

I've applied this after making it apply cleanly again
(DAVINCI_MMC0_CLKID again), thanks!
diff mbox

Patch

diff --git a/arch/arm/include/asm/arch-davinci/hardware.h b/arch/arm/include/asm/arch-davinci/hardware.h
index dac43bb..0fce940 100644
--- a/arch/arm/include/asm/arch-davinci/hardware.h
+++ b/arch/arm/include/asm/arch-davinci/hardware.h
@@ -466,7 +466,6 @@  enum davinci_clk_ids {
 	DAVINCI_MDIO_CLKID			= DAVINCI_PLL0_SYSCLK4,
 	DAVINCI_MMC_CLKID			= DAVINCI_PLL0_SYSCLK2,
 	DAVINCI_SPI0_CLKID			= DAVINCI_PLL0_SYSCLK2,
-	DAVINCI_UART2_CLKID			= DAVINCI_PLL0_SYSCLK2,
 
 	/* special clock ID - output of PLL multiplier */
 	DAVINCI_PLLM_CLKID			= 0x0FF,
@@ -478,6 +477,9 @@  enum davinci_clk_ids {
 	DAVINCI_AUXCLK_CLKID			= 0x101,
 };
 
+#define DAVINCI_UART2_CLKID	(cpu_is_da830() ? DAVINCI_PLL0_SYSCLK2 \
+						: get_async3_src())
+
 #define DAVINCI_SPI1_CLKID	(cpu_is_da830() ? DAVINCI_PLL0_SYSCLK2 \
 						: get_async3_src())