diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-10-22 20:56:34 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-10-22 20:56:34 +0000 |
commit | 2a0ca50ce2fbc3fc5b0eab9e48c08b46f0b7aa54 (patch) | |
tree | b78e86a8da696710637c45773eea65e3649a9cbe /target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_cf.h | |
parent | 5db86fb47a934a9afbe6d960a67ac1821be6dd74 (diff) | |
download | master-31e0f0ae-2a0ca50ce2fbc3fc5b0eab9e48c08b46f0b7aa54.tar.gz master-31e0f0ae-2a0ca50ce2fbc3fc5b0eab9e48c08b46f0b7aa54.tar.bz2 master-31e0f0ae-2a0ca50ce2fbc3fc5b0eab9e48c08b46f0b7aa54.zip |
Add preliminary support for the Routerboard 153 CF slot (#2550)
SVN-Revision: 9403
Diffstat (limited to 'target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_cf.h')
-rw-r--r-- | target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_cf.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_cf.h b/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_cf.h new file mode 100644 index 0000000000..e26e1d4199 --- /dev/null +++ b/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_cf.h @@ -0,0 +1,19 @@ +#include <linux/types.h> +#include <linux/io.h> + +#include <adm5120_defs.h> +#include <adm5120_switch.h> + +/* CFRDY is connected to GPIO4/INTX_1 */ +#define ADM5120_CF_GPIO_NUM 4 +#define ADM5120_CF_IRQ_LEVEL_BIT 0x20 /* GPIO4 = 0x20, GPIO2 = 0x10 */ +#define ADM5120_IRQ_CFRDY 5 +#define EXTIO_WAIT_EN (0x1 << 6) +#define EXTIO_CS1_INT1_EN (0x1 << 5) +#define EXTIO_CS0_INT0_EN (0x1 << 4) + +struct cf_device { + int gpio_pin; + void *dev; + struct gendisk *gd; +}; |