From 0257e280fdf5861b8e9d625df517a938c2531a95 Mon Sep 17 00:00:00 2001 From: Joakim Axelsson Date: Fri, 3 Dec 2010 12:43:52 +0800 Subject: db8500: Move all clock code from board to SoC Moved clock code from board/st/u8500/u8500.c to cpu/arm_cortexa9/db8500/clock.c. Remove code to simulate Maja clocks. ST-Ericsson ID: None Signed-off-by: Joakim Axelsson Change-Id: Ibbb21d53091ceaddcc01e1a195e129039f986696 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7114 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT Tested-by: Michael BRANDT --- include/asm-arm/arch-db8500/clock.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/asm-arm/arch-db8500/clock.h b/include/asm-arm/arch-db8500/clock.h index b00ab0d21..b82dfb86d 100644 --- a/include/asm-arm/arch-db8500/clock.h +++ b/include/asm-arm/arch-db8500/clock.h @@ -62,11 +62,15 @@ struct prcmu { unsigned int ape_softrst; }; -extern void u8500_clock_enable(int periph, int kern, int cluster); - static inline void u8500_prcmu_enable(unsigned int *reg) { writel(readl(reg) | (1 << 8), reg); } +/* Enable all clocks u-boot needs in db8500 SoC platform */ +void db8500_clocks_init(void); + +/* Legacy function to allow drivers to enable their clock */ +void u8500_clock_enable(int periph, int cluster, int kern); + #endif /* __ASM_ARCH_CLOCK */ -- cgit v1.2.3