From: Lucas Stach <dev@lynxeye.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/5] ddr: imx8m: remove bogus defines
Date: Sun, 27 Dec 2020 22:50:39 +0100 [thread overview]
Message-ID: <20201227215042.101009-2-dev@lynxeye.de> (raw)
In-Reply-To: <20201227215042.101009-1-dev@lynxeye.de>
Most of those defines aren't used. Whether DDR_ONE_RANK should be defined
is really dependent on the used DRAM on a specific board, so move this
from the common header into the board DRAM setup.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
arch/arm/boards/nxp-imx8mm-evk/lpddr4-timing.c | 2 ++
include/soc/imx8m/lpddr4_define.h | 7 -------
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/arch/arm/boards/nxp-imx8mm-evk/lpddr4-timing.c b/arch/arm/boards/nxp-imx8mm-evk/lpddr4-timing.c
index 8d6cc389ba9b..e7c01f9cc9a0 100644
--- a/arch/arm/boards/nxp-imx8mm-evk/lpddr4-timing.c
+++ b/arch/arm/boards/nxp-imx8mm-evk/lpddr4-timing.c
@@ -5,6 +5,8 @@
#include <common.h>
#include <soc/imx8m/ddr.h>
+
+#define DDR_ONE_RANK
#include <soc/imx8m/lpddr4_define.h>
static struct dram_cfg_param lpddr4_ddrc_cfg[] = {
diff --git a/include/soc/imx8m/lpddr4_define.h b/include/soc/imx8m/lpddr4_define.h
index caf5bafb6d02..805357959349 100644
--- a/include/soc/imx8m/lpddr4_define.h
+++ b/include/soc/imx8m/lpddr4_define.h
@@ -6,13 +6,6 @@
#ifndef __LPDDR4_DEFINE_H_
#define __LPDDR4_DEFINE_H_
-#define LPDDR4_DVFS_DBI
-#define DDR_ONE_RANK
-/* #define LPDDR4_DBI_ON */
-#define DFI_BUG_WR
-#define M845S_4GBx2
-#define PRETRAIN
-
/* DRAM MR setting */
#ifdef LPDDR4_DBI_ON
#define LPDDR4_MR3 0xf1
--
2.29.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2020-12-27 21:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-27 21:50 [PATCH 1/5] ddr: imx8m: implement i.MX8MQ support Lucas Stach
2020-12-27 21:50 ` Lucas Stach [this message]
2020-12-27 21:50 ` [PATCH 3/5] ARM: i.mx8mq: add PAD CTL defines Lucas Stach
2020-12-27 21:50 ` [PATCH 4/5] net: phy: at803x: sync RX/TX delay setup with Linux Lucas Stach
2020-12-27 21:50 ` [PATCH 5/5] ARM: i.MX: add MNT Reform board support Lucas Stach
2020-12-28 6:48 ` Antony Pavlov
2020-12-28 16:41 ` Lucas Stach
2021-01-06 8:47 ` [PATCH 1/5] ddr: imx8m: implement i.MX8MQ support Sascha Hauer
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=20201227215042.101009-2-dev@lynxeye.de \
--to=dev@lynxeye.de \
--cc=barebox@lists.infradead.org \
/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