diff options
author | Wenyou Yang <wenyou.yang@atmel.com> | 2016-02-01 18:12:15 +0800 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2016-02-02 11:49:11 +0100 |
commit | 7e8702a00fe88590c2ece93061da4a40adf3c242 (patch) | |
tree | 95bfaa58662c2152fdf1e4fd10f1374be4cb2d7b /board/atmel/sama5d4ek | |
parent | 258b21fc69c93172d8e4afaeff3a7303740ce7c6 (diff) | |
download | u-boot-7e8702a00fe88590c2ece93061da4a40adf3c242.tar.gz u-boot-7e8702a00fe88590c2ece93061da4a40adf3c242.tar.bz2 u-boot-7e8702a00fe88590c2ece93061da4a40adf3c242.zip |
arm: at91/spl: mpddrc: add struct atmel_mpddrc_config
Add struct atmel_mpddrc_config to accommodate the mpddrc register
configurations, not using the mpddrc register map structure,
struct atmel_mpddrc, in order to increase readability and reduce
run-time memory use.
Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'board/atmel/sama5d4ek')
-rw-r--r-- | board/atmel/sama5d4ek/sama5d4ek.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/atmel/sama5d4ek/sama5d4ek.c b/board/atmel/sama5d4ek/sama5d4ek.c index 357b223e1b..1799059f87 100644 --- a/board/atmel/sama5d4ek/sama5d4ek.c +++ b/board/atmel/sama5d4ek/sama5d4ek.c @@ -342,7 +342,7 @@ void spl_board_init(void) #endif } -static void ddr2_conf(struct atmel_mpddr *ddr2) +static void ddr2_conf(struct atmel_mpddrc_config *ddr2) { ddr2->md = (ATMEL_MPDDRC_MD_DBW_32_BITS | ATMEL_MPDDRC_MD_DDR2_SDRAM); @@ -380,7 +380,7 @@ static void ddr2_conf(struct atmel_mpddr *ddr2) void mem_init(void) { struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; - struct atmel_mpddr ddr2; + struct atmel_mpddrc_config ddr2; ddr2_conf(&ddr2); |