Forum Discussion
Altera_Forum
Honored Contributor
21 years agoUSB kernel config
Hi,
We're using the Cypress SL811 host controller on our NIOS2 board. The kernel config option wasn't available until I edited the Kconfig file in the source tree (drivers/usb/host/Kconfig), found the appropriate option, and added <div class='quotetop'>QUOTE </div> --- Quote Start --- || (NIOS2 && USB)[/b] --- Quote End --- You guys really need to go through and update the stuff which is in there to make it available. :-) Or does this stuff only work in NIOS 1 but not NIOS2? (I haven't compiled yet.) This was the case with all USB support too, you may recall.12 Replies
- Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE </div>
--- Quote Start --- Or does this stuff only work in NIOS 1 but not NIOS2? (I haven't compiled yet.)[/b] --- Quote End --- that sl811 driver works only under kernel 2.4. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by wentao@Mar 24 2005, 08:58 AM <div class='quotetop'>quote--- quote end ---
--- quote start ---
or does this stuff only work in nios 1 but not nios2? (i haven't compiled yet.) --- Quote End --- that sl811 driver works only under kernel 2.4. [/b] --- Quote End --- Why? It's in the mainline 2.6 sources. Has anyone done any work to make it work with 2.6?
- Altera_Forum
Honored Contributor
I put a lot of time in. It is now kind of working in house.
- Altera_Forum
Honored Contributor
I'd love to get a copy of that.
I've been working on it myself; I've added some basic stubs in dma-mappings.h, commented out the interrupt enable for the moment, and changed the irq handler to return IRQ_HANDLED; not very detailed, but it would be great to get a version where more thought was put into it. Would it be possible for you to send it to me, or put it somewhere where it can be gotten at? Or at least outline was needs to be changed? Many thanks! - Altera_Forum
Honored Contributor
Sorry I did not notice your posting.
You can get a new driver from the source of 2.6.10 kernel. wentao Microtronix Datacom Ltd - Altera_Forum
Honored Contributor
Do you mean the mainline kernel, or a special microtronix one?
Also, doesn't it need dma mappings? (dma_map_single, dma_unmap_single, etc.) Do you have any suggestions for implementing them, or just the obvious no mapping is needed so just return the pointer we're passed? - Altera_Forum
Honored Contributor
yes. the mainline kernel source.
just putting some dummy there to pass the compiling should be enough. - Altera_Forum
Honored Contributor
Hey, thanks for your help. The driver says this in sl811h_probe:
Any suggestions on where to put the board-specific init logic? (and any pointers to documentation on how to do this? Chapter 14 of Linux Device Drivers (3rd ed) discusses this slightly, but seems long on PCI and short on everything else.)/* basic sanity checks first. board-specific init logic should * have initialized these three resources and probably board * specific platform_data. we don't probe for IRQs, and do only * minimal sanity checking. */ - Altera_Forum
Honored Contributor
somewhere in arch/nios2nommu/, you may be able to find examples in other architectures.
wentao microtronix - Altera_Forum
Honored Contributor
I don't suppose that since you have a fairly working copy, you could post your resource init code to use as a guide? If not, I understand, but it would be very helpful. Thanks!