Hello,
my kernel version is 3.0.21 . I want use ABE_DMIC_DIN2/SLIMBUS2_CLOCK/ABE_MCASP_AXR/GPIO_121/DMTIMER11_PWM_EVT for pwm function . Please tell me how to enable it for pwm .Thanks.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
my kernel version is 3.0.21 . I want use ABE_DMIC_DIN2/SLIMBUS2_CLOCK/ABE_MCASP_AXR/GPIO_121/DMTIMER11_PWM_EVT for pwm function . Please tell me how to enable it for pwm .Thanks.
Hello Jason,
Could you provide us more information about your Hardware platform?
From the explanations in your post you want to use DMTIMER11_PWM_EVT - to generate PWM signal.
Please follow the recommendations in this thread: http://e2e.ti.com/support/omap/f/849/t/169373.aspx
I also suggest you to see:
File with OMAP timers definitions in arch/arm/mach-omap2/timer.c
See the function in arch/arm/plat-omap/dmtimer.c
int omap_dm_timer_set_pwm(struct omap_dm_timer *timer, int def_on,
int toggle, int trigger)
{
u32 l;
if (unlikely(!timer))
return -EINVAL;
omap_dm_timer_enable(timer);
l = omap_dm_timer_read_reg(timer, OMAP_TIMER_CTRL_REG);
l &= ~(OMAP_TIMER_CTRL_GPOCFG | OMAP_TIMER_CTRL_SCPWM |
OMAP_TIMER_CTRL_PT | (0x03 << 10));
if (def_on)
l |= OMAP_TIMER_CTRL_SCPWM;
if (toggle)
l |= OMAP_TIMER_CTRL_PT;
l |= trigger << 10;
omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, l);
/* Save the context */
timer->context.tclr = l;
omap_dm_timer_disable(timer);
return 0;
}
See Table 23-19. GP Timer PWM Mode Configuration in OMAP4 TRM.
For more information see in this patch: http://www.spinics.net/lists/linux-omap/msg83922.html
Best regards,
Yanko
Hi,Yanko
our hardware platform is omap4460,and software version is android 4AI.1.4.I cant't open http://www.spinics.net/lists/linux-omap/msg83922.html.Could you check it why and in this platform is there an example for using GP Timer PWM? Thanks.
Hello Jason,
http://www.spinics.net/lists/linux-omap/msg83922.html
http://e2e.ti.com/support/omap/f/849/t/206193.aspx
http://e2e.ti.com/support/omap/f/849/t/226775.aspx
See the pwm driver hire - https://github.com/JustinGriggs/Pandaboard-PWM/blob/master/pwm.c~
Best regards,
Yanko