Commit 492e2bf1 authored by apatard@mandriva.com's avatar apatard@mandriva.com Committed by Mark Brown

openrd-client: initialise audio

This patch is reponsible for enabling audio on the openrd client board
Signed-off-by: default avatarArnaud Patard <apatard@mandriva.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 49106c72
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
#include <linux/ata_platform.h> #include <linux/ata_platform.h>
#include <linux/mv643xx_eth.h> #include <linux/mv643xx_eth.h>
#include <linux/i2c.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/kirkwood.h> #include <mach/kirkwood.h>
...@@ -60,6 +61,12 @@ static unsigned int openrd_mpp_config[] __initdata = { ...@@ -60,6 +61,12 @@ static unsigned int openrd_mpp_config[] __initdata = {
0 0
}; };
static struct i2c_board_info i2c_board_info[] __initdata = {
{
I2C_BOARD_INFO("cs42l51", 0x4a),
},
};
static void __init openrd_init(void) static void __init openrd_init(void)
{ {
/* /*
...@@ -80,6 +87,12 @@ static void __init openrd_init(void) ...@@ -80,6 +87,12 @@ static void __init openrd_init(void)
kirkwood_sdio_init(&openrd_mvsdio_data); kirkwood_sdio_init(&openrd_mvsdio_data);
kirkwood_i2c_init(); kirkwood_i2c_init();
if (machine_is_openrd_client()) {
i2c_register_board_info(0, i2c_board_info,
ARRAY_SIZE(i2c_board_info));
kirkwood_audio_init();
}
} }
static int __init openrd_pci_init(void) static int __init openrd_pci_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment