1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-25 03:49:41 +02:00
openwrt-xburst/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_cf.h
florian 663af573eb Add preliminary support for the Routerboard 153 CF slot (#2550)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9403 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-22 20:56:34 +00:00

20 lines
493 B
C

#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;
};