Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/mach-ns9xxx/include/mach/processor-ns9360.h |
| 3 | * |
| 4 | * Copyright (C) 2007 by Digi International Inc. |
| 5 | * All rights reserved. |
| 6 | * |
| 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. |
| 10 | */ |
| 11 | #ifndef __ASM_ARCH_PROCESSORNS9360_H |
| 12 | #define __ASM_ARCH_PROCESSORNS9360_H |
| 13 | |
| 14 | #include <linux/init.h> |
| 15 | |
| 16 | void ns9360_reset(char mode); |
| 17 | |
| 18 | unsigned long ns9360_systemclock(void) __attribute__((const)); |
| 19 | |
| 20 | static inline unsigned long ns9360_cpuclock(void) __attribute__((const)); |
| 21 | static inline unsigned long ns9360_cpuclock(void) |
| 22 | { |
| 23 | return ns9360_systemclock() / 2; |
| 24 | } |
| 25 | |
| 26 | void __init ns9360_map_io(void); |
| 27 | |
| 28 | extern struct sys_timer ns9360_timer; |
| 29 | |
| 30 | int ns9360_gpio_configure(unsigned gpio, int inv, int func); |
| 31 | |
| 32 | #endif /* ifndef __ASM_ARCH_PROCESSORNS9360_H */ |