/* This function is used to set threshold per touch sensor.  */
int tls_touchsensor_threshold_config(u32 sensorno, u8 threshold)
/* This function is used to set threshold per touch sensor.  */
int tls_touchsensor_threshold_config(u32 sensorno, u8 threshold)
{
	u32 regvalue = 0;
	if((sensorno == 0) || (sensorno > 15))
	{
		return -1;
	}
	if (threshold > 0x7F)
	{
		return -2;
	}
	regvalue = tls_reg_read32(HR_TC_CONFIG+sensorno*4);
	regvalue &= ~(0x7F);
	regvalue |= threshold;
	tls_reg_write32(HR_TC_CONFIG + sensorno*4, regvalue);
	return 0;
}