From: broonie@opensource.wolfsonmicro.com (Mark Brown) Date: Fri, 30 Apr 2010 14:05:12 +0100 Subject: [PATCH] ARM: SMDK6410: Register AC97 controller Message-ID: <1272632712-24935-1-git-send-email-broonie@opensource.wolfsonmicro.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 --- 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 #include #include +#include #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