[U-Boot] [PATCH 12/37] Blackfin: bf527-ad7160-eval: convert from old style MMR macros

Mike Frysinger vapier at gentoo.org
Sat Oct 2 22:05:38 CEST 2010


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

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 board/bf527-ad7160-eval/bf527-ad7160-eval.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/bf527-ad7160-eval/bf527-ad7160-eval.c b/board/bf527-ad7160-eval/bf527-ad7160-eval.c
index b06d5ab..ea405b6 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;
 }
-- 
1.7.3.1



More information about the U-Boot mailing list