• Home
  • Raw
  • Download

Lines Matching refs:trim_regs

626 	u8 trim_regs[TWL6030_GPADC_NUM_TRIM_REGS];  in twl6030_calibration()  local
636 ret = twl_i2c_read(TWL6030_MODULE_ID2, trim_regs, in twl6030_calibration()
647 d1 = trim_regs[0]; in twl6030_calibration()
648 d2 = trim_regs[1]; in twl6030_calibration()
655 d1 = trim_regs[4]; in twl6030_calibration()
656 d2 = trim_regs[5]; in twl6030_calibration()
659 d1 = trim_regs[12]; in twl6030_calibration()
660 d2 = trim_regs[13]; in twl6030_calibration()
663 d1 = trim_regs[6]; in twl6030_calibration()
664 d2 = trim_regs[7]; in twl6030_calibration()
667 d1 = trim_regs[2]; in twl6030_calibration()
668 d2 = trim_regs[3]; in twl6030_calibration()
671 d1 = trim_regs[8]; in twl6030_calibration()
672 d2 = trim_regs[9]; in twl6030_calibration()
675 d1 = trim_regs[10]; in twl6030_calibration()
676 d2 = trim_regs[11]; in twl6030_calibration()
679 d1 = trim_regs[14]; in twl6030_calibration()
680 d2 = trim_regs[15]; in twl6030_calibration()
695 static int twl6032_get_trim_value(u8 *trim_regs, unsigned int reg0, in twl6032_get_trim_value() argument
701 val = (trim_regs[reg0] & mask0) << shift0; in twl6032_get_trim_value()
702 val |= (trim_regs[reg1] & mask1) >> 1; in twl6032_get_trim_value()
703 if (trim_regs[reg1] & 0x01) in twl6032_get_trim_value()
712 u8 trim_regs[TWL6030_GPADC_NUM_TRIM_REGS]; in twl6032_calibration() local
715 ret = twl_i2c_read(TWL6030_MODULE_ID2, trim_regs, in twl6032_calibration()
740 d1 = twl6032_get_trim_value(trim_regs, 2, 0, 0x1f, in twl6032_calibration()
742 d2 = twl6032_get_trim_value(trim_regs, 3, 1, 0x3f, in twl6032_calibration()
746 temp = twl6032_get_trim_value(trim_regs, 2, 0, 0x1f, in twl6032_calibration()
748 d1 = temp + twl6032_get_trim_value(trim_regs, 7, 6, in twl6032_calibration()
751 temp = twl6032_get_trim_value(trim_regs, 3, 1, 0x3F, in twl6032_calibration()
753 d2 = temp + twl6032_get_trim_value(trim_regs, 9, 7, in twl6032_calibration()
757 temp = twl6032_get_trim_value(trim_regs, 2, 0, 0x1f, in twl6032_calibration()
759 d1 = temp + twl6032_get_trim_value(trim_regs, 13, 11, in twl6032_calibration()
762 temp = twl6032_get_trim_value(trim_regs, 3, 1, 0x3f, in twl6032_calibration()
764 d2 = temp + twl6032_get_trim_value(trim_regs, 15, 13, in twl6032_calibration()
768 d1 = twl6032_get_trim_value(trim_regs, 10, 8, 0x0f, in twl6032_calibration()
770 d2 = twl6032_get_trim_value(trim_regs, 14, 12, 0x0f, in twl6032_calibration()
775 temp = twl6032_get_trim_value(trim_regs, 2, 0, 0x1f, in twl6032_calibration()
778 d1 = (trim_regs[4] & 0x7E) >> 1; in twl6032_calibration()
779 if (trim_regs[4] & 0x01) in twl6032_calibration()
783 temp = twl6032_get_trim_value(trim_regs, 3, 1, 0x3f, in twl6032_calibration()
786 d2 = (trim_regs[5] & 0xFE) >> 1; in twl6032_calibration()
787 if (trim_regs[5] & 0x01) in twl6032_calibration()