Lines Matching full:trim
35 #define TRIM 0x3c macro
203 u32 trim[4] = { 0 }; in imx8mm_tmu_probe_set_calib_v2() local
217 memcpy(trim, buf, min(len, sizeof(trim))); in imx8mm_tmu_probe_set_calib_v2()
227 if (!trim[0] && !trim[1] && !trim[2] && !trim[3]) { in imx8mm_tmu_probe_set_calib_v2()
237 FIELD_GET(TRIM2_BUF_VERF_SEL_MASK, trim[0])) | in imx8mm_tmu_probe_set_calib_v2()
239 FIELD_GET(TRIM2_BUF_SLOP_SEL_MASK, trim[0])), in imx8mm_tmu_probe_set_calib_v2()
243 FIELD_GET(TRIM2_BJT_CUR_MASK, trim[0])) | in imx8mm_tmu_probe_set_calib_v2()
244 FIELD_PREP(TRIM_BGR_MASK, FIELD_GET(TRIM2_BGR_MASK, trim[0])) | in imx8mm_tmu_probe_set_calib_v2()
245 FIELD_PREP(TRIM_VLSB_MASK, FIELD_GET(TRIM2_VLSB_MASK, trim[0])) | in imx8mm_tmu_probe_set_calib_v2()
247 tmu->base + TRIM); in imx8mm_tmu_probe_set_calib_v2()
250 FIELD_GET(TRIM3_TCA25_0_LSB_MASK, trim[1]) | in imx8mm_tmu_probe_set_calib_v2()
251 (FIELD_GET(TRIM4_TCA25_0_MSB_MASK, trim[2]) << 4)) | in imx8mm_tmu_probe_set_calib_v2()
253 FIELD_GET(TRIM4_TCA105_0_MASK, trim[2])), in imx8mm_tmu_probe_set_calib_v2()
257 FIELD_GET(TRIM5_TCA25_1_MASK, trim[3])) | in imx8mm_tmu_probe_set_calib_v2()
259 FIELD_GET(TRIM5_TCA105_1_MASK, trim[3])), in imx8mm_tmu_probe_set_calib_v2()
263 FIELD_GET(TRIM3_TCA40_0_MASK, trim[1])) | in imx8mm_tmu_probe_set_calib_v2()
265 FIELD_GET(TRIM4_TCA40_1_MASK, trim[2])), in imx8mm_tmu_probe_set_calib_v2()