diff options
author | wdenk <wdenk> | 2003-06-26 22:04:09 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-06-26 22:04:09 +0000 |
commit | 993cad9364c6b87ae429d1ed1130d8153f6f027e (patch) | |
tree | 43faaa643caeaacec331db78850a5a4834bad354 /cpu | |
parent | b783edaee8252bfdba3f7b3fd29519a81ce71e42 (diff) |
* Patches by Robert Schwebel, 26 Jun 2003:U-Boot-0_4_0
- 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.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/cpu/mpc8xx/scc.c b/cpu/mpc8xx/scc.c index 4ff23c3b684..f98aad40114 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 |