Hi All,
I am using dmtimer in my code. Code looks like this:
{
static struct omap_dm_timer *gpt;
void * __iomem gpt10_counter_reg;
unsigned long gpt_phys_base;
omap_dm_timer_init();
gpt = omap_dm_timer_request();
if (!gpt) {
pr_err("Could not get the gptimer\n");
return -1;
}
omap_dm_timer_set_source(gpt, OMAP_TIMER_SRC_SYS_CLK);
gpt_phys_base = gpt->phys_base;
gpt10_counter_reg =
OMAP2_L4_IO_ADDRESS(gpt_phys_base +
OMAP_TIMER_COUNTER_OFFSET);
gt_rate = clk_get_rate(omap_dm_timer_get_fclk(gpt));
omap_dm_timer_set_load_start(gpt, 0, 0);
.
.
.
}
I am not able to reference *gpt as the file does not know about struct
omap_dm_timer. I have included plat/dmtimer.h.
Why doesn't the dmtimer struct definition appear in plat/dmtimer.h ?
Is there any reason for this?
-
Thanks and Best Regards
Pramod Gurav
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html