diff options
author | wdenk <wdenk> | 2004-03-14 22:25:36 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-03-14 22:25:36 +0000 |
commit | 42dfe7a1844cbad7114038aaf03828acb7a84414 (patch) | |
tree | d33893d34d2a97aa23257703733dbc9d86d48278 /board/siemens | |
parent | 855a496fe9ba431772f1ff1aef21a5c001288bb0 (diff) |
Code cleanup; make several boards compile & link.
Diffstat (limited to 'board/siemens')
-rw-r--r-- | board/siemens/CCM/ccm.c | 8 | ||||
-rw-r--r-- | board/siemens/pcu_e/pcu_e.c | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/board/siemens/CCM/ccm.c b/board/siemens/CCM/ccm.c index b54f3c134f..3ed1b754ca 100644 --- a/board/siemens/CCM/ccm.c +++ b/board/siemens/CCM/ccm.c @@ -351,7 +351,7 @@ void reset_phy(void) ulong value; /* Configure all needed port pins for GPIO */ -#if CFG_ETH_MDDIS_VALUE +#ifdef CFG_ETH_MDDIS_VALUE immr->im_ioport.iop_padat |= CFG_PA_ETH_MDDIS; #else immr->im_ioport.iop_padat &= ~(CFG_PA_ETH_MDDIS | CFG_PA_ETH_RESET); /* Set low */ @@ -369,17 +369,17 @@ void reset_phy(void) value |= CFG_PB_ETH_POWERDOWN; /* PHY configuration includes MDDIS and CFG1 ... CFG3 */ -#if CFG_ETH_CFG1_VALUE +#ifdef CFG_ETH_CFG1_VALUE value |= CFG_PB_ETH_CFG1; #else value &= ~(CFG_PB_ETH_CFG1); #endif -#if CFG_ETH_CFG2_VALUE +#ifdef CFG_ETH_CFG2_VALUE value |= CFG_PB_ETH_CFG2; #else value &= ~(CFG_PB_ETH_CFG2); #endif -#if CFG_ETH_CFG3_VALUE +#ifdef CFG_ETH_CFG3_VALUE value |= CFG_PB_ETH_CFG3; #else value &= ~(CFG_PB_ETH_CFG3); diff --git a/board/siemens/pcu_e/pcu_e.c b/board/siemens/pcu_e/pcu_e.c index 033cc368de..6374513fec 100644 --- a/board/siemens/pcu_e/pcu_e.c +++ b/board/siemens/pcu_e/pcu_e.c @@ -309,7 +309,7 @@ void reset_phy (void) /* Configure all needed port pins for GPIO */ #if PCU_E_WITH_SWAPPED_CS /* XXX */ -# if CFG_ETH_MDDIS_VALUE +# ifdef CFG_ETH_MDDIS_VALUE immr->im_ioport.iop_padat |= CFG_PA_ETH_MDDIS; # else immr->im_ioport.iop_padat &= ~(CFG_PA_ETH_MDDIS); /* Set low */ @@ -329,23 +329,23 @@ void reset_phy (void) /* PHY configuration includes MDDIS and CFG1 ... CFG3 */ #if !PCU_E_WITH_SWAPPED_CS -# if CFG_ETH_MDDIS_VALUE +# ifdef CFG_ETH_MDDIS_VALUE value |= CFG_PB_ETH_MDDIS; # else value &= ~(CFG_PB_ETH_MDDIS); # endif #endif -#if CFG_ETH_CFG1_VALUE +#ifdef CFG_ETH_CFG1_VALUE value |= CFG_PB_ETH_CFG1; #else value &= ~(CFG_PB_ETH_CFG1); #endif -#if CFG_ETH_CFG2_VALUE +#ifdef CFG_ETH_CFG2_VALUE value |= CFG_PB_ETH_CFG2; #else value &= ~(CFG_PB_ETH_CFG2); #endif -#if CFG_ETH_CFG3_VALUE +#ifdef CFG_ETH_CFG3_VALUE value |= CFG_PB_ETH_CFG3; #else value &= ~(CFG_PB_ETH_CFG3); |