Searched refs:CLKSRC (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/arch/arm/mach-spear/ |
H A D | time.c | 33 #define CLKSRC 1 /* gpt0, channel1 as clocksource */ macro 75 writew(CTRL_PRESCALER256, gpt_base + CR(CLKSRC)); in spear_clocksource_init() 81 writew(0xFFFF, gpt_base + LOAD(CLKSRC)); in spear_clocksource_init() 83 val = readw(gpt_base + CR(CLKSRC)); in spear_clocksource_init() 86 writew(val, gpt_base + CR(CLKSRC)); in spear_clocksource_init() 89 clocksource_mmio_init(gpt_base + COUNT(CLKSRC), "tmr1", tick_rate, in spear_clocksource_init()
|
/openbmc/qemu/hw/timer/ |
H A D | avr_timer16.c | 97 #define CLKSRC(t16) (t16->crb & T16_CRB_CS) macro 143 switch (CLKSRC(t16)) { in avr_timer16_clksrc_update() 179 if (CLKSRC(t16) == T16_CLKSRC_EXT_FALLING || in avr_timer16_set_alarm() 180 CLKSRC(t16) == T16_CLKSRC_EXT_RISING || in avr_timer16_set_alarm() 181 CLKSRC(t16) == T16_CLKSRC_STOPPED) { in avr_timer16_set_alarm() 249 if (CLKSRC(t16) == T16_CLKSRC_EXT_FALLING || in avr_timer16_interrupt() 250 CLKSRC(t16) == T16_CLKSRC_EXT_RISING || in avr_timer16_interrupt() 251 CLKSRC(t16) == T16_CLKSRC_STOPPED) { in avr_timer16_interrupt() 381 uint8_t prev_clk_src = CLKSRC(t16); in avr_timer16_write() 404 if (CLKSRC(t16) != prev_clk_src) { in avr_timer16_write()
|
/openbmc/linux/drivers/mmc/host/ |
H A D | dw_mmc.c | 1254 mci_writel(host, CLKSRC, 0); in dw_mci_setup_bus() 3431 mci_writel(host, CLKSRC, 0); in dw_mci_probe() 3506 mci_writel(host, CLKSRC, 0); in dw_mci_remove()
|