summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phytec-phycore-imx27
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-08-14 09:30:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-14 09:56:08 +0200
commit23f988e8d9e1f9480adeefc4f5b585f3ec15913f (patch)
tree704de01dbc2b8524a1810d387932c7a4940cf582 /arch/arm/boards/phytec-phycore-imx27
parent909934e3a76d665b55565e4f87b1a10c8a3e4b0e (diff)
downloadbarebox-23f988e8d9e1f9480adeefc4f5b585f3ec15913f.tar.gz
barebox-23f988e8d9e1f9480adeefc4f5b585f3ec15913f.tar.xz
pinctrl: i.MX iomux-v1: Make base address initialization unnecessary
So far we have imx_gpio_mode() to configure a pinmux entry for the older i.MX pinmuxes. For this to work imx_iomuxv1_init() must be called beforehand to configure the base address. Simplify this by introducing SoC specific variants of imx_gpio_mode() which also pass the base address. This makes initialization of the base address unnecessary and the functions usable for PBL. Consequently also compile the code for PBL. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/phytec-phycore-imx27')
-rw-r--r--arch/arm/boards/phytec-phycore-imx27/pcm038.c4
-rw-r--r--arch/arm/boards/phytec-phycore-imx27/pcm970.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/boards/phytec-phycore-imx27/pcm038.c b/arch/arm/boards/phytec-phycore-imx27/pcm038.c
index f1f808116c..5ebef516a7 100644
--- a/arch/arm/boards/phytec-phycore-imx27/pcm038.c
+++ b/arch/arm/boards/phytec-phycore-imx27/pcm038.c
@@ -112,12 +112,12 @@ static int pcm038_init(void)
return 0;
/* Apply delay for STP line to stop ULPI */
- imx_gpio_mode(PCM038_GPIO_OTG_STP | GPIO_GPIO);
+ imx27_gpio_mode(PCM038_GPIO_OTG_STP | GPIO_GPIO);
gpio_direction_output(PCM038_GPIO_OTG_STP, 1);
mdelay(1);
for (i = 0; i < ARRAY_SIZE(pcm038_pins); i++)
- imx_gpio_mode(pcm038_pins[i]);
+ imx27_gpio_mode(pcm038_pins[i]);
imx27_add_fb(&pcm038_fb_data);
diff --git a/arch/arm/boards/phytec-phycore-imx27/pcm970.c b/arch/arm/boards/phytec-phycore-imx27/pcm970.c
index 13bb7c1cf5..b8faec0384 100644
--- a/arch/arm/boards/phytec-phycore-imx27/pcm970.c
+++ b/arch/arm/boards/phytec-phycore-imx27/pcm970.c
@@ -73,7 +73,7 @@ static int pcm970_init(void)
uint32_t i;
for (i = 0; i < ARRAY_SIZE(pcmcia_pins); i++)
- imx_gpio_mode(pcmcia_pins[i] | GPIO_PUEN);
+ imx27_gpio_mode(pcmcia_pins[i] | GPIO_PUEN);
/* Always set PCOE signal to low */
gpio_set_value(GPIO_IDE_PCOE, 0);