Skip to contentSkip to conversation

arm: Remove ti816x_evm board and ti816x SoC support

PATCH New Tom Rini 1 participant 1 message May 11, 2023

Subsystems (5)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 arm: Remove ti816x_evm board and ti816x SoC support

This platform is currently unmaintained and untested, so remove it. Further, as it is the only TI816X SoC example, remove related files as well.

---
 arch/arm/dts/Makefile                         |   1 -
 arch/arm/dts/dm8168-evm-u-boot.dtsi           |  12 -
 arch/arm/dts/dm8168-evm.dts                   | 171 ------
 arch/arm/dts/dm816x-clocks.dtsi               | 246 ---------
 arch/arm/dts/dm816x.dtsi                      | 517 ------------------
 arch/arm/include/asm/arch-am33xx/clock.h      |   4 -
 .../include/asm/arch-am33xx/clock_ti81xx.h    | 118 ----
 arch/arm/include/asm/arch-am33xx/ddr_defs.h   |   6 -
 arch/arm/include/asm/arch-am33xx/emac_defs.h  |  37 --
 arch/arm/include/asm/arch-am33xx/hardware.h   |   2 -
 .../include/asm/arch-am33xx/hardware_ti816x.h |  62 ---
 .../include/asm/arch-am33xx/mmc_host_def.h    |   5 -
 arch/arm/include/asm/arch-am33xx/mux.h        |   2 -
 arch/arm/include/asm/arch-am33xx/mux_ti816x.h | 362 ------------
 arch/arm/include/asm/arch-am33xx/omap.h       |   4 -
 arch/arm/include/asm/arch-am33xx/spl.h        |  14 +-
 arch/arm/mach-omap2/Kconfig                   |  11 -
 arch/arm/mach-omap2/am33xx/Kconfig            |  10 -
 arch/arm/mach-omap2/am33xx/Makefile           |   4 +-
 arch/arm/mach-omap2/am33xx/clock_ti816x.c     | 407 --------------
 arch/arm/mach-omap2/am33xx/ddr.c              |   9 -
 arch/arm/mach-omap2/am33xx/ti816x_emif4.c     | 165 ------
 arch/arm/mach-omap2/boot-common.c             |  20 +-
 board/ti/ti816x/Kconfig                       |  15 -
 board/ti/ti816x/MAINTAINERS                   |   6 -
 board/ti/ti816x/Makefile                      |  10 -
 board/ti/ti816x/evm.c                         | 140 -----
 configs/ti816x_evm_defconfig                  |  82 ---
 drivers/i2c/Kconfig                           |   1 -
 drivers/net/ti/davinci_emac.c                 |   4 +-
 include/configs/ti816x_evm.h                  |  63 ---
 31 files changed, 5 insertions(+), 2505 deletions(-)
 delete mode 100644 arch/arm/dts/dm8168-evm-u-boot.dtsi
 delete mode 100644 arch/arm/dts/dm8168-evm.dts
 delete mode 100644 arch/arm/dts/dm816x-clocks.dtsi
 delete mode 100644 arch/arm/dts/dm816x.dtsi
 delete mode 100644 arch/arm/include/asm/arch-am33xx/clock_ti81xx.h
 delete mode 100644 arch/arm/include/asm/arch-am33xx/emac_defs.h
 delete mode 100644 arch/arm/include/asm/arch-am33xx/hardware_ti816x.h
 delete mode 100644 arch/arm/include/asm/arch-am33xx/mux_ti816x.h
 delete mode 100644 arch/arm/mach-omap2/am33xx/clock_ti816x.c
 delete mode 100644 arch/arm/mach-omap2/am33xx/ti816x_emif4.c
 delete mode 100644 board/ti/ti816x/Kconfig
 delete mode 100644 board/ti/ti816x/MAINTAINERS
 delete mode 100644 board/ti/ti816x/Makefile
 delete mode 100644 board/ti/ti816x/evm.c
 delete mode 100644 configs/ti816x_evm_defconfig
 delete mode 100644 include/configs/ti816x_evm.h
arch/arm/dts/Makefile +0 -1
index 935b2f1517f2..35f50f4b156b 100644
@@ -449,7 +449,6 @@ dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb	\
 	am4372-generic.dtb \
 	am437x-cm-t43.dtb
 dtb-$(CONFIG_TARGET_AM3517_EVM) += am3517-evm.dtb
-dtb-$(CONFIG_TI816X) += dm8168-evm.dtb
 dtb-$(CONFIG_TARGET_THUNDERX_88XX) += thunderx-88xx.dtb
 
 dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
arch/arm/dts/dm8168-evm-u-boot.dtsi deleted +0 -12
deleted file mode 100644
index f939df27e472..000000000000
@@ -1,12 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * dm8168-evm U-Boot Additions
- *
- * Copyright (C) 2020 Dario Binacchi <[email protected]>
- */
-
-/ {
-	ocp {
-		bootph-all;
-	};
-};
arch/arm/dts/dm8168-evm.dts deleted +0 -171

171 lines not on this page · raw message

arch/arm/dts/dm816x-clocks.dtsi deleted +0 -246

246 lines not on this page · raw message

arch/arm/dts/dm816x.dtsi deleted +0 -517

517 lines not on this page · raw message

arch/arm/include/asm/arch-am33xx/clock.h +0 -4
index ad25b3e8aa0f..67400c2c63a3 100644
@@ -13,10 +13,6 @@
 #include <asm/arch/clocks_am33xx.h>
 #include <asm/arch/hardware.h>
 
-#if defined(CONFIG_TI816X)
-#include <asm/arch/clock_ti81xx.h>
-#endif
-
 #define LDELAY 1000000
 
 /*CM_<clock_domain>__CLKCTRL */
arch/arm/include/asm/arch-am33xx/clock_ti81xx.h deleted +0 -118

118 lines not on this page · raw message

arch/arm/include/asm/arch-am33xx/ddr_defs.h +0 -6
index 15a5b641ffa2..1a0310710732 100644
@@ -369,15 +369,9 @@ struct ddr_ctrl {
 	unsigned int ddrckectrl;
 };
 
-#ifdef CONFIG_TI816X
-void config_ddr(const struct ddr_data *data, const struct cmd_control *ctrl,
-		const struct emif_regs *regs,
-		const struct dmm_lisa_map_regs *lisa_regs, int nrs);
-#else
 void config_ddr(unsigned int pll, const struct ctrl_ioregs *ioregs,
 		const struct ddr_data *data, const struct cmd_control *ctrl,
 		const struct emif_regs *regs, int nr);
-#endif
 void emif_get_ext_phy_ctrl_const_regs(const u32 **regs, u32 *size);
 
 #endif  /* _DDR_DEFS_H */
arch/arm/include/asm/arch-am33xx/emac_defs.h deleted +0 -37
deleted file mode 100644
index eb6516da93c2..000000000000
@@ -1,37 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2010 Texas Instruments
- *
- * Based on:
- *
- * ----------------------------------------------------------------------------
- *
- * dm644x_emac.h
- *
- * TI DaVinci (DM644X) EMAC peripheral driver header for DV-EVM
- *
- * Copyright (C) 2005 Texas Instruments.
- *
- * ----------------------------------------------------------------------------
- *
- */
-
-#ifndef _EMAC_DEFS_H_
-#define _EMAC_DEFS_H_
-
-#ifdef CONFIG_TI816X
-#define EMAC_BASE_ADDR			(0x4A100000)
-#define EMAC_WRAPPER_BASE_ADDR		(0x4A100900)
-#define EMAC_WRAPPER_RAM_ADDR		(0x4A102000)
-#define EMAC_MDIO_BASE_ADDR		(0x4A100800)
-#define EMAC_MDIO_BUS_FREQ		(250000000UL)
-#define EMAC_MDIO_CLOCK_FREQ		(2000000UL)
-
-typedef volatile unsigned int	dv_reg;
-typedef volatile unsigned int	*dv_reg_p;
-
-#define DAVINCI_EMAC_VERSION2
-#define DAVINCI_EMAC_GIG_ENABLE
-#endif
-
-#endif  /* _EMAC_DEFS_H_ */
arch/arm/include/asm/arch-am33xx/hardware.h +0 -2
index 2d7f9da3652c..387f053ce68c 100644
@@ -14,8 +14,6 @@
 #include <asm/arch/omap.h>
 #ifdef CONFIG_AM33XX
 #include <asm/arch/hardware_am33xx.h>
-#elif defined(CONFIG_TI816X)
-#include <asm/arch/hardware_ti816x.h>
 #elif defined(CONFIG_AM43XX)
 #include <asm/arch/hardware_am43xx.h>
 #endif
arch/arm/include/asm/arch-am33xx/hardware_ti816x.h deleted +0 -62

62 lines not on this page · raw message

arch/arm/include/asm/arch-am33xx/mmc_host_def.h +0 -5
index ed15d15c5b30..b1b189631af2 100644
@@ -24,9 +24,4 @@
 #define OMAP_HSMMC1_BASE		0x48060000
 #define OMAP_HSMMC2_BASE		0x481D8000
 
-#if defined(CONFIG_TI816X)
-#undef MMC_CLOCK_REFERENCE
-#define MMC_CLOCK_REFERENCE	48 /* MHz */
-#endif
-
 #endif /* MMC_HOST_DEF_H */
arch/arm/include/asm/arch-am33xx/mux.h +0 -2
index 7cf973710d15..ebb2d303dfed 100644
@@ -20,8 +20,6 @@
 
 #ifdef CONFIG_AM33XX
 #include <asm/arch/mux_am33xx.h>
-#elif defined(CONFIG_TI816X)
-#include <asm/arch/mux_ti816x.h>
 #elif defined(CONFIG_AM43XX)
 #include <asm/arch/mux_am43xx.h>
 #endif
arch/arm/include/asm/arch-am33xx/mux_ti816x.h deleted +0 -362

362 lines not on this page · raw message

arch/arm/include/asm/arch-am33xx/omap.h +0 -4
index 4c71dbf3ab60..53046deed565 100644
@@ -20,10 +20,6 @@
 #define NON_SECURE_SRAM_START	0x402F0400
 #define NON_SECURE_SRAM_END	0x40310000
 #define NON_SECURE_SRAM_IMG_END	0x4030B800
-#elif defined(CONFIG_TI816X)
-#define NON_SECURE_SRAM_START	0x40300000
-#define NON_SECURE_SRAM_END	0x40320000
-#define NON_SECURE_SRAM_IMG_END	0x4031B800
 #elif defined(CONFIG_AM43XX)
 #define NON_SECURE_SRAM_START	0x402F0400
 #define NON_SECURE_SRAM_END	0x40340000
arch/arm/include/asm/arch-am33xx/spl.h +1 -13
index 6bd3ca0d076a..9ddb346dc962 100644
@@ -9,19 +9,7 @@
 #define BOOT_DEVICE_NONE	0x00
 #define BOOT_DEVICE_MMC2_2	0xFF
 
-#if defined(CONFIG_TI816X)
-#define BOOT_DEVICE_XIP		0x01
-#define BOOT_DEVICE_XIPWAIT	0x02
-#define BOOT_DEVICE_NAND	0x03
-#define BOOT_DEVICE_ONENAND	0x04
-#define BOOT_DEVICE_MMC2	0x05 /* ROM only supports 2nd instance. */
-#define BOOT_DEVICE_MMC1	0x06
-#define BOOT_DEVICE_UART	0x43
-#define BOOT_DEVICE_USB		0x45
-
-#define MMC_BOOT_DEVICES_START	BOOT_DEVICE_MMC2
-#define MMC_BOOT_DEVICES_END	BOOT_DEVICE_MMC1
-#elif defined(CONFIG_AM33XX)
+#if defined(CONFIG_AM33XX)
 #define BOOT_DEVICE_XIP		0x01
 #define BOOT_DEVICE_XIPWAIT	0x02
 #define BOOT_DEVICE_NAND	0x05
arch/arm/mach-omap2/Kconfig +0 -11
index 309b967b0dd5..8465b5426d81 100644
@@ -77,16 +77,6 @@ config OMAP54XX
 	imply SPL_SERIAL
 	imply SYS_I2C_OMAP24XX
 
-config TI816X
-	bool "TI816X SoC"
-	select SPECIFY_CONSOLE_INDEX
-	imply NAND_OMAP_ELM
-	imply NAND_OMAP_GPMC
-	help
-	  Support for AM335x SOC from Texas Instruments.
-	  The AM335x high performance SOC features a Cortex-A8
-	  ARM core and more.
-
 config AM43XX
 	bool "AM43XX SoC"
 	select SPECIFY_CONSOLE_INDEX
@@ -203,7 +193,6 @@ source "board/BuR/brppt1/Kconfig"
 source "board/siemens/draco/Kconfig"
 source "board/siemens/pxm2/Kconfig"
 source "board/siemens/rut/Kconfig"
-source "board/ti/ti816x/Kconfig"
 source "board/ti/am43xx/Kconfig"
 source "board/ti/am335x/Kconfig"
 source "board/compulab/cm_t43/Kconfig"
arch/arm/mach-omap2/am33xx/Kconfig +0 -10
index 1299aec055ec..8cb0c57163b1 100644
@@ -1,13 +1,3 @@
-if TI816X
-
-config TARGET_TI816X_EVM
-	bool "Support ti816x_evm"
-	help
-	  This option specifies support for the TI8168 EVM development platform
-	  with PG2.0 silicon and DDR3 DRAM.
-
-endif
-
 if AM33XX
 
 config AM33XX_CHILISOM
arch/arm/mach-omap2/am33xx/Makefile +1 -3
index bf94d345dae5..2aa8013527ec 100644
@@ -9,13 +9,11 @@ ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX),)
 obj-y	+= clock.o
 endif
 
-obj-$(CONFIG_TI816X)	+= clock_ti816x.o
 obj-y	+= sys_info.o
 obj-y	+= ddr.o
-ifeq ($(CONFIG_TI816X)$(CONFIG_$(SPL_)SKIP_LOWLEVEL_INIT),)
+ifeq ($(CONFIG_$(SPL_)SKIP_LOWLEVEL_INIT),)
 obj-y	+= emif4.o
 endif
-obj-$(CONFIG_TI816X)	+= ti816x_emif4.o
 obj-y	+= board.o
 obj-y	+= mux.o
 obj-y	+= prcm-regs.o
arch/arm/mach-omap2/am33xx/clock_ti816x.c deleted +0 -407

407 lines not on this page · raw message

arch/arm/mach-omap2/am33xx/ddr.c +0 -9
index f8434ecf5758..5f970d93f0ac 100644
@@ -182,14 +182,6 @@ void config_sdram_emif4d5(const struct emif_regs *regs, int nr)
  */
 void config_sdram(const struct emif_regs *regs, int nr)
 {
-#ifdef CONFIG_TI816X
-	writel(regs->sdram_config, &emif_reg[nr]->emif_sdram_config);
-	writel(regs->emif_ddr_phy_ctlr_1, &emif_reg[nr]->emif_ddr_phy_ctrl_1);
-	writel(regs->emif_ddr_phy_ctlr_1, &emif_reg[nr]->emif_ddr_phy_ctrl_1_shdw);
-	writel(0x0000613B, &emif_reg[nr]->emif_sdram_ref_ctrl);   /* initially a large refresh period */
-	writel(0x1000613B, &emif_reg[nr]->emif_sdram_ref_ctrl);   /* trigger initialization           */
-	writel(regs->ref_ctrl, &emif_reg[nr]->emif_sdram_ref_ctrl);
-#else
 	if (regs->zq_config) {
 		writel(regs->zq_config, &emif_reg[nr]->emif_zq_config);
 		writel(regs->sdram_config, &cstat->secure_emif_sdram_config);
@@ -211,7 +203,6 @@ void config_sdram(const struct emif_regs *regs, int nr)
 	/* Write REG_COS_COUNT_1, REG_COS_COUNT_2, and REG_PR_OLD_COUNT. */
 	if (regs->ocp_config)
 		writel(regs->ocp_config, &emif_reg[nr]->emif_l3_config);
-#endif
 }
 
 /**
arch/arm/mach-omap2/am33xx/ti816x_emif4.c deleted +0 -165

165 lines not on this page · raw message

arch/arm/mach-omap2/boot-common.c +1 -19
index 9a342a1bf952..a2dd5f6df01e 100644
@@ -74,23 +74,6 @@ void save_omap_boot_params(void)
 	 */
 	if (boot_device == BOOT_DEVICE_QSPI_4)
 		boot_device = BOOT_DEVICE_SPI;
-#endif
-#ifdef CONFIG_TI816X
-	/*
-	 * On PG2.0 and later TI816x the values we get when booting are not the
-	 * same as on PG1.0, which is what the defines are based on.  Update
-	 * them as needed.
-	 */
-	if (get_cpu_rev() != 1) {
-		if (boot_device == 0x05) {
-			omap_boot_params->boot_device = BOOT_DEVICE_NAND;
-			boot_device = BOOT_DEVICE_NAND;
-		}
-		if (boot_device == 0x08) {
-			omap_boot_params->boot_device = BOOT_DEVICE_MMC1;
-			boot_device = BOOT_DEVICE_MMC1;
-		}
-	}
 #endif
 	/*
 	 * When booting from peripheral booting, the boot device is not usable
@@ -183,8 +166,7 @@ void save_omap_boot_params(void)
 
 	gd->arch.omap_boot_mode = boot_mode;
 
-#if !defined(CONFIG_TI816X) && \
-    !defined(CONFIG_AM33XX) && !defined(CONFIG_AM43XX)
+#if !defined(CONFIG_AM33XX) && !defined(CONFIG_AM43XX)
 
 	/* CH flags */
 
board/ti/ti816x/Kconfig deleted +0 -15
deleted file mode 100644
index 95973b47f1ee..000000000000
@@ -1,15 +0,0 @@
-if TARGET_TI816X_EVM
-
-config SYS_BOARD
-	default "ti816x"
-
-config SYS_VENDOR
-	default "ti"
-
-config SYS_SOC
-	default "am33xx"
-
-config SYS_CONFIG_NAME
-	default "ti816x_evm"
-
-endif
board/ti/ti816x/MAINTAINERS deleted +0 -6
deleted file mode 100644
index fd9a98fc7624..000000000000
@@ -1,6 +0,0 @@
-TI816X BOARD
-M:	Tom Rini <[email protected]>
-S:	Maintained
-F:	board/ti/ti816x/
-F:	include/configs/ti816x_evm.h
-F:	configs/ti816x_evm_defconfig
board/ti/ti816x/Makefile deleted +0 -10
deleted file mode 100644
index f12712aea640..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-#
-# Copyright (C) 2013, Adeneo Embedded <www.adeneo-embedded.com>
-# Antoine Tenart, <[email protected]>
-#
-# Based on TI-PSP-04.00.02.14 :
-#
-# Copyright (C) 2009, Texas Instruments, Incorporated
-
-obj-y	:= evm.o
board/ti/ti816x/evm.c deleted +0 -140

140 lines not on this page · raw message

configs/ti816x_evm_defconfig deleted +0 -82

82 lines not on this page · raw message

drivers/i2c/Kconfig +0 -1
index 05b14d2451c6..5e81698143a1 100644
@@ -744,7 +744,6 @@ config SYS_I2C_SPEED
 config SYS_I2C_BUS_MAX
 	int "Max I2C busses"
 	depends on ARCH_OMAP2PLUS || ARCH_SOCFPGA
-	default 2 if TI816X
 	default 3 if OMAP34XX || AM33XX || AM43XX
 	default 4 if ARCH_SOCFPGA || OMAP44XX
 	default 5 if OMAP54XX
drivers/net/ti/davinci_emac.c +2 -2
index 29d2fc9b54e9..034877a76907 100644
@@ -833,9 +833,9 @@ static int davinci_emac_probe(struct udevice *dev)
 #endif
 	}
 
-#if defined(CONFIG_TI816X) || (defined(CONFIG_DRIVER_TI_EMAC_USE_RMII) && \
+#if defined(CONFIG_DRIVER_TI_EMAC_USE_RMII) && \
 		defined(CONFIG_MACH_DAVINCI_DA850_EVM) && \
-			!defined(CONFIG_DRIVER_TI_EMAC_RMII_NO_NEGOTIATE))
+			!defined(CONFIG_DRIVER_TI_EMAC_RMII_NO_NEGOTIATE)
 	for (i = 0; i < num_phy; i++) {
 		if (phy[i].is_phy_connected(i))
 			phy[i].auto_negotiate(i);
include/configs/ti816x_evm.h deleted +0 -63

63 lines not on this page · raw message

Signature · 1 line
2.34.1