bsp/mpc55xx: Add SMSC9218I_IRQ_PIN

This commit is contained in:
Sebastian Huber
2012-07-17 17:41:21 +02:00
parent f024d4f741
commit cece8db013
3 changed files with 10 additions and 2 deletions

View File

@@ -119,6 +119,11 @@ RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[*],[186])
RTEMS_BSPOPTS_HELP([SMSC9218I_RESET_PIN],
[reset pin for SMSC9218I network interface])
RTEMS_BSPOPTS_SET([SMSC9218I_IRQ_PIN],[mpc5674f_ecu508*],[450])
RTEMS_BSPOPTS_SET([SMSC9218I_IRQ_PIN],[*],[193])
RTEMS_BSPOPTS_HELP([SMSC9218I_IRQ_PIN],
[IRQ pin for SMSC9218I network interface])
RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[mpc5643l*],[])
RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[mpc5674f*],[31])
RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[*],[23])

View File

@@ -128,5 +128,8 @@
/* enable LED outputs for SMSC9218I network interface */
#undef SMSC9218I_ENABLE_LED_OUTPUTS
/* IRQ pin for SMSC9218I network interface */
#undef SMSC9218I_IRQ_PIN
/* reset pin for SMSC9218I network interface */
#undef SMSC9218I_RESET_PIN

View File

@@ -1529,10 +1529,10 @@ static void smsc9218i_interrupt_init(
#endif
pcr.B.ODE = 0;
pcr.B.HYS = 0;
pcr.B.SRC = 3;
pcr.B.SRC = 0;
pcr.B.WPE = 0;
pcr.B.WPS = 1;
SIU.PCR [193].R = pcr.R;
SIU.PCR [SMSC9218I_IRQ_PIN].R = pcr.R;
/* DMA/Interrupt Request Select */
rtems_interrupt_disable(level);