]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/asm-arm/arch-ns9xxx/processor-ns9360.h
ns9xxx: prepare for adding support for Digi ns921x processors
[linux-2.6-omap-h63xx.git] / include / asm-arm / arch-ns9xxx / processor-ns9360.h
1 /*
2  * include/asm-arm/arch-ns9xxx/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 */