Home
last modified time | relevance | path

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

/optee_os/core/drivers/clk/sam/
H A Dat91_main.c47 uint32_t mor = io_read32(osc->base + AT91_CKGR_MOR); in pmc_main_rc_osc_enable() local
50 if (!(mor & AT91_PMC_MOSCRCEN)) { in pmc_main_rc_osc_enable()
65 uint32_t mor = io_read32(osc->base + AT91_CKGR_MOR); in pmc_main_rc_osc_disable() local
67 if (!(mor & AT91_PMC_MOSCRCEN)) in pmc_main_rc_osc_disable()
131 uint32_t mor = io_read32(pmc->base + AT91_CKGR_MOR); in pmc_main_osc_enable() local
133 mor &= ~MOR_KEY_MASK; in pmc_main_osc_enable()
135 if (mor & AT91_PMC_OSCBYPASS) in pmc_main_osc_enable()
138 if (!(mor & AT91_PMC_MOSCEN)) { in pmc_main_osc_enable()
139 mor |= AT91_PMC_MOSCEN | AT91_PMC_KEY; in pmc_main_osc_enable()
140 io_write32(pmc->base + AT91_CKGR_MOR, mor); in pmc_main_osc_enable()
[all …]
H A Dat91_pmc.c136 uint32_t mor; member
198 pmc_cache.mor = io_read32(pmc_base + AT91_CKGR_MOR); in pmc_suspend()
245 io_write32(pmc_base + AT91_CKGR_MOR, pmc_cache.mor); in pmc_resume()