All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Daniel Mack <daniel@zonque.org>,
	Haojian Zhuang <haojian.zhuang@gmail.com>,
	Robert Jarzmik <robert.jarzmik@free.fr>
Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Linus Walleij <linus.walleij@linaro.org>,
	Arnd Bergmann <arnd@arndb.de>, Mark Brown <broonie@kernel.org>,
	alsa-devel@alsa-project.org
Subject: [PATCH 17/46] ARM: pxa: poodle: use platform data for poodle asoc driver
Date: Fri, 18 Oct 2019 17:41:32 +0200	[thread overview]
Message-ID: <20191018154201.1276638-17-arnd@arndb.de> (raw)
In-Reply-To: <20191018154052.1276506-1-arnd@arndb.de>

The poodle audio driver shows its age by using a custom
gpio api for the "locomo" support chip.

In a perfect world, this would get converted to use gpiolib
and a gpio lookup table.

As the world is not perfect, just pass all the required data
in a custom platform_data structure. to avoid the globally
visible mach/poodle.h header.

Cc: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm/mach-pxa/poodle.c                    | 30 ++++++++----
 arch/arm/mach-pxa/{include/mach => }/poodle.h |  4 +-
 include/linux/platform_data/asoc-poodle.h     | 16 ++++++
 sound/soc/pxa/poodle.c                        | 49 ++++++++++---------
 4 files changed, 63 insertions(+), 36 deletions(-)
 rename arch/arm/mach-pxa/{include/mach => }/poodle.h (97%)
 create mode 100644 include/linux/platform_data/asoc-poodle.h

diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c
index 8dd791ee49bf..7709fe026c33 100644
--- a/arch/arm/mach-pxa/poodle.c
+++ b/arch/arm/mach-pxa/poodle.c
@@ -39,11 +39,13 @@
 #include <asm/mach/irq.h>
 
 #include "pxa25x.h"
-#include <linux/platform_data/mmc-pxamci.h>
 #include "udc.h"
+#include "poodle.h"
+
+#include <linux/platform_data/mmc-pxamci.h>
 #include <linux/platform_data/irda-pxaficp.h>
-#include <mach/poodle.h>
 #include <linux/platform_data/video-pxafb.h>
+#include <linux/platform_data/asoc-poodle.h>
 
 #include <asm/hardware/scoop.h>
 #include <asm/hardware/locomo.h>
@@ -155,12 +157,6 @@ static struct scoop_pcmcia_config poodle_pcmcia_config = {
 
 EXPORT_SYMBOL(poodle_scoop_device);
 
-
-static struct platform_device poodle_audio_device = {
-	.name	= "poodle-audio",
-	.id	= -1,
-};
-
 /* LoCoMo device */
 static struct resource locomo_resources[] = {
 	[0] = {
@@ -179,7 +175,7 @@ static struct locomo_platform_data locomo_info = {
 	.irq_base	= IRQ_BOARD_START,
 };
 
-struct platform_device poodle_locomo_device = {
+static struct platform_device poodle_locomo_device = {
 	.name		= "locomo",
 	.id		= 0,
 	.num_resources	= ARRAY_SIZE(locomo_resources),
@@ -189,7 +185,21 @@ struct platform_device poodle_locomo_device = {
 	},
 };
 
-EXPORT_SYMBOL(poodle_locomo_device);
+static struct poodle_audio_platform_data poodle_audio_pdata = {
+	.locomo_dev	= &poodle_locomo_device.dev,
+
+	.gpio_amp_on   	= POODLE_LOCOMO_GPIO_AMP_ON,
+	.gpio_mute_l   	= POODLE_LOCOMO_GPIO_MUTE_L,
+	.gpio_mute_r   	= POODLE_LOCOMO_GPIO_MUTE_R,
+	.gpio_232vcc_on	= POODLE_LOCOMO_GPIO_232VCC_ON,
+	.gpio_jk_b     	= POODLE_LOCOMO_GPIO_JK_B,
+};
+
+static struct platform_device poodle_audio_device = {
+	.name	= "poodle-audio",
+	.id	= -1,
+	.dev.platform_data = &poodle_audio_pdata,
+};
 
 #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)
 static struct pxa2xx_spi_controller poodle_spi_info = {
diff --git a/arch/arm/mach-pxa/include/mach/poodle.h b/arch/arm/mach-pxa/poodle.h
similarity index 97%
rename from arch/arm/mach-pxa/include/mach/poodle.h
rename to arch/arm/mach-pxa/poodle.h
index b56b19351a03..e675a3d1aa18 100644
--- a/arch/arm/mach-pxa/include/mach/poodle.h
+++ b/arch/arm/mach-pxa/poodle.h
@@ -15,7 +15,7 @@
 #ifndef __ASM_ARCH_POODLE_H
 #define __ASM_ARCH_POODLE_H  1
 
-#include "irqs.h" /* PXA_GPIO_TO_IRQ */
+#include <mach/irqs.h> /* PXA_GPIO_TO_IRQ */
 
 /*
  * GPIOs
@@ -89,6 +89,4 @@
 
 #define POODLE_NR_IRQS		(IRQ_BOARD_START + 4)	/* 4 for LoCoMo */
 
-extern struct platform_device poodle_locomo_device;
-
 #endif /* __ASM_ARCH_POODLE_H  */
diff --git a/include/linux/platform_data/asoc-poodle.h b/include/linux/platform_data/asoc-poodle.h
new file mode 100644
index 000000000000..2052fad55c5c
--- /dev/null
+++ b/include/linux/platform_data/asoc-poodle.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __LINUX_PLATFORM_DATA_POODLE_AUDIO
+#define __LINUX_PLATFORM_DATA_POODLE_AUDIO
+
+/* locomo is not a proper gpio driver, and uses its own api */
+struct poodle_audio_platform_data {
+	struct device	*locomo_dev;
+
+	int		gpio_amp_on;
+	int		gpio_mute_l;
+	int		gpio_mute_r;
+	int		gpio_232vcc_on;
+	int		gpio_jk_b;
+};
+
+#endif
diff --git a/sound/soc/pxa/poodle.c b/sound/soc/pxa/poodle.c
index f289c089aede..39768288b80c 100644
--- a/sound/soc/pxa/poodle.c
+++ b/sound/soc/pxa/poodle.c
@@ -21,8 +21,8 @@
 
 #include <asm/mach-types.h>
 #include <asm/hardware/locomo.h>
-#include <mach/poodle.h>
 #include <linux/platform_data/asoc-pxa.h>
+#include <linux/platform_data/asoc-poodle.h>
 
 #include "../codecs/wm8731.h"
 #include "pxa2xx-i2s.h"
@@ -38,21 +38,23 @@
 static int poodle_jack_func;
 static int poodle_spk_func;
 
+static struct poodle_audio_platform_data *poodle_pdata;
+
 static void poodle_ext_control(struct snd_soc_dapm_context *dapm)
 {
 	/* set up jack connection */
 	if (poodle_jack_func == POODLE_HP) {
 		/* set = unmute headphone */
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_L, 1);
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_R, 1);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_l, 1);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_r, 1);
 		snd_soc_dapm_enable_pin(dapm, "Headphone Jack");
 	} else {
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_L, 0);
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_R, 0);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_l, 0);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_r, 0);
 		snd_soc_dapm_disable_pin(dapm, "Headphone Jack");
 	}
 
@@ -80,10 +82,10 @@ static int poodle_startup(struct snd_pcm_substream *substream)
 static void poodle_shutdown(struct snd_pcm_substream *substream)
 {
 	/* set = unmute headphone */
-	locomo_gpio_write(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_L, 1);
-	locomo_gpio_write(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_R, 1);
+	locomo_gpio_write(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_l, 1);
+	locomo_gpio_write(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_r, 1);
 }
 
 static int poodle_hw_params(struct snd_pcm_substream *substream,
@@ -174,11 +176,11 @@ static int poodle_amp_event(struct snd_soc_dapm_widget *w,
 	struct snd_kcontrol *k, int event)
 {
 	if (SND_SOC_DAPM_EVENT_ON(event))
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_AMP_ON, 0);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_amp_on, 0);
 	else
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_AMP_ON, 1);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_amp_on, 1);
 
 	return 0;
 }
@@ -254,13 +256,14 @@ static int poodle_probe(struct platform_device *pdev)
 	struct snd_soc_card *card = &poodle;
 	int ret;
 
-	locomo_gpio_set_dir(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_AMP_ON, 0);
+	poodle_pdata = pdev->dev.platform_data;
+	locomo_gpio_set_dir(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_amp_on, 0);
 	/* should we mute HP at startup - burning power ?*/
-	locomo_gpio_set_dir(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_L, 0);
-	locomo_gpio_set_dir(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_R, 0);
+	locomo_gpio_set_dir(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_l, 0);
+	locomo_gpio_set_dir(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_r, 0);
 
 	card->dev = &pdev->dev;
 
-- 
2.20.0


WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@arndb.de>
To: Daniel Mack <daniel@zonque.org>,
	Haojian Zhuang <haojian.zhuang@gmail.com>,
	Robert Jarzmik <robert.jarzmik@free.fr>
Cc: alsa-devel@alsa-project.org, Arnd Bergmann <arnd@arndb.de>,
	Linus Walleij <linus.walleij@linaro.org>,
	linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org>,
	linux-arm-kernel@lists.infradead.org
Subject: [alsa-devel] [PATCH 17/46] ARM: pxa: poodle: use platform data for poodle asoc driver
Date: Fri, 18 Oct 2019 17:41:32 +0200	[thread overview]
Message-ID: <20191018154201.1276638-17-arnd@arndb.de> (raw)
In-Reply-To: <20191018154052.1276506-1-arnd@arndb.de>

The poodle audio driver shows its age by using a custom
gpio api for the "locomo" support chip.

In a perfect world, this would get converted to use gpiolib
and a gpio lookup table.

As the world is not perfect, just pass all the required data
in a custom platform_data structure. to avoid the globally
visible mach/poodle.h header.

Cc: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm/mach-pxa/poodle.c                    | 30 ++++++++----
 arch/arm/mach-pxa/{include/mach => }/poodle.h |  4 +-
 include/linux/platform_data/asoc-poodle.h     | 16 ++++++
 sound/soc/pxa/poodle.c                        | 49 ++++++++++---------
 4 files changed, 63 insertions(+), 36 deletions(-)
 rename arch/arm/mach-pxa/{include/mach => }/poodle.h (97%)
 create mode 100644 include/linux/platform_data/asoc-poodle.h

diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c
index 8dd791ee49bf..7709fe026c33 100644
--- a/arch/arm/mach-pxa/poodle.c
+++ b/arch/arm/mach-pxa/poodle.c
@@ -39,11 +39,13 @@
 #include <asm/mach/irq.h>
 
 #include "pxa25x.h"
-#include <linux/platform_data/mmc-pxamci.h>
 #include "udc.h"
+#include "poodle.h"
+
+#include <linux/platform_data/mmc-pxamci.h>
 #include <linux/platform_data/irda-pxaficp.h>
-#include <mach/poodle.h>
 #include <linux/platform_data/video-pxafb.h>
+#include <linux/platform_data/asoc-poodle.h>
 
 #include <asm/hardware/scoop.h>
 #include <asm/hardware/locomo.h>
@@ -155,12 +157,6 @@ static struct scoop_pcmcia_config poodle_pcmcia_config = {
 
 EXPORT_SYMBOL(poodle_scoop_device);
 
-
-static struct platform_device poodle_audio_device = {
-	.name	= "poodle-audio",
-	.id	= -1,
-};
-
 /* LoCoMo device */
 static struct resource locomo_resources[] = {
 	[0] = {
@@ -179,7 +175,7 @@ static struct locomo_platform_data locomo_info = {
 	.irq_base	= IRQ_BOARD_START,
 };
 
-struct platform_device poodle_locomo_device = {
+static struct platform_device poodle_locomo_device = {
 	.name		= "locomo",
 	.id		= 0,
 	.num_resources	= ARRAY_SIZE(locomo_resources),
@@ -189,7 +185,21 @@ struct platform_device poodle_locomo_device = {
 	},
 };
 
-EXPORT_SYMBOL(poodle_locomo_device);
+static struct poodle_audio_platform_data poodle_audio_pdata = {
+	.locomo_dev	= &poodle_locomo_device.dev,
+
+	.gpio_amp_on   	= POODLE_LOCOMO_GPIO_AMP_ON,
+	.gpio_mute_l   	= POODLE_LOCOMO_GPIO_MUTE_L,
+	.gpio_mute_r   	= POODLE_LOCOMO_GPIO_MUTE_R,
+	.gpio_232vcc_on	= POODLE_LOCOMO_GPIO_232VCC_ON,
+	.gpio_jk_b     	= POODLE_LOCOMO_GPIO_JK_B,
+};
+
+static struct platform_device poodle_audio_device = {
+	.name	= "poodle-audio",
+	.id	= -1,
+	.dev.platform_data = &poodle_audio_pdata,
+};
 
 #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)
 static struct pxa2xx_spi_controller poodle_spi_info = {
diff --git a/arch/arm/mach-pxa/include/mach/poodle.h b/arch/arm/mach-pxa/poodle.h
similarity index 97%
rename from arch/arm/mach-pxa/include/mach/poodle.h
rename to arch/arm/mach-pxa/poodle.h
index b56b19351a03..e675a3d1aa18 100644
--- a/arch/arm/mach-pxa/include/mach/poodle.h
+++ b/arch/arm/mach-pxa/poodle.h
@@ -15,7 +15,7 @@
 #ifndef __ASM_ARCH_POODLE_H
 #define __ASM_ARCH_POODLE_H  1
 
-#include "irqs.h" /* PXA_GPIO_TO_IRQ */
+#include <mach/irqs.h> /* PXA_GPIO_TO_IRQ */
 
 /*
  * GPIOs
@@ -89,6 +89,4 @@
 
 #define POODLE_NR_IRQS		(IRQ_BOARD_START + 4)	/* 4 for LoCoMo */
 
-extern struct platform_device poodle_locomo_device;
-
 #endif /* __ASM_ARCH_POODLE_H  */
diff --git a/include/linux/platform_data/asoc-poodle.h b/include/linux/platform_data/asoc-poodle.h
new file mode 100644
index 000000000000..2052fad55c5c
--- /dev/null
+++ b/include/linux/platform_data/asoc-poodle.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __LINUX_PLATFORM_DATA_POODLE_AUDIO
+#define __LINUX_PLATFORM_DATA_POODLE_AUDIO
+
+/* locomo is not a proper gpio driver, and uses its own api */
+struct poodle_audio_platform_data {
+	struct device	*locomo_dev;
+
+	int		gpio_amp_on;
+	int		gpio_mute_l;
+	int		gpio_mute_r;
+	int		gpio_232vcc_on;
+	int		gpio_jk_b;
+};
+
+#endif
diff --git a/sound/soc/pxa/poodle.c b/sound/soc/pxa/poodle.c
index f289c089aede..39768288b80c 100644
--- a/sound/soc/pxa/poodle.c
+++ b/sound/soc/pxa/poodle.c
@@ -21,8 +21,8 @@
 
 #include <asm/mach-types.h>
 #include <asm/hardware/locomo.h>
-#include <mach/poodle.h>
 #include <linux/platform_data/asoc-pxa.h>
+#include <linux/platform_data/asoc-poodle.h>
 
 #include "../codecs/wm8731.h"
 #include "pxa2xx-i2s.h"
@@ -38,21 +38,23 @@
 static int poodle_jack_func;
 static int poodle_spk_func;
 
+static struct poodle_audio_platform_data *poodle_pdata;
+
 static void poodle_ext_control(struct snd_soc_dapm_context *dapm)
 {
 	/* set up jack connection */
 	if (poodle_jack_func == POODLE_HP) {
 		/* set = unmute headphone */
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_L, 1);
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_R, 1);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_l, 1);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_r, 1);
 		snd_soc_dapm_enable_pin(dapm, "Headphone Jack");
 	} else {
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_L, 0);
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_R, 0);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_l, 0);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_r, 0);
 		snd_soc_dapm_disable_pin(dapm, "Headphone Jack");
 	}
 
@@ -80,10 +82,10 @@ static int poodle_startup(struct snd_pcm_substream *substream)
 static void poodle_shutdown(struct snd_pcm_substream *substream)
 {
 	/* set = unmute headphone */
-	locomo_gpio_write(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_L, 1);
-	locomo_gpio_write(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_R, 1);
+	locomo_gpio_write(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_l, 1);
+	locomo_gpio_write(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_r, 1);
 }
 
 static int poodle_hw_params(struct snd_pcm_substream *substream,
@@ -174,11 +176,11 @@ static int poodle_amp_event(struct snd_soc_dapm_widget *w,
 	struct snd_kcontrol *k, int event)
 {
 	if (SND_SOC_DAPM_EVENT_ON(event))
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_AMP_ON, 0);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_amp_on, 0);
 	else
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_AMP_ON, 1);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_amp_on, 1);
 
 	return 0;
 }
@@ -254,13 +256,14 @@ static int poodle_probe(struct platform_device *pdev)
 	struct snd_soc_card *card = &poodle;
 	int ret;
 
-	locomo_gpio_set_dir(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_AMP_ON, 0);
+	poodle_pdata = pdev->dev.platform_data;
+	locomo_gpio_set_dir(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_amp_on, 0);
 	/* should we mute HP at startup - burning power ?*/
-	locomo_gpio_set_dir(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_L, 0);
-	locomo_gpio_set_dir(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_R, 0);
+	locomo_gpio_set_dir(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_l, 0);
+	locomo_gpio_set_dir(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_r, 0);
 
 	card->dev = &pdev->dev;
 
-- 
2.20.0

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@arndb.de>
To: Daniel Mack <daniel@zonque.org>,
	Haojian Zhuang <haojian.zhuang@gmail.com>,
	Robert Jarzmik <robert.jarzmik@free.fr>
Cc: alsa-devel@alsa-project.org, Arnd Bergmann <arnd@arndb.de>,
	Linus Walleij <linus.walleij@linaro.org>,
	linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org>,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 17/46] ARM: pxa: poodle: use platform data for poodle asoc driver
Date: Fri, 18 Oct 2019 17:41:32 +0200	[thread overview]
Message-ID: <20191018154201.1276638-17-arnd@arndb.de> (raw)
In-Reply-To: <20191018154052.1276506-1-arnd@arndb.de>

The poodle audio driver shows its age by using a custom
gpio api for the "locomo" support chip.

In a perfect world, this would get converted to use gpiolib
and a gpio lookup table.

As the world is not perfect, just pass all the required data
in a custom platform_data structure. to avoid the globally
visible mach/poodle.h header.

Cc: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm/mach-pxa/poodle.c                    | 30 ++++++++----
 arch/arm/mach-pxa/{include/mach => }/poodle.h |  4 +-
 include/linux/platform_data/asoc-poodle.h     | 16 ++++++
 sound/soc/pxa/poodle.c                        | 49 ++++++++++---------
 4 files changed, 63 insertions(+), 36 deletions(-)
 rename arch/arm/mach-pxa/{include/mach => }/poodle.h (97%)
 create mode 100644 include/linux/platform_data/asoc-poodle.h

diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c
index 8dd791ee49bf..7709fe026c33 100644
--- a/arch/arm/mach-pxa/poodle.c
+++ b/arch/arm/mach-pxa/poodle.c
@@ -39,11 +39,13 @@
 #include <asm/mach/irq.h>
 
 #include "pxa25x.h"
-#include <linux/platform_data/mmc-pxamci.h>
 #include "udc.h"
+#include "poodle.h"
+
+#include <linux/platform_data/mmc-pxamci.h>
 #include <linux/platform_data/irda-pxaficp.h>
-#include <mach/poodle.h>
 #include <linux/platform_data/video-pxafb.h>
+#include <linux/platform_data/asoc-poodle.h>
 
 #include <asm/hardware/scoop.h>
 #include <asm/hardware/locomo.h>
@@ -155,12 +157,6 @@ static struct scoop_pcmcia_config poodle_pcmcia_config = {
 
 EXPORT_SYMBOL(poodle_scoop_device);
 
-
-static struct platform_device poodle_audio_device = {
-	.name	= "poodle-audio",
-	.id	= -1,
-};
-
 /* LoCoMo device */
 static struct resource locomo_resources[] = {
 	[0] = {
@@ -179,7 +175,7 @@ static struct locomo_platform_data locomo_info = {
 	.irq_base	= IRQ_BOARD_START,
 };
 
-struct platform_device poodle_locomo_device = {
+static struct platform_device poodle_locomo_device = {
 	.name		= "locomo",
 	.id		= 0,
 	.num_resources	= ARRAY_SIZE(locomo_resources),
@@ -189,7 +185,21 @@ struct platform_device poodle_locomo_device = {
 	},
 };
 
-EXPORT_SYMBOL(poodle_locomo_device);
+static struct poodle_audio_platform_data poodle_audio_pdata = {
+	.locomo_dev	= &poodle_locomo_device.dev,
+
+	.gpio_amp_on   	= POODLE_LOCOMO_GPIO_AMP_ON,
+	.gpio_mute_l   	= POODLE_LOCOMO_GPIO_MUTE_L,
+	.gpio_mute_r   	= POODLE_LOCOMO_GPIO_MUTE_R,
+	.gpio_232vcc_on	= POODLE_LOCOMO_GPIO_232VCC_ON,
+	.gpio_jk_b     	= POODLE_LOCOMO_GPIO_JK_B,
+};
+
+static struct platform_device poodle_audio_device = {
+	.name	= "poodle-audio",
+	.id	= -1,
+	.dev.platform_data = &poodle_audio_pdata,
+};
 
 #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)
 static struct pxa2xx_spi_controller poodle_spi_info = {
diff --git a/arch/arm/mach-pxa/include/mach/poodle.h b/arch/arm/mach-pxa/poodle.h
similarity index 97%
rename from arch/arm/mach-pxa/include/mach/poodle.h
rename to arch/arm/mach-pxa/poodle.h
index b56b19351a03..e675a3d1aa18 100644
--- a/arch/arm/mach-pxa/include/mach/poodle.h
+++ b/arch/arm/mach-pxa/poodle.h
@@ -15,7 +15,7 @@
 #ifndef __ASM_ARCH_POODLE_H
 #define __ASM_ARCH_POODLE_H  1
 
-#include "irqs.h" /* PXA_GPIO_TO_IRQ */
+#include <mach/irqs.h> /* PXA_GPIO_TO_IRQ */
 
 /*
  * GPIOs
@@ -89,6 +89,4 @@
 
 #define POODLE_NR_IRQS		(IRQ_BOARD_START + 4)	/* 4 for LoCoMo */
 
-extern struct platform_device poodle_locomo_device;
-
 #endif /* __ASM_ARCH_POODLE_H  */
diff --git a/include/linux/platform_data/asoc-poodle.h b/include/linux/platform_data/asoc-poodle.h
new file mode 100644
index 000000000000..2052fad55c5c
--- /dev/null
+++ b/include/linux/platform_data/asoc-poodle.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __LINUX_PLATFORM_DATA_POODLE_AUDIO
+#define __LINUX_PLATFORM_DATA_POODLE_AUDIO
+
+/* locomo is not a proper gpio driver, and uses its own api */
+struct poodle_audio_platform_data {
+	struct device	*locomo_dev;
+
+	int		gpio_amp_on;
+	int		gpio_mute_l;
+	int		gpio_mute_r;
+	int		gpio_232vcc_on;
+	int		gpio_jk_b;
+};
+
+#endif
diff --git a/sound/soc/pxa/poodle.c b/sound/soc/pxa/poodle.c
index f289c089aede..39768288b80c 100644
--- a/sound/soc/pxa/poodle.c
+++ b/sound/soc/pxa/poodle.c
@@ -21,8 +21,8 @@
 
 #include <asm/mach-types.h>
 #include <asm/hardware/locomo.h>
-#include <mach/poodle.h>
 #include <linux/platform_data/asoc-pxa.h>
+#include <linux/platform_data/asoc-poodle.h>
 
 #include "../codecs/wm8731.h"
 #include "pxa2xx-i2s.h"
@@ -38,21 +38,23 @@
 static int poodle_jack_func;
 static int poodle_spk_func;
 
+static struct poodle_audio_platform_data *poodle_pdata;
+
 static void poodle_ext_control(struct snd_soc_dapm_context *dapm)
 {
 	/* set up jack connection */
 	if (poodle_jack_func == POODLE_HP) {
 		/* set = unmute headphone */
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_L, 1);
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_R, 1);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_l, 1);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_r, 1);
 		snd_soc_dapm_enable_pin(dapm, "Headphone Jack");
 	} else {
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_L, 0);
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_MUTE_R, 0);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_l, 0);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_mute_r, 0);
 		snd_soc_dapm_disable_pin(dapm, "Headphone Jack");
 	}
 
@@ -80,10 +82,10 @@ static int poodle_startup(struct snd_pcm_substream *substream)
 static void poodle_shutdown(struct snd_pcm_substream *substream)
 {
 	/* set = unmute headphone */
-	locomo_gpio_write(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_L, 1);
-	locomo_gpio_write(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_R, 1);
+	locomo_gpio_write(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_l, 1);
+	locomo_gpio_write(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_r, 1);
 }
 
 static int poodle_hw_params(struct snd_pcm_substream *substream,
@@ -174,11 +176,11 @@ static int poodle_amp_event(struct snd_soc_dapm_widget *w,
 	struct snd_kcontrol *k, int event)
 {
 	if (SND_SOC_DAPM_EVENT_ON(event))
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_AMP_ON, 0);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_amp_on, 0);
 	else
-		locomo_gpio_write(&poodle_locomo_device.dev,
-			POODLE_LOCOMO_GPIO_AMP_ON, 1);
+		locomo_gpio_write(poodle_pdata->locomo_dev,
+			poodle_pdata->gpio_amp_on, 1);
 
 	return 0;
 }
@@ -254,13 +256,14 @@ static int poodle_probe(struct platform_device *pdev)
 	struct snd_soc_card *card = &poodle;
 	int ret;
 
-	locomo_gpio_set_dir(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_AMP_ON, 0);
+	poodle_pdata = pdev->dev.platform_data;
+	locomo_gpio_set_dir(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_amp_on, 0);
 	/* should we mute HP at startup - burning power ?*/
-	locomo_gpio_set_dir(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_L, 0);
-	locomo_gpio_set_dir(&poodle_locomo_device.dev,
-		POODLE_LOCOMO_GPIO_MUTE_R, 0);
+	locomo_gpio_set_dir(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_l, 0);
+	locomo_gpio_set_dir(poodle_pdata->locomo_dev,
+		poodle_pdata->gpio_mute_r, 0);
 
 	card->dev = &pdev->dev;
 
-- 
2.20.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2019-10-18 15:45 UTC|newest]

Thread overview: 424+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-18 15:40 [PATCH 00/46] ARM: pxa: towards multiplatform support Arnd Bergmann
2019-10-18 15:40 ` Arnd Bergmann
2019-10-18 15:40 ` Arnd Bergmann
2019-10-18 15:40 ` Arnd Bergmann
2019-10-18 15:41 ` [PATCH 01/46] ARM: pxa: split mach/generic.h Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 18:06   ` Robert Jarzmik
2019-10-28 18:06     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 02/46] ARM: pxa: make mainstone.h private Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 18:08   ` Robert Jarzmik
2019-10-28 18:08     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 03/46] ARM: pxa: make mach/regs-uart.h private Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 18:14   ` Robert Jarzmik
2019-10-28 18:14     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 04/46] ARM: pxa: remove mach/dma.h Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 18:15   ` Robert Jarzmik
2019-10-28 18:15     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 05/46] ARM: pxa: split up mach/hardware.h Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 18:37   ` Dmitry Torokhov
2019-10-18 18:37     ` Dmitry Torokhov
2019-10-18 18:37     ` Dmitry Torokhov
2019-10-18 18:37     ` [alsa-devel] " Dmitry Torokhov
2019-10-18 18:37     ` Dmitry Torokhov
2019-10-18 18:37     ` Dmitry Torokhov
2019-10-19 21:22   ` Alexandre Belloni
2019-10-19 21:22     ` Alexandre Belloni
2019-10-19 21:22     ` Alexandre Belloni
2019-10-19 21:22     ` [alsa-devel] " Alexandre Belloni
2019-10-19 21:22     ` Alexandre Belloni
2019-10-19 21:22     ` Alexandre Belloni
2019-10-21  2:27   ` Viresh Kumar
2019-10-21  2:39     ` Viresh Kumar
2019-10-21  2:27     ` Viresh Kumar
2019-10-21  2:27     ` Viresh Kumar
2019-10-21  2:27     ` [alsa-devel] " Viresh Kumar
2019-10-21  2:27     ` Viresh Kumar
2019-10-21  9:58   ` Ulf Hansson
2019-10-21  9:58     ` Ulf Hansson
2019-10-21  9:58     ` Ulf Hansson
2019-10-21  9:58     ` [alsa-devel] " Ulf Hansson
2019-10-21  9:58     ` Ulf Hansson
2019-10-21  9:58     ` Ulf Hansson
2019-10-22 16:36   ` Mark Brown
2019-10-22 16:36     ` Mark Brown
2019-10-22 16:36     ` Mark Brown
2019-10-22 16:36     ` [alsa-devel] " Mark Brown
2019-10-22 16:36     ` Mark Brown
2019-10-22 16:36     ` Mark Brown
2019-10-28  9:18   ` Stephen Boyd
2019-10-28  9:18     ` Stephen Boyd
2019-10-28  9:18     ` Stephen Boyd
2019-10-28  9:18     ` Stephen Boyd
2019-10-28  9:18     ` [alsa-devel] " Stephen Boyd
2019-10-28  9:18     ` Stephen Boyd
2019-10-28  9:18     ` Stephen Boyd
2019-10-28 19:14   ` Robert Jarzmik
2019-10-28 19:14     ` Robert Jarzmik
2019-10-28 19:14     ` Robert Jarzmik
2019-10-28 19:14     ` [alsa-devel] " Robert Jarzmik
2019-10-28 19:14     ` Robert Jarzmik
2019-10-28 19:14     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 06/46] ARM: pxa: stop using mach/bitfield.h Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 19:20   ` Robert Jarzmik
2019-10-28 19:20     ` Robert Jarzmik
2019-10-28 19:20     ` Robert Jarzmik
2019-11-08 14:39   ` Bartlomiej Zolnierkiewicz
2019-11-08 14:39     ` Bartlomiej Zolnierkiewicz
2019-11-08 14:39     ` Bartlomiej Zolnierkiewicz
2019-10-18 15:41 ` [PATCH 07/46] ARM: pxa: move mach/sound.h to linux/platform_data/ Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-22 16:36   ` Mark Brown
2019-10-22 16:36     ` Mark Brown
2019-10-22 16:36     ` [alsa-devel] " Mark Brown
2019-10-28 19:21   ` Robert Jarzmik
2019-10-28 19:21     ` Robert Jarzmik
2019-10-28 19:21     ` [alsa-devel] " Robert Jarzmik
2019-10-18 15:41 ` [PATCH 08/46] ARM: pxa: move regs-lcd.h into driver Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 19:24   ` Robert Jarzmik
2019-10-28 19:24     ` Robert Jarzmik
2019-10-28 19:24     ` Robert Jarzmik
2019-11-08 14:40   ` Bartlomiej Zolnierkiewicz
2019-11-08 14:40     ` Bartlomiej Zolnierkiewicz
2019-11-08 14:40     ` Bartlomiej Zolnierkiewicz
2019-11-08 14:40     ` Bartlomiej Zolnierkiewicz
2019-10-18 15:41 ` [PATCH 09/46] watchdog: sa1100: use platform device registration Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-19 14:06   ` Guenter Roeck
2019-10-19 14:06     ` Guenter Roeck
2019-10-22  9:44     ` Arnd Bergmann
2019-10-22  9:44       ` Arnd Bergmann
2019-10-22 13:38       ` Guenter Roeck
2019-10-22 13:38         ` Guenter Roeck
2019-10-18 15:41 ` [PATCH 10/46] ARM: pxa: pxa2xx-ac97-lib: use IRQ resource Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-28 20:19   ` Robert Jarzmik
2019-10-28 20:19     ` Robert Jarzmik
2019-10-28 20:19     ` [alsa-devel] " Robert Jarzmik
2019-10-18 15:41 ` [PATCH 11/46] ARM: pxa: cmx270: use platform device for nand Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-19  9:44   ` Miquel Raynal
2019-10-19  9:44     ` Miquel Raynal
2019-10-19  9:44     ` Miquel Raynal
2019-10-22 10:00     ` Arnd Bergmann
2019-10-22 10:00       ` Arnd Bergmann
2019-10-22 10:00       ` Arnd Bergmann
2019-10-28 20:25   ` Robert Jarzmik
2019-10-28 20:25     ` Robert Jarzmik
2019-10-28 20:25     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 12/46] ARM: pxa: make addr-map.h header local Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 20:27   ` Robert Jarzmik
2019-10-28 20:27     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 13/46] ARM: pxa: move pcmcia board data into mach-pxa Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41 ` [PATCH 14/46] ARM: pxa: use pdev resource for palmld mmio Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 20:34   ` Robert Jarzmik
2019-10-28 20:34     ` Robert Jarzmik
2019-11-08 14:40   ` Bartlomiej Zolnierkiewicz
2019-11-08 14:40     ` Bartlomiej Zolnierkiewicz
2019-10-18 15:41 ` [PATCH 15/46] ARM: pxa: maybe fix gpio lookup tables Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 20:48   ` Robert Jarzmik
2019-10-28 20:48     ` Robert Jarzmik
2019-11-04 15:45   ` Linus Walleij
2019-11-04 15:45     ` Linus Walleij
2019-10-18 15:41 ` [PATCH 16/46] ARM: pxa: tosa: use gpio descriptor for audio Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-22 16:36   ` Mark Brown
2019-10-22 16:36     ` Mark Brown
2019-10-22 16:36     ` [alsa-devel] " Mark Brown
2019-10-28 20:49   ` Robert Jarzmik
2019-10-28 20:49     ` Robert Jarzmik
2019-10-28 20:49     ` [alsa-devel] " Robert Jarzmik
2019-10-18 15:41 ` Arnd Bergmann [this message]
2019-10-18 15:41   ` [PATCH 17/46] ARM: pxa: poodle: use platform data for poodle asoc driver Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-22 16:37   ` Mark Brown
2019-10-22 16:37     ` Mark Brown
2019-10-22 16:37     ` [alsa-devel] " Mark Brown
2019-10-28 20:53   ` Robert Jarzmik
2019-10-28 20:53     ` Robert Jarzmik
2019-10-28 20:53     ` [alsa-devel] " Robert Jarzmik
2019-10-18 15:41 ` [PATCH 18/46] ARM: pxa: corgi: use gpio descriptors for audio Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-22 16:37   ` Mark Brown
2019-10-22 16:37     ` Mark Brown
2019-10-22 16:37     ` [alsa-devel] " Mark Brown
2019-10-28 20:56   ` Robert Jarzmik
2019-10-28 20:56     ` Robert Jarzmik
2019-10-28 20:56     ` [alsa-devel] " Robert Jarzmik
2019-10-18 15:41 ` [PATCH 19/46] ARM: pxa: hx4700: " Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-22 16:37   ` Mark Brown
2019-10-22 16:37     ` Mark Brown
2019-10-22 16:37     ` [alsa-devel] " Mark Brown
2019-10-28 20:59   ` Robert Jarzmik
2019-10-28 20:59     ` Robert Jarzmik
2019-10-28 20:59     ` [alsa-devel] " Robert Jarzmik
2019-10-18 15:41 ` [PATCH 20/46] ARM: pxa: lubbock: pass udc irqs as resource Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 21:05   ` Robert Jarzmik
2019-10-28 21:05     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 21/46] ARM: pxa: spitz: use gpio descriptors for audio Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-22 16:38   ` Mark Brown
2019-10-22 16:38     ` Mark Brown
2019-10-22 16:38     ` [alsa-devel] " Mark Brown
2019-10-28 21:08   ` Robert Jarzmik
2019-10-28 21:08     ` Robert Jarzmik
2019-10-28 21:08     ` [alsa-devel] " Robert Jarzmik
2022-04-19 15:40     ` Arnd Bergmann
2022-04-19 15:40       ` Arnd Bergmann
2022-04-19 15:40       ` Arnd Bergmann
2019-10-18 15:41 ` [PATCH 22/46] ARM: pxa: eseries: use gpio lookup " Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-22 16:38   ` Mark Brown
2019-10-22 16:38     ` Mark Brown
2019-10-22 16:38     ` [alsa-devel] " Mark Brown
2019-10-28 21:13   ` Robert Jarzmik
2019-10-28 21:13     ` Robert Jarzmik
2019-10-28 21:13     ` [alsa-devel] " Robert Jarzmik
2019-11-05  9:21   ` Linus Walleij
2019-11-05  9:21     ` Linus Walleij
2019-11-05  9:21     ` [alsa-devel] " Linus Walleij
2019-10-18 15:41 ` [PATCH 23/46] ARM: pxa: z2: use gpio lookup for audio device Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-22 16:38   ` Mark Brown
2019-10-22 16:38     ` Mark Brown
2019-10-22 16:38     ` [alsa-devel] " Mark Brown
2019-10-28 21:17   ` Robert Jarzmik
2019-10-28 21:17     ` Robert Jarzmik
2019-10-28 21:17     ` [alsa-devel] " Robert Jarzmik
2019-11-05  9:22   ` Linus Walleij
2019-11-05  9:22     ` Linus Walleij
2019-11-05  9:22     ` [alsa-devel] " Linus Walleij
2019-10-18 15:41 ` [PATCH 24/46] ARM: pxa: magician: use platform driver for audio Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-22 16:38   ` Mark Brown
2019-10-22 16:38     ` Mark Brown
2019-10-22 16:38     ` [alsa-devel] " Mark Brown
2019-10-28 21:19   ` Robert Jarzmik
2019-10-28 21:19     ` Robert Jarzmik
2019-10-28 21:19     ` [alsa-devel] " Robert Jarzmik
2019-11-05  9:22   ` Linus Walleij
2019-11-05  9:22     ` Linus Walleij
2019-11-05  9:22     ` [alsa-devel] " Linus Walleij
2019-10-18 15:41 ` [PATCH 25/46] ARM: pxa: mainstone-wm97xx: use gpio lookup table Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 18:39   ` Dmitry Torokhov
2019-10-18 18:39     ` Dmitry Torokhov
     [not found]     ` <CAK8P3a1Fc=ogknDRGJ3Sn8bZ8tsR_ebE8_bDtF_kZ4AZ5YG_+g@mail.gmail.com>
2019-10-18 19:37       ` Arnd Bergmann
2019-10-18 19:37         ` Arnd Bergmann
2019-10-18 20:39         ` Dmitry Torokhov
2019-10-18 20:39           ` Dmitry Torokhov
2019-10-28 21:24   ` Robert Jarzmik
2019-10-28 21:24     ` Robert Jarzmik
2019-11-05  9:25   ` Linus Walleij
2019-11-05  9:25     ` Linus Walleij
2019-10-18 15:41 ` [PATCH 26/46] ARM: pxa: zylonite: use gpio lookup instead mfp header Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 21:31   ` Robert Jarzmik
2019-10-28 21:31     ` Robert Jarzmik
2019-11-05  9:28   ` Linus Walleij
2019-11-05  9:28     ` Linus Walleij
2019-10-18 15:41 ` [PATCH 27/46] input: touchscreen: mainstone: fix pxa2xx+pxa3xx configuration Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 18:40   ` Dmitry Torokhov
2019-10-18 18:40     ` Dmitry Torokhov
2019-10-28 21:33   ` Robert Jarzmik
2019-10-28 21:33     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 28/46] input: touchscreen: mainstone: sync with zylonite driver Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 18:41   ` Dmitry Torokhov
2019-10-18 18:41     ` Dmitry Torokhov
2019-10-28 21:40   ` Robert Jarzmik
2019-10-28 21:40     ` Robert Jarzmik
2022-04-19 15:51     ` Arnd Bergmann
2022-04-19 15:51       ` Arnd Bergmann
2019-10-18 15:41 ` [PATCH 29/46] Input: touchscreen: use wrapper for pxa2xx ac97 registers Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-18 18:48   ` Dmitry Torokhov
2019-10-18 18:48     ` Dmitry Torokhov
2019-10-18 18:48     ` [alsa-devel] " Dmitry Torokhov
     [not found]     ` <CAK8P3a27==9TeS-RWEvrpnxh+6McqRF-xeb8WPj9pHOn+0zbOQ@mail.gmail.com>
2019-10-18 19:39       ` Fwd: " Arnd Bergmann
2019-10-18 19:39         ` Arnd Bergmann
2019-10-18 19:39         ` [alsa-devel] " Arnd Bergmann
2019-10-18 20:39         ` Dmitry Torokhov
2019-10-18 20:39           ` Dmitry Torokhov
2019-10-18 20:39           ` [alsa-devel] " Dmitry Torokhov
2019-10-30 20:33   ` Robert Jarzmik
2019-10-30 20:33     ` Robert Jarzmik
2019-10-30 20:33     ` [alsa-devel] " Robert Jarzmik
2019-10-18 15:41 ` [PATCH 30/46] SoC: pxa: use pdev resource for FIFO regs Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-22 16:39   ` Mark Brown
2019-10-22 16:39     ` Mark Brown
2019-10-22 16:39     ` [alsa-devel] " Mark Brown
2019-10-22 20:13     ` Arnd Bergmann
2019-10-22 20:13       ` Arnd Bergmann
2019-10-22 20:13       ` [alsa-devel] " Arnd Bergmann
2019-10-28 21:45   ` Robert Jarzmik
2019-10-28 21:45     ` Robert Jarzmik
2019-10-28 21:45     ` [alsa-devel] " Robert Jarzmik
2019-10-18 15:41 ` [PATCH 31/46] ASoC: pxa: ac97: use normal MMIO accessors Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-28 21:47   ` Robert Jarzmik
2019-10-28 21:47     ` Robert Jarzmik
2019-10-28 21:47     ` [alsa-devel] " Robert Jarzmik
2019-10-18 15:41 ` [PATCH 32/46] ASoC: pxa: i2s: " Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` [alsa-devel] " Arnd Bergmann
2019-10-22 16:39   ` Mark Brown
2019-10-22 16:39     ` Mark Brown
2019-10-22 16:39     ` [alsa-devel] " Mark Brown
2019-10-28 21:50   ` Robert Jarzmik
2019-10-28 21:50     ` Robert Jarzmik
2019-10-28 21:50     ` [alsa-devel] " Robert Jarzmik
2019-10-18 15:41 ` [PATCH 33/46] ARM: pxa: pcmcia: move smemc configuration back to arch Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28 21:57   ` Robert Jarzmik
2019-10-28 21:57     ` Robert Jarzmik
2022-04-19 15:55     ` Arnd Bergmann
2022-04-19 15:55       ` Arnd Bergmann
2019-10-18 15:41 ` [PATCH 34/46] ARM: pxa: remove get_clk_frequency_khz() Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-21  2:26   ` Viresh Kumar
2019-10-21  2:26     ` Viresh Kumar
2019-10-28 21:58   ` Robert Jarzmik
2019-10-28 21:58     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 35/46] cpufreq: pxa3: move clk register access to clk driver Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-21  2:26   ` Viresh Kumar
2019-10-21  2:26     ` Viresh Kumar
2019-10-28  9:23   ` Stephen Boyd
2019-10-30 20:42     ` Robert Jarzmik
2019-11-08 21:59       ` Stephen Boyd
2019-11-08 22:02       ` Stephen Boyd
2019-10-18 15:41 ` [PATCH 36/46] ARM: pxa: move smemc register access from clk to platform Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28  9:34   ` Stephen Boyd
2019-10-28  9:34     ` Stephen Boyd
2019-10-30 20:57   ` Robert Jarzmik
2019-10-30 20:57     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 37/46] ARM: pxa: move clk register definitions to driver Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-28  9:34   ` Stephen Boyd
2019-10-28  9:34     ` Stephen Boyd
2019-10-30 21:00     ` Robert Jarzmik
2019-10-30 21:00       ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 38/46] video: backlight: tosa: use gpio lookup table Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-30 21:10   ` Robert Jarzmik
2019-10-30 21:10     ` Robert Jarzmik
2019-10-30 21:10     ` Robert Jarzmik
2019-10-30 21:10     ` Robert Jarzmik
2019-10-30 21:10     ` Robert Jarzmik
2019-11-05 10:04   ` Linus Walleij
2019-11-05 10:04     ` Linus Walleij
2019-11-05 10:04     ` Linus Walleij
2019-11-05 10:04     ` Linus Walleij
2019-11-05 10:17     ` Daniel Thompson
2019-11-05 10:17       ` Daniel Thompson
2019-11-05 10:17       ` Daniel Thompson
2019-11-05 10:17       ` Daniel Thompson
2019-11-11  9:30   ` Lee Jones
2019-11-11  9:30     ` Lee Jones
2019-11-11  9:30     ` Lee Jones
2019-11-11  9:30     ` Lee Jones
2019-10-18 15:41 ` [PATCH 39/46] power: tosa: simplify probe function Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-19  9:07   ` Sebastian Reichel
2019-10-19  9:07     ` Sebastian Reichel
2019-10-30 21:12     ` Robert Jarzmik
2019-10-30 21:12       ` Robert Jarzmik
2019-10-30 21:21     ` Robert Jarzmik
2019-10-30 21:21       ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 40/46] ARM: pxa: tosa: use gpio lookup for battery Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-19  9:09   ` Sebastian Reichel
2019-10-19  9:09     ` Sebastian Reichel
2019-10-18 15:41 ` [PATCH 41/46] ARM: pxa: move it8152 PCI support into machine Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41 ` [PATCH 42/46] ARM: pxa: remove unused mach/bitfield.h Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-30 21:33   ` Robert Jarzmik
2019-10-30 21:33     ` Robert Jarzmik
2019-10-18 15:41 ` [PATCH 43/46] ARM: pxa: pci-it8152: add platform checks Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-18 15:41 ` [PATCH 44/46] ARM: mmp: remove tavorevb board support Arnd Bergmann
2019-10-18 15:41   ` Arnd Bergmann
2019-10-19 14:20   ` Lubomir Rintel
2019-10-19 14:20     ` Lubomir Rintel
2019-10-19 19:34     ` Arnd Bergmann
2019-10-19 19:34       ` Arnd Bergmann
2019-10-18 15:42 ` [PATCH 45/46] ARM: mmp: rename pxa_register_device Arnd Bergmann
2019-10-18 15:42   ` Arnd Bergmann
2019-10-31  8:53   ` Lubomir Rintel
2019-10-31  8:53     ` Lubomir Rintel
2019-10-18 15:42 ` [PATCH 46/46] ARM: pxa: move plat-pxa to drivers/soc/ Arnd Bergmann
2019-10-18 15:42   ` Arnd Bergmann
2019-10-30 21:40   ` Robert Jarzmik
2019-10-30 21:40     ` Robert Jarzmik
2019-10-31  8:53   ` Lubomir Rintel
2019-10-31  8:53     ` Lubomir Rintel
2019-10-18 19:03 ` [PATCH 00/46] ARM: pxa: towards multiplatform support Robert Jarzmik
2019-10-18 19:03   ` Robert Jarzmik
2019-10-18 19:03   ` Robert Jarzmik
2019-10-18 19:03   ` Robert Jarzmik
     [not found]   ` <CAK8P3a1JDtHsOW=iaxEycbJ4TBkR9MHUyDMeJnwxCtb=tefnBQ@mail.gmail.com>
2019-10-18 19:32     ` Arnd Bergmann
2019-10-18 19:32       ` Arnd Bergmann
2019-10-18 19:32       ` Arnd Bergmann
2019-10-18 19:32       ` Arnd Bergmann
2019-10-19 10:35       ` Robert Jarzmik
2019-10-19 10:35         ` Robert Jarzmik
2019-10-19 10:35         ` Robert Jarzmik
2019-10-19 10:35         ` Robert Jarzmik
2019-10-19 10:35         ` Robert Jarzmik
2019-10-24 20:49         ` Robert Jarzmik
2019-10-24 20:49           ` Robert Jarzmik
2019-10-24 20:49           ` Robert Jarzmik
2019-10-24 20:49           ` Robert Jarzmik
2019-10-24 20:49           ` Robert Jarzmik
2019-10-25 10:50           ` Arnd Bergmann
2019-10-25 10:50             ` Arnd Bergmann
2019-10-25 10:50             ` Arnd Bergmann
2019-10-25 10:50             ` Arnd Bergmann
2019-10-19  1:02 ` Guenter Roeck
2019-10-19  1:02   ` Guenter Roeck
2019-10-19  1:02   ` Guenter Roeck
2019-10-19  1:02   ` Guenter Roeck
2019-10-19 10:08   ` Arnd Bergmann
2019-10-19 10:08     ` Arnd Bergmann
2019-10-19 10:08     ` Arnd Bergmann
2019-10-19 10:08     ` Arnd Bergmann
2019-10-19 10:09   ` Arnd Bergmann
2019-10-19 10:09     ` Arnd Bergmann
2019-10-19 10:09     ` Arnd Bergmann
2019-10-19 10:09     ` Arnd Bergmann

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=20191018154201.1276638-17-arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=daniel@zonque.org \
    --cc=haojian.zhuang@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robert.jarzmik@free.fr \
    /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.