• Home
  • Raw
  • Download

Lines Matching +full:k210 +full:- +full:sysctl

1 // SPDX-License-Identifier: GPL-2.0-or-later
10 #include <linux/clk-provider.h>
143 clksel0 = readl(s->regs + K210_SYSCTL_CLKSEL0); in k210_sysctl_clk_recalc_rate()
151 pll0 = readl(s->regs + K210_SYSCTL_PLL0); in k210_sysctl_clk_recalc_rate()
166 .name = "k210-sysctl-pll1",
175 pr_info("Kendryte K210 SoC sysctl\n"); in k210_sysctl_probe()
177 s = devm_kzalloc(&pdev->dev, sizeof(*s), GFP_KERNEL); in k210_sysctl_probe()
179 return -ENOMEM; in k210_sysctl_probe()
181 s->regs = devm_ioremap_resource(&pdev->dev, in k210_sysctl_probe()
183 if (IS_ERR(s->regs)) in k210_sysctl_probe()
184 return PTR_ERR(s->regs); in k210_sysctl_probe()
186 s->hw.init = &k210_clk_init_data; in k210_sysctl_probe()
187 error = devm_clk_hw_register(&pdev->dev, &s->hw); in k210_sysctl_probe()
189 dev_err(&pdev->dev, "failed to register clk"); in k210_sysctl_probe()
193 error = devm_of_clk_add_hw_provider(&pdev->dev, of_clk_hw_simple_get, in k210_sysctl_probe()
194 &s->hw); in k210_sysctl_probe()
196 dev_err(&pdev->dev, "adding clk provider failed\n"); in k210_sysctl_probe()
204 { .compatible = "kendryte,k210-sysctl", },
210 .name = "k210-sysctl",
232 panic("K210 sysctl ioremap"); in k210_soc_early_init()
248 SOC_EARLY_INIT_DECLARE(generic_k210, "kendryte,k210", k210_soc_early_init);
252 * Generic entry for the default k210.dtb embedded DTB for boards with:
253 * - Vendor ID: 0x4B5
254 * - Arch ID: 0xE59889E6A5A04149 (= "Canaan AI" in UTF-8 encoded Chinese)
255 * - Impl ID: 0x4D41495832303030 (= "MAIX2000")
259 SOC_BUILTIN_DTB_DECLARE(k210, 0x4B5, 0xE59889E6A5A04149, 0x4D41495832303030);