From: Nicolin Chen Date: Thu, 10 Apr 2014 15:26:15 +0000 (+0800) Subject: ASoC: fsl_sai: Add clock controls for SAI X-Git-Tag: omap-for-v3.16/fixes-against-rc1~21^2~52^2~4^5~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca3e35c7a37cb59b12a1839d03c621cf8fa9a3d9;p=pandora-kernel.git ASoC: fsl_sai: Add clock controls for SAI The SAI mainly has the following clocks: bus clock control and configure registers and to generate synchronous interrupts and DMA requests. mclk1, mclk2, mclk3 to generate the bit clock when the receiver or transmitter is configured for an internally generated bit clock. So this patch adds these clocks and their clock controls to the driver. [ To concern the old DTB cases, I've added a bit of extra code to make the driver compatible with them. And by marking clock NULL if failed to get, the clk_prepare() or clk_get_rate() would easily return 0 so no further path should be broken. -- by Nicolin ] Signed-off-by: Nicolin Chen Acked-by: Xiubo Li Signed-off-by: Mark Brown --- Reading git-diff-tree failed