[PATCH 08/19] arch/MPC5xxx: separate clock functions

Juergen Borleis jbe at pengutronix.de
Tue Oct 7 07:22:07 PDT 2014


In order to support the MPC5125 SoC we need a different set of clock functions.

Signed-off-by: Juergen Borleis <jbe at pengutronix.de>
---
 arch/ppc/mach-mpc5xxx/include/mach/clocks.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/arch/ppc/mach-mpc5xxx/include/mach/clocks.h b/arch/ppc/mach-mpc5xxx/include/mach/clocks.h
index 4e1a903..717a85b 100644
--- a/arch/ppc/mach-mpc5xxx/include/mach/clocks.h
+++ b/arch/ppc/mach-mpc5xxx/include/mach/clocks.h
@@ -1,10 +1,14 @@
 #ifndef __ASM_ARCH_CLOCKS_H
 #define __ASM_ARCH_CLOCKS_H
 
-unsigned long get_bus_clock(void);
+/* common clocks */
 unsigned long get_cpu_clock(void);
+unsigned long get_timebase_clock(void);
+
+#if defined(CONFIG_MGT5100) || defined(CONFIG_MPC5200)
+unsigned long get_bus_clock(void);
 unsigned long get_ipb_clock(void);
 unsigned long get_pci_clock(void);
-unsigned long get_timebase_clock(void);
+#endif
 
 #endif /* __ASM_ARCH_CLOCKS_H */
-- 
2.1.0




More information about the barebox mailing list