All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 11/23] imx: add pad settings bit definition for i.MX8M
Date: Mon,  4 Dec 2017 12:31:24 +0800	[thread overview]
Message-ID: <20171204043136.17167-12-peng.fan@nxp.com> (raw)
In-Reply-To: <20171204043136.17167-1-peng.fan@nxp.com>

Add pad settings bit definition for i.MX8M.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm/include/asm/mach-imx/iomux-v3.h | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h
index ad35e0109e..ade2105cca 100644
--- a/arch/arm/include/asm/mach-imx/iomux-v3.h
+++ b/arch/arm/include/asm/mach-imx/iomux-v3.h
@@ -87,7 +87,27 @@ typedef u64 iomux_v3_cfg_t;
 #define IOMUX_CONFIG_LPSR       0x20
 #define MUX_MODE_LPSR           ((iomux_v3_cfg_t)IOMUX_CONFIG_LPSR << \
 				MUX_MODE_SHIFT)
-#ifdef CONFIG_MX7
+#ifdef CONFIG_MX8M
+#define PAD_CTL_DSE0		(0x0 << 0)
+#define PAD_CTL_DSE1		(0x1 << 0)
+#define PAD_CTL_DSE2		(0x2 << 0)
+#define PAD_CTL_DSE3		(0x3 << 0)
+#define PAD_CTL_DSE4		(0x4 << 0)
+#define PAD_CTL_DSE5		(0x5 << 0)
+#define PAD_CTL_DSE6		(0x6 << 0)
+#define PAD_CTL_DSE7		(0x7 << 0)
+
+#define PAD_CTL_FSEL0		(0x0 << 3)
+#define PAD_CTL_FSEL1		(0x1 << 3)
+#define PAD_CTL_FSEL2		(0x2 << 3)
+#define PAD_CTL_FSEL3		(0x3 << 3)
+
+#define PAD_CTL_ODE		(0x1 << 5)
+#define PAD_CTL_PUE		(0x1 << 6)
+#define PAD_CTL_HYS		(0x1 << 7)
+#define PAD_CTL_LVTTL		(0x1 << 8)
+
+#elif defined CONFIG_MX7
 
 #define IOMUX_LPSR_SEL_INPUT_OFS 0x70000
 
-- 
2.14.1

  parent reply	other threads:[~2017-12-04  4:31 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-04  4:31 [U-Boot] [PATCH V2 00/23] imx: add i.MX8M support and i.MX8MQ EVK Peng Fan
2017-12-04  4:31 ` [U-Boot] [PATCH V2 01/23] imx: add i.MX8M into Kconfig Peng Fan
2017-12-16 17:16   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 02/23] imx: mx8m: add register definition header file Peng Fan
2017-12-16 17:17   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 03/23] imx: mx8m: add pin " Peng Fan
2017-12-16 17:18   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 04/23] imx: mx8m: add clock driver Peng Fan
2017-12-16 17:33   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 05/23] imx: add sip function Peng Fan
2017-12-16 17:35   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 06/23] imx: boot_mode: add USB_BOOT entry Peng Fan
2017-12-16 17:35   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 07/23] power: pmic.h: include dm/ofnode.h Peng Fan
2017-12-16 17:35   ` Fabio Estevam
2017-12-17 10:32   ` Stefano Babic
2017-12-04  4:31 ` [U-Boot] [PATCH V2 08/23] imx: cpu: update cpu file to support i.MX8M Peng Fan
2017-12-07  8:40   ` Stefano Babic
2017-12-16 17:36   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 09/23] imx: spl: implement spl_boot_device for i.MX8M Peng Fan
2017-12-16 17:36   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 10/23] imx: add i.MX8MQ SoC Revision and is_mx8m helper Peng Fan
2017-12-16 17:37   ` Fabio Estevam
2017-12-04  4:31 ` Peng Fan [this message]
2017-12-16 17:38   ` [U-Boot] [PATCH V2 11/23] imx: add pad settings bit definition for i.MX8M Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 12/23] imx: mx8m: add soc related settings and files Peng Fan
2017-12-07  8:39   ` Stefano Babic
2017-12-07  9:06     ` Peng Fan
2017-12-04  4:31 ` [U-Boot] [PATCH V2 13/23] imx: makefile: compile files for i.MX8M Peng Fan
2017-12-16 17:39   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 14/23] misc: ocotp: add i.MX8M support Peng Fan
2017-12-07  8:41   ` Stefano Babic
2017-12-16 17:40   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 15/23] mmc: fsl_esdhc: support i.MX8M Peng Fan
2017-12-07  8:41   ` Stefano Babic
2017-12-16 17:40   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 16/23] imx: lcdif: include i.MX8M Peng Fan
2017-12-07  8:41   ` Stefano Babic
2017-12-16 17:41   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 17/23] gpio: mxc: add i.MX8M support Peng Fan
2017-12-16 17:41   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 18/23] net: fec: do not access reserved register for i.MX8M Peng Fan
     [not found]   ` <CANr=Z=Z6ekzYT3+YG7nXWKedQc_3tS42_BAbkqnP8A8Qpij5Pg@mail.gmail.com>
2017-12-05 20:36     ` Joe Hershberger
2017-12-07  8:42   ` Stefano Babic
2017-12-16 17:41   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 19/23] net: fec: fix build warnings for 64bits support Peng Fan
2017-12-05 20:37   ` Joe Hershberger
2017-12-07  8:42   ` Stefano Babic
2017-12-16 17:43   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 20/23] power: pmic/regulator allow dm be omitted by SPL Peng Fan
2017-12-07  8:43   ` Stefano Babic
2017-12-16 17:43   ` Fabio Estevam
2017-12-17 10:33   ` Stefano Babic
2017-12-04  4:31 ` [U-Boot] [PATCH V2 21/23] imx: imx8mq: add dtsi file Peng Fan
2017-12-16 17:44   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 22/23] imx: add i.MX8MQ EVK support Peng Fan
2017-12-07  8:52   ` Stefano Babic
2017-12-07  9:13     ` Peng Fan
2017-12-07  9:27       ` Stefano Babic
2017-12-07  9:59         ` Peng Fan
2017-12-07  9:28       ` Stefano Babic
2017-12-16 17:51   ` Fabio Estevam
2017-12-04  4:31 ` [U-Boot] [PATCH V2 23/23] Add DDR settings Peng Fan
2017-12-04 17:48   ` Dr. Philipp Tomsich
2017-12-07  7:31     ` Peng Fan

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=20171204043136.17167-12-peng.fan@nxp.com \
    --to=peng.fan@nxp.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.