apelete | Hello | 19:40 |
---|---|---|
apelete | larsc: are you there ? | 19:40 |
larsc | yes | 19:40 |
apelete | Hi | 19:40 |
larsc | hi | 19:41 |
apelete | I'm trying to test the musb glue layer skeleton I' ve written: http://seketeli.fr/git/~apelete/qi-kernel.git/commit/?h=jz4740-udc | 19:41 |
apelete | when I load it nothing happens | 19:41 |
larsc | did you create a platform device for it in qi_lb60.c? | 19:42 |
apelete | no, should I ? | 19:43 |
larsc | yes, or better just change the name of the jzudc device | 19:44 |
larsc | in arch/mips/jz4740/platform.c | 19:45 |
apelete | I don't get it. qi_lb60.c seems to be asoc related, why should I create a platform device there ? | 19:46 |
larsc | board-qi_lb60.c, sorry | 19:47 |
apelete | in board-qi_lb60.c, I found: | 19:58 |
apelete | static struct platform_device *jz_platform_devices[] __initdata = { | 19:58 |
apelete | &jz4740_udc_device, | 19:58 |
apelete | which correspond to the following in arch/mips/jz4740/platform.c: | 19:58 |
apelete | struct platform_device jz4740_udc_device = { | 19:58 |
apelete | .name= "jz-udc", | 19:58 |
apelete | 19:58 | |
larsc | yes, replace "jz-udc" with "musb-jz4740" | 20:00 |
apelete | okay, so I don't need to modifiy drivers/usb/musb/Makefile and drivers/usb/musb/Kconfig to add rules for musb-jz4740 ? | 20:02 |
apelete | because all the musb glue layers seem to have some sort of configuration options in those latter files | 20:03 |
apelete | and they (the other musb glue layers) all depend on the USB_MUSB_HDRC kernel config parameter | 20:05 |
apelete | I compiled musb-jz4740 out of tree and loaded it, but nothing happened. so I think I'm missing the corresponding USB_MUSB_HDRC driver in the kernel: I think musb-jz4740 should be used by USB_MUSB_HDRC driver | 20:10 |
apelete | larsc: am I mistaking here ? | 20:10 |
larsc | yes, you need to load the musb module as well | 20:16 |
apelete | ok. so I need to modify drivers/usb/musb/Makefile and drivers/usb/musb/Kconfig as well, because the musb module cannot be activated in the menuconfig without a platform glue layer | 20:19 |
apelete | larsc: I do not know what to put in the drivers/usb/musb/Kconfig for musb-jz4740 exactly, I explain: | 20:23 |
apelete | let's take for instance the platform glue layer config section of a TI controller in drivers/usb/musb/Makefile and drivers/usb/musb/Kconfig: | 20:24 |
apelete | choice | 20:24 |
apelete | prompt "Platform Glue Layer" | 20:24 |
apelete | 20:24 | |
apelete | config USB_MUSB_DAVINCI | 20:24 |
apelete | tristate "DaVinci" | 20:24 |
apelete | depends on ARCH_DAVINCI_DMx | 20:24 |
apelete | 20:24 | |
Last message repeated 1 time(s). | 20:25 | |
apelete | larsc: it depends on ARCH_DAVINCI_DMx. what should musb-jz4740 depends on ? | 20:25 |
apelete | I'm thinking of something like ARCH_MIPS maybe, but not sure about that | 20:26 |
apelete | s/ config section of a TI controller in drivers/usb/musb/Makefile and drivers/usb/musb/Kconfig / config section of a TI controller indrivers/usb/musb/Kconfig / | 20:28 |
larsc | depends on MACH_JZ4740 should work | 20:53 |
apelete | ok thanks | 21:01 |
apelete | larsc: I won't bother you longer, will try those modifications first and see what happens :) | 21:02 |
apelete | thanks a lot for your time | 21:02 |
larsc | no problem | 21:05 |
DocScrutinizer05 | MUSB WAAAAAH!!! | 21:53 |
DocScrutinizer05 | don't tell me JZ4740 is using the fsckdup mentalgrafucks musb core | 21:55 |
DocScrutinizer05 | had my year of torture trying to fix stuff in drivers for that crap | 21:56 |
DocScrutinizer05 | ask PaulFertser what he thinks about musb-hdrc ;-P | 21:56 |
DocScrutinizer05 | ARCH_DAVINCI is OMAP36xx, no? | 21:58 |
DocScrutinizer05 | actually Nokia's idea of a OMAP36xx platform | 21:59 |
DocScrutinizer05 | afaik | 21:59 |
larsc | davinci is davinci | 22:00 |
DocScrutinizer05 | anyway DAVINCI been the codename for the N9(50) prototypes at Nokia | 22:00 |
larsc | they sometimes share IP cores between davinci and omap though | 22:01 |
DocScrutinizer05 | so what's the "top" meaning of davinci term? A SoC, a platform, a project, a son of flying spaghetti monster? | 22:04 |
larsc | family of SoCs | 22:05 |
DocScrutinizer05 | mhm | 22:05 |
DocScrutinizer05 | thanks | 22:05 |
DocScrutinizer05 | right, I seem to recall something at TI's website | 22:06 |
DocScrutinizer05 | might be wrong though | 22:06 |
DocScrutinizer05 | thought as much: http://www.ti.com/sitesearch/docs/universalsearch.tsp?searchTerm=DAVINCI%20PROCESSORS&linkId=1 | 22:10 |
DocScrutinizer05 | http://processors.wiki.ti.com/index.php/Category:DaVinci_Linux looks actually not too bad | 22:16 |
mth | apelete: we've got a JZ4770 kernel here that uses the musb driver: https://github.com/gcwnow/linux | 23:16 |
mth | the 4770 version can do OTG, which I guess the 4740 version cannot, so it's probably not exactly the same | 23:16 |
mth | the glue is slightly cleaned up compared to Ingenic's code, but it's not great yet | 23:17 |
mth | it does work reliably though | 23:17 |
--- Thu Aug 22 2013 | 00:00 |
Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!