diff options
author | Niklaus Giger <niklaus.giger@netstal.com> | 2008-02-05 11:31:28 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-02-16 06:40:05 +0100 |
commit | 74973126d1be63ac75bdc192f46234dca3a7c421 (patch) | |
tree | 52e9b539ca6e6bb85d136c0cb2252e19b3306cd5 /board/netstal/hcu5/hcu5.c | |
parent | 8cc10d06b833ed917a19ad358c8ebbed8bc19555 (diff) | |
download | u-boot-imx-74973126d1be63ac75bdc192f46234dca3a7c421.zip u-boot-imx-74973126d1be63ac75bdc192f46234dca3a7c421.tar.gz u-boot-imx-74973126d1be63ac75bdc192f46234dca3a7c421.tar.bz2 |
ppc4xx: HCU4/5. Cleanups
- Fix some coding style violations.
- Use in/out_u16/32 where appropriate.
- Use register names from ppc405.h.
- Fix trace useage for Lauterbach.
- Remove obsolete generation HCU2.
- Renamed fixed_hcu4_sdram to init_ppc405_sdram.
Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
Diffstat (limited to 'board/netstal/hcu5/hcu5.c')
-rw-r--r-- | board/netstal/hcu5/hcu5.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/board/netstal/hcu5/hcu5.c b/board/netstal/hcu5/hcu5.c index 2c7afe2..c494e93 100644 --- a/board/netstal/hcu5/hcu5.c +++ b/board/netstal/hcu5/hcu5.c @@ -309,15 +309,13 @@ int misc_init_r(void) */ if (mfspr(dbcr0) & 0x80000000) { /* External debugger alive - * enable trace facilty for Lauterback - * CCR0[DAPUIB]=0 Enable broadcast of instruction data - * to auxiliary processor interface + * enable trace facilty for Lauterbach * CCR0[DTB]=0 Enable broadcast of trace information * SDR0_PFC0[TRE] Trace signals are enabled instead of * GPIO49-63 */ - mtspr(ccr0, mfspr(ccr0) &~ 0x00108000); - mtsdr(SDR0_PFC0, sdr0_pfc1 | 0x00000100); + mtspr(ccr0, mfspr(ccr0) &~ (CCR0_DTB)); + mtsdr(SDR0_PFC0, sdr0_pfc1 | SDR0_PFC0_TRE_ENABLE); } return 0; } |