From: Lucas Stach <dev@lynxeye.de>
To: barebox@lists.infradead.org
Subject: [PATCH 3/5] ARM: i.mx8mq: add PAD CTL defines
Date: Sun, 27 Dec 2020 22:50:40 +0100 [thread overview]
Message-ID: <20201227215042.101009-3-dev@lynxeye.de> (raw)
In-Reply-To: <20201227215042.101009-1-dev@lynxeye.de>
Allows a more readable pad setup.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
arch/arm/mach-imx/include/mach/iomux-mx8mq.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm/mach-imx/include/mach/iomux-mx8mq.h b/arch/arm/mach-imx/include/mach/iomux-mx8mq.h
index d397e975c023..b6efdda4ff4a 100644
--- a/arch/arm/mach-imx/include/mach/iomux-mx8mq.h
+++ b/arch/arm/mach-imx/include/mach/iomux-mx8mq.h
@@ -623,6 +623,23 @@ enum {
IMX8MQ_PAD_UART4_TXD__GPIO5_IO29 = IOMUX_PAD(0x04B8, 0x0250, 5, 0x0000, 0, 0),
};
+#define MX8MQ_PAD_CTL_DSE_HIZ (0 << 0)
+#define MX8MQ_PAD_CTL_DSE_255R (1 << 0)
+#define MX8MQ_PAD_CTL_DSE_155R (2 << 0)
+#define MX8MQ_PAD_CTL_DSE_75R (3 << 0)
+#define MX8MQ_PAD_CTL_DSE_85R (4 << 0)
+#define MX8MQ_PAD_CTL_DSE_65R (5 << 0)
+#define MX8MQ_PAD_CTL_DSE_45R (6 << 0)
+#define MX8MQ_PAD_CTL_DSE_40R (7 << 0)
+#define MX8MQ_PAD_CTL_SR_50M (0 << 3)
+#define MX8MQ_PAD_CTL_SR_100M (1 << 3)
+#define MX8MQ_PAD_CTL_SR_150M (2 << 3)
+#define MX8MQ_PAD_CTL_SR_200M (3 << 3)
+#define MX8MQ_PAD_CTL_ODE BIT(5)
+#define MX8MQ_PAD_CTL_PUE BIT(6)
+#define MX8MQ_PAD_CTL_HYS BIT(7)
+#define MX8MQ_PAD_CTL_LVTTL BIT(8)
+
static inline void imx8mq_setup_pad(iomux_v3_cfg_t pad)
{
void __iomem *iomux = IOMEM(MX8MQ_IOMUXC_BASE_ADDR);
--
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 ` [PATCH 2/5] ddr: imx8m: remove bogus defines Lucas Stach
2020-12-27 21:50 ` Lucas Stach [this message]
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-3-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