diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-13 12:23:21 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-19 08:30:31 +0100 |
commit | d86ac7209083aa390c02b635aba11aaffcfeff9a (patch) | |
tree | 5c1215279ee347d537fc9132e38610a1d45ddf51 /arch/arm/mach-imx/include/mach/iomux-mx8mq.h | |
parent | e2ec86ff52b1f7f7a9084b3412196ca4f06b9d5f (diff) | |
download | barebox-d86ac7209083aa390c02b635aba11aaffcfeff9a.tar.gz barebox-d86ac7209083aa390c02b635aba11aaffcfeff9a.tar.xz |
ARM: i.MX8M: add and use imx8mq_setup_pad()
We already have a mx8_setup_pad() function for early iomux setup, but it
is unused. Add a i.MX8MQ specific wrapper for the function which passes
the correct base address to mx8_setup_pad(). Let the boards use this
function. While at it rename mx8_setup_pad() to imx8_setup_pad() which
is more consistent to other i.MX specific functions.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/iomux-mx8mq.h')
-rw-r--r-- | arch/arm/mach-imx/include/mach/iomux-mx8mq.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/iomux-mx8mq.h b/arch/arm/mach-imx/include/mach/iomux-mx8mq.h index 5c94731ea7..d397e975c0 100644 --- a/arch/arm/mach-imx/include/mach/iomux-mx8mq.h +++ b/arch/arm/mach-imx/include/mach/iomux-mx8mq.h @@ -9,6 +9,7 @@ #include <mach/iomux-v3.h> #include <mach/iomux-mx8m.h> +#include <mach/imx8mq-regs.h> enum { IMX8MQ_PAD_GPIO1_IO00__GPIO1_IO0 = IOMUX_PAD(0x0290, 0x0028, 0, 0x0000, 0, 0), @@ -622,4 +623,11 @@ enum { IMX8MQ_PAD_UART4_TXD__GPIO5_IO29 = IOMUX_PAD(0x04B8, 0x0250, 5, 0x0000, 0, 0), }; +static inline void imx8mq_setup_pad(iomux_v3_cfg_t pad) +{ + void __iomem *iomux = IOMEM(MX8MQ_IOMUXC_BASE_ADDR); + + imx8m_setup_pad(iomux, pad); +} + #endif |