diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2012-05-15 13:04:24 +0800 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-05-21 14:54:57 +0800 |
commit | 8bf7135fff46f6ac28baf28a8e4144f685b456a0 (patch) | |
tree | f769648ea45a40a73775baad38c2756ca2176e73 /arch/blackfin/mach-bf609/pm.c | |
parent | 5a84775e999a5579e10f7297776c71b0be2ebd74 (diff) | |
download | talos-obmc-linux-8bf7135fff46f6ac28baf28a8e4144f685b456a0.tar.gz talos-obmc-linux-8bf7135fff46f6ac28baf28a8e4144f685b456a0.zip |
blackfin: bf60x: Rename the DDR controller macro
Rename the DDR controller macro from DDR0 to DMC0 to avoid confustion for
bf60x.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/mach-bf609/pm.c')
-rw-r--r-- | arch/blackfin/mach-bf609/pm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/blackfin/mach-bf609/pm.c b/arch/blackfin/mach-bf609/pm.c index df3b9b973f62..b76966eb16ad 100644 --- a/arch/blackfin/mach-bf609/pm.c +++ b/arch/blackfin/mach-bf609/pm.c @@ -165,11 +165,11 @@ void bf609_ddr_sr(void) { uint32_t reg; - reg = bfin_read_DDR0_CTL(); + reg = bfin_read_DMC0_CTL(); reg |= 0x8; - bfin_write_DDR0_CTL(reg); + bfin_write_DMC0_CTL(reg); - while (!(bfin_read_DDR0_STAT() & 0x8)) + while (!(bfin_read_DMC0_STAT() & 0x8)) continue; } @@ -177,14 +177,14 @@ __attribute__((l1_text)) void bf609_ddr_sr_exit(void) { uint32_t reg; - while (!(bfin_read_DDR0_STAT() & 0x1)) + while (!(bfin_read_DMC0_STAT() & 0x1)) continue; - reg = bfin_read_DDR0_CTL(); + reg = bfin_read_DMC0_CTL(); reg &= ~0x8; - bfin_write_DDR0_CTL(reg); + bfin_write_DMC0_CTL(reg); - while ((bfin_read_DDR0_STAT() & 0x8)) + while ((bfin_read_DMC0_STAT() & 0x8)) continue; } |