audio: A113 revA and revB compatible function
authorPeipeng Zhao <peipeng.zhao@amlogic.com>
Thu, 13 Jul 2017 07:02:41 +0000 (15:02 +0800)
committerPeipeng Zhao <peipeng.zhao@amlogic.com>
Thu, 13 Jul 2017 07:02:53 +0000 (15:02 +0800)
PD#147527: A113 chip revA and revB is compatible for audio

Change-Id: I4a10551900f291d4fa92aeff05d7985e876192ab
Signed-off-by: Peipeng Zhao <peipeng.zhao@amlogic.com>
sound/soc/amlogic/auge/tdm.c

index 0e0886d..c6b5141 100644 (file)
@@ -32,6 +32,7 @@
 #include <sound/pcm_params.h>
 
 #include <linux/amlogic/clk_measure.h>
+#include <linux/amlogic/cpu_version.h>
 
 #include "ddr_mngr.h"
 #include "tdm_hw.h"
@@ -946,7 +947,8 @@ static int aml_tdm_platform_probe(struct platform_device *pdev)
        }
 
        /* complete mclk for tdm */
-       meson_clk_measure((1<<16) | 0x67);
+       if (get_meson_cpu_version(MESON_CPU_VERSION_LVL_MINOR) == 0xa)
+               meson_clk_measure((1<<16) | 0x67);
 
        /* parse DTS configured ddr */
        ret = of_property_read_u32(node, "tdm_from_ddr",