/* This function is used to set output enable.  */
int tls_pwm_output_en_cmd(u8 channel, bool en)
/* This function is used to set output enable.  */
int tls_pwm_output_en_cmd(u8 channel, bool en)
{
    if(channel != 0 && channel != 4)
		return WM_FAILED;
    if (4 == channel)
    {
        if (ENABLE == en)
            tls_reg_write32(HR_PWM_CAP2CTL, tls_reg_read32(HR_PWM_CAP2CTL) &   (~BIT(2)));
        else
            tls_reg_write32(HR_PWM_CAP2CTL, tls_reg_read32(HR_PWM_CAP2CTL) |   BIT(2));
    }
    else
    {
        if (ENABLE == en)
            tls_reg_write32(HR_PWM_CTL, tls_reg_read32(HR_PWM_CTL) &   (~BIT(12)));
        else
            tls_reg_write32(HR_PWM_CTL, tls_reg_read32(HR_PWM_CTL) |   BIT(12));
    }
    return WM_SUCCESS;
}