Skip to contentSkip to conversation

kvx: remove architecture support

PATCH Applied [email protected] 2 participants 8 messages Oct 23 – Oct 26

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover kvx: remove architecture support

From: Clément Léger <[email protected]>

The barebox kvx port was upstreamed in the hope it was the first one of a long series of other contributions (GCC, Linux, etc). Unfortunately, the kvx architecture remained closed and there was no public specification nor upstreamed compiler. Additionally, there are no users outside of the company itself and there is not possible to obtain a board with such SoC. Latest modifications of the architecture also made it non compatible with this architecture.

As discussed during LPC, there is no point in keeping this architecture since it is unmaintained and slows down the effort to get Rust support on barebox. Remove the whole architecture support and drivers as well.

Clément Léger (5):
drivers: soc: remove KVX support
drivers: clocksource: remove KVX timer
drivers: nvmem: remove KVX OTP support
drivers: watchdog: remove KVX watchdog
arch: kvx: remove support

 .github/workflows/build-defconfigs.yml |    2 +-
 Documentation/boards/kvx.rst           |   98 -
 Documentation/gen_magicvars.py         |   19 -
 Documentation/user/barebox.rst         |    1 -
 arch/kvx/Kbuild                        |    5 -
 arch/kvx/Kconfig                       |   67 -
 arch/kvx/Kconfig.debug                 |    2 -
 arch/kvx/Makefile                      |   36 -
 arch/kvx/configs/generic_defconfig     |   14 -
 arch/kvx/cpu/Makefile                  |    7 -
 arch/kvx/cpu/barebox.lds.S             |   88 -
 arch/kvx/cpu/cpu.c                     |   32 -
 arch/kvx/cpu/exception.S               |   35 -
 arch/kvx/cpu/reset.c                   |   68 -
 arch/kvx/cpu/start.S                   |  198 -
 arch/kvx/dts/Makefile                  |    7 -
 arch/kvx/dts/k200.dts                  |  111 -
 arch/kvx/include/asm/barebox.lds.h     |    6 -
 arch/kvx/include/asm/barrier.h         |   20 -
 arch/kvx/include/asm/bitops.h          |   27 -
 arch/kvx/include/asm/bitsperlong.h     |   12 -
 arch/kvx/include/asm/byteorder.h       |   12 -
 arch/kvx/include/asm/cache.h           |   34 -
 arch/kvx/include/asm/common.h          |   28 -
 arch/kvx/include/asm/dma.h             |   30 -
 arch/kvx/include/asm/elf.h             |   21 -
 arch/kvx/include/asm/ftu.h             |   24 -
 arch/kvx/include/asm/io.h              |   14 -
 arch/kvx/include/asm/linkage.h         |   10 -
 arch/kvx/include/asm/mmu.h             |    8 -
 arch/kvx/include/asm/posix_types.h     |   12 -
 arch/kvx/include/asm/privilege.h       |  244 --
 arch/kvx/include/asm/sections.h        |   12 -
 arch/kvx/include/asm/setjmp.h          |   17 -
 arch/kvx/include/asm/sfr.h             |   51 -
 arch/kvx/include/asm/sfr_defs.h        |   17 -
 arch/kvx/include/asm/string.h          |   14 -
 arch/kvx/include/asm/swab.h            |   14 -
 arch/kvx/include/asm/sys_arch.h        |   49 -
 arch/kvx/include/asm/types.h           |   14 -
 arch/kvx/include/asm/unaligned.h       |   17 -
 arch/kvx/include/asm/v1/sfr_defs.h     | 5027 ----------------------
 arch/kvx/include/asm/v2/sfr_defs.h     | 5389 ------------------------
 arch/kvx/include/asm/word-at-a-time.h  |    2 -
 arch/kvx/lib/Makefile                  |    6 -
 arch/kvx/lib/asm-offsets.c             |   11 -
 arch/kvx/lib/board.c                   |  159 -
 arch/kvx/lib/bootm.c                   |  172 -
 arch/kvx/lib/cache.c                   |   25 -
 arch/kvx/lib/cpuinfo.c                 |   20 -
 arch/kvx/lib/dma-default.c             |   61 -
 arch/kvx/lib/dtb.c                     |   14 -
 arch/kvx/lib/poweroff.c                |   56 -
 arch/kvx/lib/setjmp.S                  |   85 -
 arch/kvx/um/Makefile                   |    4 -
 drivers/clocksource/Kconfig            |    4 -
 drivers/clocksource/Makefile           |    1 -
 drivers/clocksource/kvx_timer.c        |   60 -
 drivers/nvmem/Kconfig                  |    7 -
 drivers/nvmem/Makefile                 |    3 -
 drivers/nvmem/kvx-otp-nv.c             |   95 -
 drivers/of/Kconfig                     |    2 +-
 drivers/soc/Kconfig                    |    1 -
 drivers/soc/Makefile                   |    1 -
 drivers/soc/kvx/Kconfig                |   10 -
 drivers/soc/kvx/Makefile               |    1 -
 drivers/soc/kvx/kvx_socinfo.c          |  178 -
 drivers/watchdog/Kconfig               |   17 -
 drivers/watchdog/Makefile              |    1 -
 drivers/watchdog/kvx_wdt.c             |  109 -
 test/Containerfile                     |    7 -
 test/kvx/generic_defconfig.yaml        |   17 -
 72 files changed, 2 insertions(+), 13040 deletions(-)
 delete mode 100644 Documentation/boards/kvx.rst
 delete mode 100644 arch/kvx/Kbuild
 delete mode 100644 arch/kvx/Kconfig
 delete mode 100644 arch/kvx/Kconfig.debug
 delete mode 100644 arch/kvx/Makefile
 delete mode 100644 arch/kvx/configs/generic_defconfig
 delete mode 100644 arch/kvx/cpu/Makefile
 delete mode 100644 arch/kvx/cpu/barebox.lds.S
 delete mode 100644 arch/kvx/cpu/cpu.c
 delete mode 100644 arch/kvx/cpu/exception.S
 delete mode 100644 arch/kvx/cpu/reset.c
 delete mode 100644 arch/kvx/cpu/start.S
 delete mode 100644 arch/kvx/dts/Makefile
 delete mode 100644 arch/kvx/dts/k200.dts
 delete mode 100644 arch/kvx/include/asm/barebox.lds.h
 delete mode 100644 arch/kvx/include/asm/barrier.h
 delete mode 100644 arch/kvx/include/asm/bitops.h
 delete mode 100644 arch/kvx/include/asm/bitsperlong.h
 delete mode 100644 arch/kvx/include/asm/byteorder.h
 delete mode 100644 arch/kvx/include/asm/cache.h
 delete mode 100644 arch/kvx/include/asm/common.h
 delete mode 100644 arch/kvx/include/asm/dma.h
 delete mode 100644 arch/kvx/include/asm/elf.h
 delete mode 100644 arch/kvx/include/asm/ftu.h
 delete mode 100644 arch/kvx/include/asm/io.h
 delete mode 100644 arch/kvx/include/asm/linkage.h
 delete mode 100644 arch/kvx/include/asm/mmu.h
 delete mode 100644 arch/kvx/include/asm/posix_types.h
 delete mode 100644 arch/kvx/include/asm/privilege.h
 delete mode 100644 arch/kvx/include/asm/sections.h
 delete mode 100644 arch/kvx/include/asm/setjmp.h
 delete mode 100644 arch/kvx/include/asm/sfr.h
 delete mode 100644 arch/kvx/include/asm/sfr_defs.h
 delete mode 100644 arch/kvx/include/asm/string.h
 delete mode 100644 arch/kvx/include/asm/swab.h
 delete mode 100644 arch/kvx/include/asm/sys_arch.h
 delete mode 100644 arch/kvx/include/asm/types.h
 delete mode 100644 arch/kvx/include/asm/unaligned.h
 delete mode 100644 arch/kvx/include/asm/v1/sfr_defs.h
 delete mode 100644 arch/kvx/include/asm/v2/sfr_defs.h
 delete mode 100644 arch/kvx/include/asm/word-at-a-time.h
 delete mode 100644 arch/kvx/lib/Makefile
 delete mode 100644 arch/kvx/lib/asm-offsets.c
 delete mode 100644 arch/kvx/lib/board.c
 delete mode 100644 arch/kvx/lib/bootm.c
 delete mode 100644 arch/kvx/lib/cache.c
 delete mode 100644 arch/kvx/lib/cpuinfo.c
 delete mode 100644 arch/kvx/lib/dma-default.c
 delete mode 100644 arch/kvx/lib/dtb.c
 delete mode 100644 arch/kvx/lib/poweroff.c
 delete mode 100644 arch/kvx/lib/setjmp.S
 delete mode 100644 arch/kvx/um/Makefile
 delete mode 100644 drivers/clocksource/kvx_timer.c
 delete mode 100644 drivers/nvmem/kvx-otp-nv.c
 delete mode 100644 drivers/soc/kvx/Kconfig
 delete mode 100644 drivers/soc/kvx/Makefile
 delete mode 100644 drivers/soc/kvx/kvx_socinfo.c
 delete mode 100644 drivers/watchdog/kvx_wdt.c
 delete mode 100644 test/kvx/generic_defconfig.yaml
Signature · 1 line
2.55.0
#1 lore raw

PATCH 1/5 drivers: soc: remove KVX support

From: Clément Léger <[email protected]>

Remove the kvx SoC info driver.

---
 Documentation/gen_magicvars.py |  19 ----
 drivers/soc/Kconfig            |   1 -
 drivers/soc/Makefile           |   1 -
 drivers/soc/kvx/Kconfig        |  10 --
 drivers/soc/kvx/Makefile       |   1 -
 drivers/soc/kvx/kvx_socinfo.c  | 178 ---------------------------------
 6 files changed, 210 deletions(-)
 delete mode 100644 drivers/soc/kvx/Kconfig
 delete mode 100644 drivers/soc/kvx/Makefile
 delete mode 100644 drivers/soc/kvx/kvx_socinfo.c
Documentation/gen_magicvars.py +0 -19
index e2bb020360..142e770c10 100755
@@ -13,12 +13,6 @@ MAGICVAR_CONT = re.compile(r'(.*?)"\s*\)')
 
 UNESCAPE = re.compile(r'''\\(["\\])''')
 
-# Global override dictionary to map directories to specific arch or board
-DIRECTORY_OVERRIDES = {
-    'drivers/soc/kvx': {'arch': 'kvx'},
-}
-
-
 def string_unescape(s):
     return re.sub(UNESCAPE, r'\1', s.replace(r'\t', '').replace(r'\n', ''))
 
@@ -81,19 +75,6 @@ def categorize_file(filepath):
     arch = None
     board = None
     
-    # Check for directory overrides first
-    for override_path, override_spec in DIRECTORY_OVERRIDES.items():
-        override_parts = override_path.split('/')
-        # Check if the filepath starts with the override path
-        if len(parts) >= len(override_parts):
-            if all(parts[i] == override_parts[i] for i in range(len(override_parts))):
-                # This file matches the override path
-                if 'arch' in override_spec:
-                    arch = override_spec['arch']
-                if 'board' in override_spec:
-                    board = override_spec['board']
-                return arch, board
-
     # Check for arch
     if 'arch' in parts:
         arch_idx = parts.index('arch')
drivers/soc/Kconfig +0 -1
index cbde3c35a4..1fc0efbb3b 100644
@@ -1,7 +1,6 @@
 menu "SoC drivers"
 
 source "drivers/soc/imx/Kconfig"
-source "drivers/soc/kvx/Kconfig"
 source "drivers/soc/rockchip/Kconfig"
 source "drivers/soc/ti/Kconfig"
 
drivers/soc/Makefile +0 -1
index 975304cd50..abe9c38d03 100644
@@ -1,7 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
 obj-$(CONFIG_ARCH_IMX)		+= imx/
-obj-$(CONFIG_KVX)		+= kvx/
 obj-$(CONFIG_ARCH_ROCKCHIP)	+= rockchip/
 obj-$(CONFIG_CPU_SIFIVE)	+= sifive/
 obj-$(CONFIG_SOC_STARFIVE)	+= starfive/
drivers/soc/kvx/Kconfig deleted +0 -10
deleted file mode 100644
index 18dcb8ba14..0000000000
@@ -1,10 +0,0 @@
-menu "KVX SoC drivers"
-
-config KVX_SOCINFO
-        bool "KVX SoC Info driver"
-	depends on KVX
-	select NVMEM
-	select KVX_OTP_NV
-	default y
-
-endmenu
drivers/soc/kvx/Makefile deleted +0 -1
deleted file mode 100644
index cacfef21a1..0000000000
@@ -1 +0,0 @@
-obj-$(CONFIG_KVX_SOCINFO) += kvx_socinfo.o
drivers/soc/kvx/kvx_socinfo.c deleted +0 -178

178 lines not on this page · raw message

Signature · 1 line
2.55.0
#2 lore raw

PATCH 2/5 drivers: clocksource: remove KVX timer

In reply to [email protected]

From: Clément Léger <[email protected]>

Remove the kvx timer driver.

---
 drivers/clocksource/Kconfig     |  4 ---
 drivers/clocksource/Makefile    |  1 -
 drivers/clocksource/kvx_timer.c | 60 ---------------------------------
 3 files changed, 65 deletions(-)
 delete mode 100644 drivers/clocksource/kvx_timer.c
drivers/clocksource/Kconfig +0 -4
index b3ad477ce3..ef4ed6f820 100644
@@ -48,10 +48,6 @@ config CLOCKSOURCE_EFI_X86
 	bool "EFI X86 HW driver"
 	depends on EFI_PAYLOAD && X86
 
-config CLOCKSOURCE_KVX
-	bool "KVX core timer clocksource"
-	depends on KVX
-
 config CLOCKSOURCE_MVEBU
 	bool "MVEBU clock source" if COMPILE_TEST
 	depends on ARCH_MVEBU || COMPILE_TEST
drivers/clocksource/Makefile +0 -1
index ec12e7babb..3850abd6f2 100644
@@ -6,7 +6,6 @@ obj-$(CONFIG_CLOCKSOURCE_CLPS711X) += clps711x.o
 obj-$(CONFIG_CLOCKSOURCE_DIGIC)   += digic.o
 obj-$(CONFIG_CLOCKSOURCE_EFI) += efi.o
 obj-$(CONFIG_CLOCKSOURCE_EFI_X86) += efi_x86.o
-obj-$(CONFIG_CLOCKSOURCE_KVX)     += kvx_timer.o
 obj-$(CONFIG_CLOCKSOURCE_MVEBU)   += mvebu.o
 obj-$(CONFIG_CLOCKSOURCE_NOMADIK) += nomadik.o
 obj-$(CONFIG_CLOCKSOURCE_ORION)   += orion.o
drivers/clocksource/kvx_timer.c deleted +0 -60

60 lines not on this page · raw message

Signature · 1 line
2.55.0
#3 lore raw

PATCH 3/5 drivers: nvmem: remove KVX OTP support

In reply to [email protected]

From: Clément Léger <[email protected]>

Remove the kvx OTP driver.

---
 drivers/nvmem/Kconfig      |  7 ---
 drivers/nvmem/Makefile     |  3 --
 drivers/nvmem/kvx-otp-nv.c | 95 --------------------------------------
 3 files changed, 105 deletions(-)
 delete mode 100644 drivers/nvmem/kvx-otp-nv.c
drivers/nvmem/Kconfig +0 -7
index d66c4a88fe..b7501798cb 100644
@@ -106,13 +106,6 @@ config STM32_BSEC_OPTEE_TA
 	  trusted application STM32MP BSEC in addition to the older SMC SiP
 	  service.
 
-config KVX_OTP_NV
-	tristate "kalray KVX OTP Non volatile regs Support"
-	depends on KVX
-	help
-	  This is a simple driver to dump specified values of KVX OTP non
-	  volatile regs.
-
 config STARFIVE_OTP
 	tristate "Starfive OTP Support"
 	depends on SOC_STARFIVE
drivers/nvmem/Makefile +0 -3
index cb5e6d6330..8f1bb0bf44 100644
@@ -28,9 +28,6 @@ obj-$(CONFIG_STM32_BSEC)	+= nvmem_bsec.o
 nvmem_bsec-y			:= bsec.o
 nvmem_bsec-$(CONFIG_STM32_BSEC_OPTEE_TA) += stm32-bsec-optee-ta.o
 
-obj-$(CONFIG_KVX_OTP_NV)	+= nvmem-kvx-otp-nv.o
-nvmem-kvx-otp-nv-y		:= kvx-otp-nv.o
-
 obj-$(CONFIG_NVMEM_ROCKCHIP_OTP)+= rockchip-otp.o
 obj-$(CONFIG_STARFIVE_OTP)	+= starfive-otp.o
 obj-$(CONFIG_IMX_OCOTP_ELE)	+= imx-ocotp-ele.o
drivers/nvmem/kvx-otp-nv.c deleted +0 -95

95 lines not on this page · raw message

Signature · 1 line
2.55.0
#4 lore raw

PATCH 4/5 drivers: watchdog: remove KVX watchdog

In reply to [email protected]

From: Clément Léger <[email protected]>

Remove the kvx watchdog driver.

---
 drivers/watchdog/Kconfig   |  17 ------
 drivers/watchdog/Makefile  |   1 -
 drivers/watchdog/kvx_wdt.c | 109 -------------------------------------
 3 files changed, 127 deletions(-)
 delete mode 100644 drivers/watchdog/kvx_wdt.c
drivers/watchdog/Kconfig +0 -17
index 14fdb7cf68..068d3c93dd 100644
@@ -83,23 +83,6 @@ config WATCHDOG_ORION
 	help
 	  Add support for watchdog on the Marvall Armada XP
 
-config WATCHDOG_KVX
-	bool "KVX Core watchdog"
-	depends on KVX
-	help
-	  Add support for the KVX core watchdog.
-
-config WATCHDOG_KVX_EARLY_INIT
-	bool "KVX Core watchdog early init"
-	depends on WATCHDOG_KVX
-	help
-	  Activate the watchdog with early initcall
-
-config WATCHDOG_KVX_EARLY_TIMEOUT
-	int "KVX Core watchdog early timeout in cycles"
-	depends on WATCHDOG_KVX_EARLY_INIT
-	default 100000000
-
 config WATCHDOG_BCM2835
 	bool "Watchdog for BCM283x SoCs"
 	depends on ARCH_BCM283X || COMPILE_TEST
drivers/watchdog/Makefile +0 -1
index c49d090f8d..4b7fd74dfa 100644
@@ -11,7 +11,6 @@ obj-$(CONFIG_WATCHDOG_JZ4740) += jz4740.o
 obj-$(CONFIG_WATCHDOG_IMX_RESET_SOURCE) += imxwd.o
 obj-$(CONFIG_WATCHDOG_IMX) += imxwd.o
 obj-$(CONFIG_WATCHDOG_IMXULP) += imxulp-wdt.o
-obj-$(CONFIG_WATCHDOG_KVX) += kvx_wdt.o
 obj-$(CONFIG_WATCHDOG_ORION) += orion_wdt.o
 obj-$(CONFIG_ARCH_BCM283X) += bcm2835_wdt.o
 obj-$(CONFIG_RAVE_SP_WATCHDOG) += rave-sp-wdt.o
drivers/watchdog/kvx_wdt.c deleted +0 -109

109 lines not on this page · raw message

Signature · 1 line
2.55.0
Applied
#5 lore raw
In reply to [email protected]
Quoted 11 lines · On Fri, 23 Oct 2026 22:05:02 +0200, [email protected] wrote:

From: Clément Léger <[email protected]>

The barebox kvx port was upstreamed in the hope it was the first one of a long series of other contributions (GCC, Linux, etc). Unfortunately, the kvx architecture remained closed and there was no public specification nor upstreamed compiler. Additionally, there are no users outside of the company itself and there is not possible to obtain a board with such SoC. Latest modifications of the architecture also made it non compatible with this architecture.

[...]

Applied, thanks!

[1/5] drivers: soc: remove KVX support
https://git.pengutronix.de/cgit/barebox/commit/?id=d1fc2fbda25c (link may not be stable)
[2/5] drivers: clocksource: remove KVX timer

      https://git.pengutronix.de/cgit/barebox/commit/?id=80d68c480942 (link may not be stable)

[3/5] drivers: nvmem: remove KVX OTP support
https://git.pengutronix.de/cgit/barebox/commit/?id=9ee59c77651a (link may not be stable)
[4/5] drivers: watchdog: remove KVX watchdog
https://git.pengutronix.de/cgit/barebox/commit/?id=79fbc2fee628 (link may not be stable)

Best regards,

Signature · 1 line
Sascha Hauer <[email protected]>
#6 lore raw
In reply to [email protected]

Hi Clement,

Quoted 10 lines · clement.leger

From: Clément Léger <[email protected]>

The barebox kvx port was upstreamed in the hope it was the first one of a long series of other contributions (GCC, Linux, etc). Unfortunately, the kvx architecture remained closed and there was no public specification nor upstreamed compiler. Additionally, there are no users outside of the company itself and there is not possible to obtain a board with such SoC. Latest modifications of the architecture also made it non compatible with this architecture.

Quoted 4 lines

As discussed during LPC, there is no point in keeping this architecture since it is unmaintained and slows down the effort to get Rust support on barebox. Remove the whole architecture support and drivers as well.

That's really a pity. I was quite happy to have such an early barebox support for a new architecture. Given what you say here it makes sense to drop that support, so I'll apply this being sad about it.

Anyway, thanks for your contributions so far.

Sascha

Quoted 144 lines

Clément Léger (5):
drivers: soc: remove KVX support
drivers: clocksource: remove KVX timer
drivers: nvmem: remove KVX OTP support
drivers: watchdog: remove KVX watchdog
arch: kvx: remove support

 .github/workflows/build-defconfigs.yml |    2 +-
 Documentation/boards/kvx.rst           |   98 -
 Documentation/gen_magicvars.py         |   19 -
 Documentation/user/barebox.rst         |    1 -
 arch/kvx/Kbuild                        |    5 -
 arch/kvx/Kconfig                       |   67 -
 arch/kvx/Kconfig.debug                 |    2 -
 arch/kvx/Makefile                      |   36 -
 arch/kvx/configs/generic_defconfig     |   14 -
 arch/kvx/cpu/Makefile                  |    7 -
 arch/kvx/cpu/barebox.lds.S             |   88 -
 arch/kvx/cpu/cpu.c                     |   32 -
 arch/kvx/cpu/exception.S               |   35 -
 arch/kvx/cpu/reset.c                   |   68 -
 arch/kvx/cpu/start.S                   |  198 -
 arch/kvx/dts/Makefile                  |    7 -
 arch/kvx/dts/k200.dts                  |  111 -
 arch/kvx/include/asm/barebox.lds.h     |    6 -
 arch/kvx/include/asm/barrier.h         |   20 -
 arch/kvx/include/asm/bitops.h          |   27 -
 arch/kvx/include/asm/bitsperlong.h     |   12 -
 arch/kvx/include/asm/byteorder.h       |   12 -
 arch/kvx/include/asm/cache.h           |   34 -
 arch/kvx/include/asm/common.h          |   28 -
 arch/kvx/include/asm/dma.h             |   30 -
 arch/kvx/include/asm/elf.h             |   21 -
 arch/kvx/include/asm/ftu.h             |   24 -
 arch/kvx/include/asm/io.h              |   14 -
 arch/kvx/include/asm/linkage.h         |   10 -
 arch/kvx/include/asm/mmu.h             |    8 -
 arch/kvx/include/asm/posix_types.h     |   12 -
 arch/kvx/include/asm/privilege.h       |  244 --
 arch/kvx/include/asm/sections.h        |   12 -
 arch/kvx/include/asm/setjmp.h          |   17 -
 arch/kvx/include/asm/sfr.h             |   51 -
 arch/kvx/include/asm/sfr_defs.h        |   17 -
 arch/kvx/include/asm/string.h          |   14 -
 arch/kvx/include/asm/swab.h            |   14 -
 arch/kvx/include/asm/sys_arch.h        |   49 -
 arch/kvx/include/asm/types.h           |   14 -
 arch/kvx/include/asm/unaligned.h       |   17 -
 arch/kvx/include/asm/v1/sfr_defs.h     | 5027 ----------------------
 arch/kvx/include/asm/v2/sfr_defs.h     | 5389 ------------------------
 arch/kvx/include/asm/word-at-a-time.h  |    2 -
 arch/kvx/lib/Makefile                  |    6 -
 arch/kvx/lib/asm-offsets.c             |   11 -
 arch/kvx/lib/board.c                   |  159 -
 arch/kvx/lib/bootm.c                   |  172 -
 arch/kvx/lib/cache.c                   |   25 -
 arch/kvx/lib/cpuinfo.c                 |   20 -
 arch/kvx/lib/dma-default.c             |   61 -
 arch/kvx/lib/dtb.c                     |   14 -
 arch/kvx/lib/poweroff.c                |   56 -
 arch/kvx/lib/setjmp.S                  |   85 -
 arch/kvx/um/Makefile                   |    4 -
 drivers/clocksource/Kconfig            |    4 -
 drivers/clocksource/Makefile           |    1 -
 drivers/clocksource/kvx_timer.c        |   60 -
 drivers/nvmem/Kconfig                  |    7 -
 drivers/nvmem/Makefile                 |    3 -
 drivers/nvmem/kvx-otp-nv.c             |   95 -
 drivers/of/Kconfig                     |    2 +-
 drivers/soc/Kconfig                    |    1 -
 drivers/soc/Makefile                   |    1 -
 drivers/soc/kvx/Kconfig                |   10 -
 drivers/soc/kvx/Makefile               |    1 -
 drivers/soc/kvx/kvx_socinfo.c          |  178 -
 drivers/watchdog/Kconfig               |   17 -
 drivers/watchdog/Makefile              |    1 -
 drivers/watchdog/kvx_wdt.c             |  109 -
 test/Containerfile                     |    7 -
 test/kvx/generic_defconfig.yaml        |   17 -
 72 files changed, 2 insertions(+), 13040 deletions(-)
 delete mode 100644 Documentation/boards/kvx.rst
 delete mode 100644 arch/kvx/Kbuild
 delete mode 100644 arch/kvx/Kconfig
 delete mode 100644 arch/kvx/Kconfig.debug
 delete mode 100644 arch/kvx/Makefile
 delete mode 100644 arch/kvx/configs/generic_defconfig
 delete mode 100644 arch/kvx/cpu/Makefile
 delete mode 100644 arch/kvx/cpu/barebox.lds.S
 delete mode 100644 arch/kvx/cpu/cpu.c
 delete mode 100644 arch/kvx/cpu/exception.S
 delete mode 100644 arch/kvx/cpu/reset.c
 delete mode 100644 arch/kvx/cpu/start.S
 delete mode 100644 arch/kvx/dts/Makefile
 delete mode 100644 arch/kvx/dts/k200.dts
 delete mode 100644 arch/kvx/include/asm/barebox.lds.h
 delete mode 100644 arch/kvx/include/asm/barrier.h
 delete mode 100644 arch/kvx/include/asm/bitops.h
 delete mode 100644 arch/kvx/include/asm/bitsperlong.h
 delete mode 100644 arch/kvx/include/asm/byteorder.h
 delete mode 100644 arch/kvx/include/asm/cache.h
 delete mode 100644 arch/kvx/include/asm/common.h
 delete mode 100644 arch/kvx/include/asm/dma.h
 delete mode 100644 arch/kvx/include/asm/elf.h
 delete mode 100644 arch/kvx/include/asm/ftu.h
 delete mode 100644 arch/kvx/include/asm/io.h
 delete mode 100644 arch/kvx/include/asm/linkage.h
 delete mode 100644 arch/kvx/include/asm/mmu.h
 delete mode 100644 arch/kvx/include/asm/posix_types.h
 delete mode 100644 arch/kvx/include/asm/privilege.h
 delete mode 100644 arch/kvx/include/asm/sections.h
 delete mode 100644 arch/kvx/include/asm/setjmp.h
 delete mode 100644 arch/kvx/include/asm/sfr.h
 delete mode 100644 arch/kvx/include/asm/sfr_defs.h
 delete mode 100644 arch/kvx/include/asm/string.h
 delete mode 100644 arch/kvx/include/asm/swab.h
 delete mode 100644 arch/kvx/include/asm/sys_arch.h
 delete mode 100644 arch/kvx/include/asm/types.h
 delete mode 100644 arch/kvx/include/asm/unaligned.h
 delete mode 100644 arch/kvx/include/asm/v1/sfr_defs.h
 delete mode 100644 arch/kvx/include/asm/v2/sfr_defs.h
 delete mode 100644 arch/kvx/include/asm/word-at-a-time.h
 delete mode 100644 arch/kvx/lib/Makefile
 delete mode 100644 arch/kvx/lib/asm-offsets.c
 delete mode 100644 arch/kvx/lib/board.c
 delete mode 100644 arch/kvx/lib/bootm.c
 delete mode 100644 arch/kvx/lib/cache.c
 delete mode 100644 arch/kvx/lib/cpuinfo.c
 delete mode 100644 arch/kvx/lib/dma-default.c
 delete mode 100644 arch/kvx/lib/dtb.c
 delete mode 100644 arch/kvx/lib/poweroff.c
 delete mode 100644 arch/kvx/lib/setjmp.S
 delete mode 100644 arch/kvx/um/Makefile
 delete mode 100644 drivers/clocksource/kvx_timer.c
 delete mode 100644 drivers/nvmem/kvx-otp-nv.c
 delete mode 100644 drivers/soc/kvx/Kconfig
 delete mode 100644 drivers/soc/kvx/Makefile
 delete mode 100644 drivers/soc/kvx/kvx_socinfo.c
 delete mode 100644 drivers/watchdog/kvx_wdt.c
 delete mode 100644 test/kvx/generic_defconfig.yaml
Signature · 1 line
2.55.0
Signature · 4 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#7 lore raw
Quoted 13 lines · Sascha Hauer

Hi Clement,

Quoted 10 lines · clement.leger

From: Clément Léger <[email protected]>

The barebox kvx port was upstreamed in the hope it was the first one of a long series of other contributions (GCC, Linux, etc). Unfortunately, the kvx architecture remained closed and there was no public specification nor upstreamed compiler. Additionally, there are no users outside of the company itself and there is not possible to obtain a board with such SoC. Latest modifications of the architecture also made it non compatible with this architecture.

Quoted 8 lines
Quoted 4 lines

As discussed during LPC, there is no point in keeping this architecture since it is unmaintained and slows down the effort to get Rust support on barebox. Remove the whole architecture support and drivers as well.

That's really a pity. I was quite happy to have such an early barebox support for a new architecture. Given what you say here it makes sense to drop that support, so I'll apply this being sad about it.

Hi Sascha,

Indeed, that's a pity. I guess the developer will to upstream an entire architecture support is not sufficient to make it a reality.

Clément

Quoted 150 lines

Anyway, thanks for your contributions so far.

Sascha

Quoted 144 lines

Clément Léger (5):
drivers: soc: remove KVX support
drivers: clocksource: remove KVX timer
drivers: nvmem: remove KVX OTP support
drivers: watchdog: remove KVX watchdog
arch: kvx: remove support

  .github/workflows/build-defconfigs.yml |    2 +-
  Documentation/boards/kvx.rst           |   98 -
  Documentation/gen_magicvars.py         |   19 -
  Documentation/user/barebox.rst         |    1 -
  arch/kvx/Kbuild                        |    5 -
  arch/kvx/Kconfig                       |   67 -
  arch/kvx/Kconfig.debug                 |    2 -
  arch/kvx/Makefile                      |   36 -
  arch/kvx/configs/generic_defconfig     |   14 -
  arch/kvx/cpu/Makefile                  |    7 -
  arch/kvx/cpu/barebox.lds.S             |   88 -
  arch/kvx/cpu/cpu.c                     |   32 -
  arch/kvx/cpu/exception.S               |   35 -
  arch/kvx/cpu/reset.c                   |   68 -
  arch/kvx/cpu/start.S                   |  198 -
  arch/kvx/dts/Makefile                  |    7 -
  arch/kvx/dts/k200.dts                  |  111 -
  arch/kvx/include/asm/barebox.lds.h     |    6 -
  arch/kvx/include/asm/barrier.h         |   20 -
  arch/kvx/include/asm/bitops.h          |   27 -
  arch/kvx/include/asm/bitsperlong.h     |   12 -
  arch/kvx/include/asm/byteorder.h       |   12 -
  arch/kvx/include/asm/cache.h           |   34 -
  arch/kvx/include/asm/common.h          |   28 -
  arch/kvx/include/asm/dma.h             |   30 -
  arch/kvx/include/asm/elf.h             |   21 -
  arch/kvx/include/asm/ftu.h             |   24 -
  arch/kvx/include/asm/io.h              |   14 -
  arch/kvx/include/asm/linkage.h         |   10 -
  arch/kvx/include/asm/mmu.h             |    8 -
  arch/kvx/include/asm/posix_types.h     |   12 -
  arch/kvx/include/asm/privilege.h       |  244 --
  arch/kvx/include/asm/sections.h        |   12 -
  arch/kvx/include/asm/setjmp.h          |   17 -
  arch/kvx/include/asm/sfr.h             |   51 -
  arch/kvx/include/asm/sfr_defs.h        |   17 -
  arch/kvx/include/asm/string.h          |   14 -
  arch/kvx/include/asm/swab.h            |   14 -
  arch/kvx/include/asm/sys_arch.h        |   49 -
  arch/kvx/include/asm/types.h           |   14 -
  arch/kvx/include/asm/unaligned.h       |   17 -
  arch/kvx/include/asm/v1/sfr_defs.h     | 5027 ----------------------
  arch/kvx/include/asm/v2/sfr_defs.h     | 5389 ------------------------
  arch/kvx/include/asm/word-at-a-time.h  |    2 -
  arch/kvx/lib/Makefile                  |    6 -
  arch/kvx/lib/asm-offsets.c             |   11 -
  arch/kvx/lib/board.c                   |  159 -
  arch/kvx/lib/bootm.c                   |  172 -
  arch/kvx/lib/cache.c                   |   25 -
  arch/kvx/lib/cpuinfo.c                 |   20 -
  arch/kvx/lib/dma-default.c             |   61 -
  arch/kvx/lib/dtb.c                     |   14 -
  arch/kvx/lib/poweroff.c                |   56 -
  arch/kvx/lib/setjmp.S                  |   85 -
  arch/kvx/um/Makefile                   |    4 -
  drivers/clocksource/Kconfig            |    4 -
  drivers/clocksource/Makefile           |    1 -
  drivers/clocksource/kvx_timer.c        |   60 -
  drivers/nvmem/Kconfig                  |    7 -
  drivers/nvmem/Makefile                 |    3 -
  drivers/nvmem/kvx-otp-nv.c             |   95 -
  drivers/of/Kconfig                     |    2 +-
  drivers/soc/Kconfig                    |    1 -
  drivers/soc/Makefile                   |    1 -
  drivers/soc/kvx/Kconfig                |   10 -
  drivers/soc/kvx/Makefile               |    1 -
  drivers/soc/kvx/kvx_socinfo.c          |  178 -
  drivers/watchdog/Kconfig               |   17 -
  drivers/watchdog/Makefile              |    1 -
  drivers/watchdog/kvx_wdt.c             |  109 -
  test/Containerfile                     |    7 -
  test/kvx/generic_defconfig.yaml        |   17 -
  72 files changed, 2 insertions(+), 13040 deletions(-)

delete mode 100644 Documentation/boards/kvx.rst delete mode 100644 arch/kvx/Kbuild
delete mode 100644 arch/kvx/Kconfig
delete mode 100644 arch/kvx/Kconfig.debug delete mode 100644 arch/kvx/Makefile
delete mode 100644 arch/kvx/configs/generic_defconfig delete mode 100644 arch/kvx/cpu/Makefile
delete mode 100644 arch/kvx/cpu/barebox.lds.S delete mode 100644 arch/kvx/cpu/cpu.c
delete mode 100644 arch/kvx/cpu/exception.S delete mode 100644 arch/kvx/cpu/reset.c
delete mode 100644 arch/kvx/cpu/start.S
delete mode 100644 arch/kvx/dts/Makefile
delete mode 100644 arch/kvx/dts/k200.dts
delete mode 100644 arch/kvx/include/asm/barebox.lds.h delete mode 100644 arch/kvx/include/asm/barrier.h delete mode 100644 arch/kvx/include/asm/bitops.h delete mode 100644 arch/kvx/include/asm/bitsperlong.h delete mode 100644 arch/kvx/include/asm/byteorder.h delete mode 100644 arch/kvx/include/asm/cache.h delete mode 100644 arch/kvx/include/asm/common.h delete mode 100644 arch/kvx/include/asm/dma.h delete mode 100644 arch/kvx/include/asm/elf.h delete mode 100644 arch/kvx/include/asm/ftu.h delete mode 100644 arch/kvx/include/asm/io.h delete mode 100644 arch/kvx/include/asm/linkage.h delete mode 100644 arch/kvx/include/asm/mmu.h delete mode 100644 arch/kvx/include/asm/posix_types.h delete mode 100644 arch/kvx/include/asm/privilege.h delete mode 100644 arch/kvx/include/asm/sections.h delete mode 100644 arch/kvx/include/asm/setjmp.h delete mode 100644 arch/kvx/include/asm/sfr.h delete mode 100644 arch/kvx/include/asm/sfr_defs.h delete mode 100644 arch/kvx/include/asm/string.h delete mode 100644 arch/kvx/include/asm/swab.h delete mode 100644 arch/kvx/include/asm/sys_arch.h delete mode 100644 arch/kvx/include/asm/types.h delete mode 100644 arch/kvx/include/asm/unaligned.h delete mode 100644 arch/kvx/include/asm/v1/sfr_defs.h delete mode 100644 arch/kvx/include/asm/v2/sfr_defs.h delete mode 100644 arch/kvx/include/asm/word-at-a-time.h delete mode 100644 arch/kvx/lib/Makefile
delete mode 100644 arch/kvx/lib/asm-offsets.c delete mode 100644 arch/kvx/lib/board.c
delete mode 100644 arch/kvx/lib/bootm.c
delete mode 100644 arch/kvx/lib/cache.c
delete mode 100644 arch/kvx/lib/cpuinfo.c delete mode 100644 arch/kvx/lib/dma-default.c delete mode 100644 arch/kvx/lib/dtb.c
delete mode 100644 arch/kvx/lib/poweroff.c delete mode 100644 arch/kvx/lib/setjmp.S
delete mode 100644 arch/kvx/um/Makefile
delete mode 100644 drivers/clocksource/kvx_timer.c delete mode 100644 drivers/nvmem/kvx-otp-nv.c delete mode 100644 drivers/soc/kvx/Kconfig delete mode 100644 drivers/soc/kvx/Makefile delete mode 100644 drivers/soc/kvx/kvx_socinfo.c delete mode 100644 drivers/watchdog/kvx_wdt.c delete mode 100644 test/kvx/generic_defconfig.yaml

Signature · 1 line
2.55.0