Commit 5323b511 authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Fix output B

parent e96335d9
......@@ -103,6 +103,21 @@ static void set_freq(struct controller_block *pwm)
AM335X_PWMSS_EPWM_AQCTLA_PRD_CLR;
}
am335x_write16(base, AM335X_PWMSS_REG_EPWM_AQCTLA, aqctl);
if (priv->sym) {
aqctl =
AM335X_PWMSS_EPWM_AQCTLA_CAD_NOP |
AM335X_PWMSS_EPWM_AQCTLA_CAU_NOP |
AM335X_PWMSS_EPWM_AQCTLA_CBD_SET |
AM335X_PWMSS_EPWM_AQCTLA_CBU_CLR |
AM335X_PWMSS_EPWM_AQCTLA_PRD_NOP;
} else {
aqctl =
AM335X_PWMSS_EPWM_AQCTLA_CAD_NOP |
AM335X_PWMSS_EPWM_AQCTLA_CAU_NOP |
AM335X_PWMSS_EPWM_AQCTLA_CBD_SET |
AM335X_PWMSS_EPWM_AQCTLA_CBU_CLR |
AM335X_PWMSS_EPWM_AQCTLA_PRD_CLR;
}
am335x_write16(base, AM335X_PWMSS_REG_EPWM_AQCTLB, aqctl);
am335x_write16(base, AM335X_PWMSS_REG_EPWM_AQSFRC, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment