From: Robert Jarzmik <robert.jarzmik@free.fr> To: Robert Jarzmik <robert.jarzmik@free.fr>, Daniel Mack <daniel@zonque.org>, Haojian Zhuang <haojian.zhuang@gmail.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org> Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com Subject: [RFC PATCH v2 6/7] ARM: pxa: mioa701 convert to the new AC97 bus Date: Fri, 27 May 2016 22:26:58 +0200 [thread overview] Message-ID: <1464380819-19075-7-git-send-email-robert.jarzmik@free.fr> (raw) In-Reply-To: <1464380819-19075-1-git-send-email-robert.jarzmik@free.fr> This migration implies : - wm9713 device is removed, it will be auto-probed - the AC97 bit clock is added as the pxa internally generated 13MHz clock Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> --- arch/arm/mach-pxa/mioa701.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c index 38a96a193dc4..e26bace43147 100644 --- a/arch/arm/mach-pxa/mioa701.c +++ b/arch/arm/mach-pxa/mioa701.c @@ -19,6 +19,7 @@ * */ +#include <linux/clkdev.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/platform_device.h> @@ -682,7 +683,6 @@ MIO_SIMPLE_DEV(mioa701_led, "leds-gpio", &gpio_led_info) MIO_SIMPLE_DEV(pxa2xx_pcm, "pxa2xx-pcm", NULL) MIO_SIMPLE_DEV(mioa701_sound, "mioa701-wm9713", NULL) MIO_SIMPLE_DEV(mioa701_board, "mioa701-board", NULL) -MIO_SIMPLE_DEV(wm9713_acodec, "wm9713-codec", NULL); MIO_SIMPLE_DEV(gpio_vbus, "gpio-vbus", &gpio_vbus_data); MIO_SIMPLE_DEV(mioa701_camera, "soc-camera-pdrv",&iclink); @@ -690,7 +690,6 @@ static struct platform_device *devices[] __initdata = { &mioa701_gpio_keys, &mioa701_backlight, &mioa701_led, - &wm9713_acodec, &pxa2xx_pcm, &mioa701_sound, &power_dev, @@ -742,6 +741,15 @@ static void __init mioa701_machine_init(void) __raw_writel(0x0001c391, MCATT0); __raw_writel(0x0001c391, MCIO0); + rc = clk_add_alias("ac97_clk", "pxa2xx-ac97:0", "AC97CONFCLK", + &pxa_device_ac97.dev); + if (rc) + pr_err("PXA2xx AC97 clock1 alias error: %d\n", rc); + + rc = clk_add_alias("ac97_clk", "pxa2xx-ac97:1", "AC97CONFCLK", + &pxa_device_ac97.dev); + if (rc) + pr_err("PXA2xx AC97 clock2 alias error: %d\n", rc); pxa2xx_mfp_config(ARRAY_AND_SIZE(mioa701_pin_config)); pxa_set_ffuart_info(NULL); -- 2.1.4
WARNING: multiple messages have this Message-ID (diff)
From: robert.jarzmik@free.fr (Robert Jarzmik) To: linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH v2 6/7] ARM: pxa: mioa701 convert to the new AC97 bus Date: Fri, 27 May 2016 22:26:58 +0200 [thread overview] Message-ID: <1464380819-19075-7-git-send-email-robert.jarzmik@free.fr> (raw) In-Reply-To: <1464380819-19075-1-git-send-email-robert.jarzmik@free.fr> This migration implies : - wm9713 device is removed, it will be auto-probed - the AC97 bit clock is added as the pxa internally generated 13MHz clock Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> --- arch/arm/mach-pxa/mioa701.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c index 38a96a193dc4..e26bace43147 100644 --- a/arch/arm/mach-pxa/mioa701.c +++ b/arch/arm/mach-pxa/mioa701.c @@ -19,6 +19,7 @@ * */ +#include <linux/clkdev.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/platform_device.h> @@ -682,7 +683,6 @@ MIO_SIMPLE_DEV(mioa701_led, "leds-gpio", &gpio_led_info) MIO_SIMPLE_DEV(pxa2xx_pcm, "pxa2xx-pcm", NULL) MIO_SIMPLE_DEV(mioa701_sound, "mioa701-wm9713", NULL) MIO_SIMPLE_DEV(mioa701_board, "mioa701-board", NULL) -MIO_SIMPLE_DEV(wm9713_acodec, "wm9713-codec", NULL); MIO_SIMPLE_DEV(gpio_vbus, "gpio-vbus", &gpio_vbus_data); MIO_SIMPLE_DEV(mioa701_camera, "soc-camera-pdrv",&iclink); @@ -690,7 +690,6 @@ static struct platform_device *devices[] __initdata = { &mioa701_gpio_keys, &mioa701_backlight, &mioa701_led, - &wm9713_acodec, &pxa2xx_pcm, &mioa701_sound, &power_dev, @@ -742,6 +741,15 @@ static void __init mioa701_machine_init(void) __raw_writel(0x0001c391, MCATT0); __raw_writel(0x0001c391, MCIO0); + rc = clk_add_alias("ac97_clk", "pxa2xx-ac97:0", "AC97CONFCLK", + &pxa_device_ac97.dev); + if (rc) + pr_err("PXA2xx AC97 clock1 alias error: %d\n", rc); + + rc = clk_add_alias("ac97_clk", "pxa2xx-ac97:1", "AC97CONFCLK", + &pxa_device_ac97.dev); + if (rc) + pr_err("PXA2xx AC97 clock2 alias error: %d\n", rc); pxa2xx_mfp_config(ARRAY_AND_SIZE(mioa701_pin_config)); pxa_set_ffuart_info(NULL); -- 2.1.4
next prev parent reply other threads:[~2016-05-27 20:28 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-05-27 20:26 [RFC PATCH v2 0/7] AC97 device/driver model revamp Robert Jarzmik 2016-05-27 20:26 ` Robert Jarzmik 2016-05-27 20:26 ` [RFC PATCH v2 1/7] ALSA: ac97: split out the generic ac97 registers Robert Jarzmik 2016-05-27 20:26 ` Robert Jarzmik 2016-05-27 20:26 ` [RFC PATCH v2 2/7] ALSA: ac97: add an ac97 bus Robert Jarzmik 2016-05-27 20:26 ` Robert Jarzmik 2016-05-27 20:26 ` [RFC PATCH v2 3/7] ASoC: add new ac97 bus support Robert Jarzmik 2016-05-27 20:26 ` Robert Jarzmik 2016-05-27 20:26 ` [RFC PATCH v2 4/7] ASoC: wm9713: add ac97 new " Robert Jarzmik 2016-05-27 20:26 ` Robert Jarzmik 2016-05-27 20:26 ` [RFC PATCH v2 5/7] ASoC: pxa: switch to new ac97 " Robert Jarzmik 2016-05-27 20:26 ` Robert Jarzmik 2016-05-27 20:26 ` Robert Jarzmik 2016-05-27 20:26 ` Robert Jarzmik [this message] 2016-05-27 20:26 ` [RFC PATCH v2 6/7] ARM: pxa: mioa701 convert to the new AC97 bus Robert Jarzmik 2016-05-27 20:26 ` [RFC PATCH v2 7/7] ASoC: mioa701_wm9713: convert to new ac97 bus Robert Jarzmik 2016-05-27 20:26 ` Robert Jarzmik 2016-05-27 20:26 ` Robert Jarzmik 2016-08-23 16:39 ` [RFC PATCH v2 0/7] AC97 device/driver model revamp Robert Jarzmik 2016-08-23 16:39 ` Robert Jarzmik 2016-08-23 16:39 ` Robert Jarzmik 2016-08-24 11:39 ` Mark Brown 2016-08-24 11:39 ` Mark Brown 2016-08-24 11:39 ` Mark Brown 2016-08-29 7:49 ` Robert Jarzmik 2016-08-29 7:49 ` Robert Jarzmik
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=1464380819-19075-7-git-send-email-robert.jarzmik@free.fr \ --to=robert.jarzmik@free.fr \ --cc=alsa-devel@alsa-project.org \ --cc=broonie@kernel.org \ --cc=daniel@zonque.org \ --cc=haojian.zhuang@gmail.com \ --cc=lgirdwood@gmail.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=patches@opensource.wolfsonmicro.com \ --cc=perex@perex.cz \ --cc=tiwai@suse.com \ /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: linkBe 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.