This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm9000 read wrong id in dm3730

Hi,all.

this is may be an old problem,but I can't find the solution so I want to ask here.refer to http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/t/123394.aspx

My software settings in board-omap3evm.c are:

-------------------------------------------------------------------

#define OMAP3EVM_ETHR_START    0x2C000000
#define OMAP3EVM_ETHR_GPIO_IRQ    21

#define OMAP3EVM_DM9000_CS    3

static struct resource dm9k_resource[] = {
    [0] = {
        .start = OMAP3EVM_ETHR_START,
        .end   = (OMAP3EVM_ETHR_START + 3),
        .flags = IORESOURCE_MEM,
    },
    [1] = {
        .start = OMAP3EVM_ETHR_START + 0x100,
        .end   = OMAP3EVM_ETHR_START + 0x100 + 3,
        .flags = IORESOURCE_MEM,
    },
    [2] = {
        .start = OMAP_GPIO_IRQ(OMAP3EVM_ETHR_GPIO_IRQ),
        .end   = OMAP_GPIO_IRQ(OMAP3EVM_ETHR_GPIO_IRQ),
        .flags = (IORESOURCE_IRQ | IRQF_TRIGGER_HIGH),
    },
};

static struct dm9000_plat_data dm9k_platdata = {
    .flags        = DM9000_PLATF_16BITONLY,
};

static struct platform_device device_dm9k = {
    .name        = "dm9000",
    .id        = 0,
    .num_resources    = ARRAY_SIZE(dm9k_resource),
    .resource    = dm9k_resource,
    .dev        = {
        .platform_data = &dm9k_platdata,
    }
};

 

but when kerle boot,it printed

dm9000 Ethernet Driver, V1.31
dm9000 dm9000.0: read wrong id 0x2b2a2928
dm9000 dm9000.0: read wrong id 0x2b2a2928
dm9000 dm9000.0: read wrong id 0x2b2a2928
dm9000 dm9000.0: read wrong id 0x2b2a2928
dm9000 dm9000.0: read wrong id 0x2b2a2928
dm9000 dm9000.0: read wrong id 0x2b2a2928
dm9000 dm9000.0: read wrong id 0x2b2a2928
dm9000 dm9000.0: read wrong id 0x2b2a2928
dm9000 dm9000.0: wrong id: 0x2b2a2928
dm9000 dm9000.0: not found (-19).

Someone said it depend on GPMC_CONFIG7,but I don't know how to config this and  which file should be modified.

I didn't find where the macro OMAP3EVM_DM9000_CS is used.

thank you for you attenion.