Platform: dm368 + IPNC_RDK_DM36x_Release_3.0.0 + LSP_ipnc_dm36x_3.0.0 (DVSDK3.0)
Problem: Fail to use pwm0, pwm2
Description: I want to use 2 PWM module , pwm0 using GIO23, pwm2 using GIO89. I know i should use the pinmux function to enable PWM0_GIO23 as pwm0 output, PWM2_GIO89 as pwm2 output. I also want the PWM driver to use. but I don't know which file I should modify to config the PWM0_GIO23 and PWM2_GIO89 as pwm output. I enable the davinci-pwm driver in kernel as Modules, and i copy it to the target board directory /opt/ipnc/modules/davinci_pwm.ko . and when I run insmod davinci_pwm.ko, it prints
" [137.150000] Mux: initialized PWM0
[........] Mux: initialized PWM1
[........] Mux: pin PWM2_GIO87 already used for GPIO87
[........] Mux: initialized PWM3_G80
[........] Mux: initialized PWM3_G81
[........] Mux: initialized PWM3_G85
[........] Mux: initialized PWM3_G86
And now I want to know, if i only want to config the GIO23, GIO89 as PWM0,PWM2 output, what should I do ?
which file I should modify for configing the pinmux ?
Is it proper if I modify the application file to use the pinmux ? or the kernel file is better ?
Thanks in advanced!