1 /* linux/include/asm-arm/arch-s3c2410/hardware.h
3 * (c) 2003 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
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.
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
19 #ifndef __ASM_ARCH_HARDWARE_H
20 #define __ASM_ARCH_HARDWARE_H
24 /* processor clock settings, in Hz */
25 extern unsigned long s3c2410_pclk;
26 extern unsigned long s3c2410_hclk;
27 extern unsigned long s3c2410_fclk;
29 /* external functions for GPIO support
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.
36 /* s3c2410_gpio_cfgpin
38 * set the configuration of the given pin to the value passed.
41 * s3c2410_gpio_cfgpin(S3C2410_GPA0, S3C2410_GPA0_ADDR0);
42 * s3c2410_gpio_cfgpin(S3C2410_GPE8, S3C2410_GPE8_SDDAT1);
45 extern void s3c2410_gpio_cfgpin(unsigned int pin, unsigned int function);
47 /* s3c2410_gpio_pullup
49 * configure the pull-up control on the given pin
51 * to = 1 => disable the pull-up
52 * 0 => enable the pull-up
56 * s3c2410_gpio_pullup(S3C2410_GPB0, 0);
57 * s3c2410_gpio_pullup(S3C2410_GPE8, 0);
60 extern void s3c2410_gpio_pullup(unsigned int pin, unsigned int to);
62 extern void s3c2410_gpio_setpin(unsigned int pin, unsigned int to);
64 #endif /* __ASSEMBLY__ */
66 #include <asm/sizes.h>
67 #include <asm/arch/map.h>
69 /* machine specific includes, such as the BAST */
71 #if defined(CONFIG_ARCH_BAST)
72 #include <asm/arch/bast-cpld.h>
75 /* currently here until moved into config (todo) */
76 #define CONFIG_NO_MULTIWORD_IO
78 #endif /* __ASM_ARCH_HARDWARE_H */