Ah, gotcha.
Interesting word, "should". :-)
I'm trying to add the appropriate lines to set up the resource to setup.c as follows:
static struct resource sl811_resources = {
= {
.start = 0x48389D0,
.end = 0x48389D3,
.flags = IORESOURCE_MEM,
},
= {
.start = 0x48389D4,
.end = 0x48389D7,
.flags = IORESOURCE_MEM,
},
= {
.start = 7,
.end = 7,
.flags = IORESOURCE_IRQ,
}
};
static void sm3k_port_power(struct device *dev, int is_on) {
// see linux/usb_sl811.h
}
static void sm3k_hc_reset(struct device *dev) {
// see linux/usb_sl811.h
}
struct sl811_platform_data sm3k_sl811 = {
.potpg = 100,
.port_power = sm3k_port_power,
.reset = sm3k_hc_reset,
};
static struct platform_device sl811_device = {
.name = "sl811-hcd",
.id = -1,
.dev = {
.platform_data = &sm3k_sl811,
},
.num_resources = 3,
.resource = sl811_resources,
};
and then down in the setup_arch() function in arch/nios2nommu/kernel/setup.c (right before the
printk("Done setup_arch\n");
I added
platform_device_register(&sl811_device);
But when the kernel boots, I get
<div class='quotetop'>QUOTE </div>
--- Quote Start ---
<3>sl811-hcd: failed to claim resource 0[/b]
--- Quote End ---