2009-12-27 22:40:54     how to support two dm9000?

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2009-12-27 22:40:54     how to support two dm9000?

billy zhou (UNITED STATES)

Message: 83973   

 

we need two dm9000 network.

 

We use A8+AMS3 as the control, the 1st dm9000 keep the same, use 0x20300000 addr, and the 2nd use 20300100 addr.

 

Now the 1st dm9000 works fine, but we can't detect the 2nd dm9000.

 

what can I do with the kernel, and the driver?

 

pls help us , thanks a lot!

 

QuoteReplyEditDelete

 

 

2009-12-27 22:53:07     Re: how to support two dm9000?

Barry Song (CHINA)

Message: 83974   

 

add another dm9000 platform device and resources in board file just like:

 

static struct resource dm9000_resources1[] = {

        [0] = {

                .start  = ...,

                .end    = ...,

                .flags  = IORESOURCE_MEM,

        }, 

        [1] = {

                .start  = ...,

                .end    = ...,

                .flags  = IORESOURCE_MEM,

        }, 

        [2] = {

                .start  = ..,

                .end    = ...,

                .flags  = (IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE),

        }, 

};

 

static struct platform_device dm9000_device1 = {

        .name           = "dm9000",

        .id             = 1,

        .num_resources  = ARRAY_SIZE(dm9000_resources1),

        .resource       = dm9000_resources1,

};

 

 

and change the id of the first dm9000 to 0.

QuoteReplyEditDelete

Attachments

    Outcomes