summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAdrian Alonso <aalonso@freescale.com>2012-02-13 14:15:00 -0600
committerAdrian Alonso <aalonso@freescale.com>2012-02-14 14:06:31 -0600
commitf74147e87e47ee2ab8c645513c4a7e147b7708da (patch)
tree1deed93992d38d4fc4468cee04cc4790d7a80531 /arch
parent65f5835c780294d2fa34e368fd0caf0cc424159f (diff)
ENGR00174381 imx6q-sabreauto: spdif remove tx clock settings
* Sabreauto platform only supports spdif in (Rx) Remove unused Tx clock settings Signed-off-by: Adrian Alonso <aalonso@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabreauto.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.c b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
index 081b1e93a24e..8b582d566539 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabreauto.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
@@ -1349,31 +1349,10 @@ static inline void __init mx6q_csi0_io_init(void)
mxc_iomux_set_gpr_register(1, 19, 1, 1);
}
-static int spdif_clk_set_rate(struct clk *clk, unsigned long rate)
-{
- unsigned long rate_actual;
- rate_actual = clk_round_rate(clk, rate);
- clk_set_rate(clk, rate_actual);
- return 0;
-}
-
static struct mxc_spdif_platform_data mxc_spdif_data = {
.spdif_tx = 0, /* disable tx */
.spdif_rx = 1, /* enable rx */
- /*
- * spdif0_clk will be 454.7MHz divided by ccm dividers.
- *
- * 44.1KHz: 454.7MHz / 7 (ccm) / 23 (spdif) = 44,128 Hz ~ 0.06% error
- * 48KHz: 454.7MHz / 4 (ccm) / 37 (spdif) = 48,004 Hz ~ 0.01% error
- * 32KHz: 454.7MHz / 6 (ccm) / 37 (spdif) = 32,003 Hz ~ 0.01% error
- */
- .spdif_clk_44100 = 1, /* tx clk from spdif0_clk_root */
- .spdif_clk_48000 = 1, /* tx clk from spdif0_clk_root */
- .spdif_div_44100 = 23,
- .spdif_div_48000 = 37,
- .spdif_div_32000 = 37,
.spdif_rx_clk = 0, /* rx clk from spdif stream */
- .spdif_clk_set_rate = spdif_clk_set_rate,
.spdif_clk = NULL, /* spdif bus clk */
};