summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-26 22:04:09 +0000
committerwdenk <wdenk>2003-06-26 22:04:09 +0000
commit993cad9364c6b87ae429d1ed1130d8153f6f027e (patch)
tree43faaa643caeaacec331db78850a5a4834bad354 /cpu
parentb783edaee8252bfdba3f7b3fd29519a81ce71e42 (diff)
downloadu-boot-imx-993cad9364c6b87ae429d1ed1130d8153f6f027e.zip
u-boot-imx-993cad9364c6b87ae429d1ed1130d8153f6f027e.tar.gz
u-boot-imx-993cad9364c6b87ae429d1ed1130d8153f6f027e.tar.bz2
* Patches by Robert Schwebel, 26 Jun 2003:
- logdl - csb226 - innokom * Patch by Pantelis Antoniou, 25 Jun 2003: update NetVia with V2 board support
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc8xx/scc.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/cpu/mpc8xx/scc.c b/cpu/mpc8xx/scc.c
index 4ff23c3..f98aad4 100644
--- a/cpu/mpc8xx/scc.c
+++ b/cpu/mpc8xx/scc.c
@@ -494,14 +494,22 @@ static int scc_init(struct eth_device* dev, bd_t *bis)
#endif
#if defined(CONFIG_NETVIA)
-#if defined(PB_ENET_PDN)
+#if defined(PA_ENET_PDN)
+ immr->im_ioport.iop_papar &= ~PA_ENET_PDN;
+ immr->im_ioport.iop_padir |= PA_ENET_PDN;
+ immr->im_ioport.iop_padat |= PA_ENET_PDN;
+#elif defined(PB_ENET_PDN)
immr->im_cpm.cp_pbpar &= ~PB_ENET_PDN;
immr->im_cpm.cp_pbdir |= PB_ENET_PDN;
immr->im_cpm.cp_pbdat |= PB_ENET_PDN;
#elif defined(PC_ENET_PDN)
- immr->im_cpm.cp_pcpar &= ~PC_ENET_PDN;
- immr->im_cpm.cp_pcdir |= PC_ENET_PDN;
- immr->im_cpm.cp_pcdat |= PC_ENET_PDN;
+ immr->im_ioport.iop_pcpar &= ~PC_ENET_PDN;
+ immr->im_ioport.iop_pcdir |= PC_ENET_PDN;
+ immr->im_ioport.iop_pcdat |= PC_ENET_PDN;
+#elif defined(PD_ENET_PDN)
+ immr->im_ioport.iop_pdpar &= ~PD_ENET_PDN;
+ immr->im_ioport.iop_pddir |= PD_ENET_PDN;
+ immr->im_ioport.iop_pddat |= PD_ENET_PDN;
#endif
#endif