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.

Question about the SMSC9118 driver

Other Parts Discussed in Thread: OMAP3530

Hi,  I am using the ti wince6.0 bsp(BSP_WINCE_ARM_A8_01_00_00). I try to use the SMSC9118 miniport driver to drive the LAN9220, but there is a difference between my Target board and TI EVM3, I use GPIO_19 as the IRQ line to the ethernet chip but TI EVM3 use GPIO_176.

How to port  the driver to make the chip work?Which part in the source code I should modify?

Thanks.

  • Hi,

    You need to modify WINCE600\PLATFORM\EVM_OMAP3530\SRC\INC\bsp_def.h:

     #define LAN9115_IRQ_GPIO (176)

    And change it for the GPIO you are using in your design. You also need to modify the pin mux configuration of your gpio under \WINCE600\PLATFORM\EVM_OMAP3530\SRC\INC\bsp_padcfg.h:

    Under the GPIO_PADS definition, replace

    PAD_ENTRY(MCSPI1_CS2, INPUT_ENABLED | MUXMODE(4)) /* GPIO 176 : LAN irq*/ \

    by the pad entry corresponding to your GPIO. That should do the trick if you completeley rebuild your BSP and reflash the bootloaders (PAD_CFG is shared between the bootloaders and the kernel).

    Good luck.

     

     

     

     

     

     

  • Hi, your suggestion solve my problem, the ethernet chip is working well now.

    Thank you very much :~)