AnsweredAssumed Answered

ISP1362 HCD(mode) of uClinux  based on BF561

Question asked by fuhui on Nov 8, 2012
Latest reply on Nov 14, 2012 by fuhui

Recently,I meet a problem about my ISP1362.

the ISP1362 supported for USB.

And I want to get help from the teachers in the forum.

please reading the text!!

 

 

the next is my configuration on bf561 for ISP1362

#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)

#include <linux/usb/isp1362.h>

 

static struct resource isp1362_hcd_resources[] = {

    {

        .start = 0x24000000,

        .end = 0x24000000,

        .flags = IORESOURCE_MEM,

    }, {

        .start = 0x24000004,

        .end = 0x24000004,

        .flags = IORESOURCE_MEM,

    }, {

        .start = IRQ_PF9,

        .end = IRQ_PF9,

        .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,

    },

};

 

static struct isp1362_platform_data isp1362_priv = {

    .sel15Kres = 1,

    .clknotstop = 0,

    .oc_enable = 0,

    .int_act_high = 0,

    .int_edge_triggered = 0,

    .remote_wakeup_connected = 0,

    .no_power_switching = 1,

    .power_switching_mode = 0,

};

 

static struct platform_device isp1362_hcd_device = {

    .name = "isp1362-hcd",

    .id = 0,

    .dev = {

        .platform_data = &isp1362_priv,

    },

    .num_resources = ARRAY_SIZE(isp1362_hcd_resources),

    .resource = isp1362_hcd_resources,

};

#endif

I used PF9 for interrupt signal. and it was  connected to INT1.

PF10 was connected to INT2,but under HCD mode , it was  unused.

 

the following is dmsg information:


Using physmap partition information

Creating 5 MTD partitions on "physmap-flash.0":

0x000000000000-0x000000040000 : "bootloader(nor)"

0x000000040000-0x000000200000 : "linux kernel(nor)"

0x000000200000-0x0000007f0000 : "file system(nor)"

0x0000007f0000-0x0000007fe000 : "config(nor)"

0x0000007fe000-0x000000800000 : "u-boot env(nor)"

dm9000 Ethernet Driver, V1.31

eth0: dm9000a at 2c000000,2c000004 IRQ 81 MAC: 08:00:3e:26:0a:5b (chip)

driver isp1362-hcd, 2005-04-04

isp1362-hcd isp1362-hcd.0: ISP1362 Host Controller

isp1362-hcd isp1362-hcd.0: new USB bus registered, assigned bus number 1

isp1362_hc_reset:

isp1362-hcd isp1362-hcd.0: irq 82, io mem 0x24000000

isp1362_hc_start:

isp1362-hcd isp1362-hcd.0: ISP1362 Memory usage:

isp1362-hcd isp1362-hcd.0:   ISTL:    2 *  256:      512 @ $0000:$0100

isp1362-hcd isp1362-hcd.0:   INTL:   16 * ( 64+8):  1152 @ $0200

isp1362-hcd isp1362-hcd.0:   ATL :   32 * ( 64+8):  2304 @ $0680

isp1362-hcd isp1362-hcd.0:   USED/FREE:   3968       128

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

ISP1362 Host Controller, irq 82

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

dm9000 dm9000: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

IP-Config: Complete:

     device=eth0, addr=192.168.1.101, mask=255.255.255.0, gw=192.168.1.1,

     host=BF561-ezkit, domain=, nis-domain=(none),

     bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=

dma_alloc_init: dma_page @ 0x02794000 - 256 pages at 0x03f00000

Freeing unused kernel memory: 5536k freed

usb 1-2: new full speed USB device number 2 using isp1362-hcd

isp1362-hcd isp1362-hcd.0: Unlink after no-IRQ?  Controller is probably using the wrong IRQ.

 


My question is what's the reason for:

Unlink after no-IRQ?  Controller is probably using the wrong IRQ.

 

I tried to change the interrupt pin to PF36 ,but I got the same printing results.

 

I want to know how I can do to solve the problem.

Does my kernel configuration need to change ?

And I think my hardware circuit of isp1362 is right.

 


I wish you could give me a favor.

thank you very much!

 

 


Outcomes