summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx6/board-mx6q_sabreauto.c
diff options
context:
space:
mode:
authorDong Aisheng <b29396@freescale.com>2011-07-26 21:54:49 +0800
committerDong Aisheng <b29396@freescale.com>2011-07-27 15:05:18 +0800
commit0eec0f39da3bd8afbc556553e24a2a3ca287c0d3 (patch)
treedead08234fd0f18990b32f92868b224fc26549bd /arch/arm/mach-mx6/board-mx6q_sabreauto.c
parentbb2c6f8f0dc1fedd7661668b5aec7ef62ffb3882 (diff)
ENGR00153740-5 mx6: add asrc support
Add asrc support for mx6. Signed-off-by: Dong Aisheng <b29396@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6/board-mx6q_sabreauto.c')
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabreauto.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.c b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
index 043623fd89b5..b78b7dd08639 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabreauto.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
@@ -60,6 +60,7 @@
#include <mach/ahci_sata.h>
#include <mach/ipu-v3.h>
#include <mach/mxc_hdmi.h>
+#include <mach/mxc_asrc.h>
#include <linux/gpio.h>
#include <linux/etherdevice.h>
@@ -529,6 +530,11 @@ static struct ahci_platform_data mx6q_sabreauto_sata_data = {
.exit = mx6q_sabreauto_sata_exit,
};
+static struct imx_asrc_platform_data imx_asrc_data = {
+ .channel_bits = 4,
+ .clk_map_ver = 2,
+};
+
static struct ipuv3_fb_platform_data sabr_fb_data[] = {
{ /*fb0*/
.disp_dev = "lcd",
@@ -666,6 +672,10 @@ static void __init mx6_board_init(void)
imx6q_add_vpu();
imx6q_init_audio();
+ imx_asrc_data.asrc_core_clk = clk_get(NULL, "asrc_clk");
+ imx_asrc_data.asrc_audio_clk = clk_get(NULL, "mxc_alsa_spdif.1");
+ imx6q_add_asrc(&imx_asrc_data);
+
/* DISP0 Detect */
gpio_request(MX6Q_SABREAUTO_DISP0_DET_INT, "disp0-detect");
gpio_direction_input(MX6Q_SABREAUTO_DISP0_DET_INT);