From: Eugen.Hristev at microchip.com <Eugen.Hristev@microchip.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/7] board: laird: wb50n: use configure_ddrcfg_input_buffers
Date: Thu, 8 Aug 2019 07:48:31 +0000 [thread overview]
Message-ID: <1565250163-21502-5-git-send-email-eugen.hristev@microchip.com> (raw)
In-Reply-To: <1565250163-21502-1-git-send-email-eugen.hristev@microchip.com>
From: Eugen Hristev <eugen.hristev@microchip.com>
Replace code with new function configure_ddrcfg_input_buffers from SFR
mach driver.
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
arch/arm/mach-at91/Kconfig | 1 +
board/laird/wb50n/wb50n.c | 4 +---
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index ad09731..ce0b1b4 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -292,6 +292,7 @@ config TARGET_WB50N
select BOARD_LATE_INIT
select CPU_V7A
select SUPPORT_SPL
+ select ATMEL_SFR
endchoice
diff --git a/board/laird/wb50n/wb50n.c b/board/laird/wb50n/wb50n.c
index 89d3795..1598e5c 100644
--- a/board/laird/wb50n/wb50n.c
+++ b/board/laird/wb50n/wb50n.c
@@ -172,13 +172,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);
--
2.7.4
next prev parent reply other threads:[~2019-08-08 7:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-08 7:48 [U-Boot] [PATCH 1/7] ARM: at91: Add the chip ID for SAMA5D2 LPDDR2 SiP Eugen.Hristev at microchip.com
2019-08-08 7:48 ` [U-Boot] [PATCH 2/7] board: atmel: add sama5d27_wlsom1_ek board Eugen.Hristev at microchip.com
2019-08-08 7:48 ` [U-Boot] [PATCH 3/7] ARM: at91: sfr: convert to Kconfig Eugen.Hristev at microchip.com
2019-08-08 7:48 ` [U-Boot] [PATCH 4/7] ARM: at91: sfr: implement DDR input buffers open function Eugen.Hristev at microchip.com
2019-08-08 7:48 ` Eugen.Hristev at microchip.com [this message]
2019-08-08 7:48 ` [U-Boot] [PATCH 6/7] ARM: at91: mpddrc: add lpddr2 initialization procedure Eugen.Hristev at microchip.com
2019-08-08 7:48 ` [U-Boot] [PATCH 7/7] board: atmel: sama5d2_wlsom1_ek: add SPL support Eugen.Hristev at microchip.com
2019-08-26 11:43 ` [U-Boot] [PATCH 1/7] ARM: at91: Add the chip ID for SAMA5D2 LPDDR2 SiP Eugen.Hristev at microchip.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1565250163-21502-5-git-send-email-eugen.hristev@microchip.com \
--to=eugen.hristev@microchip.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox