Add preliminary support for the Routerboard 153 CF slot (#2550)
[openwrt/svn-archive/archive.git] / target / linux / adm5120 / files / include / asm-mips / mach-adm5120 / adm5120_cf.h
1 #include <linux/types.h>
2 #include <linux/io.h>
3
4 #include <adm5120_defs.h>
5 #include <adm5120_switch.h>
6
7 /* CFRDY is connected to GPIO4/INTX_1 */
8 #define ADM5120_CF_GPIO_NUM 4
9 #define ADM5120_CF_IRQ_LEVEL_BIT 0x20 /* GPIO4 = 0x20, GPIO2 = 0x10 */
10 #define ADM5120_IRQ_CFRDY 5
11 #define EXTIO_WAIT_EN (0x1 << 6)
12 #define EXTIO_CS1_INT1_EN (0x1 << 5)
13 #define EXTIO_CS0_INT0_EN (0x1 << 4)
14
15 struct cf_device {
16 int gpio_pin;
17 void *dev;
18 struct gendisk *gd;
19 };