Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/drivers/pm/sam/
A Dpm_suspend.S21 pmc .req r0 label
30 1: ldr tmp1, [pmc, #AT91_PMC_SR]
39 1: ldr tmp1, [pmc, #AT91_PMC_SR]
48 1: ldr tmp1, [pmc, #AT91_PMC_SR]
59 str tmp1, [pmc, #AT91_PMC_SCDR]
130 ldr pmc, .pmc_base
149 ldr pmc, .pmc_base
169 ldr pmc, .pmc_base
255 ldr pmc, .pmc_base
396 ldr pmc, .pmc_base
[all …]
A Dat91_pm.c121 static int at91_sama5d2_config_pmc_ws(vaddr_t pmc, uint32_t mode, in at91_sama5d2_config_pmc_ws() argument
124 io_write32(pmc + AT91_PMC_FSMR, mode); in at91_sama5d2_config_pmc_ws()
125 io_write32(pmc + AT91_PMC_FSPR, polarity); in at91_sama5d2_config_pmc_ws()
175 io_write32(soc_pm.pmc + AT91_PMC_FSMR, mode); in at91_pm_config_ws_ulp1()
212 at91_sama5d2_config_pmc_ws(soc_pm.pmc, mode, polarity); in at91_pm_config_ws_ulp1()
226 scsr = io_read32(soc_pm.pmc + AT91_PMC_SCSR); in at91_pm_verify_clocks()
240 css = io_read32(soc_pm.pmc + AT91_PMC_PCKR(i)) & AT91_PMC_CSS; in at91_pm_verify_clocks()
453 soc_pm.pmc = at91_pmc_get_base(); in sama5d2_pm_init_all()
454 if (!soc_pm.pmc) in sama5d2_pm_init_all()
A Dpm-defines.c13 DEFINE(PM_DATA_PMC, offsetof(struct at91_pm_data, pmc));
A Dat91_pm.h27 vaddr_t pmc; member
/optee_os-3.20.0/core/drivers/clk/sam/
A Dat91_main.c105 osc->base = pmc->base; in pmc_register_main_rc_osc()
130 struct pmc_data *pmc = clk->priv; in pmc_main_osc_enable() local
143 while (!pmc_main_osc_ready(pmc)) in pmc_main_osc_enable()
151 struct pmc_data *pmc = clk->priv; in pmc_main_osc_disable() local
178 clk->priv = pmc; in pmc_register_main_osc()
229 struct pmc_data *pmc = clk->priv; in clk_sam9x5_main_enable() local
231 while (!clk_sam9x5_main_ready(pmc->base)) in clk_sam9x5_main_enable()
240 struct pmc_data *pmc = clk->priv; in clk_sam9x5_main_get_rate() local
247 struct pmc_data *pmc = clk->priv; in clk_sam9x5_main_set_parent() local
274 struct pmc_data *pmc = clk->priv; in clk_sam9x5_main_get_parent() local
[all …]
A Dsama5d2_clk.c307 assert(pmc); in at91_pmc_get_base()
309 return pmc->base; in at91_pmc_get_base()
367 if (!pmc) in pmc_setup()
369 pmc->base = base; in pmc_setup()
518 pmc_clk = &pmc->shws[i]; in pmc_setup()
534 pmc_clk = &pmc->phws[i]; in pmc_setup()
573 pmc_clk = &pmc->ghws[i]; in pmc_setup()
578 parents[0] = pmc_clk_get_by_name(pmc->phws, pmc->nperiph, "i2s0_clk"); in pmc_setup()
579 parents[1] = pmc_clk_get_by_name(pmc->ghws, pmc->ngck, "i2s0_gclk"); in pmc_setup()
587 parents[0] = pmc_clk_get_by_name(pmc->phws, pmc->nperiph, "i2s1_clk"); in pmc_setup()
[all …]
A Dat91_clk.h138 struct clk *at91_clk_register_sam9x5_main(struct pmc_data *pmc,
145 at91_clk_register_pll(struct pmc_data *pmc, const char *name,
151 at91_clk_register_plldiv(struct pmc_data *pmc, const char *name,
156 at91_clk_register_utmi(struct pmc_data *pmc, const char *name,
161 at91_clk_register_master_pres(struct pmc_data *pmc,
169 at91_clk_register_master_div(struct pmc_data *pmc,
176 at91_clk_register_h32mx(struct pmc_data *pmc, const char *name,
186 at91_clk_register_programmable(struct pmc_data *pmc,
192 at91_clk_register_system(struct pmc_data *pmc, const char *name,
196 at91_clk_register_sam9x5_periph(struct pmc_data *pmc,
[all …]
A Dat91_plldiv.c18 struct pmc_data *pmc = clk->priv; in clk_plldiv_get_rate() local
19 unsigned int mckr = io_read32(pmc->base + AT91_PMC_MCKR); in clk_plldiv_get_rate()
30 struct pmc_data *pmc = clk->priv; in clk_plldiv_set_rate() local
35 io_clrsetbits32(pmc->base + AT91_PMC_MCKR, AT91_PMC_PLLADIV2, in clk_plldiv_set_rate()
47 at91_clk_register_plldiv(struct pmc_data *pmc, const char *name, in at91_clk_register_plldiv() argument
56 clk->priv = pmc; in at91_clk_register_plldiv()
A Dat91_h32mx.c20 struct pmc_data *pmc = clk->priv; in clk_sama5d4_h32mx_get_rate() local
21 unsigned int mckr = io_read32(pmc->base + AT91_PMC_MCKR); in clk_sama5d4_h32mx_get_rate()
36 struct pmc_data *pmc = clk->priv; in clk_sama5d4_h32mx_set_rate() local
45 io_clrsetbits32(pmc->base + AT91_PMC_MCKR, AT91_PMC_H32MXDIV, mckr); in clk_sama5d4_h32mx_set_rate()
56 at91_clk_register_h32mx(struct pmc_data *pmc, const char *name, in at91_clk_register_h32mx() argument
66 clk->priv = pmc; in at91_clk_register_h32mx()
A Dat91_master.c111 at91_clk_register_master_internal(struct pmc_data *pmc, in at91_clk_register_master_internal() argument
136 master->base = pmc->base; in at91_clk_register_master_internal()
152 at91_clk_register_master_pres(struct pmc_data *pmc, in at91_clk_register_master_pres() argument
159 return at91_clk_register_master_internal(pmc, name, num_parents, in at91_clk_register_master_pres()
166 at91_clk_register_master_div(struct pmc_data *pmc, in at91_clk_register_master_div() argument
171 return at91_clk_register_master_internal(pmc, name, 1, in at91_clk_register_master_div()
A Dat91_usb.c86 _at91sam9x5_clk_register_usb(struct pmc_data *pmc, const char *name, in _at91sam9x5_clk_register_usb() argument
101 usb->base = pmc->base; in _at91sam9x5_clk_register_usb()
117 at91sam9x5_clk_register_usb(struct pmc_data *pmc, const char *name, in at91sam9x5_clk_register_usb() argument
120 return _at91sam9x5_clk_register_usb(pmc, name, parents, in at91sam9x5_clk_register_usb()
A Dat91_audio_pll.c299 at91_clk_register_audio_pll_frac(struct pmc_data *pmc, const char *name, in at91_clk_register_audio_pll_frac() argument
317 frac_ck->base = pmc->base; in at91_clk_register_audio_pll_frac()
330 at91_clk_register_audio_pll_pad(struct pmc_data *pmc, const char *name, in at91_clk_register_audio_pll_pad() argument
348 apad_ck->base = pmc->base; in at91_clk_register_audio_pll_pad()
361 at91_clk_register_audio_pll_pmc(struct pmc_data *pmc, const char *name, in at91_clk_register_audio_pll_pmc() argument
379 apmc_ck->base = pmc->base; in at91_clk_register_audio_pll_pmc()
A Dat91_system.c64 at91_clk_register_system(struct pmc_data *pmc, const char *name, in at91_clk_register_system() argument
84 sys->base = pmc->base; in at91_clk_register_system()
A Dat91_utmi.c109 at91_clk_register_utmi(struct pmc_data *pmc, const char *name, in at91_clk_register_utmi() argument
125 utmi->pmc_base = pmc->base; in at91_clk_register_utmi()
A Dat91_programmable.c134 at91_clk_register_programmable(struct pmc_data *pmc, in at91_clk_register_programmable() argument
151 prog->base = pmc->base; in at91_clk_register_programmable()
A Dat91_peripheral.c149 at91_clk_register_sam9x5_periph(struct pmc_data *pmc, in at91_clk_register_sam9x5_periph() argument
172 periph->base = pmc->base; in at91_clk_register_sam9x5_periph()
A Dat91_generated.c140 at91_clk_register_generated(struct pmc_data *pmc, in at91_clk_register_generated() argument
163 gck->base = pmc->base; in at91_clk_register_generated()
A Dat91_pll.c256 at91_clk_register_pll(struct pmc_data *pmc, const char *name, in at91_clk_register_pll() argument
285 pll->base = pmc->base; in at91_clk_register_pll()
286 pllr = io_read32(pmc->base + offset); in at91_clk_register_pll()
/optee_os-3.20.0/core/arch/arm/dts/
A Dsama5d2.dtsi127 clocks = <&pmc PMC_TYPE_PERIPHERAL 42>, <&pmc PMC_TYPE_CORE PMC_UTMI>;
136 clocks = <&pmc PMC_TYPE_PERIPHERAL 41>, <&pmc PMC_TYPE_PERIPHERAL 41>, <&pmc PMC_TYPE_SYSTEM 6>;
145 clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>, <&pmc PMC_TYPE_PERIPHERAL 41>;
188 clocks = <&pmc PMC_TYPE_PERIPHERAL 31>, <&pmc PMC_TYPE_GCK 31>, <&pmc PMC_TYPE_CORE PMC_MAIN>;
200 clocks = <&pmc PMC_TYPE_PERIPHERAL 32>, <&pmc PMC_TYPE_GCK 32>, <&pmc PMC_TYPE_CORE PMC_MAIN>;
249 clocks = <&pmc PMC_TYPE_PERIPHERAL 46>, <&pmc PMC_TYPE_SYSTEM 18>, <&pmc PMC_TYPE_GCK 46>;
259 clocks = <&pmc PMC_TYPE_SYSTEM 2>, <&pmc PMC_TYPE_PERIPHERAL 13>;
282 pmc: pmc@f0014000 { label
438 clocks = <&pmc PMC_TYPE_PERIPHERAL 48>, <&pmc PMC_TYPE_GCK 48>;
742 clocks = <&pmc PMC_TYPE_PERIPHERAL 54>, <&pmc PMC_TYPE_GCK 54>;
[all …]

Completed in 21 milliseconds