aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahesh Mahadevan <r9aadq@freescale.com>2011-11-21 13:13:16 -0600
committerEric Miao <eric.miao@linaro.org>2011-12-01 11:36:49 +0800
commit5a37c561c838c7d16fc64269a063f1258c2ca87c (patch)
treeafb137798c209f63c51bf3a21d673974ca7f6360
parent356112570149eabc460c3309d6d0a30e3f1f0d2b (diff)
downloadlinux-linaro-5a37c561c838c7d16fc64269a063f1258c2ca87c.tar.gz
ENGR00162478 MX6 Sabre-lite, add ASRC support
Add support for ASRC driver in MX6 sabre-lite Signed-off-by: Mahesh Mahadevan <r9aadq@freescale.com> (cherry picked from commit 6fc9c1edb695b2743464efe4375f9ab659a9f6fc)
-rwxr-xr-xarch/arm/mach-mx6/board-mx6q_sabrelite.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabrelite.c b/arch/arm/mach-mx6/board-mx6q_sabrelite.c
index aa7be0b3d2a..994426e43af 100755
--- a/arch/arm/mach-mx6/board-mx6q_sabrelite.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabrelite.c
@@ -580,10 +580,16 @@ static void __init imx6q_sabrelite_init_usb(void)
mx6_usb_dr_init();
mx6_usb_h1_init();
}
+
static struct viv_gpu_platform_data imx6q_gpu_pdata __initdata = {
.reserved_mem_size = SZ_128M,
};
+static struct imx_asrc_platform_data imx_asrc_data = {
+ .channel_bits = 4,
+ .clk_map_ver = 2,
+};
+
static struct ipuv3_fb_platform_data sabrelite_fb_data[] = {
{ /*fb0*/
.disp_dev = "ldb",
@@ -897,6 +903,10 @@ static void __init mx6_sabrelite_board_init(void)
imx6q_add_vpu();
imx6q_init_audio();
platform_device_register(&sabrelite_vmmc_reg_devices);
+ imx_asrc_data.asrc_core_clk = clk_get(NULL, "asrc_clk");
+ imx_asrc_data.asrc_audio_clk = clk_get(NULL, "asrc_serial_clk");
+ imx6q_add_asrc(&imx_asrc_data);
+
/* release USB Hub reset */
gpio_set_value(MX6Q_SABRELITE_USB_HUB_RESET, 1);