diff options
author | Stefan Roese <sr@denx.de> | 2008-01-17 16:04:12 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-01-17 16:04:12 +0100 |
commit | 9cfff9e9d4d9dbb9bb428cea3fa2cda3b3e593ad (patch) | |
tree | 7e3e5036eef33672f6c40c5f6aca68f34f5b3a31 /cpu/mpc83xx/speed.c | |
parent | 3259eeaa4148125a81417477f62c05bd67f60587 (diff) | |
parent | 4c9e98ace78e7de972adf7da7135a46ec0a4ee7e (diff) | |
download | u-boot-imx-9cfff9e9d4d9dbb9bb428cea3fa2cda3b3e593ad.zip u-boot-imx-9cfff9e9d4d9dbb9bb428cea3fa2cda3b3e593ad.tar.gz u-boot-imx-9cfff9e9d4d9dbb9bb428cea3fa2cda3b3e593ad.tar.bz2 |
Merge branch 'master' of /home/stefan/git/u-boot/u-boot
Diffstat (limited to 'cpu/mpc83xx/speed.c')
-rw-r--r-- | cpu/mpc83xx/speed.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpu/mpc83xx/speed.c b/cpu/mpc83xx/speed.c index 4f5a866..61c9379 100644 --- a/cpu/mpc83xx/speed.c +++ b/cpu/mpc83xx/speed.c @@ -367,21 +367,21 @@ int get_clocks(void) #endif #if defined(CONFIG_MPC837X) || defined(CONFIG_MPC8315) - switch ((sccr & SCCR_SATA1CM) >> SCCR_SATA1CM_SHIFT) { - case 0: + switch ((sccr & SCCR_SATACM) >> SCCR_SATACM_SHIFT) { + case SCCR_SATACM_0: sata_clk = 0; break; - case 1: + case SCCR_SATACM_1: sata_clk = csb_clk; break; - case 2: + case SCCR_SATACM_2: sata_clk = csb_clk / 2; break; - case 3: + case SCCR_SATACM_3: sata_clk = csb_clk / 3; break; default: - /* unkown SCCR_SATA1CM value */ + /* unkown SCCR_SATACM value */ return -11; } #endif |