]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: Use vendor name for K210 SoC support
authorDamien Le Moal <damien.lemoal@wdc.com>
Sun, 13 Dec 2020 13:50:38 +0000 (22:50 +0900)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 14 Jan 2021 23:08:46 +0000 (15:08 -0800)
Rename configuration options and directories related to the Kendryte
K210 SoC to use the SoC vendor name (canaan) instead of the "kendryte"
branding name.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
13 files changed:
arch/riscv/Kconfig.socs
arch/riscv/Makefile
arch/riscv/boot/dts/Makefile
arch/riscv/boot/dts/canaan/Makefile [new file with mode: 0644]
arch/riscv/boot/dts/canaan/k210.dts [moved from arch/riscv/boot/dts/kendryte/k210.dts with 100% similarity]
arch/riscv/boot/dts/canaan/k210.dtsi [moved from arch/riscv/boot/dts/kendryte/k210.dtsi with 100% similarity]
arch/riscv/boot/dts/kendryte/Makefile [deleted file]
arch/riscv/configs/nommu_k210_defconfig
drivers/soc/Kconfig
drivers/soc/Makefile
drivers/soc/canaan/Kconfig [moved from drivers/soc/kendryte/Kconfig with 79% similarity]
drivers/soc/canaan/Makefile [moved from drivers/soc/kendryte/Makefile with 100% similarity]
drivers/soc/canaan/k210-sysctl.c [moved from drivers/soc/kendryte/k210-sysctl.c with 100% similarity]

index 59000675cb9fbe7323b9838a23e4f2c7b1335a79..027042e4d0af4cf999e510b66c2c2e14afb44e20 100644 (file)
@@ -22,21 +22,21 @@ config SOC_VIRT
        help
          This enables support for QEMU Virt Machine.
 
-config SOC_KENDRYTE
-       bool "Kendryte K210 SoC"
+config SOC_CANAAN
+       bool "Canaan Kendryte K210 SoC"
        depends on !MMU
        select CLINT_TIMER if RISCV_M_MODE
        select SERIAL_SIFIVE if TTY
        select SERIAL_SIFIVE_CONSOLE if TTY
        select SIFIVE_PLIC
        help
-         This enables support for Kendryte K210 SoC platform hardware.
+         This enables support for Canaan Kendryte K210 SoC platform hardware.
 
-if SOC_KENDRYTE
+if SOC_CANAAN
 
-config SOC_KENDRYTE_K210_DTB_BUILTIN
-       bool "Builtin device tree for the Kendryte K210"
-       depends on SOC_KENDRYTE
+config SOC_CANAAN_K210_DTB_BUILTIN
+       bool "Builtin device tree for the Canaan Kendryte K210"
+       depends on SOC_CANAAN
        default y
        select OF
        select BUILTIN_DTB
@@ -45,13 +45,13 @@ config SOC_KENDRYTE_K210_DTB_BUILTIN
          This option should be selected if no bootloader is being used.
          If unsure, say Y.
 
-config SOC_KENDRYTE_K210_DTB_SOURCE
-       string "Source file for the Kendryte K210 builtin DTB"
-       depends on SOC_KENDRYTE
-       depends on SOC_KENDRYTE_K210_DTB_BUILTIN
+config SOC_CANAAN_K210_DTB_SOURCE
+       string "Source file for the Canaan Kendryte K210 builtin DTB"
+       depends on SOC_CANAAN
+       depends on SOC_CANAAN_K210_DTB_BUILTIN
        default "k210"
        help
-         Base name (without suffix, relative to arch/riscv/boot/dts/kendryte)
+         Base name (without suffix, relative to arch/riscv/boot/dts/canaan)
          for the DTS file that will be used to produce the DTB linked into the
          kernel.
 
index 8c29e553ef7fd945a13b80a11e69b9f98d4ab932..597b58b2d4c0b7172d5670626f211172af0e250b 100644 (file)
@@ -83,7 +83,7 @@ PHONY += vdso_install
 vdso_install:
        $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@
 
-ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_KENDRYTE),yy)
+ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_CANAAN),yy)
 KBUILD_IMAGE := $(boot)/loader.bin
 else
 KBUILD_IMAGE := $(boot)/Image.gz
index 21e3905f1c4468d7a267e03ea2020761182fe3c2..7ffd502e3e7b9d5ea5a1a78dc796748155c8f49f 100644 (file)
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 subdir-y += sifive
-subdir-$(CONFIG_SOC_KENDRYTE) += kendryte
+subdir-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += canaan
 
 obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix /, $(subdir-y))
diff --git a/arch/riscv/boot/dts/canaan/Makefile b/arch/riscv/boot/dts/canaan/Makefile
new file mode 100644 (file)
index 0000000..9ee7156
--- /dev/null
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+ifneq ($(CONFIG_SOC_CANAAN_K210_DTB_SOURCE),"")
+dtb-y += $(strip $(shell echo $(CONFIG_SOC_CANAAN_K210_DTB_SOURCE))).dtb
+obj-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += $(addsuffix .o, $(dtb-y))
+endif
diff --git a/arch/riscv/boot/dts/kendryte/Makefile b/arch/riscv/boot/dts/kendryte/Makefile
deleted file mode 100644 (file)
index 8363669..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-ifneq ($(CONFIG_SOC_KENDRYTE_K210_DTB_SOURCE),"")
-dtb-y += $(strip $(shell echo $(CONFIG_SOC_KENDRYTE_K210_DTB_SOURCE))).dtb
-obj-$(CONFIG_SOC_KENDRYTE_K210_DTB_BUILTIN) += $(addsuffix .o, $(dtb-y))
-endif
index cd1df62b13c7271789d917fa3159d8a4ebe7721e..368a28cf1467ece682626bc5faa67d127ba603ff 100644 (file)
@@ -27,7 +27,7 @@ CONFIG_EMBEDDED=y
 CONFIG_SLOB=y
 # CONFIG_SLAB_MERGE_DEFAULT is not set
 # CONFIG_MMU is not set
-CONFIG_SOC_KENDRYTE=y
+CONFIG_SOC_CANAAN=y
 CONFIG_MAXPHYSMEM_2GB=y
 CONFIG_SMP=y
 CONFIG_NR_CPUS=2
index d097d070f579079759649e50e3ce9e3e17e49dde..c0143651f4a94d70b69acfa844809ea78842aebb 100644 (file)
@@ -6,6 +6,7 @@ source "drivers/soc/amlogic/Kconfig"
 source "drivers/soc/aspeed/Kconfig"
 source "drivers/soc/atmel/Kconfig"
 source "drivers/soc/bcm/Kconfig"
+source "drivers/soc/canaan/Kconfig"
 source "drivers/soc/fsl/Kconfig"
 source "drivers/soc/imx/Kconfig"
 source "drivers/soc/ixp4xx/Kconfig"
@@ -23,6 +24,5 @@ source "drivers/soc/ux500/Kconfig"
 source "drivers/soc/versatile/Kconfig"
 source "drivers/soc/xilinx/Kconfig"
 source "drivers/soc/zte/Kconfig"
-source "drivers/soc/kendryte/Kconfig"
 
 endmenu
index 699b758d28e4f31934d73c23f8f77eed034f0d6e..fa707124654672f3b77e4ea4365267b94f044986 100644 (file)
@@ -29,4 +29,4 @@ obj-$(CONFIG_ARCH_U8500)      += ux500/
 obj-$(CONFIG_PLAT_VERSATILE)   += versatile/
 obj-y                          += xilinx/
 obj-$(CONFIG_ARCH_ZX)          += zte/
-obj-$(CONFIG_SOC_KENDRYTE)     += kendryte/
+obj-$(CONFIG_SOC_CANAAN)       += canaan/
similarity index 79%
rename from drivers/soc/kendryte/Kconfig
rename to drivers/soc/canaan/Kconfig
index 49785b1b0217de19237496f7f5944cbbe212a051..5232d13f07e5cdb835bced4a84d16c7f17f4b361 100644 (file)
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: GPL-2.0
 
-if SOC_KENDRYTE
+if SOC_CANAAN
 
 config K210_SYSCTL
-       bool "Kendryte K210 system controller"
+       bool "Canaan Kendryte K210 SoC system controller"
        default y
        depends on RISCV
        help