summaryrefslogtreecommitdiff
path: root/board/laird
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2019-08-08 07:48:31 +0000
committerEugen Hristev <eugen.hristev@microchip.com>2019-10-08 09:16:11 +0300
commitf64ec16f425fc0dac6db6bcabdee9bffc9996c58 (patch)
tree4c1dd76957e9f3e49e4d3d04c4dde11dceced86b /board/laird
parentb1c7b33be20e81adc45a4f25bba30f9439ce4e17 (diff)
downloadu-boot-f64ec16f425fc0dac6db6bcabdee9bffc9996c58.tar.gz
board: laird: wb50n: use configure_ddrcfg_input_buffers
Replace code with new function configure_ddrcfg_input_buffers from SFR mach driver. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'board/laird')
-rw-r--r--board/laird/wb50n/wb50n.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/board/laird/wb50n/wb50n.c b/board/laird/wb50n/wb50n.c
index a2f8eaf0ba..ab1dbcd879 100644
--- a/board/laird/wb50n/wb50n.c
+++ b/board/laird/wb50n/wb50n.c
@@ -173,13 +173,11 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2)
void mem_init(void)
{
- struct atmel_sfr *sfr = (struct atmel_sfr *)ATMEL_BASE_SFR;
struct atmel_mpddrc_config ddr2;
ddr2_conf(&ddr2);
- writel(ATMEL_SFR_DDRCFG_FDQIEN | ATMEL_SFR_DDRCFG_FDQSIEN,
- &sfr->ddrcfg);
+ configure_ddrcfg_input_buffers(true);
/* enable MPDDR clock */
at91_periph_clk_enable(ATMEL_ID_MPDDRC);