Lines Matching +full:core +full:- +full:module
1 // SPDX-License-Identifier: GPL-2.0-only
85 do {} while (--err && ((sysctl_r32(clk->module, reg) in sysctl_wait()
86 & clk->bits) != test)); in sysctl_wait()
88 pr_err("module de/activation failed %d %08X %08X %08X\n", in sysctl_wait()
89 clk->module, clk->bits, test, in sysctl_wait()
90 sysctl_r32(clk->module, reg) & clk->bits); in sysctl_wait()
95 sysctl_w32(clk->module, clk->bits, SYSCTL_CLKEN); in sysctl_activate()
96 sysctl_w32(clk->module, clk->bits, SYSCTL_ACT); in sysctl_activate()
97 sysctl_wait(clk, clk->bits, SYSCTL_ACTS); in sysctl_activate()
103 sysctl_w32(clk->module, clk->bits, SYSCTL_CLKCLR); in sysctl_deactivate()
104 sysctl_w32(clk->module, clk->bits, SYSCTL_DEACT); in sysctl_deactivate()
110 sysctl_w32(clk->module, clk->bits, SYSCTL_CLKEN); in sysctl_clken()
111 sysctl_w32(clk->module, clk->bits, SYSCTL_ACT); in sysctl_clken()
112 sysctl_wait(clk, clk->bits, SYSCTL_CLKS); in sysctl_clken()
118 sysctl_w32(clk->module, clk->bits, SYSCTL_CLKCLR); in sysctl_clkdis()
127 act = sysctl_r32(clk->module, SYSCTL_ACT); in sysctl_reboot()
128 bits = ~act & clk->bits; in sysctl_reboot()
130 sysctl_w32(clk->module, bits, SYSCTL_CLKEN); in sysctl_reboot()
131 sysctl_w32(clk->module, bits, SYSCTL_ACT); in sysctl_reboot()
134 sysctl_w32(clk->module, act & clk->bits, SYSCTL_RBT); in sysctl_reboot()
135 sysctl_wait(clk, clk->bits, SYSCTL_ACTS); in sysctl_reboot()
138 /* enable the ONU core */
165 static inline void clkdev_add_sys(const char *dev, unsigned int module, in clkdev_add_sys() argument
172 clk->cl.dev_id = dev; in clkdev_add_sys()
173 clk->cl.con_id = NULL; in clkdev_add_sys()
174 clk->cl.clk = clk; in clkdev_add_sys()
175 clk->module = module; in clkdev_add_sys()
176 clk->bits = bits; in clkdev_add_sys()
177 clk->activate = sysctl_activate; in clkdev_add_sys()
178 clk->deactivate = sysctl_deactivate; in clkdev_add_sys()
179 clk->enable = sysctl_clken; in clkdev_add_sys()
180 clk->disable = sysctl_clkdis; in clkdev_add_sys()
181 clk->reboot = sysctl_reboot; in clkdev_add_sys()
182 clkdev_add(&clk->cl); in clkdev_add_sys()
188 of_find_compatible_node(NULL, NULL, "lantiq,status-falcon"); in ltq_soc_init()
190 of_find_compatible_node(NULL, NULL, "lantiq,ebu-falcon"); in ltq_soc_init()
192 of_find_compatible_node(NULL, NULL, "lantiq,sys1-falcon"); in ltq_soc_init()
194 of_find_compatible_node(NULL, NULL, "lantiq,syseth-falcon"); in ltq_soc_init()
196 of_find_compatible_node(NULL, NULL, "lantiq,sysgpe-falcon"); in ltq_soc_init()
200 /* check if all the core register ranges are available */ in ltq_soc_init()
202 panic("Failed to load core nodes from devicetree"); in ltq_soc_init()
209 panic("Failed to get core resources"); in ltq_soc_init()
230 pr_err("Failed to request core resources"); in ltq_soc_init()
238 panic("Failed to remap core resources"); in ltq_soc_init()