diff options
author | Erik van Luijk | 2015-08-13 15:43:20 +0200 |
---|---|---|
committer | Andreas Bießmann | 2015-08-21 15:47:03 +0200 |
commit | c982f6b9bf7815633640d95ed6f0deb55cfdcde5 (patch) | |
tree | 326e11936c417b7cbd5ba1944c4934e1d5020274 /board/siemens | |
parent | 6560491fe5acd2f150853efdd5d9bd714a93374c (diff) |
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/siemens')
-rw-r--r-- | board/siemens/corvus/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/siemens/corvus/board.c b/board/siemens/corvus/board.c index d74743f74cb..3294203b716 100644 --- a/board/siemens/corvus/board.c +++ b/board/siemens/corvus/board.c @@ -149,7 +149,7 @@ void mem_init(void) ddr2_conf(&ddr2); /* enable DDR2 clock */ - writel(0x4, &pmc->scer); + writel(AT91_PMC_DDR, &pmc->scer); /* DDRAM2 Controller initialize */ ddr2_init(ATMEL_BASE_DDRSDRC0, ATMEL_BASE_CS6, &ddr2); |