Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/arch/arm/mach-clps711x/common.h |
| 3 | * |
| 4 | * Common bits. |
| 5 | */ |
| 6 | |
Robin Holt | 7b6d864 | 2013-07-08 16:01:40 -0700 | [diff] [blame] | 7 | #include <linux/reboot.h> |
| 8 | |
Alexander Shiyan | b3a076d | 2012-11-17 17:57:08 +0400 | [diff] [blame] | 9 | #define CLPS711X_NR_GPIO (4 * 8 + 3) |
| 10 | #define CLPS711X_GPIO(prt, bit) ((prt) * 8 + (bit)) |
| 11 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | extern void clps711x_map_io(void); |
| 13 | extern void clps711x_init_irq(void); |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 14 | extern void clps711x_timer_init(void); |
Robin Holt | 7b6d864 | 2013-07-08 16:01:40 -0700 | [diff] [blame] | 15 | extern void clps711x_restart(enum reboot_mode mode, const char *cmd); |
Alexander Shiyan | afc98d9 | 2014-02-02 12:07:46 +0400 | [diff] [blame] | 16 | |
| 17 | /* drivers/irqchip/irq-clps711x.c */ |
| 18 | void clps711x_intc_init(phys_addr_t, resource_size_t); |
Alexander Shiyan | fff74a9 | 2014-08-19 16:31:13 +0400 | [diff] [blame] | 19 | /* drivers/clk/clk-clps711x.c */ |
| 20 | void clps711x_clk_init(void __iomem *base); |
| 21 | /* drivers/clocksource/clps711x-timer.c */ |
| 22 | void clps711x_clksrc_init(void __iomem *tc1_base, void __iomem *tc2_base, |
| 23 | unsigned int irq); |