diff mbox

[U-Boot] arm: ls102xa: fixed a bus frequency setting error

Message ID 1413870718-25272-1-git-send-email-Yuantian.Tang@freescale.com
State Accepted
Delegated to: York Sun
Headers show

Commit Message

tang yuantian Oct. 21, 2014, 5:51 a.m. UTC
From: Tang Yuantian <Yuantian.Tang@freescale.com>

The bus frequency in SOC node should be clock frequency of platform.
That is not true if it is devided by 2.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
---
 arch/arm/cpu/armv7/ls102xa/fdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

York Sun Dec. 11, 2014, 6:59 p.m. UTC | #1
On 10/20/2014 10:51 PM, Yuantian.Tang@freescale.com wrote:
> From: Tang Yuantian <Yuantian.Tang@freescale.com>
> 
> The bus frequency in SOC node should be clock frequency of platform.
> That is not true if it is devided by 2.
> 
> Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
> ---
>  arch/arm/cpu/armv7/ls102xa/fdt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied to u-boot-fsl-qoriq master, awaiting upstream.

York
diff mbox

Patch

diff --git a/arch/arm/cpu/armv7/ls102xa/fdt.c b/arch/arm/cpu/armv7/ls102xa/fdt.c
index 4ce3808..989780d 100644
--- a/arch/arm/cpu/armv7/ls102xa/fdt.c
+++ b/arch/arm/cpu/armv7/ls102xa/fdt.c
@@ -91,7 +91,7 @@  void ft_cpu_setup(void *blob, bd_t *bd)
 	}
 
 	do_fixup_by_prop_u32(blob, "device_type", "soc",
-			     4, "bus-frequency", busclk / 2, 1);
+			     4, "bus-frequency", busclk, 1);
 
 	ft_fixup_enet_phy_connect_type(blob);