VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / include / asm-arm / arch-s3c2410 / hardware.h
1 /* linux/include/asm-arm/arch-s3c2410/hardware.h
2  *
3  * (c) 2003 Simtec Electronics
4  *  Ben Dooks <ben@simtec.co.uk>
5  *
6  * S3C2410 - hardware
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  *
12  * Changelog:
13  *  21-May-2003 BJD  Created file
14  *  06-Jun-2003 BJD  Added CPU frequency settings
15  *  03-Sep-2003 BJD  Linux v2.6 support
16  *  12-Mar-2004 BJD  Fixed include protection, fixed type of clock vars
17 */
18
19 #ifndef __ASM_ARCH_HARDWARE_H
20 #define __ASM_ARCH_HARDWARE_H
21
22 #ifndef __ASSEMBLY__
23
24 /* processor clock settings, in Hz */
25 extern unsigned long s3c2410_pclk;
26 extern unsigned long s3c2410_hclk;
27 extern unsigned long s3c2410_fclk;
28
29 /* external functions for GPIO support
30  *
31  * These allow various different clients to access the same GPIO
32  * registers without conflicting. If your driver only owns the entire
33  * GPIO register, then it is safe to ioremap/__raw_{read|write} to it.
34 */
35
36 /* s3c2410_gpio_cfgpin
37  *
38  * set the configuration of the given pin to the value passed.
39  *
40  * eg:
41  *    s3c2410_gpio_cfgpin(S3C2410_GPA0, S3C2410_GPA0_ADDR0);
42  *    s3c2410_gpio_cfgpin(S3C2410_GPE8, S3C2410_GPE8_SDDAT1);
43 */
44
45 extern void s3c2410_gpio_cfgpin(unsigned int pin, unsigned int function);
46
47 /* s3c2410_gpio_pullup
48  *
49  * configure the pull-up control on the given pin
50  *
51  * to = 1 => disable the pull-up
52  *      0 => enable the pull-up
53  *
54  * eg;
55  *
56  *   s3c2410_gpio_pullup(S3C2410_GPB0, 0);
57  *   s3c2410_gpio_pullup(S3C2410_GPE8, 0);
58 */
59
60 extern void s3c2410_gpio_pullup(unsigned int pin, unsigned int to);
61
62 extern void s3c2410_gpio_setpin(unsigned int pin, unsigned int to);
63
64 #endif /* __ASSEMBLY__ */
65
66 #include <asm/sizes.h>
67 #include <asm/arch/map.h>
68
69 /* machine specific includes, such as the BAST */
70
71 #if defined(CONFIG_ARCH_BAST)
72 #include <asm/arch/bast-cpld.h>
73 #endif
74
75 /* currently here until moved into config (todo) */
76 #define CONFIG_NO_MULTIWORD_IO
77
78 #endif /* __ASM_ARCH_HARDWARE_H */