[PATCH 07/24] add to speed

Sascha Hauer s.hauer at pengutronix.de
Fri Jan 7 05:43:47 EST 2011


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/mach-imx/speed-imx1.c  |   20 ++++++++++----------
 arch/arm/mach-imx/speed-imx21.c |   20 ++++++++++----------
 arch/arm/mach-imx/speed-imx25.c |   20 ++++++++++----------
 arch/arm/mach-imx/speed-imx31.c |    4 ++--
 arch/arm/mach-imx/speed-imx35.c |   18 +++++++++---------
 5 files changed, 41 insertions(+), 41 deletions(-)

diff --git a/arch/arm/mach-imx/speed-imx1.c b/arch/arm/mach-imx/speed-imx1.c
index a4b4f96..6fd549f 100644
--- a/arch/arm/mach-imx/speed-imx1.c
+++ b/arch/arm/mach-imx/speed-imx1.c
@@ -81,15 +81,15 @@ ulong imx_get_gptclk(void)
 
 void imx_dump_clocks(void)
 {
-	printf("spll:    %10d Hz\n", imx_get_spllclk());
-	printf("mpll:    %10d Hz\n", imx_get_mpllclk());
-	printf("fclk:    %10d Hz\n", imx_get_fclk());
-	printf("hclk:    %10d Hz\n", imx_get_hclk());
-	printf("bclk:    %10d Hz\n", imx_get_bclk());
-	printf("perclk1: %10d Hz\n", imx_get_perclk1());
-	printf("perclk2: %10d Hz\n", imx_get_perclk2());
-	printf("perclk3: %10d Hz\n", imx_get_perclk3());
-	printf("uart:    %10d Hz\n", imx_get_uartclk());
-	printf("gpt:     %10d Hz\n", imx_get_gptclk());
+	printf("spll:    %10ld Hz\n", imx_get_spllclk());
+	printf("mpll:    %10ld Hz\n", imx_get_mpllclk());
+	printf("fclk:    %10ld Hz\n", imx_get_fclk());
+	printf("hclk:    %10ld Hz\n", imx_get_hclk());
+	printf("bclk:    %10ld Hz\n", imx_get_bclk());
+	printf("perclk1: %10ld Hz\n", imx_get_perclk1());
+	printf("perclk2: %10ld Hz\n", imx_get_perclk2());
+	printf("perclk3: %10ld Hz\n", imx_get_perclk3());
+	printf("uart:    %10ld Hz\n", imx_get_uartclk());
+	printf("gpt:     %10ld Hz\n", imx_get_gptclk());
 }
 
diff --git a/arch/arm/mach-imx/speed-imx21.c b/arch/arm/mach-imx/speed-imx21.c
index 9ae8026..6ab1dca 100644
--- a/arch/arm/mach-imx/speed-imx21.c
+++ b/arch/arm/mach-imx/speed-imx21.c
@@ -145,16 +145,16 @@ void imx_dump_clocks(void)
 	uint32_t	cid = CID;
 
 	printf("chip id: [%08x]\n", cid);
-	printf("mpll:    %10d Hz\n", imx_get_mpllclk());
-	printf("spll:    %10d Hz\n", imx_get_spllclk());
-	printf("arm:     %10d Hz\n", imx_get_armclk());
-	printf("fclk:    %10d Hz\n", imx_get_fclk());
-	printf("nfcclk:  %10d Hz\n", imx_get_nfcclk());
-	printf("perclk1: %10d Hz\n", imx_get_perclk1());
-	printf("perclk2: %10d Hz\n", imx_get_perclk2());
-	printf("perclk3: %10d Hz\n", imx_get_perclk3());
-	printf("perclk4: %10d Hz\n", imx_get_perclk4());
-	printf("clkin26: %10d Hz\n", clk_in_26m());
+	printf("mpll:    %10ld Hz\n", imx_get_mpllclk());
+	printf("spll:    %10ld Hz\n", imx_get_spllclk());
+	printf("arm:     %10ld Hz\n", imx_get_armclk());
+	printf("fclk:    %10ld Hz\n", imx_get_fclk());
+	printf("nfcclk:  %10ld Hz\n", imx_get_nfcclk());
+	printf("perclk1: %10ld Hz\n", imx_get_perclk1());
+	printf("perclk2: %10ld Hz\n", imx_get_perclk2());
+	printf("perclk3: %10ld Hz\n", imx_get_perclk3());
+	printf("perclk4: %10ld Hz\n", imx_get_perclk4());
+	printf("clkin26: %10ld Hz\n", clk_in_26m());
 }
 
 /*
diff --git a/arch/arm/mach-imx/speed-imx25.c b/arch/arm/mach-imx/speed-imx25.c
index cb28e9f..68b50e9 100644
--- a/arch/arm/mach-imx/speed-imx25.c
+++ b/arch/arm/mach-imx/speed-imx25.c
@@ -89,16 +89,16 @@ unsigned long imx_get_mmcclk(void)
 
 void imx_dump_clocks(void)
 {
-	printf("mpll:    %10d Hz\n", imx_get_mpllclk());
-	printf("upll:    %10d Hz\n", imx_get_upllclk());
-	printf("arm:     %10d Hz\n", imx_get_armclk());
-	printf("ahb:     %10d Hz\n", imx_get_ahbclk());
-	printf("uart:    %10d Hz\n", imx_get_perclk(15));
-	printf("gpt:     %10d Hz\n", imx_get_ipgclk());
-	printf("nand:    %10d Hz\n", imx_get_perclk(8));
-	printf("lcd:     %10d Hz\n", imx_get_perclk(7));
-	printf("i2c:     %10d Hz\n", imx_get_perclk(6));
-	printf("sdhc1:   %10d Hz\n", imx_get_perclk(3));
+	printf("mpll:    %10ld Hz\n", imx_get_mpllclk());
+	printf("upll:    %10ld Hz\n", imx_get_upllclk());
+	printf("arm:     %10ld Hz\n", imx_get_armclk());
+	printf("ahb:     %10ld Hz\n", imx_get_ahbclk());
+	printf("uart:    %10ld Hz\n", imx_get_perclk(15));
+	printf("gpt:     %10ld Hz\n", imx_get_ipgclk());
+	printf("nand:    %10ld Hz\n", imx_get_perclk(8));
+	printf("lcd:     %10ld Hz\n", imx_get_perclk(7));
+	printf("i2c:     %10ld Hz\n", imx_get_perclk(6));
+	printf("sdhc1:   %10ld Hz\n", imx_get_perclk(3));
 }
 
 /*
diff --git a/arch/arm/mach-imx/speed-imx31.c b/arch/arm/mach-imx/speed-imx31.c
index 70b1330..32a517d 100644
--- a/arch/arm/mach-imx/speed-imx31.c
+++ b/arch/arm/mach-imx/speed-imx31.c
@@ -67,8 +67,8 @@ ulong imx_get_perclk1(void)
 void imx_dump_clocks(void)
 {
 	ulong cpufreq = imx_get_mcu_main_clk();
-	printf("mx31 cpu clock: %dMHz\n",cpufreq / 1000000);
-	printf("ipg clock     : %dHz\n", imx_get_perclk1());
+	printf("mx31 cpu clock: %ldMHz\n",cpufreq / 1000000);
+	printf("ipg clock     : %ldHz\n", imx_get_perclk1());
 }
 
 ulong imx_get_uartclk(void)
diff --git a/arch/arm/mach-imx/speed-imx35.c b/arch/arm/mach-imx/speed-imx35.c
index 8937ef1..b2a339c 100644
--- a/arch/arm/mach-imx/speed-imx35.c
+++ b/arch/arm/mach-imx/speed-imx35.c
@@ -187,15 +187,15 @@ ulong imx_get_i2cclk(void)
 
 void imx_dump_clocks(void)
 {
-	printf("mpll:    %10d Hz\n", imx_get_mpllclk());
-	printf("ppll:    %10d Hz\n", imx_get_ppllclk());
-	printf("arm:     %10d Hz\n", imx_get_armclk());
-	printf("gpt:     %10d Hz\n", imx_get_gptclk());
-	printf("ahb:     %10d Hz\n", imx_get_ahbclk());
-	printf("ipg:     %10d Hz\n", imx_get_ipgclk());
-	printf("ipg_per: %10d Hz\n", imx_get_ipg_perclk());
-	printf("uart:	 %10d Hz\n", imx_get_uartclk());
-	printf("sdhc1:   %10d Hz\n", imx_get_mmcclk());
+	printf("mpll:    %10ld Hz\n", imx_get_mpllclk());
+	printf("ppll:    %10ld Hz\n", imx_get_ppllclk());
+	printf("arm:     %10ld Hz\n", imx_get_armclk());
+	printf("gpt:     %10ld Hz\n", imx_get_gptclk());
+	printf("ahb:     %10ld Hz\n", imx_get_ahbclk());
+	printf("ipg:     %10ld Hz\n", imx_get_ipgclk());
+	printf("ipg_per: %10ld Hz\n", imx_get_ipg_perclk());
+	printf("uart:	 %10ld Hz\n", imx_get_uartclk());
+	printf("sdhc1:   %10ld Hz\n", imx_get_mmcclk());
 }
 
 /*
-- 
1.7.2.3




More information about the barebox mailing list