* [PATCH] ARM: SMDK6410: Register AC97 controller
@ 2010-03-25 11:52 Mark Brown
2010-03-31 1:01 ` Ben Dooks
0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2010-03-25 11:52 UTC (permalink / raw)
To: linux-arm-kernel
The SMDK6410 has a WM9713 connected to the AC97 interface, by default
on the GPD pins though this can be changed with a switch on the board.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
arch/arm/mach-s3c64xx/mach-smdk6410.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c
index 2d5afd2..6878fbd 100644
--- a/arch/arm/mach-s3c64xx/mach-smdk6410.c
+++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c
@@ -64,6 +64,7 @@
#include <plat/clock.h>
#include <plat/devs.h>
#include <plat/cpu.h>
+#include <plat/audio.h>
#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
@@ -254,6 +255,7 @@ static struct platform_device *smdk6410_devices[] __initdata = {
&s3c_device_fb,
&s3c_device_ohci,
&s3c_device_usb_hsotg,
+ &s3c64xx_device_ac97,
&s3c64xx_device_iisv4,
#ifdef CONFIG_REGULATOR
@@ -652,6 +654,9 @@ static void __init smdk6410_machine_init(void)
i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0));
i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1));
+ /* Board defualt with CFG2.1 off */
+ s3c64xx_ac97_setup_gpio(S3C64XX_AC97_GPD);
+
platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices));
}
--
1.7.0.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] ARM: SMDK6410: Register AC97 controller
2010-03-25 11:52 [PATCH] ARM: SMDK6410: Register AC97 controller Mark Brown
@ 2010-03-31 1:01 ` Ben Dooks
2010-03-31 8:59 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Ben Dooks @ 2010-03-31 1:01 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Mar 25, 2010 at 11:52:48AM +0000, Mark Brown wrote:
> The SMDK6410 has a WM9713 connected to the AC97 interface, by default
> on the GPD pins though this can be changed with a switch on the board.
Hmm, I really don't like the fact that we've no good way of finding
out what the switch positions are...
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> arch/arm/mach-s3c64xx/mach-smdk6410.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c
> index 2d5afd2..6878fbd 100644
> --- a/arch/arm/mach-s3c64xx/mach-smdk6410.c
> +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c
> @@ -64,6 +64,7 @@
> #include <plat/clock.h>
> #include <plat/devs.h>
> #include <plat/cpu.h>
> +#include <plat/audio.h>
>
> #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
> #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
> @@ -254,6 +255,7 @@ static struct platform_device *smdk6410_devices[] __initdata = {
> &s3c_device_fb,
> &s3c_device_ohci,
> &s3c_device_usb_hsotg,
> + &s3c64xx_device_ac97,
> &s3c64xx_device_iisv4,
>
> #ifdef CONFIG_REGULATOR
> @@ -652,6 +654,9 @@ static void __init smdk6410_machine_init(void)
> i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0));
> i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1));
>
> + /* Board defualt with CFG2.1 off */
> + s3c64xx_ac97_setup_gpio(S3C64XX_AC97_GPD);
> +
> platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices));
> }
>
> --
> 1.7.0.2
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
--
Ben
Q: What's a light-year?
A: One-third less calories than a regular year.
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH] ARM: SMDK6410: Register AC97 controller
2010-03-31 1:01 ` Ben Dooks
@ 2010-03-31 8:59 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2010-03-31 8:59 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Mar 31, 2010 at 02:01:59AM +0100, Ben Dooks wrote:
> On Thu, Mar 25, 2010 at 11:52:48AM +0000, Mark Brown wrote:
> > The SMDK6410 has a WM9713 connected to the AC97 interface, by default
> > on the GPD pins though this can be changed with a switch on the board.
> Hmm, I really don't like the fact that we've no good way of finding
> out what the switch positions are...
Not much we can do about the existing hardware, sadly. There's a bunch
of other similar switches on the board (like the one that selects
between the two ethernet controllers) as well.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: SMDK6410: Register AC97 controller
@ 2010-04-30 13:05 Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2010-04-30 13:05 UTC (permalink / raw)
To: linux-arm-kernel
The SMDK6410 has a WM9713 connected to the AC97 interface, by default
on the GPD pins though this can be changed with a switch on the board.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
arch/arm/mach-s3c64xx/mach-smdk6410.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c
index 2d5afd2..6878fbd 100644
--- a/arch/arm/mach-s3c64xx/mach-smdk6410.c
+++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c
@@ -64,6 +64,7 @@
#include <plat/clock.h>
#include <plat/devs.h>
#include <plat/cpu.h>
+#include <plat/audio.h>
#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
@@ -254,6 +255,7 @@ static struct platform_device *smdk6410_devices[] __initdata = {
&s3c_device_fb,
&s3c_device_ohci,
&s3c_device_usb_hsotg,
+ &s3c64xx_device_ac97,
&s3c64xx_device_iisv4,
#ifdef CONFIG_REGULATOR
@@ -652,6 +654,9 @@ static void __init smdk6410_machine_init(void)
i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0));
i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1));
+ /* Board defualt with CFG2.1 off */
+ s3c64xx_ac97_setup_gpio(S3C64XX_AC97_GPD);
+
platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices));
}
--
1.7.0.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-30 13:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25 11:52 [PATCH] ARM: SMDK6410: Register AC97 controller Mark Brown
2010-03-31 1:01 ` Ben Dooks
2010-03-31 8:59 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2010-04-30 13:05 Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).