summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-06-26 19:55:24 +0200
committerMike Frysinger <vapier@gentoo.org>2011-07-23 07:18:26 +0200
commit85c2737ae7c2b64c35862da3757b185e822a259b (patch)
treef07d2bfa9ee73d4f8618b062ab4ae7fd750ae489 /arch/blackfin/mach-common
parentBlackfin: debug-mmrs: generalize pint logic (diff)
downloadlinux-85c2737ae7c2b64c35862da3757b185e822a259b.tar.xz
linux-85c2737ae7c2b64c35862da3757b185e822a259b.zip
Blackfin: dpmc: bind to MMR names and not CPUs
Have the code work off of MMR names rather than CPU defines so there is less code to tweak in the future with new parts. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-common')
-rw-r--r--arch/blackfin/mach-common/dpmc_modes.S7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/blackfin/mach-common/dpmc_modes.S b/arch/blackfin/mach-common/dpmc_modes.S
index 9cfdd49a3127..6ecc64e5a06a 100644
--- a/arch/blackfin/mach-common/dpmc_modes.S
+++ b/arch/blackfin/mach-common/dpmc_modes.S
@@ -238,18 +238,17 @@ ENTRY(_unset_dram_srfs)
ENDPROC(_unset_dram_srfs)
ENTRY(_set_sic_iwr)
-#if defined(CONFIG_BF54x) || defined(CONFIG_BF52x) || defined(CONFIG_BF561) || \
- defined(CONFIG_BF538) || defined(CONFIG_BF539) || defined(CONFIG_BF51x)
+#ifdef SIC_IWR0
P0.H = hi(SIC_IWR0);
P0.L = lo(SIC_IWR0);
P1.H = hi(SIC_IWR1);
P1.L = lo(SIC_IWR1);
[P1] = R1;
-#if defined(CONFIG_BF54x)
+# ifdef SIC_IWR2
P1.H = hi(SIC_IWR2);
P1.L = lo(SIC_IWR2);
[P1] = R2;
-#endif
+# endif
#else
P0.H = hi(SIC_IWR);
P0.L = lo(SIC_IWR);