Hi everyone,
I am working on EVM AM1808 board with kernel 03.22..00.02.
When I enable the pwm support in kernel configuration I have the pwm functionality on ECAP2_APWM2 pin. This is why I have the following code in board-da850-evm.c
if (HAS_ECAP_PWM) {
ret = davinci_cfg_reg(DA850_ECAP2_APWM2);
if (ret)
pr_warning("da850_evm_init:ecap mux failed:"
" %d\n", ret);
ret = da850_register_ecap(2);
if (ret)
pr_warning("da850_evm_init:"
" eCAP registration failed: %d\n", ret);
}
What I don't know is where to find the link between the pwm driver (drivers/pwm/pwm.c) and the ecap driver (drivers/pwm/ecap.c).
Thank you