I just want to use OMAP4460 Timer 11 as a pwm output on pandaboard . But , I can 't request it . could someone help . please !
When I used the method below , It just faild .
setpwm(void)
{
struct omap_dm_timer *dm_timer_pdev ;
dm_timer_pdev = omap_dm_timer_request_specific( 11 );
.....
}
I put the setpwm() function to the board-omap4panada.c board init function omap4_panda_init(void) ;
the omap_dm_timer_request_specific always return NULL ,
Is there something else has to be done before I use the function omap_dm_timer_request_specific( 11 ) ?
thank you !
Haohong,
Is the pin muxing set up correctly in the hardware and software, for use of the GP Timer 11? See chapter 22.2 in the OMAP4460 TRM for more information about the GP Timers. (The TRM is publicly available here: http://www.ti.com/general/docs/wtbu/wtbudocumentcenter.tsp?templateId=6123&navigationId=12037#65) The pin muxing should be set in board-omap4panda.c, in static struct omap_board_mux board_mux[] __initdata. The pin muxing options are shown in /arch/arm/mach-omap2/mux44xx.c, as well as in the OMAP4 data manual.
Regards,Gina
Please click the Verify Answer button on this post if it answers your question
_______________________________________________________
Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
GPTIMER11 is in use already so the request is returning NULL. It is used as the WDT for the APPM3 on Ducati side. GPTIMER 3,4, 9 and 11 are in use so if possible use some other timer for the same purpose.
Regards,
Chintan
------------------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.------------------------------------------------------------------------------------------------------------------
Thank you Gina , I will try your method . Thank you very much !
Thank you Chintan , I try Timer8 to 11 , every timer returns NULL . Thank you very much !