diff mbox

[U-Boot,35/38] common: ep93xx: Move arch-specific declarations out of common

Message ID 20170517142311.29484-36-sjg@chromium.org
State Accepted
Commit 1c16d2e2482dd4a3991bc992d160043b257b3530
Delegated to: Tom Rini
Headers show

Commit Message

Simon Glass May 17, 2017, 2:23 p.m. UTC
These declarations should not be in common. Remove those that are not
needed and move the others to an arch-specific location.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/cpu/arm920t/ep93xx/speed.c |  2 +-
 include/common.h                    | 10 ----------
 2 files changed, 1 insertion(+), 11 deletions(-)

Comments

Tom Rini June 6, 2017, 12:20 a.m. UTC | #1
On Wed, May 17, 2017 at 08:23:08AM -0600, Simon Glass wrote:

> These declarations should not be in common. Remove those that are not
> needed and move the others to an arch-specific location.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/cpu/arm920t/ep93xx/speed.c b/arch/arm/cpu/arm920t/ep93xx/speed.c
index 9dc60b6ff2..f0ab7d4e3d 100644
--- a/arch/arm/cpu/arm920t/ep93xx/speed.c
+++ b/arch/arm/cpu/arm920t/ep93xx/speed.c
@@ -39,7 +39,7 @@  static ulong get_PLLCLK(uint32_t *pllreg)
 }
 
 /* return FCLK frequency */
-ulong get_FCLK()
+ulong get_FCLK(void)
 {
 	const uint8_t fclk_divisors[] = { 1, 2, 4, 8, 16, 1, 1, 1 };
 	struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE;
diff --git a/include/common.h b/include/common.h
index cabb0093bd..19839b67f1 100644
--- a/include/common.h
+++ b/include/common.h
@@ -512,16 +512,6 @@  int serial_stub_tstc(struct stdio_dev *sdev);
 
 /* $(CPU)/speed.c */
 int	get_clocks (void);
-#if defined(CONFIG_LH7A40X) || \
-    defined(CONFIG_EP93XX)
-ulong	get_FCLK (void);
-ulong	get_HCLK (void);
-ulong	get_PCLK (void);
-ulong	get_UCLK (void);
-#endif
-#if defined(CONFIG_LH7A40X)
-ulong	get_PLLCLK (void);
-#endif
 ulong	get_bus_freq  (ulong);
 int get_serial_clock(void);