此帖出自ARM技术论坛
最新回复
#define DM9000_BASE 0x10000300
/* Add Dm9000 platform_device simon */
static struct resource LMD4600_dm9000_resource[] = {
[0]= {
.start = DM9000_BASE, //this is based on 4600 board U26
.end = DM9000_BASE+0x7,
.flags = IORESOURCE_MEM,
},
[1]={
.start = DM9000_BASE+0x8,
.end = DM9000_BASE+0x8+0x7,
.flags = IORESOURCE_MEM,
},
[2]={
.start = IRQ_EINT6,//U26 use 2440 irq eint6
.end = IRQ_EINT6,
.flags = IORESOURCE_IRQ,
}
};
static struct dm9000_plat_data LMD4600_dm9000_platdata ={
.flags = DM9000_PLATF_32BITONLY,//work in 32bit mode
};
struct platform_device LMD4600_dm9000_device = {
.name = "dm9000",
.id = 0,
.num_resources = 3,
.resource = LMD4600_dm9000_resource,
.dev = {
.platform_data = &LMD4600_dm9000_platdata,
}
};
EXPORT_SYMBOL(LMD4600_dm9000_device);
/*end add simon */
在devs.c种申请的资源
详情
回复
发表于 2009-2-11 15:43
| ||
|
||
此帖出自ARM技术论坛
| ||
|
||
EEWorld Datasheet 技术支持