aboutsummaryrefslogtreecommitdiff
path: root/include/k210
diff options
context:
space:
mode:
authorDamien Le Moal2022-03-01 10:35:39 +0000
committerLeo Yu-Chi Liang2022-03-15 17:43:11 +0800
commitfd426b31066ba61ee1ff96a2b56c919251ffdd9e (patch)
tree12cca16af2089ff5c0f2666216307aefa442ef75 /include/k210
parentc149bf41404e34014e37de32fac332892b11bd4a (diff)
k210: use the board vendor name rather than the marketing name
"kendryte" is the marketing name for the K210 RISC-V SoC produced by Canaan Inc. Rather than "kendryte,k210", use the usual "canaan,k210" vendor,SoC compatibility string format in the device tree files and use the SoC name for file names. With these changes, the device tree files are more in sync with the Linux kernel DTS and drivers, making uboot device tree usable by the kernel. Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'include/k210')
-rw-r--r--include/k210/pll.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/k210/pll.h b/include/k210/pll.h
new file mode 100644
index 00000000000..fd16a89cb20
--- /dev/null
+++ b/include/k210/pll.h
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com>
+ */
+#ifndef K210_PLL_H
+#define K210_PLL_H
+
+#include <test/export.h>
+
+struct k210_pll_config {
+ u8 r;
+ u8 f;
+ u8 od;
+};
+
+#ifdef CONFIG_UNIT_TEST
+TEST_STATIC int k210_pll_calc_config(u32 rate, u32 rate_in,
+ struct k210_pll_config *best);
+#ifndef nop
+#define nop()
+#endif
+
+#endif
+#endif /* K210_PLL_H */