Skip to contentSkip to conversation

stv0991: Remove stv0991 board and architecture code

PATCH In review Tom Rini 1 participant 2 messages Mar 8, 2024 – Mar 14, 2024

Subsystems (2)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 stv0991: Remove stv0991 board and architecture code

This architecture and related board are unmaintained currently and have been for a long time. Remove them.

---
 MAINTAINERS                                   |   7 -
 arch/arm/Kconfig                              |  15 --
 arch/arm/cpu/armv7/Makefile                   |   1 -
 arch/arm/cpu/armv7/stv0991/Makefile           |   7 -
 arch/arm/cpu/armv7/stv0991/clock.c            |  42 ------
 arch/arm/cpu/armv7/stv0991/lowlevel.S         |  11 --
 arch/arm/cpu/armv7/stv0991/pinmux.c           |  66 ---------
 arch/arm/cpu/armv7/stv0991/reset.c            |  27 ----
 arch/arm/cpu/armv7/stv0991/timer.c            | 114 ---------------
 arch/arm/dts/Makefile                         |   1 -
 arch/arm/dts/stv0991.dts                      |  55 --------
 arch/arm/include/asm/arch-stv0991/gpio.h      |  21 ---
 arch/arm/include/asm/arch-stv0991/hardware.h  |  72 ----------
 .../include/asm/arch-stv0991/stv0991_cgu.h    | 130 ------------------
 .../include/asm/arch-stv0991/stv0991_creg.h   | 103 --------------
 .../include/asm/arch-stv0991/stv0991_defs.h   |  14 --
 .../include/asm/arch-stv0991/stv0991_gpt.h    |  41 ------
 .../include/asm/arch-stv0991/stv0991_periph.h |  45 ------
 .../include/asm/arch-stv0991/stv0991_wdru.h   |  27 ----
 board/st/stv0991/Kconfig                      |  15 --
 board/st/stv0991/MAINTAINERS                  |   6 -
 board/st/stv0991/Makefile                     |   6 -
 board/st/stv0991/stv0991.c                    | 119 ----------------
 configs/stv0991_defconfig                     |  44 ------
 include/configs/stv0991.h                     |  25 ----
 25 files changed, 1014 deletions(-)
 delete mode 100644 arch/arm/cpu/armv7/stv0991/Makefile
 delete mode 100644 arch/arm/cpu/armv7/stv0991/clock.c
 delete mode 100644 arch/arm/cpu/armv7/stv0991/lowlevel.S
 delete mode 100644 arch/arm/cpu/armv7/stv0991/pinmux.c
 delete mode 100644 arch/arm/cpu/armv7/stv0991/reset.c
 delete mode 100644 arch/arm/cpu/armv7/stv0991/timer.c
 delete mode 100644 arch/arm/dts/stv0991.dts
 delete mode 100644 arch/arm/include/asm/arch-stv0991/gpio.h
 delete mode 100644 arch/arm/include/asm/arch-stv0991/hardware.h
 delete mode 100644 arch/arm/include/asm/arch-stv0991/stv0991_cgu.h
 delete mode 100644 arch/arm/include/asm/arch-stv0991/stv0991_creg.h
 delete mode 100644 arch/arm/include/asm/arch-stv0991/stv0991_defs.h
 delete mode 100644 arch/arm/include/asm/arch-stv0991/stv0991_gpt.h
 delete mode 100644 arch/arm/include/asm/arch-stv0991/stv0991_periph.h
 delete mode 100644 arch/arm/include/asm/arch-stv0991/stv0991_wdru.h
 delete mode 100644 board/st/stv0991/Kconfig
 delete mode 100644 board/st/stv0991/MAINTAINERS
 delete mode 100644 board/st/stv0991/Makefile
 delete mode 100644 board/st/stv0991/stv0991.c
 delete mode 100644 configs/stv0991_defconfig
 delete mode 100644 include/configs/stv0991.h
MAINTAINERS +0 -7
index fbb82b3df5d4..e90cc094a7f1 100644
@@ -683,13 +683,6 @@ F:	tools/stm32image.c
 N:	stm
 N:	stm32
 
-
-ARM STM STV0991
-M:	Vikas Manocha <[email protected]>
-S:	Maintained
-F:	arch/arm/cpu/armv7/stv0991/
-F:	arch/arm/include/asm/arch-stv0991/
-
 ARM SUNXI
 M:	Jagan Teki <[email protected]>
 M:	Andre Przywara <[email protected]>
arch/arm/Kconfig +0 -15
index 65fa7ba4ce77..d15ccc7bb284 100644
@@ -631,20 +631,6 @@ config ARCH_ORION5X
 	select SPL_SEPARATE_BSS if SPL
 	select TIMER
 
-config TARGET_STV0991
-	bool "Support stv0991"
-	select CPU_V7A
-	select DM
-	select DM_SERIAL
-	select DM_SPI
-	select DM_SPI_FLASH
-	select GPIO_EXTRA_HEADER
-	select PL01X_SERIAL
-	select MTD
-	select SPI
-	select SPI_FLASH
-	imply CMD_DM
-
 config ARCH_BCM283X
 	bool "Broadcom BCM283X family"
 	select DM
@@ -2358,7 +2344,6 @@ source "board/samsung/common/Kconfig"
 source "board/siemens/common/Kconfig"
 source "board/seeed/npi_imx6ull/Kconfig"
 source "board/socionext/developerbox/Kconfig"
-source "board/st/stv0991/Kconfig"
 source "board/tcl/sl50/Kconfig"
 source "board/traverse/ten64/Kconfig"
 source "board/variscite/dart_6ul/Kconfig"
arch/arm/cpu/armv7/Makefile +0 -1
index 653eef8ad79e..99cf9eb515f9 100644
@@ -37,7 +37,6 @@ obj-$(if $(filter bcm281xx,$(SOC)),y) += bcm281xx/
 obj-$(if $(filter bcmcygnus,$(SOC)),y) += bcmcygnus/
 obj-$(if $(filter bcmnsp,$(SOC)),y) += bcmnsp/
 obj-$(if $(filter ls102xa,$(SOC)),y) += ls102xa/
-obj-$(if $(filter stv0991,$(SOC)),y) += stv0991/
 obj-$(CONFIG_ARCH_SUNXI) += sunxi/
 obj-$(CONFIG_VF610) += vf610/
 obj-$(CONFIG_ARCH_S5P4418) += s5p4418/
arch/arm/cpu/armv7/stv0991/Makefile deleted +0 -7
deleted file mode 100644
index 3be5eba4b122..000000000000
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2014, STMicroelectronics - All Rights Reserved
-# Author(s): Vikas Manocha, <[email protected]> for STMicroelectronics.
-
-obj-y	:= timer.o clock.o pinmux.o reset.o
-obj-y	+= lowlevel.o
arch/arm/cpu/armv7/stv0991/clock.c deleted +0 -42

42 lines not on this page · raw message

arch/arm/cpu/armv7/stv0991/lowlevel.S deleted +0 -11
deleted file mode 100644
index 5733eaa15c0b..000000000000
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2014 STMicroelectronics
- */
-
-#include <config.h>
-#include <linux/linkage.h>
-
-ENTRY(lowlevel_init)
-	mov	pc, lr
-ENDPROC(lowlevel_init)
arch/arm/cpu/armv7/stv0991/pinmux.c deleted +0 -66

66 lines not on this page · raw message

arch/arm/cpu/armv7/stv0991/reset.c deleted +0 -27
deleted file mode 100644
index 77d4477c8dc5..000000000000
@@ -1,27 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (C) 2014, STMicroelectronics - All Rights Reserved
- * Author(s): Vikas Manocha, <[email protected]> for STMicroelectronics.
- */
-
-#include <common.h>
-#include <cpu_func.h>
-#include <asm/io.h>
-#include <asm/arch/stv0991_wdru.h>
-#include <linux/delay.h>
-void reset_cpu(void)
-{
-	puts("System is going to reboot ...\n");
-	/*
-	 * This 1 second delay will allow the above message
-	 * to be printed before reset
-	 */
-	udelay((1000 * 1000));
-
-	/* Setting bit 1 of the WDRU unit will reset the SoC */
-	writel(WDRU_RST_SYS, &stv0991_wd_ru_ptr->wdru_ctrl1);
-
-	/* system will restart */
-	while (1)
-		;
-}
arch/arm/cpu/armv7/stv0991/timer.c deleted +0 -114

114 lines not on this page · raw message

arch/arm/dts/Makefile +0 -1
index 971a4065faff..f4ef7f09af80 100644
@@ -569,7 +569,6 @@ dtb-$(CONFIG_TARGET_AM57XX_EVM) += am57xx-beagle-x15.dtb \
 	am574x-idk.dtb \
 	am572x-idk.dtb	\
 	am571x-idk.dtb
-dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtb
 
 dtb-$(CONFIG_ARCH_LS1021A) += ls1021a-qds-duart.dtb \
 	ls1021a-qds-lpuart.dtb \
arch/arm/dts/stv0991.dts deleted +0 -55

55 lines not on this page · raw message

arch/arm/include/asm/arch-stv0991/gpio.h deleted +0 -21
deleted file mode 100644
index b27f4078582c..000000000000
@@ -1,21 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2014, STMicroelectronics - All Rights Reserved
- * Author(s): Vikas Manocha, <[email protected]> for STMicroelectronics.
- */
-
-#ifndef __ASM_ARCH_STV0991_GPIO_H
-#define __ASM_ARCH_STV0991_GPIO_H
-
-enum gpio_direction {
-	GPIO_DIRECTION_IN,
-	GPIO_DIRECTION_OUT,
-};
-
-struct gpio_regs {
-	u32 data;		/* offset 0x0 */
-	u32 reserved[0xff];	/* 0x4--0x3fc */
-	u32 dir;		/* offset 0x400 */
-};
-
-#endif	/* __ASM_ARCH_STV0991_GPIO_H */
arch/arm/include/asm/arch-stv0991/hardware.h deleted +0 -72

72 lines not on this page · raw message

arch/arm/include/asm/arch-stv0991/stv0991_cgu.h deleted +0 -130

130 lines not on this page · raw message

arch/arm/include/asm/arch-stv0991/stv0991_creg.h deleted +0 -103

103 lines not on this page · raw message

arch/arm/include/asm/arch-stv0991/stv0991_defs.h deleted +0 -14
deleted file mode 100644
index 98d7cde85bc2..000000000000
@@ -1,14 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2014, STMicroelectronics - All Rights Reserved
- * Author(s): Vikas Manocha, <[email protected]> for STMicroelectronics.
- */
-
-#ifndef __STV0991_DEFS_H__
-#define __STV0991_DEFS_H__
-#include <asm/arch/stv0991_periph.h>
-
-extern int stv0991_pinmux_config(enum periph_id);
-extern int clock_setup(enum periph_clock);
-
-#endif
arch/arm/include/asm/arch-stv0991/stv0991_gpt.h deleted +0 -41

41 lines not on this page · raw message

arch/arm/include/asm/arch-stv0991/stv0991_periph.h deleted +0 -45

45 lines not on this page · raw message

arch/arm/include/asm/arch-stv0991/stv0991_wdru.h deleted +0 -27
deleted file mode 100644
index 8cb8a8a61375..000000000000
@@ -1,27 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2014, STMicroelectronics - All Rights Reserved
- * Author(s): Vikas Manocha, <[email protected]> for STMicroelectronics.
- */
-
-#ifndef _STV0991_WD_RST_H
-#define _STV0991_WD_RST_H
-#include <asm/arch-stv0991/hardware.h>
-
-struct stv0991_wd_ru {
-	u32 wdru_config;
-	u32 wdru_ctrl1;
-	u32 wdru_ctrl2;
-	u32 wdru_tim;
-	u32 wdru_count;
-	u32 wdru_stat;
-	u32 wdru_wrlock;
-};
-
-struct stv0991_wd_ru *const stv0991_wd_ru_ptr = \
-		(struct stv0991_wd_ru *)WDRU_BASE_ADDR;
-
-/* Watchdog control register */
-#define WDRU_RST_SYS		0x1
-
-#endif
board/st/stv0991/Kconfig deleted +0 -15
deleted file mode 100644
index 007712f9c61d..000000000000
@@ -1,15 +0,0 @@
-if TARGET_STV0991
-
-config SYS_BOARD
-	default "stv0991"
-
-config SYS_VENDOR
-	default "st"
-
-config SYS_SOC
-	default "stv0991"
-
-config SYS_CONFIG_NAME
-	default "stv0991"
-
-endif
board/st/stv0991/MAINTAINERS deleted +0 -6
deleted file mode 100644
index e7a2ccaa1f2d..000000000000
@@ -1,6 +0,0 @@
-STV0991 APPLICATION BOARD
-M:	Vikas Manocha <[email protected]>
-S:	Maintained
-F:	board/st/stv0991/
-F:	include/configs/stv0991.h
-F:	configs/stv0991_defconfig
board/st/stv0991/Makefile deleted +0 -6
deleted file mode 100644
index 7f6d719c3227..000000000000
@@ -1,6 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2014, STMicroelectronics - All Rights Reserved
-# Author(s): Vikas Manocha, <[email protected]> for STMicroelectronics.
-
-obj-y	:= stv0991.o
board/st/stv0991/stv0991.c deleted +0 -119

119 lines not on this page · raw message

configs/stv0991_defconfig deleted +0 -44

44 lines not on this page · raw message

include/configs/stv0991.h deleted +0 -25
deleted file mode 100644
index 7eadb6d421e5..000000000000
@@ -1,25 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2014, STMicroelectronics - All Rights Reserved
- * Author(s): Vikas Manocha, <[email protected]> for STMicroelectronics.
- */
-
-#ifndef __CONFIG_STV0991_H
-#define __CONFIG_STV0991_H
-#define CFG_SYS_EXCEPTION_VECTORS_HIGH
-
-/* ram memory-related information */
-#define PHYS_SDRAM_1				0x00000000
-#define CFG_SYS_SDRAM_BASE			PHYS_SDRAM_1
-#define PHYS_SDRAM_1_SIZE			0x00198000
-
-/* user interface */
-
-/* MISC */
-#define CFG_SYS_INIT_RAM_SIZE		0x8000
-#define CFG_SYS_INIT_RAM_ADDR		0x00190000
-/* U-Boot Load Address */
-
-/* Misc configuration */
-
-#endif /* __CONFIG_H */
Signature · 1 line
2.34.1
author
#1 lore raw
Quoted 4 lines · Tom Rini

This architecture and related board are unmaintained currently and have been for a long time. Remove them.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom