diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-15 11:55:27 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-15 11:55:27 +0100 |
commit | 20aba89b778749f4b12284790f012bca0bf2c2c1 (patch) | |
tree | 6b9efd4621e270d81e7409f72a1e66e78cd3e12f /c/src/lib/libbsp/powerpc | |
parent | bsp/t32mppc: Fix warnings (diff) | |
download | rtems-20aba89b778749f4b12284790f012bca0bf2c2c1.tar.bz2 |
bsp/mpc55xxevb: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/powerpc')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac b/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac index 3c0ce6a245..218eedef43 100644 --- a/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac +++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac @@ -142,12 +142,14 @@ 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_SET([SMSC9218I_RESET_PIN],[mpc5566*],[186]) +RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[*],[]) 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_SET([SMSC9218I_IRQ_PIN],[mpc5566*],[193]) +RTEMS_BSPOPTS_SET([SMSC9218I_IRQ_PIN],[*],[]) RTEMS_BSPOPTS_HELP([SMSC9218I_IRQ_PIN], [IRQ pin for SMSC9218I network interface]) diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c index 7092d1fa8f..fb0b7aa113 100644 --- a/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c +++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c @@ -1657,6 +1657,7 @@ static void smsc9218i_interrupt_init( volatile smsc9218i_registers *regs ) { +#ifdef SMSC9218I_IRQ_PIN rtems_status_code sc = RTEMS_SUCCESSFUL; union SIU_PCR_tag pcr = MPC55XX_ZERO_FLAGS; union SIU_DIRER_tag direr = MPC55XX_ZERO_FLAGS; @@ -1743,15 +1744,19 @@ static void smsc9218i_interrupt_init( /* Enable error interrupts */ regs->int_en = SMSC9218I_ERROR_INTERRUPTS; +#endif } static void smsc9218i_reset_signal(bool signal) { +#ifdef SMSC9218I_RESET_PIN SIU.GPDO [SMSC9218I_RESET_PIN].R = signal ? 1 : 0; +#endif } static void smsc9218i_reset_signal_init(void) { +#ifdef SMSC9218I_RESET_PIN union SIU_PCR_tag pcr = MPC55XX_ZERO_FLAGS; smsc9218i_reset_signal(true); @@ -1769,6 +1774,7 @@ static void smsc9218i_reset_signal_init(void) pcr.B.WPS = 1; SIU.PCR [SMSC9218I_RESET_PIN].R = pcr.R; +#endif } static bool smsc9218i_hardware_reset(volatile smsc9218i_registers *regs) |