summaryrefslogtreecommitdiff
path: root/board/atmel/sama5d3xek/sama5d3xek.c
diff options
context:
space:
mode:
authorErik van Luijk <evanluijk@interact.nl>2015-08-13 15:43:20 +0200
committerAndreas Bießmann <andreas.devel@googlemail.com>2015-08-21 15:47:03 +0200
commitc982f6b9bf7815633640d95ed6f0deb55cfdcde5 (patch)
tree326e11936c417b7cbd5ba1944c4934e1d5020274 /board/atmel/sama5d3xek/sama5d3xek.c
parent6560491fe5acd2f150853efdd5d9bd714a93374c (diff)
downloadu-boot-imx-c982f6b9bf7815633640d95ed6f0deb55cfdcde5.zip
u-boot-imx-c982f6b9bf7815633640d95ed6f0deb55cfdcde5.tar.gz
u-boot-imx-c982f6b9bf7815633640d95ed6f0deb55cfdcde5.tar.bz2
arm: at91: pmc: replace the constant with a define in at91_pmc.h
To enable the clocks on the at91 boards a constant (0x4) is used. This is replaced with a define in at91_pmc.h (1 << 2). Signed-off-by: Erik van Luijk <evanluijk@interact.nl> Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'board/atmel/sama5d3xek/sama5d3xek.c')
-rw-r--r--board/atmel/sama5d3xek/sama5d3xek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama5d3xek.c
index d6e7e16..2bd436a 100644
--- a/board/atmel/sama5d3xek/sama5d3xek.c
+++ b/board/atmel/sama5d3xek/sama5d3xek.c
@@ -430,7 +430,7 @@ void mem_init(void)
/* enable MPDDR clock */
at91_periph_clk_enable(ATMEL_ID_MPDDRC);
- writel(0x4, &pmc->scer);
+ writel(AT91_PMC_DDR, &pmc->scer);
/* DDRAM2 Controller initialize */
ddr2_init(ATMEL_BASE_MPDDRC, ATMEL_BASE_DDRCS, &ddr2);