2 * include/asm-arm/arch-ns9xxx/clock.h
4 * Copyright (C) 2007 by Digi International Inc.
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
11 #ifndef __ASM_ARCH_CLOCK_H
12 #define __ASM_ARCH_CLOCK_H
14 static inline u32 ns9xxx_systemclock(void)
17 * This should be a multiple of HZ * TIMERCLOCKSELECT (in time.c)
22 static inline const u32 ns9xxx_cpuclock(void)
24 return ns9xxx_systemclock() / 2;
27 static inline const u32 ns9xxx_ahbclock(void)
29 return ns9xxx_systemclock() / 4;
32 static inline const u32 ns9xxx_bbusclock(void)
34 return ns9xxx_systemclock() / 8;
37 #endif /* ifndef __ASM_ARCH_CLOCK_H */