forked from Imagelibrary/rtems
bsp/mpc55xx: Add SMSC9218I_RESET_PIN
This commit is contained in:
@@ -114,6 +114,11 @@ RTEMS_BSPOPTS_SET([SMSC9218I_ENABLE_LED_OUTPUTS],[mpc5674f_ecu508*],[1])
|
||||
RTEMS_BSPOPTS_HELP([SMSC9218I_ENABLE_LED_OUTPUTS],
|
||||
[enable LED outputs for SMSC9218I network interface])
|
||||
|
||||
RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[mpc5674f_ecu508*],[433])
|
||||
RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[*],[186])
|
||||
RTEMS_BSPOPTS_HELP([SMSC9218I_RESET_PIN],
|
||||
[reset 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])
|
||||
|
||||
@@ -127,3 +127,6 @@
|
||||
|
||||
/* enable LED outputs for SMSC9218I network interface */
|
||||
#undef SMSC9218I_ENABLE_LED_OUTPUTS
|
||||
|
||||
/* reset pin for SMSC9218I network interface */
|
||||
#undef SMSC9218I_RESET_PIN
|
||||
|
||||
@@ -1600,7 +1600,7 @@ static void smsc9218i_interrupt_init(
|
||||
|
||||
static void smsc9218i_reset_signal(bool signal)
|
||||
{
|
||||
SIU.GPDO [186].R = signal ? 1 : 0;
|
||||
SIU.GPDO [SMSC9218I_RESET_PIN].R = signal ? 1 : 0;
|
||||
}
|
||||
|
||||
static void smsc9218i_reset_signal_init(void)
|
||||
@@ -1617,11 +1617,11 @@ static void smsc9218i_reset_signal_init(void)
|
||||
#endif
|
||||
pcr.B.ODE = 0;
|
||||
pcr.B.HYS = 0;
|
||||
pcr.B.SRC = 3;
|
||||
pcr.B.SRC = 0;
|
||||
pcr.B.WPE = 1;
|
||||
pcr.B.WPS = 1;
|
||||
|
||||
SIU.PCR [186].R = pcr.R;
|
||||
SIU.PCR [SMSC9218I_RESET_PIN].R = pcr.R;
|
||||
}
|
||||
|
||||
static void smsc9218i_hardware_reset(volatile smsc9218i_registers *regs)
|
||||
|
||||
Reference in New Issue
Block a user