Home
last modified time | relevance | path

Searched refs:pit_cycle (Results 1 – 1 of 1) sorted by relevance

/arch/arm/mach-at91/
Dat91sam926x_time.c29 static u32 pit_cycle; /* write-once */ variable
58 elapsed += PIT_PICNT(t) * pit_cycle; in read_pit_clk()
80 pit_cnt += pit_cycle * PIT_PICNT(pit_read(AT91_PIT_PIVR)); in pit_clkevt_mode()
81 pit_write(AT91_PIT_MR, (pit_cycle - 1) | AT91_PIT_PITEN in pit_clkevt_mode()
90 pit_write(AT91_PIT_MR, (pit_cycle - 1) | AT91_PIT_PITEN); in pit_clkevt_mode()
125 pit_cnt += pit_cycle; in at91sam926x_pit_interrupt()
153 pit_write(AT91_PIT_MR, (pit_cycle - 1) | AT91_PIT_PITEN); in at91sam926x_pit_reset()
218 pit_cycle = (pit_rate + HZ/2) / HZ; in at91sam926x_pit_init()
219 WARN_ON(((pit_cycle - 1) & ~AT91_PIT_PIV) != 0); in at91sam926x_pit_init()
228 bits = 12 /* PICNT */ + ilog2(pit_cycle) /* PIV */; in at91sam926x_pit_init()