blob: 3c7f12cb81c1bb34e9a7f3eccbd62c03e2926c67 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/arch/arm/mach-clps711x/common.h
3 *
4 * Common bits.
5 */
6
Alexander Shiyan0d8be812012-11-17 17:57:13 +04007#define CLPS711X_NR_IRQS (30)
Alexander Shiyanb3a076d2012-11-17 17:57:08 +04008#define CLPS711X_NR_GPIO (4 * 8 + 3)
9#define CLPS711X_GPIO(prt, bit) ((prt) * 8 + (bit))
10
Linus Torvalds1da177e2005-04-16 15:20:36 -070011struct sys_timer;
12
13extern void clps711x_map_io(void);
14extern void clps711x_init_irq(void);
Alexander Shiyan99f04c82012-11-17 17:57:14 +040015extern void clps711x_handle_irq(struct pt_regs *regs);
Russell King6c000712011-11-05 17:41:52 +000016extern void clps711x_restart(char mode, const char *cmd);
Alexander Shiyan99f04c82012-11-17 17:57:14 +040017extern struct sys_timer clps711x_timer;