From: Mike Frysinger <vapier@gentoo.org>
Date: Sun, 25 Jul 2010 21:19:36 +0000 (-0400)
Subject: Blackfin: bf527-ad7160-eval: convert from old style MMR macros
X-Git-Tag: v2025.01-rc5-pxa1908~20073^2~25
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/index.html?a=commitdiff_plain;h=d56b7068ce0691aa2df2c6b6f7361fe1dff7d497;p=u-boot.git

Blackfin: bf527-ad7160-eval: convert from old style MMR macros

The old MMR defines are being scrubbed, so convert the driver to use the
new standard helper macros.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---

diff --git a/board/bf527-ad7160-eval/bf527-ad7160-eval.c b/board/bf527-ad7160-eval/bf527-ad7160-eval.c
index b06d5ab2e8..ea405b639d 100644
--- a/board/bf527-ad7160-eval/bf527-ad7160-eval.c
+++ b/board/bf527-ad7160-eval/bf527-ad7160-eval.c
@@ -20,6 +20,6 @@ int checkboard(void)
 int misc_init_r(void)
 {
 	/* CLKIN Buffer Output Enable */
-	*pVR_CTL |= CLKBUFOE;
+	bfin_write_VR_CTL(bfin_read_VR_CTL() | CLKBUFOE);
 	return 0;
 }