Skip to contentSkip to conversation

arm: Remove xfi3 board

PATCH New Tom Rini 12 participants 62 messages Feb 9, 2021 – Mar 24, 2021

Subsystems (12)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/25 arm: Remove xfi3 board

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

---
 arch/arm/mach-imx/mxs/Kconfig   |   1 -
 board/creative/xfi3/Kconfig     |  15 ---
 board/creative/xfi3/MAINTAINERS |   6 -
 board/creative/xfi3/Makefile    |  10 --
 board/creative/xfi3/spl_boot.c  | 133 -------------------
 board/creative/xfi3/xfi3.c      | 226 --------------------------------
 configs/xfi3_defconfig          |  43 ------
 include/configs/xfi3.h          |  39 ------
 8 files changed, 473 deletions(-)
 delete mode 100644 board/creative/xfi3/Kconfig
 delete mode 100644 board/creative/xfi3/MAINTAINERS
 delete mode 100644 board/creative/xfi3/Makefile
 delete mode 100644 board/creative/xfi3/spl_boot.c
 delete mode 100644 board/creative/xfi3/xfi3.c
 delete mode 100644 configs/xfi3_defconfig
 delete mode 100644 include/configs/xfi3.h
arch/arm/mach-imx/mxs/Kconfig +0 -1
index b90d7b6e4176..fb19e36559ff 100644
@@ -30,7 +30,6 @@ config SYS_SOC
 source "board/olimex/mx23_olinuxino/Kconfig"
 source "board/freescale/mx23evk/Kconfig"
 source "board/sandisk/sansa_fuze_plus/Kconfig"
-source "board/creative/xfi3/Kconfig"
 
 endif
 
board/creative/xfi3/Kconfig deleted +0 -15
deleted file mode 100644
index 7b681cd81b04..000000000000
@@ -1,15 +0,0 @@
-if TARGET_XFI3
-
-config SYS_BOARD
-	default "xfi3"
-
-config SYS_VENDOR
-	default "creative"
-
-config SYS_SOC
-	default "mxs"
-
-config SYS_CONFIG_NAME
-	default "xfi3"
-
-endif
board/creative/xfi3/MAINTAINERS deleted +0 -6
deleted file mode 100644
index fb8235a3295f..000000000000
@@ -1,6 +0,0 @@
-XFI3 BOARD
-M:	Marek Vasut <[email protected]>
-S:	Maintained
-F:	board/creative/xfi3/
-F:	include/configs/xfi3.h
-F:	configs/xfi3_defconfig
board/creative/xfi3/Makefile deleted +0 -10
deleted file mode 100644
index 67d68dd6218d..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-
-ifndef	CONFIG_SPL_BUILD
-obj-y	:= xfi3.o
-else
-obj-y	:= spl_boot.o
-endif
board/creative/xfi3/spl_boot.c deleted +0 -133

133 lines not on this page · raw message

board/creative/xfi3/xfi3.c deleted +0 -226

226 lines not on this page · raw message

configs/xfi3_defconfig deleted +0 -43

43 lines not on this page · raw message

include/configs/xfi3.h deleted +0 -39
deleted file mode 100644
index 80849129b931..000000000000
@@ -1,39 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2013 Marek Vasut <[email protected]>
- */
-#ifndef __CONFIGS_XFI3_H__
-#define __CONFIGS_XFI3_H__
-
-/* U-Boot Commands */
-
-/* Memory configuration */
-#define PHYS_SDRAM_1			0x40000000	/* Base address */
-#define PHYS_SDRAM_1_SIZE		0x08000000	/* Max 128 MB RAM */
-#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
-
-/* Environment */
-
-/* Booting Linux */
-#define CONFIG_BOOTFILE		"uImage"
-#define CONFIG_LOADADDR		0x42000000
-#define CONFIG_SYS_LOAD_ADDR	CONFIG_LOADADDR
-
-/* LCD */
-#ifdef CONFIG_VIDEO
-#define CONFIG_VIDEO_FONT_4X6
-#define CONFIG_VIDEO_MXS_MODE_SYSTEM
-#define CONFIG_SYS_BLACK_IN_WRITE
-#define LCD_BPP	LCD_COLOR16
-#endif
-
-/* USB */
-#ifdef CONFIG_CMD_USB
-#define CONFIG_EHCI_MXS_PORT0
-#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
-#endif
-
-/* The rest of the configuration is shared */
-#include <configs/mxs.h>
-
-#endif	/* __CONFIGS_XFI3_H__ */
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/25 arm: Remove mx23evk board

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Otavio Salvador <[email protected]>
---
 arch/arm/mach-imx/mxs/Kconfig       |   8 --
 board/freescale/mx23evk/Kconfig     |  15 ----
 board/freescale/mx23evk/MAINTAINERS |   6 --
 board/freescale/mx23evk/Makefile    |  10 ---
 board/freescale/mx23evk/mx23evk.c   |  78 ----------------
 board/freescale/mx23evk/spl_boot.c  | 134 ----------------------------
 configs/mx23evk_defconfig           |  40 ---------
 include/configs/mx23evk.h           | 102 ---------------------
 8 files changed, 393 deletions(-)
 delete mode 100644 board/freescale/mx23evk/Kconfig
 delete mode 100644 board/freescale/mx23evk/MAINTAINERS
 delete mode 100644 board/freescale/mx23evk/Makefile
 delete mode 100644 board/freescale/mx23evk/mx23evk.c
 delete mode 100644 board/freescale/mx23evk/spl_boot.c
 delete mode 100644 configs/mx23evk_defconfig
 delete mode 100644 include/configs/mx23evk.h
arch/arm/mach-imx/mxs/Kconfig +0 -8
index fb19e36559ff..c731d01d4ed3 100644
@@ -12,23 +12,15 @@ config TARGET_MX23_OLINUXINO
 	bool "Support mx23_olinuxino"
 	select BOARD_EARLY_INIT_F
 
-config TARGET_MX23EVK
-	bool "Support mx23evk"
-	select BOARD_EARLY_INIT_F
-
 config TARGET_SANSA_FUZE_PLUS
 	bool "Support sansa_fuze_plus"
 
-config TARGET_XFI3
-	bool "Support xfi3"
-
 endchoice
 
 config SYS_SOC
 	default "mxs"
 
 source "board/olimex/mx23_olinuxino/Kconfig"
-source "board/freescale/mx23evk/Kconfig"
 source "board/sandisk/sansa_fuze_plus/Kconfig"
 
 endif
board/freescale/mx23evk/Kconfig deleted +0 -15
deleted file mode 100644
index 51a8f9f773cb..000000000000
@@ -1,15 +0,0 @@
-if TARGET_MX23EVK
-
-config SYS_BOARD
-	default "mx23evk"
-
-config SYS_VENDOR
-	default "freescale"
-
-config SYS_SOC
-	default "mxs"
-
-config SYS_CONFIG_NAME
-	default "mx23evk"
-
-endif
board/freescale/mx23evk/MAINTAINERS deleted +0 -6
deleted file mode 100644
index b03ad6ae0af6..000000000000
@@ -1,6 +0,0 @@
-MX23EVK BOARD
-M:	Otavio Salvador <[email protected]>
-S:	Maintained
-F:	board/freescale/mx23evk/
-F:	include/configs/mx23evk.h
-F:	configs/mx23evk_defconfig
board/freescale/mx23evk/Makefile deleted +0 -10
deleted file mode 100644
index 6fe6992a5fcd..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-
-ifndef	CONFIG_SPL_BUILD
-obj-y	:= mx23evk.o
-else
-obj-y	:= spl_boot.o
-endif
board/freescale/mx23evk/mx23evk.c deleted +0 -78

78 lines not on this page · raw message

board/freescale/mx23evk/spl_boot.c deleted +0 -134

134 lines not on this page · raw message

configs/mx23evk_defconfig deleted +0 -40
deleted file mode 100644
index 0e3d9774c591..000000000000
@@ -1,40 +0,0 @@
-CONFIG_ARM=y
-CONFIG_ARCH_MX23=y
-CONFIG_SYS_TEXT_BASE=0x40002000
-CONFIG_SPL_GPIO_SUPPORT=y
-CONFIG_SPL_LIBCOMMON_SUPPORT=y
-CONFIG_SPL_LIBGENERIC_SUPPORT=y
-CONFIG_NR_DRAM_BANKS=1
-CONFIG_ENV_SIZE=0x4000
-CONFIG_ENV_OFFSET=0x40000
-CONFIG_SPL_TEXT_BASE=0x00001000
-CONFIG_TARGET_MX23EVK=y
-CONFIG_SPL_SERIAL_SUPPORT=y
-CONFIG_SPL=y
-CONFIG_SYS_CONSOLE_IS_IN_ENV=y
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_ARCH_MISC_INIT=y
-# CONFIG_SPL_FRAMEWORK is not set
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-CONFIG_CMD_GPIO=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_USB=y
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_CACHE=y
-CONFIG_CMD_EXT2=y
-CONFIG_CMD_FAT=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_MMC=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_VERSION_VARIABLE=y
-# CONFIG_NET is not set
-CONFIG_MXS_GPIO=y
-CONFIG_MMC_MXS=y
-CONFIG_CONS_INDEX=0
-CONFIG_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_SPLASH_SCREEN=y
-CONFIG_VIDEO_BMP_GZIP=y
-CONFIG_OF_LIBFDT=y
include/configs/mx23evk.h deleted +0 -102

102 lines not on this page · raw message

Signature · 1 line
2.17.1
reviewer
#2 lore raw

PATCH 2/25 arm: Remove mx23evk board

Hi Tom,

Quoted 4 lines · Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

I will convert this board to DM. Please don't remove it.

Thanks

author
#3 lore raw

PATCH 3/25 arm: Remove MX23_OLINUXINO board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

---
 arch/arm/mach-imx/mxs/Kconfig                |   1 -
 board/olimex/mx23_olinuxino/Kconfig          |  15 ---
 board/olimex/mx23_olinuxino/MAINTAINERS      |   6 -
 board/olimex/mx23_olinuxino/Makefile         |  10 --
 board/olimex/mx23_olinuxino/mx23_olinuxino.c |  81 -------------
 board/olimex/mx23_olinuxino/spl_boot.c       | 120 -------------------
 configs/mx23_olinuxino_defconfig             |  47 --------
 include/configs/mx23_olinuxino.h             | 118 ------------------
 8 files changed, 398 deletions(-)
 delete mode 100644 board/olimex/mx23_olinuxino/Kconfig
 delete mode 100644 board/olimex/mx23_olinuxino/MAINTAINERS
 delete mode 100644 board/olimex/mx23_olinuxino/Makefile
 delete mode 100644 board/olimex/mx23_olinuxino/mx23_olinuxino.c
 delete mode 100644 board/olimex/mx23_olinuxino/spl_boot.c
 delete mode 100644 configs/mx23_olinuxino_defconfig
 delete mode 100644 include/configs/mx23_olinuxino.h
arch/arm/mach-imx/mxs/Kconfig +0 -1
index c731d01d4ed3..636c08b26353 100644
@@ -20,7 +20,6 @@ endchoice
 config SYS_SOC
 	default "mxs"
 
-source "board/olimex/mx23_olinuxino/Kconfig"
 source "board/sandisk/sansa_fuze_plus/Kconfig"
 
 endif
board/olimex/mx23_olinuxino/Kconfig deleted +0 -15
deleted file mode 100644
index 0b151c9bb815..000000000000
@@ -1,15 +0,0 @@
-if TARGET_MX23_OLINUXINO
-
-config SYS_BOARD
-	default "mx23_olinuxino"
-
-config SYS_VENDOR
-	default "olimex"
-
-config SYS_SOC
-	default "mxs"
-
-config SYS_CONFIG_NAME
-	default "mx23_olinuxino"
-
-endif
board/olimex/mx23_olinuxino/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 25f4a10e9ae0..000000000000
@@ -1,6 +0,0 @@
-MX23_OLINUXINO BOARD
-M:	Marek Vasut <[email protected]>
-S:	Maintained
-F:	board/olimex/mx23_olinuxino/
-F:	include/configs/mx23_olinuxino.h
-F:	configs/mx23_olinuxino_defconfig
board/olimex/mx23_olinuxino/Makefile deleted +0 -10
deleted file mode 100644
index b2ea89743440..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-
-ifndef	CONFIG_SPL_BUILD
-obj-y	:= mx23_olinuxino.o
-else
-obj-y	:= spl_boot.o
-endif
board/olimex/mx23_olinuxino/mx23_olinuxino.c deleted +0 -81

81 lines not on this page · raw message

board/olimex/mx23_olinuxino/spl_boot.c deleted +0 -120

120 lines not on this page · raw message

configs/mx23_olinuxino_defconfig deleted +0 -47

47 lines not on this page · raw message

include/configs/mx23_olinuxino.h deleted +0 -118

118 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#4 lore raw

PATCH 4/25 arm: Remove SANSA_FUZE_PLUS board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

---
 arch/arm/mach-imx/mxs/Kconfig             |   5 -
 board/sandisk/sansa_fuze_plus/Kconfig     |  15 -
 board/sandisk/sansa_fuze_plus/MAINTAINERS |   6 -
 board/sandisk/sansa_fuze_plus/Makefile    |  10 -
 board/sandisk/sansa_fuze_plus/sfp.c       | 390 ----------------------
 board/sandisk/sansa_fuze_plus/spl_boot.c  | 139 --------
 configs/sansa_fuze_plus_defconfig         |  46 ---
 include/configs/sansa_fuze_plus.h         |  39 ---
 8 files changed, 650 deletions(-)
 delete mode 100644 board/sandisk/sansa_fuze_plus/Kconfig
 delete mode 100644 board/sandisk/sansa_fuze_plus/MAINTAINERS
 delete mode 100644 board/sandisk/sansa_fuze_plus/Makefile
 delete mode 100644 board/sandisk/sansa_fuze_plus/sfp.c
 delete mode 100644 board/sandisk/sansa_fuze_plus/spl_boot.c
 delete mode 100644 configs/sansa_fuze_plus_defconfig
 delete mode 100644 include/configs/sansa_fuze_plus.h
arch/arm/mach-imx/mxs/Kconfig +0 -5
index 636c08b26353..bd075de2b826 100644
@@ -8,10 +8,6 @@ choice
 	prompt "MX23 board select"
 	optional
 
-config TARGET_MX23_OLINUXINO
-	bool "Support mx23_olinuxino"
-	select BOARD_EARLY_INIT_F
-
 config TARGET_SANSA_FUZE_PLUS
 	bool "Support sansa_fuze_plus"
 
@@ -20,7 +16,6 @@ endchoice
 config SYS_SOC
 	default "mxs"
 
-source "board/sandisk/sansa_fuze_plus/Kconfig"
 
 endif
 
board/sandisk/sansa_fuze_plus/Kconfig deleted +0 -15
deleted file mode 100644
index ab4a29255cca..000000000000
@@ -1,15 +0,0 @@
-if TARGET_SANSA_FUZE_PLUS
-
-config SYS_BOARD
-	default "sansa_fuze_plus"
-
-config SYS_VENDOR
-	default "sandisk"
-
-config SYS_SOC
-	default "mxs"
-
-config SYS_CONFIG_NAME
-	default "sansa_fuze_plus"
-
-endif
board/sandisk/sansa_fuze_plus/MAINTAINERS deleted +0 -6
deleted file mode 100644
index ccfd3997084e..000000000000
@@ -1,6 +0,0 @@
-SANSA_FUZE_PLUS BOARD
-M:	Marek Vasut <[email protected]>
-S:	Maintained
-F:	board/sandisk/sansa_fuze_plus/
-F:	include/configs/sansa_fuze_plus.h
-F:	configs/sansa_fuze_plus_defconfig
board/sandisk/sansa_fuze_plus/Makefile deleted +0 -10
deleted file mode 100644
index 5ac545dda341..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-
-ifndef	CONFIG_SPL_BUILD
-obj-y	:= sfp.o
-else
-obj-y	:= spl_boot.o
-endif
board/sandisk/sansa_fuze_plus/sfp.c deleted +0 -390

390 lines not on this page · raw message

board/sandisk/sansa_fuze_plus/spl_boot.c deleted +0 -139

139 lines not on this page · raw message

configs/sansa_fuze_plus_defconfig deleted +0 -46

46 lines not on this page · raw message

include/configs/sansa_fuze_plus.h deleted +0 -39
deleted file mode 100644
index 853a89ced129..000000000000
@@ -1,39 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2013 Marek Vasut <[email protected]>
- */
-#ifndef __CONFIGS_SANSA_FUZE_PLUS_H__
-#define __CONFIGS_SANSA_FUZE_PLUS_H__
-
-/* U-Boot Commands */
-
-/* Memory configuration */
-#define PHYS_SDRAM_1			0x40000000	/* Base address */
-#define PHYS_SDRAM_1_SIZE		0x08000000	/* Max 128 MB RAM */
-#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
-
-/* Environment */
-
-/* Booting Linux */
-#define CONFIG_BOOTFILE		"uImage"
-#define CONFIG_LOADADDR		0x42000000
-#define CONFIG_SYS_LOAD_ADDR	CONFIG_LOADADDR
-
-/* LCD */
-#ifdef CONFIG_VIDEO
-#define CONFIG_VIDEO_FONT_4X6
-#define CONFIG_VIDEO_MXS_MODE_SYSTEM
-#define CONFIG_SYS_BLACK_IN_WRITE
-#define LCD_BPP	LCD_COLOR16
-#endif
-
-/* USB */
-#ifdef CONFIG_CMD_USB
-#define CONFIG_EHCI_MXS_PORT0
-#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
-#endif
-
-/* The rest of the configuration is shared */
-#include <configs/mxs.h>
-
-#endif	/* __CONFIGS_SANSA_FUZE_PLUS_H__ */
Signature · 1 line
2.17.1
author
#5 lore raw

PATCH 5/25 arm: imx: Remove MX23 support

In reply to Tom Rini

As there are now no boards for the MX23 family, remove the general support.

Cc Stefano Babic <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP i.MX U-Boot Team <[email protected]>
---
 arch/arm/Kconfig                              |   8 +-
 arch/arm/Makefile                             |   2 +-
 arch/arm/cpu/arm926ejs/mxs/Makefile           |   1 -
 arch/arm/cpu/arm926ejs/mxs/clock.c            |  31 +-
 arch/arm/cpu/arm926ejs/mxs/iomux.c            |   7 +-
 .../cpu/arm926ejs/mxs/mxsimage-spl.mx23.cfg   |   5 -
 arch/arm/cpu/arm926ejs/mxs/mxsimage.mx23.cfg  |   7 -
 arch/arm/cpu/arm926ejs/mxs/spl_boot.c         |  31 +-
 arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c     |  85 +----
 arch/arm/cpu/arm926ejs/mxs/spl_power_init.c   |  50 +--
 arch/arm/cpu/arm926ejs/mxs/timer.c            |  12 +-
 arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd    |  18 -
 arch/arm/include/asm/arch-mxs/imx-regs.h      |   5 -
 arch/arm/include/asm/arch-mxs/iomux-mx23.h    | 349 ------------------
 arch/arm/include/asm/arch-mxs/regs-base.h     |  46 +--
 .../include/asm/arch-mxs/regs-clkctrl-mx23.h  | 209 -----------
 .../include/asm/arch-mxs/regs-power-mx23.h    | 344 -----------------
 arch/arm/include/asm/arch-mxs/regs-ssp.h      |  42 +--
 arch/arm/include/asm/arch-mxs/regs-timrot.h   |  97 +----
 arch/arm/include/asm/arch-mxs/sys_proto.h     |  17 +-
 arch/arm/include/asm/mach-imx/dma.h           |  14 +-
 arch/arm/include/asm/mach-imx/regs-apbh.h     | 115 +-----
 arch/arm/include/asm/mach-imx/regs-lcdif.h    |  12 -
 arch/arm/mach-imx/mxs/Kconfig                 |  21 --
 drivers/dma/apbh_dma.c                        |   5 +-
 drivers/gpio/mxs_gpio.c                       |  12 +-
 drivers/mmc/mxsmmc.c                          |  12 +-
 drivers/spi/mxs_spi.c                         |   9 +-
 include/configs/mxs.h                         |  14 +-
 tools/Makefile                                |   5 +-
 30 files changed, 44 insertions(+), 1541 deletions(-)
 delete mode 100644 arch/arm/cpu/arm926ejs/mxs/mxsimage-spl.mx23.cfg
 delete mode 100644 arch/arm/cpu/arm926ejs/mxs/mxsimage.mx23.cfg
 delete mode 100644 arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd
 delete mode 100644 arch/arm/include/asm/arch-mxs/iomux-mx23.h
 delete mode 100644 arch/arm/include/asm/arch-mxs/regs-clkctrl-mx23.h
 delete mode 100644 arch/arm/include/asm/arch-mxs/regs-power-mx23.h
arch/arm/Kconfig +1 -7
index 95557d6ed6bd..f2a87c3caed8 100644
@@ -856,12 +856,6 @@ config ARCH_IMXRT
 	select SUPPORT_SPL
 	imply CMD_DM
 
-config ARCH_MX23
-	bool "NXP i.MX23 family"
-	select CPU_ARM926EJS
-	select PL011_SERIAL
-	select SUPPORT_SPL
-
 config ARCH_MX25
 	bool "NXP MX25"
 	select CPU_ARM926EJS
@@ -2042,6 +2036,6 @@ source "arch/arm/Kconfig.debug"
 endmenu
 
 config SPL_LDSCRIPT
-	default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if (ARCH_MX23 || ARCH_MX28) && !SPL_FRAMEWORK
+	default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if ARCH_MX28 && !SPL_FRAMEWORK
 	default "arch/arm/cpu/arm1136/u-boot-spl.lds" if CPU_ARM1136
 	default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
arch/arm/Makefile +1 -1
index 28b523b37c70..7c1bca7f9269 100644
@@ -107,7 +107,7 @@ libs-y += arch/arm/cpu/
 libs-y += arch/arm/lib/
 
 ifeq ($(CONFIG_SPL_BUILD),y)
-ifneq (,$(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_MX35)$(filter $(SOC), mx25 mx5 mx6 mx7 mx35 imx8m imx8 imxrt))
+ifneq (,$(CONFIG_MX28)$(CONFIG_MX35)$(filter $(SOC), mx25 mx5 mx6 mx7 mx35 imx8m imx8 imxrt))
 libs-y += arch/arm/mach-imx/
 endif
 else
arch/arm/cpu/arm926ejs/mxs/Makefile +0 -1
index f60e61e4343f..f846a5400a3d 100644
@@ -12,7 +12,6 @@ obj-y	+= spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
 endif
 
 # Specify the target for use in elftosb call
-MKIMAGE_TARGET-$(CONFIG_MX23) = mxsimage$(CONFIG_SPL_FRAMEWORK:%=-spl).mx23.cfg
 MKIMAGE_TARGET-$(CONFIG_MX28) = mxsimage$(CONFIG_SPL_FRAMEWORK:%=-spl).mx28.cfg
 
 # Generate HAB-capable IVT
arch/arm/cpu/arm926ejs/mxs/clock.c +4 -27
index 4e1cf3a1e32b..9aa6f83bb395 100644
@@ -28,9 +28,7 @@
 #define	PLL_FREQ_MHZ	(PLL_FREQ_KHZ / 1000)
 #define	XTAL_FREQ_MHZ	(XTAL_FREQ_KHZ / 1000)
 
-#if defined(CONFIG_MX23)
-#define MXC_SSPCLK_MAX MXC_SSPCLK0
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define MXC_SSPCLK_MAX MXC_SSPCLK3
 #endif
 
@@ -113,10 +111,7 @@ static uint32_t mxs_get_gpmiclk(void)
 {
 	struct mxs_clkctrl_regs *clkctrl_regs =
 		(struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE;
-#if defined(CONFIG_MX23)
-	uint8_t *reg =
-		&clkctrl_regs->hw_clkctrl_frac0[CLKCTRL_FRAC0_CPU];
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	uint8_t *reg =
 		&clkctrl_regs->hw_clkctrl_frac1[CLKCTRL_FRAC1_GPMI];
 #endif
@@ -319,9 +314,7 @@ void mxs_set_lcdclk(uint32_t __maybe_unused lcd_base, uint32_t freq)
 	if (freq == 0)
 		return;
 
-#if defined(CONFIG_MX23)
-	writel(CLKCTRL_CLKSEQ_BYPASS_PIX, &clkctrl_regs->hw_clkctrl_clkseq_clr);
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	writel(CLKCTRL_CLKSEQ_BYPASS_DIS_LCDIF, &clkctrl_regs->hw_clkctrl_clkseq_clr);
 #endif
 
@@ -367,23 +360,7 @@ void mxs_set_lcdclk(uint32_t __maybe_unused lcd_base, uint32_t freq)
 
 	k_best /= 1000;
 
-#if defined(CONFIG_MX23)
-	writeb(CLKCTRL_FRAC_CLKGATE,
-		&clkctrl_regs->hw_clkctrl_frac0_set[CLKCTRL_FRAC0_PIX]);
-	writeb(CLKCTRL_FRAC_CLKGATE | (x_best & CLKCTRL_FRAC_FRAC_MASK),
-		&clkctrl_regs->hw_clkctrl_frac0[CLKCTRL_FRAC0_PIX]);
-	writeb(CLKCTRL_FRAC_CLKGATE,
-		&clkctrl_regs->hw_clkctrl_frac0_clr[CLKCTRL_FRAC0_PIX]);
-
-	writel(CLKCTRL_PIX_CLKGATE,
-		&clkctrl_regs->hw_clkctrl_pix_set);
-	clrsetbits_le32(&clkctrl_regs->hw_clkctrl_pix,
-			CLKCTRL_PIX_DIV_MASK | CLKCTRL_PIX_CLKGATE,
-			k_best << CLKCTRL_PIX_DIV_OFFSET);
-
-	while (readl(&clkctrl_regs->hw_clkctrl_pix) & CLKCTRL_PIX_BUSY)
-		;
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	writeb(CLKCTRL_FRAC_CLKGATE,
 		&clkctrl_regs->hw_clkctrl_frac1_set[CLKCTRL_FRAC1_PIX]);
 	writeb(CLKCTRL_FRAC_CLKGATE | (x_best & CLKCTRL_FRAC_FRAC_MASK),
arch/arm/cpu/arm926ejs/mxs/iomux.c +2 -5
index 381264b8a18d..d212d0fa529d 100644
@@ -13,14 +13,11 @@
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
 
-#if	defined(CONFIG_MX23)
-#define	DRIVE_OFFSET	0x200
-#define	PULL_OFFSET	0x400
-#elif	defined(CONFIG_MX28)
+#if	defined(CONFIG_MX28)
 #define	DRIVE_OFFSET	0x300
 #define	PULL_OFFSET	0x600
 #else
-#error "Please select CONFIG_MX23 or CONFIG_MX28"
+#error "Please select CONFIG_MX28"
 #endif
 
 /*
arch/arm/cpu/arm926ejs/mxs/mxsimage-spl.mx23.cfg deleted +0 -5
deleted file mode 100644
index ab2183ed3795..000000000000
@@ -1,5 +0,0 @@
-DISPLAYPROGRESS
-SECTION 0x0 BOOTABLE
- TAG LAST
- LOAD     0x1000     spl/u-boot-spl.bin
- CALL     0x1000     0x0
arch/arm/cpu/arm926ejs/mxs/mxsimage.mx23.cfg deleted +0 -7
deleted file mode 100644
index e7028092a2c3..000000000000
@@ -1,7 +0,0 @@
-DISPLAYPROGRESS
-SECTION 0x0 BOOTABLE
- TAG LAST
- LOAD     0x1000     spl/u-boot-spl.bin
- CALL     0x1000     0x0
- LOAD     0x40002000 u-boot.bin
- CALL     0x40002000 0x0
arch/arm/cpu/arm926ejs/mxs/spl_boot.c +1 -30
index 1501d7df0dc6..d44167e4e90c 100644
@@ -39,42 +39,13 @@ void early_delay(int delay)
 		;
 }
 
-#if defined(CONFIG_MX23)
-#define	MUX_CONFIG_BOOTMODE_PAD	(MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_NOPULL)
-static const iomux_cfg_t iomux_boot[] = {
-	MX23_PAD_LCD_D00__GPIO_1_0 | MUX_CONFIG_BOOTMODE_PAD,
-	MX23_PAD_LCD_D01__GPIO_1_1 | MUX_CONFIG_BOOTMODE_PAD,
-	MX23_PAD_LCD_D02__GPIO_1_2 | MUX_CONFIG_BOOTMODE_PAD,
-	MX23_PAD_LCD_D03__GPIO_1_3 | MUX_CONFIG_BOOTMODE_PAD,
-	MX23_PAD_LCD_D04__GPIO_1_4 | MUX_CONFIG_BOOTMODE_PAD,
-	MX23_PAD_LCD_D05__GPIO_1_5 | MUX_CONFIG_BOOTMODE_PAD,
-};
-#endif
-
 static uint8_t mxs_get_bootmode_index(void)
 {
 	uint8_t bootmode = 0;
 	int i;
 	uint8_t masked;
 
-#if defined(CONFIG_MX23)
-	/* Setup IOMUX of bootmode pads to GPIO */
-	mxs_iomux_setup_multiple_pads(iomux_boot, ARRAY_SIZE(iomux_boot));
-
-	/* Setup bootmode pins as GPIO input */
-	gpio_direction_input(MX23_PAD_LCD_D00__GPIO_1_0);
-	gpio_direction_input(MX23_PAD_LCD_D01__GPIO_1_1);
-	gpio_direction_input(MX23_PAD_LCD_D02__GPIO_1_2);
-	gpio_direction_input(MX23_PAD_LCD_D03__GPIO_1_3);
-	gpio_direction_input(MX23_PAD_LCD_D05__GPIO_1_5);
-
-	/* Read bootmode pads */
-	bootmode |= (gpio_get_value(MX23_PAD_LCD_D00__GPIO_1_0) ? 1 : 0) << 0;
-	bootmode |= (gpio_get_value(MX23_PAD_LCD_D01__GPIO_1_1) ? 1 : 0) << 1;
-	bootmode |= (gpio_get_value(MX23_PAD_LCD_D02__GPIO_1_2) ? 1 : 0) << 2;
-	bootmode |= (gpio_get_value(MX23_PAD_LCD_D03__GPIO_1_3) ? 1 : 0) << 3;
-	bootmode |= (gpio_get_value(MX23_PAD_LCD_D05__GPIO_1_5) ? 1 : 0) << 5;
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	/* The global boot mode will be detected by ROM code and its value
 	 * is stored at the fixed address 0x00019BF0 in OCRAM.
 	 */
arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c +2 -83

109 lines not on this page · raw message

arch/arm/cpu/arm926ejs/mxs/spl_power_init.c +1 -49

86 lines not on this page · raw message

arch/arm/cpu/arm926ejs/mxs/timer.c +3 -9
index 5ab4ed0c5a3d..a5dd9a838e87 100644
@@ -18,9 +18,7 @@
 #include <linux/delay.h>
 
 /* Maximum fixed count */
-#if defined(CONFIG_MX23)
-#define TIMER_LOAD_VAL 0xffff
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define TIMER_LOAD_VAL 0xffffffff
 #endif
 
@@ -59,9 +57,7 @@ int timer_init(void)
 	mxs_reset_block(&timrot_regs->hw_timrot_rotctrl_reg);
 
 	/* Set fixed_count to 0 */
-#if defined(CONFIG_MX23)
-	writel(0, &timrot_regs->hw_timrot_timcount0);
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	writel(0, &timrot_regs->hw_timrot_fixed_count0);
 #endif
 
@@ -71,9 +67,7 @@ int timer_init(void)
 		&timrot_regs->hw_timrot_timctrl0);
 
 	/* Set fixed_count to maximal value */
-#if defined(CONFIG_MX23)
-	writel(TIMER_LOAD_VAL - 1, &timrot_regs->hw_timrot_timcount0);
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	writel(TIMER_LOAD_VAL, &timrot_regs->hw_timrot_fixed_count0);
 #endif
 
arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd deleted +0 -18
deleted file mode 100644
index 3a51879d5e4a..000000000000
@@ -1,18 +0,0 @@
-options {
-	driveTag = 0x00;
-	flags = 0x01;
-}
-
-sources {
-	u_boot_spl="spl/u-boot-spl.bin";
-	u_boot="u-boot.bin";
-}
-
-section (0) {
-	load u_boot_spl > 0x0000;
-	load ivt (entry = 0x0014) > 0x8000;
-	call 0x8000;
-
-	load u_boot > 0x40000100;
-	call 0x40000100;
-}
arch/arm/include/asm/arch-mxs/imx-regs.h +0 -5
index f853c484be7d..c099c65c9608 100644
@@ -25,11 +25,6 @@
 #include <asm/arch/regs-usb.h>
 #include <asm/arch/regs-usbphy.h>
 
-#ifdef CONFIG_MX23
-#include <asm/arch/regs-clkctrl-mx23.h>
-#include <asm/arch/regs-power-mx23.h>
-#endif
-
 #ifdef CONFIG_MX28
 #include <asm/arch/regs-clkctrl-mx28.h>
 #include <asm/arch/regs-power-mx28.h>
arch/arm/include/asm/arch-mxs/iomux-mx23.h deleted +0 -349

349 lines not on this page · raw message

arch/arm/include/asm/arch-mxs/regs-base.h +2 -44

61 lines not on this page · raw message

arch/arm/include/asm/arch-mxs/regs-clkctrl-mx23.h deleted +0 -209

209 lines not on this page · raw message

arch/arm/include/asm/arch-mxs/regs-power-mx23.h deleted +0 -344

344 lines not on this page · raw message

arch/arm/include/asm/arch-mxs/regs-ssp.h +3 -39

72 lines not on this page · raw message

arch/arm/include/asm/arch-mxs/regs-timrot.h +9 -88

156 lines not on this page · raw message

arch/arm/include/asm/arch-mxs/sys_proto.h +2 -15
index 20ee863ac7e7..5d86d6b28312 100644
@@ -16,9 +16,7 @@ int mxsmmc_initialize(struct bd_info *bis, int id, int (*wp)(int),
 
 #ifdef CONFIG_SPL_BUILD
 
-#if defined(CONFIG_MX23)
-#include <asm/arch/iomux-mx23.h>
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #include <asm/arch/iomux-mx28.h>
 #endif
 
@@ -36,18 +34,7 @@ struct mxs_pair {
 };
 
 static const struct mxs_pair mxs_boot_modes[] = {
-#if defined(CONFIG_MX23)
-	{ 0x00, 0x0f, "USB" },
-	{ 0x01, 0x1f, "I2C, master" },
-	{ 0x02, 0x1f, "SSP SPI #1, master, NOR" },
-	{ 0x03, 0x1f, "SSP SPI #2, master, NOR" },
-	{ 0x04, 0x1f, "NAND" },
-	{ 0x06, 0x1f, "JTAG" },
-	{ 0x08, 0x1f, "SSP SPI #3, master, EEPROM" },
-	{ 0x09, 0x1f, "SSP SD/MMC #0" },
-	{ 0x0a, 0x1f, "SSP SD/MMC #1" },
-	{ 0x00, 0x00, "Reserved/Unknown/Wrong" },
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	{ 0x00, 0x0f, "USB #0" },
 	{ 0x01, 0x1f, "I2C #0, master, 3V3" },
 	{ 0x11, 0x1f, "I2C #0, master, 1V8" },
arch/arm/include/asm/mach-imx/dma.h +1 -13
index 55eb84cb8e7e..30a0fc057f2a 100644
@@ -23,19 +23,7 @@
 /*
  * MXS DMA channels
  */
-#if defined(CONFIG_MX23)
-enum {
-	MXS_DMA_CHANNEL_AHB_APBH_LCDIF = 0,
-	MXS_DMA_CHANNEL_AHB_APBH_SSP0,
-	MXS_DMA_CHANNEL_AHB_APBH_SSP1,
-	MXS_DMA_CHANNEL_AHB_APBH_RESERVED0,
-	MXS_DMA_CHANNEL_AHB_APBH_GPMI0,
-	MXS_DMA_CHANNEL_AHB_APBH_GPMI1,
-	MXS_DMA_CHANNEL_AHB_APBH_GPMI2,
-	MXS_DMA_CHANNEL_AHB_APBH_GPMI3,
-	MXS_MAX_DMA_CHANNELS,
-};
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 enum {
 	MXS_DMA_CHANNEL_AHB_APBH_SSP0 = 0,
 	MXS_DMA_CHANNEL_AHB_APBH_SSP1,
arch/arm/include/asm/mach-imx/regs-apbh.h +2 -113

139 lines not on this page · raw message

arch/arm/include/asm/mach-imx/regs-lcdif.h +0 -12
index 587463879661..12e0faad91d6 100644
@@ -29,10 +29,6 @@ struct mxs_lcdif_regs {
 	mxs_reg_32(hw_lcdif_cur_buf)		/* 0x30/0x40 */
 	mxs_reg_32(hw_lcdif_next_buf)		/* 0x40/0x50 */
 
-#if defined(CONFIG_MX23)
-	uint32_t	reserved1[4];
-#endif
-
 	mxs_reg_32(hw_lcdif_timing)		/* 0x60 */
 	mxs_reg_32(hw_lcdif_vdctrl0)		/* 0x70 */
 	mxs_reg_32(hw_lcdif_vdctrl1)		/* 0x80 */
@@ -52,9 +48,6 @@ struct mxs_lcdif_regs {
 	mxs_reg_32(hw_lcdif_csc_offset)		/* 0x160 */
 	mxs_reg_32(hw_lcdif_csc_limit)		/* 0x170 */
 
-#if defined(CONFIG_MX23)
-	uint32_t	reserved2[12];
-#endif
 	mxs_reg_32(hw_lcdif_data)		/* 0x1b0/0x180 */
 	mxs_reg_32(hw_lcdif_bm_error_stat)	/* 0x1c0/0x190 */
 #if defined(CONFIG_MX28) || defined(CONFIG_MX6SX) || \
@@ -214,13 +207,8 @@ struct mxs_lcdif_regs {
 #define	LCDIF_VDCTRL1_VSYNC_PERIOD_MASK				0xffffffff
 #define	LCDIF_VDCTRL1_VSYNC_PERIOD_OFFSET			0
 
-#if defined(CONFIG_MX23)
-#define	LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH_MASK			(0xff << 24)
-#define	LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH_OFFSET			24
-#else
 #define	LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH_MASK			(0x3fff << 18)
 #define	LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH_OFFSET			18
-#endif
 #define	LCDIF_VDCTRL2_HSYNC_PERIOD_MASK				0x3ffff
 #define	LCDIF_VDCTRL2_HSYNC_PERIOD_OFFSET			0
 
arch/arm/mach-imx/mxs/Kconfig +0 -21
index bd075de2b826..e04b0dc10f6c 100644
@@ -1,24 +1,3 @@
-if ARCH_MX23
-
-config MX23
-	bool
-	default y
-
-choice
-	prompt "MX23 board select"
-	optional
-
-config TARGET_SANSA_FUZE_PLUS
-	bool "Support sansa_fuze_plus"
-
-endchoice
-
-config SYS_SOC
-	default "mxs"
-
-
-endif
-
 if ARCH_MX28
 
 config MX28
drivers/dma/apbh_dma.c +1 -4
index da988f6bb667..e05415d2d502 100644
@@ -215,10 +215,7 @@ static int mxs_dma_reset(int channel)
 	struct mxs_apbh_regs *apbh_regs =
 		(struct mxs_apbh_regs *)MXS_APBH_BASE;
 	int ret;
-#if defined(CONFIG_MX23)
-	uint32_t setreg = (uint32_t)(&apbh_regs->hw_apbh_ctrl0_set);
-	uint32_t offset = APBH_CTRL0_RESET_CHANNEL_OFFSET;
-#elif defined(CONFIG_MX28) || defined(CONFIG_MX6) || defined(CONFIG_MX7) || \
+#if defined(CONFIG_MX28) || defined(CONFIG_MX6) || defined(CONFIG_MX7) || \
 	defined(CONFIG_IMX8) || defined(CONFIG_IMX8M)
 	u32 setreg = (uintptr_t)(&apbh_regs->hw_apbh_channel_ctrl_set);
 	u32 offset = APBH_CHANNEL_CTRL_RESET_CHANNEL_OFFSET;
drivers/gpio/mxs_gpio.c +2 -10
index 4b2b18fdb538..22e50dd21ca9 100644
@@ -15,15 +15,7 @@
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
 
-#if	defined(CONFIG_MX23)
-#define	PINCTRL_BANKS		3
-#define	PINCTRL_DOUT(n)		(0x0500 + ((n) * 0x10))
-#define	PINCTRL_DIN(n)		(0x0600 + ((n) * 0x10))
-#define	PINCTRL_DOE(n)		(0x0700 + ((n) * 0x10))
-#define	PINCTRL_PIN2IRQ(n)	(0x0800 + ((n) * 0x10))
-#define	PINCTRL_IRQEN(n)	(0x0900 + ((n) * 0x10))
-#define	PINCTRL_IRQSTAT(n)	(0x0c00 + ((n) * 0x10))
-#elif	defined(CONFIG_MX28)
+#if	defined(CONFIG_MX28)
 #define	PINCTRL_BANKS		5
 #define	PINCTRL_DOUT(n)		(0x0700 + ((n) * 0x10))
 #define	PINCTRL_DIN(n)		(0x0900 + ((n) * 0x10))
@@ -32,7 +24,7 @@
 #define	PINCTRL_IRQEN(n)	(0x1100 + ((n) * 0x10))
 #define	PINCTRL_IRQSTAT(n)	(0x1400 + ((n) * 0x10))
 #else
-#error "Please select CONFIG_MX23 or CONFIG_MX28"
+#error "Please select CONFIG_MX28"
 #endif
 
 #define GPIO_INT_FALL_EDGE	0x0
drivers/mmc/mxsmmc.c +1 -11
index 8fd41764152f..863e67f10c52 100644
@@ -391,15 +391,7 @@ mxsmmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, struct mmc_data *data)
 		ctrl0 |= SSP_CTRL0_DATA_XFER;
 
 		reg = data->blocksize * data->blocks;
-#if defined(CONFIG_MX23)
-		ctrl0 |= reg & SSP_CTRL0_XFER_COUNT_MASK;
-
-		clrsetbits_le32(&ssp_regs->hw_ssp_cmd0,
-			SSP_CMD0_BLOCK_SIZE_MASK | SSP_CMD0_BLOCK_COUNT_MASK,
-			((data->blocks - 1) << SSP_CMD0_BLOCK_COUNT_OFFSET) |
-			((ffs(data->blocksize) - 1) <<
-				SSP_CMD0_BLOCK_SIZE_OFFSET));
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 		writel(reg, &ssp_regs->hw_ssp_xfer_size);
 
 		reg = ((data->blocks - 1) <<
@@ -595,8 +587,6 @@ static int mxsmmc_probe(struct udevice *dev)
 
 #ifdef CONFIG_MX28
 	priv->clkid = clkid - MXS_SSP_IMX28_CLKID_SSP0;
-#else /* CONFIG_MX23 */
-	priv->clkid = clkid - MXS_SSP_IMX23_CLKID_SSP0;
 #endif
 	mmc = &plat->mmc;
 	mmc->cfg = &plat->cfg;
drivers/spi/mxs_spi.c +2 -7
index d41352a0bb8c..45b541fe1668 100644
@@ -83,10 +83,7 @@ static int mxs_spi_xfer_pio(struct mxs_spi_priv *priv,
 
 	while (length--) {
 		/* We transfer 1 byte */
-#if defined(CONFIG_MX23)
-		writel(SSP_CTRL0_XFER_COUNT_MASK, &ssp_regs->hw_ssp_ctrl0_clr);
-		writel(1, &ssp_regs->hw_ssp_ctrl0_set);
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 		writel(1, &ssp_regs->hw_ssp_xfer_size);
 #endif
 
@@ -146,9 +143,7 @@ static int mxs_spi_xfer_dma(struct mxs_spi_priv *priv,
 	int tl;
 	int ret = 0;
 
-#if defined(CONFIG_MX23)
-	const int mxs_spi_pio_words = 1;
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	const int mxs_spi_pio_words = 4;
 #endif
 
include/configs/mxs.h +2 -12
index 325c3ee00ce3..3db3e18066e7 100644
@@ -23,17 +23,9 @@
  * Includes
  */
 
-#if defined(CONFIG_MX23) && defined(CONFIG_MX28)
-#error Select either CONFIG_MX23 or CONFIG_MX28 , never both!
-#elif !defined(CONFIG_MX23) && !defined(CONFIG_MX28)
-#error Select one of CONFIG_MX23 or CONFIG_MX28 !
-#endif
-
 #include <asm/arch/regs-base.h>
 
-#if defined(CONFIG_MX23)
-#include <asm/arch/iomux-mx23.h>
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #include <asm/arch/iomux-mx28.h>
 #endif
 
@@ -54,9 +46,7 @@
 
 /* OCRAM at 0x0 ; 32kB on MX23 ; 128kB on MX28 */
 #define CONFIG_SYS_INIT_RAM_ADDR	0x00000000
-#if defined(CONFIG_MX23)
-#define CONFIG_SYS_INIT_RAM_SIZE	(32 * 1024)
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define CONFIG_SYS_INIT_RAM_SIZE	(128 * 1024)
 #endif
 
tools/Makefile +2 -3
index 2d550432ba5a..ce8faeb85249 100644
@@ -127,7 +127,7 @@ fit_info-objs   := $(dumpimage-mkimage-objs) fit_info.o
 fit_check_sign-objs   := $(dumpimage-mkimage-objs) fit_check_sign.o
 file2include-objs := file2include.o
 
-ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_FIT_SIGNATURE),)
+ifneq ($(CONFIG_MX28)$(CONFIG_FIT_SIGNATURE),)
 # Add CONFIG_MXS into host CFLAGS, so we can check whether or not register
 # the mxsimage support within tools/mxsimage.c .
 HOSTCFLAGS_mxsimage.o += -DCONFIG_MXS
@@ -155,7 +155,7 @@ HOSTCFLAGS_kwbimage.o += -DCONFIG_KWB_SECURE
 endif
 
 # MXSImage needs LibSSL
-ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_ARMADA_38X)$(CONFIG_ARMADA_39X)$(CONFIG_FIT_SIGNATURE)$(CONFIG_FIT_CIPHER),)
+ifneq ($(CONFIG_MX28)$(CONFIG_ARMADA_38X)$(CONFIG_ARMADA_39X)$(CONFIG_FIT_SIGNATURE)$(CONFIG_FIT_CIPHER),)
 HOSTCFLAGS_kwbimage.o += \
 	$(shell pkg-config --cflags libssl libcrypto 2> /dev/null || echo "")
 HOSTLDLIBS_mkimage += \
@@ -186,7 +186,6 @@ hostprogs-$(CONFIG_X86) += ifdtool
 ifwitool-objs := ifwitool.o
 hostprogs-$(CONFIG_X86)$(CONFIG_SANDBOX) += ifwitool
 
-hostprogs-$(CONFIG_MX23) += mxsboot
 hostprogs-$(CONFIG_MX28) += mxsboot
 HOSTCFLAGS_mxsboot.o := -pedantic
 
Signature · 1 line
2.17.1
#6 lore raw

PATCH 5/25 arm: imx: Remove MX23 support

Quoted 3 lines · Tom Rini

As there are now no boards for the MX23 family, remove the general support.

I am fine to drop it.

Best regards,
Stefano

Quoted 2,218 lines
Cc Stefano Babic <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP i.MX U-Boot Team <[email protected]>
---
 arch/arm/Kconfig                              |   8 +-
 arch/arm/Makefile                             |   2 +-
 arch/arm/cpu/arm926ejs/mxs/Makefile           |   1 -
 arch/arm/cpu/arm926ejs/mxs/clock.c            |  31 +-
 arch/arm/cpu/arm926ejs/mxs/iomux.c            |   7 +-
 .../cpu/arm926ejs/mxs/mxsimage-spl.mx23.cfg   |   5 -
 arch/arm/cpu/arm926ejs/mxs/mxsimage.mx23.cfg  |   7 -
 arch/arm/cpu/arm926ejs/mxs/spl_boot.c         |  31 +-
 arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c     |  85 +----
 arch/arm/cpu/arm926ejs/mxs/spl_power_init.c   |  50 +--
 arch/arm/cpu/arm926ejs/mxs/timer.c            |  12 +-
 arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd    |  18 -
 arch/arm/include/asm/arch-mxs/imx-regs.h      |   5 -
 arch/arm/include/asm/arch-mxs/iomux-mx23.h    | 349 ------------------
 arch/arm/include/asm/arch-mxs/regs-base.h     |  46 +--
 .../include/asm/arch-mxs/regs-clkctrl-mx23.h  | 209 -----------
 .../include/asm/arch-mxs/regs-power-mx23.h    | 344 -----------------
 arch/arm/include/asm/arch-mxs/regs-ssp.h      |  42 +--
 arch/arm/include/asm/arch-mxs/regs-timrot.h   |  97 +----
 arch/arm/include/asm/arch-mxs/sys_proto.h     |  17 +-
 arch/arm/include/asm/mach-imx/dma.h           |  14 +-
 arch/arm/include/asm/mach-imx/regs-apbh.h     | 115 +-----
 arch/arm/include/asm/mach-imx/regs-lcdif.h    |  12 -
 arch/arm/mach-imx/mxs/Kconfig                 |  21 --
 drivers/dma/apbh_dma.c                        |   5 +-
 drivers/gpio/mxs_gpio.c                       |  12 +-
 drivers/mmc/mxsmmc.c                          |  12 +-
 drivers/spi/mxs_spi.c                         |   9 +-
 include/configs/mxs.h                         |  14 +-
 tools/Makefile                                |   5 +-
 30 files changed, 44 insertions(+), 1541 deletions(-)
 delete mode 100644 arch/arm/cpu/arm926ejs/mxs/mxsimage-spl.mx23.cfg
 delete mode 100644 arch/arm/cpu/arm926ejs/mxs/mxsimage.mx23.cfg
 delete mode 100644 arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd
 delete mode 100644 arch/arm/include/asm/arch-mxs/iomux-mx23.h
 delete mode 100644 arch/arm/include/asm/arch-mxs/regs-clkctrl-mx23.h
 delete mode 100644 arch/arm/include/asm/arch-mxs/regs-power-mx23.h
arch/arm/Kconfig +1 -7
index 95557d6ed6bd..f2a87c3caed8 100644
@@ -856,12 +856,6 @@ config ARCH_IMXRT
 	select SUPPORT_SPL
 	imply CMD_DM
 
-config ARCH_MX23
-	bool "NXP i.MX23 family"
-	select CPU_ARM926EJS
-	select PL011_SERIAL
-	select SUPPORT_SPL
-
 config ARCH_MX25
 	bool "NXP MX25"
 	select CPU_ARM926EJS
@@ -2042,6 +2036,6 @@ source "arch/arm/Kconfig.debug"
 endmenu
 
 config SPL_LDSCRIPT
-	default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if (ARCH_MX23 || ARCH_MX28) && !SPL_FRAMEWORK
+	default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if ARCH_MX28 && !SPL_FRAMEWORK
 	default "arch/arm/cpu/arm1136/u-boot-spl.lds" if CPU_ARM1136
 	default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
arch/arm/Makefile +1 -1
index 28b523b37c70..7c1bca7f9269 100644
@@ -107,7 +107,7 @@ libs-y += arch/arm/cpu/
 libs-y += arch/arm/lib/
 
 ifeq ($(CONFIG_SPL_BUILD),y)
-ifneq (,$(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_MX35)$(filter $(SOC), mx25 mx5 mx6 mx7 mx35 imx8m imx8 imxrt))
+ifneq (,$(CONFIG_MX28)$(CONFIG_MX35)$(filter $(SOC), mx25 mx5 mx6 mx7 mx35 imx8m imx8 imxrt))
 libs-y += arch/arm/mach-imx/
 endif
 else
arch/arm/cpu/arm926ejs/mxs/Makefile +0 -1
index f60e61e4343f..f846a5400a3d 100644
@@ -12,7 +12,6 @@ obj-y	+= spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
 endif
 
 # Specify the target for use in elftosb call
-MKIMAGE_TARGET-$(CONFIG_MX23) = mxsimage$(CONFIG_SPL_FRAMEWORK:%=-spl).mx23.cfg
 MKIMAGE_TARGET-$(CONFIG_MX28) = mxsimage$(CONFIG_SPL_FRAMEWORK:%=-spl).mx28.cfg
 
 # Generate HAB-capable IVT
arch/arm/cpu/arm926ejs/mxs/clock.c +4 -27
index 4e1cf3a1e32b..9aa6f83bb395 100644
@@ -28,9 +28,7 @@
 #define	PLL_FREQ_MHZ	(PLL_FREQ_KHZ / 1000)
 #define	XTAL_FREQ_MHZ	(XTAL_FREQ_KHZ / 1000)
 
-#if defined(CONFIG_MX23)
-#define MXC_SSPCLK_MAX MXC_SSPCLK0
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define MXC_SSPCLK_MAX MXC_SSPCLK3
 #endif
 
@@ -113,10 +111,7 @@ static uint32_t mxs_get_gpmiclk(void)
 {
 	struct mxs_clkctrl_regs *clkctrl_regs =
 		(struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE;
-#if defined(CONFIG_MX23)
-	uint8_t *reg =
-		&clkctrl_regs->hw_clkctrl_frac0[CLKCTRL_FRAC0_CPU];
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	uint8_t *reg =
 		&clkctrl_regs->hw_clkctrl_frac1[CLKCTRL_FRAC1_GPMI];
 #endif
@@ -319,9 +314,7 @@ void mxs_set_lcdclk(uint32_t __maybe_unused lcd_base, uint32_t freq)
 	if (freq == 0)
 		return;
 
-#if defined(CONFIG_MX23)
-	writel(CLKCTRL_CLKSEQ_BYPASS_PIX, &clkctrl_regs->hw_clkctrl_clkseq_clr);
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	writel(CLKCTRL_CLKSEQ_BYPASS_DIS_LCDIF, &clkctrl_regs->hw_clkctrl_clkseq_clr);
 #endif
 
@@ -367,23 +360,7 @@ void mxs_set_lcdclk(uint32_t __maybe_unused lcd_base, uint32_t freq)
 
 	k_best /= 1000;
 
-#if defined(CONFIG_MX23)
-	writeb(CLKCTRL_FRAC_CLKGATE,
-		&clkctrl_regs->hw_clkctrl_frac0_set[CLKCTRL_FRAC0_PIX]);
-	writeb(CLKCTRL_FRAC_CLKGATE | (x_best & CLKCTRL_FRAC_FRAC_MASK),
-		&clkctrl_regs->hw_clkctrl_frac0[CLKCTRL_FRAC0_PIX]);
-	writeb(CLKCTRL_FRAC_CLKGATE,
-		&clkctrl_regs->hw_clkctrl_frac0_clr[CLKCTRL_FRAC0_PIX]);
-
-	writel(CLKCTRL_PIX_CLKGATE,
-		&clkctrl_regs->hw_clkctrl_pix_set);
-	clrsetbits_le32(&clkctrl_regs->hw_clkctrl_pix,
-			CLKCTRL_PIX_DIV_MASK | CLKCTRL_PIX_CLKGATE,
-			k_best << CLKCTRL_PIX_DIV_OFFSET);
-
-	while (readl(&clkctrl_regs->hw_clkctrl_pix) & CLKCTRL_PIX_BUSY)
-		;
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	writeb(CLKCTRL_FRAC_CLKGATE,
 		&clkctrl_regs->hw_clkctrl_frac1_set[CLKCTRL_FRAC1_PIX]);
 	writeb(CLKCTRL_FRAC_CLKGATE | (x_best & CLKCTRL_FRAC_FRAC_MASK),
arch/arm/cpu/arm926ejs/mxs/iomux.c +2 -5
index 381264b8a18d..d212d0fa529d 100644
@@ -13,14 +13,11 @@
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
 
-#if	defined(CONFIG_MX23)
-#define	DRIVE_OFFSET	0x200
-#define	PULL_OFFSET	0x400
-#elif	defined(CONFIG_MX28)
+#if	defined(CONFIG_MX28)
 #define	DRIVE_OFFSET	0x300
 #define	PULL_OFFSET	0x600
 #else
-#error "Please select CONFIG_MX23 or CONFIG_MX28"
+#error "Please select CONFIG_MX28"
 #endif
 
 /*
arch/arm/cpu/arm926ejs/mxs/mxsimage-spl.mx23.cfg deleted +0 -5
deleted file mode 100644
index ab2183ed3795..000000000000
@@ -1,5 +0,0 @@
-DISPLAYPROGRESS
-SECTION 0x0 BOOTABLE
- TAG LAST
- LOAD     0x1000     spl/u-boot-spl.bin
- CALL     0x1000     0x0
arch/arm/cpu/arm926ejs/mxs/mxsimage.mx23.cfg deleted +0 -7
deleted file mode 100644
index e7028092a2c3..000000000000
@@ -1,7 +0,0 @@
-DISPLAYPROGRESS
-SECTION 0x0 BOOTABLE
- TAG LAST
- LOAD     0x1000     spl/u-boot-spl.bin
- CALL     0x1000     0x0
- LOAD     0x40002000 u-boot.bin
- CALL     0x40002000 0x0
arch/arm/cpu/arm926ejs/mxs/spl_boot.c +1 -30
index 1501d7df0dc6..d44167e4e90c 100644
@@ -39,42 +39,13 @@ void early_delay(int delay)
 		;
 }
 
-#if defined(CONFIG_MX23)
-#define	MUX_CONFIG_BOOTMODE_PAD	(MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_NOPULL)
-static const iomux_cfg_t iomux_boot[] = {
-	MX23_PAD_LCD_D00__GPIO_1_0 | MUX_CONFIG_BOOTMODE_PAD,
-	MX23_PAD_LCD_D01__GPIO_1_1 | MUX_CONFIG_BOOTMODE_PAD,
-	MX23_PAD_LCD_D02__GPIO_1_2 | MUX_CONFIG_BOOTMODE_PAD,
-	MX23_PAD_LCD_D03__GPIO_1_3 | MUX_CONFIG_BOOTMODE_PAD,
-	MX23_PAD_LCD_D04__GPIO_1_4 | MUX_CONFIG_BOOTMODE_PAD,
-	MX23_PAD_LCD_D05__GPIO_1_5 | MUX_CONFIG_BOOTMODE_PAD,
-};
-#endif
-
 static uint8_t mxs_get_bootmode_index(void)
 {
 	uint8_t bootmode = 0;
 	int i;
 	uint8_t masked;
 
-#if defined(CONFIG_MX23)
-	/* Setup IOMUX of bootmode pads to GPIO */
-	mxs_iomux_setup_multiple_pads(iomux_boot, ARRAY_SIZE(iomux_boot));
-
-	/* Setup bootmode pins as GPIO input */
-	gpio_direction_input(MX23_PAD_LCD_D00__GPIO_1_0);
-	gpio_direction_input(MX23_PAD_LCD_D01__GPIO_1_1);
-	gpio_direction_input(MX23_PAD_LCD_D02__GPIO_1_2);
-	gpio_direction_input(MX23_PAD_LCD_D03__GPIO_1_3);
-	gpio_direction_input(MX23_PAD_LCD_D05__GPIO_1_5);
-
-	/* Read bootmode pads */
-	bootmode |= (gpio_get_value(MX23_PAD_LCD_D00__GPIO_1_0) ? 1 : 0) << 0;
-	bootmode |= (gpio_get_value(MX23_PAD_LCD_D01__GPIO_1_1) ? 1 : 0) << 1;
-	bootmode |= (gpio_get_value(MX23_PAD_LCD_D02__GPIO_1_2) ? 1 : 0) << 2;
-	bootmode |= (gpio_get_value(MX23_PAD_LCD_D03__GPIO_1_3) ? 1 : 0) << 3;
-	bootmode |= (gpio_get_value(MX23_PAD_LCD_D05__GPIO_1_5) ? 1 : 0) << 5;
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	/* The global boot mode will be detected by ROM code and its value
 	 * is stored at the fixed address 0x00019BF0 in OCRAM.
 	 */
arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c +2 -83
index a94803ee93d9..c56b620f1ffa 100644
@@ -71,21 +71,6 @@ __weak uint32_t mxs_dram_vals[] = {
 	0x00040004, 0x00000000, 0x00000000, 0x00000000,
 	0x00000000, 0xffffffff
 
-/*
- * i.MX23 DDR at 133MHz
- */
-#elif defined(CONFIG_MX23)
-	0x01010001, 0x00010100, 0x01000101, 0x00000001,
-	0x00000101, 0x00000000, 0x00010000, 0x01000001,
-	0x00000000, 0x00000001, 0x07000200, 0x00070202,
-	0x02020000, 0x04040a01, 0x00000201, 0x02040000,
-	0x02000000, 0x19000f08, 0x0d0d0000, 0x02021313,
-	0x02061521, 0x0000000a, 0x00080008, 0x00200020,
-	0x00200020, 0x00200020, 0x000003f7, 0x00000000,
-	0x00000000, 0x00000020, 0x00000020, 0x00c80000,
-	0x000a23cd, 0x000000c8, 0x00006665, 0x00000000,
-	0x00000101, 0x00040001, 0x00000000, 0x00000000,
-	0x00010000
 #else
 #error Unsupported memory initialization
 #endif
@@ -144,10 +129,7 @@ static void mxs_mem_init_clock(void)
 {
 	struct mxs_clkctrl_regs *clkctrl_regs =
 		(struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE;
-#if defined(CONFIG_MX23)
-	/* Fractional divider for ref_emi is 33 ; 480 * 18 / 33 = 266MHz */
-	const unsigned char divider = 33;
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	/* Fractional divider for ref_emi is 21 ; 480 * 18 / 21 = 411MHz */
 	const unsigned char divider = 21;
 #endif
@@ -247,67 +229,6 @@ uint32_t mxs_mem_get_size(void)
 	return sz;
 }
 
-#ifdef CONFIG_MX23
-static void mx23_mem_setup_vddmem(void)
-{
-	struct mxs_power_regs *power_regs =
-		(struct mxs_power_regs *)MXS_POWER_BASE;
-
-	debug("SPL: Setting mx23 VDDMEM\n");
-
-	/* We must wait before and after disabling the current limiter! */
-	early_delay(10000);
-
-	clrbits_le32(&power_regs->hw_power_vddmemctrl,
-		POWER_VDDMEMCTRL_ENABLE_ILIMIT);
-
-	early_delay(10000);
-
-}
-
-static void mx23_mem_init(void)
-{
-	debug("SPL: Initialising mx23 SDRAM Controller\n");
-
-	/*
-	 * Reset/ungate the EMI block. This is essential, otherwise the system
-	 * suffers from memory instability. This thing is mx23 specific and is
-	 * no longer present on mx28.
-	 */
-	mxs_reset_block((struct mxs_register_32 *)MXS_EMI_BASE);
-
-	mx23_mem_setup_vddmem();
-
-	/*
-	 * Configure the DRAM registers
-	 */
-
-	/* Clear START and SREFRESH bit from DRAM_CTL8 */
-	clrbits_le32(MXS_DRAM_BASE + 0x20, (1 << 16) | (1 << 8));
-
-	initialize_dram_values();
-
-	/* Set START bit in DRAM_CTL8 */
-	setbits_le32(MXS_DRAM_BASE + 0x20, 1 << 16);
-
-	clrbits_le32(MXS_DRAM_BASE + 0x40, 1 << 17);
-
-	/* Wait for EMI_STAT bit DRAM_HALTED */
-	for (;;) {
-		if (!(readl(MXS_EMI_BASE + 0x10) & (1 << 1)))
-			break;
-		early_delay(1000);
-	}
-
-	/* Adjust EMI port priority. */
-	clrsetbits_le32(0x80020000, 0x1f << 16, 0x2);
-	early_delay(20000);
-
-	setbits_le32(MXS_DRAM_BASE + 0x40, 1 << 19);
-	setbits_le32(MXS_DRAM_BASE + 0x40, 1 << 11);
-}
-#endif
-
 #ifdef CONFIG_MX28
 static void mx28_mem_init(void)
 {
@@ -349,9 +270,7 @@ void mxs_mem_init(void)
 
 	mxs_mem_setup_vdda();
 
-#if defined(CONFIG_MX23)
-	mx23_mem_init();
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	mx28_mem_init();
 #endif
 
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c +1 -49
index 35ea71a5ba89..095ad9230fa8 100644
@@ -939,13 +939,6 @@ static void mxs_power_configure_power_source(void)
 	mxs_init_batt_bo();
 
 	mxs_switch_vddd_to_dcdc_source();
-
-#ifdef CONFIG_MX23
-	/* Fire up the VDDMEM LinReg now that we're all set. */
-	debug("SPL: Enabling mx23 VDDMEM linear regulator\n");
-	writel(POWER_VDDMEMCTRL_ENABLE_LINREG | POWER_VDDMEMCTRL_ENABLE_ILIMIT,
-		&power_regs->hw_power_vddmemctrl);
-#endif
 }
 
 /**
@@ -1065,9 +1058,7 @@ struct mxs_vddx_cfg {
 static const struct mxs_vddx_cfg mxs_vddio_cfg = {
 	.reg			= &(((struct mxs_power_regs *)MXS_POWER_BASE)->
 					hw_power_vddioctrl),
-#if defined(CONFIG_MX23)
-	.step_mV		= 25,
-#else
+#if defined(CONFIG_MX28)
 	.step_mV		= 50,
 #endif
 	.lowest_mV		= 2800,
@@ -1092,21 +1083,6 @@ static const struct mxs_vddx_cfg mxs_vddd_cfg = {
 	.bo_offset_offset	= POWER_VDDDCTRL_BO_OFFSET_OFFSET,
 };
 
-#ifdef CONFIG_MX23
-static const struct mxs_vddx_cfg mxs_vddmem_cfg = {
-	.reg			= &(((struct mxs_power_regs *)MXS_POWER_BASE)->
-					hw_power_vddmemctrl),
-	.step_mV		= 50,
-	.lowest_mV		= 1700,
-	.powered_by_linreg	= NULL,
-	.trg_mask		= POWER_VDDMEMCTRL_TRG_MASK,
-	.bo_irq			= 0,
-	.bo_enirq		= 0,
-	.bo_offset_mask		= 0,
-	.bo_offset_offset	= 0,
-};
-#endif
-
 /**
  * mxs_power_set_vddx() - Configure voltage on DC-DC converter rail
  * @cfg:		Configuration data of the DC-DC converter rail
@@ -1210,24 +1186,6 @@ static void mxs_setup_batt_detect(void)
 	early_delay(10);
 }
 
-/**
- * mxs_ungate_power() - Ungate the POWER block
- *
- * This function ungates clock to the power block. In case the power block
- * was still gated at this point, it will not be possible to configure the
- * block and therefore the power initialization would fail. This function
- * is only needed on i.MX233, on i.MX28 the power block is always ungated.
- */
-static void mxs_ungate_power(void)
-{
-#ifdef CONFIG_MX23
-	struct mxs_power_regs *power_regs =
-		(struct mxs_power_regs *)MXS_POWER_BASE;
-
-	writel(POWER_CTRL_CLKGATE, &power_regs->hw_power_ctrl_clr);
-#endif
-}
-
 /**
  * mxs_power_init() - The power block init main function
  *
@@ -1241,8 +1199,6 @@ void mxs_power_init(void)
 
 	debug("SPL: Initialising Power Block\n");
 
-	mxs_ungate_power();
-
 	mxs_power_clock2xtal();
 	mxs_power_set_auto_restart();
 	mxs_power_set_linreg();
@@ -1258,10 +1214,6 @@ void mxs_power_init(void)
 
 	debug("SPL: Setting VDDD to 1V55 (brownout @ 1v400)\n");
 	mxs_power_set_vddx(&mxs_vddd_cfg, 1550, 1400);
-#ifdef CONFIG_MX23
-	debug("SPL: Setting mx23 VDDMEM to 2V5 (brownout @ 1v7)\n");
-	mxs_power_set_vddx(&mxs_vddmem_cfg, 2500, 1700);
-#endif
 	writel(POWER_CTRL_VDDD_BO_IRQ | POWER_CTRL_VDDA_BO_IRQ |
 		POWER_CTRL_VDDIO_BO_IRQ | POWER_CTRL_VDD5V_DROOP_IRQ |
 		POWER_CTRL_VBUS_VALID_IRQ | POWER_CTRL_BATT_BO_IRQ |
arch/arm/cpu/arm926ejs/mxs/timer.c +3 -9
index 5ab4ed0c5a3d..a5dd9a838e87 100644
@@ -18,9 +18,7 @@
 #include <linux/delay.h>
 
 /* Maximum fixed count */
-#if defined(CONFIG_MX23)
-#define TIMER_LOAD_VAL 0xffff
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define TIMER_LOAD_VAL 0xffffffff
 #endif
 
@@ -59,9 +57,7 @@ int timer_init(void)
 	mxs_reset_block(&timrot_regs->hw_timrot_rotctrl_reg);
 
 	/* Set fixed_count to 0 */
-#if defined(CONFIG_MX23)
-	writel(0, &timrot_regs->hw_timrot_timcount0);
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	writel(0, &timrot_regs->hw_timrot_fixed_count0);
 #endif
 
@@ -71,9 +67,7 @@ int timer_init(void)
 		&timrot_regs->hw_timrot_timctrl0);
 
 	/* Set fixed_count to maximal value */
-#if defined(CONFIG_MX23)
-	writel(TIMER_LOAD_VAL - 1, &timrot_regs->hw_timrot_timcount0);
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	writel(TIMER_LOAD_VAL, &timrot_regs->hw_timrot_fixed_count0);
 #endif
 
arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd deleted +0 -18
deleted file mode 100644
index 3a51879d5e4a..000000000000
@@ -1,18 +0,0 @@
-options {
-	driveTag = 0x00;
-	flags = 0x01;
-}
-
-sources {
-	u_boot_spl="spl/u-boot-spl.bin";
-	u_boot="u-boot.bin";
-}
-
-section (0) {
-	load u_boot_spl > 0x0000;
-	load ivt (entry = 0x0014) > 0x8000;
-	call 0x8000;
-
-	load u_boot > 0x40000100;
-	call 0x40000100;
-}
arch/arm/include/asm/arch-mxs/imx-regs.h +0 -5
index f853c484be7d..c099c65c9608 100644
@@ -25,11 +25,6 @@
 #include <asm/arch/regs-usb.h>
 #include <asm/arch/regs-usbphy.h>
 
-#ifdef CONFIG_MX23
-#include <asm/arch/regs-clkctrl-mx23.h>
-#include <asm/arch/regs-power-mx23.h>
-#endif
-
 #ifdef CONFIG_MX28
 #include <asm/arch/regs-clkctrl-mx28.h>
 #include <asm/arch/regs-power-mx28.h>
arch/arm/include/asm/arch-mxs/iomux-mx23.h deleted +0 -349
deleted file mode 100644
index 2706efa750a2..000000000000
@@ -1,349 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2009-2010 Amit Kucheria <[email protected]>
- * Copyright (C) 2010 Freescale Semiconductor, Inc.
- */
-
-#ifndef __MACH_IOMUX_MX23_H__
-#define __MACH_IOMUX_MX23_H__
-
-#include <asm/arch/iomux.h>
-
-/*
- * The naming convention for the pad modes is MX23_PAD_<padname>__<padmode>
- * If <padname> or <padmode> refers to a GPIO, it is named GPIO_<unit>_<num>
- * See also iomux.h
- *
- *									BANK	PIN	MUX
- */
-/* MUXSEL_0 */
-#define MX23_PAD_GPMI_D00__GPMI_D00		MXS_IOMUX_PAD_NAKED(0,  0, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D01__GPMI_D01		MXS_IOMUX_PAD_NAKED(0,  1, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D02__GPMI_D02		MXS_IOMUX_PAD_NAKED(0,  2, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D03__GPMI_D03		MXS_IOMUX_PAD_NAKED(0,  3, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D04__GPMI_D04		MXS_IOMUX_PAD_NAKED(0,  4, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D05__GPMI_D05		MXS_IOMUX_PAD_NAKED(0,  5, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D06__GPMI_D06		MXS_IOMUX_PAD_NAKED(0,  6, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D07__GPMI_D07		MXS_IOMUX_PAD_NAKED(0,  7, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D08__GPMI_D08		MXS_IOMUX_PAD_NAKED(0,  8, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D09__GPMI_D09		MXS_IOMUX_PAD_NAKED(0,  9, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D10__GPMI_D10		MXS_IOMUX_PAD_NAKED(0, 10, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D11__GPMI_D11		MXS_IOMUX_PAD_NAKED(0, 11, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D12__GPMI_D12		MXS_IOMUX_PAD_NAKED(0, 12, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D13__GPMI_D13		MXS_IOMUX_PAD_NAKED(0, 13, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D14__GPMI_D14		MXS_IOMUX_PAD_NAKED(0, 14, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_D15__GPMI_D15		MXS_IOMUX_PAD_NAKED(0, 15, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_CLE__GPMI_CLE		MXS_IOMUX_PAD_NAKED(0, 16, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_ALE__GPMI_ALE		MXS_IOMUX_PAD_NAKED(0, 17, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_CE2N__GPMI_CE2N		MXS_IOMUX_PAD_NAKED(0, 18, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_RDY0__GPMI_RDY0		MXS_IOMUX_PAD_NAKED(0, 19, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_RDY1__GPMI_RDY1		MXS_IOMUX_PAD_NAKED(0, 20, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_RDY2__GPMI_RDY2		MXS_IOMUX_PAD_NAKED(0, 21, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_RDY3__GPMI_RDY3		MXS_IOMUX_PAD_NAKED(0, 22, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_WPN__GPMI_WPN		MXS_IOMUX_PAD_NAKED(0, 23, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_WRN__GPMI_WRN		MXS_IOMUX_PAD_NAKED(0, 24, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_RDN__GPMI_RDN		MXS_IOMUX_PAD_NAKED(0, 25, PAD_MUXSEL_0)
-#define MX23_PAD_AUART1_CTS__AUART1_CTS		MXS_IOMUX_PAD_NAKED(0, 26, PAD_MUXSEL_0)
-#define MX23_PAD_AUART1_RTS__AUART1_RTS		MXS_IOMUX_PAD_NAKED(0, 27, PAD_MUXSEL_0)
-#define MX23_PAD_AUART1_RX__AUART1_RX		MXS_IOMUX_PAD_NAKED(0, 28, PAD_MUXSEL_0)
-#define MX23_PAD_AUART1_TX__AUART1_TX		MXS_IOMUX_PAD_NAKED(0, 29, PAD_MUXSEL_0)
-#define MX23_PAD_I2C_SCL__I2C_SCL		MXS_IOMUX_PAD_NAKED(0, 30, PAD_MUXSEL_0)
-#define MX23_PAD_I2C_SDA__I2C_SDA		MXS_IOMUX_PAD_NAKED(0, 31, PAD_MUXSEL_0)
-
-#define MX23_PAD_LCD_D00__LCD_D00		MXS_IOMUX_PAD_NAKED(1,  0, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D01__LCD_D01		MXS_IOMUX_PAD_NAKED(1,  1, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D02__LCD_D02		MXS_IOMUX_PAD_NAKED(1,  2, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D03__LCD_D03		MXS_IOMUX_PAD_NAKED(1,  3, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D04__LCD_D04		MXS_IOMUX_PAD_NAKED(1,  4, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D05__LCD_D05		MXS_IOMUX_PAD_NAKED(1,  5, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D06__LCD_D06		MXS_IOMUX_PAD_NAKED(1,  6, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D07__LCD_D07		MXS_IOMUX_PAD_NAKED(1,  7, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D08__LCD_D08		MXS_IOMUX_PAD_NAKED(1,  8, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D09__LCD_D09		MXS_IOMUX_PAD_NAKED(1,  9, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D10__LCD_D10		MXS_IOMUX_PAD_NAKED(1, 10, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D11__LCD_D11		MXS_IOMUX_PAD_NAKED(1, 11, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D12__LCD_D12		MXS_IOMUX_PAD_NAKED(1, 12, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D13__LCD_D13		MXS_IOMUX_PAD_NAKED(1, 13, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D14__LCD_D14		MXS_IOMUX_PAD_NAKED(1, 14, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D15__LCD_D15		MXS_IOMUX_PAD_NAKED(1, 15, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D16__LCD_D16		MXS_IOMUX_PAD_NAKED(1, 16, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_D17__LCD_D17		MXS_IOMUX_PAD_NAKED(1, 17, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_RESET__LCD_RESET		MXS_IOMUX_PAD_NAKED(1, 18, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_RS__LCD_RS			MXS_IOMUX_PAD_NAKED(1, 19, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_WR__LCD_WR			MXS_IOMUX_PAD_NAKED(1, 20, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_CS__LCD_CS			MXS_IOMUX_PAD_NAKED(1, 21, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_DOTCK__LCD_DOTCK		MXS_IOMUX_PAD_NAKED(1, 22, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_ENABLE__LCD_ENABLE		MXS_IOMUX_PAD_NAKED(1, 23, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_HSYNC__LCD_HSYNC		MXS_IOMUX_PAD_NAKED(1, 24, PAD_MUXSEL_0)
-#define MX23_PAD_LCD_VSYNC__LCD_VSYNC		MXS_IOMUX_PAD_NAKED(1, 25, PAD_MUXSEL_0)
-#define MX23_PAD_PWM0__PWM0			MXS_IOMUX_PAD_NAKED(1, 26, PAD_MUXSEL_0)
-#define MX23_PAD_PWM1__PWM1			MXS_IOMUX_PAD_NAKED(1, 27, PAD_MUXSEL_0)
-#define MX23_PAD_PWM2__PWM2			MXS_IOMUX_PAD_NAKED(1, 28, PAD_MUXSEL_0)
-#define MX23_PAD_PWM3__PWM3			MXS_IOMUX_PAD_NAKED(1, 29, PAD_MUXSEL_0)
-#define MX23_PAD_PWM4__PWM4			MXS_IOMUX_PAD_NAKED(1, 30, PAD_MUXSEL_0)
-
-#define MX23_PAD_SSP1_CMD__SSP1_CMD		MXS_IOMUX_PAD_NAKED(2,  0, PAD_MUXSEL_0)
-#define MX23_PAD_SSP1_DETECT__SSP1_DETECT	MXS_IOMUX_PAD_NAKED(2,  1, PAD_MUXSEL_0)
-#define MX23_PAD_SSP1_DATA0__SSP1_DATA0		MXS_IOMUX_PAD_NAKED(2,  2, PAD_MUXSEL_0)
-#define MX23_PAD_SSP1_DATA1__SSP1_DATA1		MXS_IOMUX_PAD_NAKED(2,  3, PAD_MUXSEL_0)
-#define MX23_PAD_SSP1_DATA2__SSP1_DATA2		MXS_IOMUX_PAD_NAKED(2,  4, PAD_MUXSEL_0)
-#define MX23_PAD_SSP1_DATA3__SSP1_DATA3		MXS_IOMUX_PAD_NAKED(2,  5, PAD_MUXSEL_0)
-#define MX23_PAD_SSP1_SCK__SSP1_SCK		MXS_IOMUX_PAD_NAKED(2,  6, PAD_MUXSEL_0)
-#define MX23_PAD_ROTARYA__ROTARYA		MXS_IOMUX_PAD_NAKED(2,  7, PAD_MUXSEL_0)
-#define MX23_PAD_ROTARYB__ROTARYB		MXS_IOMUX_PAD_NAKED(2,  8, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A00__EMI_A00		MXS_IOMUX_PAD_NAKED(2,  9, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A01__EMI_A01		MXS_IOMUX_PAD_NAKED(2, 10, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A02__EMI_A02		MXS_IOMUX_PAD_NAKED(2, 11, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A03__EMI_A03		MXS_IOMUX_PAD_NAKED(2, 12, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A04__EMI_A04		MXS_IOMUX_PAD_NAKED(2, 13, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A05__EMI_A05		MXS_IOMUX_PAD_NAKED(2, 14, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A06__EMI_A06		MXS_IOMUX_PAD_NAKED(2, 15, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A07__EMI_A07		MXS_IOMUX_PAD_NAKED(2, 16, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A08__EMI_A08		MXS_IOMUX_PAD_NAKED(2, 17, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A09__EMI_A09		MXS_IOMUX_PAD_NAKED(2, 18, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A10__EMI_A10		MXS_IOMUX_PAD_NAKED(2, 19, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A11__EMI_A11		MXS_IOMUX_PAD_NAKED(2, 20, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_A12__EMI_A12		MXS_IOMUX_PAD_NAKED(2, 21, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_BA0__EMI_BA0		MXS_IOMUX_PAD_NAKED(2, 22, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_BA1__EMI_BA1		MXS_IOMUX_PAD_NAKED(2, 23, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_CASN__EMI_CASN		MXS_IOMUX_PAD_NAKED(2, 24, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_CE0N__EMI_CE0N		MXS_IOMUX_PAD_NAKED(2, 25, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_CE1N__EMI_CE1N		MXS_IOMUX_PAD_NAKED(2, 26, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_CE1N__GPMI_CE1N		MXS_IOMUX_PAD_NAKED(2, 27, PAD_MUXSEL_0)
-#define MX23_PAD_GPMI_CE0N__GPMI_CE0N		MXS_IOMUX_PAD_NAKED(2, 28, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_CKE__EMI_CKE		MXS_IOMUX_PAD_NAKED(2, 29, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_RASN__EMI_RASN		MXS_IOMUX_PAD_NAKED(2, 30, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_WEN__EMI_WEN		MXS_IOMUX_PAD_NAKED(2, 31, PAD_MUXSEL_0)
-
-#define MX23_PAD_EMI_D00__EMI_D00		MXS_IOMUX_PAD_NAKED(3,  0, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D01__EMI_D01		MXS_IOMUX_PAD_NAKED(3,  1, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D02__EMI_D02		MXS_IOMUX_PAD_NAKED(3,  2, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D03__EMI_D03		MXS_IOMUX_PAD_NAKED(3,  3, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D04__EMI_D04		MXS_IOMUX_PAD_NAKED(3,  4, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D05__EMI_D05		MXS_IOMUX_PAD_NAKED(3,  5, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D06__EMI_D06		MXS_IOMUX_PAD_NAKED(3,  6, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D07__EMI_D07		MXS_IOMUX_PAD_NAKED(3,  7, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D08__EMI_D08		MXS_IOMUX_PAD_NAKED(3,  8, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D09__EMI_D09		MXS_IOMUX_PAD_NAKED(3,  9, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D10__EMI_D10		MXS_IOMUX_PAD_NAKED(3, 10, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D11__EMI_D11		MXS_IOMUX_PAD_NAKED(3, 11, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D12__EMI_D12		MXS_IOMUX_PAD_NAKED(3, 12, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D13__EMI_D13		MXS_IOMUX_PAD_NAKED(3, 13, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D14__EMI_D14		MXS_IOMUX_PAD_NAKED(3, 14, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_D15__EMI_D15		MXS_IOMUX_PAD_NAKED(3, 15, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_DQM0__EMI_DQM0		MXS_IOMUX_PAD_NAKED(3, 16, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_DQM1__EMI_DQM1		MXS_IOMUX_PAD_NAKED(3, 17, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_DQS0__EMI_DQS0		MXS_IOMUX_PAD_NAKED(3, 18, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_DQS1__EMI_DQS1		MXS_IOMUX_PAD_NAKED(3, 19, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_CLK__EMI_CLK		MXS_IOMUX_PAD_NAKED(3, 20, PAD_MUXSEL_0)
-#define MX23_PAD_EMI_CLKN__EMI_CLKN		MXS_IOMUX_PAD_NAKED(3, 21, PAD_MUXSEL_0)
-
-/* MUXSEL_1 */
-#define MX23_PAD_GPMI_D00__LCD_D8		MXS_IOMUX_PAD_NAKED(0,  0, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D01__LCD_D9		MXS_IOMUX_PAD_NAKED(0,  1, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D02__LCD_D10		MXS_IOMUX_PAD_NAKED(0,  2, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D03__LCD_D11		MXS_IOMUX_PAD_NAKED(0,  3, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D04__LCD_D12		MXS_IOMUX_PAD_NAKED(0,  4, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D05__LCD_D13		MXS_IOMUX_PAD_NAKED(0,  5, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D06__LCD_D14		MXS_IOMUX_PAD_NAKED(0,  6, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D07__LCD_D15		MXS_IOMUX_PAD_NAKED(0,  7, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D08__LCD_D18		MXS_IOMUX_PAD_NAKED(0,  8, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D09__LCD_D19		MXS_IOMUX_PAD_NAKED(0,  9, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D10__LCD_D20		MXS_IOMUX_PAD_NAKED(0, 10, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D11__LCD_D21		MXS_IOMUX_PAD_NAKED(0, 11, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D12__LCD_D22		MXS_IOMUX_PAD_NAKED(0, 12, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D13__LCD_D23		MXS_IOMUX_PAD_NAKED(0, 13, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D14__AUART2_RX		MXS_IOMUX_PAD_NAKED(0, 14, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_D15__AUART2_TX		MXS_IOMUX_PAD_NAKED(0, 15, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_CLE__LCD_D16		MXS_IOMUX_PAD_NAKED(0, 16, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_ALE__LCD_D17		MXS_IOMUX_PAD_NAKED(0, 17, PAD_MUXSEL_1)
-#define MX23_PAD_GPMI_CE2N__ATA_A2		MXS_IOMUX_PAD_NAKED(0, 18, PAD_MUXSEL_1)
-#define MX23_PAD_AUART1_RTS__IR_CLK		MXS_IOMUX_PAD_NAKED(0, 27, PAD_MUXSEL_1)
-#define MX23_PAD_AUART1_RX__IR_RX		MXS_IOMUX_PAD_NAKED(0, 28, PAD_MUXSEL_1)
-#define MX23_PAD_AUART1_TX__IR_TX		MXS_IOMUX_PAD_NAKED(0, 29, PAD_MUXSEL_1)
-#define MX23_PAD_I2C_SCL__GPMI_RDY2		MXS_IOMUX_PAD_NAKED(0, 30, PAD_MUXSEL_1)
-#define MX23_PAD_I2C_SDA__GPMI_CE2N		MXS_IOMUX_PAD_NAKED(0, 31, PAD_MUXSEL_1)
-
-#define MX23_PAD_LCD_D00__ETM_DA8		MXS_IOMUX_PAD_NAKED(1,  0, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D01__ETM_DA9		MXS_IOMUX_PAD_NAKED(1,  1, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D02__ETM_DA10		MXS_IOMUX_PAD_NAKED(1,  2, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D03__ETM_DA11		MXS_IOMUX_PAD_NAKED(1,  3, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D04__ETM_DA12		MXS_IOMUX_PAD_NAKED(1,  4, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D05__ETM_DA13		MXS_IOMUX_PAD_NAKED(1,  5, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D06__ETM_DA14		MXS_IOMUX_PAD_NAKED(1,  6, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D07__ETM_DA15		MXS_IOMUX_PAD_NAKED(1,  7, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D08__ETM_DA0		MXS_IOMUX_PAD_NAKED(1,  8, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D09__ETM_DA1		MXS_IOMUX_PAD_NAKED(1,  9, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D10__ETM_DA2		MXS_IOMUX_PAD_NAKED(1, 10, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D11__ETM_DA3		MXS_IOMUX_PAD_NAKED(1, 11, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D12__ETM_DA4		MXS_IOMUX_PAD_NAKED(1, 12, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D13__ETM_DA5		MXS_IOMUX_PAD_NAKED(1, 13, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D14__ETM_DA6		MXS_IOMUX_PAD_NAKED(1, 14, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_D15__ETM_DA7		MXS_IOMUX_PAD_NAKED(1, 15, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_RESET__ETM_TCTL		MXS_IOMUX_PAD_NAKED(1, 18, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_RS__ETM_TCLK		MXS_IOMUX_PAD_NAKED(1, 19, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_DOTCK__GPMI_RDY3		MXS_IOMUX_PAD_NAKED(1, 22, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_ENABLE__I2C_SCL		MXS_IOMUX_PAD_NAKED(1, 23, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_HSYNC__I2C_SDA		MXS_IOMUX_PAD_NAKED(1, 24, PAD_MUXSEL_1)
-#define MX23_PAD_LCD_VSYNC__LCD_BUSY		MXS_IOMUX_PAD_NAKED(1, 25, PAD_MUXSEL_1)
-#define MX23_PAD_PWM0__ROTARYA			MXS_IOMUX_PAD_NAKED(1, 26, PAD_MUXSEL_1)
-#define MX23_PAD_PWM1__ROTARYB			MXS_IOMUX_PAD_NAKED(1, 27, PAD_MUXSEL_1)
-#define MX23_PAD_PWM2__GPMI_RDY3		MXS_IOMUX_PAD_NAKED(1, 28, PAD_MUXSEL_1)
-#define MX23_PAD_PWM3__ETM_TCTL			MXS_IOMUX_PAD_NAKED(1, 29, PAD_MUXSEL_1)
-#define MX23_PAD_PWM4__ETM_TCLK			MXS_IOMUX_PAD_NAKED(1, 30, PAD_MUXSEL_1)
-
-#define MX23_PAD_SSP1_DETECT__GPMI_CE3N		MXS_IOMUX_PAD_NAKED(2,  1, PAD_MUXSEL_1)
-#define MX23_PAD_SSP1_DATA1__I2C_SCL		MXS_IOMUX_PAD_NAKED(2,  3, PAD_MUXSEL_1)
-#define MX23_PAD_SSP1_DATA2__I2C_SDA		MXS_IOMUX_PAD_NAKED(2,  4, PAD_MUXSEL_1)
-#define MX23_PAD_ROTARYA__AUART2_RTS		MXS_IOMUX_PAD_NAKED(2,  7, PAD_MUXSEL_1)
-#define MX23_PAD_ROTARYB__AUART2_CTS		MXS_IOMUX_PAD_NAKED(2,  8, PAD_MUXSEL_1)
-
-/* MUXSEL_2 */
-#define MX23_PAD_GPMI_D00__SSP2_DATA0		MXS_IOMUX_PAD_NAKED(0,  0, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D01__SSP2_DATA1		MXS_IOMUX_PAD_NAKED(0,  1, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D02__SSP2_DATA2		MXS_IOMUX_PAD_NAKED(0,  2, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D03__SSP2_DATA3		MXS_IOMUX_PAD_NAKED(0,  3, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D04__SSP2_DATA4		MXS_IOMUX_PAD_NAKED(0,  4, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D05__SSP2_DATA5		MXS_IOMUX_PAD_NAKED(0,  5, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D06__SSP2_DATA6		MXS_IOMUX_PAD_NAKED(0,  6, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D07__SSP2_DATA7		MXS_IOMUX_PAD_NAKED(0,  7, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D08__SSP1_DATA4		MXS_IOMUX_PAD_NAKED(0,  8, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D09__SSP1_DATA5		MXS_IOMUX_PAD_NAKED(0,  9, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D10__SSP1_DATA6		MXS_IOMUX_PAD_NAKED(0, 10, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D11__SSP1_DATA7		MXS_IOMUX_PAD_NAKED(0, 11, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_D15__GPMI_CE3N		MXS_IOMUX_PAD_NAKED(0, 15, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_RDY0__SSP2_DETECT		MXS_IOMUX_PAD_NAKED(0, 19, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_RDY1__SSP2_CMD		MXS_IOMUX_PAD_NAKED(0, 20, PAD_MUXSEL_2)
-#define MX23_PAD_GPMI_WRN__SSP2_SCK		MXS_IOMUX_PAD_NAKED(0, 24, PAD_MUXSEL_2)
-#define MX23_PAD_AUART1_CTS__SSP1_DATA4		MXS_IOMUX_PAD_NAKED(0, 26, PAD_MUXSEL_2)
-#define MX23_PAD_AUART1_RTS__SSP1_DATA5		MXS_IOMUX_PAD_NAKED(0, 27, PAD_MUXSEL_2)
-#define MX23_PAD_AUART1_RX__SSP1_DATA6		MXS_IOMUX_PAD_NAKED(0, 28, PAD_MUXSEL_2)
-#define MX23_PAD_AUART1_TX__SSP1_DATA7		MXS_IOMUX_PAD_NAKED(0, 29, PAD_MUXSEL_2)
-#define MX23_PAD_I2C_SCL__AUART1_TX		MXS_IOMUX_PAD_NAKED(0, 30, PAD_MUXSEL_2)
-#define MX23_PAD_I2C_SDA__AUART1_RX		MXS_IOMUX_PAD_NAKED(0, 31, PAD_MUXSEL_2)
-
-#define MX23_PAD_LCD_D08__SAIF2_SDATA0		MXS_IOMUX_PAD_NAKED(1,  8, PAD_MUXSEL_2)
-#define MX23_PAD_LCD_D09__SAIF1_SDATA0		MXS_IOMUX_PAD_NAKED(1,  9, PAD_MUXSEL_2)
-#define MX23_PAD_LCD_D10__SAIF_MCLK_BITCLK	MXS_IOMUX_PAD_NAKED(1, 10, PAD_MUXSEL_2)
-#define MX23_PAD_LCD_D11__SAIF_LRCLK		MXS_IOMUX_PAD_NAKED(1, 11, PAD_MUXSEL_2)
-#define MX23_PAD_LCD_D12__SAIF2_SDATA1		MXS_IOMUX_PAD_NAKED(1, 12, PAD_MUXSEL_2)
-#define MX23_PAD_LCD_D13__SAIF2_SDATA2		MXS_IOMUX_PAD_NAKED(1, 13, PAD_MUXSEL_2)
-#define MX23_PAD_LCD_D14__SAIF1_SDATA2		MXS_IOMUX_PAD_NAKED(1, 14, PAD_MUXSEL_2)
-#define MX23_PAD_LCD_D15__SAIF1_SDATA1		MXS_IOMUX_PAD_NAKED(1, 15, PAD_MUXSEL_2)
-#define MX23_PAD_LCD_D16__SAIF_ALT_BITCLK	MXS_IOMUX_PAD_NAKED(1, 16, PAD_MUXSEL_2)
-#define MX23_PAD_LCD_RESET__GPMI_CE3N		MXS_IOMUX_PAD_NAKED(1, 18, PAD_MUXSEL_2)
-#define MX23_PAD_PWM0__DUART_RX			MXS_IOMUX_PAD_NAKED(1, 26, PAD_MUXSEL_2)
-#define MX23_PAD_PWM1__DUART_TX			MXS_IOMUX_PAD_NAKED(1, 27, PAD_MUXSEL_2)
-#define MX23_PAD_PWM3__AUART1_CTS		MXS_IOMUX_PAD_NAKED(1, 29, PAD_MUXSEL_2)
-#define MX23_PAD_PWM4__AUART1_RTS		MXS_IOMUX_PAD_NAKED(1, 30, PAD_MUXSEL_2)
-
-#define MX23_PAD_SSP1_CMD__JTAG_TDO		MXS_IOMUX_PAD_NAKED(2,  0, PAD_MUXSEL_2)
-#define MX23_PAD_SSP1_DETECT__USB_OTG_ID	MXS_IOMUX_PAD_NAKED(2,  1, PAD_MUXSEL_2)
-#define MX23_PAD_SSP1_DATA0__JTAG_TDI		MXS_IOMUX_PAD_NAKED(2,  2, PAD_MUXSEL_2)
-#define MX23_PAD_SSP1_DATA1__JTAG_TCLK		MXS_IOMUX_PAD_NAKED(2,  3, PAD_MUXSEL_2)
-#define MX23_PAD_SSP1_DATA2__JTAG_RTCK		MXS_IOMUX_PAD_NAKED(2,  4, PAD_MUXSEL_2)
-#define MX23_PAD_SSP1_DATA3__JTAG_TMS		MXS_IOMUX_PAD_NAKED(2,  5, PAD_MUXSEL_2)
-#define MX23_PAD_SSP1_SCK__JTAG_TRST		MXS_IOMUX_PAD_NAKED(2,  6, PAD_MUXSEL_2)
-#define MX23_PAD_ROTARYA__SPDIF			MXS_IOMUX_PAD_NAKED(2,  7, PAD_MUXSEL_2)
-#define MX23_PAD_ROTARYB__GPMI_CE3N		MXS_IOMUX_PAD_NAKED(2,  8, PAD_MUXSEL_2)
-
-/* MUXSEL_GPIO */
-#define MX23_PAD_GPMI_D00__GPIO_0_0		MXS_IOMUX_PAD_NAKED(0,  0, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D01__GPIO_0_1		MXS_IOMUX_PAD_NAKED(0,  1, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D02__GPIO_0_2		MXS_IOMUX_PAD_NAKED(0,  2, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D03__GPIO_0_3		MXS_IOMUX_PAD_NAKED(0,  3, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D04__GPIO_0_4		MXS_IOMUX_PAD_NAKED(0,  4, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D05__GPIO_0_5		MXS_IOMUX_PAD_NAKED(0,  5, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D06__GPIO_0_6		MXS_IOMUX_PAD_NAKED(0,  6, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D07__GPIO_0_7		MXS_IOMUX_PAD_NAKED(0,  7, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D08__GPIO_0_8		MXS_IOMUX_PAD_NAKED(0,  8, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D09__GPIO_0_9		MXS_IOMUX_PAD_NAKED(0,  9, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D10__GPIO_0_10		MXS_IOMUX_PAD_NAKED(0, 10, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D11__GPIO_0_11		MXS_IOMUX_PAD_NAKED(0, 11, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D12__GPIO_0_12		MXS_IOMUX_PAD_NAKED(0, 12, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D13__GPIO_0_13		MXS_IOMUX_PAD_NAKED(0, 13, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D14__GPIO_0_14		MXS_IOMUX_PAD_NAKED(0, 14, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_D15__GPIO_0_15		MXS_IOMUX_PAD_NAKED(0, 15, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_CLE__GPIO_0_16		MXS_IOMUX_PAD_NAKED(0, 16, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_ALE__GPIO_0_17		MXS_IOMUX_PAD_NAKED(0, 17, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_CE2N__GPIO_0_18		MXS_IOMUX_PAD_NAKED(0, 18, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_RDY0__GPIO_0_19		MXS_IOMUX_PAD_NAKED(0, 19, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_RDY1__GPIO_0_20		MXS_IOMUX_PAD_NAKED(0, 20, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_RDY2__GPIO_0_21		MXS_IOMUX_PAD_NAKED(0, 21, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_RDY3__GPIO_0_22		MXS_IOMUX_PAD_NAKED(0, 22, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_WPN__GPIO_0_23		MXS_IOMUX_PAD_NAKED(0, 23, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_WRN__GPIO_0_24		MXS_IOMUX_PAD_NAKED(0, 24, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_RDN__GPIO_0_25		MXS_IOMUX_PAD_NAKED(0, 25, PAD_MUXSEL_GPIO)
-#define MX23_PAD_AUART1_CTS__GPIO_0_26		MXS_IOMUX_PAD_NAKED(0, 26, PAD_MUXSEL_GPIO)
-#define MX23_PAD_AUART1_RTS__GPIO_0_27		MXS_IOMUX_PAD_NAKED(0, 27, PAD_MUXSEL_GPIO)
-#define MX23_PAD_AUART1_RX__GPIO_0_28		MXS_IOMUX_PAD_NAKED(0, 28, PAD_MUXSEL_GPIO)
-#define MX23_PAD_AUART1_TX__GPIO_0_29		MXS_IOMUX_PAD_NAKED(0, 29, PAD_MUXSEL_GPIO)
-#define MX23_PAD_I2C_SCL__GPIO_0_30		MXS_IOMUX_PAD_NAKED(0, 30, PAD_MUXSEL_GPIO)
-#define MX23_PAD_I2C_SDA__GPIO_0_31		MXS_IOMUX_PAD_NAKED(0, 31, PAD_MUXSEL_GPIO)
-
-#define MX23_PAD_LCD_D00__GPIO_1_0		MXS_IOMUX_PAD_NAKED(1,  0, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D01__GPIO_1_1		MXS_IOMUX_PAD_NAKED(1,  1, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D02__GPIO_1_2		MXS_IOMUX_PAD_NAKED(1,  2, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D03__GPIO_1_3		MXS_IOMUX_PAD_NAKED(1,  3, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D04__GPIO_1_4		MXS_IOMUX_PAD_NAKED(1,  4, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D05__GPIO_1_5		MXS_IOMUX_PAD_NAKED(1,  5, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D06__GPIO_1_6		MXS_IOMUX_PAD_NAKED(1,  6, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D07__GPIO_1_7		MXS_IOMUX_PAD_NAKED(1,  7, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D08__GPIO_1_8		MXS_IOMUX_PAD_NAKED(1,  8, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D09__GPIO_1_9		MXS_IOMUX_PAD_NAKED(1,  9, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D10__GPIO_1_10		MXS_IOMUX_PAD_NAKED(1, 10, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D11__GPIO_1_11		MXS_IOMUX_PAD_NAKED(1, 11, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D12__GPIO_1_12		MXS_IOMUX_PAD_NAKED(1, 12, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D13__GPIO_1_13		MXS_IOMUX_PAD_NAKED(1, 13, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D14__GPIO_1_14		MXS_IOMUX_PAD_NAKED(1, 14, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D15__GPIO_1_15		MXS_IOMUX_PAD_NAKED(1, 15, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D16__GPIO_1_16		MXS_IOMUX_PAD_NAKED(1, 16, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_D17__GPIO_1_17		MXS_IOMUX_PAD_NAKED(1, 17, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_RESET__GPIO_1_18		MXS_IOMUX_PAD_NAKED(1, 18, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_RS__GPIO_1_19		MXS_IOMUX_PAD_NAKED(1, 19, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_WR__GPIO_1_20		MXS_IOMUX_PAD_NAKED(1, 20, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_CS__GPIO_1_21		MXS_IOMUX_PAD_NAKED(1, 21, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_DOTCK__GPIO_1_22		MXS_IOMUX_PAD_NAKED(1, 22, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_ENABLE__GPIO_1_23		MXS_IOMUX_PAD_NAKED(1, 23, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_HSYNC__GPIO_1_24		MXS_IOMUX_PAD_NAKED(1, 24, PAD_MUXSEL_GPIO)
-#define MX23_PAD_LCD_VSYNC__GPIO_1_25		MXS_IOMUX_PAD_NAKED(1, 25, PAD_MUXSEL_GPIO)
-#define MX23_PAD_PWM0__GPIO_1_26		MXS_IOMUX_PAD_NAKED(1, 26, PAD_MUXSEL_GPIO)
-#define MX23_PAD_PWM1__GPIO_1_27		MXS_IOMUX_PAD_NAKED(1, 27, PAD_MUXSEL_GPIO)
-#define MX23_PAD_PWM2__GPIO_1_28		MXS_IOMUX_PAD_NAKED(1, 28, PAD_MUXSEL_GPIO)
-#define MX23_PAD_PWM3__GPIO_1_29		MXS_IOMUX_PAD_NAKED(1, 29, PAD_MUXSEL_GPIO)
-#define MX23_PAD_PWM4__GPIO_1_30		MXS_IOMUX_PAD_NAKED(1, 30, PAD_MUXSEL_GPIO)
-
-#define MX23_PAD_SSP1_CMD__GPIO_2_0		MXS_IOMUX_PAD_NAKED(2,  0, PAD_MUXSEL_GPIO)
-#define MX23_PAD_SSP1_DETECT__GPIO_2_1		MXS_IOMUX_PAD_NAKED(2,  1, PAD_MUXSEL_GPIO)
-#define MX23_PAD_SSP1_DATA0__GPIO_2_2		MXS_IOMUX_PAD_NAKED(2,  2, PAD_MUXSEL_GPIO)
-#define MX23_PAD_SSP1_DATA1__GPIO_2_3		MXS_IOMUX_PAD_NAKED(2,  3, PAD_MUXSEL_GPIO)
-#define MX23_PAD_SSP1_DATA2__GPIO_2_4		MXS_IOMUX_PAD_NAKED(2,  4, PAD_MUXSEL_GPIO)
-#define MX23_PAD_SSP1_DATA3__GPIO_2_5		MXS_IOMUX_PAD_NAKED(2,  5, PAD_MUXSEL_GPIO)
-#define MX23_PAD_SSP1_SCK__GPIO_2_6		MXS_IOMUX_PAD_NAKED(2,  6, PAD_MUXSEL_GPIO)
-#define MX23_PAD_ROTARYA__GPIO_2_7		MXS_IOMUX_PAD_NAKED(2,  7, PAD_MUXSEL_GPIO)
-#define MX23_PAD_ROTARYB__GPIO_2_8		MXS_IOMUX_PAD_NAKED(2,  8, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A00__GPIO_2_9		MXS_IOMUX_PAD_NAKED(2,  9, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A01__GPIO_2_10		MXS_IOMUX_PAD_NAKED(2, 10, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A02__GPIO_2_11		MXS_IOMUX_PAD_NAKED(2, 11, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A03__GPIO_2_12		MXS_IOMUX_PAD_NAKED(2, 12, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A04__GPIO_2_13		MXS_IOMUX_PAD_NAKED(2, 13, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A05__GPIO_2_14		MXS_IOMUX_PAD_NAKED(2, 14, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A06__GPIO_2_15		MXS_IOMUX_PAD_NAKED(2, 15, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A07__GPIO_2_16		MXS_IOMUX_PAD_NAKED(2, 16, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A08__GPIO_2_17		MXS_IOMUX_PAD_NAKED(2, 17, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A09__GPIO_2_18		MXS_IOMUX_PAD_NAKED(2, 18, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A10__GPIO_2_19		MXS_IOMUX_PAD_NAKED(2, 19, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A11__GPIO_2_20		MXS_IOMUX_PAD_NAKED(2, 20, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_A12__GPIO_2_21		MXS_IOMUX_PAD_NAKED(2, 21, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_BA0__GPIO_2_22		MXS_IOMUX_PAD_NAKED(2, 22, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_BA1__GPIO_2_23		MXS_IOMUX_PAD_NAKED(2, 23, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_CASN__GPIO_2_24		MXS_IOMUX_PAD_NAKED(2, 24, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_CE0N__GPIO_2_25		MXS_IOMUX_PAD_NAKED(2, 25, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_CE1N__GPIO_2_26		MXS_IOMUX_PAD_NAKED(2, 26, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_CE1N__GPIO_2_27		MXS_IOMUX_PAD_NAKED(2, 27, PAD_MUXSEL_GPIO)
-#define MX23_PAD_GPMI_CE0N__GPIO_2_28		MXS_IOMUX_PAD_NAKED(2, 28, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_CKE__GPIO_2_29		MXS_IOMUX_PAD_NAKED(2, 29, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_RASN__GPIO_2_30		MXS_IOMUX_PAD_NAKED(2, 30, PAD_MUXSEL_GPIO)
-#define MX23_PAD_EMI_WEN__GPIO_2_31		MXS_IOMUX_PAD_NAKED(2, 31, PAD_MUXSEL_GPIO)
-
-#endif /* __MACH_IOMUX_MX23_H__ */
arch/arm/include/asm/arch-mxs/regs-base.h +2 -44
index 44d40cade879..c016d1b25534 100644
@@ -14,52 +14,10 @@
 #ifndef __MXS_REGS_BASE_H__
 #define __MXS_REGS_BASE_H__
 
-/*
- * Register base addresses for i.MX23
- */
-#if defined(CONFIG_MX23)
-#define	MXS_ICOLL_BASE		0x80000000
-#define	MXS_APBH_BASE		0x80004000
-#define	MXS_ECC8_BASE		0x80008000
-#define	MXS_BCH_BASE		0x8000A000
-#define	MXS_GPMI_BASE		0x8000C000
-#define	MXS_SSP0_BASE		0x80010000
-#define	MXS_SSP1_BASE		0x80034000
-#define	MXS_ETM_BASE		0x80014000
-#define	MXS_PINCTRL_BASE	0x80018000
-#define	MXS_DIGCTL_BASE		0x8001C000
-#define	MXS_EMI_BASE		0x80020000
-#define	MXS_APBX_BASE		0x80024000
-#define	MXS_DCP_BASE		0x80028000
-#define	MXS_PXP_BASE		0x8002A000
-#define	MXS_OCOTP_BASE		0x8002C000
-#define	MXS_AXI_BASE		0x8002E000
-#define	MXS_LCDIF_BASE		0x80030000
-#define	MXS_SSP1_BASE		0x80034000
-#define	MXS_TVENC_BASE		0x80038000
-#define	MXS_CLKCTRL_BASE	0x80040000
-#define	MXS_SAIF0_BASE		0x80042000
-#define	MXS_POWER_BASE		0x80044000
-#define	MXS_SAIF1_BASE		0x80046000
-#define	MXS_AUDIOOUT_BASE	0x80048000
-#define	MXS_AUDIOIN_BASE	0x8004C000
-#define	MXS_LRADC_BASE		0x80050000
-#define	MXS_SPDIF_BASE		0x80054000
-#define	MXS_I2C0_BASE		0x80058000
-#define	MXS_RTC_BASE		0x8005C000
-#define	MXS_PWM_BASE		0x80064000
-#define	MXS_TIMROT_BASE		0x80068000
-#define	MXS_UARTAPP0_BASE	0x8006C000
-#define	MXS_UARTAPP1_BASE	0x8006E000
-#define	MXS_UARTDBG_BASE	0x80070000
-#define	MXS_USBPHY0_BASE	0x8007C000
-#define	MXS_USBCTRL0_BASE	0x80080000
-#define	MXS_DRAM_BASE		0x800E0000
-
 /*
  * Register base addresses for i.MX28
  */
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define	MXS_ICOL_BASE		0x80000000
 #define	MXS_HSADC_BASE		0x80002000
 #define	MXS_APBH_BASE		0x80004000
@@ -114,7 +72,7 @@
 #define	MXS_ENET0_BASE		0x800F0000
 #define	MXS_ENET1_BASE		0x800F4000
 #else
-#error Unkown SoC. Please set CONFIG_MX23 or CONFIG_MX28
+#error Unkown SoC. Please set CONFIG_MX28
 #endif
 
 #endif /* __MXS_REGS_BASE_H__ */
arch/arm/include/asm/arch-mxs/regs-clkctrl-mx23.h deleted +0 -209
deleted file mode 100644
index 50fdc9cd0326..000000000000
@@ -1,209 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Freescale i.MX23 CLKCTRL Register Definitions
- *
- * Copyright (C) 2012 Marek Vasut <[email protected]>
- * on behalf of DENX Software Engineering GmbH
- *
- * Based on code from LTIB:
- * Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved.
- */
-
-#ifndef __MX23_REGS_CLKCTRL_H__
-#define __MX23_REGS_CLKCTRL_H__
-
-#include <asm/mach-imx/regs-common.h>
-
-#ifndef	__ASSEMBLY__
-struct mxs_clkctrl_regs {
-	mxs_reg_32(hw_clkctrl_pll0ctrl0)	/* 0x00 */
-	uint32_t	hw_clkctrl_pll0ctrl1;	/* 0x10 */
-	uint32_t	reserved_pll0ctrl1[3];	/* 0x14-0x1c */
-	mxs_reg_32(hw_clkctrl_cpu)		/* 0x20 */
-	mxs_reg_32(hw_clkctrl_hbus)		/* 0x30 */
-	mxs_reg_32(hw_clkctrl_xbus)		/* 0x40 */
-	mxs_reg_32(hw_clkctrl_xtal)		/* 0x50 */
-	mxs_reg_32(hw_clkctrl_pix)		/* 0x60 */
-	uint32_t	hw_clkctrl_ssp0;	/* 0x70 */
-	uint32_t	reserved_ssp0[3];	/* 0x74-0x7c */
-	uint32_t	hw_clkctrl_gpmi;	/* 0x80 */
-	uint32_t	reserved_gpmi[3];	/* 0x84-0x8c */
-	mxs_reg_32(hw_clkctrl_spdif)		/* 0x90 */
-	mxs_reg_32(hw_clkctrl_emi)		/* 0xa0 */
-
-	uint32_t	reserved1[4];
-
-	mxs_reg_32(hw_clkctrl_saif0)		/* 0xc0 */
-	mxs_reg_32(hw_clkctrl_tv)		/* 0xd0 */
-	mxs_reg_32(hw_clkctrl_etm)		/* 0xe0 */
-	mxs_reg_8(hw_clkctrl_frac0)		/* 0xf0 */
-	mxs_reg_8(hw_clkctrl_frac1)		/* 0x100 */
-	mxs_reg_32(hw_clkctrl_clkseq)		/* 0x110 */
-	mxs_reg_32(hw_clkctrl_reset)		/* 0x120 */
-	mxs_reg_32(hw_clkctrl_status)		/* 0x130 */
-	mxs_reg_32(hw_clkctrl_version)		/* 0x140 */
-};
-#endif
-
-#define	CLKCTRL_PLL0CTRL0_LFR_SEL_MASK		(0x3 << 28)
-#define	CLKCTRL_PLL0CTRL0_LFR_SEL_OFFSET	28
-#define	CLKCTRL_PLL0CTRL0_LFR_SEL_DEFAULT	(0x0 << 28)
-#define	CLKCTRL_PLL0CTRL0_LFR_SEL_TIMES_2	(0x1 << 28)
-#define	CLKCTRL_PLL0CTRL0_LFR_SEL_TIMES_05	(0x2 << 28)
-#define	CLKCTRL_PLL0CTRL0_LFR_SEL_UNDEFINED	(0x3 << 28)
-#define	CLKCTRL_PLL0CTRL0_CP_SEL_MASK		(0x3 << 24)
-#define	CLKCTRL_PLL0CTRL0_CP_SEL_OFFSET		24
-#define	CLKCTRL_PLL0CTRL0_CP_SEL_DEFAULT	(0x0 << 24)
-#define	CLKCTRL_PLL0CTRL0_CP_SEL_TIMES_2	(0x1 << 24)
-#define	CLKCTRL_PLL0CTRL0_CP_SEL_TIMES_05	(0x2 << 24)
-#define	CLKCTRL_PLL0CTRL0_CP_SEL_UNDEFINED	(0x3 << 24)
-#define	CLKCTRL_PLL0CTRL0_DIV_SEL_MASK		(0x3 << 20)
-#define	CLKCTRL_PLL0CTRL0_DIV_SEL_OFFSET	20
-#define	CLKCTRL_PLL0CTRL0_DIV_SEL_DEFAULT	(0x0 << 20)
-#define	CLKCTRL_PLL0CTRL0_DIV_SEL_LOWER		(0x1 << 20)
-#define	CLKCTRL_PLL0CTRL0_DIV_SEL_LOWEST	(0x2 << 20)
-#define	CLKCTRL_PLL0CTRL0_DIV_SEL_UNDEFINED	(0x3 << 20)
-#define	CLKCTRL_PLL0CTRL0_EN_USB_CLKS		(1 << 18)
-#define	CLKCTRL_PLL0CTRL0_POWER			(1 << 16)
-
-#define	CLKCTRL_PLL0CTRL1_LOCK			(1 << 31)
-#define	CLKCTRL_PLL0CTRL1_FORCE_LOCK		(1 << 30)
-#define	CLKCTRL_PLL0CTRL1_LOCK_COUNT_MASK	0xffff
-#define	CLKCTRL_PLL0CTRL1_LOCK_COUNT_OFFSET	0
-
-#define	CLKCTRL_CPU_BUSY_REF_XTAL		(1 << 29)
-#define	CLKCTRL_CPU_BUSY_REF_CPU		(1 << 28)
-#define	CLKCTRL_CPU_DIV_XTAL_FRAC_EN		(1 << 26)
-#define	CLKCTRL_CPU_DIV_XTAL_MASK		(0x3ff << 16)
-#define	CLKCTRL_CPU_DIV_XTAL_OFFSET		16
-#define	CLKCTRL_CPU_INTERRUPT_WAIT		(1 << 12)
-#define	CLKCTRL_CPU_DIV_CPU_FRAC_EN		(1 << 10)
-#define	CLKCTRL_CPU_DIV_CPU_MASK		0x3f
-#define	CLKCTRL_CPU_DIV_CPU_OFFSET		0
-
-#define	CLKCTRL_HBUS_BUSY			(1 << 29)
-#define	CLKCTRL_HBUS_DCP_AS_ENABLE		(1 << 28)
-#define	CLKCTRL_HBUS_PXP_AS_ENABLE		(1 << 27)
-#define	CLKCTRL_HBUS_APBHDMA_AS_ENABLE		(1 << 26)
-#define	CLKCTRL_HBUS_APBXDMA_AS_ENABLE		(1 << 25)
-#define	CLKCTRL_HBUS_TRAFFIC_JAM_AS_ENABLE	(1 << 24)
-#define	CLKCTRL_HBUS_TRAFFIC_AS_ENABLE		(1 << 23)
-#define	CLKCTRL_HBUS_CPU_DATA_AS_ENABLE		(1 << 22)
-#define	CLKCTRL_HBUS_CPU_INSTR_AS_ENABLE	(1 << 21)
-#define	CLKCTRL_HBUS_AUTO_SLOW_MODE		(1 << 20)
-#define	CLKCTRL_HBUS_SLOW_DIV_MASK		(0x7 << 16)
-#define	CLKCTRL_HBUS_SLOW_DIV_OFFSET		16
-#define	CLKCTRL_HBUS_SLOW_DIV_BY1		(0x0 << 16)
-#define	CLKCTRL_HBUS_SLOW_DIV_BY2		(0x1 << 16)
-#define	CLKCTRL_HBUS_SLOW_DIV_BY4		(0x2 << 16)
-#define	CLKCTRL_HBUS_SLOW_DIV_BY8		(0x3 << 16)
-#define	CLKCTRL_HBUS_SLOW_DIV_BY16		(0x4 << 16)
-#define	CLKCTRL_HBUS_SLOW_DIV_BY32		(0x5 << 16)
-#define	CLKCTRL_HBUS_DIV_FRAC_EN		(1 << 5)
-#define	CLKCTRL_HBUS_DIV_MASK			0x1f
-#define	CLKCTRL_HBUS_DIV_OFFSET			0
-
-#define	CLKCTRL_XBUS_BUSY			(1 << 31)
-#define	CLKCTRL_XBUS_DIV_FRAC_EN		(1 << 10)
-#define	CLKCTRL_XBUS_DIV_MASK			0x3ff
-#define	CLKCTRL_XBUS_DIV_OFFSET			0
-
-#define	CLKCTRL_XTAL_UART_CLK_GATE		(1 << 31)
-#define	CLKCTRL_XTAL_FILT_CLK24M_GATE		(1 << 30)
-#define	CLKCTRL_XTAL_PWM_CLK24M_GATE		(1 << 29)
-#define	CLKCTRL_XTAL_DRI_CLK24M_GATE		(1 << 28)
-#define	CLKCTRL_XTAL_DIGCTRL_CLK1M_GATE		(1 << 27)
-#define	CLKCTRL_XTAL_TIMROT_CLK32K_GATE		(1 << 26)
-#define	CLKCTRL_XTAL_DIV_UART_MASK		0x3
-#define	CLKCTRL_XTAL_DIV_UART_OFFSET		0
-
-#define	CLKCTRL_PIX_CLKGATE			(1 << 31)
-#define	CLKCTRL_PIX_BUSY			(1 << 29)
-#define	CLKCTRL_PIX_DIV_FRAC_EN			(1 << 12)
-#define	CLKCTRL_PIX_DIV_MASK			0xfff
-#define	CLKCTRL_PIX_DIV_OFFSET			0
-
-#define	CLKCTRL_SSP_CLKGATE			(1 << 31)
-#define	CLKCTRL_SSP_BUSY			(1 << 29)
-#define	CLKCTRL_SSP_DIV_FRAC_EN			(1 << 9)
-#define	CLKCTRL_SSP_DIV_MASK			0x1ff
-#define	CLKCTRL_SSP_DIV_OFFSET			0
-
-#define	CLKCTRL_GPMI_CLKGATE			(1 << 31)
-#define	CLKCTRL_GPMI_BUSY			(1 << 29)
-#define	CLKCTRL_GPMI_DIV_FRAC_EN		(1 << 10)
-#define	CLKCTRL_GPMI_DIV_MASK			0x3ff
-#define	CLKCTRL_GPMI_DIV_OFFSET			0
-
-#define	CLKCTRL_SPDIF_CLKGATE			(1 << 31)
-
-#define	CLKCTRL_EMI_CLKGATE			(1 << 31)
-#define	CLKCTRL_EMI_SYNC_MODE_EN		(1 << 30)
-#define	CLKCTRL_EMI_BUSY_REF_XTAL		(1 << 29)
-#define	CLKCTRL_EMI_BUSY_REF_EMI		(1 << 28)
-#define	CLKCTRL_EMI_BUSY_REF_CPU		(1 << 27)
-#define	CLKCTRL_EMI_BUSY_SYNC_MODE		(1 << 26)
-#define	CLKCTRL_EMI_BUSY_DCC_RESYNC		(1 << 17)
-#define	CLKCTRL_EMI_DCC_RESYNC_ENABLE		(1 << 16)
-#define	CLKCTRL_EMI_DIV_XTAL_MASK		(0xf << 8)
-#define	CLKCTRL_EMI_DIV_XTAL_OFFSET		8
-#define	CLKCTRL_EMI_DIV_EMI_MASK		0x3f
-#define	CLKCTRL_EMI_DIV_EMI_OFFSET		0
-
-#define	CLKCTRL_IR_CLKGATE			(1 << 31)
-#define	CLKCTRL_IR_AUTO_DIV			(1 << 29)
-#define	CLKCTRL_IR_IR_BUSY			(1 << 28)
-#define	CLKCTRL_IR_IROV_BUSY			(1 << 27)
-#define	CLKCTRL_IR_IROV_DIV_MASK		(0x1ff << 16)
-#define	CLKCTRL_IR_IROV_DIV_OFFSET		16
-#define	CLKCTRL_IR_IR_DIV_MASK			0x3ff
-#define	CLKCTRL_IR_IR_DIV_OFFSET		0
-
-#define	CLKCTRL_SAIF0_CLKGATE			(1 << 31)
-#define	CLKCTRL_SAIF0_BUSY			(1 << 29)
-#define	CLKCTRL_SAIF0_DIV_FRAC_EN		(1 << 16)
-#define	CLKCTRL_SAIF0_DIV_MASK			0xffff
-#define	CLKCTRL_SAIF0_DIV_OFFSET		0
-
-#define	CLKCTRL_TV_CLK_TV108M_GATE		(1 << 31)
-#define	CLKCTRL_TV_CLK_TV_GATE			(1 << 30)
-
-#define	CLKCTRL_ETM_CLKGATE			(1 << 31)
-#define	CLKCTRL_ETM_BUSY			(1 << 29)
-#define	CLKCTRL_ETM_DIV_FRAC_EN			(1 << 6)
-#define	CLKCTRL_ETM_DIV_MASK			0x3f
-#define	CLKCTRL_ETM_DIV_OFFSET			0
-
-#define	CLKCTRL_FRAC_CLKGATE			(1 << 7)
-#define	CLKCTRL_FRAC_STABLE			(1 << 6)
-#define	CLKCTRL_FRAC_FRAC_MASK			0x3f
-#define	CLKCTRL_FRAC_FRAC_OFFSET		0
-#define	CLKCTRL_FRAC0_CPU			0
-#define	CLKCTRL_FRAC0_EMI			1
-#define	CLKCTRL_FRAC0_PIX			2
-#define	CLKCTRL_FRAC0_IO0			3
-#define	CLKCTRL_FRAC1_VID			3
-
-#define	CLKCTRL_CLKSEQ_BYPASS_ETM		(1 << 8)
-#define	CLKCTRL_CLKSEQ_BYPASS_CPU		(1 << 7)
-#define	CLKCTRL_CLKSEQ_BYPASS_EMI		(1 << 6)
-#define	CLKCTRL_CLKSEQ_BYPASS_SSP0		(1 << 5)
-#define	CLKCTRL_CLKSEQ_BYPASS_GPMI		(1 << 4)
-#define	CLKCTRL_CLKSEQ_BYPASS_IR		(1 << 3)
-#define	CLKCTRL_CLKSEQ_BYPASS_PIX		(1 << 1)
-#define	CLKCTRL_CLKSEQ_BYPASS_SAIF		(1 << 0)
-
-#define	CLKCTRL_RESET_CHIP			(1 << 1)
-#define	CLKCTRL_RESET_DIG			(1 << 0)
-
-#define	CLKCTRL_STATUS_CPU_LIMIT_MASK		(0x3 << 30)
-#define	CLKCTRL_STATUS_CPU_LIMIT_OFFSET		30
-
-#define	CLKCTRL_VERSION_MAJOR_MASK		(0xff << 24)
-#define	CLKCTRL_VERSION_MAJOR_OFFSET		24
-#define	CLKCTRL_VERSION_MINOR_MASK		(0xff << 16)
-#define	CLKCTRL_VERSION_MINOR_OFFSET		16
-#define	CLKCTRL_VERSION_STEP_MASK		0xffff
-#define	CLKCTRL_VERSION_STEP_OFFSET		0
-
-#endif /* __MX23_REGS_CLKCTRL_H__ */
arch/arm/include/asm/arch-mxs/regs-power-mx23.h deleted +0 -344
deleted file mode 100644
index a0dc78102301..000000000000
@@ -1,344 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Freescale i.MX23 Power Controller Register Definitions
- *
- * Copyright (C) 2012 Marek Vasut <[email protected]>
- */
-
-#ifndef __MX23_REGS_POWER_H__
-#define __MX23_REGS_POWER_H__
-
-#include <asm/mach-imx/regs-common.h>
-
-#ifndef	__ASSEMBLY__
-struct mxs_power_regs {
-	mxs_reg_32(hw_power_ctrl)
-	mxs_reg_32(hw_power_5vctrl)
-	mxs_reg_32(hw_power_minpwr)
-	mxs_reg_32(hw_power_charge)
-	uint32_t	hw_power_vdddctrl;
-	uint32_t	reserved_vddd[3];
-	uint32_t	hw_power_vddactrl;
-	uint32_t	reserved_vdda[3];
-	uint32_t	hw_power_vddioctrl;
-	uint32_t	reserved_vddio[3];
-	uint32_t	hw_power_vddmemctrl;
-	uint32_t	reserved_vddmem[3];
-	uint32_t	hw_power_dcdc4p2;
-	uint32_t	reserved_dcdc4p2[3];
-	uint32_t	hw_power_misc;
-	uint32_t	reserved_misc[3];
-	uint32_t	hw_power_dclimits;
-	uint32_t	reserved_dclimits[3];
-	mxs_reg_32(hw_power_loopctrl)
-	uint32_t	hw_power_sts;
-	uint32_t	reserved_sts[3];
-	mxs_reg_32(hw_power_speed)
-	uint32_t	hw_power_battmonitor;
-	uint32_t	reserved_battmonitor[3];
-
-	uint32_t	reserved1[4];
-
-	mxs_reg_32(hw_power_reset)
-
-	uint32_t	reserved2[4];
-
-	mxs_reg_32(hw_power_special)
-	mxs_reg_32(hw_power_version)
-};
-#endif
-
-#define	POWER_CTRL_CLKGATE				(1 << 30)
-#define	POWER_CTRL_PSWITCH_MID_TRAN			(1 << 27)
-#define	POWER_CTRL_DCDC4P2_BO_IRQ			(1 << 24)
-#define	POWER_CTRL_ENIRQ_DCDC4P2_BO			(1 << 23)
-#define	POWER_CTRL_VDD5V_DROOP_IRQ			(1 << 22)
-#define	POWER_CTRL_ENIRQ_VDD5V_DROOP			(1 << 21)
-#define	POWER_CTRL_PSWITCH_IRQ				(1 << 20)
-#define	POWER_CTRL_PSWITCH_IRQ_SRC			(1 << 19)
-#define	POWER_CTRL_POLARITY_PSWITCH			(1 << 18)
-#define	POWER_CTRL_ENIRQ_PSWITCH			(1 << 17)
-#define	POWER_CTRL_POLARITY_DC_OK			(1 << 16)
-#define	POWER_CTRL_DC_OK_IRQ				(1 << 15)
-#define	POWER_CTRL_ENIRQ_DC_OK				(1 << 14)
-#define	POWER_CTRL_BATT_BO_IRQ				(1 << 13)
-#define	POWER_CTRL_ENIRQ_BATT_BO			(1 << 12)
-#define	POWER_CTRL_VDDIO_BO_IRQ				(1 << 11)
-#define	POWER_CTRL_ENIRQ_VDDIO_BO			(1 << 10)
-#define	POWER_CTRL_VDDA_BO_IRQ				(1 << 9)
-#define	POWER_CTRL_ENIRQ_VDDA_BO			(1 << 8)
-#define	POWER_CTRL_VDDD_BO_IRQ				(1 << 7)
-#define	POWER_CTRL_ENIRQ_VDDD_BO			(1 << 6)
-#define	POWER_CTRL_POLARITY_VBUSVALID			(1 << 5)
-#define	POWER_CTRL_VBUS_VALID_IRQ			(1 << 4)
-#define	POWER_CTRL_ENIRQ_VBUS_VALID			(1 << 3)
-#define	POWER_CTRL_POLARITY_VDD5V_GT_VDDIO		(1 << 2)
-#define	POWER_CTRL_VDD5V_GT_VDDIO_IRQ			(1 << 1)
-#define	POWER_CTRL_ENIRQ_VDD5V_GT_VDDIO			(1 << 0)
-
-#define	POWER_5VCTRL_VBUSDROOP_TRSH_MASK		(0x3 << 28)
-#define	POWER_5VCTRL_VBUSDROOP_TRSH_OFFSET		28
-#define	POWER_5VCTRL_VBUSDROOP_TRSH_4V3			(0x0 << 28)
-#define	POWER_5VCTRL_VBUSDROOP_TRSH_4V4			(0x1 << 28)
-#define	POWER_5VCTRL_VBUSDROOP_TRSH_4V5			(0x2 << 28)
-#define	POWER_5VCTRL_VBUSDROOP_TRSH_4V7			(0x3 << 28)
-#define	POWER_5VCTRL_HEADROOM_ADJ_MASK			(0x7 << 24)
-#define	POWER_5VCTRL_HEADROOM_ADJ_OFFSET		24
-#define	POWER_5VCTRL_PWD_CHARGE_4P2_MASK		(0x1 << 20)
-#define	POWER_5VCTRL_PWD_CHARGE_4P2_OFFSET		20
-#define	POWER_5VCTRL_CHARGE_4P2_ILIMIT_MASK		(0x3f << 12)
-#define	POWER_5VCTRL_CHARGE_4P2_ILIMIT_OFFSET		12
-#define	POWER_5VCTRL_VBUSVALID_TRSH_MASK		(0x7 << 8)
-#define	POWER_5VCTRL_VBUSVALID_TRSH_OFFSET		8
-#define	POWER_5VCTRL_VBUSVALID_TRSH_2V9			(0x0 << 8)
-#define	POWER_5VCTRL_VBUSVALID_TRSH_4V0			(0x1 << 8)
-#define	POWER_5VCTRL_VBUSVALID_TRSH_4V1			(0x2 << 8)
-#define	POWER_5VCTRL_VBUSVALID_TRSH_4V2			(0x3 << 8)
-#define	POWER_5VCTRL_VBUSVALID_TRSH_4V3			(0x4 << 8)
-#define	POWER_5VCTRL_VBUSVALID_TRSH_4V4			(0x5 << 8)
-#define	POWER_5VCTRL_VBUSVALID_TRSH_4V5			(0x6 << 8)
-#define	POWER_5VCTRL_VBUSVALID_TRSH_4V6			(0x7 << 8)
-#define	POWER_5VCTRL_PWDN_5VBRNOUT			(1 << 7)
-#define	POWER_5VCTRL_ENABLE_LINREG_ILIMIT		(1 << 6)
-#define	POWER_5VCTRL_DCDC_XFER				(1 << 5)
-#define	POWER_5VCTRL_VBUSVALID_5VDETECT			(1 << 4)
-#define	POWER_5VCTRL_VBUSVALID_TO_B			(1 << 3)
-#define	POWER_5VCTRL_ILIMIT_EQ_ZERO			(1 << 2)
-#define	POWER_5VCTRL_PWRUP_VBUS_CMPS			(1 << 1)
-#define	POWER_5VCTRL_ENABLE_DCDC			(1 << 0)
-
-#define	POWER_MINPWR_LOWPWR_4P2				(1 << 14)
-#define	POWER_MINPWR_VDAC_DUMP_CTRL			(1 << 13)
-#define	POWER_MINPWR_PWD_BO				(1 << 12)
-#define	POWER_MINPWR_USE_VDDXTAL_VBG			(1 << 11)
-#define	POWER_MINPWR_PWD_ANA_CMPS			(1 << 10)
-#define	POWER_MINPWR_ENABLE_OSC				(1 << 9)
-#define	POWER_MINPWR_SELECT_OSC				(1 << 8)
-#define	POWER_MINPWR_VBG_OFF				(1 << 7)
-#define	POWER_MINPWR_DOUBLE_FETS			(1 << 6)
-#define	POWER_MINPWR_HALFFETS				(1 << 5)
-#define	POWER_MINPWR_LESSANA_I				(1 << 4)
-#define	POWER_MINPWR_PWD_XTAL24				(1 << 3)
-#define	POWER_MINPWR_DC_STOPCLK				(1 << 2)
-#define	POWER_MINPWR_EN_DC_PFM				(1 << 1)
-#define	POWER_MINPWR_DC_HALFCLK				(1 << 0)
-
-#define	POWER_CHARGE_ADJ_VOLT_MASK			(0x7 << 24)
-#define	POWER_CHARGE_ADJ_VOLT_OFFSET			24
-#define	POWER_CHARGE_ADJ_VOLT_M025P			(0x1 << 24)
-#define	POWER_CHARGE_ADJ_VOLT_P050P			(0x2 << 24)
-#define	POWER_CHARGE_ADJ_VOLT_M075P			(0x3 << 24)
-#define	POWER_CHARGE_ADJ_VOLT_P025P			(0x4 << 24)
-#define	POWER_CHARGE_ADJ_VOLT_M050P			(0x5 << 24)
-#define	POWER_CHARGE_ADJ_VOLT_P075P			(0x6 << 24)
-#define	POWER_CHARGE_ADJ_VOLT_M100P			(0x7 << 24)
-#define	POWER_CHARGE_ENABLE_LOAD			(1 << 22)
-#define	POWER_CHARGE_ENABLE_CHARGER_RESISTORS		(1 << 21)
-#define	POWER_CHARGE_ENABLE_FAULT_DETECT		(1 << 20)
-#define	POWER_CHARGE_CHRG_STS_OFF			(1 << 19)
-#define	POWER_CHARGE_USE_EXTERN_R			(1 << 17)
-#define	POWER_CHARGE_PWD_BATTCHRG			(1 << 16)
-#define	POWER_CHARGE_STOP_ILIMIT_MASK			(0xf << 8)
-#define	POWER_CHARGE_STOP_ILIMIT_OFFSET			8
-#define	POWER_CHARGE_STOP_ILIMIT_10MA			(0x1 << 8)
-#define	POWER_CHARGE_STOP_ILIMIT_20MA			(0x2 << 8)
-#define	POWER_CHARGE_STOP_ILIMIT_50MA			(0x4 << 8)
-#define	POWER_CHARGE_STOP_ILIMIT_100MA			(0x8 << 8)
-#define	POWER_CHARGE_BATTCHRG_I_MASK			0x3f
-#define	POWER_CHARGE_BATTCHRG_I_OFFSET			0
-#define	POWER_CHARGE_BATTCHRG_I_10MA			0x01
-#define	POWER_CHARGE_BATTCHRG_I_20MA			0x02
-#define	POWER_CHARGE_BATTCHRG_I_50MA			0x04
-#define	POWER_CHARGE_BATTCHRG_I_100MA			0x08
-#define	POWER_CHARGE_BATTCHRG_I_200MA			0x10
-#define	POWER_CHARGE_BATTCHRG_I_400MA			0x20
-
-#define	POWER_VDDDCTRL_ADJTN_MASK			(0xf << 28)
-#define	POWER_VDDDCTRL_ADJTN_OFFSET			28
-#define	POWER_VDDDCTRL_PWDN_BRNOUT			(1 << 23)
-#define	POWER_VDDDCTRL_DISABLE_STEPPING			(1 << 22)
-#define	POWER_VDDDCTRL_ENABLE_LINREG			(1 << 21)
-#define	POWER_VDDDCTRL_DISABLE_FET			(1 << 20)
-#define	POWER_VDDDCTRL_LINREG_OFFSET_MASK		(0x3 << 16)
-#define	POWER_VDDDCTRL_LINREG_OFFSET_OFFSET		16
-#define	POWER_VDDDCTRL_LINREG_OFFSET_0STEPS		(0x0 << 16)
-#define	POWER_VDDDCTRL_LINREG_OFFSET_1STEPS_ABOVE	(0x1 << 16)
-#define	POWER_VDDDCTRL_LINREG_OFFSET_1STEPS_BELOW	(0x2 << 16)
-#define	POWER_VDDDCTRL_LINREG_OFFSET_2STEPS_BELOW	(0x3 << 16)
-#define	POWER_VDDDCTRL_BO_OFFSET_MASK			(0x7 << 8)
-#define	POWER_VDDDCTRL_BO_OFFSET_OFFSET			8
-#define	POWER_VDDDCTRL_TRG_MASK				0x1f
-#define	POWER_VDDDCTRL_TRG_OFFSET			0
-
-#define	POWER_VDDACTRL_PWDN_BRNOUT			(1 << 19)
-#define	POWER_VDDACTRL_DISABLE_STEPPING			(1 << 18)
-#define	POWER_VDDACTRL_ENABLE_LINREG			(1 << 17)
-#define	POWER_VDDACTRL_DISABLE_FET			(1 << 16)
-#define	POWER_VDDACTRL_LINREG_OFFSET_MASK		(0x3 << 12)
-#define	POWER_VDDACTRL_LINREG_OFFSET_OFFSET		12
-#define	POWER_VDDACTRL_LINREG_OFFSET_0STEPS		(0x0 << 12)
-#define	POWER_VDDACTRL_LINREG_OFFSET_1STEPS_ABOVE	(0x1 << 12)
-#define	POWER_VDDACTRL_LINREG_OFFSET_1STEPS_BELOW	(0x2 << 12)
-#define	POWER_VDDACTRL_LINREG_OFFSET_2STEPS_BELOW	(0x3 << 12)
-#define	POWER_VDDACTRL_BO_OFFSET_MASK			(0x7 << 8)
-#define	POWER_VDDACTRL_BO_OFFSET_OFFSET			8
-#define	POWER_VDDACTRL_TRG_MASK				0x1f
-#define	POWER_VDDACTRL_TRG_OFFSET			0
-
-#define	POWER_VDDIOCTRL_ADJTN_MASK			(0xf << 20)
-#define	POWER_VDDIOCTRL_ADJTN_OFFSET			20
-#define	POWER_VDDIOCTRL_PWDN_BRNOUT			(1 << 18)
-#define	POWER_VDDIOCTRL_DISABLE_STEPPING		(1 << 17)
-#define	POWER_VDDIOCTRL_DISABLE_FET			(1 << 16)
-#define	POWER_VDDIOCTRL_LINREG_OFFSET_MASK		(0x3 << 12)
-#define	POWER_VDDIOCTRL_LINREG_OFFSET_OFFSET		12
-#define	POWER_VDDIOCTRL_LINREG_OFFSET_0STEPS		(0x0 << 12)
-#define	POWER_VDDIOCTRL_LINREG_OFFSET_1STEPS_ABOVE	(0x1 << 12)
-#define	POWER_VDDIOCTRL_LINREG_OFFSET_1STEPS_BELOW	(0x2 << 12)
-#define	POWER_VDDIOCTRL_LINREG_OFFSET_2STEPS_BELOW	(0x3 << 12)
-#define	POWER_VDDIOCTRL_BO_OFFSET_MASK			(0x7 << 8)
-#define	POWER_VDDIOCTRL_BO_OFFSET_OFFSET		8
-#define	POWER_VDDIOCTRL_TRG_MASK			0x1f
-#define	POWER_VDDIOCTRL_TRG_OFFSET			0
-
-#define	POWER_VDDMEMCTRL_PULLDOWN_ACTIVE		(1 << 10)
-#define	POWER_VDDMEMCTRL_ENABLE_ILIMIT			(1 << 9)
-#define	POWER_VDDMEMCTRL_ENABLE_LINREG			(1 << 8)
-#define	POWER_VDDMEMCTRL_TRG_MASK			0x1f
-#define	POWER_VDDMEMCTRL_TRG_OFFSET			0
-
-#define	POWER_DCDC4P2_DROPOUT_CTRL_MASK			(0xf << 28)
-#define	POWER_DCDC4P2_DROPOUT_CTRL_OFFSET		28
-#define	POWER_DCDC4P2_DROPOUT_CTRL_200MV		(0x3 << 30)
-#define	POWER_DCDC4P2_DROPOUT_CTRL_100MV		(0x2 << 30)
-#define	POWER_DCDC4P2_DROPOUT_CTRL_50MV			(0x1 << 30)
-#define	POWER_DCDC4P2_DROPOUT_CTRL_25MV			(0x0 << 30)
-#define	POWER_DCDC4P2_DROPOUT_CTRL_SRC_4P2		(0x0 << 28)
-#define	POWER_DCDC4P2_DROPOUT_CTRL_SRC_4P2_LT_BATT	(0x1 << 28)
-#define	POWER_DCDC4P2_DROPOUT_CTRL_SRC_SEL		(0x2 << 28)
-#define	POWER_DCDC4P2_ISTEAL_THRESH_MASK		(0x3 << 24)
-#define	POWER_DCDC4P2_ISTEAL_THRESH_OFFSET		24
-#define	POWER_DCDC4P2_ENABLE_4P2			(1 << 23)
-#define	POWER_DCDC4P2_ENABLE_DCDC			(1 << 22)
-#define	POWER_DCDC4P2_HYST_DIR				(1 << 21)
-#define	POWER_DCDC4P2_HYST_THRESH			(1 << 20)
-#define	POWER_DCDC4P2_TRG_MASK				(0x7 << 16)
-#define	POWER_DCDC4P2_TRG_OFFSET			16
-#define	POWER_DCDC4P2_TRG_4V2				(0x0 << 16)
-#define	POWER_DCDC4P2_TRG_4V1				(0x1 << 16)
-#define	POWER_DCDC4P2_TRG_4V0				(0x2 << 16)
-#define	POWER_DCDC4P2_TRG_3V9				(0x3 << 16)
-#define	POWER_DCDC4P2_TRG_BATT				(0x4 << 16)
-#define	POWER_DCDC4P2_BO_MASK				(0x1f << 8)
-#define	POWER_DCDC4P2_BO_OFFSET				8
-#define	POWER_DCDC4P2_CMPTRIP_MASK			0x1f
-#define	POWER_DCDC4P2_CMPTRIP_OFFSET			0
-
-#define	POWER_MISC_FREQSEL_MASK				(0x7 << 4)
-#define	POWER_MISC_FREQSEL_OFFSET			4
-#define	POWER_MISC_FREQSEL_20MHZ			(0x1 << 4)
-#define	POWER_MISC_FREQSEL_24MHZ			(0x2 << 4)
-#define	POWER_MISC_FREQSEL_19MHZ			(0x3 << 4)
-#define	POWER_MISC_FREQSEL_14MHZ			(0x4 << 4)
-#define	POWER_MISC_FREQSEL_18MHZ			(0x5 << 4)
-#define	POWER_MISC_FREQSEL_21MHZ			(0x6 << 4)
-#define	POWER_MISC_FREQSEL_17MHZ			(0x7 << 4)
-#define	POWER_MISC_DISABLE_FET_BO_LOGIC			(1 << 3)
-#define	POWER_MISC_DELAY_TIMING				(1 << 2)
-#define	POWER_MISC_TEST					(1 << 1)
-#define	POWER_MISC_SEL_PLLCLK				(1 << 0)
-
-#define	POWER_DCLIMITS_POSLIMIT_BUCK_MASK		(0x7f << 8)
-#define	POWER_DCLIMITS_POSLIMIT_BUCK_OFFSET		8
-#define	POWER_DCLIMITS_NEGLIMIT_MASK			0x7f
-#define	POWER_DCLIMITS_NEGLIMIT_OFFSET			0
-
-#define	POWER_LOOPCTRL_TOGGLE_DIF			(1 << 20)
-#define	POWER_LOOPCTRL_HYST_SIGN			(1 << 19)
-#define	POWER_LOOPCTRL_EN_CM_HYST			(1 << 18)
-#define	POWER_LOOPCTRL_EN_DF_HYST			(1 << 17)
-#define	POWER_LOOPCTRL_CM_HYST_THRESH			(1 << 16)
-#define	POWER_LOOPCTRL_DF_HYST_THRESH			(1 << 15)
-#define	POWER_LOOPCTRL_RCSCALE_THRESH			(1 << 14)
-#define	POWER_LOOPCTRL_EN_RCSCALE_MASK			(0x3 << 12)
-#define	POWER_LOOPCTRL_EN_RCSCALE_OFFSET		12
-#define	POWER_LOOPCTRL_EN_RCSCALE_DIS			(0x0 << 12)
-#define	POWER_LOOPCTRL_EN_RCSCALE_2X			(0x1 << 12)
-#define	POWER_LOOPCTRL_EN_RCSCALE_4X			(0x2 << 12)
-#define	POWER_LOOPCTRL_EN_RCSCALE_8X			(0x3 << 12)
-#define	POWER_LOOPCTRL_DC_FF_MASK			(0x7 << 8)
-#define	POWER_LOOPCTRL_DC_FF_OFFSET			8
-#define	POWER_LOOPCTRL_DC_R_MASK			(0xf << 4)
-#define	POWER_LOOPCTRL_DC_R_OFFSET			4
-#define	POWER_LOOPCTRL_DC_C_MASK			0x3
-#define	POWER_LOOPCTRL_DC_C_OFFSET			0
-#define	POWER_LOOPCTRL_DC_C_MAX				0x0
-#define	POWER_LOOPCTRL_DC_C_2X				0x1
-#define	POWER_LOOPCTRL_DC_C_4X				0x2
-#define	POWER_LOOPCTRL_DC_C_MIN				0x3
-
-#define	POWER_STS_PWRUP_SOURCE_MASK			(0x3f << 24)
-#define	POWER_STS_PWRUP_SOURCE_OFFSET			24
-#define	POWER_STS_PWRUP_SOURCE_5V			(0x20 << 24)
-#define	POWER_STS_PWRUP_SOURCE_RTC			(0x10 << 24)
-#define	POWER_STS_PWRUP_SOURCE_PSWITCH_HIGH		(0x02 << 24)
-#define	POWER_STS_PWRUP_SOURCE_PSWITCH_MID		(0x01 << 24)
-#define	POWER_STS_PSWITCH_MASK				(0x3 << 20)
-#define	POWER_STS_PSWITCH_OFFSET			20
-#define	POWER_STS_AVALID0_STATUS			(1 << 17)
-#define	POWER_STS_BVALID0_STATUS			(1 << 16)
-#define	POWER_STS_VBUSVALID0_STATUS			(1 << 15)
-#define	POWER_STS_SESSEND0_STATUS			(1 << 14)
-#define	POWER_STS_BATT_BO				(1 << 13)
-#define	POWER_STS_VDD5V_FAULT				(1 << 12)
-#define	POWER_STS_CHRGSTS				(1 << 11)
-#define	POWER_STS_DCDC_4P2_BO				(1 << 10)
-#define	POWER_STS_DC_OK					(1 << 9)
-#define	POWER_STS_VDDIO_BO				(1 << 8)
-#define	POWER_STS_VDDA_BO				(1 << 7)
-#define	POWER_STS_VDDD_BO				(1 << 6)
-#define	POWER_STS_VDD5V_GT_VDDIO			(1 << 5)
-#define	POWER_STS_VDD5V_DROOP				(1 << 4)
-#define	POWER_STS_AVALID0				(1 << 3)
-#define	POWER_STS_BVALID0				(1 << 2)
-#define	POWER_STS_VBUSVALID0				(1 << 1)
-#define	POWER_STS_SESSEND0				(1 << 0)
-
-#define	POWER_SPEED_STATUS_MASK				(0xff << 16)
-#define	POWER_SPEED_STATUS_OFFSET			16
-#define	POWER_SPEED_CTRL_MASK				0x3
-#define	POWER_SPEED_CTRL_OFFSET				0
-#define	POWER_SPEED_CTRL_SS_OFF				0x0
-#define	POWER_SPEED_CTRL_SS_ON				0x1
-#define	POWER_SPEED_CTRL_SS_ENABLE			0x3
-
-#define	POWER_BATTMONITOR_BATT_VAL_MASK			(0x3ff << 16)
-#define	POWER_BATTMONITOR_BATT_VAL_OFFSET		16
-#define	POWER_BATTMONITOR_EN_BATADJ			(1 << 10)
-#define	POWER_BATTMONITOR_PWDN_BATTBRNOUT		(1 << 9)
-#define	POWER_BATTMONITOR_BRWNOUT_PWD			(1 << 8)
-#define	POWER_BATTMONITOR_BRWNOUT_LVL_MASK		0x1f
-#define	POWER_BATTMONITOR_BRWNOUT_LVL_OFFSET		0
-
-#define	POWER_RESET_UNLOCK_MASK				(0xffff << 16)
-#define	POWER_RESET_UNLOCK_OFFSET			16
-#define	POWER_RESET_UNLOCK_KEY				(0x3e77 << 16)
-#define	POWER_RESET_PWD_OFF				(1 << 1)
-#define	POWER_RESET_PWD					(1 << 0)
-
-#define	POWER_DEBUG_VBUSVALIDPIOLOCK			(1 << 3)
-#define	POWER_DEBUG_AVALIDPIOLOCK			(1 << 2)
-#define	POWER_DEBUG_BVALIDPIOLOCK			(1 << 1)
-#define	POWER_DEBUG_SESSENDPIOLOCK			(1 << 0)
-
-#define	POWER_SPECIAL_TEST_MASK				0xffffffff
-#define	POWER_SPECIAL_TEST_OFFSET			0
-
-#define	POWER_VERSION_MAJOR_MASK			(0xff << 24)
-#define	POWER_VERSION_MAJOR_OFFSET			24
-#define	POWER_VERSION_MINOR_MASK			(0xff << 16)
-#define	POWER_VERSION_MINOR_OFFSET			16
-#define	POWER_VERSION_STEP_MASK				0xffff
-#define	POWER_VERSION_STEP_OFFSET			0
-
-#endif	/* __MX23_REGS_POWER_H__ */
arch/arm/include/asm/arch-mxs/regs-ssp.h +3 -39
index eeb7e7f44c06..26e620f93802 100644
@@ -14,28 +14,7 @@
 #include <asm/mach-imx/regs-common.h>
 
 #ifndef	__ASSEMBLY__
-#if defined(CONFIG_MX23)
-struct mxs_ssp_regs {
-	mxs_reg_32(hw_ssp_ctrl0)
-	mxs_reg_32(hw_ssp_cmd0)
-	mxs_reg_32(hw_ssp_cmd1)
-	mxs_reg_32(hw_ssp_compref)
-	mxs_reg_32(hw_ssp_compmask)
-	mxs_reg_32(hw_ssp_timing)
-	mxs_reg_32(hw_ssp_ctrl1)
-	mxs_reg_32(hw_ssp_data)
-	mxs_reg_32(hw_ssp_sdresp0)
-	mxs_reg_32(hw_ssp_sdresp1)
-	mxs_reg_32(hw_ssp_sdresp2)
-	mxs_reg_32(hw_ssp_sdresp3)
-	mxs_reg_32(hw_ssp_status)
-
-	uint32_t	reserved1[12];
-
-	mxs_reg_32(hw_ssp_debug)
-	mxs_reg_32(hw_ssp_version)
-};
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 struct mxs_ssp_regs {
 	mxs_reg_32(hw_ssp_ctrl0)
 	mxs_reg_32(hw_ssp_cmd0)
@@ -62,9 +41,7 @@ struct mxs_ssp_regs {
 
 static inline int mxs_ssp_bus_id_valid(int bus)
 {
-#if defined(CONFIG_MX23)
-	const unsigned int mxs_ssp_chan_count = 2;
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	const unsigned int mxs_ssp_chan_count = 4;
 #endif
 
@@ -79,9 +56,7 @@ static inline int mxs_ssp_bus_id_valid(int bus)
 
 static inline int mxs_ssp_clock_by_bus(unsigned int clock)
 {
-#if defined(CONFIG_MX23)
-	return 0;
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	return clock;
 #endif
 }
@@ -125,11 +100,6 @@ static inline struct mxs_ssp_regs *mxs_ssp_regs_by_bus(unsigned int port)
 #define	SSP_CTRL0_GET_RESP			(1 << 17)
 #define	SSP_CTRL0_ENABLE			(1 << 16)
 
-#ifdef CONFIG_MX23
-#define	SSP_CTRL0_XFER_COUNT_OFFSET		0
-#define	SSP_CTRL0_XFER_COUNT_MASK		0xffff
-#endif
-
 #define	SSP_CMD0_SOFT_TERMINATE			(1 << 26)
 #define	SSP_CMD0_DBL_DATA_RATE_EN		(1 << 25)
 #define	SSP_CMD0_PRIM_BOOT_OP_EN		(1 << 24)
@@ -137,12 +107,6 @@ static inline struct mxs_ssp_regs *mxs_ssp_regs_by_bus(unsigned int port)
 #define	SSP_CMD0_SLOW_CLKING_EN			(1 << 22)
 #define	SSP_CMD0_CONT_CLKING_EN			(1 << 21)
 #define	SSP_CMD0_APPEND_8CYC			(1 << 20)
-#if defined(CONFIG_MX23)
-#define	SSP_CMD0_BLOCK_SIZE_MASK		(0xf << 16)
-#define	SSP_CMD0_BLOCK_SIZE_OFFSET		16
-#define	SSP_CMD0_BLOCK_COUNT_MASK		(0xff << 8)
-#define	SSP_CMD0_BLOCK_COUNT_OFFSET		8
-#endif
 #define	SSP_CMD0_CMD_MASK			0xff
 #define	SSP_CMD0_CMD_OFFSET			0
 #define	SSP_CMD0_CMD_MMC_GO_IDLE_STATE		0x00
arch/arm/include/asm/arch-mxs/regs-timrot.h +9 -88
index 9e19aabf114a..83ac268f70c0 100644
@@ -17,16 +17,7 @@
 struct mxs_timrot_regs {
 	mxs_reg_32(hw_timrot_rotctrl)
 	mxs_reg_32(hw_timrot_rotcount)
-#if defined(CONFIG_MX23)
-	mxs_reg_32(hw_timrot_timctrl0)
-	mxs_reg_32(hw_timrot_timcount0)
-	mxs_reg_32(hw_timrot_timctrl1)
-	mxs_reg_32(hw_timrot_timcount1)
-	mxs_reg_32(hw_timrot_timctrl2)
-	mxs_reg_32(hw_timrot_timcount2)
-	mxs_reg_32(hw_timrot_timctrl3)
-	mxs_reg_32(hw_timrot_timcount3)
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	mxs_reg_32(hw_timrot_timctrl0)
 	mxs_reg_32(hw_timrot_running_count0)
 	mxs_reg_32(hw_timrot_fixed_count0)
@@ -68,9 +59,7 @@ struct mxs_timrot_regs {
 #define	TIMROT_ROTCTRL_OVERSAMPLE_1X			(0x3 << 10)
 #define	TIMROT_ROTCTRL_POLARITY_B			(1 << 9)
 #define	TIMROT_ROTCTRL_POLARITY_A			(1 << 8)
-#if defined(CONFIG_MX23)
-#define	TIMROT_ROTCTRL_SELECT_B_MASK			(0x7 << 4)
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define	TIMROT_ROTCTRL_SELECT_B_MASK			(0xf << 4)
 #endif
 #define	TIMROT_ROTCTRL_SELECT_B_OFFSET			4
@@ -80,19 +69,14 @@ struct mxs_timrot_regs {
 #define	TIMROT_ROTCTRL_SELECT_B_PWM2			(0x3 << 4)
 #define	TIMROT_ROTCTRL_SELECT_B_PWM3			(0x4 << 4)
 #define	TIMROT_ROTCTRL_SELECT_B_PWM4			(0x5 << 4)
-#if defined(CONFIG_MX23)
-#define	TIMROT_ROTCTRL_SELECT_B_ROTARYA		(0x6 << 4)
-#define	TIMROT_ROTCTRL_SELECT_B_ROTARYB		(0x7 << 4)
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define	TIMROT_ROTCTRL_SELECT_B_PWM5			(0x6 << 4)
 #define	TIMROT_ROTCTRL_SELECT_B_PWM6			(0x7 << 4)
 #define	TIMROT_ROTCTRL_SELECT_B_PWM7			(0x8 << 4)
 #define	TIMROT_ROTCTRL_SELECT_B_ROTARYA			(0x9 << 4)
 #define	TIMROT_ROTCTRL_SELECT_B_ROTARYB			(0xa << 4)
 #endif
-#if defined(CONFIG_MX23)
-#define	TIMROT_ROTCTRL_SELECT_A_MASK			0x7
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define	TIMROT_ROTCTRL_SELECT_A_MASK			0xf
 #endif
 #define	TIMROT_ROTCTRL_SELECT_A_OFFSET			0
@@ -102,10 +86,7 @@ struct mxs_timrot_regs {
 #define	TIMROT_ROTCTRL_SELECT_A_PWM2			0x3
 #define	TIMROT_ROTCTRL_SELECT_A_PWM3			0x4
 #define	TIMROT_ROTCTRL_SELECT_A_PWM4			0x5
-#if defined(CONFIG_MX23)
-#define	TIMROT_ROTCTRL_SELECT_A_ROTARYA		0x6
-#define	TIMROT_ROTCTRL_SELECT_A_ROTARYB		0x7
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define	TIMROT_ROTCTRL_SELECT_A_PWM5			0x6
 #define	TIMROT_ROTCTRL_SELECT_A_PWM6			0x7
 #define	TIMROT_ROTCTRL_SELECT_A_PWM7			0x8
@@ -138,15 +119,7 @@ struct mxs_timrot_regs {
 #define	TIMROT_TIMCTRLn_SELECT_PWM2			0x3
 #define	TIMROT_TIMCTRLn_SELECT_PWM3			0x4
 #define	TIMROT_TIMCTRLn_SELECT_PWM4			0x5
-#if defined(CONFIG_MX23)
-#define	TIMROT_TIMCTRLn_SELECT_ROTARYA		0x6
-#define	TIMROT_TIMCTRLn_SELECT_ROTARYB		0x7
-#define	TIMROT_TIMCTRLn_SELECT_32KHZ_XTAL		0x8
-#define	TIMROT_TIMCTRLn_SELECT_8KHZ_XTAL		0x9
-#define	TIMROT_TIMCTRLn_SELECT_4KHZ_XTAL		0xa
-#define	TIMROT_TIMCTRLn_SELECT_1KHZ_XTAL		0xb
-#define	TIMROT_TIMCTRLn_SELECT_TICK_ALWAYS		0xc
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define	TIMROT_TIMCTRLn_SELECT_PWM5			0x6
 #define	TIMROT_TIMCTRLn_SELECT_PWM6			0x7
 #define	TIMROT_TIMCTRLn_SELECT_PWM7			0x8
@@ -159,18 +132,12 @@ struct mxs_timrot_regs {
 #define	TIMROT_TIMCTRLn_SELECT_TICK_ALWAYS		0xf
 #endif
 
-#if defined(CONFIG_MX23)
-#define	TIMROT_RUNNING_COUNTn_RUNNING_COUNT_MASK	(0xffff << 16)
-#define	TIMROT_RUNNING_COUNTn_RUNNING_COUNT_OFFSET	16
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define	TIMROT_RUNNING_COUNTn_RUNNING_COUNT_MASK	0xffffffff
 #define	TIMROT_RUNNING_COUNTn_RUNNING_COUNT_OFFSET	0
 #endif
 
-#if defined(CONFIG_MX23)
-#define	TIMROT_FIXED_COUNTn_FIXED_COUNT_MASK		0xffff
-#define	TIMROT_FIXED_COUNTn_FIXED_COUNT_OFFSET		0
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define	TIMROT_FIXED_COUNTn_FIXED_COUNT_MASK		0xffffffff
 #define	TIMROT_FIXED_COUNTn_FIXED_COUNT_OFFSET		0
 #endif
@@ -188,15 +155,7 @@ struct mxs_timrot_regs {
 #define	TIMROT_TIMCTRL3_TEST_SIGNAL_PWM2		(0x3 << 16)
 #define	TIMROT_TIMCTRL3_TEST_SIGNAL_PWM3		(0x4 << 16)
 #define	TIMROT_TIMCTRL3_TEST_SIGNAL_PWM4		(0x5 << 16)
-#if defined(CONFIG_MX23)
-#define	TIMROT_TIMCTRL3_TEST_SIGNAL_ROTARYA		(0x6 << 16)
-#define	TIMROT_TIMCTRL3_TEST_SIGNAL_ROTARYB		(0x7 << 16)
-#define	TIMROT_TIMCTRL3_TEST_SIGNAL_32KHZ_XTAL		(0x8 << 16)
-#define	TIMROT_TIMCTRL3_TEST_SIGNAL_8KHZ_XTAL		(0x9 << 16)
-#define	TIMROT_TIMCTRL3_TEST_SIGNAL_4KHZ_XTAL		(0xa << 16)
-#define	TIMROT_TIMCTRL3_TEST_SIGNAL_1KHZ_XTAL		(0xb << 16)
-#define	TIMROT_TIMCTRL3_TEST_SIGNAL_TICK_ALWAYS		(0xc << 16)
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define	TIMROT_TIMCTRL3_TEST_SIGNAL_PWM5		(0x6 << 16)
 #define	TIMROT_TIMCTRL3_TEST_SIGNAL_PWM6		(0x7 << 16)
 #define	TIMROT_TIMCTRL3_TEST_SIGNAL_PWM7		(0x8 << 16)
@@ -208,45 +167,7 @@ struct mxs_timrot_regs {
 #define	TIMROT_TIMCTRL3_TEST_SIGNAL_1KHZ_XTAL		(0xe << 16)
 #define	TIMROT_TIMCTRL3_TEST_SIGNAL_TICK_ALWAYS		(0xf << 16)
 #endif
-#if defined(CONFIG_MX23)
-#define	TIMROT_TIMCTRL3_IRQ				(1 << 15)
-#define	TIMROT_TIMCTRL3_IRQ_EN				(1 << 14)
-#define	TIMROT_TIMCTRL3_DUTU_VALID			(1 << 10)
-#endif
 #define	TIMROT_TIMCTRL3_DUTY_CYCLE			(1 << 9)
-#if defined(CONFIG_MX23)
-#define	TIMROT_TIMCTRL3_POLARITY_MASK			(0x1 << 8)
-#define	TIMROT_TIMCTRL3_POLARITY_OFFSET		8
-#define	TIMROT_TIMCTRL3_POLARITY_POSITIVE		(0x0 << 8)
-#define	TIMROT_TIMCTRL3_POLARITY_NEGATIVE		(0x1 << 8)
-#define	TIMROT_TIMCTRL3_UPDATE				(1 << 7)
-#define	TIMROT_TIMCTRL3_RELOAD				(1 << 6)
-#define	TIMROT_TIMCTRL3_PRESCALE_MASK			(0x3 << 4)
-#define	TIMROT_TIMCTRL3_PRESCALE_OFFSET		4
-#define	TIMROT_TIMCTRL3_PRESCALE_DIV_BY_1		(0x0 << 4)
-#define	TIMROT_TIMCTRL3_PRESCALE_DIV_BY_2		(0x1 << 4)
-#define	TIMROT_TIMCTRL3_PRESCALE_DIV_BY_4		(0x2 << 4)
-#define	TIMROT_TIMCTRL3_PRESCALE_DIV_BY_8		(0x3 << 4)
-#define	TIMROT_TIMCTRL3_SELECT_MASK			0xf
-#define	TIMROT_TIMCTRL3_SELECT_OFFSET			0
-#define	TIMROT_TIMCTRL3_SELECT_NEVER_TICK		0x0
-#define	TIMROT_TIMCTRL3_SELECT_PWM0			0x1
-#define	TIMROT_TIMCTRL3_SELECT_PWM1			0x2
-#define	TIMROT_TIMCTRL3_SELECT_PWM2			0x3
-#define	TIMROT_TIMCTRL3_SELECT_PWM3			0x4
-#define	TIMROT_TIMCTRL3_SELECT_PWM4			0x5
-#define	TIMROT_TIMCTRL3_SELECT_ROTARYA		0x6
-#define	TIMROT_TIMCTRL3_SELECT_ROTARYB		0x7
-#define	TIMROT_TIMCTRL3_SELECT_32KHZ_XTAL		0x8
-#define	TIMROT_TIMCTRL3_SELECT_8KHZ_XTAL		0x9
-#define	TIMROT_TIMCTRL3_SELECT_4KHZ_XTAL		0xa
-#define	TIMROT_TIMCTRL3_SELECT_1KHZ_XTAL		0xb
-#define	TIMROT_TIMCTRL3_SELECT_TICK_ALWAYS		0xc
-#define	TIMROT_TIMCOUNT3_LOW_RUNNING_COUNT_MASK	(0xffff << 16)
-#define	TIMROT_TIMCOUNT3_LOW_RUNNING_COUNT_OFFSET	16
-#define	TIMROT_TIMCOUNT3_HIGH_FIXED_COUNT_MASK	0xffff
-#define	TIMROT_TIMCOUNT3_HIGH_FIXED_COUNT_OFFSET	0
-#endif
 
 #define	TIMROT_VERSION_MAJOR_MASK			(0xff << 24)
 #define	TIMROT_VERSION_MAJOR_OFFSET			24
arch/arm/include/asm/arch-mxs/sys_proto.h +2 -15
index 20ee863ac7e7..5d86d6b28312 100644
@@ -16,9 +16,7 @@ int mxsmmc_initialize(struct bd_info *bis, int id, int (*wp)(int),
 
 #ifdef CONFIG_SPL_BUILD
 
-#if defined(CONFIG_MX23)
-#include <asm/arch/iomux-mx23.h>
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #include <asm/arch/iomux-mx28.h>
 #endif
 
@@ -36,18 +34,7 @@ struct mxs_pair {
 };
 
 static const struct mxs_pair mxs_boot_modes[] = {
-#if defined(CONFIG_MX23)
-	{ 0x00, 0x0f, "USB" },
-	{ 0x01, 0x1f, "I2C, master" },
-	{ 0x02, 0x1f, "SSP SPI #1, master, NOR" },
-	{ 0x03, 0x1f, "SSP SPI #2, master, NOR" },
-	{ 0x04, 0x1f, "NAND" },
-	{ 0x06, 0x1f, "JTAG" },
-	{ 0x08, 0x1f, "SSP SPI #3, master, EEPROM" },
-	{ 0x09, 0x1f, "SSP SD/MMC #0" },
-	{ 0x0a, 0x1f, "SSP SD/MMC #1" },
-	{ 0x00, 0x00, "Reserved/Unknown/Wrong" },
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	{ 0x00, 0x0f, "USB #0" },
 	{ 0x01, 0x1f, "I2C #0, master, 3V3" },
 	{ 0x11, 0x1f, "I2C #0, master, 1V8" },
arch/arm/include/asm/mach-imx/dma.h +1 -13
index 55eb84cb8e7e..30a0fc057f2a 100644
@@ -23,19 +23,7 @@
 /*
  * MXS DMA channels
  */
-#if defined(CONFIG_MX23)
-enum {
-	MXS_DMA_CHANNEL_AHB_APBH_LCDIF = 0,
-	MXS_DMA_CHANNEL_AHB_APBH_SSP0,
-	MXS_DMA_CHANNEL_AHB_APBH_SSP1,
-	MXS_DMA_CHANNEL_AHB_APBH_RESERVED0,
-	MXS_DMA_CHANNEL_AHB_APBH_GPMI0,
-	MXS_DMA_CHANNEL_AHB_APBH_GPMI1,
-	MXS_DMA_CHANNEL_AHB_APBH_GPMI2,
-	MXS_DMA_CHANNEL_AHB_APBH_GPMI3,
-	MXS_MAX_DMA_CHANNELS,
-};
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 enum {
 	MXS_DMA_CHANNEL_AHB_APBH_SSP0 = 0,
 	MXS_DMA_CHANNEL_AHB_APBH_SSP1,
arch/arm/include/asm/mach-imx/regs-apbh.h +2 -113
index 94c330c7f928..c751eab99164 100644
@@ -17,86 +17,6 @@
 
 #ifndef	__ASSEMBLY__
 
-#if defined(CONFIG_MX23)
-struct mxs_apbh_regs {
-	mxs_reg_32(hw_apbh_ctrl0)
-	mxs_reg_32(hw_apbh_ctrl1)
-	mxs_reg_32(hw_apbh_ctrl2)
-	mxs_reg_32(hw_apbh_channel_ctrl)
-
-	union {
-	struct {
-		mxs_reg_32(hw_apbh_ch_curcmdar)
-		mxs_reg_32(hw_apbh_ch_nxtcmdar)
-		mxs_reg_32(hw_apbh_ch_cmd)
-		mxs_reg_32(hw_apbh_ch_bar)
-		mxs_reg_32(hw_apbh_ch_sema)
-		mxs_reg_32(hw_apbh_ch_debug1)
-		mxs_reg_32(hw_apbh_ch_debug2)
-	} ch[8];
-	struct {
-		mxs_reg_32(hw_apbh_ch0_curcmdar)
-		mxs_reg_32(hw_apbh_ch0_nxtcmdar)
-		mxs_reg_32(hw_apbh_ch0_cmd)
-		mxs_reg_32(hw_apbh_ch0_bar)
-		mxs_reg_32(hw_apbh_ch0_sema)
-		mxs_reg_32(hw_apbh_ch0_debug1)
-		mxs_reg_32(hw_apbh_ch0_debug2)
-		mxs_reg_32(hw_apbh_ch1_curcmdar)
-		mxs_reg_32(hw_apbh_ch1_nxtcmdar)
-		mxs_reg_32(hw_apbh_ch1_cmd)
-		mxs_reg_32(hw_apbh_ch1_bar)
-		mxs_reg_32(hw_apbh_ch1_sema)
-		mxs_reg_32(hw_apbh_ch1_debug1)
-		mxs_reg_32(hw_apbh_ch1_debug2)
-		mxs_reg_32(hw_apbh_ch2_curcmdar)
-		mxs_reg_32(hw_apbh_ch2_nxtcmdar)
-		mxs_reg_32(hw_apbh_ch2_cmd)
-		mxs_reg_32(hw_apbh_ch2_bar)
-		mxs_reg_32(hw_apbh_ch2_sema)
-		mxs_reg_32(hw_apbh_ch2_debug1)
-		mxs_reg_32(hw_apbh_ch2_debug2)
-		mxs_reg_32(hw_apbh_ch3_curcmdar)
-		mxs_reg_32(hw_apbh_ch3_nxtcmdar)
-		mxs_reg_32(hw_apbh_ch3_cmd)
-		mxs_reg_32(hw_apbh_ch3_bar)
-		mxs_reg_32(hw_apbh_ch3_sema)
-		mxs_reg_32(hw_apbh_ch3_debug1)
-		mxs_reg_32(hw_apbh_ch3_debug2)
-		mxs_reg_32(hw_apbh_ch4_curcmdar)
-		mxs_reg_32(hw_apbh_ch4_nxtcmdar)
-		mxs_reg_32(hw_apbh_ch4_cmd)
-		mxs_reg_32(hw_apbh_ch4_bar)
-		mxs_reg_32(hw_apbh_ch4_sema)
-		mxs_reg_32(hw_apbh_ch4_debug1)
-		mxs_reg_32(hw_apbh_ch4_debug2)
-		mxs_reg_32(hw_apbh_ch5_curcmdar)
-		mxs_reg_32(hw_apbh_ch5_nxtcmdar)
-		mxs_reg_32(hw_apbh_ch5_cmd)
-		mxs_reg_32(hw_apbh_ch5_bar)
-		mxs_reg_32(hw_apbh_ch5_sema)
-		mxs_reg_32(hw_apbh_ch5_debug1)
-		mxs_reg_32(hw_apbh_ch5_debug2)
-		mxs_reg_32(hw_apbh_ch6_curcmdar)
-		mxs_reg_32(hw_apbh_ch6_nxtcmdar)
-		mxs_reg_32(hw_apbh_ch6_cmd)
-		mxs_reg_32(hw_apbh_ch6_bar)
-		mxs_reg_32(hw_apbh_ch6_sema)
-		mxs_reg_32(hw_apbh_ch6_debug1)
-		mxs_reg_32(hw_apbh_ch6_debug2)
-		mxs_reg_32(hw_apbh_ch7_curcmdar)
-		mxs_reg_32(hw_apbh_ch7_nxtcmdar)
-		mxs_reg_32(hw_apbh_ch7_cmd)
-		mxs_reg_32(hw_apbh_ch7_bar)
-		mxs_reg_32(hw_apbh_ch7_sema)
-		mxs_reg_32(hw_apbh_ch7_debug1)
-		mxs_reg_32(hw_apbh_ch7_debug2)
-	};
-	};
-	mxs_reg_32(hw_apbh_version)
-};
-
-#else
 struct mxs_apbh_regs {
 	mxs_reg_32(hw_apbh_ctrl0)
 	mxs_reg_32(hw_apbh_ctrl1)
@@ -235,7 +155,6 @@ struct mxs_apbh_regs {
 	};
 	mxs_reg_32(hw_apbh_version)
 };
-#endif
 
 #endif
 
@@ -243,20 +162,7 @@ struct mxs_apbh_regs {
 #define	APBH_CTRL0_CLKGATE				(1 << 30)
 #define	APBH_CTRL0_AHB_BURST8_EN			(1 << 29)
 #define	APBH_CTRL0_APB_BURST_EN				(1 << 28)
-#if defined(CONFIG_MX23)
-#define	APBH_CTRL0_RSVD0_MASK				(0xf << 24)
-#define	APBH_CTRL0_RSVD0_OFFSET				24
-#define	APBH_CTRL0_RESET_CHANNEL_MASK			(0xff << 16)
-#define	APBH_CTRL0_RESET_CHANNEL_OFFSET			16
-#define	APBH_CTRL0_CLKGATE_CHANNEL_MASK			(0xff << 8)
-#define	APBH_CTRL0_CLKGATE_CHANNEL_OFFSET		8
-#define	APBH_CTRL0_CLKGATE_CHANNEL_SSP0			0x02
-#define	APBH_CTRL0_CLKGATE_CHANNEL_SSP1			0x04
-#define	APBH_CTRL0_CLKGATE_CHANNEL_NAND0		0x10
-#define	APBH_CTRL0_CLKGATE_CHANNEL_NAND1		0x20
-#define	APBH_CTRL0_CLKGATE_CHANNEL_NAND2		0x40
-#define	APBH_CTRL0_CLKGATE_CHANNEL_NAND3		0x80
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define	APBH_CTRL0_RSVD0_MASK				(0xfff << 16)
 #define	APBH_CTRL0_RSVD0_OFFSET				16
 #define	APBH_CTRL0_CLKGATE_CHANNEL_MASK			0xffff
@@ -393,24 +299,7 @@ struct mxs_apbh_regs {
 /* Not on i.MX23 */
 #define	APBH_CHANNEL_CTRL_RESET_CHANNEL_OFFSET		16
 
-#if defined(CONFIG_MX23)
-#define	APBH_DEVSEL_CH7_MASK				(0xf << 28)
-#define	APBH_DEVSEL_CH7_OFFSET				28
-#define	APBH_DEVSEL_CH6_MASK				(0xf << 24)
-#define	APBH_DEVSEL_CH6_OFFSET				24
-#define	APBH_DEVSEL_CH5_MASK				(0xf << 20)
-#define	APBH_DEVSEL_CH5_OFFSET				20
-#define	APBH_DEVSEL_CH4_MASK				(0xf << 16)
-#define	APBH_DEVSEL_CH4_OFFSET				16
-#define	APBH_DEVSEL_CH3_MASK				(0xf << 12)
-#define	APBH_DEVSEL_CH3_OFFSET				12
-#define	APBH_DEVSEL_CH2_MASK				(0xf << 8)
-#define	APBH_DEVSEL_CH2_OFFSET				8
-#define	APBH_DEVSEL_CH1_MASK				(0xf << 4)
-#define	APBH_DEVSEL_CH1_OFFSET				4
-#define	APBH_DEVSEL_CH0_MASK				(0xf << 0)
-#define	APBH_DEVSEL_CH0_OFFSET				0
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define	APBH_DEVSEL_CH15_MASK				(0x3 << 30)
 #define	APBH_DEVSEL_CH15_OFFSET				30
 #define	APBH_DEVSEL_CH14_MASK				(0x3 << 28)
arch/arm/include/asm/mach-imx/regs-lcdif.h +0 -12
index 587463879661..12e0faad91d6 100644
@@ -29,10 +29,6 @@ struct mxs_lcdif_regs {
 	mxs_reg_32(hw_lcdif_cur_buf)		/* 0x30/0x40 */
 	mxs_reg_32(hw_lcdif_next_buf)		/* 0x40/0x50 */
 
-#if defined(CONFIG_MX23)
-	uint32_t	reserved1[4];
-#endif
-
 	mxs_reg_32(hw_lcdif_timing)		/* 0x60 */
 	mxs_reg_32(hw_lcdif_vdctrl0)		/* 0x70 */
 	mxs_reg_32(hw_lcdif_vdctrl1)		/* 0x80 */
@@ -52,9 +48,6 @@ struct mxs_lcdif_regs {
 	mxs_reg_32(hw_lcdif_csc_offset)		/* 0x160 */
 	mxs_reg_32(hw_lcdif_csc_limit)		/* 0x170 */
 
-#if defined(CONFIG_MX23)
-	uint32_t	reserved2[12];
-#endif
 	mxs_reg_32(hw_lcdif_data)		/* 0x1b0/0x180 */
 	mxs_reg_32(hw_lcdif_bm_error_stat)	/* 0x1c0/0x190 */
 #if defined(CONFIG_MX28) || defined(CONFIG_MX6SX) || \
@@ -214,13 +207,8 @@ struct mxs_lcdif_regs {
 #define	LCDIF_VDCTRL1_VSYNC_PERIOD_MASK				0xffffffff
 #define	LCDIF_VDCTRL1_VSYNC_PERIOD_OFFSET			0
 
-#if defined(CONFIG_MX23)
-#define	LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH_MASK			(0xff << 24)
-#define	LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH_OFFSET			24
-#else
 #define	LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH_MASK			(0x3fff << 18)
 #define	LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH_OFFSET			18
-#endif
 #define	LCDIF_VDCTRL2_HSYNC_PERIOD_MASK				0x3ffff
 #define	LCDIF_VDCTRL2_HSYNC_PERIOD_OFFSET			0
 
arch/arm/mach-imx/mxs/Kconfig +0 -21
index bd075de2b826..e04b0dc10f6c 100644
@@ -1,24 +1,3 @@
-if ARCH_MX23
-
-config MX23
-	bool
-	default y
-
-choice
-	prompt "MX23 board select"
-	optional
-
-config TARGET_SANSA_FUZE_PLUS
-	bool "Support sansa_fuze_plus"
-
-endchoice
-
-config SYS_SOC
-	default "mxs"
-
-
-endif
-
 if ARCH_MX28
 
 config MX28
drivers/dma/apbh_dma.c +1 -4
index da988f6bb667..e05415d2d502 100644
@@ -215,10 +215,7 @@ static int mxs_dma_reset(int channel)
 	struct mxs_apbh_regs *apbh_regs =
 		(struct mxs_apbh_regs *)MXS_APBH_BASE;
 	int ret;
-#if defined(CONFIG_MX23)
-	uint32_t setreg = (uint32_t)(&apbh_regs->hw_apbh_ctrl0_set);
-	uint32_t offset = APBH_CTRL0_RESET_CHANNEL_OFFSET;
-#elif defined(CONFIG_MX28) || defined(CONFIG_MX6) || defined(CONFIG_MX7) || \
+#if defined(CONFIG_MX28) || defined(CONFIG_MX6) || defined(CONFIG_MX7) || \
 	defined(CONFIG_IMX8) || defined(CONFIG_IMX8M)
 	u32 setreg = (uintptr_t)(&apbh_regs->hw_apbh_channel_ctrl_set);
 	u32 offset = APBH_CHANNEL_CTRL_RESET_CHANNEL_OFFSET;
drivers/gpio/mxs_gpio.c +2 -10
index 4b2b18fdb538..22e50dd21ca9 100644
@@ -15,15 +15,7 @@
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
 
-#if	defined(CONFIG_MX23)
-#define	PINCTRL_BANKS		3
-#define	PINCTRL_DOUT(n)		(0x0500 + ((n) * 0x10))
-#define	PINCTRL_DIN(n)		(0x0600 + ((n) * 0x10))
-#define	PINCTRL_DOE(n)		(0x0700 + ((n) * 0x10))
-#define	PINCTRL_PIN2IRQ(n)	(0x0800 + ((n) * 0x10))
-#define	PINCTRL_IRQEN(n)	(0x0900 + ((n) * 0x10))
-#define	PINCTRL_IRQSTAT(n)	(0x0c00 + ((n) * 0x10))
-#elif	defined(CONFIG_MX28)
+#if	defined(CONFIG_MX28)
 #define	PINCTRL_BANKS		5
 #define	PINCTRL_DOUT(n)		(0x0700 + ((n) * 0x10))
 #define	PINCTRL_DIN(n)		(0x0900 + ((n) * 0x10))
@@ -32,7 +24,7 @@
 #define	PINCTRL_IRQEN(n)	(0x1100 + ((n) * 0x10))
 #define	PINCTRL_IRQSTAT(n)	(0x1400 + ((n) * 0x10))
 #else
-#error "Please select CONFIG_MX23 or CONFIG_MX28"
+#error "Please select CONFIG_MX28"
 #endif
 
 #define GPIO_INT_FALL_EDGE	0x0
drivers/mmc/mxsmmc.c +1 -11
index 8fd41764152f..863e67f10c52 100644
@@ -391,15 +391,7 @@ mxsmmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, struct mmc_data *data)
 		ctrl0 |= SSP_CTRL0_DATA_XFER;
 
 		reg = data->blocksize * data->blocks;
-#if defined(CONFIG_MX23)
-		ctrl0 |= reg & SSP_CTRL0_XFER_COUNT_MASK;
-
-		clrsetbits_le32(&ssp_regs->hw_ssp_cmd0,
-			SSP_CMD0_BLOCK_SIZE_MASK | SSP_CMD0_BLOCK_COUNT_MASK,
-			((data->blocks - 1) << SSP_CMD0_BLOCK_COUNT_OFFSET) |
-			((ffs(data->blocksize) - 1) <<
-				SSP_CMD0_BLOCK_SIZE_OFFSET));
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 		writel(reg, &ssp_regs->hw_ssp_xfer_size);
 
 		reg = ((data->blocks - 1) <<
@@ -595,8 +587,6 @@ static int mxsmmc_probe(struct udevice *dev)
 
 #ifdef CONFIG_MX28
 	priv->clkid = clkid - MXS_SSP_IMX28_CLKID_SSP0;
-#else /* CONFIG_MX23 */
-	priv->clkid = clkid - MXS_SSP_IMX23_CLKID_SSP0;
 #endif
 	mmc = &plat->mmc;
 	mmc->cfg = &plat->cfg;
drivers/spi/mxs_spi.c +2 -7
index d41352a0bb8c..45b541fe1668 100644
@@ -83,10 +83,7 @@ static int mxs_spi_xfer_pio(struct mxs_spi_priv *priv,
 
 	while (length--) {
 		/* We transfer 1 byte */
-#if defined(CONFIG_MX23)
-		writel(SSP_CTRL0_XFER_COUNT_MASK, &ssp_regs->hw_ssp_ctrl0_clr);
-		writel(1, &ssp_regs->hw_ssp_ctrl0_set);
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 		writel(1, &ssp_regs->hw_ssp_xfer_size);
 #endif
 
@@ -146,9 +143,7 @@ static int mxs_spi_xfer_dma(struct mxs_spi_priv *priv,
 	int tl;
 	int ret = 0;
 
-#if defined(CONFIG_MX23)
-	const int mxs_spi_pio_words = 1;
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 	const int mxs_spi_pio_words = 4;
 #endif
 
include/configs/mxs.h +2 -12
index 325c3ee00ce3..3db3e18066e7 100644
@@ -23,17 +23,9 @@
  * Includes
  */
 
-#if defined(CONFIG_MX23) && defined(CONFIG_MX28)
-#error Select either CONFIG_MX23 or CONFIG_MX28 , never both!
-#elif !defined(CONFIG_MX23) && !defined(CONFIG_MX28)
-#error Select one of CONFIG_MX23 or CONFIG_MX28 !
-#endif
-
 #include <asm/arch/regs-base.h>
 
-#if defined(CONFIG_MX23)
-#include <asm/arch/iomux-mx23.h>
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #include <asm/arch/iomux-mx28.h>
 #endif
 
@@ -54,9 +46,7 @@
 
 /* OCRAM at 0x0 ; 32kB on MX23 ; 128kB on MX28 */
 #define CONFIG_SYS_INIT_RAM_ADDR	0x00000000
-#if defined(CONFIG_MX23)
-#define CONFIG_SYS_INIT_RAM_SIZE	(32 * 1024)
-#elif defined(CONFIG_MX28)
+#if defined(CONFIG_MX28)
 #define CONFIG_SYS_INIT_RAM_SIZE	(128 * 1024)
 #endif
 
tools/Makefile +2 -3
index 2d550432ba5a..ce8faeb85249 100644
@@ -127,7 +127,7 @@ fit_info-objs   := $(dumpimage-mkimage-objs) fit_info.o
 fit_check_sign-objs   := $(dumpimage-mkimage-objs) fit_check_sign.o
 file2include-objs := file2include.o
 
-ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_FIT_SIGNATURE),)
+ifneq ($(CONFIG_MX28)$(CONFIG_FIT_SIGNATURE),)
 # Add CONFIG_MXS into host CFLAGS, so we can check whether or not register
 # the mxsimage support within tools/mxsimage.c .
 HOSTCFLAGS_mxsimage.o += -DCONFIG_MXS
@@ -155,7 +155,7 @@ HOSTCFLAGS_kwbimage.o += -DCONFIG_KWB_SECURE
 endif
 
 # MXSImage needs LibSSL
-ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_ARMADA_38X)$(CONFIG_ARMADA_39X)$(CONFIG_FIT_SIGNATURE)$(CONFIG_FIT_CIPHER),)
+ifneq ($(CONFIG_MX28)$(CONFIG_ARMADA_38X)$(CONFIG_ARMADA_39X)$(CONFIG_FIT_SIGNATURE)$(CONFIG_FIT_CIPHER),)
 HOSTCFLAGS_kwbimage.o += \
 	$(shell pkg-config --cflags libssl libcrypto 2> /dev/null || echo "")
 HOSTLDLIBS_mkimage += \
@@ -186,7 +186,6 @@ hostprogs-$(CONFIG_X86) += ifdtool
 ifwitool-objs := ifwitool.o
 hostprogs-$(CONFIG_X86)$(CONFIG_SANDBOX) += ifwitool
 
-hostprogs-$(CONFIG_MX23) += mxsboot
 hostprogs-$(CONFIG_MX28) += mxsboot
 HOSTCFLAGS_mxsboot.o := -pedantic
 
Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
author
#7 lore raw

PATCH 6/25 arm: Remove mx28evk board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Fabio Estevam <[email protected]>
---
 arch/arm/mach-imx/mxs/Kconfig           |   5 -
 board/freescale/mx28evk/Kconfig         |  15 --
 board/freescale/mx28evk/MAINTAINERS     |   9 -
 board/freescale/mx28evk/Makefile        |  10 --
 board/freescale/mx28evk/README          |  62 -------
 board/freescale/mx28evk/iomux.c         | 205 ---------------------
 board/freescale/mx28evk/mx28evk.c       | 150 ----------------
 configs/mx28evk_auart_console_defconfig |  63 -------
 configs/mx28evk_defconfig               |  63 -------
 configs/mx28evk_nand_defconfig          |  64 -------
 configs/mx28evk_spi_defconfig           |  60 -------
 include/configs/mx28evk.h               | 226 ------------------------
 12 files changed, 932 deletions(-)
 delete mode 100644 board/freescale/mx28evk/Kconfig
 delete mode 100644 board/freescale/mx28evk/MAINTAINERS
 delete mode 100644 board/freescale/mx28evk/Makefile
 delete mode 100644 board/freescale/mx28evk/README
 delete mode 100644 board/freescale/mx28evk/iomux.c
 delete mode 100644 board/freescale/mx28evk/mx28evk.c
 delete mode 100644 configs/mx28evk_auart_console_defconfig
 delete mode 100644 configs/mx28evk_defconfig
 delete mode 100644 configs/mx28evk_nand_defconfig
 delete mode 100644 configs/mx28evk_spi_defconfig
 delete mode 100644 include/configs/mx28evk.h
arch/arm/mach-imx/mxs/Kconfig +0 -5
index e04b0dc10f6c..6a6e6ebecf0b 100644
@@ -14,10 +14,6 @@ config TARGET_APX4DEVKIT
 config TARGET_BG0900
 	bool "Support bg0900"
 
-config TARGET_MX28EVK
-	bool "Support mx28evk"
-	select BOARD_EARLY_INIT_F
-
 config TARGET_SC_SPS_1
 	bool "Support sc_sps_1"
 
@@ -33,7 +29,6 @@ config SYS_SOC
 	default "mxs"
 
 source "board/bluegiga/apx4devkit/Kconfig"
-source "board/freescale/mx28evk/Kconfig"
 source "board/liebherr/xea/Kconfig"
 source "board/ppcag/bg0900/Kconfig"
 source "board/schulercontrol/sc_sps_1/Kconfig"
board/freescale/mx28evk/Kconfig deleted +0 -15
deleted file mode 100644
index 39777bd70fae..000000000000
@@ -1,15 +0,0 @@
-if TARGET_MX28EVK
-
-config SYS_BOARD
-	default "mx28evk"
-
-config SYS_VENDOR
-	default "freescale"
-
-config SYS_SOC
-	default "mxs"
-
-config SYS_CONFIG_NAME
-	default "mx28evk"
-
-endif
board/freescale/mx28evk/MAINTAINERS deleted +0 -9
deleted file mode 100644
index a98a70558a72..000000000000
@@ -1,9 +0,0 @@
-MX28EVK BOARD
-M:	Fabio Estevam <[email protected]>
-S:	Maintained
-F:	board/freescale/mx28evk/
-F:	include/configs/mx28evk.h
-F:	configs/mx28evk_defconfig
-F:	configs/mx28evk_auart_console_defconfig
-F:	configs/mx28evk_nand_defconfig
-F:	configs/mx28evk_spi_defconfig
board/freescale/mx28evk/Makefile deleted +0 -10
deleted file mode 100644
index 057760433da9..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-
-ifndef	CONFIG_SPL_BUILD
-obj-y	:= mx28evk.o
-else
-obj-y	:= iomux.o
-endif
board/freescale/mx28evk/README deleted +0 -62

62 lines not on this page · raw message

board/freescale/mx28evk/iomux.c deleted +0 -205

205 lines not on this page · raw message

board/freescale/mx28evk/mx28evk.c deleted +0 -150

150 lines not on this page · raw message

configs/mx28evk_auart_console_defconfig deleted +0 -63

63 lines not on this page · raw message

configs/mx28evk_defconfig deleted +0 -63

63 lines not on this page · raw message

configs/mx28evk_nand_defconfig deleted +0 -64

64 lines not on this page · raw message

configs/mx28evk_spi_defconfig deleted +0 -60

60 lines not on this page · raw message

include/configs/mx28evk.h deleted +0 -226

226 lines not on this page · raw message

Signature · 1 line
2.17.1
#8 lore raw

PATCH 6/25 arm: Remove mx28evk board

Hi Tom,

Quoted 3 lines

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

This is very strange as imx28 SoC is still in active production (and will be for some years from now on).

I think that this board shall stay in U-Boot, as it is the official EVK board from NXP.

I've added Peng to this mail, so maybe NXP will find some time to convert it.

Quoted 1,067 lines
Cc Fabio Estevam <[email protected]>
---
 arch/arm/mach-imx/mxs/Kconfig           |   5 -
 board/freescale/mx28evk/Kconfig         |  15 --
 board/freescale/mx28evk/MAINTAINERS     |   9 -
 board/freescale/mx28evk/Makefile        |  10 --
 board/freescale/mx28evk/README          |  62 -------
 board/freescale/mx28evk/iomux.c         | 205 ---------------------
 board/freescale/mx28evk/mx28evk.c       | 150 ----------------
 configs/mx28evk_auart_console_defconfig |  63 -------
 configs/mx28evk_defconfig               |  63 -------
 configs/mx28evk_nand_defconfig          |  64 -------
 configs/mx28evk_spi_defconfig           |  60 -------
 include/configs/mx28evk.h               | 226
------------------------ 12 files changed, 932 deletions(-)
 delete mode 100644 board/freescale/mx28evk/Kconfig
 delete mode 100644 board/freescale/mx28evk/MAINTAINERS
 delete mode 100644 board/freescale/mx28evk/Makefile
 delete mode 100644 board/freescale/mx28evk/README
 delete mode 100644 board/freescale/mx28evk/iomux.c
 delete mode 100644 board/freescale/mx28evk/mx28evk.c
 delete mode 100644 configs/mx28evk_auart_console_defconfig
 delete mode 100644 configs/mx28evk_defconfig
 delete mode 100644 configs/mx28evk_nand_defconfig
 delete mode 100644 configs/mx28evk_spi_defconfig
 delete mode 100644 include/configs/mx28evk.h
(quoted diff) +0 -0

b/arch/arm/mach-imx/mxs/Kconfig index e04b0dc10f6c..6a6e6ebecf0b 100644 --- a/arch/arm/mach-imx/mxs/Kconfig
+++ b/arch/arm/mach-imx/mxs/Kconfig

arch/arm/mach-imx/mxs/Kconfig +0 -5
@@ -14,10 +14,6 @@ config TARGET_APX4DEVKIT
 config TARGET_BG0900
 	bool "Support bg0900"
 
-config TARGET_MX28EVK
-	bool "Support mx28evk"
-	select BOARD_EARLY_INIT_F
-
 config TARGET_SC_SPS_1
 	bool "Support sc_sps_1"
 
@@ -33,7 +29,6 @@ config SYS_SOC
 	default "mxs"
 
 source "board/bluegiga/apx4devkit/Kconfig"
-source "board/freescale/mx28evk/Kconfig"
 source "board/liebherr/xea/Kconfig"
 source "board/ppcag/bg0900/Kconfig"
 source "board/schulercontrol/sc_sps_1/Kconfig"
(quoted diff) +0 -0

b/board/freescale/mx28evk/Kconfig deleted file mode 100644 index 39777bd70fae..000000000000

board/freescale/mx28evk/Kconfig deleted +0 -15
@@ -1,15 +0,0 @@
-if TARGET_MX28EVK
-
-config SYS_BOARD
-	default "mx28evk"
-
-config SYS_VENDOR
-	default "freescale"
-
-config SYS_SOC
-	default "mxs"
-
-config SYS_CONFIG_NAME
-	default "mx28evk"
-
-endif
(quoted diff) +0 -0

b/board/freescale/mx28evk/MAINTAINERS deleted file mode 100644 index a98a70558a72..000000000000

board/freescale/mx28evk/MAINTAINERS deleted +0 -9
@@ -1,9 +0,0 @@
-MX28EVK BOARD
-M:	Fabio Estevam <[email protected]>
-S:	Maintained
-F:	board/freescale/mx28evk/
-F:	include/configs/mx28evk.h
-F:	configs/mx28evk_defconfig
-F:	configs/mx28evk_auart_console_defconfig
-F:	configs/mx28evk_nand_defconfig
-F:	configs/mx28evk_spi_defconfig
(quoted diff) +0 -0

b/board/freescale/mx28evk/Makefile deleted file mode 100644 index 057760433da9..000000000000

board/freescale/mx28evk/Makefile deleted +0 -10
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-
-ifndef	CONFIG_SPL_BUILD
-obj-y	:= mx28evk.o
-else
-obj-y	:= iomux.o
-endif
(quoted diff) +0 -0

b/board/freescale/mx28evk/README deleted file mode 100644 index d32f0efb3326..000000000000

board/freescale/mx28evk/README deleted +0 -9
@@ -1,62 +0,0 @@
-FREESCALE MX28EVK
-==================
-
-Supported hardware: MX28EVK rev C and D are supported in U-Boot.
-
-Files of the MX28EVK port
---------------------------
-
-arch/arm/cpu/arm926ejs/mxs/	- The CPU support code for the

Freescale i.MX28 -arch/arm/include/asm/arch-mxs/ - Header
files for the Freescale i.MX28 -board/freescale/mx28evk/ -
MX28EVK board specific files -include/configs/mx28evk.h -
MX28EVK configuration file -

board/freescale/mx28evk/README deleted +0 -13
-Jumper configuration
----------------------
-
-To boot MX28EVK from an SD card, set the boot mode DIP switches as:
-
-   * Boot Mode Select: 1 0 0 1 (Boot from SD card Slot 0 - U42)
-   * JTAG PSWITCH RESET: To the right (reset disabled)
-   * Battery Source: Down
-   * Wall 5V: Up
-   * VDD 5V: To the left (off)
-   * Hold Button: Down (off)
-
-To boot MX28EVK from SPI NOR flash, set the boot mode DIP switches

as: -

board/freescale/mx28evk/README deleted +0 -13
-   * Boot Mode Select: 0 0 1 0 (Boot from SSP2)
-   * JTAG PSWITCH RESET: To the right (reset disabled)
-   * Battery Source: Down
-   * Wall 5V: Up
-   * VDD 5V: To the left (off)
-   * Hold Button: Down (off)
-
-Environment Storage
--------------------
-
-There are three targets for mx28evk:
-
-"make mx28evk_config"		- store environment variables

into MMC -

board/freescale/mx28evk/README deleted +0 -3
-or
-
-"make mx28evk_nand_config"	- store environment variables into

NAND flash -

board/freescale/mx28evk/README deleted +0 -3
-or
-
-"make mx28evk_spi_config"       - store environment variables into

SPI NOR flash -

board/freescale/mx28evk/README deleted +0 -3
-Choose the target accordingly.
-
-Note: The mx28evk board does not come with a NAND flash populated

from the -factory. It comes with an empty slot (U23), which allows the insertion of a -48-pin TSOP flash device.

board/freescale/mx28evk/README deleted +0 -2
-
-mx28evk does not come with SPI NOR flash populated from the factory

either. -It is possible to solder a SOIC memory on U49 or use a DIP8 on J89. -To get SPI communication to work R320, R321,R322 and C178 need to be populated. -Look in the schematics for the proper component values. -
-Follow the instructions from doc/imx/common/mxs.txt to generate a bootable -SD card or to generate a binary to be flashed into SPI NOR.

(quoted diff) +0 -0

b/board/freescale/mx28evk/iomux.c deleted file mode 100644 index cc0c85885446..000000000000

board/freescale/mx28evk/iomux.c deleted +0 -16
@@ -1,205 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Freescale MX28EVK IOMUX setup
- *
- * Copyright (C) 2011 Marek Vasut <[email protected]>
- * on behalf of DENX Software Engineering GmbH
- */
-
-#include <common.h>
-#include <config.h>
-#include <asm/io.h>
-#include <asm/arch/iomux-mx28.h>
-#include <asm/arch/imx-regs.h>
-#include <asm/arch/sys_proto.h>
-
-#define	MUX_CONFIG_SSP0	(MXS_PAD_3V3 | MXS_PAD_8MA |

MXS_PAD_PULLUP) -#define MUX_CONFIG_GPMI (MXS_PAD_3V3 |
MXS_PAD_4MA | MXS_PAD_NOPULL) -#define MUX_CONFIG_ENET
(MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP) -#define
MUX_CONFIG_EMI (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_NOPULL)
-#define MUX_CONFIG_SSP2 (MXS_PAD_3V3 | MXS_PAD_4MA |
MXS_PAD_PULLUP) -#define MUX_CONFIG_LCD (MXS_PAD_3V3 |
MXS_PAD_4MA | MXS_PAD_NOPULL) - -const iomux_cfg_t iomux_setup[] = {

board/freescale/mx28evk/iomux.c deleted +0 -91
-	/* DUART */
-	MX28_PAD_PWM0__DUART_RX,
-	MX28_PAD_PWM1__DUART_TX,
-
-	/* MMC0 */
-	MX28_PAD_SSP0_DATA0__SSP0_D0 | MUX_CONFIG_SSP0,
-	MX28_PAD_SSP0_DATA1__SSP0_D1 | MUX_CONFIG_SSP0,
-	MX28_PAD_SSP0_DATA2__SSP0_D2 | MUX_CONFIG_SSP0,
-	MX28_PAD_SSP0_DATA3__SSP0_D3 | MUX_CONFIG_SSP0,
-	MX28_PAD_SSP0_DATA4__SSP0_D4 | MUX_CONFIG_SSP0,
-	MX28_PAD_SSP0_DATA5__SSP0_D5 | MUX_CONFIG_SSP0,
-	MX28_PAD_SSP0_DATA6__SSP0_D6 | MUX_CONFIG_SSP0,
-	MX28_PAD_SSP0_DATA7__SSP0_D7 | MUX_CONFIG_SSP0,
-	MX28_PAD_SSP0_CMD__SSP0_CMD | MUX_CONFIG_SSP0,
-	MX28_PAD_SSP0_DETECT__SSP0_CARD_DETECT |
-		(MXS_PAD_8MA | MXS_PAD_3V3 | MXS_PAD_NOPULL),
-	MX28_PAD_SSP0_SCK__SSP0_SCK |
-		(MXS_PAD_12MA | MXS_PAD_3V3 | MXS_PAD_NOPULL),
-	/* write protect */
-	MX28_PAD_SSP1_SCK__GPIO_2_12,
-	/* MMC0 slot power enable */
-	MX28_PAD_PWM3__GPIO_3_28 |
-		(MXS_PAD_12MA | MXS_PAD_3V3 | MXS_PAD_PULLUP),
-
-#ifdef CONFIG_NAND_MXS
-	/* GPMI NAND */
-	MX28_PAD_GPMI_D00__GPMI_D0 | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_D01__GPMI_D1 | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_D02__GPMI_D2 | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_D03__GPMI_D3 | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_D04__GPMI_D4 | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_D05__GPMI_D5 | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_D06__GPMI_D6 | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_D07__GPMI_D7 | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_CE0N__GPMI_CE0N | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_RDY0__GPMI_READY0 | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_RDN__GPMI_RDN |
-		(MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP),
-	MX28_PAD_GPMI_WRN__GPMI_WRN | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_ALE__GPMI_ALE | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_CLE__GPMI_CLE | MUX_CONFIG_GPMI,
-	MX28_PAD_GPMI_RESETN__GPMI_RESETN | MUX_CONFIG_GPMI,
-#endif
-
-	/* FEC0 */
-	MX28_PAD_ENET0_MDC__ENET0_MDC | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_MDIO__ENET0_MDIO | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_RX_EN__ENET0_RX_EN | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_TX_EN__ENET0_TX_EN | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_RXD0__ENET0_RXD0 | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_RXD1__ENET0_RXD1 | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_TXD0__ENET0_TXD0 | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_TXD1__ENET0_TXD1 | MUX_CONFIG_ENET,
-	MX28_PAD_ENET_CLK__CLKCTRL_ENET | MUX_CONFIG_ENET,
-	/* FEC0 Enable */
-	MX28_PAD_SSP1_DATA3__GPIO_2_15 |
-		(MXS_PAD_12MA | MXS_PAD_3V3),
-	/* FEC0 Reset */
-	MX28_PAD_ENET0_RX_CLK__GPIO_4_13 |
-		(MXS_PAD_12MA | MXS_PAD_3V3 | MXS_PAD_PULLUP),
-
-	/* FEC1 */
-	MX28_PAD_ENET0_COL__ENET1_TX_EN | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_CRS__ENET1_RX_EN | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_RXD2__ENET1_RXD0 | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_RXD3__ENET1_RXD1 | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_TXD2__ENET1_TXD0 | MUX_CONFIG_ENET,
-	MX28_PAD_ENET0_TXD3__ENET1_TXD1 | MUX_CONFIG_ENET,
-
-	/* EMI */
-	MX28_PAD_EMI_D00__EMI_DATA0 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D01__EMI_DATA1 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D02__EMI_DATA2 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D03__EMI_DATA3 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D04__EMI_DATA4 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D05__EMI_DATA5 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D06__EMI_DATA6 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D07__EMI_DATA7 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D08__EMI_DATA8 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D09__EMI_DATA9 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D10__EMI_DATA10 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D11__EMI_DATA11 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D12__EMI_DATA12 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D13__EMI_DATA13 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D14__EMI_DATA14 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_D15__EMI_DATA15 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_ODT0__EMI_ODT0 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_DQM0__EMI_DQM0 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_ODT1__EMI_ODT1 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_DQM1__EMI_DQM1 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_DDR_OPEN_FB__EMI_DDR_OPEN_FEEDBACK |

MUX_CONFIG_EMI,

board/freescale/mx28evk/iomux.c deleted +0 -70
-	MX28_PAD_EMI_CLK__EMI_CLK | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_DQS0__EMI_DQS0 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_DQS1__EMI_DQS1 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_DDR_OPEN__EMI_DDR_OPEN | MUX_CONFIG_EMI,
-
-	MX28_PAD_EMI_A00__EMI_ADDR0 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A01__EMI_ADDR1 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A02__EMI_ADDR2 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A03__EMI_ADDR3 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A04__EMI_ADDR4 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A05__EMI_ADDR5 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A06__EMI_ADDR6 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A07__EMI_ADDR7 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A08__EMI_ADDR8 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A09__EMI_ADDR9 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A10__EMI_ADDR10 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A11__EMI_ADDR11 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A12__EMI_ADDR12 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A13__EMI_ADDR13 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_A14__EMI_ADDR14 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_BA0__EMI_BA0 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_BA1__EMI_BA1 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_BA2__EMI_BA2 | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_CASN__EMI_CASN | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_RASN__EMI_RASN | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_WEN__EMI_WEN | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_CE0N__EMI_CE0N | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_CE1N__EMI_CE1N | MUX_CONFIG_EMI,
-	MX28_PAD_EMI_CKE__EMI_CKE | MUX_CONFIG_EMI,
-
-	/* SPI2 (for SPI flash) */
-	MX28_PAD_SSP2_SCK__SSP2_SCK | MUX_CONFIG_SSP2,
-	MX28_PAD_SSP2_MOSI__SSP2_CMD | MUX_CONFIG_SSP2,
-	MX28_PAD_SSP2_MISO__SSP2_D0 | MUX_CONFIG_SSP2,
-	MX28_PAD_SSP2_SS0__SSP2_D3 |
-		(MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP),
-	/* I2C */
-	MX28_PAD_I2C0_SCL__I2C0_SCL,
-	MX28_PAD_I2C0_SDA__I2C0_SDA,
-
-	/* LCD */
-	MX28_PAD_LCD_D00__LCD_D0 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D01__LCD_D1 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D02__LCD_D2 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D03__LCD_D3 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D04__LCD_D4 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D05__LCD_D5 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D06__LCD_D6 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D07__LCD_D7 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D08__LCD_D8 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D09__LCD_D9 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D10__LCD_D10 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D11__LCD_D11 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D12__LCD_D12 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D13__LCD_D13 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D14__LCD_D14 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D15__LCD_D15 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D16__LCD_D16 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D17__LCD_D17 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D18__LCD_D18 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D19__LCD_D19 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D20__LCD_D20 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D21__LCD_D21 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D22__LCD_D22 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_D23__LCD_D23 | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_RD_E__LCD_VSYNC | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_WR_RWN__LCD_HSYNC | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_RS__LCD_DOTCLK | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_CS__LCD_ENABLE | MUX_CONFIG_LCD,
-	MX28_PAD_LCD_RESET__GPIO_3_30 | MUX_CONFIG_LCD, /* LCD power

*/

board/freescale/mx28evk/iomux.c deleted +0 -10
-	MX28_PAD_PWM2__GPIO_3_18 | MUX_CONFIG_LCD, /* LCD contrast */
-};
-
-#define HW_DRAM_CTL29	(0x74 >> 2)
-#define CS_MAP		0xf
-#define COLUMN_SIZE	0x2
-#define ADDR_PINS	0x1
-#define APREBIT		0xa
-
-#define HW_DRAM_CTL29_CONFIG	(CS_MAP << 24 | COLUMN_SIZE <<

16 | \

board/freescale/mx28evk/iomux.c deleted +0 -10
-					ADDR_PINS << 8 | APREBIT)
-
-void mxs_adjust_memory_params(uint32_t *dram_vals)
-{
-	dram_vals[HW_DRAM_CTL29] = HW_DRAM_CTL29_CONFIG;
-}
-
-void board_init_ll(const uint32_t arg, const uint32_t *resptr)
-{
-	mxs_common_spl_init(arg, resptr, iomux_setup,

ARRAY_SIZE(iomux_setup)); -}

(quoted diff) +0 -0

b/board/freescale/mx28evk/mx28evk.c deleted file mode 100644 index a6b66d99ccb1..000000000000

board/freescale/mx28evk/mx28evk.c deleted +0 -79
@@ -1,150 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Freescale MX28EVK board
- *
- * (C) Copyright 2011 Freescale Semiconductor, Inc.
- *
- * Author: Fabio Estevam <[email protected]>
- *
- * Based on m28evk.c:
- * Copyright (C) 2011 Marek Vasut <[email protected]>
- * on behalf of DENX Software Engineering GmbH
- */
-
-#include <common.h>
-#include <init.h>
-#include <net.h>
-#include <asm/gpio.h>
-#include <asm/io.h>
-#include <asm/arch/imx-regs.h>
-#include <asm/arch/iomux-mx28.h>
-#include <asm/arch/clock.h>
-#include <asm/arch/sys_proto.h>
-#include <linux/delay.h>
-#include <linux/mii.h>
-#include <miiphy.h>
-#include <netdev.h>
-#include <errno.h>
-
-DECLARE_GLOBAL_DATA_PTR;
-
-/*
- * Functions
- */
-int board_early_init_f(void)
-{
-	/* IO0 clock at 480MHz */
-	mxs_set_ioclk(MXC_IOCLK0, 480000);
-	/* IO1 clock at 480MHz */
-	mxs_set_ioclk(MXC_IOCLK1, 480000);
-
-	/* SSP0 clock at 96MHz */
-	mxs_set_sspclk(MXC_SSPCLK0, 96000, 0);
-	/* SSP2 clock at 160MHz */
-	mxs_set_sspclk(MXC_SSPCLK2, 160000, 0);
-
-#ifdef	CONFIG_CMD_USB
-	mxs_iomux_setup_pad(MX28_PAD_SSP2_SS1__USB1_OVERCURRENT);
-	mxs_iomux_setup_pad(MX28_PAD_AUART2_RX__GPIO_3_8 |
-			MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL);
-	gpio_direction_output(MX28_PAD_AUART2_RX__GPIO_3_8, 1);
-#endif
-
-	/* Power on LCD */
-	gpio_direction_output(MX28_PAD_LCD_RESET__GPIO_3_30, 1);
-
-	/* Set contrast to maximum */
-	gpio_direction_output(MX28_PAD_PWM2__GPIO_3_18, 1);
-
-	return 0;
-}
-
-int dram_init(void)
-{
-	return mxs_dram_init();
-}
-
-int board_init(void)
-{
-	/* Adress of boot parameters */
-	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
-
-	return 0;
-}
-
-#ifdef	CONFIG_CMD_MMC
-static int mx28evk_mmc_wp(int id)
-{
-	if (id != 0) {
-		printf("MXS MMC: Invalid card selected (card id =

%d)\n", id);

board/freescale/mx28evk/mx28evk.c deleted +0 -33
-		return 1;
-	}
-
-	return gpio_get_value(MX28_PAD_SSP1_SCK__GPIO_2_12);
-}
-
-int board_mmc_init(struct bd_info *bis)
-{
-	/* Configure WP as input */
-	gpio_direction_input(MX28_PAD_SSP1_SCK__GPIO_2_12);
-
-	/* Configure MMC0 Power Enable */
-	gpio_direction_output(MX28_PAD_PWM3__GPIO_3_28, 0);
-
-	return mxsmmc_initialize(bis, 0, mx28evk_mmc_wp, NULL);
-}
-#endif
-
-#ifdef	CONFIG_CMD_NET
-
-int board_eth_init(struct bd_info *bis)
-{
-	struct mxs_clkctrl_regs *clkctrl_regs =
-		(struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE;
-	struct eth_device *dev;
-	int ret;
-
-	ret = cpu_eth_init(bis);
-	if (ret)
-		return ret;
-
-	/* MX28EVK uses ENET_CLK PAD to drive FEC clock */
-	writel(CLKCTRL_ENET_TIME_SEL_RMII_CLK |

CLKCTRL_ENET_CLK_OUT_EN,

board/freescale/mx28evk/mx28evk.c deleted +0 -38
-	       &clkctrl_regs->hw_clkctrl_enet);
-
-	/* Power-on FECs */
-	gpio_direction_output(MX28_PAD_SSP1_DATA3__GPIO_2_15, 0);
-
-	/* Reset FEC PHYs */
-	gpio_direction_output(MX28_PAD_ENET0_RX_CLK__GPIO_4_13, 0);
-	udelay(200);
-	gpio_set_value(MX28_PAD_ENET0_RX_CLK__GPIO_4_13, 1);
-
-	ret = fecmxc_initialize_multi(bis, 0, 0, MXS_ENET0_BASE);
-	if (ret) {
-		puts("FEC MXS: Unable to init FEC0\n");
-		return ret;
-	}
-
-	ret = fecmxc_initialize_multi(bis, 1, 3, MXS_ENET1_BASE);
-	if (ret) {
-		puts("FEC MXS: Unable to init FEC1\n");
-		return ret;
-	}
-
-	dev = eth_get_dev_by_name("FEC0");
-	if (!dev) {
-		puts("FEC MXS: Unable to get FEC0 device entry\n");
-		return -EINVAL;
-	}
-
-	dev = eth_get_dev_by_name("FEC1");
-	if (!dev) {
-		puts("FEC MXS: Unable to get FEC1 device entry\n");
-		return -EINVAL;
-	}
-
-	return ret;
-}
-
-#endif
(quoted diff) +0 -0

b/configs/mx28evk_auart_console_defconfig deleted file mode 100644 index ec4fd6585ee5..000000000000

configs/mx28evk_auart_console_defconfig deleted +0 -63
@@ -1,63 +0,0 @@
-CONFIG_ARM=y
-CONFIG_ARCH_MX28=y
-CONFIG_SYS_TEXT_BASE=0x40002000
-CONFIG_SPL_GPIO_SUPPORT=y
-CONFIG_SPL_LIBCOMMON_SUPPORT=y
-CONFIG_SPL_LIBGENERIC_SUPPORT=y
-CONFIG_NR_DRAM_BANKS=1
-CONFIG_ENV_SIZE=0x4000
-CONFIG_ENV_OFFSET=0x40000
-CONFIG_SPL_TEXT_BASE=0x00001000
-CONFIG_TARGET_MX28EVK=y
-CONFIG_SPL_SERIAL_SUPPORT=y
-CONFIG_SPL=y
-CONFIG_SYS_EXTRA_OPTIONS="MXS_AUART,MXS_AUART_BASE=MXS_UARTAPP3_BASE"
-# CONFIG_CONSOLE_MUX is not set
-CONFIG_SYS_CONSOLE_IS_IN_ENV=y
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_ARCH_MISC_INIT=y
-# CONFIG_SPL_FRAMEWORK is not set
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-# CONFIG_CMD_FLASH is not set
-CONFIG_CMD_GPIO=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_NAND_TRIMFFS=y
-CONFIG_CMD_USB=y
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_BMP=y
-CONFIG_CMD_CACHE=y
-CONFIG_CMD_DATE=y
-CONFIG_CMD_EXT4=y
-CONFIG_CMD_EXT4_WRITE=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_FS_GENERIC=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=gpmi-nand"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=gpmi-nand:3m(bootloader)ro,512k(environment),512k(redundant-environment),4m(kernel),512k(fdt),8m(ramdisk),-(filesystem)"
-CONFIG_CMD_UBI=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_MMC=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_VERSION_VARIABLE=y
-CONFIG_MXS_GPIO=y
-CONFIG_MMC_MXS=y
-CONFIG_MTD=y
-CONFIG_MTD_RAW_NAND=y
-CONFIG_NAND_MXS=y
-CONFIG_MII=y
-CONFIG_CONS_INDEX=0
-CONFIG_SPI=y
-CONFIG_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_USB_HOST_ETHER=y
-CONFIG_USB_ETHER_ASIX=y
-CONFIG_USB_ETHER_SMSC95XX=y
-CONFIG_VIDEO=y
-CONFIG_SPLASH_SCREEN=y
-CONFIG_VIDEO_BMP_GZIP=y
-CONFIG_VIDEO_BMP_RLE8=y
-CONFIG_OF_LIBFDT=y
configs/mx28evk_defconfig deleted +0 -63
deleted file mode 100644
index 4f0ed83bc1f0..000000000000
@@ -1,63 +0,0 @@
-CONFIG_ARM=y
-CONFIG_ARCH_MX28=y
-CONFIG_SYS_TEXT_BASE=0x40002000
-CONFIG_SPL_GPIO_SUPPORT=y
-CONFIG_SPL_LIBCOMMON_SUPPORT=y
-CONFIG_SPL_LIBGENERIC_SUPPORT=y
-CONFIG_NR_DRAM_BANKS=1
-CONFIG_ENV_SIZE=0x4000
-CONFIG_ENV_OFFSET=0x40000
-CONFIG_SPL_TEXT_BASE=0x00001000
-CONFIG_TARGET_MX28EVK=y
-CONFIG_SPL_SERIAL_SUPPORT=y
-CONFIG_SPL=y
-CONFIG_FIT=y
-# CONFIG_CONSOLE_MUX is not set
-CONFIG_SYS_CONSOLE_IS_IN_ENV=y
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_ARCH_MISC_INIT=y
-# CONFIG_SPL_FRAMEWORK is not set
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-# CONFIG_CMD_FLASH is not set
-CONFIG_CMD_GPIO=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_NAND_TRIMFFS=y
-CONFIG_CMD_USB=y
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_BMP=y
-CONFIG_CMD_CACHE=y
-CONFIG_CMD_DATE=y
-CONFIG_CMD_EXT4=y
-CONFIG_CMD_EXT4_WRITE=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_FS_GENERIC=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=gpmi-nand"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=gpmi-nand:3m(bootloader)ro,512k(environment),512k(redundant-environment),4m(kernel),512k(fdt),8m(ramdisk),-(filesystem)"
-CONFIG_CMD_UBI=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_MMC=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_VERSION_VARIABLE=y
-CONFIG_MXS_GPIO=y
-CONFIG_MMC_MXS=y
-CONFIG_MTD=y
-CONFIG_MTD_RAW_NAND=y
-CONFIG_NAND_MXS=y
-CONFIG_MII=y
-CONFIG_CONS_INDEX=0
-CONFIG_SPI=y
-CONFIG_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_USB_HOST_ETHER=y
-CONFIG_USB_ETHER_ASIX=y
-CONFIG_USB_ETHER_SMSC95XX=y
-CONFIG_VIDEO=y
-CONFIG_SPLASH_SCREEN=y
-CONFIG_VIDEO_BMP_GZIP=y
-CONFIG_VIDEO_BMP_RLE8=y
-CONFIG_OF_LIBFDT=y
(quoted diff) +0 -0

b/configs/mx28evk_nand_defconfig deleted file mode 100644 index 7d95b8fc52de..000000000000

configs/mx28evk_nand_defconfig deleted +0 -64
@@ -1,64 +0,0 @@
-CONFIG_ARM=y
-CONFIG_ARCH_MX28=y
-CONFIG_SYS_TEXT_BASE=0x40002000
-CONFIG_SPL_GPIO_SUPPORT=y
-CONFIG_SPL_LIBCOMMON_SUPPORT=y
-CONFIG_SPL_LIBGENERIC_SUPPORT=y
-CONFIG_NR_DRAM_BANKS=1
-CONFIG_ENV_SIZE=0x4000
-CONFIG_ENV_OFFSET=0x300000
-CONFIG_SPL_TEXT_BASE=0x00001000
-CONFIG_TARGET_MX28EVK=y
-CONFIG_SPL_SERIAL_SUPPORT=y
-CONFIG_SPL=y
-CONFIG_ENV_OFFSET_REDUND=0x380000
-# CONFIG_CONSOLE_MUX is not set
-CONFIG_SYS_CONSOLE_IS_IN_ENV=y
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_ARCH_MISC_INIT=y
-# CONFIG_SPL_FRAMEWORK is not set
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-# CONFIG_CMD_FLASH is not set
-CONFIG_CMD_GPIO=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_NAND_TRIMFFS=y
-CONFIG_CMD_USB=y
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_BMP=y
-CONFIG_CMD_CACHE=y
-CONFIG_CMD_DATE=y
-CONFIG_CMD_EXT4=y
-CONFIG_CMD_EXT4_WRITE=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_FS_GENERIC=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=gpmi-nand"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=gpmi-nand:3m(bootloader)ro,512k(environment),512k(redundant-environment),4m(kernel),512k(fdt),8m(ramdisk),-(filesystem)"
-CONFIG_CMD_UBI=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_NAND=y
-CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_VERSION_VARIABLE=y
-CONFIG_MXS_GPIO=y
-CONFIG_MMC_MXS=y
-CONFIG_MTD=y
-CONFIG_MTD_RAW_NAND=y
-CONFIG_NAND_MXS=y
-CONFIG_MII=y
-CONFIG_CONS_INDEX=0
-CONFIG_SPI=y
-CONFIG_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_USB_HOST_ETHER=y
-CONFIG_USB_ETHER_ASIX=y
-CONFIG_USB_ETHER_SMSC95XX=y
-CONFIG_VIDEO=y
-CONFIG_SPLASH_SCREEN=y
-CONFIG_VIDEO_BMP_GZIP=y
-CONFIG_VIDEO_BMP_RLE8=y
-CONFIG_OF_LIBFDT=y
(quoted diff) +0 -0

b/configs/mx28evk_spi_defconfig deleted file mode 100644 index e969d50af7fe..000000000000

configs/mx28evk_spi_defconfig deleted +0 -60
@@ -1,60 +0,0 @@
-CONFIG_ARM=y
-CONFIG_ARCH_MX28=y
-CONFIG_SYS_TEXT_BASE=0x40002000
-CONFIG_SPL_GPIO_SUPPORT=y
-CONFIG_SPL_LIBCOMMON_SUPPORT=y
-CONFIG_SPL_LIBGENERIC_SUPPORT=y
-CONFIG_NR_DRAM_BANKS=1
-CONFIG_ENV_SIZE=0x4000
-CONFIG_SPL_TEXT_BASE=0x00001000
-CONFIG_TARGET_MX28EVK=y
-CONFIG_SPL_SERIAL_SUPPORT=y
-CONFIG_SPL=y
-# CONFIG_CONSOLE_MUX is not set
-CONFIG_SYS_CONSOLE_IS_IN_ENV=y
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_ARCH_MISC_INIT=y
-# CONFIG_SPL_FRAMEWORK is not set
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-# CONFIG_CMD_FLASH is not set
-CONFIG_CMD_GPIO=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_NAND_TRIMFFS=y
-CONFIG_CMD_USB=y
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_BMP=y
-CONFIG_CMD_CACHE=y
-CONFIG_CMD_DATE=y
-CONFIG_CMD_EXT4=y
-CONFIG_CMD_EXT4_WRITE=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_FS_GENERIC=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=gpmi-nand"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=gpmi-nand:3m(bootloader)ro,512k(environment),512k(redundant-environment),4m(kernel),512k(fdt),8m(ramdisk),-(filesystem)"
-CONFIG_CMD_UBI=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_VERSION_VARIABLE=y
-CONFIG_MXS_GPIO=y
-CONFIG_MMC_MXS=y
-CONFIG_MTD=y
-CONFIG_MTD_RAW_NAND=y
-CONFIG_NAND_MXS=y
-CONFIG_MII=y
-CONFIG_CONS_INDEX=0
-CONFIG_SPI=y
-CONFIG_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_USB_HOST_ETHER=y
-CONFIG_USB_ETHER_ASIX=y
-CONFIG_USB_ETHER_SMSC95XX=y
-CONFIG_VIDEO=y
-CONFIG_SPLASH_SCREEN=y
-CONFIG_VIDEO_BMP_GZIP=y
-CONFIG_VIDEO_BMP_RLE8=y
-CONFIG_OF_LIBFDT=y
include/configs/mx28evk.h deleted +0 -17
deleted file mode 100644
index a65df4860810..000000000000
@@ -1,226 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2011 Freescale Semiconductor, Inc.
- * Author: Fabio Estevam <[email protected]>
- *
- * Based on m28evk.h:
- * Copyright (C) 2011 Marek Vasut <[email protected]>
- * on behalf of DENX Software Engineering GmbH
- */
-#ifndef __CONFIGS_MX28EVK_H__
-#define __CONFIGS_MX28EVK_H__
-
-/* System configurations */
-#define CONFIG_MACH_TYPE	MACH_TYPE_MX28EVK
-
-/* Memory configuration */
-#define PHYS_SDRAM_1			0x40000000	/*

Base address */ -#define PHYS_SDRAM_1_SIZE
0x40000000 /* Max 1 GB RAM */ -#define
CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 -

include/configs/mx28evk.h deleted +0 -49
-/* Environment */
-
-/* Environment is in MMC */
-
-/* Environment is in NAND */
-#if defined(CONFIG_CMD_NAND) && defined(CONFIG_ENV_IS_IN_NAND)
-#define CONFIG_ENV_RANGE		(512 * 1024)
-#endif
-
-/* Environment is in SPI flash */
-
-/* UBI and NAND partitioning */
-
-/* FEC Ethernet on SoC */
-#ifdef	CONFIG_CMD_NET
-#define CONFIG_FEC_MXC
-#define CONFIG_FEC_MXC_MDIO_BASE MXS_ENET0_BASE
-#define CONFIG_MX28_FEC_MAC_IN_OCOTP
-#endif
-
-/* RTC */
-#ifdef	CONFIG_CMD_DATE
-#define	CONFIG_RTC_MXS
-#endif
-
-/* USB */
-#ifdef	CONFIG_CMD_USB
-#define CONFIG_EHCI_MXS_PORT1
-#define CONFIG_USB_MAX_CONTROLLER_COUNT	1
-#endif
-
-/* Framebuffer support */
-#ifdef CONFIG_VIDEO
-#define CONFIG_VIDEO_LOGO
-#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE	(512 << 10)
-#endif
-
-/* Boot Linux */
-#define CONFIG_BOOTFILE		"uImage"
-#define CONFIG_LOADADDR		0x42000000
-#define CONFIG_SYS_LOAD_ADDR	CONFIG_LOADADDR
-
-/* Extra Environment */
-#define CONFIG_EXTRA_ENV_SETTINGS \
-	"ubifs_file=filesystem.ubifs\0" \
-	"update_nand_full_filename=u-boot.nand\0" \
-	"update_nand_firmware_filename=u-boot.sb\0"	\
-	"update_nand_firmware_maxsz=0x100000\0"	\
-	"update_nand_stride=0x40\0"	/* MX28 datasheet ch.

12.12 */ \

include/configs/mx28evk.h deleted +0 -1
-	"update_nand_count=0x4\0"	/* MX28 datasheet ch. 12.12

*/ \

include/configs/mx28evk.h deleted +0 -1
-	"update_nand_get_fcb_size="	/* Get size of FCB blocks

*/ \

include/configs/mx28evk.h deleted +0 -3
-		"nand device 0 ; " \
-		"nand info ; " \
-		"setexpr fcb_sz ${update_nand_stride} *

${update_nand_count};" \

include/configs/mx28evk.h deleted +0 -1
-		"setexpr update_nand_fcb ${fcb_sz} *

${nand_writesize}\0" \

include/configs/mx28evk.h deleted +0 -6
-	"update_nand_firmware_full=" /* Update FCB, DBBT and FW */ \
-		"if tftp ${update_nand_full_filename} ; then " \
-		"run update_nand_get_fcb_size ; " \
-		"nand scrub -y 0x0 ${filesize} ; " \
-		"nand write.raw ${loadaddr} 0x0 ${fcb_sz} ; " \
-		"setexpr update_off ${loadaddr} + ${update_nand_fcb}

; " \

include/configs/mx28evk.h deleted +0 -1
-		"setexpr update_sz ${filesize} - ${update_nand_fcb}

; " \

include/configs/mx28evk.h deleted +0 -1
-		"nand write ${update_off} ${update_nand_fcb}

${update_sz} ; " \

include/configs/mx28evk.h deleted +0 -2
-		"fi\0" \
-	"update_nand_firmware="		/* Update only

firmware */ \

include/configs/mx28evk.h deleted +0 -3
-		"if tftp ${update_nand_firmware_filename} ; then " \
-		"run update_nand_get_fcb_size ; " \
-		"setexpr fcb_sz ${update_nand_fcb} * 2 ; " /* FCB +

DBBT */ \

include/configs/mx28evk.h deleted +0 -1
-		"setexpr fw_sz ${update_nand_firmware_maxsz} * 2 ; "

\

include/configs/mx28evk.h deleted +0 -1
-		"setexpr fw_off ${fcb_sz} +

${update_nand_firmware_maxsz};" \

include/configs/mx28evk.h deleted +0 -25
-		"nand erase ${fcb_sz} ${fw_sz} ; " \
-		"nand write ${loadaddr} ${fcb_sz} ${filesize} ; " \
-		"nand write ${loadaddr} ${fw_off} ${filesize} ; " \
-		"fi\0" \
-	"update_nand_kernel="		/* Update kernel */ \
-		"mtdparts default; " \
-		"nand erase.part kernel; " \
-		"if test ${ip_dyn} = yes; then " \
-			"setenv get_cmd dhcp; " \
-		"else " \
-			"setenv get_cmd tftp; " \
-		"fi; " \
-		"${get_cmd} ${image}; " \
-		"nand write ${loadaddr} kernel ${filesize}\0" \
-	"update_nand_fdt="		/* Update fdt */ \
-		"mtdparts default; " \
-		"nand erase.part fdt; " \
-		"if test ${ip_dyn} = yes; then " \
-			"setenv get_cmd dhcp; " \
-		"else " \
-			"setenv get_cmd tftp; " \
-		"fi; " \
-		"${get_cmd} ${fdt_file}; " \
-		"nand write ${loadaddr} fdt ${filesize}\0" \
-	"update_nand_filesystem="		/* Update

filesystem */ \

include/configs/mx28evk.h deleted +0 -12
-		"mtdparts default; " \
-		"nand erase.part filesystem; " \
-		"if test ${ip_dyn} = yes; then " \
-			"setenv get_cmd dhcp; " \
-		"else " \
-			"setenv get_cmd tftp; " \
-		"fi; " \
-		"${get_cmd} ${ubifs_file}; " \
-		"ubi part filesystem; " \
-		"ubi create filesystem; " \
-		"ubi write ${loadaddr} filesystem ${filesize}\0" \
-	"nandargs=setenv bootargs

console=${console_mainline},${baudrate} " \

include/configs/mx28evk.h deleted +0 -1
-		"rootfstype=ubifs ubi.mtd=6 root=ubi0_0

${mtdparts}\0" \

include/configs/mx28evk.h deleted +0 -12
-	"nandboot="		/* Boot from NAND */ \
-		"mtdparts default; " \
-		"run nandargs; " \
-		"nand read ${loadaddr} kernel 0x00400000; " \
-		"if test ${boot_fdt} = yes; then " \
-			"nand read ${fdt_addr} fdt 0x00080000; " \
-			"bootz ${loadaddr} - ${fdt_addr}; " \
-		"else " \
-			"if test ${boot_fdt} = no; then " \
-				"bootz; " \
-			"else " \
-				"echo \"ERROR: Set boot_fdt to yes

or no.\"; " \

include/configs/mx28evk.h deleted +0 -4
-			"fi; " \
-		"fi\0" \
-	"update_sd_firmware_filename=u-boot.sd\0" \
-	"update_sd_firmware="		/* Update the SD

firmware partition */ \

include/configs/mx28evk.h deleted +0 -3
-		"if mmc rescan ; then "	\
-		"if tftp ${update_sd_firmware_filename} ; then " \
-		"setexpr fw_sz ${filesize} / 0x200 ; "	/* SD

block size */ \

include/configs/mx28evk.h deleted +0 -16
-		"setexpr fw_sz ${fw_sz} + 1 ; "	\
-		"mmc write ${loadaddr} 0x800 ${fw_sz} ; " \
-		"fi ; "	\
-		"fi\0" \
-	"script=boot.scr\0"	\
-	"image=zImage\0" \
-	"console_fsl=ttyAM0\0" \
-	"console_mainline=ttyAMA0\0" \
-	"fdt_file=imx28-evk.dtb\0" \
-	"fdt_addr=0x41000000\0" \
-	"boot_fdt=try\0" \
-	"ip_dyn=yes\0" \
-	"mmcdev=0\0" \
-	"mmcpart=2\0" \
-	"mmcroot=/dev/mmcblk0p3 rw rootwait\0" \
-	"mmcargs=setenv bootargs

console=${console_mainline},${baudrate} " \

include/configs/mx28evk.h deleted +0 -3
-		"root=${mmcroot}\0" \
-	"loadbootscript="  \
-		"fatload mmc ${mmcdev}:${mmcpart} ${loadaddr}

${script};\0" \

include/configs/mx28evk.h deleted +0 -3
-	"bootscript=echo Running bootscript from mmc ...; "	\
-		"source\0" \
-	"loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr}

${image}\0" \

include/configs/mx28evk.h deleted +0 -1
-	"loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr}

${fdt_file}\0" \

include/configs/mx28evk.h deleted +0 -3
-	"mmcboot=echo Booting from mmc ...; " \
-		"run mmcargs; " \
-		"if test ${boot_fdt} = yes || test ${boot_fdt} =

try; then " \

include/configs/mx28evk.h deleted +0 -7
-			"if run loadfdt; then " \
-				"bootz ${loadaddr} - ${fdt_addr}; " \
-			"else " \
-				"if test ${boot_fdt} = try; then " \
-					"bootz; " \
-				"else " \
-					"echo WARN: Cannot load the

DT; " \

include/configs/mx28evk.h deleted +0 -6
-				"fi; " \
-			"fi; " \
-		"else " \
-			"bootz; " \
-		"fi;\0" \
-	"netargs=setenv bootargs

console=${console_mainline},${baudrate} " \

include/configs/mx28evk.h deleted +0 -12
-		"root=/dev/nfs " \
-		"ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
-	"netboot=echo Booting from net ...; " \
-		"run netargs; "	\
-		"if test ${ip_dyn} = yes; then " \
-			"setenv get_cmd dhcp; " \
-		"else " \
-			"setenv get_cmd tftp; " \
-		"fi; " \
-		"${get_cmd} ${image}; " \
-		"if test ${boot_fdt} = yes; then " \
-			"if ${get_cmd} ${fdt_addr} ${fdt_file}; then

" \

include/configs/mx28evk.h deleted +0 -6
-				"bootz ${loadaddr} - ${fdt_addr}; " \
-			"else " \
-				"if test ${boot_fdt} = try; then " \
-					"bootz; " \
-				"else " \
-					"echo WARN: Cannot load the

DT; " \

include/configs/mx28evk.h deleted +0 -12
-				"fi;" \
-			"fi; " \
-		"else " \
-			"bootz; " \
-		"fi;\0"
-
-#define CONFIG_BOOTCOMMAND \
-	"mmc dev ${mmcdev}; if mmc rescan; then " \
-		"if run loadbootscript; then " \
-			"run bootscript; " \
-		"else " \
-			"if run loadimage; then " \

include/configs/mx28evk.h line 226

Quoted 10 lines
include/configs/mx28evk.h deleted +0 -10
-				"run mmcboot; " \
-			"else run netboot; " \
-			"fi; " \
-		"fi; " \
-	"else run netboot; fi"
-
-/* The rest of the configuration is shared */
-#include <configs/mxs.h>
-
-#endif /* __CONFIGS_MX28EVK_H__ */

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210209/6e267cdb/attachment.sig>

author
#9 lore raw

PATCH 6/25 arm: Remove mx28evk board

Quoted 6 lines · Lukasz Majewski

Hi Tom,

Quoted 3 lines

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Quoted 8 lines

This is very strange as imx28 SoC is still in active production (and will be for some years from now on).

I think that this board shall stay in U-Boot, as it is the official EVK board from NXP.

I've added Peng to this mail, so maybe NXP will find some time to convert it.

It can stay so long as someone converts it. It's also missing the CONFIG_DM conversion (v2020.01), CONFIG_DM_USB (v2019.07), CONFIG_DM_VIDEO (v2019.07) and CONFIG_DM_ETH (v2020.07) conversions.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210209/42bebdd8/attachment.sig>
reviewer
#10 lore raw

PATCH 6/25 arm: Remove mx28evk board

Hi Tom,

Quoted 3 lines · Tom Rini

It can stay so long as someone converts it. It's also missing the CONFIG_DM conversion (v2020.01), CONFIG_DM_USB (v2019.07), CONFIG_DM_VIDEO (v2019.07) and CONFIG_DM_ETH (v2020.07) conversions.

I will work on converting this board to DM. I will try to finish the conversion in the following weeks.

These are the boards that I want to convert to DM: imx53-qsb, imx51-evk, imx28-evk.

author
#11 lore raw

PATCH 7/25 arm: Remove apx4devkit board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Lauri Hintsala <[email protected]>
---
 arch/arm/mach-imx/mxs/Kconfig          |   4 -
 board/bluegiga/apx4devkit/Kconfig      |  15 ---
 board/bluegiga/apx4devkit/MAINTAINERS  |   6 -
 board/bluegiga/apx4devkit/Makefile     |  10 --
 board/bluegiga/apx4devkit/apx4devkit.c | 142 -----------------------
 board/bluegiga/apx4devkit/spl_boot.c   | 152 -------------------------
 configs/apx4devkit_defconfig           |  50 --------
 include/configs/apx4devkit.h           |  77 -------------
 8 files changed, 456 deletions(-)
 delete mode 100644 board/bluegiga/apx4devkit/Kconfig
 delete mode 100644 board/bluegiga/apx4devkit/MAINTAINERS
 delete mode 100644 board/bluegiga/apx4devkit/Makefile
 delete mode 100644 board/bluegiga/apx4devkit/apx4devkit.c
 delete mode 100644 board/bluegiga/apx4devkit/spl_boot.c
 delete mode 100644 configs/apx4devkit_defconfig
 delete mode 100644 include/configs/apx4devkit.h
arch/arm/mach-imx/mxs/Kconfig +0 -4
index 6a6e6ebecf0b..40d74c93b305 100644
@@ -8,9 +8,6 @@ choice
 	prompt "MX28 board select"
 	optional
 
-config TARGET_APX4DEVKIT
-	bool "Support apx4devkit"
-
 config TARGET_BG0900
 	bool "Support bg0900"
 
@@ -28,7 +25,6 @@ endchoice
 config SYS_SOC
 	default "mxs"
 
-source "board/bluegiga/apx4devkit/Kconfig"
 source "board/liebherr/xea/Kconfig"
 source "board/ppcag/bg0900/Kconfig"
 source "board/schulercontrol/sc_sps_1/Kconfig"
board/bluegiga/apx4devkit/Kconfig deleted +0 -15
deleted file mode 100644
index f327fa15cf07..000000000000
@@ -1,15 +0,0 @@
-if TARGET_APX4DEVKIT
-
-config SYS_BOARD
-	default "apx4devkit"
-
-config SYS_VENDOR
-	default "bluegiga"
-
-config SYS_SOC
-	default "mxs"
-
-config SYS_CONFIG_NAME
-	default "apx4devkit"
-
-endif
board/bluegiga/apx4devkit/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 286e9e9f063e..000000000000
@@ -1,6 +0,0 @@
-APX4DEVKIT BOARD
-M:	Lauri Hintsala <[email protected]>
-S:	Maintained
-F:	board/bluegiga/apx4devkit/
-F:	include/configs/apx4devkit.h
-F:	configs/apx4devkit_defconfig
board/bluegiga/apx4devkit/Makefile deleted +0 -10
deleted file mode 100644
index 039d62dda2ad..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-
-ifndef	CONFIG_SPL_BUILD
-obj-y	:= apx4devkit.o
-else
-obj-y	:= spl_boot.o
-endif
board/bluegiga/apx4devkit/apx4devkit.c deleted +0 -142

142 lines not on this page · raw message

board/bluegiga/apx4devkit/spl_boot.c deleted +0 -152

152 lines not on this page · raw message

configs/apx4devkit_defconfig deleted +0 -50

50 lines not on this page · raw message

include/configs/apx4devkit.h deleted +0 -77

77 lines not on this page · raw message

Signature · 1 line
2.17.1
#12 lore raw

PATCH 7/25 arm: Remove apx4devkit board

That's fine. apx4devkit is not under active development.

Best regards,
Lauri Hintsala

Quoted 548 lines · Tom Rini

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Lauri Hintsala <[email protected]>

---

arch/arm/mach-imx/mxs/Kconfig          |   4 -
board/bluegiga/apx4devkit/Kconfig      |  15 ---
board/bluegiga/apx4devkit/MAINTAINERS  |   6 -
board/bluegiga/apx4devkit/Makefile     |  10 --
board/bluegiga/apx4devkit/apx4devkit.c | 142 -----------------------
board/bluegiga/apx4devkit/spl_boot.c   | 152 -------------------------
configs/apx4devkit_defconfig           |  50 --------
include/configs/apx4devkit.h           |  77 -------------
8 files changed, 456 deletions(-)

delete mode 100644 board/bluegiga/apx4devkit/Kconfig delete mode 100644 board/bluegiga/apx4devkit/MAINTAINERS delete mode 100644 board/bluegiga/apx4devkit/Makefile delete mode 100644 board/bluegiga/apx4devkit/apx4devkit.c delete mode 100644 board/bluegiga/apx4devkit/spl_boot.c delete mode 100644 configs/apx4devkit_defconfig delete mode 100644 include/configs/apx4devkit.h

arch/arm/mach-imx/mxs/Kconfig +0 -3
index 6a6e6ebecf0b..40d74c93b305 100644
@@ -8,9 +8,6 @@ choice
       prompt "MX28 board select"
       optional
 
-config TARGET_APX4DEVKIT
-       bool "Support apx4devkit"
-

config TARGET_BG0900

       bool "Support bg0900"
arch/arm/mach-imx/mxs/Kconfig +0 -0
@@ -28,7 +25,6 @@ endchoice

config SYS_SOC
default "mxs"

-source "board/bluegiga/apx4devkit/Kconfig"
source "board/liebherr/xea/Kconfig"
source "board/ppcag/bg0900/Kconfig"
source "board/schulercontrol/sc_sps_1/Kconfig"

board/bluegiga/apx4devkit/Kconfig deleted +0 -15
deleted file mode 100644
index f327fa15cf07..000000000000
@@ -1,15 +0,0 @@
-if TARGET_APX4DEVKIT
-
-config SYS_BOARD
-       default "apx4devkit"
-
-config SYS_VENDOR
-       default "bluegiga"
-
-config SYS_SOC
-       default "mxs"
-
-config SYS_CONFIG_NAME
-       default "apx4devkit"
-
-endif
board/bluegiga/apx4devkit/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 286e9e9f063e..000000000000
@@ -1,6 +0,0 @@
-APX4DEVKIT BOARD
-M:     Lauri Hintsala <[email protected]>
-S:     Maintained
-F:     board/bluegiga/apx4devkit/
-F:     include/configs/apx4devkit.h
-F:     configs/apx4devkit_defconfig
board/bluegiga/apx4devkit/Makefile deleted +0 -10
deleted file mode 100644
index 039d62dda2ad..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-
-ifndef CONFIG_SPL_BUILD
-obj-y  := apx4devkit.o
-else
-obj-y  := spl_boot.o
-endif
board/bluegiga/apx4devkit/apx4devkit.c deleted +0 -142
deleted file mode 100644
index 739f71f5c4d1..000000000000
@@ -1,142 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Bluegiga APX4 Development Kit
- *
- * Copyright (C) 2012 Bluegiga Technologies Oy
- *
- * Authors:
- * Veli-Pekka Peltola <[email protected]>
- * Lauri Hintsala <[email protected]>
- *
- * Based on m28evk.c:
- * Copyright (C) 2011 Marek Vasut <[email protected]>
- * on behalf of DENX Software Engineering GmbH
- */
-
-#include <common.h>
-#include <init.h>
-#include <net.h>
-#include <asm/gpio.h>
-#include <asm/io.h>
-#include <asm/setup.h>
-#include <asm/arch/imx-regs.h>
-#include <asm/arch/iomux-mx28.h>
-#include <asm/arch/clock.h>
-#include <asm/arch/sys_proto.h>
-#include <env.h>
-#include <linux/mii.h>
-#include <miiphy.h>
-#include <netdev.h>
-#include <errno.h>
-
-DECLARE_GLOBAL_DATA_PTR;
-
-/* Functions */
-int board_early_init_f(void)
-{
-       /* IO0 clock at 480MHz */
-       mxs_set_ioclk(MXC_IOCLK0, 480000);
-       /* IO1 clock at 480MHz */
-       mxs_set_ioclk(MXC_IOCLK1, 480000);
-
-       /* SSP0 clock at 96MHz */
-       mxs_set_sspclk(MXC_SSPCLK0, 96000, 0);
-
-       return 0;
-}
-
-int dram_init(void)
-{
-       return mxs_dram_init();
-}
-
-int board_init(void)
-{
-       /* Adress of boot parameters */
-       gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
-
-       return 0;
-}
-
-#ifdef CONFIG_CMD_MMC
-int board_mmc_init(struct bd_info *bis)
-{
-       return mxsmmc_initialize(bis, 0, NULL, NULL);
-}
-#endif
-
-
-#ifdef CONFIG_CMD_NET
-
-#define MII_PHY_CTRL2 0x1f
-int fecmxc_mii_postcall(int phy)
-{
-       /* change PHY RMII clock to 50MHz */
-       miiphy_write("FEC", 0, MII_PHY_CTRL2, 0x8180);
-
-       return 0;
-}
-
-int board_eth_init(struct bd_info *bis)
-{
-       int ret;
-       struct eth_device *dev;
-
-       ret = cpu_eth_init(bis);
-       if (ret) {
-               printf("FEC MXS: Unable to init FEC clocks\n");
-               return ret;
-       }
-
-       ret = fecmxc_initialize(bis);
-       if (ret) {
-               printf("FEC MXS: Unable to init FEC\n");
-               return ret;
-       }
-
-       dev = eth_get_dev_by_name("FEC");
-       if (!dev) {
-               printf("FEC MXS: Unable to get FEC device entry\n");
-               return -EINVAL;
-       }
-
-       ret = fecmxc_register_mii_postcall(dev, fecmxc_mii_postcall);
-       if (ret) {
-               printf("FEC MXS: Unable to register FEC MII postcall\n");
-               return ret;
-       }
-
-       return ret;
-}
-#endif
-
-#ifdef CONFIG_SERIAL_TAG
-#define MXS_OCOTP_MAX_TIMEOUT 1000000
-void get_board_serial(struct tag_serialnr *serialnr)
-{
-       struct mxs_ocotp_regs *ocotp_regs =
-               (struct mxs_ocotp_regs *)MXS_OCOTP_BASE;
-
-       serialnr->high = 0;
-       serialnr->low = 0;
-
-       writel(OCOTP_CTRL_RD_BANK_OPEN, &ocotp_regs->hw_ocotp_ctrl_set);
-
-       if (mxs_wait_mask_clr(&ocotp_regs->hw_ocotp_ctrl_reg, OCOTP_CTRL_BUSY,
-               MXS_OCOTP_MAX_TIMEOUT)) {
-               printf("MXS: Can't get serial number from OCOTP\n");
-               return;
-       }
-
-       serialnr->low = readl(&ocotp_regs->hw_ocotp_cust3);
-}
-#endif
-
-#ifdef CONFIG_REVISION_TAG
-u32 get_board_rev(void)
-{
-       if (env_get("revision#") != NULL)
-               return simple_strtoul(env_get("revision#"), NULL, 10);
-       return 0;
-}
-#endif
board/bluegiga/apx4devkit/spl_boot.c deleted +0 -152
deleted file mode 100644
index e5d5c4637b0c..000000000000
@@ -1,152 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Bluegiga APX4 Development Kit
- *
- * Copyright (C) 2012 Bluegiga Technologies Oy
- *
- * Authors:
- * Veli-Pekka Peltola <[email protected]>
- * Lauri Hintsala <[email protected]>
- *
- * Based on spl_boot.c:
- * Copyright (C) 2011 Marek Vasut <[email protected]>
- * on behalf of DENX Software Engineering GmbH
- */
-
-#include <common.h>
-#include <config.h>
-#include <asm/gpio.h>
-#include <asm/io.h>
-#include <asm/arch/iomux-mx28.h>
-#include <asm/arch/imx-regs.h>
-#include <asm/arch/sys_proto.h>
-
-#define        MUX_CONFIG_SSP0 (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP)
-#define        MUX_CONFIG_GPMI (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_NOPULL)
-#define        MUX_CONFIG_ENET (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP)
-#define        MUX_CONFIG_EMI  (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_NOPULL)
-
-const iomux_cfg_t iomux_setup[] = {
-       /* DUART */
-       MX28_PAD_PWM0__DUART_RX,
-       MX28_PAD_PWM1__DUART_TX,
-
-       /* LED */
-       MX28_PAD_PWM3__GPIO_3_28,
-
-       /* MMC0 */
-       MX28_PAD_SSP0_DATA0__SSP0_D0 | MUX_CONFIG_SSP0,
-       MX28_PAD_SSP0_DATA1__SSP0_D1 | MUX_CONFIG_SSP0,
-       MX28_PAD_SSP0_DATA2__SSP0_D2 | MUX_CONFIG_SSP0,
-       MX28_PAD_SSP0_DATA3__SSP0_D3 | MUX_CONFIG_SSP0,
-       MX28_PAD_SSP0_CMD__SSP0_CMD | MUX_CONFIG_SSP0,
-       MX28_PAD_SSP0_DETECT__SSP0_CARD_DETECT |
-               (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_NOPULL),
-       MX28_PAD_SSP0_SCK__SSP0_SCK |
-               (MXS_PAD_12MA | MXS_PAD_3V3 | MXS_PAD_NOPULL),
-
-       /* GPMI NAND */
-       MX28_PAD_GPMI_D00__GPMI_D0 | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_D01__GPMI_D1 | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_D02__GPMI_D2 | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_D03__GPMI_D3 | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_D04__GPMI_D4 | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_D05__GPMI_D5 | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_D06__GPMI_D6 | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_D07__GPMI_D7 | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_CE0N__GPMI_CE0N | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_RDY0__GPMI_READY0 | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_RDN__GPMI_RDN |
-               (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP),
-       MX28_PAD_GPMI_WRN__GPMI_WRN | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_ALE__GPMI_ALE | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_CLE__GPMI_CLE | MUX_CONFIG_GPMI,
-       MX28_PAD_GPMI_RESETN__GPMI_RESETN | MUX_CONFIG_GPMI,
-
-       /* FEC0 */
-       MX28_PAD_ENET0_MDC__ENET0_MDC | MUX_CONFIG_ENET,
-       MX28_PAD_ENET0_MDIO__ENET0_MDIO | MUX_CONFIG_ENET,
-       MX28_PAD_ENET0_RX_EN__ENET0_RX_EN | MUX_CONFIG_ENET,
-       MX28_PAD_ENET0_TX_EN__ENET0_TX_EN | MUX_CONFIG_ENET,
-       MX28_PAD_ENET0_RXD0__ENET0_RXD0 | MUX_CONFIG_ENET,
-       MX28_PAD_ENET0_RXD1__ENET0_RXD1 | MUX_CONFIG_ENET,
-       MX28_PAD_ENET0_TXD0__ENET0_TXD0 | MUX_CONFIG_ENET,
-       MX28_PAD_ENET0_TXD1__ENET0_TXD1 | MUX_CONFIG_ENET,
-       MX28_PAD_ENET_CLK__CLKCTRL_ENET | MUX_CONFIG_ENET,
-
-       /* I2C */
-       MX28_PAD_I2C0_SCL__I2C0_SCL,
-       MX28_PAD_I2C0_SDA__I2C0_SDA,
-
-       /* EMI */
-       MX28_PAD_EMI_D00__EMI_DATA0 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D01__EMI_DATA1 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D02__EMI_DATA2 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D03__EMI_DATA3 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D04__EMI_DATA4 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D05__EMI_DATA5 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D06__EMI_DATA6 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D07__EMI_DATA7 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D08__EMI_DATA8 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D09__EMI_DATA9 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D10__EMI_DATA10 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D11__EMI_DATA11 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D12__EMI_DATA12 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D13__EMI_DATA13 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D14__EMI_DATA14 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_D15__EMI_DATA15 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_ODT0__EMI_ODT0 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_DQM0__EMI_DQM0 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_ODT1__EMI_ODT1 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_DQM1__EMI_DQM1 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_DDR_OPEN_FB__EMI_DDR_OPEN_FEEDBACK | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_CLK__EMI_CLK | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_DQS0__EMI_DQS0 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_DQS1__EMI_DQS1 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_DDR_OPEN__EMI_DDR_OPEN | MUX_CONFIG_EMI,
-
-       MX28_PAD_EMI_A00__EMI_ADDR0 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A01__EMI_ADDR1 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A02__EMI_ADDR2 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A03__EMI_ADDR3 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A04__EMI_ADDR4 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A05__EMI_ADDR5 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A06__EMI_ADDR6 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A07__EMI_ADDR7 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A08__EMI_ADDR8 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A09__EMI_ADDR9 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A10__EMI_ADDR10 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A11__EMI_ADDR11 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A12__EMI_ADDR12 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A13__EMI_ADDR13 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_A14__EMI_ADDR14 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_BA0__EMI_BA0 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_BA1__EMI_BA1 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_BA2__EMI_BA2 | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_CASN__EMI_CASN | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_RASN__EMI_RASN | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_WEN__EMI_WEN | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_CE0N__EMI_CE0N | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_CE1N__EMI_CE1N | MUX_CONFIG_EMI,
-       MX28_PAD_EMI_CKE__EMI_CKE | MUX_CONFIG_EMI,
-};
-
-void board_init_ll(const uint32_t arg, const uint32_t *resptr)
-{
-       mxs_common_spl_init(arg, resptr, iomux_setup, ARRAY_SIZE(iomux_setup));
-
-       /* switch LED on */
-       gpio_direction_output(MX28_PAD_PWM3__GPIO_3_28, 0);
-}
-
-void mxs_adjust_memory_params(uint32_t *dram_vals)
-{
-       /*
-        * All address lines are routed from CPU to memory chip.
-        * ADDR_PINS field is set to zero.
-        */
-       dram_vals[0x74 >> 2] = 0x0f02000a;
-
-       /* Used memory has 4 banks. EIGHT_BANK_MODE bit is disabled. */
-       dram_vals[0x7c >> 2] = 0x00000101;
-}
configs/apx4devkit_defconfig deleted +0 -50
deleted file mode 100644
index 2ada946e5281..000000000000
@@ -1,50 +0,0 @@
-CONFIG_ARM=y
-CONFIG_ARCH_MX28=y
-CONFIG_SYS_TEXT_BASE=0x40002000
-CONFIG_SPL_GPIO_SUPPORT=y
-CONFIG_SPL_LIBCOMMON_SUPPORT=y
-CONFIG_SPL_LIBGENERIC_SUPPORT=y
-CONFIG_NR_DRAM_BANKS=1
-CONFIG_ENV_SIZE=0x20000
-CONFIG_ENV_OFFSET=0x120000
-CONFIG_SPL_TEXT_BASE=0x00001000
-CONFIG_TARGET_APX4DEVKIT=y
-CONFIG_SPL_SERIAL_SUPPORT=y
-CONFIG_SPL=y
-CONFIG_ENV_OFFSET_REDUND=0x180000
-CONFIG_BOOTDELAY=1
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_ARCH_MISC_INIT=y
-CONFIG_BOARD_EARLY_INIT_F=y
-# CONFIG_SPL_FRAMEWORK is not set
-CONFIG_HUSH_PARSER=y
-# CONFIG_CMD_FLASH is not set
-CONFIG_CMD_MMC=y
-CONFIG_CMD_USB=y
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_CACHE=y
-CONFIG_CMD_EXT2=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=gpmi-nand"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=gpmi-nand:128k(bootstrap),1024k(boot),768k(env),-(root)"
-CONFIG_CMD_UBI=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_NAND=y
-CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_VERSION_VARIABLE=y
-CONFIG_MXS_GPIO=y
-CONFIG_MMC_MXS=y
-CONFIG_MTD=y
-CONFIG_MTD_RAW_NAND=y
-CONFIG_NAND_MXS=y
-CONFIG_MII=y
-CONFIG_CONS_INDEX=0
-CONFIG_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_OF_LIBFDT=y
include/configs/apx4devkit.h deleted +0 -78
deleted file mode 100644
index bcd55bb8689e..000000000000
@@ -1,77 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2012 Bluegiga Technologies Oy
- *
- * Authors:
- * Veli-Pekka Peltola <[email protected]>
- * Lauri Hintsala <[email protected]>
- *
- * Based on m28evk.h:
- * Copyright (C) 2011 Marek Vasut <[email protected]>
- * on behalf of DENX Software Engineering GmbH
- */
-#ifndef __CONFIGS_APX4DEVKIT_H__
-#define __CONFIGS_APX4DEVKIT_H__
-
-/* System configurations */
-#define CONFIG_MACH_TYPE       MACH_TYPE_APX4DEVKIT
-
-/* Memory configuration */
-#define PHYS_SDRAM_1                   0x40000000      /* Base address */
-#define PHYS_SDRAM_1_SIZE              0x20000000      /* Max 512 MB RAM */
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
-
-/* Environment is in NAND */
-#if defined(CONFIG_CMD_NAND) && defined(CONFIG_ENV_IS_IN_NAND)
-#define CONFIG_ENV_RANGE               (384 * 1024)
-#endif
-
-/* UBI and NAND partitioning */
-
-/* FEC Ethernet on SoC */
-#ifdef CONFIG_CMD_NET
-#define CONFIG_FEC_MXC
-#define CONFIG_ETHPRIME                        "FEC"
-#define CONFIG_FEC_MXC_PHYADDR         0
-#define IMX_FEC_BASE                   MXS_ENET0_BASE
-#endif
-
-/* USB */
-#ifdef CONFIG_CMD_USB
-#define CONFIG_EHCI_MXS_PORT1
-#define CONFIG_USB_MAX_CONTROLLER_COUNT        1
-#endif
-
-/* Boot Linux */
-#define CONFIG_BOOTFILE                        "uImage"
-#define CONFIG_BOOTCOMMAND             "run bootcmd_nand"
-#define CONFIG_LOADADDR                        0x41000000
-#define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
-#define CONFIG_SERIAL_TAG
-#define CONFIG_REVISION_TAG
-
-/* Extra Environments */
-#define CONFIG_EXTRA_ENV_SETTINGS \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
-       "verify=no\0" \
-       "bootcmd=run bootcmd_nand\0" \
-       "kernelargs=console=tty0 console=ttyAMA0,115200 consoleblank=0\0" \
-       "bootargs_nand=" \
-               "setenv bootargs ${kernelargs} ubi.mtd=3,2048 " \
-               "root=ubi0:rootfs rootfstype=ubifs ${mtdparts} rw\0" \
-       "bootcmd_nand=" \
-               "run bootargs_nand && ubi part root 2048 && " \
-               "ubifsmount ubi:rootfs && ubifsload 41000000 boot/uImage && " \
-               "bootm 41000000\0" \
-       "bootargs_mmc=" \
-               "setenv bootargs ${kernelargs} " \
-               "root=/dev/mmcblk0p2 rootwait ${mtdparts} rw\0" \
-       "bootcmd_mmc=" \
-               "run bootargs_mmc && mmc rescan && " \
-               "ext2load mmc 0:2 41000000 boot/uImage && bootm 41000000\0" \
-""
-
-/* The rest of the configuration is shared */
-#include <configs/mxs.h>
-
-#endif /* __CONFIGS_APX4DEVKIT_H__ */
--

2.17.1

author
#13 lore raw

PATCH 7/25 arm: Remove apx4devkit board

Quoted 1 line · Lauri Hintsala

That's fine. apx4devkit is not under active development.

Thanks. Can you send that as an Acked-by for the logs please?

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210209/e2e8d53f/attachment.sig>
#14 lore raw

PATCH 7/25 arm: Remove apx4devkit board

In reply to Tom Rini
Acked-by Lauri Hintsala <lauri.hintsala at silabs.com<mailto:[email protected]>>

On 9 Feb 2021, at 15.02, Tom Rini <trini at konsulko.com<mailto:[email protected]>> wrote:

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Lauri Hintsala <lauri.hintsala at bluegiga.com<mailto:[email protected]>>
Signed-off-by Tom Rini <trini at konsulko.com<mailto:[email protected]>>

---

arch/arm/mach-imx/mxs/Kconfig          |   4 -
board/bluegiga/apx4devkit/Kconfig      |  15 ---
board/bluegiga/apx4devkit/MAINTAINERS  |   6 -
board/bluegiga/apx4devkit/Makefile     |  10 --
board/bluegiga/apx4devkit/apx4devkit.c | 142 -----------------------
board/bluegiga/apx4devkit/spl_boot.c   | 152 -------------------------
configs/apx4devkit_defconfig           |  50 --------
include/configs/apx4devkit.h           |  77 -------------
8 files changed, 456 deletions(-)

delete mode 100644 board/bluegiga/apx4devkit/Kconfig delete mode 100644 board/bluegiga/apx4devkit/MAINTAINERS delete mode 100644 board/bluegiga/apx4devkit/Makefile delete mode 100644 board/bluegiga/apx4devkit/apx4devkit.c delete mode 100644 board/bluegiga/apx4devkit/spl_boot.c delete mode 100644 configs/apx4devkit_defconfig delete mode 100644 include/configs/apx4devkit.h

arch/arm/mach-imx/mxs/Kconfig +0 -3
index 6a6e6ebecf0b..40d74c93b305 100644
@@ -8,9 +8,6 @@ choice
       prompt "MX28 board select"
       optional
 
-config TARGET_APX4DEVKIT
-       bool "Support apx4devkit"
-

config TARGET_BG0900

       bool "Support bg0900"

@@ -28,7 +25,6 @@ endchoice
config SYS_SOC
default "mxs"

-source "board/bluegiga/apx4devkit/Kconfig"
source "board/liebherr/xea/Kconfig"
source "board/ppcag/bg0900/Kconfig"
source "board/schulercontrol/sc_sps_1/Kconfig"

board/bluegiga/apx4devkit/Kconfig deleted +0 -15
deleted file mode 100644
index f327fa15cf07..000000000000
@@ -1,15 +0,0 @@
-if TARGET_APX4DEVKIT
-
-config SYS_BOARD
-       default "apx4devkit"
-
-config SYS_VENDOR
-       default "bluegiga"
-
-config SYS_SOC
-       default "mxs"
-
-config SYS_CONFIG_NAME
-       default "apx4devkit"
-
-endif
board/bluegiga/apx4devkit/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 286e9e9f063e..000000000000
@@ -1,6 +0,0 @@
-APX4DEVKIT BOARD
-M:     Lauri Hintsala <lauri.hintsala at bluegiga.com<mailto:[email protected]>>
-S:     Maintained
-F:     board/bluegiga/apx4devkit/
-F:     include/configs/apx4devkit.h
-F:     configs/apx4devkit_defconfig
board/bluegiga/apx4devkit/Makefile deleted +0 -10
deleted file mode 100644
index 039d62dda2ad..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de<mailto:[email protected]>.
-
-ifndef CONFIG_SPL_BUILD
-obj-y  := apx4devkit.o
-else
-obj-y  := spl_boot.o
-endif
board/bluegiga/apx4devkit/apx4devkit.c deleted +0 -142

142 lines not on this page · raw message

board/bluegiga/apx4devkit/spl_boot.c deleted +0 -152

152 lines not on this page · raw message

configs/apx4devkit_defconfig deleted +0 -50

50 lines not on this page · raw message

include/configs/apx4devkit.h deleted +0 -77

77 lines not on this page · raw message

--
2.17.1

author
#15 lore raw

PATCH 7/25 arm: Remove apx4devkit board

In reply to Tom Rini
Quoted 8 lines · Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Lauri Hintsala <[email protected]>
Acked-by Lauri Hintsala <lauri.hintsala at silabs.com<mailto:[email protected]>>
Signed-off-by Tom Rini <trini at konsulko.com<mailto:[email protected]>>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210215/31b98ec5/attachment.sig>
author
#16 lore raw

PATCH 8/25 arm: Remove sc_sps_1 board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

---
 arch/arm/mach-imx/mxs/Kconfig             |   4 -
 board/schulercontrol/sc_sps_1/Kconfig     |  15 ---
 board/schulercontrol/sc_sps_1/MAINTAINERS |   6 -
 board/schulercontrol/sc_sps_1/Makefile    |  10 --
 board/schulercontrol/sc_sps_1/sc_sps_1.c  |  98 --------------
 board/schulercontrol/sc_sps_1/spl_boot.c  | 148 ----------------------
 configs/sc_sps_1_defconfig                |  43 -------
 include/configs/sc_sps_1.h                |  57 ---------
 8 files changed, 381 deletions(-)
 delete mode 100644 board/schulercontrol/sc_sps_1/Kconfig
 delete mode 100644 board/schulercontrol/sc_sps_1/MAINTAINERS
 delete mode 100644 board/schulercontrol/sc_sps_1/Makefile
 delete mode 100644 board/schulercontrol/sc_sps_1/sc_sps_1.c
 delete mode 100644 board/schulercontrol/sc_sps_1/spl_boot.c
 delete mode 100644 configs/sc_sps_1_defconfig
 delete mode 100644 include/configs/sc_sps_1.h
arch/arm/mach-imx/mxs/Kconfig +0 -4
index 40d74c93b305..ce81eeb38d46 100644
@@ -11,9 +11,6 @@ choice
 config TARGET_BG0900
 	bool "Support bg0900"
 
-config TARGET_SC_SPS_1
-	bool "Support sc_sps_1"
-
 config TARGET_TS4600
 	bool "Support TS4600"
 
@@ -27,7 +24,6 @@ config SYS_SOC
 
 source "board/liebherr/xea/Kconfig"
 source "board/ppcag/bg0900/Kconfig"
-source "board/schulercontrol/sc_sps_1/Kconfig"
 source "board/technologic/ts4600/Kconfig"
 
 endif
board/schulercontrol/sc_sps_1/Kconfig deleted +0 -15
deleted file mode 100644
index 2461d0cc5046..000000000000
@@ -1,15 +0,0 @@
-if TARGET_SC_SPS_1
-
-config SYS_BOARD
-	default "sc_sps_1"
-
-config SYS_VENDOR
-	default "schulercontrol"
-
-config SYS_SOC
-	default "mxs"
-
-config SYS_CONFIG_NAME
-	default "sc_sps_1"
-
-endif
board/schulercontrol/sc_sps_1/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 74849cdfaf20..000000000000
@@ -1,6 +0,0 @@
-SC_SPS_1 BOARD
-M:	Marek Vasut <[email protected]>
-S:	Maintained
-F:	board/schulercontrol/sc_sps_1/
-F:	include/configs/sc_sps_1.h
-F:	configs/sc_sps_1_defconfig
board/schulercontrol/sc_sps_1/Makefile deleted +0 -10
deleted file mode 100644
index 4fb32de6e8e8..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2012
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-
-ifndef	CONFIG_SPL_BUILD
-obj-y	:= sc_sps_1.o
-else
-obj-y	:= spl_boot.o
-endif
board/schulercontrol/sc_sps_1/sc_sps_1.c deleted +0 -98

98 lines not on this page · raw message

board/schulercontrol/sc_sps_1/spl_boot.c deleted +0 -148

148 lines not on this page · raw message

configs/sc_sps_1_defconfig deleted +0 -43

43 lines not on this page · raw message

include/configs/sc_sps_1.h deleted +0 -57

57 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#17 lore raw

PATCH 9/25 arm: Remove ts4600 board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Sebastien Bourdelin <[email protected]>
---
 arch/arm/mach-imx/mxs/Kconfig        |   4 -
 board/technologic/ts4600/Kconfig     |  15 ---
 board/technologic/ts4600/MAINTAINERS |   6 --
 board/technologic/ts4600/Makefile    |   9 --
 board/technologic/ts4600/iomux.c     | 148 ---------------------------
 board/technologic/ts4600/ts4600.c    |  90 ----------------
 configs/ts4600_defconfig             |  30 ------
 include/configs/ts4600.h             |  58 -----------
 8 files changed, 360 deletions(-)
 delete mode 100644 board/technologic/ts4600/Kconfig
 delete mode 100644 board/technologic/ts4600/MAINTAINERS
 delete mode 100644 board/technologic/ts4600/Makefile
 delete mode 100644 board/technologic/ts4600/iomux.c
 delete mode 100644 board/technologic/ts4600/ts4600.c
 delete mode 100644 configs/ts4600_defconfig
 delete mode 100644 include/configs/ts4600.h
arch/arm/mach-imx/mxs/Kconfig +0 -4
index ce81eeb38d46..34aae07d4222 100644
@@ -11,9 +11,6 @@ choice
 config TARGET_BG0900
 	bool "Support bg0900"
 
-config TARGET_TS4600
-	bool "Support TS4600"
-
 config TARGET_XEA
 	bool "Support XEA"
 
@@ -24,6 +21,5 @@ config SYS_SOC
 
 source "board/liebherr/xea/Kconfig"
 source "board/ppcag/bg0900/Kconfig"
-source "board/technologic/ts4600/Kconfig"
 
 endif
board/technologic/ts4600/Kconfig deleted +0 -15
deleted file mode 100644
index d0dc2e1b7340..000000000000
@@ -1,15 +0,0 @@
-if TARGET_TS4600
-
-config SYS_BOARD
-	default "ts4600"
-
-config SYS_VENDOR
-	default "technologic"
-
-config SYS_SOC
-	default "mxs"
-
-config SYS_CONFIG_NAME
-	default "ts4600"
-
-endif
board/technologic/ts4600/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 6f683b5995ef..000000000000
@@ -1,6 +0,0 @@
-TS4600 BOARD
-M:	Sebastien Bourdelin <[email protected]>
-S:	Maintained
-F:	board/technologic/ts4600/
-F:	include/configs/ts4600.h
-F:	configs/ts4600_defconfig
board/technologic/ts4600/Makefile deleted +0 -9
deleted file mode 100644
index ddf4a8ee1eeb..000000000000
@@ -1,9 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2016 Savoir-faire Linux
-
-ifndef	CONFIG_SPL_BUILD
-obj-y	:= ts4600.o
-else
-obj-y	:= iomux.o
-endif
board/technologic/ts4600/iomux.c deleted +0 -148

148 lines not on this page · raw message

board/technologic/ts4600/ts4600.c deleted +0 -90

90 lines not on this page · raw message

configs/ts4600_defconfig deleted +0 -30
deleted file mode 100644
index 806cbc668426..000000000000
@@ -1,30 +0,0 @@
-CONFIG_ARM=y
-CONFIG_ARCH_MX28=y
-CONFIG_SYS_TEXT_BASE=0x40002000
-CONFIG_SPL_LIBCOMMON_SUPPORT=y
-CONFIG_SPL_LIBGENERIC_SUPPORT=y
-CONFIG_NR_DRAM_BANKS=1
-CONFIG_ENV_SIZE=0x2000
-CONFIG_ENV_OFFSET=0x40000
-CONFIG_SPL_TEXT_BASE=0x00001000
-CONFIG_TARGET_TS4600=y
-CONFIG_SPL=y
-CONFIG_FIT=y
-CONFIG_SYS_CONSOLE_IS_IN_ENV=y
-# CONFIG_DISPLAY_CPUINFO is not set
-CONFIG_ARCH_MISC_INIT=y
-CONFIG_BOARD_EARLY_INIT_F=y
-# CONFIG_SPL_FRAMEWORK is not set
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_EXT4=y
-CONFIG_CMD_EXT4_WRITE=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_FS_GENERIC=y
-CONFIG_ENV_IS_IN_MMC=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_MXS_GPIO=y
-CONFIG_MMC_MXS=y
-CONFIG_CONS_INDEX=0
-CONFIG_OF_LIBFDT=y
include/configs/ts4600.h deleted +0 -58

58 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#18 lore raw

PATCH 10/25 arm: Remove mx35pdk board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Stefano Babic <[email protected]>
---
 arch/arm/Kconfig                        |   6 -
 board/freescale/mx35pdk/Kconfig         |  15 --
 board/freescale/mx35pdk/MAINTAINERS     |   6 -
 board/freescale/mx35pdk/Makefile        |   8 -
 board/freescale/mx35pdk/README          | 114 ---------
 board/freescale/mx35pdk/lowlevel_init.S | 239 -------------------
 board/freescale/mx35pdk/mx35pdk.c       | 293 ------------------------
 board/freescale/mx35pdk/mx35pdk.h       |  41 ----
 configs/mx35pdk_defconfig               |  54 -----
 drivers/serial/Kconfig                  |   2 +-
 include/configs/mx35pdk.h               | 206 -----------------
 11 files changed, 1 insertion(+), 983 deletions(-)
 delete mode 100644 board/freescale/mx35pdk/Kconfig
 delete mode 100644 board/freescale/mx35pdk/MAINTAINERS
 delete mode 100644 board/freescale/mx35pdk/Makefile
 delete mode 100644 board/freescale/mx35pdk/README
 delete mode 100644 board/freescale/mx35pdk/lowlevel_init.S
 delete mode 100644 board/freescale/mx35pdk/mx35pdk.c
 delete mode 100644 board/freescale/mx35pdk/mx35pdk.h
 delete mode 100644 configs/mx35pdk_defconfig
 delete mode 100644 include/configs/mx35pdk.h
arch/arm/Kconfig +0 -6
index f2a87c3caed8..9969da161e9c 100644
@@ -621,11 +621,6 @@ config TARGET_FLEA3
 	bool "Support flea3"
 	select CPU_ARM1136
 
-config TARGET_MX35PDK
-	bool "Support mx35pdk"
-	select BOARD_LATE_INIT
-	select CPU_ARM1136
-
 config ARCH_BCM283X
 	bool "Broadcom BCM283X family"
 	select DM
@@ -2009,7 +2004,6 @@ source "board/freescale/ls1012aqds/Kconfig"
 source "board/freescale/ls1012ardb/Kconfig"
 source "board/freescale/ls1012afrdm/Kconfig"
 source "board/freescale/lx2160a/Kconfig"
-source "board/freescale/mx35pdk/Kconfig"
 source "board/freescale/s32v234evb/Kconfig"
 source "board/grinn/chiliboard/Kconfig"
 source "board/hisilicon/hikey/Kconfig"
board/freescale/mx35pdk/Kconfig deleted +0 -15
deleted file mode 100644
index 021d19e5511c..000000000000
@@ -1,15 +0,0 @@
-if TARGET_MX35PDK
-
-config SYS_BOARD
-	default "mx35pdk"
-
-config SYS_VENDOR
-	default "freescale"
-
-config SYS_SOC
-	default "mx35"
-
-config SYS_CONFIG_NAME
-	default "mx35pdk"
-
-endif
board/freescale/mx35pdk/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 540e9436912b..000000000000
@@ -1,6 +0,0 @@
-MX35PDK BOARD
-M:	Stefano Babic <[email protected]>
-S:	Maintained
-F:	board/freescale/mx35pdk/
-F:	include/configs/mx35pdk.h
-F:	configs/mx35pdk_defconfig
board/freescale/mx35pdk/Makefile deleted +0 -8
deleted file mode 100644
index 6a60fad0cc8d..000000000000
@@ -1,8 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2007, Guennadi Liakhovetski <[email protected]>
-#
-# (C) Copyright 2008-2009 Freescale Semiconductor, Inc.
-
-obj-y	:= mx35pdk.o
-obj-y	+= lowlevel_init.o
board/freescale/mx35pdk/README deleted +0 -114

114 lines not on this page · raw message

board/freescale/mx35pdk/lowlevel_init.S deleted +0 -239

239 lines not on this page · raw message

board/freescale/mx35pdk/mx35pdk.c deleted +0 -293

293 lines not on this page · raw message

board/freescale/mx35pdk/mx35pdk.h deleted +0 -41

41 lines not on this page · raw message

configs/mx35pdk_defconfig deleted +0 -54

54 lines not on this page · raw message

drivers/serial/Kconfig +1 -1
index 9db4cae1df18..79ad0a1b3435 100644
@@ -635,7 +635,7 @@ config MCFUART
 
 config MXC_UART
 	bool "IMX serial port support"
-	depends on ARCH_MX25 || ARCH_MX31 || TARGET_APF27 || TARGET_FLEA3 || TARGET_MX35PDK \
+	depends on ARCH_MX25 || ARCH_MX31 || TARGET_APF27 || TARGET_FLEA3 \
 		|| MX5 || MX6 || MX7 || IMX8M
 	help
 	  If you have a machine based on a Motorola IMX CPU you
include/configs/mx35pdk.h deleted +0 -206

206 lines not on this page · raw message

Signature · 1 line
2.17.1
#19 lore raw

PATCH 10/25 arm: Remove mx35pdk board

Quoted 3 lines · Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

This is a very old board, I am fine to remove it.

Best regards,
Stefano

Quoted 1,094 lines
Cc Stefano Babic <[email protected]>
---
 arch/arm/Kconfig                        |   6 -
 board/freescale/mx35pdk/Kconfig         |  15 --
 board/freescale/mx35pdk/MAINTAINERS     |   6 -
 board/freescale/mx35pdk/Makefile        |   8 -
 board/freescale/mx35pdk/README          | 114 ---------
 board/freescale/mx35pdk/lowlevel_init.S | 239 -------------------
 board/freescale/mx35pdk/mx35pdk.c       | 293 ------------------------
 board/freescale/mx35pdk/mx35pdk.h       |  41 ----
 configs/mx35pdk_defconfig               |  54 -----
 drivers/serial/Kconfig                  |   2 +-
 include/configs/mx35pdk.h               | 206 -----------------
 11 files changed, 1 insertion(+), 983 deletions(-)
 delete mode 100644 board/freescale/mx35pdk/Kconfig
 delete mode 100644 board/freescale/mx35pdk/MAINTAINERS
 delete mode 100644 board/freescale/mx35pdk/Makefile
 delete mode 100644 board/freescale/mx35pdk/README
 delete mode 100644 board/freescale/mx35pdk/lowlevel_init.S
 delete mode 100644 board/freescale/mx35pdk/mx35pdk.c
 delete mode 100644 board/freescale/mx35pdk/mx35pdk.h
 delete mode 100644 configs/mx35pdk_defconfig
 delete mode 100644 include/configs/mx35pdk.h
arch/arm/Kconfig +0 -6
index f2a87c3caed8..9969da161e9c 100644
@@ -621,11 +621,6 @@ config TARGET_FLEA3
 	bool "Support flea3"
 	select CPU_ARM1136
 
-config TARGET_MX35PDK
-	bool "Support mx35pdk"
-	select BOARD_LATE_INIT
-	select CPU_ARM1136
-
 config ARCH_BCM283X
 	bool "Broadcom BCM283X family"
 	select DM
@@ -2009,7 +2004,6 @@ source "board/freescale/ls1012aqds/Kconfig"
 source "board/freescale/ls1012ardb/Kconfig"
 source "board/freescale/ls1012afrdm/Kconfig"
 source "board/freescale/lx2160a/Kconfig"
-source "board/freescale/mx35pdk/Kconfig"
 source "board/freescale/s32v234evb/Kconfig"
 source "board/grinn/chiliboard/Kconfig"
 source "board/hisilicon/hikey/Kconfig"
board/freescale/mx35pdk/Kconfig deleted +0 -15
deleted file mode 100644
index 021d19e5511c..000000000000
@@ -1,15 +0,0 @@
-if TARGET_MX35PDK
-
-config SYS_BOARD
-	default "mx35pdk"
-
-config SYS_VENDOR
-	default "freescale"
-
-config SYS_SOC
-	default "mx35"
-
-config SYS_CONFIG_NAME
-	default "mx35pdk"
-
-endif
board/freescale/mx35pdk/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 540e9436912b..000000000000
@@ -1,6 +0,0 @@
-MX35PDK BOARD
-M:	Stefano Babic <[email protected]>
-S:	Maintained
-F:	board/freescale/mx35pdk/
-F:	include/configs/mx35pdk.h
-F:	configs/mx35pdk_defconfig
board/freescale/mx35pdk/Makefile deleted +0 -8
deleted file mode 100644
index 6a60fad0cc8d..000000000000
@@ -1,8 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2007, Guennadi Liakhovetski <[email protected]>
-#
-# (C) Copyright 2008-2009 Freescale Semiconductor, Inc.
-
-obj-y	:= mx35pdk.o
-obj-y	+= lowlevel_init.o
board/freescale/mx35pdk/README deleted +0 -114
deleted file mode 100644
index 6f6841f0993b..000000000000
@@ -1,114 +0,0 @@
-Overview
---------------
-
-mx35pdk (known als as mx35_3stack) is a development board by Freescale.
-It consists of three pluggable board:
-	- CPU module, with CPU, RAM, flash
-	- Personality board, with most interfaces (USB, Network,..)
-	- Debug board with JTAG header.
-
-The board is usually delivered with redboot. This howto explains how to boot
-a linux kernel and how to replace the original bootloader with U-Boot.
-
-The board is delivered with Redboot on the NAND flash. It is possible to
-switch the boot device with the switches SW1-SW2 on the Personality board,
-and with SW5-SW10 on the Debug board.
-
-Delivered Redboot script to start the kernel
----------------------------------------------------
-
-In redboot the following script is stored:
-
-fis load kernel
-exec -c "noinitrd console=ttymxc0,115200 root=/dev/mtdblock8 rw rootfstype=jffs2 ip=dhcp fec_mac=00:04:9F:00:E7:76"
-
-Kernel is taken from flash. The image is in zImage format.
-
-Booting from NET, rootfs on NFS:
------------------------------------
-
-To change the script in redboot:
-
-load -r -b 0x100000 <path_to_zImage>
-exec -c "noinitrd console=ttymxc0,115200 root=/dev/nfsroot rootfstype=nfsroot nfsroot=192.168.1.1:/opt/eldk-4.2-arm/armVFP rw ip=dhcp"
-
-If the ip address is not set, you can set it with :
-
-ip_address -l <board_ip/netmask> -h <server_ip>
-
-Linux partitions:
----------------------------
-
-As default, the board is shipped with these partition tables for NAND
-and for NOR:
-
-Creating 5 MTD partitions on "NAND 2GiB 3,3V 8-bit":
-0x00000000-0x00100000 : "nand.bootloader"
-0x00100000-0x00600000 : "nand.kernel"
-0x00600000-0x06600000 : "nand.rootfs"
-0x06600000-0x06e00000 : "nand.configure"
-0x06e00000-0x80000000 : "nand.userfs"
-
-Creating 6 MTD partitions on "mxc_nor_flash.0":
-0x00000000-0x00080000 : "Bootloader"
-0x00080000-0x00480000 : "nor.Kernel"
-0x00480000-0x02280000 : "nor.userfs"
-0x02280000-0x03e80000 : "nor.rootfs"
-0x01fe0000-0x01fe3000 : "FIS directory"
-0x01fff000-0x04000000 : "Redboot config"
-
-NAND partitions can be recognized enabling in kernel CONFIG_MTD_REDBOOT_PARTS.
-For this board, CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK should be set to 2.
-
-However, the setup in redboot is not correct and does not use the whole flash.
-
-Better solution is to use the kernel parameter mtdparts.
-Here the resulting script to be defined in RedBoot with fconfig:
-
-load -r -b 0x100000 sbabic/mx35pdk/zImage.2.6.37
-exec -c "noinitrd console=ttymxc0,115200 root=/dev/nfsroot rootfstype=nfsroot nfsroot=192.168.1.1:/opt/eldk-4.2-arm/arm rw ip=dhcp mtdparts=mxc_nand:1m(boot),5m(linux),96m(root),8m(cfg),1938m(user);physmap-flash.0:512k(b),4m(k),30m(u),28m(r)"
-
-Flashing U-Boot
---------------------------------
-
-U-Boot should be stored on the NOR flash.
-
-The boot storage can be select using the switches on the personality board
-(SW1-SW2) and on the DEBUG board (SW4-SW10).
-
-If something goes wrong flashing the bootloader, it is always possible to
-recover the board booting from the other device.
-
-Saving U-Boot in the NOR flash
----------------------------------
-
-Check the partition for boot in the NOR flash. Setting the mtdparts as reported,
-the boot partition should be /dev/mtd0.
-
-Creating 6 MTD partitions on "mxc_nor_flash.0":
-0x00000000-0x00080000 : "Bootloader"
-0x00080000-0x00480000 : "nor.Kernel"
-0x00480000-0x02280000 : "nor.userfs"
-0x02280000-0x03e80000 : "nor.rootfs"
-0x01fe0000-0x01fe3000 : "FIS directory"
-0x01fff000-0x04000000 : "Redboot config"
-
-To erase the whole partition:
-$ flash_eraseall /dev/mtd0
-
-Writing U-Boot:
-dd if=u-boot.bin of=/dev/mtd0
-
-To boot from NOR, you have to select the switches as follows:
-
-Personality board
-	SW2	all off
-	SW1	all off
-
-Debug Board:
-	SW5	0
-	SW6	0
-	SW7	0
-	SW8	1
-	SW9	1
-	SW10	0
board/freescale/mx35pdk/lowlevel_init.S deleted +0 -239
deleted file mode 100644
index 5dae5597fb69..000000000000
@@ -1,239 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2007, Guennadi Liakhovetski <[email protected]>
- *
- * (C) Copyright 2008-2010 Freescale Semiconductor, Inc.
- */
-
-#include <config.h>
-#include <asm/arch/imx-regs.h>
-#include <generated/asm-offsets.h>
-#include "mx35pdk.h"
-#include <asm/arch/lowlevel_macro.S>
-
-/*
- * return soc version
- * 	0x10:  TO1
- *	0x20:  TO2
- *	0x30:  TO3
- */
-.macro check_soc_version ret, tmp
-	ldr \tmp, =IIM_BASE_ADDR
-	ldr \ret, [\tmp, #IIM_SREV]
-	cmp \ret, #0x00
-	moveq \tmp, #ROMPATCH_REV
-	ldreq \ret, [\tmp]
-	moveq \ret, \ret, lsl #4
-	addne \ret, \ret, #0x10
-.endm
-
-/* CPLD on CS5 setup */
-.macro init_debug_board
-	ldr r0, =DBG_BASE_ADDR
-	ldr r1, =DBG_CSCR_U_CONFIG
-	str r1, [r0, #0x00]
-	ldr r1, =DBG_CSCR_L_CONFIG
-	str r1, [r0, #0x04]
-	ldr r1, =DBG_CSCR_A_CONFIG
-	str r1, [r0, #0x08]
-.endm
-
-/* clock setup */
-.macro init_clock
-	ldr r0, =CCM_BASE_ADDR
-
-	/* default CLKO to 1/32 of the ARM core*/
-	ldr r1, [r0, #CLKCTL_COSR]
-	bic r1, r1, #0x00000FF00
-	bic r1, r1, #0x0000000FF
-	mov r2, #0x00006C00
-	add r2, r2, #0x67
-	orr r1, r1, r2
-	str r1, [r0, #CLKCTL_COSR]
-
-	ldr r2, =CCM_CCMR_CONFIG
-	str r2, [r0, #CLKCTL_CCMR]
-
-	check_soc_version r1, r2
-	cmp r1, #CHIP_REV_2_0
-	ldrhs r3, =CCM_MPLL_532_HZ
-	bhs 1f
-	ldr r2, [r0, #CLKCTL_PDR0]
-	tst r2, #CLKMODE_CONSUMER
-	ldrne r3, =CCM_MPLL_532_HZ  /* consumer path*/
-	ldreq r3, =CCM_MPLL_399_HZ  /* auto path*/
-1:
-	str r3, [r0, #CLKCTL_MPCTL]
-
-	ldr r1, =CCM_PPLL_300_HZ
-	str r1, [r0, #CLKCTL_PPCTL]
-
-	ldr r1, =CCM_PDR0_CONFIG
-	bic r1, r1, #0x800000
-	str r1, [r0, #CLKCTL_PDR0]
-
-	ldr r1, [r0, #CLKCTL_CGR0]
-	orr r1, r1, #0x0C300000
-	str r1, [r0, #CLKCTL_CGR0]
-
-	ldr r1, [r0, #CLKCTL_CGR1]
-	orr r1, r1, #0x00000C00
-	orr r1, r1, #0x00000003
-	str r1, [r0, #CLKCTL_CGR1]
-
-	ldr r1, [r0, #CLKCTL_CGR2]
-	orr r1, r1, #0x00C00000
-	str r1, [r0, #CLKCTL_CGR2]
-.endm
-
-.macro setup_sdram
-	ldr r0, =ESDCTL_BASE_ADDR
-	mov r3, #0x2000
-	str r3, [r0, #0x0]
-	str r3, [r0, #0x8]
-
-	/*ip(r12) has used to save lr register in upper calling*/
-	mov fp, lr
-
-	mov r5, #0x00
-	mov r2, #0x00
-	mov r1, #CSD0_BASE_ADDR
-	bl setup_sdram_bank
-
-	mov r5, #0x00
-	mov r2, #0x00
-	mov r1, #CSD1_BASE_ADDR
-	bl setup_sdram_bank
-
-	mov lr, fp
-
-1:
-	ldr r3, =ESDCTL_DELAY_LINE5
-	str r3, [r0, #0x30]
-.endm
-
-.globl lowlevel_init
-lowlevel_init:
-	mov r10, lr
-
-	core_init
-
-	init_aips
-
-	init_max
-
-	init_m3if
-
-	init_clock
-	init_debug_board
-
-	cmp pc, #PHYS_SDRAM_1
-	blo init_sdram_start
-	cmp pc, #(PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE)
-	blo skip_sdram_setup
-
-init_sdram_start:
-	/*init_sdram*/
-	setup_sdram
-
-skip_sdram_setup:
-	mov lr, r10
-	mov pc, lr
-
-
-/*
- * r0: ESDCTL control base, r1: sdram slot base
- * r2: DDR type(0:DDR2, 1:MDDR) r3, r4:working base
- */
-setup_sdram_bank:
-	mov r3, #0xE
-	tst r2, #0x1
-	orreq r3, r3, #0x300 /*DDR2*/
-	str r3, [r0, #0x10]
-	bic r3, r3, #0x00A
-	str r3, [r0, #0x10]
-	beq 2f
-
-	mov r3, #0x20000
-1:      subs r3, r3, #1
-	bne 1b
-
-2:      tst r2, #0x1
-	ldreq r3, =ESDCTL_DDR2_CONFIG
-	ldrne r3, =ESDCTL_MDDR_CONFIG
-	cmp r1, #CSD1_BASE_ADDR
-	strlo r3, [r0, #0x4]
-	strhs r3, [r0, #0xC]
-
-	ldr r3, =ESDCTL_0x92220000
-	strlo r3, [r0, #0x0]
-	strhs r3, [r0, #0x8]
-	mov r3, #0xDA
-	ldr r4, =ESDCTL_PRECHARGE
-	strb r3, [r1, r4]
-
-	tst r2, #0x1
-	bne skip_set_mode
-
-	cmp r1, #CSD1_BASE_ADDR
-	ldr r3, =ESDCTL_0xB2220000
-	strlo r3, [r0, #0x0]
-	strhs r3, [r0, #0x8]
-	mov r3, #0xDA
-	ldr r4, =ESDCTL_DDR2_EMR2
-	strb r3, [r1, r4]
-	ldr r4, =ESDCTL_DDR2_EMR3
-	strb r3, [r1, r4]
-	ldr r4, =ESDCTL_DDR2_EN_DLL
-	strb r3, [r1, r4]
-	ldr r4, =ESDCTL_DDR2_RESET_DLL
-	strb r3, [r1, r4]
-
-	ldr r3, =ESDCTL_0x92220000
-	strlo r3, [r0, #0x0]
-	strhs r3, [r0, #0x8]
-	mov r3, #0xDA
-	ldr r4, =ESDCTL_PRECHARGE
-	strb r3, [r1, r4]
-
-skip_set_mode:
-	cmp r1, #CSD1_BASE_ADDR
-	ldr r3, =ESDCTL_0xA2220000
-	strlo r3, [r0, #0x0]
-	strhs r3, [r0, #0x8]
-	mov r3, #0xDA
-	strb r3, [r1]
-	strb r3, [r1]
-
-	ldr r3, =ESDCTL_0xB2220000
-	strlo r3, [r0, #0x0]
-	strhs r3, [r0, #0x8]
-	tst r2, #0x1
-	ldreq r4, =ESDCTL_DDR2_MR
-	ldrne r4, =ESDCTL_MDDR_MR
-	mov r3, #0xDA
-	strb r3, [r1, r4]
-	ldreq r4, =ESDCTL_DDR2_OCD_DEFAULT
-	streqb r3, [r1, r4]
-	ldreq r4, =ESDCTL_DDR2_EN_DLL
-	ldrne r4, =ESDCTL_MDDR_EMR
-	strb r3, [r1, r4]
-
-	cmp r1, #CSD1_BASE_ADDR
-	ldr r3, =ESDCTL_0x82228080
-	strlo r3, [r0, #0x0]
-	strhs r3, [r0, #0x8]
-
-	tst r2, #0x1
-	moveq r4, #0x20000
-	movne r4, #0x200
-1:      subs r4, r4, #1
-	bne 1b
-
-	str r3, [r1, #0x100]
-	ldr r4, [r1, #0x100]
-	cmp r3, r4
-	movne r3, #1
-	moveq r3, #0
-
-	mov pc, lr
board/freescale/mx35pdk/mx35pdk.c deleted +0 -293
deleted file mode 100644
index fc024c47dbdd..000000000000
@@ -1,293 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (C) 2007, Guennadi Liakhovetski <[email protected]>
- *
- * (C) Copyright 2008-2010 Freescale Semiconductor, Inc.
- */
-
-#include <common.h>
-#include <init.h>
-#include <net.h>
-#include <asm/io.h>
-#include <linux/delay.h>
-#include <linux/errno.h>
-#include <asm/arch/imx-regs.h>
-#include <asm/arch/crm_regs.h>
-#include <asm/arch/clock.h>
-#include <asm/arch/iomux-mx35.h>
-#include <i2c.h>
-#include <power/pmic.h>
-#include <fsl_pmic.h>
-#include <mmc.h>
-#include <fsl_esdhc_imx.h>
-#include <mc9sdz60.h>
-#include <mc13892.h>
-#include <linux/types.h>
-#include <asm/gpio.h>
-#include <asm/arch/sys_proto.h>
-#include <netdev.h>
-#include <asm/mach-types.h>
-
-#ifndef CONFIG_BOARD_LATE_INIT
-#error "CONFIG_BOARD_LATE_INIT must be set for this board"
-#endif
-
-#ifndef CONFIG_BOARD_EARLY_INIT_F
-#error "CONFIG_BOARD_EARLY_INIT_F must be set for this board"
-#endif
-
-DECLARE_GLOBAL_DATA_PTR;
-
-int dram_init(void)
-{
-	u32 size1, size2;
-
-	size1 = get_ram_size((void *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
-	size2 = get_ram_size((void *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
-
-	gd->ram_size = size1 + size2;
-
-	return 0;
-}
-
-int dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-
-	gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
-	gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
-
-	return 0;
-}
-
-#define I2C_PAD_CTRL	(PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN | PAD_CTL_ODE)
-
-static void setup_iomux_i2c(void)
-{
-	static const iomux_v3_cfg_t i2c1_pads[] = {
-		NEW_PAD_CTRL(MX35_PAD_I2C1_CLK__I2C1_SCL, I2C_PAD_CTRL),
-		NEW_PAD_CTRL(MX35_PAD_I2C1_DAT__I2C1_SDA, I2C_PAD_CTRL),
-	};
-
-	/* setup pins for I2C1 */
-	imx_iomux_v3_setup_multiple_pads(i2c1_pads, ARRAY_SIZE(i2c1_pads));
-}
-
-
-static void setup_iomux_spi(void)
-{
-	static const iomux_v3_cfg_t spi_pads[] = {
-		MX35_PAD_CSPI1_MOSI__CSPI1_MOSI,
-		MX35_PAD_CSPI1_MISO__CSPI1_MISO,
-		MX35_PAD_CSPI1_SS0__CSPI1_SS0,
-		MX35_PAD_CSPI1_SS1__CSPI1_SS1,
-		MX35_PAD_CSPI1_SCLK__CSPI1_SCLK,
-	};
-
-	imx_iomux_v3_setup_multiple_pads(spi_pads, ARRAY_SIZE(spi_pads));
-}
-
-#define USBOTG_IN_PAD_CTRL	(PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN | \
-				 PAD_CTL_DSE_LOW | PAD_CTL_SRE_SLOW)
-#define USBOTG_OUT_PAD_CTRL	(PAD_CTL_DSE_LOW | PAD_CTL_SRE_SLOW)
-
-static void setup_iomux_usbotg(void)
-{
-	static const iomux_v3_cfg_t usbotg_pads[] = {
-		NEW_PAD_CTRL(MX35_PAD_USBOTG_PWR__USB_TOP_USBOTG_PWR,
-				USBOTG_OUT_PAD_CTRL),
-		NEW_PAD_CTRL(MX35_PAD_USBOTG_OC__USB_TOP_USBOTG_OC,
-				USBOTG_IN_PAD_CTRL),
-	};
-
-	/* Set up pins for USBOTG. */
-	imx_iomux_v3_setup_multiple_pads(usbotg_pads, ARRAY_SIZE(usbotg_pads));
-}
-
-#define FEC_PAD_CTRL	(PAD_CTL_DSE_LOW | PAD_CTL_SRE_SLOW)
-
-static void setup_iomux_fec(void)
-{
-	static const iomux_v3_cfg_t fec_pads[] = {
-		NEW_PAD_CTRL(MX35_PAD_FEC_TX_CLK__FEC_TX_CLK, FEC_PAD_CTRL |
-					PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN),
-		NEW_PAD_CTRL(MX35_PAD_FEC_RX_CLK__FEC_RX_CLK, FEC_PAD_CTRL |
-					PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN),
-		NEW_PAD_CTRL(MX35_PAD_FEC_RX_DV__FEC_RX_DV, FEC_PAD_CTRL |
-					PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN),
-		NEW_PAD_CTRL(MX35_PAD_FEC_COL__FEC_COL, FEC_PAD_CTRL |
-					PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN),
-		NEW_PAD_CTRL(MX35_PAD_FEC_RDATA0__FEC_RDATA_0, FEC_PAD_CTRL |
-					PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN),
-		NEW_PAD_CTRL(MX35_PAD_FEC_TDATA0__FEC_TDATA_0, FEC_PAD_CTRL),
-		NEW_PAD_CTRL(MX35_PAD_FEC_TX_EN__FEC_TX_EN, FEC_PAD_CTRL),
-		NEW_PAD_CTRL(MX35_PAD_FEC_MDC__FEC_MDC, FEC_PAD_CTRL),
-		NEW_PAD_CTRL(MX35_PAD_FEC_MDIO__FEC_MDIO, FEC_PAD_CTRL |
-					PAD_CTL_HYS | PAD_CTL_PUS_22K_UP),
-		NEW_PAD_CTRL(MX35_PAD_FEC_TX_ERR__FEC_TX_ERR, FEC_PAD_CTRL),
-		NEW_PAD_CTRL(MX35_PAD_FEC_RX_ERR__FEC_RX_ERR, FEC_PAD_CTRL |
-					PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN),
-		NEW_PAD_CTRL(MX35_PAD_FEC_CRS__FEC_CRS, FEC_PAD_CTRL |
-					PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN),
-		NEW_PAD_CTRL(MX35_PAD_FEC_RDATA1__FEC_RDATA_1, FEC_PAD_CTRL |
-					PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN),
-		NEW_PAD_CTRL(MX35_PAD_FEC_TDATA1__FEC_TDATA_1, FEC_PAD_CTRL),
-		NEW_PAD_CTRL(MX35_PAD_FEC_RDATA2__FEC_RDATA_2, FEC_PAD_CTRL |
-					PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN),
-		NEW_PAD_CTRL(MX35_PAD_FEC_TDATA2__FEC_TDATA_2, FEC_PAD_CTRL),
-		NEW_PAD_CTRL(MX35_PAD_FEC_RDATA3__FEC_RDATA_3, FEC_PAD_CTRL |
-					PAD_CTL_HYS | PAD_CTL_PUS_100K_DOWN),
-		NEW_PAD_CTRL(MX35_PAD_FEC_TDATA3__FEC_TDATA_3, FEC_PAD_CTRL),
-	};
-
-	/* setup pins for FEC */
-	imx_iomux_v3_setup_multiple_pads(fec_pads, ARRAY_SIZE(fec_pads));
-}
-
-int board_early_init_f(void)
-{
-	struct ccm_regs *ccm =
-		(struct ccm_regs *)IMX_CCM_BASE;
-
-	/* enable clocks */
-	writel(readl(&ccm->cgr0) |
-		MXC_CCM_CGR0_EMI_MASK |
-		MXC_CCM_CGR0_EDIO_MASK |
-		MXC_CCM_CGR0_EPIT1_MASK,
-		&ccm->cgr0);
-
-	writel(readl(&ccm->cgr1) |
-		MXC_CCM_CGR1_FEC_MASK |
-		MXC_CCM_CGR1_GPIO1_MASK |
-		MXC_CCM_CGR1_GPIO2_MASK |
-		MXC_CCM_CGR1_GPIO3_MASK |
-		MXC_CCM_CGR1_I2C1_MASK |
-		MXC_CCM_CGR1_I2C2_MASK |
-		MXC_CCM_CGR1_IPU_MASK,
-		&ccm->cgr1);
-
-	/* Setup NAND */
-	__raw_writel(readl(&ccm->rcsr) | MXC_CCM_RCSR_NFC_FMS, &ccm->rcsr);
-
-	setup_iomux_i2c();
-	setup_iomux_usbotg();
-	setup_iomux_fec();
-	setup_iomux_spi();
-
-	return 0;
-}
-
-int board_init(void)
-{
-	gd->bd->bi_arch_number = MACH_TYPE_MX35_3DS;	/* board id for linux */
-	/* address of boot parameters */
-	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
-
-	return 0;
-}
-
-static inline int pmic_detect(void)
-{
-	unsigned int id;
-	struct pmic *p = pmic_get("FSL_PMIC");
-	if (!p)
-		return -ENODEV;
-
-	pmic_reg_read(p, REG_IDENTIFICATION, &id);
-
-	id = (id >> 6) & 0x7;
-	if (id == 0x7)
-		return 1;
-	return 0;
-}
-
-u32 get_board_rev(void)
-{
-	int rev;
-
-	rev = pmic_detect();
-
-	return (get_cpu_rev() & ~(0xF << 8)) | (rev & 0xF) << 8;
-}
-
-int board_late_init(void)
-{
-	u8 val;
-	u32 pmic_val;
-	struct pmic *p;
-	int ret;
-
-	ret = pmic_init(I2C_0);
-	if (ret)
-		return ret;
-
-	if (pmic_detect()) {
-		p = pmic_get("FSL_PMIC");
-		imx_iomux_v3_setup_pad(MX35_PAD_WDOG_RST__WDOG_WDOG_B);
-
-		pmic_reg_read(p, REG_SETTING_0, &pmic_val);
-		pmic_reg_write(p, REG_SETTING_0,
-			pmic_val | VO_1_30V | VO_1_50V);
-		pmic_reg_read(p, REG_MODE_0, &pmic_val);
-		pmic_reg_write(p, REG_MODE_0, pmic_val | VGEN3EN);
-
-		imx_iomux_v3_setup_pad(MX35_PAD_COMPARE__GPIO1_5);
-
-		gpio_direction_output(IMX_GPIO_NR(1, 5), 1);
-	}
-
-	val = mc9sdz60_reg_read(MC9SDZ60_REG_GPIO_1) | 0x04;
-	mc9sdz60_reg_write(MC9SDZ60_REG_GPIO_1, val);
-	mdelay(200);
-
-	val = mc9sdz60_reg_read(MC9SDZ60_REG_RESET_1) & 0x7F;
-	mc9sdz60_reg_write(MC9SDZ60_REG_RESET_1, val);
-	mdelay(200);
-
-	val |= 0x80;
-	mc9sdz60_reg_write(MC9SDZ60_REG_RESET_1, val);
-
-	/* Print board revision */
-	printf("Board: MX35 PDK %d.0\n", ((get_board_rev() >> 8) + 1) & 0x0F);
-
-	return 0;
-}
-
-int board_eth_init(struct bd_info *bis)
-{
-#if defined(CONFIG_SMC911X)
-	int rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
-	if (rc)
-		return rc;
-#endif
-	return cpu_eth_init(bis);
-}
-
-#if defined(CONFIG_FSL_ESDHC_IMX)
-
-struct fsl_esdhc_cfg esdhc_cfg = {MMC_SDHC1_BASE_ADDR};
-
-int board_mmc_init(struct bd_info *bis)
-{
-	static const iomux_v3_cfg_t sdhc1_pads[] = {
-		MX35_PAD_SD1_CMD__ESDHC1_CMD,
-		MX35_PAD_SD1_CLK__ESDHC1_CLK,
-		MX35_PAD_SD1_DATA0__ESDHC1_DAT0,
-		MX35_PAD_SD1_DATA1__ESDHC1_DAT1,
-		MX35_PAD_SD1_DATA2__ESDHC1_DAT2,
-		MX35_PAD_SD1_DATA3__ESDHC1_DAT3,
-	};
-
-	/* configure pins for SDHC1 only */
-	imx_iomux_v3_setup_multiple_pads(sdhc1_pads, ARRAY_SIZE(sdhc1_pads));
-
-	esdhc_cfg.sdhc_clk = mxc_get_clock(MXC_ESDHC1_CLK);
-	return fsl_esdhc_initialize(bis, &esdhc_cfg);
-}
-
-int board_mmc_getcd(struct mmc *mmc)
-{
-	return !(mc9sdz60_reg_read(MC9SDZ60_REG_DES_FLAG) & 0x4);
-}
-#endif
board/freescale/mx35pdk/mx35pdk.h deleted +0 -41
deleted file mode 100644
index 0af4b88bfbee..000000000000
@@ -1,41 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- *
- * (c) 2007 Pengutronix, Sascha Hauer <[email protected]>
- *
- * (C) Copyright 2008-2009 Freescale Semiconductor, Inc.
- */
-
-#ifndef __BOARD_MX35_3STACK_H
-#define __BOARD_MX35_3STACK_H
-
-#define DBG_BASE_ADDR		WEIM_CTRL_CS5
-#define DBG_CSCR_U_CONFIG	0x0000D843
-#define DBG_CSCR_L_CONFIG	0x22252521
-#define DBG_CSCR_A_CONFIG	0x22220A00
-
-#define CCM_CCMR_CONFIG		0x003F4208
-#define CCM_PDR0_CONFIG		0x00801000
-
-/* MEMORY SETTING */
-#define ESDCTL_0x92220000	0x92220000
-#define ESDCTL_0xA2220000	0xA2220000
-#define ESDCTL_0xB2220000	0xB2220000
-#define ESDCTL_0x82228080	0x82228080
-
-#define ESDCTL_PRECHARGE	0x00000400
-
-#define ESDCTL_MDDR_CONFIG	0x007FFC3F
-#define ESDCTL_MDDR_MR		0x00000033
-#define ESDCTL_MDDR_EMR		0x02000000
-
-#define ESDCTL_DDR2_CONFIG	0x007FFC3F
-#define ESDCTL_DDR2_EMR2	0x04000000
-#define ESDCTL_DDR2_EMR3	0x06000000
-#define ESDCTL_DDR2_EN_DLL	0x02000400
-#define ESDCTL_DDR2_RESET_DLL	0x00000333
-#define ESDCTL_DDR2_MR		0x00000233
-#define ESDCTL_DDR2_OCD_DEFAULT 0x02000780
-
-#define ESDCTL_DELAY_LINE5	0x00F49F00
-#endif				/* __BOARD_MX35_3STACK_H */
configs/mx35pdk_defconfig deleted +0 -54
deleted file mode 100644
index ab77fb5c06c2..000000000000
@@ -1,54 +0,0 @@
-CONFIG_ARM=y
-CONFIG_TARGET_MX35PDK=y
-CONFIG_SYS_TEXT_BASE=0xA0000000
-CONFIG_NR_DRAM_BANKS=2
-CONFIG_ENV_SIZE=0x20000
-CONFIG_ENV_SECT_SIZE=0x20000
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_BOARD_EARLY_INIT_F=y
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-CONFIG_CMD_IMLS=y
-CONFIG_CMD_I2C=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_SPI=y
-CONFIG_CMD_USB=y
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_CACHE=y
-CONFIG_CMD_DATE=y
-CONFIG_CMD_EXT2=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=mxc_nand,nor0=physmap-flash.0"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=mxc_nand:1m(boot),5m(linux),96m(root),8m(cfg),1938m(user);physmap-flash.0:512k(b),4m(k),30m(u),28m(r)"
-CONFIG_EFI_PARTITION=y
-# CONFIG_PARTITION_UUIDS is not set
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_FLASH=y
-CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
-CONFIG_ENV_ADDR=0xA0080000
-CONFIG_ENV_ADDR_REDUND=0xA00A0000
-CONFIG_MXC_GPIO=y
-CONFIG_FSL_ESDHC_IMX=y
-CONFIG_MTD=y
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
-CONFIG_FLASH_CFI_MTD=y
-CONFIG_SYS_FLASH_PROTECTION=y
-CONFIG_SYS_FLASH_CFI=y
-CONFIG_MTD_RAW_NAND=y
-CONFIG_NAND_MXC=y
-CONFIG_MII=y
-CONFIG_SMC911X=y
-CONFIG_SMC911X_BASE=0xB6000000
-CONFIG_MXC_UART=y
-CONFIG_SPI=y
-CONFIG_MXC_SPI=y
-CONFIG_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_OF_LIBFDT=y
drivers/serial/Kconfig +1 -1
index 9db4cae1df18..79ad0a1b3435 100644
@@ -635,7 +635,7 @@ config MCFUART
 
 config MXC_UART
 	bool "IMX serial port support"
-	depends on ARCH_MX25 || ARCH_MX31 || TARGET_APF27 || TARGET_FLEA3 || TARGET_MX35PDK \
+	depends on ARCH_MX25 || ARCH_MX31 || TARGET_APF27 || TARGET_FLEA3 \
 		|| MX5 || MX6 || MX7 || IMX8M
 	help
 	  If you have a machine based on a Motorola IMX CPU you
include/configs/mx35pdk.h deleted +0 -206
deleted file mode 100644
index d2dcc8179b14..000000000000
@@ -1,206 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010, Stefano Babic <[email protected]>
- *
- * (C) Copyright 2008-2010 Freescale Semiconductor, Inc.
- *
- * Copyright (C) 2007, Guennadi Liakhovetski <[email protected]>
- *
- * Configuration for the MX35pdk Freescale board.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <asm/arch/imx-regs.h>
-
- /* High Level Configuration Options */
-#define CONFIG_MX35
-
-#define CONFIG_SYS_FSL_CLK
-
-/* Set TEXT at the beginning of the NOR flash */
-
-#define CONFIG_CMDLINE_TAG		/* enable passing of ATAGs */
-#define CONFIG_REVISION_TAG
-#define CONFIG_SETUP_MEMORY_TAGS
-#define CONFIG_INITRD_TAG
-
-/*
- * Size of malloc() pool
- */
-#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 1024 * 1024)
-
-/*
- * Hardware drivers
- */
-#define CONFIG_SYS_I2C
-#define CONFIG_SYS_I2C_MXC
-#define CONFIG_SYS_I2C_MXC_I2C1		/* enable I2C bus 1 */
-#define CONFIG_SYS_I2C_MXC_I2C2		/* enable I2C bus 2 */
-#define CONFIG_SYS_I2C_MXC_I2C3		/* enable I2C bus 3 */
-
-/*
- * PMIC Configs
- */
-#define CONFIG_POWER
-#define CONFIG_POWER_I2C
-#define CONFIG_POWER_FSL
-#define CONFIG_POWER_FSL_MC13892
-#define CONFIG_SYS_FSL_PMIC_I2C_ADDR	0x08
-#define CONFIG_RTC_MC13XXX
-
-/*
- * MFD MC9SDZ60
- */
-#define CONFIG_FSL_MC9SDZ60
-#define CONFIG_SYS_FSL_MC9SDZ60_I2C_ADDR	0x69
-
-/*
- * UART (console)
- */
-#define CONFIG_MXC_UART_BASE	UART1_BASE
-
-/*
- * Command definition
- */
-
-#define CONFIG_NET_RETRY_COUNT	100
-
-
-#define CONFIG_LOADADDR		0x80800000	/* loadaddr env var */
-
-/*
- * Ethernet on the debug board (SMC911)
- */
-#define CONFIG_HAS_ETH1
-#define CONFIG_ETHPRIME
-
-/*
- * Ethernet on SOC (FEC)
- */
-#define CONFIG_FEC_MXC
-#define IMX_FEC_BASE	FEC_BASE_ADDR
-#define CONFIG_FEC_MXC_PHYADDR	0x1F
-
-#define CONFIG_ARP_TIMEOUT	200UL
-
-/*
- * Miscellaneous configurable options
- */
-
-#define CONFIG_SYS_LOAD_ADDR		CONFIG_LOADADDR
-
-/*
- * Physical Memory Map
- */
-#define PHYS_SDRAM_1		CSD0_BASE_ADDR
-#define PHYS_SDRAM_1_SIZE	(128 * 1024 * 1024)
-#define PHYS_SDRAM_2		CSD1_BASE_ADDR
-#define PHYS_SDRAM_2_SIZE	(128 * 1024 * 1024)
-
-#define CONFIG_SYS_SDRAM_BASE		CSD0_BASE_ADDR
-#define CONFIG_SYS_INIT_RAM_ADDR	(IRAM_BASE_ADDR + 0x10000)
-#define CONFIG_SYS_INIT_RAM_SIZE		(IRAM_SIZE / 2)
-#define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_SIZE - \
-					GENERATED_GBL_DATA_SIZE)
-#define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \
-					CONFIG_SYS_GBL_DATA_OFFSET)
-
-/*
- * MTD Command for mtdparts
- */
-
-/*
- * FLASH and environment organization
- */
-#define CONFIG_SYS_FLASH_BASE		CS0_BASE_ADDR
-#define CONFIG_SYS_MAX_FLASH_BANKS 1	/* max number of memory banks */
-#define CONFIG_SYS_MAX_FLASH_SECT 512	/* max number of sectors on one chip */
-/* Monitor at beginning of flash */
-#define CONFIG_SYS_MONITOR_BASE	CONFIG_SYS_FLASH_BASE
-#define CONFIG_SYS_MONITOR_LEN		(512 * 1024)
-
-/* Address and size of Redundant Environment Sector	*/
-
-/*
- * CFI FLASH driver setup
- */
-
-/* A non-standard buffered write algorithm */
-#define CONFIG_FLASH_SPANSION_S29WS_N
-
-/*
- * NAND FLASH driver setup
- */
-#define CONFIG_MXC_NAND_REGS_BASE	(NFC_BASE_ADDR)
-#define CONFIG_SYS_MAX_NAND_DEVICE	1
-#define CONFIG_SYS_NAND_BASE		(NFC_BASE_ADDR)
-#define CONFIG_MXC_NAND_HWECC
-#define CONFIG_SYS_NAND_LARGEPAGE
-
-/* EHCI driver */
-#define CONFIG_EHCI_IS_TDI
-#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
-#define CONFIG_USB_EHCI_MXC
-#define CONFIG_MXC_USB_PORT	0
-#define CONFIG_MXC_USB_FLAGS	(MXC_EHCI_INTERFACE_DIFF_UNI | \
-				 MXC_EHCI_POWER_PINS_ENABLED | \
-				 MXC_EHCI_OC_PIN_ACTIVE_LOW)
-#define CONFIG_MXC_USB_PORTSC	(MXC_EHCI_UTMI_16BIT | MXC_EHCI_MODE_UTMI)
-
-/* mmc driver */
-#define CONFIG_SYS_FSL_ESDHC_ADDR	0
-#define CONFIG_SYS_FSL_ESDHC_NUM	1
-
-/*
- * Default environment and default scripts
- * to update uboot and load kernel
- */
-
-#define CONFIG_HOSTNAME "mx35pdk"
-#define	CONFIG_EXTRA_ENV_SETTINGS					\
-	"netdev=eth1\0"							\
-	"ethprime=smc911x\0"						\
-	"nfsargs=setenv bootargs root=/dev/nfs rw "			\
-		"nfsroot=${serverip}:${rootpath}\0"			\
-	"ramargs=setenv bootargs root=/dev/ram rw\0"			\
-	"addip_sta=setenv bootargs ${bootargs} "			\
-		"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}"	\
-		":${hostname}:${netdev}:off panic=1\0"			\
-	"addip_dyn=setenv bootargs ${bootargs} ip=dhcp\0"		\
-	"addip=if test -n ${ipdyn};then run addip_dyn;"			\
-		"else run addip_sta;fi\0"				\
-	"addmtd=setenv bootargs ${bootargs} ${mtdparts}\0"		\
-	"addtty=setenv bootargs ${bootargs}"				\
-		" console=ttymxc0,${baudrate}\0"			\
-	"addmisc=setenv bootargs ${bootargs} ${misc}\0"			\
-	"loadaddr=80800000\0"						\
-	"kernel_addr_r=80800000\0"					\
-	"hostname=" CONFIG_HOSTNAME "\0"			\
-	"bootfile=" CONFIG_HOSTNAME "/uImage\0"		\
-	"ramdisk_file=" CONFIG_HOSTNAME "/uRamdisk\0"	\
-	"flash_self=run ramargs addip addtty addmtd addmisc;"		\
-		"bootm ${kernel_addr} ${ramdisk_addr}\0"		\
-	"flash_nfs=run nfsargs addip addtty addmtd addmisc;"		\
-		"bootm ${kernel_addr}\0"				\
-	"net_nfs=tftp ${kernel_addr_r} ${bootfile}; "			\
-		"run nfsargs addip addtty addmtd addmisc;"		\
-		"bootm ${kernel_addr_r}\0"				\
-	"net_self_load=tftp ${kernel_addr_r} ${bootfile};"		\
-		"tftp ${ramdisk_addr_r} ${ramdisk_file};\0"		\
-	"u-boot=" CONFIG_HOSTNAME "/u-boot.bin\0"		\
-	"load=tftp ${loadaddr} ${u-boot}\0"				\
-	"uboot_addr=" __stringify(CONFIG_SYS_MONITOR_BASE) "\0"		\
-	"update=protect off ${uboot_addr} +80000;"			\
-		"erase ${uboot_addr} +80000;"				\
-		"cp.b ${loadaddr} ${uboot_addr} ${filesize}\0"		\
-	"upd=if run load;then echo Updating u-boot;if run update;"	\
-		"then echo U-Boot updated;"				\
-			"else echo Error updating u-boot !;"		\
-			"echo Board without bootloader !!;"		\
-		"fi;"							\
-		"else echo U-Boot not downloaded..exiting;fi\0"		\
-	"bootcmd=run net_nfs\0"
-
-#endif				/* __CONFIG_H */
Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
author
#20 lore raw

PATCH 10/25 arm: Remove mx35pdk board

In reply to Tom Rini
Quoted 7 lines · Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210215/a692a3c4/attachment.sig>
author
#21 lore raw

PATCH 11/25 arm: Remove apf27 board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Philippe Reynes <[email protected]>
Cc Eric Jarrige <[email protected]>
---
 arch/arm/Kconfig                     |   6 -
 board/armadeus/apf27/Kconfig         |  15 -
 board/armadeus/apf27/MAINTAINERS     |   7 -
 board/armadeus/apf27/Makefile        |  12 -
 board/armadeus/apf27/apf27.c         | 258 --------------
 board/armadeus/apf27/apf27.h         | 488 ---------------------------
 board/armadeus/apf27/fpga.c          | 226 -------------
 board/armadeus/apf27/fpga.h          |  24 --
 board/armadeus/apf27/lowlevel_init.S | 166 ---------
 configs/apf27_defconfig              |  59 ----
 drivers/serial/Kconfig               |   2 +-
 include/configs/apf27.h              | 266 ---------------
 12 files changed, 1 insertion(+), 1528 deletions(-)
 delete mode 100644 board/armadeus/apf27/Kconfig
 delete mode 100644 board/armadeus/apf27/MAINTAINERS
 delete mode 100644 board/armadeus/apf27/Makefile
 delete mode 100644 board/armadeus/apf27/apf27.c
 delete mode 100644 board/armadeus/apf27/apf27.h
 delete mode 100644 board/armadeus/apf27/fpga.c
 delete mode 100644 board/armadeus/apf27/fpga.h
 delete mode 100644 board/armadeus/apf27/lowlevel_init.S
 delete mode 100644 configs/apf27_defconfig
 delete mode 100644 include/configs/apf27.h
arch/arm/Kconfig +0 -6
index 9969da161e9c..acffdc6a1ed8 100644
@@ -561,11 +561,6 @@ config ARCH_MVEBU
 	select SPI
 	imply CMD_DM
 
-config TARGET_APF27
-	bool "Support apf27"
-	select CPU_ARM926EJS
-	select SUPPORT_SPL
-
 config ARCH_ORION5X
 	bool "Marvell Orion"
 	select CPU_ARM926EJS
@@ -1969,7 +1964,6 @@ source "board/Marvell/aspenite/Kconfig"
 source "board/Marvell/gplugd/Kconfig"
 source "board/Marvell/octeontx/Kconfig"
 source "board/Marvell/octeontx2/Kconfig"
-source "board/armadeus/apf27/Kconfig"
 source "board/armltd/vexpress/Kconfig"
 source "board/armltd/vexpress64/Kconfig"
 source "board/cortina/presidio-asic/Kconfig"
board/armadeus/apf27/Kconfig deleted +0 -15
deleted file mode 100644
index 65544a844834..000000000000
@@ -1,15 +0,0 @@
-if TARGET_APF27
-
-config SYS_BOARD
-	default "apf27"
-
-config SYS_VENDOR
-	default "armadeus"
-
-config SYS_SOC
-	default "mx27"
-
-config SYS_CONFIG_NAME
-	default "apf27"
-
-endif
board/armadeus/apf27/MAINTAINERS deleted +0 -7
deleted file mode 100644
index 09f0525c51b9..000000000000
@@ -1,7 +0,0 @@
-APF27 BOARD
-M:	Philippe Reynes <[email protected]>
-M:	Eric Jarrige <[email protected]>
-S:	Maintained
-F:	board/armadeus/apf27/
-F:	include/configs/apf27.h
-F:	configs/apf27_defconfig
board/armadeus/apf27/Makefile deleted +0 -12
deleted file mode 100644
index 57129718d5c5..000000000000
@@ -1,12 +0,0 @@
-#
-# (C) Copyright 2000-2004
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-# (C) Copyright 2012-2013
-# Eric Jarrige <[email protected]>
-#
-# SPDX-License-Identifier:    GPL-2.0+
-#
-
-obj-y	:= apf27.o
-obj-y	+= lowlevel_init.o
-obj-$(CONFIG_FPGA)	+= fpga.o
board/armadeus/apf27/apf27.c deleted +0 -258

258 lines not on this page · raw message

board/armadeus/apf27/apf27.h deleted +0 -488

488 lines not on this page · raw message

board/armadeus/apf27/fpga.c deleted +0 -226

226 lines not on this page · raw message

board/armadeus/apf27/fpga.h deleted +0 -24
deleted file mode 100644
index d6394e976a85..000000000000
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2002-2013
- * Eric Jarrige <[email protected]>
- *
- * based on the files by
- * Rich Ireland, Enterasys Networks, rireland at enterasys.com
- * and
- * Keith Outwater, keith_outwater at mvis.com
- */
-extern void APF27_init_fpga(void);
-
-extern int fpga_pre_fn(int cookie);
-extern int fpga_pgm_fn(int assert_pgm, int flush, int cookie);
-extern int fpga_cs_fn(int assert_cs, int flush, int cookie);
-extern int fpga_init_fn(int cookie);
-extern int fpga_done_fn(int cookie);
-extern int fpga_clk_fn(int assert_clk, int flush, int cookie);
-extern int fpga_wr_fn(int assert_write, int flush, int cookie);
-extern int fpga_rdata_fn(unsigned char *data, int cookie);
-extern int fpga_wdata_fn(unsigned char data, int flush, int cookie);
-extern int fpga_abort_fn(int cookie);
-extern int fpga_post_fn(int cookie);
-extern int fpga_busy_fn(int cookie);
board/armadeus/apf27/lowlevel_init.S deleted +0 -166

166 lines not on this page · raw message

configs/apf27_defconfig deleted +0 -59

59 lines not on this page · raw message

drivers/serial/Kconfig +1 -1
index 79ad0a1b3435..404cc6b7d703 100644
@@ -635,7 +635,7 @@ config MCFUART
 
 config MXC_UART
 	bool "IMX serial port support"
-	depends on ARCH_MX25 || ARCH_MX31 || TARGET_APF27 || TARGET_FLEA3 \
+	depends on ARCH_MX25 || ARCH_MX31 || TARGET_FLEA3 \
 		|| MX5 || MX6 || MX7 || IMX8M
 	help
 	  If you have a machine based on a Motorola IMX CPU you
include/configs/apf27.h deleted +0 -266

266 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#22 lore raw

PATCH 12/25 arm: Remove mx25pdk board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Fabio Estevam <[email protected]>
---
 arch/arm/mach-imx/mx2/Kconfig        |   7 -
 board/freescale/mx25pdk/Kconfig      |  15 --
 board/freescale/mx25pdk/MAINTAINERS  |   6 -
 board/freescale/mx25pdk/Makefile     |   7 -
 board/freescale/mx25pdk/imximage.cfg |  64 ---------
 board/freescale/mx25pdk/mx25pdk.c    | 198 ---------------------------
 configs/mx25pdk_defconfig            |  31 -----
 include/configs/mx25pdk.h            | 178 ------------------------
 8 files changed, 506 deletions(-)
 delete mode 100644 board/freescale/mx25pdk/Kconfig
 delete mode 100644 board/freescale/mx25pdk/MAINTAINERS
 delete mode 100644 board/freescale/mx25pdk/Makefile
 delete mode 100644 board/freescale/mx25pdk/imximage.cfg
 delete mode 100644 board/freescale/mx25pdk/mx25pdk.c
 delete mode 100644 configs/mx25pdk_defconfig
 delete mode 100644 include/configs/mx25pdk.h
arch/arm/mach-imx/mx2/Kconfig +0 -7
index 30a331ae43b7..fad5dcc940aa 100644
@@ -8,12 +8,6 @@ choice
 	prompt "MX25 board select"
 	optional
 
-config TARGET_MX25PDK
-	bool "Support mx25pdk"
-	select BOARD_LATE_INIT
-	select CPU_ARM926EJS
-	select BOARD_EARLY_INIT_F
-
 config TARGET_ZMX25
 	bool "Support zmx25"
 	select BOARD_LATE_INIT
@@ -24,7 +18,6 @@ endchoice
 config SYS_SOC
 	default "mx25"
 
-source "board/freescale/mx25pdk/Kconfig"
 source "board/syteco/zmx25/Kconfig"
 
 endif
board/freescale/mx25pdk/Kconfig deleted +0 -15
deleted file mode 100644
index af06b4c827e1..000000000000
@@ -1,15 +0,0 @@
-if TARGET_MX25PDK
-
-config SYS_BOARD
-	default "mx25pdk"
-
-config SYS_VENDOR
-	default "freescale"
-
-config SYS_SOC
-	default "mx25"
-
-config SYS_CONFIG_NAME
-	default "mx25pdk"
-
-endif
board/freescale/mx25pdk/MAINTAINERS deleted +0 -6
deleted file mode 100644
index fa4651e2dfbc..000000000000
@@ -1,6 +0,0 @@
-MX25PDK BOARD
-M:	Fabio Estevam <[email protected]>
-S:	Maintained
-F:	board/freescale/mx25pdk/
-F:	include/configs/mx25pdk.h
-F:	configs/mx25pdk_defconfig
board/freescale/mx25pdk/Makefile deleted +0 -7
deleted file mode 100644
index d3697d3f5f09..000000000000
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2007, Guennadi Liakhovetski <[email protected]>
-#
-# (C) Copyright 2011 Freescale Semiconductor, Inc.
-
-obj-y	:= mx25pdk.o
board/freescale/mx25pdk/imximage.cfg deleted +0 -64

64 lines not on this page · raw message

board/freescale/mx25pdk/mx25pdk.c deleted +0 -198

198 lines not on this page · raw message

configs/mx25pdk_defconfig deleted +0 -31
deleted file mode 100644
index 58d42444b37f..000000000000
@@ -1,31 +0,0 @@
-CONFIG_ARM=y
-CONFIG_ARCH_MX25=y
-CONFIG_SYS_TEXT_BASE=0x81200000
-CONFIG_NR_DRAM_BANKS=1
-CONFIG_ENV_SIZE=0x2000
-CONFIG_ENV_OFFSET=0x60000
-CONFIG_TARGET_MX25PDK=y
-CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx25pdk/imximage.cfg"
-CONFIG_DEFAULT_FDT_FILE="imx25-pdk.dtb"
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-CONFIG_CMD_FUSE=y
-CONFIG_CMD_I2C=y
-CONFIG_CMD_MMC=y
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_CACHE=y
-CONFIG_CMD_DATE=y
-CONFIG_CMD_FS_GENERIC=y
-CONFIG_DOS_PARTITION=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_MMC=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_FSL_ESDHC_IMX=y
-CONFIG_MII=y
-CONFIG_MXC_UART=y
-CONFIG_FS_EXT4=y
-CONFIG_FS_FAT=y
-CONFIG_OF_LIBFDT=y
include/configs/mx25pdk.h deleted +0 -178

178 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#23 lore raw

PATCH 13/25 arm: Remove openrd board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Stefan Roese <[email protected]>
---
 arch/arm/dts/Makefile                     |   3 -
 arch/arm/dts/kirkwood-openrd-base.dts     |  39 ------
 arch/arm/dts/kirkwood-openrd-client.dts   |  73 ----------
 arch/arm/dts/kirkwood-openrd-ultimate.dts |  55 --------
 arch/arm/dts/kirkwood-openrd.dtsi         | 122 ----------------
 arch/arm/mach-kirkwood/Kconfig            |   4 -
 board/Marvell/openrd/Kconfig              |  12 --
 board/Marvell/openrd/MAINTAINERS          |   8 --
 board/Marvell/openrd/Makefile             |  12 --
 board/Marvell/openrd/kwbimage.cfg         | 150 --------------------
 board/Marvell/openrd/openrd.c             | 162 ----------------------
 board/Marvell/openrd/openrd.h             |  29 ----
 configs/openrd_base_defconfig             |  49 -------
 configs/openrd_client_defconfig           |  49 -------
 configs/openrd_ultimate_defconfig         |  49 -------
 include/configs/openrd.h                  |  82 -----------
 16 files changed, 898 deletions(-)
 delete mode 100644 arch/arm/dts/kirkwood-openrd-base.dts
 delete mode 100644 arch/arm/dts/kirkwood-openrd-client.dts
 delete mode 100644 arch/arm/dts/kirkwood-openrd-ultimate.dts
 delete mode 100644 arch/arm/dts/kirkwood-openrd.dtsi
 delete mode 100644 board/Marvell/openrd/Kconfig
 delete mode 100644 board/Marvell/openrd/MAINTAINERS
 delete mode 100644 board/Marvell/openrd/Makefile
 delete mode 100644 board/Marvell/openrd/kwbimage.cfg
 delete mode 100644 board/Marvell/openrd/openrd.c
 delete mode 100644 board/Marvell/openrd/openrd.h
 delete mode 100644 configs/openrd_base_defconfig
 delete mode 100644 configs/openrd_client_defconfig
 delete mode 100644 configs/openrd_ultimate_defconfig
 delete mode 100644 include/configs/openrd.h
arch/arm/dts/Makefile +0 -3
index af2842a0f8bf..b8f88bca0af9 100644
@@ -58,9 +58,6 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += \
 	kirkwood-ns2lite.dtb \
 	kirkwood-ns2max.dtb \
 	kirkwood-ns2mini.dtb \
-	kirkwood-openrd-base.dtb \
-	kirkwood-openrd-client.dtb \
-	kirkwood-openrd-ultimate.dtb \
 	kirkwood-pogo_e02.dtb \
 	kirkwood-sheevaplug.dtb
 
arch/arm/dts/kirkwood-openrd-base.dts deleted +0 -39
deleted file mode 100644
index 094191ece3d7..000000000000
@@ -1,39 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Marvell OpenRD Base Board Description
- *
- * Andrew Lunn <[email protected]>
- *
- * This file contains the definitions that are specific to OpenRD
- * base variant of the Marvell Kirkwood Development Board.
- */
-
-/dts-v1/;
-
-#include "kirkwood-openrd.dtsi"
-
-/ {
-	model = "OpenRD Base";
-	compatible = "marvell,openrd-base", "marvell,openrd", "marvell,kirkwood-88f6281", "marvell,kirkwood";
-
-	ocp at f1000000 {
-		serial at 12100 {
-			status = "okay";
-		};
-	};
-};
-
-&mdio {
-	status = "okay";
-
-	ethphy0: ethernet-phy at 8 {
-		reg = <8>;
-	};
-};
-
-&eth0 {
-	status = "okay";
-	ethernet0-port at 0 {
-		phy-handle = <&ethphy0>;
-	};
-};
arch/arm/dts/kirkwood-openrd-client.dts deleted +0 -73

73 lines not on this page · raw message

arch/arm/dts/kirkwood-openrd-ultimate.dts deleted +0 -55

55 lines not on this page · raw message

arch/arm/dts/kirkwood-openrd.dtsi deleted +0 -122

122 lines not on this page · raw message

arch/arm/mach-kirkwood/Kconfig +0 -4
index ae44cb665e0b..6082bdb35b6c 100644
@@ -4,9 +4,6 @@ choice
 	prompt "Marvell Kirkwood board select"
 	optional
 
-config TARGET_OPENRD
-	bool "Marvell OpenRD Board"
-
 config TARGET_DREAMPLUG
 	bool "DreamPlug Board"
 
@@ -70,7 +67,6 @@ endchoice
 config SYS_SOC
 	default "kirkwood"
 
-source "board/Marvell/openrd/Kconfig"
 source "board/Marvell/dreamplug/Kconfig"
 source "board/Synology/ds109/Kconfig"
 source "board/Marvell/guruplug/Kconfig"
board/Marvell/openrd/Kconfig deleted +0 -12
deleted file mode 100644
index 124b66da0f13..000000000000
@@ -1,12 +0,0 @@
-if TARGET_OPENRD
-
-config SYS_BOARD
-	default "openrd"
-
-config SYS_VENDOR
-	default "Marvell"
-
-config SYS_CONFIG_NAME
-	default "openrd"
-
-endif
board/Marvell/openrd/MAINTAINERS deleted +0 -8
deleted file mode 100644
index 8170452b44aa..000000000000
@@ -1,8 +0,0 @@
-OPENRD / OPENRD_CLIENT BOARD
-M:	Stefan Roese <[email protected]>
-S:	Maintained
-F:	board/Marvell/openrd/
-F:	include/configs/openrd.h
-F:	configs/openrd_base_defconfig
-F:	configs/openrd_client_defconfig
-F:	configs/openrd_ultimate_defconfig
board/Marvell/openrd/Makefile deleted +0 -12
deleted file mode 100644
index ecebb421f703..000000000000
@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2009
-# Net Insight <www.netinsight.net>
-# Written-by: Simon Kagstrom <[email protected]>
-#
-# Based on sheevaplug:
-# (C) Copyright 2009
-# Marvell Semiconductor <www.marvell.com>
-# Written-by: Prafulla Wadaskar <[email protected]>
-
-obj-y	:= openrd.o
board/Marvell/openrd/kwbimage.cfg deleted +0 -150

150 lines not on this page · raw message

board/Marvell/openrd/openrd.c deleted +0 -162

162 lines not on this page · raw message

board/Marvell/openrd/openrd.h deleted +0 -29
deleted file mode 100644
index ade8d2739263..000000000000
@@ -1,29 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2009
- * Net Insight <www.netinsight.net>
- * Written-by: Simon Kagstrom <[email protected]>
- *
- * Based on sheevaplug.h:
- * (C) Copyright 2009
- * Marvell Semiconductor <www.marvell.com>
- * Written-by: Prafulla Wadaskar <[email protected]>
- */
-
-#ifndef __OPENRD_BASE_H
-#define __OPENRD_BASE_H
-
-#define OPENRD_OE_LOW		(~(1<<28))        /* RS232 / RS485 */
-#define OPENRD_OE_HIGH		(~(1<<2))         /* SD / UART1 */
-#define OPENRD_OE_VAL_LOW		(0)       /* Sel RS232 */
-#define OPENRD_OE_VAL_HIGH		(1 << 2)  /* Sel SD */
-
-/* PHY related */
-#define MV88E1116_LED_FCTRL_REG		10
-#define MV88E1116_CPRSP_CR3_REG		21
-#define MV88E1116_MAC_CTRL_REG		21
-#define MV88E1116_PGADR_REG		22
-#define MV88E1116_RGMII_TXTM_CTRL	(1 << 4)
-#define MV88E1116_RGMII_RXTM_CTRL	(1 << 5)
-
-#endif /* __OPENRD_BASE_H */
configs/openrd_base_defconfig deleted +0 -49

49 lines not on this page · raw message

configs/openrd_client_defconfig deleted +0 -49

49 lines not on this page · raw message

configs/openrd_ultimate_defconfig deleted +0 -49

49 lines not on this page · raw message

include/configs/openrd.h deleted +0 -82

82 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#24 lore raw

PATCH 14/25 arm: Remove sheevaplug board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Prafulla Wadaskar <[email protected]>
---
 arch/arm/dts/Makefile                        |   3 +-
 arch/arm/dts/kirkwood-sheevaplug-common.dtsi | 104 --------------
 arch/arm/dts/kirkwood-sheevaplug.dts         |  42 ------
 arch/arm/mach-kirkwood/Kconfig               |   4 -
 board/Marvell/sheevaplug/Kconfig             |  12 --
 board/Marvell/sheevaplug/MAINTAINERS         |   6 -
 board/Marvell/sheevaplug/Makefile            |   7 -
 board/Marvell/sheevaplug/kwbimage.cfg        | 144 -------------------
 board/Marvell/sheevaplug/sheevaplug.c        | 135 -----------------
 board/Marvell/sheevaplug/sheevaplug.h        |  24 ----
 configs/sheevaplug_defconfig                 |  55 -------
 include/configs/sheevaplug.h                 |  73 ----------
 12 files changed, 1 insertion(+), 608 deletions(-)
 delete mode 100644 arch/arm/dts/kirkwood-sheevaplug-common.dtsi
 delete mode 100644 arch/arm/dts/kirkwood-sheevaplug.dts
 delete mode 100644 board/Marvell/sheevaplug/Kconfig
 delete mode 100644 board/Marvell/sheevaplug/MAINTAINERS
 delete mode 100644 board/Marvell/sheevaplug/Makefile
 delete mode 100644 board/Marvell/sheevaplug/kwbimage.cfg
 delete mode 100644 board/Marvell/sheevaplug/sheevaplug.c
 delete mode 100644 board/Marvell/sheevaplug/sheevaplug.h
 delete mode 100644 configs/sheevaplug_defconfig
 delete mode 100644 include/configs/sheevaplug.h
arch/arm/dts/Makefile +1 -2
index b8f88bca0af9..12a74ed0eb08 100644
@@ -58,8 +58,7 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += \
 	kirkwood-ns2lite.dtb \
 	kirkwood-ns2max.dtb \
 	kirkwood-ns2mini.dtb \
-	kirkwood-pogo_e02.dtb \
-	kirkwood-sheevaplug.dtb
+	kirkwood-pogo_e02.dtb
 
 dtb-$(CONFIG_MACH_S900) += \
 	bubblegum_96.dtb
arch/arm/dts/kirkwood-sheevaplug-common.dtsi deleted +0 -104

104 lines not on this page · raw message

arch/arm/dts/kirkwood-sheevaplug.dts deleted +0 -42

42 lines not on this page · raw message

arch/arm/mach-kirkwood/Kconfig +0 -4
index 6082bdb35b6c..1d2ba886dd1a 100644
@@ -13,9 +13,6 @@ config TARGET_DS109
 config TARGET_GURUPLUG
 	bool "GuruPlug Board"
 
-config TARGET_SHEEVAPLUG
-	bool "SheevaPlug Board"
-
 config TARGET_LSXL
 	bool "lsxl Board"
 
@@ -70,7 +67,6 @@ config SYS_SOC
 source "board/Marvell/dreamplug/Kconfig"
 source "board/Synology/ds109/Kconfig"
 source "board/Marvell/guruplug/Kconfig"
-source "board/Marvell/sheevaplug/Kconfig"
 source "board/buffalo/lsxl/Kconfig"
 source "board/cloudengines/pogo_e02/Kconfig"
 source "board/d-link/dns325/Kconfig"
board/Marvell/sheevaplug/Kconfig deleted +0 -12
deleted file mode 100644
index e5f928472994..000000000000
@@ -1,12 +0,0 @@
-if TARGET_SHEEVAPLUG
-
-config SYS_BOARD
-	default "sheevaplug"
-
-config SYS_VENDOR
-	default "Marvell"
-
-config SYS_CONFIG_NAME
-	default "sheevaplug"
-
-endif
board/Marvell/sheevaplug/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 2b0103d07dc9..000000000000
@@ -1,6 +0,0 @@
-SHEEVAPLUG BOARD
-M:	Prafulla Wadaskar <[email protected]>
-S:	Maintained
-F:	board/Marvell/sheevaplug/
-F:	include/configs/sheevaplug.h
-F:	configs/sheevaplug_defconfig
board/Marvell/sheevaplug/Makefile deleted +0 -7
deleted file mode 100644
index c39dd03e2d30..000000000000
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2009
-# Marvell Semiconductor <www.marvell.com>
-# Written-by: Prafulla Wadaskar <[email protected]>
-
-obj-y	:= sheevaplug.o
board/Marvell/sheevaplug/kwbimage.cfg deleted +0 -144

144 lines not on this page · raw message

board/Marvell/sheevaplug/sheevaplug.c deleted +0 -135

135 lines not on this page · raw message

board/Marvell/sheevaplug/sheevaplug.h deleted +0 -24
deleted file mode 100644
index e026c1b53bd0..000000000000
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2009
- * Marvell Semiconductor <www.marvell.com>
- * Written-by: Prafulla Wadaskar <[email protected]>
- */
-
-#ifndef __SHEEVAPLUG_H
-#define __SHEEVAPLUG_H
-
-#define SHEEVAPLUG_OE_LOW		(~(0))
-#define SHEEVAPLUG_OE_HIGH		(~(0))
-#define SHEEVAPLUG_OE_VAL_LOW		(1 << 29)	/* USB_PWEN low */
-#define SHEEVAPLUG_OE_VAL_HIGH		(1 << 17)	/* LED pin high */
-
-/* PHY related */
-#define MV88E1116_LED_FCTRL_REG		10
-#define MV88E1116_CPRSP_CR3_REG		21
-#define MV88E1116_MAC_CTRL_REG		21
-#define MV88E1116_PGADR_REG		22
-#define MV88E1116_RGMII_TXTM_CTRL	(1 << 4)
-#define MV88E1116_RGMII_RXTM_CTRL	(1 << 5)
-
-#endif /* __SHEEVAPLUG_H */
configs/sheevaplug_defconfig deleted +0 -55

55 lines not on this page · raw message

include/configs/sheevaplug.h deleted +0 -73

73 lines not on this page · raw message

Signature · 1 line
2.17.1
#25 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 4 lines · Tom Rini,

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

We did get the odd bug report from debian for sheevaplug. They were reasonably popular with enthusiasts at one point. Personally I wouldn't miss this board but it might be worth a heads up (hence adding Vagrant C. to the Cc).

Quoted 744 lines
Cc Prafulla Wadaskar <[email protected]>
---
 arch/arm/dts/Makefile                        |   3 +-
 arch/arm/dts/kirkwood-sheevaplug-common.dtsi | 104 --------------
 arch/arm/dts/kirkwood-sheevaplug.dts         |  42 ------
 arch/arm/mach-kirkwood/Kconfig               |   4 -
 board/Marvell/sheevaplug/Kconfig             |  12 --
 board/Marvell/sheevaplug/MAINTAINERS         |   6 -
 board/Marvell/sheevaplug/Makefile            |   7 -
 board/Marvell/sheevaplug/kwbimage.cfg        | 144 -------------------
 board/Marvell/sheevaplug/sheevaplug.c        | 135 -----------------
 board/Marvell/sheevaplug/sheevaplug.h        |  24 ----
 configs/sheevaplug_defconfig                 |  55 -------
 include/configs/sheevaplug.h                 |  73 ----------
 12 files changed, 1 insertion(+), 608 deletions(-)
 delete mode 100644 arch/arm/dts/kirkwood-sheevaplug-common.dtsi
 delete mode 100644 arch/arm/dts/kirkwood-sheevaplug.dts
 delete mode 100644 board/Marvell/sheevaplug/Kconfig
 delete mode 100644 board/Marvell/sheevaplug/MAINTAINERS
 delete mode 100644 board/Marvell/sheevaplug/Makefile
 delete mode 100644 board/Marvell/sheevaplug/kwbimage.cfg
 delete mode 100644 board/Marvell/sheevaplug/sheevaplug.c
 delete mode 100644 board/Marvell/sheevaplug/sheevaplug.h
 delete mode 100644 configs/sheevaplug_defconfig
 delete mode 100644 include/configs/sheevaplug.h
arch/arm/dts/Makefile +1 -2
index b8f88bca0af9..12a74ed0eb08 100644
@@ -58,8 +58,7 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += \
        kirkwood-ns2lite.dtb \
        kirkwood-ns2max.dtb \
        kirkwood-ns2mini.dtb \
-       kirkwood-pogo_e02.dtb \
-       kirkwood-sheevaplug.dtb
+       kirkwood-pogo_e02.dtb
 
 dtb-$(CONFIG_MACH_S900) += \
        bubblegum_96.dtb
arch/arm/dts/kirkwood-sheevaplug-common.dtsi deleted +0 -104
deleted file mode 100644
index 0a698d3b7393..000000000000
@@ -1,104 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * kirkwood-sheevaplug-common.dtsi - Common parts for Sheevaplugs
- *
- * Copyright (C) 2013 Simon Baatz <[email protected]>
- */
-
-#include "kirkwood.dtsi"
-#include "kirkwood-6281.dtsi"
-
-/ {
-       memory {
-               device_type = "memory";
-               reg = <0x00000000 0x20000000>;
-       };
-
-       chosen {
-               bootargs = "console=ttyS0,115200n8 earlyprintk";
-               stdout-path = &uart0;
-       };
-
-       ocp at f1000000 {
-               pinctrl: pin-controller at 10000 {
-
-                       pmx_usb_power_enable: pmx-usb-power-enable {
-                               marvell,pins = "mpp29";
-                               marvell,function = "gpio";
-                       };
-                       pmx_led_red: pmx-led-red {
-                               marvell,pins = "mpp46";
-                               marvell,function = "gpio";
-                       };
-                       pmx_led_blue: pmx-led-blue {
-                               marvell,pins = "mpp49";
-                               marvell,function = "gpio";
-                       };
-                       pmx_sdio_cd: pmx-sdio-cd {
-                               marvell,pins = "mpp44";
-                               marvell,function = "gpio";
-                       };
-                       pmx_sdio_wp: pmx-sdio-wp {
-                               marvell,pins = "mpp47";
-                               marvell,function = "gpio";
-                       };
-               };
-               serial at 12000 {
-                       status = "okay";
-               };
-       };
-
-       regulators {
-               compatible = "simple-bus";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               pinctrl-0 = <&pmx_usb_power_enable>;
-               pinctrl-names = "default";
-
-               usb_power: regulator at 1 {
-                       compatible = "regulator-fixed";
-                       reg = <1>;
-                       regulator-name = "USB Power";
-                       regulator-min-microvolt = <5000000>;
-                       regulator-max-microvolt = <5000000>;
-                       enable-active-high;
-                       regulator-always-on;
-                       regulator-boot-on;
-                       gpio = <&gpio0 29 0>;
-               };
-       };
-};
-
-&nand {
-       status = "okay";
-
-       partition at 0 {
-               label = "u-boot";
-               reg = <0x0000000 0x100000>;
-       };
-
-       partition at 100000 {
-               label = "uImage";
-               reg = <0x0100000 0x400000>;
-       };
-
-       partition at 500000 {
-               label = "root";
-               reg = <0x0500000 0x1fb00000>;
-       };
-};
-
-&mdio {
-       status = "okay";
-
-       ethphy0: ethernet-phy at 0 {
-               reg = <0>;
-       };
-};
-
-&eth0 {
-       status = "okay";
-       ethernet0-port at 0 {
-               phy-handle = <&ethphy0>;
-       };
-};
arch/arm/dts/kirkwood-sheevaplug.dts deleted +0 -14
deleted file mode 100644
index c73cc904e5c4..000000000000
@@ -1,42 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * kirkwood-sheevaplug.dts - Device tree file for Sheevaplug
- *
- * Copyright (C) 2013 Simon Baatz <[email protected]>
- */
-
-/dts-v1/;
-
-#include "kirkwood-sheevaplug-common.dtsi"
-
-/ {
-       model = "Globalscale Technologies SheevaPlug";
-       compatible = "globalscale,sheevaplug", "marvell,kirkwood-88f6281",

"marvell,kirkwood";

arch/arm/dts/kirkwood-sheevaplug.dts deleted +0 -28
-
-       ocp at f1000000 {
-               mvsdio at 90000 {
-                       pinctrl-0 = <&pmx_sdio>;
-                       pinctrl-names = "default";
-                       status = "okay";
-                       /* No CD or WP GPIOs */
-                       broken-cd;
-               };
-       };
-
-       gpio-leds {
-               compatible = "gpio-leds";
-               pinctrl-0 = <&pmx_led_blue &pmx_led_red>;
-               pinctrl-names = "default";
-
-               health {
-                       label = "sheevaplug:blue:health";
-                       gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
-                       default-state = "keep";
-               };
-
-               misc {
-                       label = "sheevaplug:red:misc";
-                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
-               };
-       };
-};
arch/arm/mach-kirkwood/Kconfig +0 -4
index 6082bdb35b6c..1d2ba886dd1a 100644
@@ -13,9 +13,6 @@ config TARGET_DS109
 config TARGET_GURUPLUG
        bool "GuruPlug Board"
 
-config TARGET_SHEEVAPLUG
-       bool "SheevaPlug Board"
-
 config TARGET_LSXL
        bool "lsxl Board"
 
@@ -70,7 +67,6 @@ config SYS_SOC
 source "board/Marvell/dreamplug/Kconfig"
 source "board/Synology/ds109/Kconfig"
 source "board/Marvell/guruplug/Kconfig"
-source "board/Marvell/sheevaplug/Kconfig"
 source "board/buffalo/lsxl/Kconfig"
 source "board/cloudengines/pogo_e02/Kconfig"
 source "board/d-link/dns325/Kconfig"
board/Marvell/sheevaplug/Kconfig deleted +0 -12
deleted file mode 100644
index e5f928472994..000000000000
@@ -1,12 +0,0 @@
-if TARGET_SHEEVAPLUG
-
-config SYS_BOARD
-       default "sheevaplug"
-
-config SYS_VENDOR
-       default "Marvell"
-
-config SYS_CONFIG_NAME
-       default "sheevaplug"
-
-endif
board/Marvell/sheevaplug/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 2b0103d07dc9..000000000000
@@ -1,6 +0,0 @@
-SHEEVAPLUG BOARD
-M:     Prafulla Wadaskar <[email protected]>
-S:     Maintained
-F:     board/Marvell/sheevaplug/
-F:     include/configs/sheevaplug.h
-F:     configs/sheevaplug_defconfig
board/Marvell/sheevaplug/Makefile deleted +0 -7
deleted file mode 100644
index c39dd03e2d30..000000000000
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2009
-# Marvell Semiconductor <www.marvell.com>
-# Written-by: Prafulla Wadaskar <[email protected]>
-
-obj-y  := sheevaplug.o
board/Marvell/sheevaplug/kwbimage.cfg deleted +0 -36
deleted file mode 100644
index f5206451da44..000000000000
@@ -1,144 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2009
-# Marvell Semiconductor <www.marvell.com>
-# Written-by: Prafulla Wadaskar <[email protected]>
-# Refer to doc/README.kwbimage for more details about how-to
-# configure and create kirkwood boot images.
-#
-
-# Boot Media configurations
-BOOT_FROM      nand
-NAND_ECC_MODE  default
-NAND_PAGE_SIZE 0x0800
-
-# SOC registers configuration using bootrom header extension
-# Maximum KWBIMAGE_MAX_CONFIG configurations allowed
-
-# Configure RGMII-0 interface pad voltage to 1.8V
-DATA 0xFFD100e0 0x1b1b1b9b
-
-#Dram initalization for SINGLE x16 CL=5 @ 400MHz
-DATA 0xFFD01400 0x43000c30     # DDR Configuration register
-# bit13-0:  0xc30 (3120 DDR2 clks refresh rate)
-# bit23-14: zero
-# bit24: 1= enable exit self refresh mode on DDR access
-# bit25: 1 required
-# bit29-26: zero
-# bit31-30: 01
-
-DATA 0xFFD01404 0x37543000     # DDR Controller Control Low
-# bit 4:    0=addr/cmd in smame cycle
-# bit 5:    0=clk is driven during self refresh, we don't care for APX
-# bit 6:    0=use recommended falling edge of clk for addr/cmd
-# bit14:    0=input buffer always powered up
-# bit18:    1=cpu lock transaction enabled
-# bit23-20: 5=recommended value for CL=5 and STARTBURST_DEL disabled

bit31=0
-# bit27-24: 7= CL+2, STARTBURST sample stages, for freqs 400MHz, unbuffered DIMM

board/Marvell/sheevaplug/kwbimage.cfg deleted +0 -72
-# bit30-28: 3 required
-# bit31:    0=no additional STARTBURST delay
-
-DATA 0xFFD01408 0x22125451     # DDR Timing (Low) (active cycles value +1)
-# bit3-0:   TRAS lsbs
-# bit7-4:   TRCD
-# bit11- 8: TRP
-# bit15-12: TWR
-# bit19-16: TWTR
-# bit20:    TRAS msb
-# bit23-21: 0x0
-# bit27-24: TRRD
-# bit31-28: TRTP
-
-DATA 0xFFD0140C 0x00000a33     #  DDR Timing (High)
-# bit6-0:   TRFC
-# bit8-7:   TR2R
-# bit10-9:  TR2W
-# bit12-11: TW2W
-# bit31-13: zero required
-
-DATA 0xFFD01410 0x000000cc     #  DDR Address Control
-# bit1-0:   00, Cs0width=x8
-# bit3-2:   11, Cs0size=1Gb
-# bit5-4:   00, Cs1width=x8
-# bit7-6:   11, Cs1size=1Gb
-# bit9-8:   00, Cs2width=nonexistent
-# bit11-10: 00, Cs2size =nonexistent
-# bit13-12: 00, Cs3width=nonexistent
-# bit15-14: 00, Cs3size =nonexistent
-# bit16:    0,  Cs0AddrSel
-# bit17:    0,  Cs1AddrSel
-# bit18:    0,  Cs2AddrSel
-# bit19:    0,  Cs3AddrSel
-# bit31-20: 0 required
-
-DATA 0xFFD01414 0x00000000     #  DDR Open Pages Control
-# bit0:    0,  OpenPage enabled
-# bit31-1: 0 required
-
-DATA 0xFFD01418 0x00000000     #  DDR Operation
-# bit3-0:   0x0, DDR cmd
-# bit31-4:  0 required
-
-DATA 0xFFD0141C 0x00000C52     #  DDR Mode
-# bit2-0:   2, BurstLen=2 required
-# bit3:     0, BurstType=0 required
-# bit6-4:   4, CL=5
-# bit7:     0, TestMode=0 normal
-# bit8:     0, DLL reset=0 normal
-# bit11-9:  6, auto-precharge write recovery ????????????
-# bit12:    0, PD must be zero
-# bit31-13: 0 required
-
-DATA 0xFFD01420 0x00000040     #  DDR Extended Mode
-# bit0:    0,  DDR DLL enabled
-# bit1:    0,  DDR drive strenght normal
-# bit2:    0,  DDR ODT control lsd (disabled)
-# bit5-3:  000, required
-# bit6:    1,  DDR ODT control msb, (disabled)
-# bit9-7:  000, required
-# bit10:   0,  differential DQS enabled
-# bit11:   0, required
-# bit12:   0, DDR output buffer enabled
-# bit31-13: 0 required
-
-DATA 0xFFD01424 0x0000F17F     #  DDR Controller Control High
-# bit2-0:  111, required
-# bit3  :  1  , MBUS Burst Chop disabled
-# bit6-4:  111, required
-# bit7  :  0
-# bit8  :  1  , add writepath sample stage, must be 1 for DDR freq >=

300MHz

board/Marvell/sheevaplug/kwbimage.cfg deleted +0 -35
-# bit9  :  0  , no half clock cycle addition to dataout
-# bit10 :  0  , 1/4 clock cycle skew enabled for addr/ctl signals
-# bit11 :  0  , 1/4 clock cycle skew disabled for write mesh
-# bit15-12: 1111 required
-# bit31-16: 0    required
-
-DATA 0xFFD01428 0x00085520     # DDR2 ODT Read Timing (default values)
-DATA 0xFFD0147C 0x00008552     # DDR2 ODT Write Timing (default values)
-
-DATA 0xFFD01500 0x00000000     # CS[0]n Base address to 0x0
-DATA 0xFFD01504 0x0FFFFFF1     # CS[0]n Size
-# bit0:    1,  Window enabled
-# bit1:    0,  Write Protect disabled
-# bit3-2:  00, CS0 hit selected
-# bit23-4: ones, required
-# bit31-24: 0x0F, Size (i.e. 256MB)
-
-DATA 0xFFD01508 0x10000000     # CS[1]n Base address to 256Mb
-DATA 0xFFD0150C 0x0FFFFFF5     # CS[1]n Size 256Mb Window enabled for CS1
-
-DATA 0xFFD01514 0x00000000     # CS[2]n Size, window disabled
-DATA 0xFFD0151C 0x00000000     # CS[3]n Size, window disabled
-
-DATA 0xFFD01494 0x00030000     #  DDR ODT Control (Low)
-DATA 0xFFD01498 0x00000000     #  DDR ODT Control (High)
-# bit1-0:  00, ODT0 controlled by ODT Control (low) register above
-# bit3-2:  01, ODT1 active NEVER!
-# bit31-4: zero, required
-
-DATA 0xFFD0149C 0x0000E803     # CPU ODT Control
-DATA 0xFFD01480 0x00000001     # DDR Initialization Control
-#bit0=1, enable DDR init upon this register write
-
-# End of Header extension
-DATA 0x0 0x0
board/Marvell/sheevaplug/sheevaplug.c deleted +0 -24
deleted file mode 100644
index 6311ed3b2e59..000000000000
@@ -1,135 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2009
- * Marvell Semiconductor <www.marvell.com>
- * Written-by: Prafulla Wadaskar <[email protected]>
- */
-
-#include <common.h>
-#include <init.h>
-#include <miiphy.h>
-#include <net.h>
-#include <asm/mach-types.h>
-#include <asm/arch/cpu.h>
-#include <asm/arch/soc.h>
-#include <asm/arch/mpp.h>
-#include "sheevaplug.h"
-
-DECLARE_GLOBAL_DATA_PTR;
-
-int board_early_init_f(void)
-{
-       /*
-        * default gpio configuration
-        * There are maximum 64 gpios controlled through 2 sets of

registers

board/Marvell/sheevaplug/sheevaplug.c deleted +0 -111
-        * the  below configuration configures mainly initial LED status
-        */
-       mvebu_config_gpio(SHEEVAPLUG_OE_VAL_LOW,
-                         SHEEVAPLUG_OE_VAL_HIGH,
-                         SHEEVAPLUG_OE_LOW, SHEEVAPLUG_OE_HIGH);
-
-       /* Multi-Purpose Pins Functionality configuration */
-       static const u32 kwmpp_config[] = {
-               MPP0_NF_IO2,
-               MPP1_NF_IO3,
-               MPP2_NF_IO4,
-               MPP3_NF_IO5,
-               MPP4_NF_IO6,
-               MPP5_NF_IO7,
-               MPP6_SYSRST_OUTn,
-               MPP7_GPO,
-               MPP8_UART0_RTS,
-               MPP9_UART0_CTS,
-               MPP10_UART0_TXD,
-               MPP11_UART0_RXD,
-               MPP12_SD_CLK,
-               MPP13_SD_CMD,
-               MPP14_SD_D0,
-               MPP15_SD_D1,
-               MPP16_SD_D2,
-               MPP17_SD_D3,
-               MPP18_NF_IO0,
-               MPP19_NF_IO1,
-               MPP20_GPIO,
-               MPP21_GPIO,
-               MPP22_GPIO,
-               MPP23_GPIO,
-               MPP24_GPIO,
-               MPP25_GPIO,
-               MPP26_GPIO,
-               MPP27_GPIO,
-               MPP28_GPIO,
-               MPP29_TSMP9,
-               MPP30_GPIO,
-               MPP31_GPIO,
-               MPP32_GPIO,
-               MPP33_GPIO,
-               MPP34_GPIO,
-               MPP35_GPIO,
-               MPP36_GPIO,
-               MPP37_GPIO,
-               MPP38_GPIO,
-               MPP39_GPIO,
-               MPP40_GPIO,
-               MPP41_GPIO,
-               MPP42_GPIO,
-               MPP43_GPIO,
-               MPP44_GPIO,
-               MPP45_GPIO,
-               MPP46_GPIO,
-               MPP47_GPIO,
-               MPP48_GPIO,
-               MPP49_GPIO,
-               0
-       };
-       kirkwood_mpp_conf(kwmpp_config, NULL);
-       return 0;
-}
-
-int board_init(void)
-{
-       /*
-        * arch number of board
-        */
-       gd->bd->bi_arch_number = MACH_TYPE_SHEEVAPLUG;
-
-       /* adress of boot parameters */
-       gd->bd->bi_boot_params = mvebu_sdram_bar(0) + 0x100;
-
-       return 0;
-}
-
-#ifdef CONFIG_RESET_PHY_R
-/* Configure and enable MV88E1116 PHY */
-void reset_phy(void)
-{
-       u16 reg;
-       u16 devadr;
-       char *name = "egiga0";
-
-       if (miiphy_set_current_dev(name))
-               return;
-
-       /* command to read PHY dev address */
-       if (miiphy_read(name, 0xEE, 0xEE, (u16 *) &devadr)) {
-               printf("Err..%s could not read PHY dev address\n",
-                       __FUNCTION__);
-               return;
-       }
-
-       /*
-        * Enable RGMII delay on Tx and Rx for CPU port
-        * Ref: sec 4.7.2 of chip datasheet
-        */
-       miiphy_write(name, devadr, MV88E1116_PGADR_REG, 2);
-       miiphy_read(name, devadr, MV88E1116_MAC_CTRL_REG, &reg);
-       reg |= (MV88E1116_RGMII_RXTM_CTRL | MV88E1116_RGMII_TXTM_CTRL);
-       miiphy_write(name, devadr, MV88E1116_MAC_CTRL_REG, reg);
-       miiphy_write(name, devadr, MV88E1116_PGADR_REG, 0);
-
-       /* reset the phy */
-       miiphy_reset(name, devadr);
-
-       printf("88E1116 Initialized on %s\n", name);
-}
-#endif /* CONFIG_RESET_PHY_R */
board/Marvell/sheevaplug/sheevaplug.h deleted +0 -24
deleted file mode 100644
index e026c1b53bd0..000000000000
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2009
- * Marvell Semiconductor <www.marvell.com>
- * Written-by: Prafulla Wadaskar <[email protected]>
- */
-
-#ifndef __SHEEVAPLUG_H
-#define __SHEEVAPLUG_H
-
-#define SHEEVAPLUG_OE_LOW              (~(0))
-#define SHEEVAPLUG_OE_HIGH             (~(0))
-#define SHEEVAPLUG_OE_VAL_LOW          (1 << 29)       /* USB_PWEN low */
-#define SHEEVAPLUG_OE_VAL_HIGH         (1 << 17)       /* LED pin high */
-
-/* PHY related */
-#define MV88E1116_LED_FCTRL_REG                10
-#define MV88E1116_CPRSP_CR3_REG                21
-#define MV88E1116_MAC_CTRL_REG         21
-#define MV88E1116_PGADR_REG            22
-#define MV88E1116_RGMII_TXTM_CTRL      (1 << 4)
-#define MV88E1116_RGMII_RXTM_CTRL      (1 << 5)
-
-#endif /* __SHEEVAPLUG_H */
configs/sheevaplug_defconfig deleted +0 -55
deleted file mode 100644
index 34da356b8e2a..000000000000
@@ -1,55 +0,0 @@
-CONFIG_ARM=y
-CONFIG_SYS_DCACHE_OFF=y
-CONFIG_ARCH_CPU_INIT=y
-CONFIG_SYS_THUMB_BUILD=y
-CONFIG_ARCH_KIRKWOOD=y
-CONFIG_SYS_TEXT_BASE=0x600000
-CONFIG_NR_DRAM_BANKS=2
-CONFIG_TARGET_SHEEVAPLUG=y
-CONFIG_ENV_SIZE=0x20000
-CONFIG_ENV_OFFSET=0x80000
-CONFIG_IDENT_STRING="\nMarvell-Sheevaplug"
-CONFIG_DEFAULT_DEVICE_TREE="kirkwood-sheevaplug"
-# CONFIG_SYS_MALLOC_F is not set
-CONFIG_BOOTDELAY=3
-CONFIG_USE_PREBOOT=y
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-# CONFIG_CMD_FLASH is not set
-CONFIG_CMD_IDE=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_NAND=y
-CONFIG_CMD_USB=y
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_EXT2=y
-CONFIG_CMD_EXT4=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_JFFS2=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
 
-CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:512K(uboot),512K(env),4M(kernel),-(rootfs)"
-CONFIG_CMD_UBI=y
-CONFIG_ISO_PARTITION=y
-CONFIG_OF_CONTROL=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_NAND=y
-CONFIG_NETCONSOLE=y
-CONFIG_DM=y
-CONFIG_MVSATA_IDE=y
-CONFIG_MTD=y
-CONFIG_MTD_RAW_NAND=y
-CONFIG_MVGBE=y
-CONFIG_MII=y
-CONFIG_DM_RTC=y
-CONFIG_RTC_MV=y
-CONFIG_SYS_NS16550=y
-CONFIG_USB=y
-CONFIG_DM_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_LZMA=y
-CONFIG_BZIP2=y
include/configs/sheevaplug.h deleted +0 -74
deleted file mode 100644
index e1f8fb8ac84b..000000000000
@@ -1,73 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2009-2014
- * Gerald Kerma <[email protected]>
- * Marvell Semiconductor <www.marvell.com>
- * Written-by: Prafulla Wadaskar <[email protected]>
- */
-
-#ifndef _CONFIG_SHEEVAPLUG_H
-#define _CONFIG_SHEEVAPLUG_H
-
-/*
- * High Level Configuration Options (easy to change)
- */
-#define CONFIG_FEROCEON_88FR131        1       /* CPU Core subversion */
-
-#include "mv-plug-common.h"
-
-/*
- *  Environment variables configurations
- */
-/*
- * max 4k env size is enough, but in case of nand
- * it has to be rounded to sector size
- */
-/*
- * Environment is right behind U-Boot in flash. Make sure U-Boot
- * doesn't grow into the environment area.
- */
-#define CONFIG_BOARD_SIZE_LIMIT                CONFIG_ENV_OFFSET
-
-/*
- * Default environment variables
- */
-#define CONFIG_BOOTCOMMAND             "${x_bootcmd_kernel}; " \
-       "setenv bootargs ${x_bootargs} ${x_bootargs_root}; "    \
-       "bootm 0x6400000;"
-
-#define CONFIG_EXTRA_ENV_SETTINGS      "x_bootargs=console"    \
-       "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT        \
-       "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
-       "x_bootcmd_usb=usb start\0" \
-       "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
-
-/*
- * Ethernet Driver configuration
- */
-#ifdef CONFIG_CMD_NET
-#define CONFIG_MVGBE_PORTS     {1, 0}  /* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR    0
-#endif /* CONFIG_CMD_NET */
-
-/*
- * SDIO/MMC Card Configuration
- */
-#ifdef CONFIG_CMD_MMC
-#define CONFIG_MVEBU_MMC
-#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
-#endif /* CONFIG_CMD_MMC */
-
-/*
- * SATA driver configuration
- */
-#ifdef CONFIG_IDE
-#define __io
-#define CONFIG_IDE_PREINIT
-#define CONFIG_MVSATA_IDE_USE_PORT0
-#define CONFIG_MVSATA_IDE_USE_PORT1
-#define CONFIG_SYS_ATA_IDE0_OFFSET     MV_SATA_PORT0_OFFSET
-#define CONFIG_SYS_ATA_IDE1_OFFSET     MV_SATA_PORT1_OFFSET
-#endif /* CONFIG_IDE */
-
-#endif /* _CONFIG_SHEEVAPLUG_H */
--

2.17.1

#26 lore raw

PATCH 14/25 arm: Remove sheevaplug board

If you decide to do this, please make sure you advertise it more widely than just this list.

I have a sheevaplug that I'd be sad to have to decommission. For the last decade, with never a complaint, it's been happily serving DHCP, DNS, and NTP to about 20 machines in my home network. I like it because the slightly unusual architecture makes it slightly less attractive as a target to the bad-guys out there.

Maybe I'll replace it with a Raspberry Pi.

Oh well: To everything there is a season...

Rick

Quoted 758 lines · Chris Packham
Quoted 4 lines · Tom Rini,

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

We did get the odd bug report from debian for sheevaplug. They were reasonably popular with enthusiasts at one point. Personally I wouldn't miss this board but it might be worth a heads up (hence adding Vagrant C. to the Cc).

Quoted 744 lines
Cc Prafulla Wadaskar <[email protected]>
---
 arch/arm/dts/Makefile                        |   3 +-
 arch/arm/dts/kirkwood-sheevaplug-common.dtsi | 104 --------------
 arch/arm/dts/kirkwood-sheevaplug.dts         |  42 ------
 arch/arm/mach-kirkwood/Kconfig               |   4 -
 board/Marvell/sheevaplug/Kconfig             |  12 --
 board/Marvell/sheevaplug/MAINTAINERS         |   6 -
 board/Marvell/sheevaplug/Makefile            |   7 -
 board/Marvell/sheevaplug/kwbimage.cfg        | 144 -------------------
 board/Marvell/sheevaplug/sheevaplug.c        | 135 -----------------
 board/Marvell/sheevaplug/sheevaplug.h        |  24 ----
 configs/sheevaplug_defconfig                 |  55 -------
 include/configs/sheevaplug.h                 |  73 ----------
 12 files changed, 1 insertion(+), 608 deletions(-)
 delete mode 100644 arch/arm/dts/kirkwood-sheevaplug-common.dtsi
 delete mode 100644 arch/arm/dts/kirkwood-sheevaplug.dts
 delete mode 100644 board/Marvell/sheevaplug/Kconfig
 delete mode 100644 board/Marvell/sheevaplug/MAINTAINERS
 delete mode 100644 board/Marvell/sheevaplug/Makefile
 delete mode 100644 board/Marvell/sheevaplug/kwbimage.cfg
 delete mode 100644 board/Marvell/sheevaplug/sheevaplug.c
 delete mode 100644 board/Marvell/sheevaplug/sheevaplug.h
 delete mode 100644 configs/sheevaplug_defconfig
 delete mode 100644 include/configs/sheevaplug.h
arch/arm/dts/Makefile +1 -2
index b8f88bca0af9..12a74ed0eb08 100644
@@ -58,8 +58,7 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += \
        kirkwood-ns2lite.dtb \
        kirkwood-ns2max.dtb \
        kirkwood-ns2mini.dtb \
-       kirkwood-pogo_e02.dtb \
-       kirkwood-sheevaplug.dtb
+       kirkwood-pogo_e02.dtb
 
 dtb-$(CONFIG_MACH_S900) += \
        bubblegum_96.dtb
arch/arm/dts/kirkwood-sheevaplug-common.dtsi deleted +0 -104
deleted file mode 100644
index 0a698d3b7393..000000000000
@@ -1,104 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * kirkwood-sheevaplug-common.dtsi - Common parts for Sheevaplugs
- *
- * Copyright (C) 2013 Simon Baatz <[email protected]>
- */
-
-#include "kirkwood.dtsi"
-#include "kirkwood-6281.dtsi"
-
-/ {
-       memory {
-               device_type = "memory";
-               reg = <0x00000000 0x20000000>;
-       };
-
-       chosen {
-               bootargs = "console=ttyS0,115200n8 earlyprintk";
-               stdout-path = &uart0;
-       };
-
-       ocp at f1000000 {
-               pinctrl: pin-controller at 10000 {
-
-                       pmx_usb_power_enable: pmx-usb-power-enable {
-                               marvell,pins = "mpp29";
-                               marvell,function = "gpio";
-                       };
-                       pmx_led_red: pmx-led-red {
-                               marvell,pins = "mpp46";
-                               marvell,function = "gpio";
-                       };
-                       pmx_led_blue: pmx-led-blue {
-                               marvell,pins = "mpp49";
-                               marvell,function = "gpio";
-                       };
-                       pmx_sdio_cd: pmx-sdio-cd {
-                               marvell,pins = "mpp44";
-                               marvell,function = "gpio";
-                       };
-                       pmx_sdio_wp: pmx-sdio-wp {
-                               marvell,pins = "mpp47";
-                               marvell,function = "gpio";
-                       };
-               };
-               serial at 12000 {
-                       status = "okay";
-               };
-       };
-
-       regulators {
-               compatible = "simple-bus";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               pinctrl-0 = <&pmx_usb_power_enable>;
-               pinctrl-names = "default";
-
-               usb_power: regulator at 1 {
-                       compatible = "regulator-fixed";
-                       reg = <1>;
-                       regulator-name = "USB Power";
-                       regulator-min-microvolt = <5000000>;
-                       regulator-max-microvolt = <5000000>;
-                       enable-active-high;
-                       regulator-always-on;
-                       regulator-boot-on;
-                       gpio = <&gpio0 29 0>;
-               };
-       };
-};
-
-&nand {
-       status = "okay";
-
-       partition at 0 {
-               label = "u-boot";
-               reg = <0x0000000 0x100000>;
-       };
-
-       partition at 100000 {
-               label = "uImage";
-               reg = <0x0100000 0x400000>;
-       };
-
-       partition at 500000 {
-               label = "root";
-               reg = <0x0500000 0x1fb00000>;
-       };
-};
-
-&mdio {
-       status = "okay";
-
-       ethphy0: ethernet-phy at 0 {
-               reg = <0>;
-       };
-};
-
-&eth0 {
-       status = "okay";
-       ethernet0-port at 0 {
-               phy-handle = <&ethphy0>;
-       };
-};
arch/arm/dts/kirkwood-sheevaplug.dts deleted +0 -14
deleted file mode 100644
index c73cc904e5c4..000000000000
@@ -1,42 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * kirkwood-sheevaplug.dts - Device tree file for Sheevaplug
- *
- * Copyright (C) 2013 Simon Baatz <[email protected]>
- */
-
-/dts-v1/;
-
-#include "kirkwood-sheevaplug-common.dtsi"
-
-/ {
-       model = "Globalscale Technologies SheevaPlug";
-       compatible = "globalscale,sheevaplug", "marvell,kirkwood-88f6281",

"marvell,kirkwood";

arch/arm/dts/kirkwood-sheevaplug.dts deleted +0 -28
-
-       ocp at f1000000 {
-               mvsdio at 90000 {
-                       pinctrl-0 = <&pmx_sdio>;
-                       pinctrl-names = "default";
-                       status = "okay";
-                       /* No CD or WP GPIOs */
-                       broken-cd;
-               };
-       };
-
-       gpio-leds {
-               compatible = "gpio-leds";
-               pinctrl-0 = <&pmx_led_blue &pmx_led_red>;
-               pinctrl-names = "default";
-
-               health {
-                       label = "sheevaplug:blue:health";
-                       gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
-                       default-state = "keep";
-               };
-
-               misc {
-                       label = "sheevaplug:red:misc";
-                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
-               };
-       };
-};
arch/arm/mach-kirkwood/Kconfig +0 -4
index 6082bdb35b6c..1d2ba886dd1a 100644
@@ -13,9 +13,6 @@ config TARGET_DS109
 config TARGET_GURUPLUG
        bool "GuruPlug Board"
 
-config TARGET_SHEEVAPLUG
-       bool "SheevaPlug Board"
-
 config TARGET_LSXL
        bool "lsxl Board"
 
@@ -70,7 +67,6 @@ config SYS_SOC
 source "board/Marvell/dreamplug/Kconfig"
 source "board/Synology/ds109/Kconfig"
 source "board/Marvell/guruplug/Kconfig"
-source "board/Marvell/sheevaplug/Kconfig"
 source "board/buffalo/lsxl/Kconfig"
 source "board/cloudengines/pogo_e02/Kconfig"
 source "board/d-link/dns325/Kconfig"
board/Marvell/sheevaplug/Kconfig deleted +0 -12
deleted file mode 100644
index e5f928472994..000000000000
@@ -1,12 +0,0 @@
-if TARGET_SHEEVAPLUG
-
-config SYS_BOARD
-       default "sheevaplug"
-
-config SYS_VENDOR
-       default "Marvell"
-
-config SYS_CONFIG_NAME
-       default "sheevaplug"
-
-endif
board/Marvell/sheevaplug/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 2b0103d07dc9..000000000000
@@ -1,6 +0,0 @@
-SHEEVAPLUG BOARD
-M:     Prafulla Wadaskar <[email protected]>
-S:     Maintained
-F:     board/Marvell/sheevaplug/
-F:     include/configs/sheevaplug.h
-F:     configs/sheevaplug_defconfig
board/Marvell/sheevaplug/Makefile deleted +0 -7
deleted file mode 100644
index c39dd03e2d30..000000000000
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2009
-# Marvell Semiconductor <www.marvell.com>
-# Written-by: Prafulla Wadaskar <[email protected]>
-
-obj-y  := sheevaplug.o
board/Marvell/sheevaplug/kwbimage.cfg deleted +0 -36
deleted file mode 100644
index f5206451da44..000000000000
@@ -1,144 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2009
-# Marvell Semiconductor <www.marvell.com>
-# Written-by: Prafulla Wadaskar <[email protected]>
-# Refer to doc/README.kwbimage for more details about how-to
-# configure and create kirkwood boot images.
-#
-
-# Boot Media configurations
-BOOT_FROM      nand
-NAND_ECC_MODE  default
-NAND_PAGE_SIZE 0x0800
-
-# SOC registers configuration using bootrom header extension
-# Maximum KWBIMAGE_MAX_CONFIG configurations allowed
-
-# Configure RGMII-0 interface pad voltage to 1.8V
-DATA 0xFFD100e0 0x1b1b1b9b
-
-#Dram initalization for SINGLE x16 CL=5 @ 400MHz
-DATA 0xFFD01400 0x43000c30     # DDR Configuration register
-# bit13-0:  0xc30 (3120 DDR2 clks refresh rate)
-# bit23-14: zero
-# bit24: 1= enable exit self refresh mode on DDR access
-# bit25: 1 required
-# bit29-26: zero
-# bit31-30: 01
-
-DATA 0xFFD01404 0x37543000     # DDR Controller Control Low
-# bit 4:    0=addr/cmd in smame cycle
-# bit 5:    0=clk is driven during self refresh, we don't care for APX
-# bit 6:    0=use recommended falling edge of clk for addr/cmd
-# bit14:    0=input buffer always powered up
-# bit18:    1=cpu lock transaction enabled
-# bit23-20: 5=recommended value for CL=5 and STARTBURST_DEL disabled

bit31=0
-# bit27-24: 7= CL+2, STARTBURST sample stages, for freqs 400MHz, unbuffered DIMM

board/Marvell/sheevaplug/kwbimage.cfg deleted +0 -72
-# bit30-28: 3 required
-# bit31:    0=no additional STARTBURST delay
-
-DATA 0xFFD01408 0x22125451     # DDR Timing (Low) (active cycles value +1)
-# bit3-0:   TRAS lsbs
-# bit7-4:   TRCD
-# bit11- 8: TRP
-# bit15-12: TWR
-# bit19-16: TWTR
-# bit20:    TRAS msb
-# bit23-21: 0x0
-# bit27-24: TRRD
-# bit31-28: TRTP
-
-DATA 0xFFD0140C 0x00000a33     #  DDR Timing (High)
-# bit6-0:   TRFC
-# bit8-7:   TR2R
-# bit10-9:  TR2W
-# bit12-11: TW2W
-# bit31-13: zero required
-
-DATA 0xFFD01410 0x000000cc     #  DDR Address Control
-# bit1-0:   00, Cs0width=x8
-# bit3-2:   11, Cs0size=1Gb
-# bit5-4:   00, Cs1width=x8
-# bit7-6:   11, Cs1size=1Gb
-# bit9-8:   00, Cs2width=nonexistent
-# bit11-10: 00, Cs2size =nonexistent
-# bit13-12: 00, Cs3width=nonexistent
-# bit15-14: 00, Cs3size =nonexistent
-# bit16:    0,  Cs0AddrSel
-# bit17:    0,  Cs1AddrSel
-# bit18:    0,  Cs2AddrSel
-# bit19:    0,  Cs3AddrSel
-# bit31-20: 0 required
-
-DATA 0xFFD01414 0x00000000     #  DDR Open Pages Control
-# bit0:    0,  OpenPage enabled
-# bit31-1: 0 required
-
-DATA 0xFFD01418 0x00000000     #  DDR Operation
-# bit3-0:   0x0, DDR cmd
-# bit31-4:  0 required
-
-DATA 0xFFD0141C 0x00000C52     #  DDR Mode
-# bit2-0:   2, BurstLen=2 required
-# bit3:     0, BurstType=0 required
-# bit6-4:   4, CL=5
-# bit7:     0, TestMode=0 normal
-# bit8:     0, DLL reset=0 normal
-# bit11-9:  6, auto-precharge write recovery ????????????
-# bit12:    0, PD must be zero
-# bit31-13: 0 required
-
-DATA 0xFFD01420 0x00000040     #  DDR Extended Mode
-# bit0:    0,  DDR DLL enabled
-# bit1:    0,  DDR drive strenght normal
-# bit2:    0,  DDR ODT control lsd (disabled)
-# bit5-3:  000, required
-# bit6:    1,  DDR ODT control msb, (disabled)
-# bit9-7:  000, required
-# bit10:   0,  differential DQS enabled
-# bit11:   0, required
-# bit12:   0, DDR output buffer enabled
-# bit31-13: 0 required
-
-DATA 0xFFD01424 0x0000F17F     #  DDR Controller Control High
-# bit2-0:  111, required
-# bit3  :  1  , MBUS Burst Chop disabled
-# bit6-4:  111, required
-# bit7  :  0
-# bit8  :  1  , add writepath sample stage, must be 1 for DDR freq >=

300MHz

board/Marvell/sheevaplug/kwbimage.cfg deleted +0 -35
-# bit9  :  0  , no half clock cycle addition to dataout
-# bit10 :  0  , 1/4 clock cycle skew enabled for addr/ctl signals
-# bit11 :  0  , 1/4 clock cycle skew disabled for write mesh
-# bit15-12: 1111 required
-# bit31-16: 0    required
-
-DATA 0xFFD01428 0x00085520     # DDR2 ODT Read Timing (default values)
-DATA 0xFFD0147C 0x00008552     # DDR2 ODT Write Timing (default values)
-
-DATA 0xFFD01500 0x00000000     # CS[0]n Base address to 0x0
-DATA 0xFFD01504 0x0FFFFFF1     # CS[0]n Size
-# bit0:    1,  Window enabled
-# bit1:    0,  Write Protect disabled
-# bit3-2:  00, CS0 hit selected
-# bit23-4: ones, required
-# bit31-24: 0x0F, Size (i.e. 256MB)
-
-DATA 0xFFD01508 0x10000000     # CS[1]n Base address to 256Mb
-DATA 0xFFD0150C 0x0FFFFFF5     # CS[1]n Size 256Mb Window enabled for CS1
-
-DATA 0xFFD01514 0x00000000     # CS[2]n Size, window disabled
-DATA 0xFFD0151C 0x00000000     # CS[3]n Size, window disabled
-
-DATA 0xFFD01494 0x00030000     #  DDR ODT Control (Low)
-DATA 0xFFD01498 0x00000000     #  DDR ODT Control (High)
-# bit1-0:  00, ODT0 controlled by ODT Control (low) register above
-# bit3-2:  01, ODT1 active NEVER!
-# bit31-4: zero, required
-
-DATA 0xFFD0149C 0x0000E803     # CPU ODT Control
-DATA 0xFFD01480 0x00000001     # DDR Initialization Control
-#bit0=1, enable DDR init upon this register write
-
-# End of Header extension
-DATA 0x0 0x0
board/Marvell/sheevaplug/sheevaplug.c deleted +0 -24
deleted file mode 100644
index 6311ed3b2e59..000000000000
@@ -1,135 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2009
- * Marvell Semiconductor <www.marvell.com>
- * Written-by: Prafulla Wadaskar <[email protected]>
- */
-
-#include <common.h>
-#include <init.h>
-#include <miiphy.h>
-#include <net.h>
-#include <asm/mach-types.h>
-#include <asm/arch/cpu.h>
-#include <asm/arch/soc.h>
-#include <asm/arch/mpp.h>
-#include "sheevaplug.h"
-
-DECLARE_GLOBAL_DATA_PTR;
-
-int board_early_init_f(void)
-{
-       /*
-        * default gpio configuration
-        * There are maximum 64 gpios controlled through 2 sets of

registers

board/Marvell/sheevaplug/sheevaplug.c deleted +0 -111
-        * the  below configuration configures mainly initial LED status
-        */
-       mvebu_config_gpio(SHEEVAPLUG_OE_VAL_LOW,
-                         SHEEVAPLUG_OE_VAL_HIGH,
-                         SHEEVAPLUG_OE_LOW, SHEEVAPLUG_OE_HIGH);
-
-       /* Multi-Purpose Pins Functionality configuration */
-       static const u32 kwmpp_config[] = {
-               MPP0_NF_IO2,
-               MPP1_NF_IO3,
-               MPP2_NF_IO4,
-               MPP3_NF_IO5,
-               MPP4_NF_IO6,
-               MPP5_NF_IO7,
-               MPP6_SYSRST_OUTn,
-               MPP7_GPO,
-               MPP8_UART0_RTS,
-               MPP9_UART0_CTS,
-               MPP10_UART0_TXD,
-               MPP11_UART0_RXD,
-               MPP12_SD_CLK,
-               MPP13_SD_CMD,
-               MPP14_SD_D0,
-               MPP15_SD_D1,
-               MPP16_SD_D2,
-               MPP17_SD_D3,
-               MPP18_NF_IO0,
-               MPP19_NF_IO1,
-               MPP20_GPIO,
-               MPP21_GPIO,
-               MPP22_GPIO,
-               MPP23_GPIO,
-               MPP24_GPIO,
-               MPP25_GPIO,
-               MPP26_GPIO,
-               MPP27_GPIO,
-               MPP28_GPIO,
-               MPP29_TSMP9,
-               MPP30_GPIO,
-               MPP31_GPIO,
-               MPP32_GPIO,
-               MPP33_GPIO,
-               MPP34_GPIO,
-               MPP35_GPIO,
-               MPP36_GPIO,
-               MPP37_GPIO,
-               MPP38_GPIO,
-               MPP39_GPIO,
-               MPP40_GPIO,
-               MPP41_GPIO,
-               MPP42_GPIO,
-               MPP43_GPIO,
-               MPP44_GPIO,
-               MPP45_GPIO,
-               MPP46_GPIO,
-               MPP47_GPIO,
-               MPP48_GPIO,
-               MPP49_GPIO,
-               0
-       };
-       kirkwood_mpp_conf(kwmpp_config, NULL);
-       return 0;
-}
-
-int board_init(void)
-{
-       /*
-        * arch number of board
-        */
-       gd->bd->bi_arch_number = MACH_TYPE_SHEEVAPLUG;
-
-       /* adress of boot parameters */
-       gd->bd->bi_boot_params = mvebu_sdram_bar(0) + 0x100;
-
-       return 0;
-}
-
-#ifdef CONFIG_RESET_PHY_R
-/* Configure and enable MV88E1116 PHY */
-void reset_phy(void)
-{
-       u16 reg;
-       u16 devadr;
-       char *name = "egiga0";
-
-       if (miiphy_set_current_dev(name))
-               return;
-
-       /* command to read PHY dev address */
-       if (miiphy_read(name, 0xEE, 0xEE, (u16 *) &devadr)) {
-               printf("Err..%s could not read PHY dev address\n",
-                       __FUNCTION__);
-               return;
-       }
-
-       /*
-        * Enable RGMII delay on Tx and Rx for CPU port
-        * Ref: sec 4.7.2 of chip datasheet
-        */
-       miiphy_write(name, devadr, MV88E1116_PGADR_REG, 2);
-       miiphy_read(name, devadr, MV88E1116_MAC_CTRL_REG, &reg);
-       reg |= (MV88E1116_RGMII_RXTM_CTRL | MV88E1116_RGMII_TXTM_CTRL);
-       miiphy_write(name, devadr, MV88E1116_MAC_CTRL_REG, reg);
-       miiphy_write(name, devadr, MV88E1116_PGADR_REG, 0);
-
-       /* reset the phy */
-       miiphy_reset(name, devadr);
-
-       printf("88E1116 Initialized on %s\n", name);
-}
-#endif /* CONFIG_RESET_PHY_R */
board/Marvell/sheevaplug/sheevaplug.h deleted +0 -24
deleted file mode 100644
index e026c1b53bd0..000000000000
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2009
- * Marvell Semiconductor <www.marvell.com>
- * Written-by: Prafulla Wadaskar <[email protected]>
- */
-
-#ifndef __SHEEVAPLUG_H
-#define __SHEEVAPLUG_H
-
-#define SHEEVAPLUG_OE_LOW              (~(0))
-#define SHEEVAPLUG_OE_HIGH             (~(0))
-#define SHEEVAPLUG_OE_VAL_LOW          (1 << 29)       /* USB_PWEN low */
-#define SHEEVAPLUG_OE_VAL_HIGH         (1 << 17)       /* LED pin high */
-
-/* PHY related */
-#define MV88E1116_LED_FCTRL_REG                10
-#define MV88E1116_CPRSP_CR3_REG                21
-#define MV88E1116_MAC_CTRL_REG         21
-#define MV88E1116_PGADR_REG            22
-#define MV88E1116_RGMII_TXTM_CTRL      (1 << 4)
-#define MV88E1116_RGMII_RXTM_CTRL      (1 << 5)
-
-#endif /* __SHEEVAPLUG_H */
configs/sheevaplug_defconfig deleted +0 -55
deleted file mode 100644
index 34da356b8e2a..000000000000
@@ -1,55 +0,0 @@
-CONFIG_ARM=y
-CONFIG_SYS_DCACHE_OFF=y
-CONFIG_ARCH_CPU_INIT=y
-CONFIG_SYS_THUMB_BUILD=y
-CONFIG_ARCH_KIRKWOOD=y
-CONFIG_SYS_TEXT_BASE=0x600000
-CONFIG_NR_DRAM_BANKS=2
-CONFIG_TARGET_SHEEVAPLUG=y
-CONFIG_ENV_SIZE=0x20000
-CONFIG_ENV_OFFSET=0x80000
-CONFIG_IDENT_STRING="\nMarvell-Sheevaplug"
-CONFIG_DEFAULT_DEVICE_TREE="kirkwood-sheevaplug"
-# CONFIG_SYS_MALLOC_F is not set
-CONFIG_BOOTDELAY=3
-CONFIG_USE_PREBOOT=y
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-# CONFIG_CMD_FLASH is not set
-CONFIG_CMD_IDE=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_NAND=y
-CONFIG_CMD_USB=y
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_EXT2=y
-CONFIG_CMD_EXT4=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_JFFS2=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
 
-CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:512K(uboot),512K(env),4M(kernel),-(rootfs)"
-CONFIG_CMD_UBI=y
-CONFIG_ISO_PARTITION=y
-CONFIG_OF_CONTROL=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_NAND=y
-CONFIG_NETCONSOLE=y
-CONFIG_DM=y
-CONFIG_MVSATA_IDE=y
-CONFIG_MTD=y
-CONFIG_MTD_RAW_NAND=y
-CONFIG_MVGBE=y
-CONFIG_MII=y
-CONFIG_DM_RTC=y
-CONFIG_RTC_MV=y
-CONFIG_SYS_NS16550=y
-CONFIG_USB=y
-CONFIG_DM_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_LZMA=y
-CONFIG_BZIP2=y
include/configs/sheevaplug.h deleted +0 -74
deleted file mode 100644
index e1f8fb8ac84b..000000000000
@@ -1,73 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2009-2014
- * Gerald Kerma <[email protected]>
- * Marvell Semiconductor <www.marvell.com>
- * Written-by: Prafulla Wadaskar <[email protected]>
- */
-
-#ifndef _CONFIG_SHEEVAPLUG_H
-#define _CONFIG_SHEEVAPLUG_H
-
-/*
- * High Level Configuration Options (easy to change)
- */
-#define CONFIG_FEROCEON_88FR131        1       /* CPU Core subversion */
-
-#include "mv-plug-common.h"
-
-/*
- *  Environment variables configurations
- */
-/*
- * max 4k env size is enough, but in case of nand
- * it has to be rounded to sector size
- */
-/*
- * Environment is right behind U-Boot in flash. Make sure U-Boot
- * doesn't grow into the environment area.
- */
-#define CONFIG_BOARD_SIZE_LIMIT                CONFIG_ENV_OFFSET
-
-/*
- * Default environment variables
- */
-#define CONFIG_BOOTCOMMAND             "${x_bootcmd_kernel}; " \
-       "setenv bootargs ${x_bootargs} ${x_bootargs_root}; "    \
-       "bootm 0x6400000;"
-
-#define CONFIG_EXTRA_ENV_SETTINGS      "x_bootargs=console"    \
-       "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT        \
-       "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
-       "x_bootcmd_usb=usb start\0" \
-       "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
-
-/*
- * Ethernet Driver configuration
- */
-#ifdef CONFIG_CMD_NET
-#define CONFIG_MVGBE_PORTS     {1, 0}  /* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR    0
-#endif /* CONFIG_CMD_NET */
-
-/*
- * SDIO/MMC Card Configuration
- */
-#ifdef CONFIG_CMD_MMC
-#define CONFIG_MVEBU_MMC
-#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
-#endif /* CONFIG_CMD_MMC */
-
-/*
- * SATA driver configuration
- */
-#ifdef CONFIG_IDE
-#define __io
-#define CONFIG_IDE_PREINIT
-#define CONFIG_MVSATA_IDE_USE_PORT0
-#define CONFIG_MVSATA_IDE_USE_PORT1
-#define CONFIG_SYS_ATA_IDE0_OFFSET     MV_SATA_PORT0_OFFSET
-#define CONFIG_SYS_ATA_IDE1_OFFSET     MV_SATA_PORT1_OFFSET
-#endif /* CONFIG_IDE */
-
-#endif /* _CONFIG_SHEEVAPLUG_H */
--

2.17.1

author
#27 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 10 lines · Rick Thomas

If you decide to do this, please make sure you advertise it more widely than just this list.

I have a sheevaplug that I'd be sad to have to decommission. For the last decade, with never a complaint, it's been happily serving DHCP, DNS, and NTP to about 20 machines in my home network. I like it because the slightly unusual architecture makes it slightly less attractive as a target to the bad-guys out there.

Maybe I'll replace it with a Raspberry Pi.

I'm quite happy to keep the board, if someone will step up and maintain it. It's had the initial conversion to DM done, but it needs a number of others still. Almost all of the drivers it uses have been converted already (the IDE driver being the exception).

I assume that however you're building U-Boot the warnings that get printed about conversion deadlines having come and gone are hidden in some way or another.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210210/3cc8cd6e/attachment.sig>
#28 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 13 lines · Tom Rini
Quoted 10 lines · Rick Thomas

If you decide to do this, please make sure you advertise it more widely than just this list.

I have a sheevaplug that I'd be sad to have to decommission. For the last decade, with never a complaint, it's been happily serving DHCP, DNS, and NTP to about 20 machines in my home network. I like it because the slightly unusual architecture makes it slightly less attractive as a target to the bad-guys out there.

Maybe I'll replace it with a Raspberry Pi.

Quoted 8 lines

I'm quite happy to keep the board, if someone will step up and maintain it. It's had the initial conversion to DM done, but it needs a number of others still. Almost all of the drivers it uses have been converted already (the IDE driver being the exception).

I assume that however you're building U-Boot the warnings that get printed about conversion deadlines having come and gone are hidden in some way or another.

Sad to say, I don't have the skills to step up and maintain it myself. Though I'll be happy to participate in the effort as a willing (nay, eager) tester of new versions. I've got a second sheevaplug sitting on a shelf that somehow bricked itself about 5-7 years ago. I'd love to try to resurrect it, if somebody can point me to instructions for re-flashing the firmware. If I can get it running, it will be perfect for use as a testing machine.

Thanks!
Rick

#29 lore raw

PATCH 14/25 arm: Remove sheevaplug board

In reply to Tom Rini
Quoted 3 lines · Tom Rini

I assume that however you're building U-Boot the warnings that get printed about conversion deadlines having come and gone are hidden in some way or another.

I used to have my sheevaplug's serial console hooked up to a nearby PC. But the PC died a year or so ago, so I don't have any way to watch the messages at boot time. If I need to reboot it, I just ssh to it, type "sudo shutdown -r now" and pray. It hasn't failed me yet (knock wood!). If it starts to fail, I'll have to find another PC to hook up the serial console to, but I figure I'll cross that bridge when I come to it.

Now, if anybody wanted me to test a new bit of software on it, I'd have some incentive.

Enjoy!
Rick

author
#30 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 8 lines · Rick Thomas
Quoted 3 lines · Tom Rini

I assume that however you're building U-Boot the warnings that get printed about conversion deadlines having come and gone are hidden in some way or another.

I used to have my sheevaplug's serial console hooked up to a nearby PC. But the PC died a year or so ago, so I don't have any way to watch the messages at boot time. If I need to reboot it, I just ssh to it, type "sudo shutdown -r now" and pray. It hasn't failed me yet (knock wood!). If it starts to fail, I'll have to find another PC to hook up the serial console to, but I figure I'll cross that bridge when I come to it.

Now, if anybody wanted me to test a new bit of software on it, I'd have some incentive.

To be clear, have you been updating U-Boot on the device?

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210210/1fe8de1a/attachment.sig>
#31 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 11 lines · Tom Rini
Quoted 8 lines · Rick Thomas
Quoted 3 lines · Tom Rini

I assume that however you're building U-Boot the warnings that get printed about conversion deadlines having come and gone are hidden in some way or another.

I used to have my sheevaplug's serial console hooked up to a nearby PC. But the PC died a year or so ago, so I don't have any way to watch the messages at boot time. If I need to reboot it, I just ssh to it, type "sudo shutdown -r now" and pray. It hasn't failed me yet (knock wood!). If it starts to fail, I'll have to find another PC to hook up the serial console to, but I figure I'll cross that bridge when I come to it.

Now, if anybody wanted me to test a new bit of software on it, I'd have some incentive.

To be clear, have you been updating U-Boot on the device?

I'm not sure. If it helps, here's what aptitude thinks is installed:

rbthomas at sheeva:~$ aptitude versions u-boot
i 2019.01+dfsg-7 stable 500

I have not recently (since before 2019) done anything more than allow aptitude to upgrade packages as it thinks best. In particular, I have not made any attempt to burn new firmware on the device.

Does that help?
Rick

#32 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 6 lines · Rick Thomas
Quoted 5 lines · Tom Rini
Quoted 4 lines · Rick Thomas
Quoted 3 lines · Tom Rini

I assume that however you're building U-Boot the warnings that get printed about conversion deadlines having come and gone are hidden in some way or another.

I definitely see some warnings in the build logs, but try to get other people to help with testing and maintaining them in Debian and for most boards there is someone listed who has offered to test new versions:

https://salsa.debian.org/debian/u-boot/-/blob/master/debian/targets

Unfortunately, mostly I only have evidence of boards I and a few other people have tested:

https://wiki.debian.org/U-boot/Status

If you use Debian and want the u-boot package to work for your favorite platform working the next release, it would be a really good time to test the packaged u-boot in Debian bullseye Real Soon Now. :)

Quoted 13 lines
Quoted 8 lines
Quoted 8 lines

I used to have my sheevaplug's serial console hooked up to a nearby PC. But the PC died a year or so ago, so I don't have any way to watch the messages at boot time. If I need to reboot it, I just ssh to it, type "sudo shutdown -r now" and pray. It hasn't failed me yet (knock wood!). If it starts to fail, I'll have to find another PC to hook up the serial console to, but I figure I'll cross that bridge when I come to it.

Quoted 4 lines
Quoted 2 lines

Now, if anybody wanted me to test a new bit of software on it, I'd have some incentive.

To be clear, have you been updating U-Boot on the device?

Quoted 8 lines

I'm not sure. If it helps, here's what aptitude thinks is installed:

rbthomas at sheeva:~$ aptitude versions u-boot
i 2019.01+dfsg-7 stable 500

I have not recently (since before 2019) done anything more than allow aptitude to upgrade packages as it thinks best. In particular, I have not made any attempt to burn new firmware on the device.

The debian u-boot packages do not automatically upgrade the u-boot installed to the device; it requires manual intervention on the part of the system administrator above and beyond just upgrading the debian packages through apt, aptitude, etc.

I think u-boot upstream is talking about dropping it for 2021.04, so my guess is you would still have another entire debian release cycle with the available 2021.01 version of u-boot *if* that version still works...

live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210210/c79d5128/attachment.sig>

#33 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 5 lines · Vagrant Cascadian
Quoted 3 lines · Rick Thomas

I have not recently (since before 2019) done anything more than allow aptitude to upgrade packages as it thinks best. In particular, I have not made any attempt to burn new firmware on the device.

Quoted 8 lines

The debian u-boot packages do not automatically upgrade the u-boot installed to the device; it requires manual intervention on the part of the system administrator above and beyond just upgrading the debian packages through apt, aptitude, etc.

I think u-boot upstream is talking about dropping it for 2021.04, so my guess is you would still have another entire debian release cycle with the available 2021.01 version of u-boot *if* that version still works...

If you can point me to instructions for doing that manual intervention, I'll be happy to test whatever version you recommend, I hope the instructions also include how to recover if it *doesn't* work!

Enjoy!
Rick

author
#34 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 13 lines · Rick Thomas
Quoted 10 lines · Vagrant Cascadian
Quoted 3 lines · Rick Thomas

I have not recently (since before 2019) done anything more than allow aptitude to upgrade packages as it thinks best. In particular, I have not made any attempt to burn new firmware on the device.

The debian u-boot packages do not automatically upgrade the u-boot installed to the device; it requires manual intervention on the part of the system administrator above and beyond just upgrading the debian packages through apt, aptitude, etc.

Quoted 8 lines
Quoted 3 lines

I think u-boot upstream is talking about dropping it for 2021.04, so my guess is you would still have another entire debian release cycle with the available 2021.01 version of u-boot *if* that version still works...

If you can point me to instructions for doing that manual intervention, I'll be happy to test whatever version you recommend, I hope the instructions also include how to recover if it *doesn't* work!

I think this unfortunately gets to the heart of the problem. We need someone that cares about the platform to step up and do the maintenance. Most of the work shouldn't be too hard and there's examples of many previous conversions. The mvsata_ide driver is probably the hardest part but I think it just means that the ide_preinit() call needs to be worked in to the new ide_probe() function rather than the old ide_init().

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210211/eb0e29c1/attachment.sig>
#35 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 30 lines · Tom Rini
Quoted 23 lines · Rick Thomas
Quoted 13 lines · Vagrant Cascadian
Quoted 5 lines · Rick Thomas

I have not recently (since before 2019) done anything more than allow
aptitude to upgrade packages as it thinks best.? In particular, I have
not made any attempt to burn new firmware on the device.

The debian u-boot packages do not automatically upgrade the u-boot installed to the device; it requires manual intervention on the part of
the system administrator above and beyond just upgrading the debian packages through apt, aptitude, etc.

Quoted 6 lines

I think u-boot upstream is talking about dropping it for 2021.04, so my
guess is you would still have another entire debian release cycle with
the available 2021.01 version of u-boot *if* that version still works...

Quoted 5 lines

If you can point me to instructions for doing that manual intervention, I'll be happy to test whatever version you recommend,? I
hope the instructions also include how to recover if it *doesn't* work!

Quoted 9 lines

I think this unfortunately gets to the heart of the problem.? We need someone that cares about the platform to step up and do the maintenance.
Most of the work shouldn't be too hard and there's examples of many previous conversions.? The mvsata_ide driver is probably the hardest part but I think it just means that the ide_preinit() call needs to be worked in to the new ide_probe() function rather than the old ide_init().

I have just converted the MMC driver (mmc_mvebu) to the driver model and that works on my Kirkwood based board (not a sheevaplug though). I'll run it through my GitLab CI and submit it to the mailing list soon.

Would MMC support be enough to keep this board in U-Boot? If I understand Tom correctly the only non-DM driver is the IDE driver. Would it be an option to keep the Sheevaplug board without IDE support (unless someone submits a driver)? I do not own a Sheevaplug and thus I am not familiar with it. I suppose it could also boot from MMC.

author
#36 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 46 lines · Harm Berntsen
Quoted 30 lines · Tom Rini
Quoted 23 lines · Rick Thomas
Quoted 13 lines · Vagrant Cascadian
Quoted 5 lines · Rick Thomas

I have not recently (since before 2019) done anything more than allow
aptitude to upgrade packages as it thinks best.? In particular, I have
not made any attempt to burn new firmware on the device.

The debian u-boot packages do not automatically upgrade the u-boot installed to the device; it requires manual intervention on the part of
the system administrator above and beyond just upgrading the debian packages through apt, aptitude, etc.

Quoted 6 lines

I think u-boot upstream is talking about dropping it for 2021.04, so my
guess is you would still have another entire debian release cycle with
the available 2021.01 version of u-boot *if* that version still works...

Quoted 5 lines

If you can point me to instructions for doing that manual intervention, I'll be happy to test whatever version you recommend,? I
hope the instructions also include how to recover if it *doesn't* work!

Quoted 9 lines

I think this unfortunately gets to the heart of the problem.? We need someone that cares about the platform to step up and do the maintenance.
Most of the work shouldn't be too hard and there's examples of many previous conversions.? The mvsata_ide driver is probably the hardest part but I think it just means that the ide_preinit() call needs to be worked in to the new ide_probe() function rather than the old ide_init().

I have just converted the MMC driver (mmc_mvebu) to the driver model and that works on my Kirkwood based board (not a sheevaplug though). I'll run it through my GitLab CI and submit it to the mailing list soon.

Quoted 5 lines

Would MMC support be enough to keep this board in U-Boot? If I understand Tom correctly the only non-DM driver is the IDE driver. Would it be an option to keep the Sheevaplug board without IDE support (unless someone submits a driver)? I do not own a Sheevaplug and thus I am not familiar with it. I suppose it could also boot from MMC.

I would really like to see someone be active in maintaining the sheevaplug, especially given how popular it was among enthusiasts. But yes, if MMC is converted that does mean there's a viable path to keep using a modern U-Boot on the system and I'll just rip out the IDE driver until someone wants to convert that and test it. USB will also need to be converted soon too as I will start pulling out v2019.07 deadline items for after v2021.07 release and that's both the IDE and USB drivers. But maybe both can be easily disabled.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210324/8b333862/attachment.sig>
#37 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 71 lines · Tom Rini
Quoted 62 lines · Harm Berntsen
Quoted 40 lines · Tom Rini
Quoted 31 lines · Rick Thomas
Quoted 18 lines · Vagrant Cascadian
Quoted 7 lines · Rick Thomas

I have not recently (since before 2019) done anything more than
allow
aptitude to upgrade packages as it thinks best.? In particular, I
have
not made any attempt to burn new firmware on the device.

The debian u-boot packages do not automatically upgrade the u-boot
installed to the device; it requires manual intervention on the
part of
the system administrator above and beyond just upgrading the debian
packages through apt, aptitude, etc.

Quoted 9 lines

I think u-boot upstream is talking about dropping it for 2021.04,
so my
guess is you would still have another entire debian release cycle
with
the available 2021.01 version of u-boot *if* that version still
works...

Quoted 7 lines

If you can point me to instructions for doing that manual intervention, I'll be happy to test whatever version you recommend,?
I
hope the instructions also include how to recover if it *doesn't*
work!

Quoted 13 lines

I think this unfortunately gets to the heart of the problem.? We need
someone that cares about the platform to step up and do the maintenance.
Most of the work shouldn't be too hard and there's examples of many
previous conversions.? The mvsata_ide driver is probably the hardest
part but I think it just means that the ide_preinit() call needs to be
worked in to the new ide_probe() function rather than the old ide_init().

I have just converted the MMC driver (mmc_mvebu) to the driver model
and that works on my Kirkwood based board (not a sheevaplug though).
I'll run it through my GitLab CI and submit it to the mailing list soon.

Quoted 7 lines

Would MMC support be enough to keep this board in U-Boot? If I understand Tom correctly the only non-DM driver is the IDE driver. Would it be an option to keep the Sheevaplug board without IDE support
(unless someone submits a driver)? I do not own a Sheevaplug and thus I
am not familiar with it. I suppose it could also boot from MMC.

Quoted 12 lines

I would really like to see someone be active in maintaining the sheevaplug, especially given how popular it was among enthusiasts.? But
yes, if MMC is converted that does mean there's a viable path to keep using a modern U-Boot on the system and I'll just rip out the IDE driver
until someone wants to convert that and test it.? USB will also need to
be converted soon too as I will start pulling out v2019.07 deadline items for after v2021.07 release and that's both the IDE and USB drivers.? But maybe both can be easily disabled.

Great :). The sheevaplug currently already has driver-model based USB drivers in its defconfig. I just checked and confirmed that that driver still works on my (non-sheevaplug) Kirkwood board.

author
#38 lore raw

PATCH 14/25 arm: Remove sheevaplug board

Quoted 85 lines · Harm Berntsen
Quoted 71 lines · Tom Rini
Quoted 62 lines · Harm Berntsen
Quoted 40 lines · Tom Rini
Quoted 31 lines · Rick Thomas
Quoted 18 lines · Vagrant Cascadian
Quoted 7 lines · Rick Thomas

I have not recently (since before 2019) done anything more than
allow
aptitude to upgrade packages as it thinks best.? In particular, I
have
not made any attempt to burn new firmware on the device.

The debian u-boot packages do not automatically upgrade the u-boot
installed to the device; it requires manual intervention on the
part of
the system administrator above and beyond just upgrading the debian
packages through apt, aptitude, etc.

Quoted 9 lines

I think u-boot upstream is talking about dropping it for 2021.04,
so my
guess is you would still have another entire debian release cycle
with
the available 2021.01 version of u-boot *if* that version still
works...

Quoted 7 lines

If you can point me to instructions for doing that manual intervention, I'll be happy to test whatever version you recommend,?
I
hope the instructions also include how to recover if it *doesn't*
work!

Quoted 13 lines

I think this unfortunately gets to the heart of the problem.? We need
someone that cares about the platform to step up and do the maintenance.
Most of the work shouldn't be too hard and there's examples of many
previous conversions.? The mvsata_ide driver is probably the hardest
part but I think it just means that the ide_preinit() call needs to be
worked in to the new ide_probe() function rather than the old ide_init().

I have just converted the MMC driver (mmc_mvebu) to the driver model
and that works on my Kirkwood based board (not a sheevaplug though).
I'll run it through my GitLab CI and submit it to the mailing list soon.

Quoted 7 lines

Would MMC support be enough to keep this board in U-Boot? If I understand Tom correctly the only non-DM driver is the IDE driver. Would it be an option to keep the Sheevaplug board without IDE support
(unless someone submits a driver)? I do not own a Sheevaplug and thus I
am not familiar with it. I suppose it could also boot from MMC.

Quoted 12 lines

I would really like to see someone be active in maintaining the sheevaplug, especially given how popular it was among enthusiasts.? But
yes, if MMC is converted that does mean there's a viable path to keep using a modern U-Boot on the system and I'll just rip out the IDE driver
until someone wants to convert that and test it.? USB will also need to
be converted soon too as I will start pulling out v2019.07 deadline items for after v2021.07 release and that's both the IDE and USB drivers.? But maybe both can be easily disabled.

Quoted 3 lines

Great :). The sheevaplug currently already has driver-model based USB drivers in its defconfig. I just checked and confirmed that that driver still works on my (non-sheevaplug) Kirkwood board.

Ah, I bet that means the "hard" part is that you can't have both DM_MMC/DM_USB and non-DM IDE at the same time without some build failure. So turning off IDE (and deleting the driver after) and then with the MMC conversion USB should just be switched over.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210324/b10bd692/attachment.sig>
author
#39 lore raw

PATCH 15/25 arm: Remove 32bit vexpress boards

In reply to Tom Rini

These boards have not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove them.

Cc Linus Walleij <[email protected]>
---
 .azure-pipelines.yml                    |   6 -
 .gitlab-ci.yml                          |  14 -
 arch/arm/Kconfig                        |  18 -
 arch/arm/dts/Makefile                   |   4 -
 arch/arm/dts/vexpress-v2m-rs1.dtsi      | 437 ---------------
 arch/arm/dts/vexpress-v2m.dtsi          | 451 ----------------
 arch/arm/dts/vexpress-v2p-ca15_a7.dts   | 682 ------------------------
 arch/arm/dts/vexpress-v2p-ca5s.dts      | 280 ----------
 arch/arm/dts/vexpress-v2p-ca9.dts       | 368 -------------
 board/armltd/vexpress/Kconfig           |  38 --
 board/armltd/vexpress/MAINTAINERS       |  10 -
 board/armltd/vexpress/Makefile          |   7 -
 board/armltd/vexpress/vexpress_common.c | 203 -------
 board/armltd/vexpress/vexpress_tc2.c    |  84 ---
 configs/vexpress_ca15_tc2_defconfig     |  40 --
 configs/vexpress_ca5x2_defconfig        |  38 --
 configs/vexpress_ca9x4_defconfig        |  39 --
 drivers/i2c/Kconfig                     |   2 +-
 include/configs/vexpress_ca15_tc2.h     |  19 -
 include/configs/vexpress_ca5x2.h        |  16 -
 include/configs/vexpress_ca9x4.h        |  16 -
 21 files changed, 1 insertion(+), 2771 deletions(-)
 delete mode 100644 arch/arm/dts/vexpress-v2m-rs1.dtsi
 delete mode 100644 arch/arm/dts/vexpress-v2m.dtsi
 delete mode 100644 arch/arm/dts/vexpress-v2p-ca15_a7.dts
 delete mode 100644 arch/arm/dts/vexpress-v2p-ca5s.dts
 delete mode 100644 arch/arm/dts/vexpress-v2p-ca9.dts
 delete mode 100644 board/armltd/vexpress/Kconfig
 delete mode 100644 board/armltd/vexpress/MAINTAINERS
 delete mode 100644 board/armltd/vexpress/Makefile
 delete mode 100644 board/armltd/vexpress/vexpress_common.c
 delete mode 100644 board/armltd/vexpress/vexpress_tc2.c
 delete mode 100644 configs/vexpress_ca15_tc2_defconfig
 delete mode 100644 configs/vexpress_ca5x2_defconfig
 delete mode 100644 configs/vexpress_ca9x4_defconfig
 delete mode 100644 include/configs/vexpress_ca15_tc2.h
 delete mode 100644 include/configs/vexpress_ca5x2.h
 delete mode 100644 include/configs/vexpress_ca9x4.h
.azure-pipelines.yml +0 -6
index a6279427e138..8a89a7959ee9 100644
@@ -192,12 +192,6 @@ jobs:
         evb_ast2500:
           TEST_PY_BD: "evb-ast2500"
           TEST_PY_ID: "--id qemu"
-        vexpress_ca15_tc2:
-          TEST_PY_BD: "vexpress_ca15_tc2"
-          TEST_PY_ID: "--id qemu"
-        vexpress_ca9x4:
-          TEST_PY_BD: "vexpress_ca9x4"
-          TEST_PY_ID: "--id qemu"
         integratorcp_cm926ejs:
           TEST_PY_BD: "integratorcp_cm926ejs"
           TEST_PY_ID: "--id qemu"
.gitlab-ci.yml +0 -14
index 2cdcd864c86a..8e18c3d8fbdd 100644
@@ -217,20 +217,6 @@ sandbox_flattree test.py:
     TEST_PY_BD: "sandbox_flattree"
   <<: *buildman_and_testpy_dfn
 
-vexpress_ca15_tc2 test.py:
-  tags: [ 'all' ]
-  variables:
-    TEST_PY_BD: "vexpress_ca15_tc2"
-    TEST_PY_ID: "--id qemu"
-  <<: *buildman_and_testpy_dfn
-
-vexpress_ca9x4 test.py:
-  tags: [ 'all' ]
-  variables:
-    TEST_PY_BD: "vexpress_ca9x4"
-    TEST_PY_ID: "--id qemu"
-  <<: *buildman_and_testpy_dfn
-
 integratorcp_cm926ejs test.py:
   tags: [ 'all' ]
   variables:
arch/arm/Kconfig +0 -18
index acffdc6a1ed8..2e75efe2da8e 100644
@@ -645,13 +645,6 @@ config ARCH_BCM6858
 	select OF_CONTROL
 	imply CMD_DM
 
-config TARGET_VEXPRESS_CA15_TC2
-	bool "Support vexpress_ca15_tc2"
-	select CPU_V7A
-	select CPU_V7_HAS_NONSEC
-	select CPU_V7_HAS_VIRT
-	select PL011_SERIAL
-
 config ARCH_BCMSTB
 	bool "Broadcom BCM7XXX family"
 	select CPU_V7A
@@ -663,16 +656,6 @@ config ARCH_BCMSTB
 	  This enables support for Broadcom ARM-based set-top box
 	  chipsets, including the 7445 family of chips.
 
-config TARGET_VEXPRESS_CA5X2
-	bool "Support vexpress_ca5x2"
-	select CPU_V7A
-	select PL011_SERIAL
-
-config TARGET_VEXPRESS_CA9X4
-	bool "Support vexpress_ca9x4"
-	select CPU_V7A
-	select PL011_SERIAL
-
 config TARGET_BCM23550_W1D
 	bool "Support bcm23550_w1d"
 	select CPU_V7A
@@ -1964,7 +1947,6 @@ source "board/Marvell/aspenite/Kconfig"
 source "board/Marvell/gplugd/Kconfig"
 source "board/Marvell/octeontx/Kconfig"
 source "board/Marvell/octeontx2/Kconfig"
-source "board/armltd/vexpress/Kconfig"
 source "board/armltd/vexpress64/Kconfig"
 source "board/cortina/presidio-asic/Kconfig"
 source "board/broadcom/bcm23550_w1d/Kconfig"
arch/arm/dts/Makefile +0 -4
index 12a74ed0eb08..f0944b7590cf 100644
@@ -1009,10 +1009,6 @@ dtb-$(CONFIG_TARGET_GE_BX50V3) += \
 dtb-$(CONFIG_TARGET_GE_B1X5V2) += imx6dl-b1x5v2.dtb
 dtb-$(CONFIG_TARGET_MX53PPD) += imx53-ppd.dtb
 
-dtb-$(CONFIG_TARGET_VEXPRESS_CA5X2) += vexpress-v2p-ca5s.dtb
-dtb-$(CONFIG_TARGET_VEXPRESS_CA9X4) += vexpress-v2p-ca9.dtb
-dtb-$(CONFIG_TARGET_VEXPRESS_CA15_TC2) += vexpress-v2p-ca15_a7.dtb
-
 dtb-$(CONFIG_TARGET_TOTAL_COMPUTE) += total_compute.dtb
 
 dtb-$(CONFIG_TARGET_DURIAN) += phytium-durian.dtb
arch/arm/dts/vexpress-v2m-rs1.dtsi deleted +0 -437

437 lines not on this page · raw message

arch/arm/dts/vexpress-v2m.dtsi deleted +0 -451

452 lines not on this page · raw message

arch/arm/dts/vexpress-v2p-ca15_a7.dts deleted +0 -682

682 lines not on this page · raw message

arch/arm/dts/vexpress-v2p-ca5s.dts deleted +0 -280

280 lines not on this page · raw message

arch/arm/dts/vexpress-v2p-ca9.dts deleted +0 -368

368 lines not on this page · raw message

board/armltd/vexpress/Kconfig deleted +0 -38
deleted file mode 100644
index 2e15e0d4975f..000000000000
@@ -1,38 +0,0 @@
-if TARGET_VEXPRESS_CA15_TC2
-
-config SYS_BOARD
-	default "vexpress"
-
-config SYS_VENDOR
-	default "armltd"
-
-config SYS_CONFIG_NAME
-	default "vexpress_ca15_tc2"
-
-endif
-
-if TARGET_VEXPRESS_CA5X2
-
-config SYS_BOARD
-	default "vexpress"
-
-config SYS_VENDOR
-	default "armltd"
-
-config SYS_CONFIG_NAME
-	default "vexpress_ca5x2"
-
-endif
-
-if TARGET_VEXPRESS_CA9X4
-
-config SYS_BOARD
-	default "vexpress"
-
-config SYS_VENDOR
-	default "armltd"
-
-config SYS_CONFIG_NAME
-	default "vexpress_ca9x4"
-
-endif
board/armltd/vexpress/MAINTAINERS deleted +0 -10
deleted file mode 100644
index 7b3fb42e5651..000000000000
@@ -1,10 +0,0 @@
-VERSATILE EXPRESS BOARDS
-M:	Linus Walleij <[email protected]>
-S:	Maintained
-F:	board/armltd/vexpress/
-F:	include/configs/vexpress_ca15_tc2.h
-F:	configs/vexpress_ca15_tc2_defconfig
-F:	include/configs/vexpress_ca5x2.h
-F:	configs/vexpress_ca5x2_defconfig
-F:	include/configs/vexpress_ca9x4.h
-F:	configs/vexpress_ca9x4_defconfig
board/armltd/vexpress/Makefile deleted +0 -7
deleted file mode 100644
index 2a659de012ac..000000000000
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2004
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-
-obj-y	:= vexpress_common.o
-obj-$(CONFIG_TARGET_VEXPRESS_CA15_TC2)	+= vexpress_tc2.o
board/armltd/vexpress/vexpress_common.c deleted +0 -203

203 lines not on this page · raw message

board/armltd/vexpress/vexpress_tc2.c deleted +0 -84

84 lines not on this page · raw message

configs/vexpress_ca15_tc2_defconfig deleted +0 -40
deleted file mode 100644
index e8e401b17903..000000000000
@@ -1,40 +0,0 @@
-CONFIG_ARM=y
-CONFIG_TARGET_VEXPRESS_CA15_TC2=y
-CONFIG_SYS_TEXT_BASE=0x80800000
-CONFIG_NR_DRAM_BANKS=2
-CONFIG_ENV_SIZE=0x40000
-CONFIG_ENV_SECT_SIZE=0x40000
-CONFIG_DISTRO_DEFAULTS=y
-CONFIG_OF_BOARD_SETUP=y
-CONFIG_BOOTCOMMAND="run distro_bootcmd; run bootflash"
-# CONFIG_DISPLAY_CPUINFO is not set
-# CONFIG_DISPLAY_BOARDINFO is not set
-# CONFIG_CMD_CONSOLE is not set
-# CONFIG_CMD_BOOTD is not set
-# CONFIG_CMD_XIMG is not set
-# CONFIG_CMD_EDITENV is not set
-# CONFIG_CMD_LOADB is not set
-# CONFIG_CMD_LOADS is not set
-CONFIG_CMD_MMC=y
-# CONFIG_CMD_ITEST is not set
-# CONFIG_CMD_SETEXPR is not set
-# CONFIG_CMD_NFS is not set
-# CONFIG_CMD_SLEEP is not set
-CONFIG_CMD_UBI=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_FLASH=y
-CONFIG_ENV_ADDR=0xFF80000
-CONFIG_ARM_PL180_MMCI=y
-CONFIG_MTD=y
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
-CONFIG_SYS_FLASH_PROTECTION=y
-CONFIG_SYS_FLASH_CFI=y
-CONFIG_SMC911X=y
-CONFIG_SMC911X_BASE=0x1a000000
-CONFIG_SMC911X_32_BIT=y
-CONFIG_BAUDRATE=38400
-CONFIG_CONS_INDEX=0
-CONFIG_OF_LIBFDT=y
-# CONFIG_EFI_LOADER is not set
configs/vexpress_ca5x2_defconfig deleted +0 -38
deleted file mode 100644
index 88027b940bae..000000000000
@@ -1,38 +0,0 @@
-CONFIG_ARM=y
-CONFIG_TARGET_VEXPRESS_CA5X2=y
-CONFIG_SYS_TEXT_BASE=0x80800000
-CONFIG_NR_DRAM_BANKS=2
-CONFIG_ENV_SIZE=0x40000
-CONFIG_ENV_SECT_SIZE=0x40000
-CONFIG_DISTRO_DEFAULTS=y
-CONFIG_BOOTCOMMAND="run distro_bootcmd; run bootflash"
-# CONFIG_DISPLAY_CPUINFO is not set
-# CONFIG_DISPLAY_BOARDINFO is not set
-# CONFIG_CMD_CONSOLE is not set
-# CONFIG_CMD_BOOTD is not set
-# CONFIG_CMD_XIMG is not set
-# CONFIG_CMD_EDITENV is not set
-# CONFIG_CMD_LOADB is not set
-# CONFIG_CMD_LOADS is not set
-CONFIG_CMD_MMC=y
-# CONFIG_CMD_ITEST is not set
-# CONFIG_CMD_SETEXPR is not set
-# CONFIG_CMD_NFS is not set
-# CONFIG_CMD_SLEEP is not set
-CONFIG_CMD_UBI=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_FLASH=y
-CONFIG_ENV_ADDR=0xFF80000
-CONFIG_ARM_PL180_MMCI=y
-CONFIG_MTD=y
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
-CONFIG_SYS_FLASH_PROTECTION=y
-CONFIG_SYS_FLASH_CFI=y
-CONFIG_SMC911X=y
-CONFIG_SMC911X_BASE=0x1a000000
-CONFIG_SMC911X_32_BIT=y
-CONFIG_BAUDRATE=38400
-CONFIG_CONS_INDEX=0
-CONFIG_OF_LIBFDT=y
configs/vexpress_ca9x4_defconfig deleted +0 -39
deleted file mode 100644
index 7b148450e567..000000000000
@@ -1,39 +0,0 @@
-CONFIG_ARM=y
-CONFIG_TARGET_VEXPRESS_CA9X4=y
-CONFIG_SYS_TEXT_BASE=0x60800000
-CONFIG_NR_DRAM_BANKS=2
-CONFIG_ENV_SIZE=0x40000
-CONFIG_ENV_SECT_SIZE=0x40000
-CONFIG_DISTRO_DEFAULTS=y
-CONFIG_BOOTCOMMAND="run distro_bootcmd; run bootflash"
-CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb"
-# CONFIG_DISPLAY_CPUINFO is not set
-# CONFIG_DISPLAY_BOARDINFO is not set
-# CONFIG_CMD_CONSOLE is not set
-# CONFIG_CMD_BOOTD is not set
-# CONFIG_CMD_XIMG is not set
-# CONFIG_CMD_EDITENV is not set
-# CONFIG_CMD_LOADB is not set
-# CONFIG_CMD_LOADS is not set
-CONFIG_CMD_MMC=y
-# CONFIG_CMD_ITEST is not set
-# CONFIG_CMD_SETEXPR is not set
-# CONFIG_CMD_NFS is not set
-# CONFIG_CMD_SLEEP is not set
-CONFIG_CMD_UBI=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_FLASH=y
-CONFIG_ENV_ADDR=0x47F80000
-CONFIG_ARM_PL180_MMCI=y
-CONFIG_MTD=y
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
-CONFIG_SYS_FLASH_PROTECTION=y
-CONFIG_SYS_FLASH_CFI=y
-CONFIG_SMC911X=y
-CONFIG_SMC911X_BASE=0x4e000000
-CONFIG_SMC911X_32_BIT=y
-CONFIG_BAUDRATE=38400
-CONFIG_CONS_INDEX=0
-CONFIG_OF_LIBFDT=y
drivers/i2c/Kconfig +1 -1
index 403602fddff2..367004b15bc7 100644
@@ -458,7 +458,7 @@ config SYS_I2C_UNIPHIER_F
 
 config SYS_I2C_VERSATILE
 	bool "Arm Ltd Versatile I2C bus driver"
-	depends on DM_I2C && (TARGET_VEXPRESS_CA15_TC2 || TARGET_VEXPRESS64_JUNO)
+	depends on DM_I2C && TARGET_VEXPRESS64_JUNO
 	help
 	  Add support for the Arm Ltd Versatile Express I2C driver. The I2C host
 	  controller is present in the development boards manufactured by Arm Ltd.
include/configs/vexpress_ca15_tc2.h deleted +0 -19
deleted file mode 100644
index 4f8e63574dfb..000000000000
@@ -1,19 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2013 Linaro
- * Andre Przywara, <[email protected]>
- *
- * Configuration for Versatile Express. Parts were derived from other ARM
- *   configurations.
- */
-
-#ifndef __VEXPRESS_CA15X2_TC2_h
-#define __VEXPRESS_CA15X2_TC2_h
-
-#define CONFIG_VEXPRESS_EXTENDED_MEMORY_MAP
-#include "vexpress_common.h"
-
-#define CONFIG_SYSFLAGS_ADDR	0x1c010030
-#define CONFIG_SMP_PEN_ADDR	CONFIG_SYSFLAGS_ADDR
-
-#endif
include/configs/vexpress_ca5x2.h deleted +0 -16
deleted file mode 100644
index b8079e63d666..000000000000
@@ -1,16 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2011 Linaro
- * Ryan Harkin, <[email protected]>
- *
- * Configuration for Versatile Express. Parts were derived from other ARM
- *   configurations.
- */
-
-#ifndef __VEXPRESS_CA5X2_h
-#define __VEXPRESS_CA5X2_h
-
-#define CONFIG_VEXPRESS_EXTENDED_MEMORY_MAP
-#include "vexpress_common.h"
-
-#endif /* __VEXPRESS_CA5X2_h */
include/configs/vexpress_ca9x4.h deleted +0 -16
deleted file mode 100644
index 8157a5868d65..000000000000
@@ -1,16 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2011 Linaro
- * Ryan Harkin, <[email protected]>
- *
- * Configuration for Versatile Express. Parts were derived from other ARM
- *   configurations.
- */
-
-#ifndef __VEXPRESS_CA9X4_H
-#define __VEXPRESS_CA9X4_H
-
-#define CONFIG_VEXPRESS_ORIGINAL_MEMORY_MAP
-#include "vexpress_common.h"
-
-#endif /* VEXPRESS_CA9X4_H */
Signature · 1 line
2.17.1
author
#40 lore raw

PATCH 16/25 arm: Remove gwventana boards

In reply to Tom Rini

These boards have not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove them.

---
 arch/arm/mach-imx/mx6/Kconfig               |    1 -
 board/gateworks/gw_ventana/Kconfig          |   28 -
 board/gateworks/gw_ventana/MAINTAINERS      |    8 -
 board/gateworks/gw_ventana/Makefile         |   11 -
 board/gateworks/gw_ventana/README           |  320 ----
 board/gateworks/gw_ventana/common.c         | 1760 -------------------
 board/gateworks/gw_ventana/common.h         |   99 --
 board/gateworks/gw_ventana/eeprom.c         |  266 ---
 board/gateworks/gw_ventana/gsc.c            |  283 ---
 board/gateworks/gw_ventana/gsc.h            |   71 -
 board/gateworks/gw_ventana/gw_ventana.c     | 1381 ---------------
 board/gateworks/gw_ventana/gw_ventana_spl.c |  779 --------
 board/gateworks/gw_ventana/ventana_eeprom.h |  140 --
 configs/gwventana_emmc_defconfig            |  111 --
 configs/gwventana_gw5904_defconfig          |  115 --
 configs/gwventana_nand_defconfig            |  115 --
 include/configs/gw_ventana.h                |  298 ----
 17 files changed, 5786 deletions(-)
 delete mode 100644 board/gateworks/gw_ventana/Kconfig
 delete mode 100644 board/gateworks/gw_ventana/MAINTAINERS
 delete mode 100644 board/gateworks/gw_ventana/Makefile
 delete mode 100644 board/gateworks/gw_ventana/README
 delete mode 100644 board/gateworks/gw_ventana/common.c
 delete mode 100644 board/gateworks/gw_ventana/common.h
 delete mode 100644 board/gateworks/gw_ventana/eeprom.c
 delete mode 100644 board/gateworks/gw_ventana/gsc.c
 delete mode 100644 board/gateworks/gw_ventana/gsc.h
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana.c
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana_spl.c
 delete mode 100644 board/gateworks/gw_ventana/ventana_eeprom.h
 delete mode 100644 configs/gwventana_emmc_defconfig
 delete mode 100644 configs/gwventana_gw5904_defconfig
 delete mode 100644 configs/gwventana_nand_defconfig
 delete mode 100644 include/configs/gw_ventana.h
arch/arm/mach-imx/mx6/Kconfig +0 -1
index 513d007ce75a..dacfe623903c 100644
@@ -730,7 +730,6 @@ source "board/grinn/liteboard/Kconfig"
 source "board/phytec/pcm058/Kconfig"
 source "board/phytec/pfla02/Kconfig"
 source "board/phytec/pcl063/Kconfig"
-source "board/gateworks/gw_ventana/Kconfig"
 source "board/kosagi/novena/Kconfig"
 source "board/softing/vining_2000/Kconfig"
 source "board/liebherr/display5/Kconfig"
board/gateworks/gw_ventana/Kconfig deleted +0 -28
deleted file mode 100644
index fee910ca837d..000000000000
@@ -1,28 +0,0 @@
-if TARGET_GW_VENTANA
-
-config DM_GPIO
-	default y
-
-config SYS_BOARD
-	default "gw_ventana"
-
-config SYS_VENDOR
-	default "gateworks"
-
-config SYS_CONFIG_NAME
-	default "gw_ventana"
-
-config CMD_EECONFIG
-	bool "Enable the 'econfig' command"
-	help
-	  Provides access to EEPROM configuration on Gateworks Ventana
-
-config CMD_GSC
-	bool "Enable the 'gsc' command"
-	help
-	  Provides access to the GSC configuration:
-
-	     gsc sleep - sleeps for a period of seconds
-	     gsc wd - enables / disables the watchdog
-
-endif
board/gateworks/gw_ventana/MAINTAINERS deleted +0 -8
deleted file mode 100644
index 265ddac1c054..000000000000
@@ -1,8 +0,0 @@
-GW_VENTANA BOARD
-M:	Tim Harvey <[email protected]>
-S:	Maintained
-F:	board/gateworks/gw_ventana/
-F:	include/configs/gw_ventana.h
-F:	configs/gwventana_nand_defconfig
-F:	configs/gwventana_emmc_defconfig
-F:	configs/gwventana_gw5904_defconfig
board/gateworks/gw_ventana/Makefile deleted +0 -11
deleted file mode 100644
index 8fa691aefc4f..000000000000
@@ -1,11 +0,0 @@
-#
-# Copyright (C) 2012-2013, Guennadi Liakhovetski <[email protected]>
-# (C) Copyright 2012-2013 Freescale Semiconductor, Inc.
-# Copyright (C) 2013, Gateworks Corporation
-#
-# SPDX-License-Identifier:  GPL-2.0+
-#
-
-obj-y  := gw_ventana.o gsc.o eeprom.o common.o
-obj-$(CONFIG_SPL_BUILD) += gw_ventana_spl.o
-
board/gateworks/gw_ventana/README deleted +0 -320

320 lines not on this page · raw message

board/gateworks/gw_ventana/common.c deleted +0 -1760

1,760 lines not on this page · raw message

board/gateworks/gw_ventana/common.h deleted +0 -99

99 lines not on this page · raw message

board/gateworks/gw_ventana/eeprom.c deleted +0 -266

266 lines not on this page · raw message

board/gateworks/gw_ventana/gsc.c deleted +0 -283

283 lines not on this page · raw message

board/gateworks/gw_ventana/gsc.h deleted +0 -71

71 lines not on this page · raw message

board/gateworks/gw_ventana/gw_ventana.c deleted +0 -1381

147 lines not on this page · raw message

board/gateworks/gw_ventana/gw_ventana_spl.c deleted +0 -779

779 lines not on this page · raw message

board/gateworks/gw_ventana/ventana_eeprom.h deleted +0 -140

140 lines not on this page · raw message

configs/gwventana_emmc_defconfig deleted +0 -111

111 lines not on this page · raw message

configs/gwventana_gw5904_defconfig deleted +0 -115

115 lines not on this page · raw message

configs/gwventana_nand_defconfig deleted +0 -115

115 lines not on this page · raw message

include/configs/gw_ventana.h deleted +0 -298

298 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.17.1

Part of the diff is not shown here. View the raw message.

#41 lore raw

PATCH 16/25 arm: Remove gwventana boards

Quoted 34 lines · Tom Rini

These boards have not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove them.

---
 arch/arm/mach-imx/mx6/Kconfig               |    1 -
 board/gateworks/gw_ventana/Kconfig          |   28 -
 board/gateworks/gw_ventana/MAINTAINERS      |    8 -
 board/gateworks/gw_ventana/Makefile         |   11 -
 board/gateworks/gw_ventana/README           |  320 ----
 board/gateworks/gw_ventana/common.c         | 1760 -------------------
 board/gateworks/gw_ventana/common.h         |   99 --
 board/gateworks/gw_ventana/eeprom.c         |  266 ---
 board/gateworks/gw_ventana/gsc.c            |  283 ---
 board/gateworks/gw_ventana/gsc.h            |   71 -
 board/gateworks/gw_ventana/gw_ventana.c     | 1381 ---------------
 board/gateworks/gw_ventana/gw_ventana_spl.c |  779 --------
 board/gateworks/gw_ventana/ventana_eeprom.h |  140 --
 configs/gwventana_emmc_defconfig            |  111 --
 configs/gwventana_gw5904_defconfig          |  115 --
 configs/gwventana_nand_defconfig            |  115 --
 include/configs/gw_ventana.h                |  298 ----
 17 files changed, 5786 deletions(-)
 delete mode 100644 board/gateworks/gw_ventana/Kconfig
 delete mode 100644 board/gateworks/gw_ventana/MAINTAINERS
 delete mode 100644 board/gateworks/gw_ventana/Makefile
 delete mode 100644 board/gateworks/gw_ventana/README
 delete mode 100644 board/gateworks/gw_ventana/common.c
 delete mode 100644 board/gateworks/gw_ventana/common.h
 delete mode 100644 board/gateworks/gw_ventana/eeprom.c
 delete mode 100644 board/gateworks/gw_ventana/gsc.c
Quoted 9 lines
 delete mode 100644 board/gateworks/gw_ventana/gsc.h
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana.c
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana_spl.c
 delete mode 100644 board/gateworks/gw_ventana/ventana_eeprom.h
 delete mode 100644 configs/gwventana_emmc_defconfig
 delete mode 100644 configs/gwventana_gw5904_defconfig
 delete mode 100644 configs/gwventana_nand_defconfig
 delete mode 100644 include/configs/gw_ventana.h

Tom,

I will submit a patchset to convert the gw_ventana IMX6 based boards to DM. I started this effort over a year ago and got stuck at some point but I think I know how to get through that now.

I hope to be able to submit something by the end of next week.

Best regards,

Tim

author
#42 lore raw

PATCH 16/25 arm: Remove gwventana boards

Quoted 45 lines · Tim Harvey
Quoted 34 lines · Tom Rini

These boards have not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove them.

---
 arch/arm/mach-imx/mx6/Kconfig               |    1 -
 board/gateworks/gw_ventana/Kconfig          |   28 -
 board/gateworks/gw_ventana/MAINTAINERS      |    8 -
 board/gateworks/gw_ventana/Makefile         |   11 -
 board/gateworks/gw_ventana/README           |  320 ----
 board/gateworks/gw_ventana/common.c         | 1760 -------------------
 board/gateworks/gw_ventana/common.h         |   99 --
 board/gateworks/gw_ventana/eeprom.c         |  266 ---
 board/gateworks/gw_ventana/gsc.c            |  283 ---
 board/gateworks/gw_ventana/gsc.h            |   71 -
 board/gateworks/gw_ventana/gw_ventana.c     | 1381 ---------------
 board/gateworks/gw_ventana/gw_ventana_spl.c |  779 --------
 board/gateworks/gw_ventana/ventana_eeprom.h |  140 --
 configs/gwventana_emmc_defconfig            |  111 --
 configs/gwventana_gw5904_defconfig          |  115 --
 configs/gwventana_nand_defconfig            |  115 --
 include/configs/gw_ventana.h                |  298 ----
 17 files changed, 5786 deletions(-)
 delete mode 100644 board/gateworks/gw_ventana/Kconfig
 delete mode 100644 board/gateworks/gw_ventana/MAINTAINERS
 delete mode 100644 board/gateworks/gw_ventana/Makefile
 delete mode 100644 board/gateworks/gw_ventana/README
 delete mode 100644 board/gateworks/gw_ventana/common.c
 delete mode 100644 board/gateworks/gw_ventana/common.h
 delete mode 100644 board/gateworks/gw_ventana/eeprom.c
 delete mode 100644 board/gateworks/gw_ventana/gsc.c
Quoted 9 lines
 delete mode 100644 board/gateworks/gw_ventana/gsc.h
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana.c
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana_spl.c
 delete mode 100644 board/gateworks/gw_ventana/ventana_eeprom.h
 delete mode 100644 configs/gwventana_emmc_defconfig
 delete mode 100644 configs/gwventana_gw5904_defconfig
 delete mode 100644 configs/gwventana_nand_defconfig
 delete mode 100644 include/configs/gw_ventana.h
Quoted 7 lines

Tom,

I will submit a patchset to convert the gw_ventana IMX6 based boards to DM. I started this effort over a year ago and got stuck at some point but I think I know how to get through that now.

I hope to be able to submit something by the end of next week.

Thanks! Their conversion will help unblock a few of the older migrations.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210210/d0a9667c/attachment.sig>
#43 lore raw

PATCH 16/25 arm: Remove gwventana boards

Quoted 49 lines · Tom Rini
Quoted 47 lines · Tim Harvey
Quoted 34 lines · Tom Rini

These boards have not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove them.

---
 arch/arm/mach-imx/mx6/Kconfig               |    1 -
 board/gateworks/gw_ventana/Kconfig          |   28 -
 board/gateworks/gw_ventana/MAINTAINERS      |    8 -
 board/gateworks/gw_ventana/Makefile         |   11 -
 board/gateworks/gw_ventana/README           |  320 ----
 board/gateworks/gw_ventana/common.c         | 1760 -------------------
 board/gateworks/gw_ventana/common.h         |   99 --
 board/gateworks/gw_ventana/eeprom.c         |  266 ---
 board/gateworks/gw_ventana/gsc.c            |  283 ---
 board/gateworks/gw_ventana/gsc.h            |   71 -
 board/gateworks/gw_ventana/gw_ventana.c     | 1381 ---------------
 board/gateworks/gw_ventana/gw_ventana_spl.c |  779 --------
 board/gateworks/gw_ventana/ventana_eeprom.h |  140 --
 configs/gwventana_emmc_defconfig            |  111 --
 configs/gwventana_gw5904_defconfig          |  115 --
 configs/gwventana_nand_defconfig            |  115 --
 include/configs/gw_ventana.h                |  298 ----
 17 files changed, 5786 deletions(-)
 delete mode 100644 board/gateworks/gw_ventana/Kconfig
 delete mode 100644 board/gateworks/gw_ventana/MAINTAINERS
 delete mode 100644 board/gateworks/gw_ventana/Makefile
 delete mode 100644 board/gateworks/gw_ventana/README
 delete mode 100644 board/gateworks/gw_ventana/common.c
 delete mode 100644 board/gateworks/gw_ventana/common.h
 delete mode 100644 board/gateworks/gw_ventana/eeprom.c
 delete mode 100644 board/gateworks/gw_ventana/gsc.c
Quoted 9 lines
 delete mode 100644 board/gateworks/gw_ventana/gsc.h
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana.c
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana_spl.c
 delete mode 100644 board/gateworks/gw_ventana/ventana_eeprom.h
 delete mode 100644 configs/gwventana_emmc_defconfig
 delete mode 100644 configs/gwventana_gw5904_defconfig
 delete mode 100644 configs/gwventana_nand_defconfig
 delete mode 100644 include/configs/gw_ventana.h

Tom,

Quoted 8 lines
Quoted 5 lines

I will submit a patchset to convert the gw_ventana IMX6 based boards to DM. I started this effort over a year ago and got stuck at some point but I think I know how to get through that now.

I hope to be able to submit something by the end of next week.

Thanks! Their conversion will help unblock a few of the older migrations.

Tom / Stefano,

Looking at this again I realize where I got stuck previously trying to migrate the Gateworks Ventana support to driver-model.

1. I need MULTI_DTB_FIT for raw NAND and the following issues are blocking me:
a. spl_nand_fit_read() requires the reads to be page-aligned to the
writesize of the NAND device. I have to work through trying to give the common nand spl code knowledge of the mtd device to get around this.
b. spl_nand_fit_read() since 9f6a14c47ff9 ("spl: fit: nand: fix fit
loading in case of bad blocks") which introduces bad block handling now requires a lot of static defines describing the NAND chip such as CONFIG_SYS_NAND_BLOCK_SIZE CONFIG_SYS_NAND_BAD_BLOCK_POS and a few more that I need to get from mtd as well as we support multiple flash devices that have different geometries. I can wrap that code around an 'ifdef CONFIG_SYS_NAND_BLOCK_SIZE' to opt out of that feature.
2. I have a board with an MV88E61XX switch and drivers/net/phy/mv88e61xx.c and I don't see any driver-model support for eth switches connected to a phy. This blocks me from using DM_ETH. I have an unsubmitted patch queued up depending on my imx8mm-venice series that I think may provide a dm solution for network switches via DM_ETH_PHY.
3. I can't use driver model for SPL because of memory constraints: I need to read the board model from an I2C EEPROM in the SPL and then if I wanted to use SPL dm I would have to use dm_uninit() followed by dm_init_and_scan() which doesn't work because dm_uninit() does not free memory. It seems to me the DM_SPL code needs to implement memory free.

The biggest hurdle I see is (3) above and as far as I can tell most if not all other IMX boards are not using driver model for SPL. If this is true, then there are a lot of boards out there that haven't been able to fully swtich to driver model and are getting missed in the checks because DM_USB, DM_MMC, DM_* are defined for U-boot proper. That does not help remove legacy code from what I can tell.

What are your thoughts on the fact that many (majority?) boards are still using non-dm code for SPL?

Tim

Quoted 3 lines

--
Tom

author
#44 lore raw

PATCH 16/25 arm: Remove gwventana boards

Quoted 56 lines · Tim Harvey
Quoted 55 lines · Tom Rini
Quoted 52 lines · Tim Harvey
Quoted 34 lines · Tom Rini

These boards have not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove them.

---
 arch/arm/mach-imx/mx6/Kconfig               |    1 -
 board/gateworks/gw_ventana/Kconfig          |   28 -
 board/gateworks/gw_ventana/MAINTAINERS      |    8 -
 board/gateworks/gw_ventana/Makefile         |   11 -
 board/gateworks/gw_ventana/README           |  320 ----
 board/gateworks/gw_ventana/common.c         | 1760 -------------------
 board/gateworks/gw_ventana/common.h         |   99 --
 board/gateworks/gw_ventana/eeprom.c         |  266 ---
 board/gateworks/gw_ventana/gsc.c            |  283 ---
 board/gateworks/gw_ventana/gsc.h            |   71 -
 board/gateworks/gw_ventana/gw_ventana.c     | 1381 ---------------
 board/gateworks/gw_ventana/gw_ventana_spl.c |  779 --------
 board/gateworks/gw_ventana/ventana_eeprom.h |  140 --
 configs/gwventana_emmc_defconfig            |  111 --
 configs/gwventana_gw5904_defconfig          |  115 --
 configs/gwventana_nand_defconfig            |  115 --
 include/configs/gw_ventana.h                |  298 ----
 17 files changed, 5786 deletions(-)
 delete mode 100644 board/gateworks/gw_ventana/Kconfig
 delete mode 100644 board/gateworks/gw_ventana/MAINTAINERS
 delete mode 100644 board/gateworks/gw_ventana/Makefile
 delete mode 100644 board/gateworks/gw_ventana/README
 delete mode 100644 board/gateworks/gw_ventana/common.c
 delete mode 100644 board/gateworks/gw_ventana/common.h
 delete mode 100644 board/gateworks/gw_ventana/eeprom.c
 delete mode 100644 board/gateworks/gw_ventana/gsc.c
Quoted 9 lines
 delete mode 100644 board/gateworks/gw_ventana/gsc.h
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana.c
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana_spl.c
 delete mode 100644 board/gateworks/gw_ventana/ventana_eeprom.h
 delete mode 100644 configs/gwventana_emmc_defconfig
 delete mode 100644 configs/gwventana_gw5904_defconfig
 delete mode 100644 configs/gwventana_nand_defconfig
 delete mode 100644 include/configs/gw_ventana.h

Tom,

I will submit a patchset to convert the gw_ventana IMX6 based boards to DM. I started this effort over a year ago and got stuck at some point but I think I know how to get through that now.

I hope to be able to submit something by the end of next week.

Quoted 7 lines
Quoted 2 lines

Thanks! Their conversion will help unblock a few of the older migrations.

Tom / Stefano,

Looking at this again I realize where I got stuck previously trying to migrate the Gateworks Ventana support to driver-model.

Thanks for digging in and summarizing.

Quoted 4 lines

1. I need MULTI_DTB_FIT for raw NAND and the following issues are blocking me:
a. spl_nand_fit_read() requires the reads to be page-aligned to the
writesize of the NAND device. I have to work through trying to give the common nand spl code knowledge of the mtd device to get around

Quoted 8 lines

this.
b. spl_nand_fit_read() since 9f6a14c47ff9 ("spl: fit: nand: fix fit
loading in case of bad blocks") which introduces bad block handling now requires a lot of static defines describing the NAND chip such as CONFIG_SYS_NAND_BLOCK_SIZE CONFIG_SYS_NAND_BAD_BLOCK_POS and a few more that I need to get from mtd as well as we support multiple flash devices that have different geometries. I can wrap that code around an 'ifdef CONFIG_SYS_NAND_BLOCK_SIZE' to opt out of that feature.

Which is all SPL related, right? It seems so, but to be clear...

Quoted 20 lines

2. I have a board with an MV88E61XX switch and drivers/net/phy/mv88e61xx.c and I don't see any driver-model support for eth switches connected to a phy. This blocks me from using DM_ETH. I have an unsubmitted patch queued up depending on my imx8mm-venice series that I think may provide a dm solution for network switches via DM_ETH_PHY.
3. I can't use driver model for SPL because of memory constraints: I need to read the board model from an I2C EEPROM in the SPL and then if I wanted to use SPL dm I would have to use dm_uninit() followed by dm_init_and_scan() which doesn't work because dm_uninit() does not free memory. It seems to me the DM_SPL code needs to implement memory free.

The biggest hurdle I see is (3) above and as far as I can tell most if not all other IMX boards are not using driver model for SPL. If this is true, then there are a lot of boards out there that haven't been able to fully swtich to driver model and are getting missed in the checks because DM_USB, DM_MMC, DM_* are defined for U-boot proper. That does not help remove legacy code from what I can tell.

Quoted 2 lines

What are your thoughts on the fact that many (majority?) boards are still using non-dm code for SPL?

So, SPL in DM is not a general requirement. There's some new features in SPL that aren't available without it, but if you aren't using them today, that's not a big problem.

That leaves DM_ETH, which has a deadline of v2020.07 (so just barely past) and since you're on the way to hopefully addressing the general problem, that's great. My big concern right now is all of the v2019.04/07 deadlines. If you can address those right now, that's great.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210217/f5304343/attachment.sig>
#45 lore raw

PATCH 16/25 arm: Remove gwventana boards

Quoted 81 lines · Tom Rini
Quoted 56 lines · Tim Harvey
Quoted 55 lines · Tom Rini
Quoted 52 lines · Tim Harvey
Quoted 34 lines · Tom Rini

These boards have not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove them.

---
 arch/arm/mach-imx/mx6/Kconfig               |    1 -
 board/gateworks/gw_ventana/Kconfig          |   28 -
 board/gateworks/gw_ventana/MAINTAINERS      |    8 -
 board/gateworks/gw_ventana/Makefile         |   11 -
 board/gateworks/gw_ventana/README           |  320 ----
 board/gateworks/gw_ventana/common.c         | 1760 -------------------
 board/gateworks/gw_ventana/common.h         |   99 --
 board/gateworks/gw_ventana/eeprom.c         |  266 ---
 board/gateworks/gw_ventana/gsc.c            |  283 ---
 board/gateworks/gw_ventana/gsc.h            |   71 -
 board/gateworks/gw_ventana/gw_ventana.c     | 1381 ---------------
 board/gateworks/gw_ventana/gw_ventana_spl.c |  779 --------
 board/gateworks/gw_ventana/ventana_eeprom.h |  140 --
 configs/gwventana_emmc_defconfig            |  111 --
 configs/gwventana_gw5904_defconfig          |  115 --
 configs/gwventana_nand_defconfig            |  115 --
 include/configs/gw_ventana.h                |  298 ----
 17 files changed, 5786 deletions(-)
 delete mode 100644 board/gateworks/gw_ventana/Kconfig
 delete mode 100644 board/gateworks/gw_ventana/MAINTAINERS
 delete mode 100644 board/gateworks/gw_ventana/Makefile
 delete mode 100644 board/gateworks/gw_ventana/README
 delete mode 100644 board/gateworks/gw_ventana/common.c
 delete mode 100644 board/gateworks/gw_ventana/common.h
 delete mode 100644 board/gateworks/gw_ventana/eeprom.c
 delete mode 100644 board/gateworks/gw_ventana/gsc.c
Quoted 9 lines
 delete mode 100644 board/gateworks/gw_ventana/gsc.h
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana.c
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana_spl.c
 delete mode 100644 board/gateworks/gw_ventana/ventana_eeprom.h
 delete mode 100644 configs/gwventana_emmc_defconfig
 delete mode 100644 configs/gwventana_gw5904_defconfig
 delete mode 100644 configs/gwventana_nand_defconfig
 delete mode 100644 include/configs/gw_ventana.h

Tom,

I will submit a patchset to convert the gw_ventana IMX6 based boards to DM. I started this effort over a year ago and got stuck at some point but I think I know how to get through that now.

I hope to be able to submit something by the end of next week.

Quoted 7 lines
Quoted 2 lines

Thanks! Their conversion will help unblock a few of the older migrations.

Tom / Stefano,

Looking at this again I realize where I got stuck previously trying to migrate the Gateworks Ventana support to driver-model.

Thanks for digging in and summarizing.

Quoted 4 lines

1. I need MULTI_DTB_FIT for raw NAND and the following issues are blocking me:
a. spl_nand_fit_read() requires the reads to be page-aligned to the
writesize of the NAND device. I have to work through trying to give the common nand spl code knowledge of the mtd device to get around

Quoted 8 lines

this.
b. spl_nand_fit_read() since 9f6a14c47ff9 ("spl: fit: nand: fix fit
loading in case of bad blocks") which introduces bad block handling now requires a lot of static defines describing the NAND chip such as CONFIG_SYS_NAND_BLOCK_SIZE CONFIG_SYS_NAND_BAD_BLOCK_POS and a few more that I need to get from mtd as well as we support multiple flash devices that have different geometries. I can wrap that code around an 'ifdef CONFIG_SYS_NAND_BLOCK_SIZE' to opt out of that feature.

Quoted 2 lines

Which is all SPL related, right? It seems so, but to be clear...

Yes, both issues above are with regards to imx SPL+FIT+NAND. Ironically if I could use driver-model for SPL it would make things much easier working around what I ran into.

Quoted 20 lines
Quoted 20 lines

2. I have a board with an MV88E61XX switch and drivers/net/phy/mv88e61xx.c and I don't see any driver-model support for eth switches connected to a phy. This blocks me from using DM_ETH. I have an unsubmitted patch queued up depending on my imx8mm-venice series that I think may provide a dm solution for network switches via DM_ETH_PHY.
3. I can't use driver model for SPL because of memory constraints: I need to read the board model from an I2C EEPROM in the SPL and then if I wanted to use SPL dm I would have to use dm_uninit() followed by dm_init_and_scan() which doesn't work because dm_uninit() does not free memory. It seems to me the DM_SPL code needs to implement memory free.

The biggest hurdle I see is (3) above and as far as I can tell most if not all other IMX boards are not using driver model for SPL. If this is true, then there are a lot of boards out there that haven't been able to fully swtich to driver model and are getting missed in the checks because DM_USB, DM_MMC, DM_* are defined for U-boot proper. That does not help remove legacy code from what I can tell.

Quoted 6 lines
Quoted 2 lines

What are your thoughts on the fact that many (majority?) boards are still using non-dm code for SPL?

So, SPL in DM is not a general requirement. There's some new features in SPL that aren't available without it, but if you aren't using them today, that's not a big problem.

Ok... I just thought it was strange that there was this big push to get all MMC to DM_MMC yet the non-dm mmc code still seems to be needed for all the boards using non-dm SPL.

Quoted 6 lines

That leaves DM_ETH, which has a deadline of v2020.07 (so just barely past) and since you're on the way to hopefully addressing the general problem, that's great. My big concern right now is all of the v2019.04/07 deadlines. If you can address those right now, that's great.

I should be able to address that. Hopefully I'll have a patch series submitted soon.

Thanks,

Tim

author
#46 lore raw

PATCH 16/25 arm: Remove gwventana boards

Quoted 112 lines · Tim Harvey
Quoted 81 lines · Tom Rini
Quoted 56 lines · Tim Harvey
Quoted 55 lines · Tom Rini
Quoted 52 lines · Tim Harvey
Quoted 34 lines · Tom Rini

These boards have not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove them.

---
 arch/arm/mach-imx/mx6/Kconfig               |    1 -
 board/gateworks/gw_ventana/Kconfig          |   28 -
 board/gateworks/gw_ventana/MAINTAINERS      |    8 -
 board/gateworks/gw_ventana/Makefile         |   11 -
 board/gateworks/gw_ventana/README           |  320 ----
 board/gateworks/gw_ventana/common.c         | 1760 -------------------
 board/gateworks/gw_ventana/common.h         |   99 --
 board/gateworks/gw_ventana/eeprom.c         |  266 ---
 board/gateworks/gw_ventana/gsc.c            |  283 ---
 board/gateworks/gw_ventana/gsc.h            |   71 -
 board/gateworks/gw_ventana/gw_ventana.c     | 1381 ---------------
 board/gateworks/gw_ventana/gw_ventana_spl.c |  779 --------
 board/gateworks/gw_ventana/ventana_eeprom.h |  140 --
 configs/gwventana_emmc_defconfig            |  111 --
 configs/gwventana_gw5904_defconfig          |  115 --
 configs/gwventana_nand_defconfig            |  115 --
 include/configs/gw_ventana.h                |  298 ----
 17 files changed, 5786 deletions(-)
 delete mode 100644 board/gateworks/gw_ventana/Kconfig
 delete mode 100644 board/gateworks/gw_ventana/MAINTAINERS
 delete mode 100644 board/gateworks/gw_ventana/Makefile
 delete mode 100644 board/gateworks/gw_ventana/README
 delete mode 100644 board/gateworks/gw_ventana/common.c
 delete mode 100644 board/gateworks/gw_ventana/common.h
 delete mode 100644 board/gateworks/gw_ventana/eeprom.c
 delete mode 100644 board/gateworks/gw_ventana/gsc.c
Quoted 9 lines
 delete mode 100644 board/gateworks/gw_ventana/gsc.h
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana.c
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana_spl.c
 delete mode 100644 board/gateworks/gw_ventana/ventana_eeprom.h
 delete mode 100644 configs/gwventana_emmc_defconfig
 delete mode 100644 configs/gwventana_gw5904_defconfig
 delete mode 100644 configs/gwventana_nand_defconfig
 delete mode 100644 include/configs/gw_ventana.h

Tom,

I will submit a patchset to convert the gw_ventana IMX6 based boards to DM. I started this effort over a year ago and got stuck at some point but I think I know how to get through that now.

I hope to be able to submit something by the end of next week.

Quoted 7 lines
Quoted 2 lines

Thanks! Their conversion will help unblock a few of the older migrations.

Tom / Stefano,

Looking at this again I realize where I got stuck previously trying to migrate the Gateworks Ventana support to driver-model.

Thanks for digging in and summarizing.

Quoted 4 lines

1. I need MULTI_DTB_FIT for raw NAND and the following issues are blocking me:
a. spl_nand_fit_read() requires the reads to be page-aligned to the
writesize of the NAND device. I have to work through trying to give the common nand spl code knowledge of the mtd device to get around

Quoted 8 lines

this.
b. spl_nand_fit_read() since 9f6a14c47ff9 ("spl: fit: nand: fix fit
loading in case of bad blocks") which introduces bad block handling now requires a lot of static defines describing the NAND chip such as CONFIG_SYS_NAND_BLOCK_SIZE CONFIG_SYS_NAND_BAD_BLOCK_POS and a few more that I need to get from mtd as well as we support multiple flash devices that have different geometries. I can wrap that code around an 'ifdef CONFIG_SYS_NAND_BLOCK_SIZE' to opt out of that feature.

Quoted 2 lines

Which is all SPL related, right? It seems so, but to be clear...

Yes, both issues above are with regards to imx SPL+FIT+NAND. Ironically if I could use driver-model for SPL it would make things much easier working around what I ran into.

Quoted 23 lines
Quoted 22 lines

2. I have a board with an MV88E61XX switch and drivers/net/phy/mv88e61xx.c and I don't see any driver-model support for eth switches connected to a phy. This blocks me from using DM_ETH. I have an unsubmitted patch queued up depending on my imx8mm-venice series that I think may provide a dm solution for network switches via DM_ETH_PHY.
3. I can't use driver model for SPL because of memory constraints: I need to read the board model from an I2C EEPROM in the SPL and then if I wanted to use SPL dm I would have to use dm_uninit() followed by dm_init_and_scan() which doesn't work because dm_uninit() does not free memory. It seems to me the DM_SPL code needs to implement memory free.

The biggest hurdle I see is (3) above and as far as I can tell most if not all other IMX boards are not using driver model for SPL. If this is true, then there are a lot of boards out there that haven't been able to fully swtich to driver model and are getting missed in the checks because DM_USB, DM_MMC, DM_* are defined for U-boot proper. That does not help remove legacy code from what I can tell.

What are your thoughts on the fact that many (majority?) boards are still using non-dm code for SPL?

Quoted 7 lines
Quoted 3 lines

So, SPL in DM is not a general requirement. There's some new features in SPL that aren't available without it, but if you aren't using them today, that's not a big problem.

Ok... I just thought it was strange that there was this big push to get all MMC to DM_MMC yet the non-dm mmc code still seems to be needed for all the boards using non-dm SPL.

It's this hard problem we're still working to solve. I'm going to assume you hit a hard size limit when trying to use DM+SPL. I'd really like to see those WIP patches, so that we can see what else needs to happen to make everything be small enough, but I'd like to see the rest of the migration happen first, so we can otherwise unblock things.

Quoted 8 lines
Quoted 5 lines

That leaves DM_ETH, which has a deadline of v2020.07 (so just barely past) and since you're on the way to hopefully addressing the general problem, that's great. My big concern right now is all of the v2019.04/07 deadlines. If you can address those right now, that's great.

I should be able to address that. Hopefully I'll have a patch series submitted soon.

Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210222/cab291a9/attachment.sig>
#47 lore raw

PATCH 16/25 arm: Remove gwventana boards

Quoted 122 lines · Tom Rini
Quoted 112 lines · Tim Harvey
Quoted 81 lines · Tom Rini
Quoted 56 lines · Tim Harvey
Quoted 55 lines · Tom Rini
Quoted 52 lines · Tim Harvey
Quoted 34 lines · Tom Rini

These boards have not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove them.

---
 arch/arm/mach-imx/mx6/Kconfig               |    1 -
 board/gateworks/gw_ventana/Kconfig          |   28 -
 board/gateworks/gw_ventana/MAINTAINERS      |    8 -
 board/gateworks/gw_ventana/Makefile         |   11 -
 board/gateworks/gw_ventana/README           |  320 ----
 board/gateworks/gw_ventana/common.c         | 1760 -------------------
 board/gateworks/gw_ventana/common.h         |   99 --
 board/gateworks/gw_ventana/eeprom.c         |  266 ---
 board/gateworks/gw_ventana/gsc.c            |  283 ---
 board/gateworks/gw_ventana/gsc.h            |   71 -
 board/gateworks/gw_ventana/gw_ventana.c     | 1381 ---------------
 board/gateworks/gw_ventana/gw_ventana_spl.c |  779 --------
 board/gateworks/gw_ventana/ventana_eeprom.h |  140 --
 configs/gwventana_emmc_defconfig            |  111 --
 configs/gwventana_gw5904_defconfig          |  115 --
 configs/gwventana_nand_defconfig            |  115 --
 include/configs/gw_ventana.h                |  298 ----
 17 files changed, 5786 deletions(-)
 delete mode 100644 board/gateworks/gw_ventana/Kconfig
 delete mode 100644 board/gateworks/gw_ventana/MAINTAINERS
 delete mode 100644 board/gateworks/gw_ventana/Makefile
 delete mode 100644 board/gateworks/gw_ventana/README
 delete mode 100644 board/gateworks/gw_ventana/common.c
 delete mode 100644 board/gateworks/gw_ventana/common.h
 delete mode 100644 board/gateworks/gw_ventana/eeprom.c
 delete mode 100644 board/gateworks/gw_ventana/gsc.c
Quoted 9 lines
 delete mode 100644 board/gateworks/gw_ventana/gsc.h
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana.c
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana_spl.c
 delete mode 100644 board/gateworks/gw_ventana/ventana_eeprom.h
 delete mode 100644 configs/gwventana_emmc_defconfig
 delete mode 100644 configs/gwventana_gw5904_defconfig
 delete mode 100644 configs/gwventana_nand_defconfig
 delete mode 100644 include/configs/gw_ventana.h

Tom,

I will submit a patchset to convert the gw_ventana IMX6 based boards to DM. I started this effort over a year ago and got stuck at some point but I think I know how to get through that now.

I hope to be able to submit something by the end of next week.

Quoted 7 lines
Quoted 2 lines

Thanks! Their conversion will help unblock a few of the older migrations.

Tom / Stefano,

Looking at this again I realize where I got stuck previously trying to migrate the Gateworks Ventana support to driver-model.

Thanks for digging in and summarizing.

Quoted 4 lines

1. I need MULTI_DTB_FIT for raw NAND and the following issues are blocking me:
a. spl_nand_fit_read() requires the reads to be page-aligned to the
writesize of the NAND device. I have to work through trying to give the common nand spl code knowledge of the mtd device to get around

Quoted 8 lines

this.
b. spl_nand_fit_read() since 9f6a14c47ff9 ("spl: fit: nand: fix fit
loading in case of bad blocks") which introduces bad block handling now requires a lot of static defines describing the NAND chip such as CONFIG_SYS_NAND_BLOCK_SIZE CONFIG_SYS_NAND_BAD_BLOCK_POS and a few more that I need to get from mtd as well as we support multiple flash devices that have different geometries. I can wrap that code around an 'ifdef CONFIG_SYS_NAND_BLOCK_SIZE' to opt out of that feature.

Quoted 2 lines

Which is all SPL related, right? It seems so, but to be clear...

Yes, both issues above are with regards to imx SPL+FIT+NAND. Ironically if I could use driver-model for SPL it would make things much easier working around what I ran into.

Quoted 23 lines
Quoted 22 lines

2. I have a board with an MV88E61XX switch and drivers/net/phy/mv88e61xx.c and I don't see any driver-model support for eth switches connected to a phy. This blocks me from using DM_ETH. I have an unsubmitted patch queued up depending on my imx8mm-venice series that I think may provide a dm solution for network switches via DM_ETH_PHY.
3. I can't use driver model for SPL because of memory constraints: I need to read the board model from an I2C EEPROM in the SPL and then if I wanted to use SPL dm I would have to use dm_uninit() followed by dm_init_and_scan() which doesn't work because dm_uninit() does not free memory. It seems to me the DM_SPL code needs to implement memory free.

The biggest hurdle I see is (3) above and as far as I can tell most if not all other IMX boards are not using driver model for SPL. If this is true, then there are a lot of boards out there that haven't been able to fully swtich to driver model and are getting missed in the checks because DM_USB, DM_MMC, DM_* are defined for U-boot proper. That does not help remove legacy code from what I can tell.

What are your thoughts on the fact that many (majority?) boards are still using non-dm code for SPL?

Quoted 7 lines
Quoted 3 lines

So, SPL in DM is not a general requirement. There's some new features in SPL that aren't available without it, but if you aren't using them today, that's not a big problem.

Ok... I just thought it was strange that there was this big push to get all MMC to DM_MMC yet the non-dm mmc code still seems to be needed for all the boards using non-dm SPL.

Quoted 5 lines

It's this hard problem we're still working to solve. I'm going to assume you hit a hard size limit when trying to use DM+SPL. I'd really like to see those WIP patches, so that we can see what else needs to happen to make everything be small enough, but I'd like to see the rest of the migration happen first, so we can otherwise unblock things.

Tom,

Actually, on the imx8mm-venice board I was working on (patches submitted but not yet applied) I tried to use dm-SPL and I didn't run into a code size limit, I ran into a memory limit. On that board just like the ventana boards we have an i2c based eeprom that contains the specific board model which dictates the dtb to use. The documentation I found in U-Boot mentioned that if you need to switch dt's at runtime you use dm_uninit() followed by dm_init_and_scan() on the new dt and what happens there is that for SPL dm_uninit() ends up not freeing any memory thus during the binding in dm_init_and_scan() you will run out of memory available for your devices. I tried to work around this by resetting the malloc pointer but then ran into something else and it was at that time I realized that I just needed to let go of using dm in the SPL.

I can look at it again after getting the rest of the patches applied.

Tim

Quoted 14 lines
Quoted 9 lines
Quoted 6 lines

That leaves DM_ETH, which has a deadline of v2020.07 (so just barely past) and since you're on the way to hopefully addressing the general problem, that's great. My big concern right now is all of the v2019.04/07 deadlines. If you can address those right now, that's great.

I should be able to address that. Hopefully I'll have a patch series submitted soon.

Thanks!

--
Tom

#48 lore raw

PATCH 16/25 arm: Remove gwventana boards

Hi Tom,

Quoted 132 lines · Tim Harvey
Quoted 122 lines · Tom Rini
Quoted 112 lines · Tim Harvey
Quoted 81 lines · Tom Rini
Quoted 56 lines · Tim Harvey
Quoted 55 lines · Tom Rini
Quoted 52 lines · Tim Harvey
Quoted 34 lines · Tom Rini

These boards have not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove them.

---
 arch/arm/mach-imx/mx6/Kconfig               |    1 -
 board/gateworks/gw_ventana/Kconfig          |   28 -
 board/gateworks/gw_ventana/MAINTAINERS      |    8 -
 board/gateworks/gw_ventana/Makefile         |   11 -
 board/gateworks/gw_ventana/README           |  320 ----
 board/gateworks/gw_ventana/common.c         | 1760 -------------------
 board/gateworks/gw_ventana/common.h         |   99 --
 board/gateworks/gw_ventana/eeprom.c         |  266 ---
 board/gateworks/gw_ventana/gsc.c            |  283 ---
 board/gateworks/gw_ventana/gsc.h            |   71 -
 board/gateworks/gw_ventana/gw_ventana.c     | 1381 ---------------
 board/gateworks/gw_ventana/gw_ventana_spl.c |  779 --------
 board/gateworks/gw_ventana/ventana_eeprom.h |  140 --
 configs/gwventana_emmc_defconfig            |  111 --
 configs/gwventana_gw5904_defconfig          |  115 --
 configs/gwventana_nand_defconfig            |  115 --
 include/configs/gw_ventana.h                |  298 ----
 17 files changed, 5786 deletions(-)
 delete mode 100644 board/gateworks/gw_ventana/Kconfig
 delete mode 100644 board/gateworks/gw_ventana/MAINTAINERS
 delete mode 100644 board/gateworks/gw_ventana/Makefile
 delete mode 100644 board/gateworks/gw_ventana/README
 delete mode 100644 board/gateworks/gw_ventana/common.c
 delete mode 100644 board/gateworks/gw_ventana/common.h
 delete mode 100644 board/gateworks/gw_ventana/eeprom.c
 delete mode 100644 board/gateworks/gw_ventana/gsc.c
Quoted 9 lines
 delete mode 100644 board/gateworks/gw_ventana/gsc.h
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana.c
 delete mode 100644 board/gateworks/gw_ventana/gw_ventana_spl.c
 delete mode 100644 board/gateworks/gw_ventana/ventana_eeprom.h
 delete mode 100644 configs/gwventana_emmc_defconfig
 delete mode 100644 configs/gwventana_gw5904_defconfig
 delete mode 100644 configs/gwventana_nand_defconfig
 delete mode 100644 include/configs/gw_ventana.h

Tom,

I will submit a patchset to convert the gw_ventana IMX6 based boards to DM. I started this effort over a year ago and got stuck at some point but I think I know how to get through that now.

I hope to be able to submit something by the end of next week.

Quoted 7 lines
Quoted 2 lines

Thanks! Their conversion will help unblock a few of the older migrations.

Tom / Stefano,

Looking at this again I realize where I got stuck previously trying to migrate the Gateworks Ventana support to driver-model.

Thanks for digging in and summarizing.

Quoted 4 lines

1. I need MULTI_DTB_FIT for raw NAND and the following issues are blocking me:
a. spl_nand_fit_read() requires the reads to be page-aligned to the
writesize of the NAND device. I have to work through trying to give the common nand spl code knowledge of the mtd device to get around

Quoted 8 lines

this.
b. spl_nand_fit_read() since 9f6a14c47ff9 ("spl: fit: nand: fix fit
loading in case of bad blocks") which introduces bad block handling now requires a lot of static defines describing the NAND chip such as CONFIG_SYS_NAND_BLOCK_SIZE CONFIG_SYS_NAND_BAD_BLOCK_POS and a few more that I need to get from mtd as well as we support multiple flash devices that have different geometries. I can wrap that code around an 'ifdef CONFIG_SYS_NAND_BLOCK_SIZE' to opt out of that feature.

Quoted 2 lines

Which is all SPL related, right? It seems so, but to be clear...

Yes, both issues above are with regards to imx SPL+FIT+NAND. Ironically if I could use driver-model for SPL it would make things much easier working around what I ran into.

Quoted 23 lines
Quoted 22 lines

2. I have a board with an MV88E61XX switch and drivers/net/phy/mv88e61xx.c and I don't see any driver-model support for eth switches connected to a phy. This blocks me from using DM_ETH. I have an unsubmitted patch queued up depending on my imx8mm-venice series that I think may provide a dm solution for network switches via DM_ETH_PHY.
3. I can't use driver model for SPL because of memory constraints: I need to read the board model from an I2C EEPROM in the SPL and then if I wanted to use SPL dm I would have to use dm_uninit() followed by dm_init_and_scan() which doesn't work because dm_uninit() does not free memory. It seems to me the DM_SPL code needs to implement memory free.

The biggest hurdle I see is (3) above and as far as I can tell most if not all other IMX boards are not using driver model for SPL. If this is true, then there are a lot of boards out there that haven't been able to fully swtich to driver model and are getting missed in the checks because DM_USB, DM_MMC, DM_* are defined for U-boot proper. That does not help remove legacy code from what I can tell.

What are your thoughts on the fact that many (majority?) boards are still using non-dm code for SPL?

Quoted 7 lines
Quoted 3 lines

So, SPL in DM is not a general requirement. There's some new features in SPL that aren't available without it, but if you aren't using them today, that's not a big problem.

Ok... I just thought it was strange that there was this big push to get all MMC to DM_MMC yet the non-dm mmc code still seems to be needed for all the boards using non-dm SPL.

Quoted 5 lines

It's this hard problem we're still working to solve. I'm going to assume you hit a hard size limit when trying to use DM+SPL. I'd really like to see those WIP patches, so that we can see what else needs to happen to make everything be small enough, but I'd like to see the rest of the migration happen first, so we can otherwise unblock things.

Tom,

Quoted 13 lines

Actually, on the imx8mm-venice board I was working on (patches submitted but not yet applied) I tried to use dm-SPL and I didn't run into a code size limit, I ran into a memory limit. On that board just like the ventana boards we have an i2c based eeprom that contains the specific board model which dictates the dtb to use. The documentation I found in U-Boot mentioned that if you need to switch dt's at runtime you use dm_uninit() followed by dm_init_and_scan() on the new dt and what happens there is that for SPL dm_uninit() ends up not freeing any memory thus during the binding in dm_init_and_scan() you will run out of memory available for your devices. I tried to work around this by resetting the malloc pointer but then ran into something else and it was at that time I realized that I just needed to let go of using dm in the SPL.

In SPL at least, you need to use the correct devicetree when initing driver model. The free() function is a nop in SPL.

So do you have multiple DTs in the SPL image, and select from one using the EEPROM? Can you not use TPL to handle this, so that it can load SPL with the correct devicetree? That might be easier. Also doing this all in SPL is not compatible with of-platdata-inst, which (at present at least) binds all devices at build time using a single DT.

The problem with resetting the malloc pointer is that there may be other allocations before or driver model. If you must avoid TPL, one option might be to implement a way to record the malloc pointer when dm_init() is called and after it finishes. Then add a dm_reinit() function which makes sure the malloc() pointer has not since moved, resets to the original and sets up DM again. This could only be used immediately after DM init, though.

But honestly I am not a fan of reiniting DM twice. At minimum you should make sure that the base devicetree has only the EEPROM device, i.e. just enough to get that up and running. So I think TPL is better.

Another option is to read from the EEPROM in pre-DM code. Not very nice or easy though. I think that might be a rabbit hole.

Quoted 19 lines

I can look at it again after getting the rest of the patches applied.

Tim

Quoted 14 lines
Quoted 9 lines
Quoted 6 lines

That leaves DM_ETH, which has a deadline of v2020.07 (so just barely past) and since you're on the way to hopefully addressing the general problem, that's great. My big concern right now is all of the v2019.04/07 deadlines. If you can address those right now, that's great.

I should be able to address that. Hopefully I'll have a patch series submitted soon.

Thanks!

--
Tom

Regards,
Simon

author
#49 lore raw

PATCH 17/25 arm: Remove secomx6quq7 board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Boris Brezillon <[email protected]>
---
 arch/arm/mach-imx/mx6/Kconfig     |   4 -
 board/seco/Kconfig                |  65 -----------
 board/seco/common/Makefile        |   3 -
 board/seco/common/mx6.c           | 137 -----------------------
 board/seco/common/mx6.h           |   9 --
 board/seco/mx6quq7/MAINTAINERS    |   6 -
 board/seco/mx6quq7/Makefile       |   5 -
 board/seco/mx6quq7/mx6quq7-2g.cfg | 172 ----------------------------
 board/seco/mx6quq7/mx6quq7.c      | 180 ------------------------------
 configs/secomx6quq7_defconfig     |  39 -------
 include/configs/secomx6quq7.h     |  81 --------------
 11 files changed, 701 deletions(-)
 delete mode 100644 board/seco/Kconfig
 delete mode 100644 board/seco/common/Makefile
 delete mode 100644 board/seco/common/mx6.c
 delete mode 100644 board/seco/common/mx6.h
 delete mode 100644 board/seco/mx6quq7/MAINTAINERS
 delete mode 100644 board/seco/mx6quq7/Makefile
 delete mode 100644 board/seco/mx6quq7/mx6quq7-2g.cfg
 delete mode 100644 board/seco/mx6quq7/mx6quq7.c
 delete mode 100644 configs/secomx6quq7_defconfig
 delete mode 100644 include/configs/secomx6quq7.h
arch/arm/mach-imx/mx6/Kconfig +0 -4
index dacfe623903c..737e305f29f1 100644
@@ -551,9 +551,6 @@ config TARGET_PCL063_ULL
 	select DM_THERMAL
 	select SUPPORT_SPL
 
-config TARGET_SECOMX6
-	bool "secomx6 boards"
-
 config TARGET_SKSIMX6
 	bool "sks-imx6"
 	depends on MX6QDL
@@ -735,7 +732,6 @@ source "board/softing/vining_2000/Kconfig"
 source "board/liebherr/display5/Kconfig"
 source "board/liebherr/mccmon6/Kconfig"
 source "board/logicpd/imx6/Kconfig"
-source "board/seco/Kconfig"
 source "board/sks-kinkel/sksimx6/Kconfig"
 source "board/solidrun/mx6cuboxi/Kconfig"
 source "board/somlabs/visionsom-6ull/Kconfig"
board/seco/Kconfig deleted +0 -65

65 lines not on this page · raw message

board/seco/common/Makefile deleted +0 -3
deleted file mode 100644
index 4220e89bc5c0..000000000000
@@ -1,3 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-
-obj-$(CONFIG_TARGET_SECOMX6) += mx6.o
board/seco/common/mx6.c deleted +0 -137

137 lines not on this page · raw message

board/seco/common/mx6.h deleted +0 -9
deleted file mode 100644
index a05db673e284..000000000000
@@ -1,9 +0,0 @@
-#ifndef __SECO_COMMON_MX6_H
-#define __SECO_COMMON_MX6_H
-
-void seco_mx6_setup_uart_iomux(void);
-void seco_mx6_setup_enet_iomux(void);
-int seco_mx6_rgmii_rework(struct phy_device *phydev);
-void seco_mx6_setup_usdhc_iomux(int id);
-
-#endif /* __SECO_COMMON_MX6_H */
board/seco/mx6quq7/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 60fd4caab8f5..000000000000
@@ -1,6 +0,0 @@
-MX6QUQ7 BOARD
-M:	Boris Brezillon <[email protected]>
-S:	Maintained
-F:	board/seco/mx6quq7/
-F:	include/configs/secomx6quq7.h
-F:	configs/secomx6quq7_defconfig
board/seco/mx6quq7/Makefile deleted +0 -5
deleted file mode 100644
index c7aea8c851a5..000000000000
@@ -1,5 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2015 ECA Sinters
-
-obj-y  := mx6quq7.o
board/seco/mx6quq7/mx6quq7-2g.cfg deleted +0 -172

172 lines not on this page · raw message

board/seco/mx6quq7/mx6quq7.c deleted +0 -180

180 lines not on this page · raw message

configs/secomx6quq7_defconfig deleted +0 -39
deleted file mode 100644
index cc56b2e2b6c4..000000000000
@@ -1,39 +0,0 @@
-CONFIG_ARM=y
-CONFIG_ARCH_MX6=y
-CONFIG_SYS_TEXT_BASE=0x17800000
-CONFIG_NR_DRAM_BANKS=1
-CONFIG_ENV_SIZE=0x2000
-CONFIG_ENV_OFFSET=0xC0000
-CONFIG_MX6Q=y
-CONFIG_TARGET_SECOMX6=y
-CONFIG_SECOMX6_UQ7=y
-CONFIG_SECOMX6Q=y
-CONFIG_SECOMX6_2GB=y
-CONFIG_SUPPORT_RAW_INITRD=y
-CONFIG_BOOTDELAY=3
-CONFIG_BOARD_EARLY_INIT_F=y
-CONFIG_HUSH_PARSER=y
-CONFIG_SYS_PROMPT="SECO MX6Q uQ7 U-Boot > "
-CONFIG_CMD_BOOTZ=y
-CONFIG_CMD_GPIO=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_CACHE=y
-CONFIG_CMD_EXT2=y
-CONFIG_CMD_EXT4=y
-CONFIG_CMD_EXT4_WRITE=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_FS_GENERIC=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_MMC=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_BOUNCE_BUFFER=y
-CONFIG_FSL_USDHC=y
-CONFIG_PHYLIB=y
-CONFIG_PHY_MICREL=y
-CONFIG_PHY_MICREL_KSZ90X1=y
-CONFIG_MII=y
-CONFIG_MXC_UART=y
-CONFIG_OF_LIBFDT=y
include/configs/secomx6quq7.h deleted +0 -81

81 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#50 lore raw

PATCH 18/25 arm: Remove ls2080a_simu board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Prabhakar Kushwaha <[email protected]>
Cc Priyanka Jain <[email protected]>
---
 arch/arm/Kconfig                    |  13 ---
 arch/arm/cpu/armv8/Kconfig          |   2 +-
 board/freescale/ls2080a/Kconfig     |  35 ------
 board/freescale/ls2080a/MAINTAINERS |   9 --
 board/freescale/ls2080a/Makefile    |   6 -
 board/freescale/ls2080a/README      |  27 -----
 board/freescale/ls2080a/ddr.c       | 171 ----------------------------
 board/freescale/ls2080a/ddr.h       |  85 --------------
 board/freescale/ls2080a/ls2080a.c   | 147 ------------------------
 configs/ls2080a_emu_defconfig       |  38 -------
 configs/ls2080a_simu_defconfig      |  46 --------
 drivers/i2c/Kconfig                 |   4 +-
 include/configs/ls2080a_emu.h       |  80 -------------
 include/configs/ls2080a_simu.h      | 147 ------------------------
 14 files changed, 3 insertions(+), 807 deletions(-)
 delete mode 100644 board/freescale/ls2080a/Kconfig
 delete mode 100644 board/freescale/ls2080a/MAINTAINERS
 delete mode 100644 board/freescale/ls2080a/Makefile
 delete mode 100644 board/freescale/ls2080a/README
 delete mode 100644 board/freescale/ls2080a/ddr.c
 delete mode 100644 board/freescale/ls2080a/ddr.h
 delete mode 100644 board/freescale/ls2080a/ls2080a.c
 delete mode 100644 configs/ls2080a_emu_defconfig
 delete mode 100644 configs/ls2080a_simu_defconfig
 delete mode 100644 include/configs/ls2080a_emu.h
 delete mode 100644 include/configs/ls2080a_simu.h
arch/arm/Kconfig +0 -13
index 2e75efe2da8e..6263781e6f60 100644
@@ -1193,18 +1193,6 @@ config TARGET_LS2080A_EMU
 	  development platform that supports the QorIQ LS2080A
 	  Layerscape Architecture processor.
 
-config TARGET_LS2080A_SIMU
-	bool "Support ls2080a_simu"
-	select ARCH_LS2080A
-	select ARM64
-	select ARMV8_MULTIENTRY
-	select BOARD_LATE_INIT
-	help
-	  Support for Freescale LS2080A_SIMU platform.
-	  The LS2080A Development System (QDS) is a pre silicon
-	  development platform that supports the QorIQ LS2080A
-	  Layerscape Architecture processor.
-
 config TARGET_LS1088AQDS
 	bool "Support ls1088aqds"
 	select ARCH_LS1088A
@@ -1962,7 +1950,6 @@ source "board/cavium/thunderx/Kconfig"
 source "board/cirrus/edb93xx/Kconfig"
 source "board/eets/pdu001/Kconfig"
 source "board/emulation/qemu-arm/Kconfig"
-source "board/freescale/ls2080a/Kconfig"
 source "board/freescale/ls2080aqds/Kconfig"
 source "board/freescale/ls2080ardb/Kconfig"
 source "board/freescale/ls1088a/Kconfig"
arch/arm/cpu/armv8/Kconfig +1 -1
index f2474413ccab..9cd6a8d642b5 100644
@@ -104,7 +104,7 @@ config PSCI_RESET
 	default y
 	select ARM_SMCCC if OF_CONTROL
 	depends on !ARCH_EXYNOS7 && !ARCH_BCM283X && \
-		   !TARGET_LS2080A_SIMU && !TARGET_LS2080AQDS && \
+		   !TARGET_LS2080AQDS && \
 		   !TARGET_LS2080ARDB && !TARGET_LS2080A_EMU && \
 		   !TARGET_LS1088ARDB && !TARGET_LS1088AQDS && \
 		   !TARGET_LS1012ARDB && !TARGET_LS1012AFRDM && \
board/freescale/ls2080a/Kconfig deleted +0 -35
deleted file mode 100644
index b5033511b55b..000000000000
@@ -1,35 +0,0 @@
-if TARGET_LS2080A_EMU
-
-config SYS_BOARD
-	default "ls2080a"
-
-config SYS_VENDOR
-	default "freescale"
-
-config SYS_SOC
-	default "fsl-layerscape"
-
-config SYS_CONFIG_NAME
-	default "ls2080a_emu"
-
-source "board/freescale/common/Kconfig"
-
-endif
-
-if TARGET_LS2080A_SIMU
-
-config SYS_BOARD
-	default "ls2080a"
-
-config SYS_VENDOR
-	default "freescale"
-
-config SYS_SOC
-	default "fsl-layerscape"
-
-config SYS_CONFIG_NAME
-	default "ls2080a_simu"
-
-source "board/freescale/common/Kconfig"
-
-endif
board/freescale/ls2080a/MAINTAINERS deleted +0 -9
deleted file mode 100644
index e0e4e3f83e89..000000000000
@@ -1,9 +0,0 @@
-LS2080A BOARD
-M:	Prabhakar Kushwaha <[email protected]>
-M:	Priyanka Jain <[email protected]>
-S:	Maintained
-F:	board/freescale/ls2080a/
-F:	include/configs/ls2080a_emu.h
-F:	configs/ls2080a_emu_defconfig
-F:	include/configs/ls2080a_simu.h
-F:	configs/ls2080a_simu_defconfig
board/freescale/ls2080a/Makefile deleted +0 -6
deleted file mode 100644
index 87e26d977094..000000000000
@@ -1,6 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright 2014-15 Freescale Semiconductor
-
-obj-y += ls2080a.o
-obj-y += ddr.o
board/freescale/ls2080a/README deleted +0 -27
deleted file mode 100644
index 646cc02693bc..000000000000
@@ -1,27 +0,0 @@
-Freescale ls2080a_emu
-
-This is a emulator target with limited peripherals.
-
-Memory map from core's view
-
-0x00_0000_0000 .. 0x00_000F_FFFF	Boot Rom
-0x00_0100_0000 .. 0x00_0FFF_FFFF	CCSR
-0x00_1800_0000 .. 0x00_181F_FFFF	OCRAM
-0x00_3000_0000 .. 0x00_3FFF_FFFF	IFC region #1
-0x00_8000_0000 .. 0x00_FFFF_FFFF	DDR region #1
-0x05_1000_0000 .. 0x05_FFFF_FFFF	IFC region #2
-0x80_8000_0000 .. 0xFF_FFFF_FFFF	DDR region #2
-
-Other addresses are either reserved, or not used directly by U-Boot.
-This list should be updated when more addresses are used.
-
-Booting Linux flavors which do not support 48-bit VA (< Linux 3.18)
--------------------------------------------------------------------
-One needs to use appropriate bootargs to boot Linux flavors which do
-not support 48-bit VA (for e.g. < Linux 3.18) by appending mem=2048M, as shown
-below:
-
-=> setenv bootargs 'console=ttyS1,115200 root=/dev/ram
-   earlycon=uart8250,mmio,0x21c0600,115200 default_hugepagesz=2m hugepagesz=2m
-   hugepages=16 mem=2048M'
-
board/freescale/ls2080a/ddr.c deleted +0 -171

171 lines not on this page · raw message

board/freescale/ls2080a/ddr.h deleted +0 -85

85 lines not on this page · raw message

board/freescale/ls2080a/ls2080a.c deleted +0 -147

147 lines not on this page · raw message

configs/ls2080a_emu_defconfig deleted +0 -38
deleted file mode 100644
index c42f012a6a29..000000000000
@@ -1,38 +0,0 @@
-CONFIG_ARM=y
-CONFIG_TARGET_LS2080A_EMU=y
-CONFIG_SYS_TEXT_BASE=0x30100000
-CONFIG_NR_DRAM_BANKS=3
-CONFIG_ENV_SIZE=0x1000
-CONFIG_IDENT_STRING=" LS2080A-EMU"
-CONFIG_FIT=y
-CONFIG_FIT_VERBOSE=y
-CONFIG_OF_BOARD_SETUP=y
-CONFIG_OF_STDOUT_VIA_ALIAS=y
-CONFIG_SYS_EXTRA_OPTIONS="EMU"
-CONFIG_BOOTDELAY=10
-CONFIG_USE_BOOTARGS=y
-CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m hugepages=256"
-# CONFIG_USE_BOOTCOMMAND is not set
-# CONFIG_DISPLAY_BOARDINFO is not set
-# CONFIG_CMD_CONSOLE is not set
-# CONFIG_CMD_XIMG is not set
-# CONFIG_CMD_EDITENV is not set
-CONFIG_CMD_GREPENV=y
-CONFIG_CMD_I2C=y
-# CONFIG_CMD_LOADS is not set
-# CONFIG_CMD_ITEST is not set
-# CONFIG_CMD_SETEXPR is not set
-# CONFIG_CMD_NFS is not set
-CONFIG_CMD_CACHE=y
-# CONFIG_CMD_SLEEP is not set
-CONFIG_MP=y
-# CONFIG_DOS_PARTITION is not set
-# CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
-CONFIG_ENV_OVERWRITE=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_FSL_CAAM=y
-# CONFIG_MMC is not set
-CONFIG_SYS_NS16550=y
-CONFIG_OF_LIBFDT=y
-CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
configs/ls2080a_simu_defconfig deleted +0 -46

46 lines not on this page · raw message

drivers/i2c/Kconfig +2 -2
index 367004b15bc7..ec3d6779dfbb 100644
@@ -222,7 +222,7 @@ endif
 if SYS_I2C_MXC_I2C1
 config SYS_MXC_I2C1_SPEED
 	int "I2C Channel 1 speed"
-	default 40000000 if TARGET_LS2080A_SIMU || TARGET_LS2080A_EMU
+	default 40000000 if TARGET_LS2080A_EMU
 	default 100000
 	help
 	 MXC I2C Channel 1 speed
@@ -237,7 +237,7 @@ endif
 if SYS_I2C_MXC_I2C2
 config SYS_MXC_I2C2_SPEED
 	int "I2C Channel 2 speed"
-	default 40000000 if TARGET_LS2080A_SIMU || TARGET_LS2080A_EMU
+	default 40000000 if TARGET_LS2080A_EMU
 	default 100000
 	help
 	 MXC I2C Channel 2 speed
include/configs/ls2080a_emu.h deleted +0 -80

80 lines not on this page · raw message

include/configs/ls2080a_simu.h deleted +0 -147

147 lines not on this page · raw message

Signature · 1 line
2.17.1
#51 lore raw

PATCH 18/25 arm: Remove ls2080a_simu board

Quoted 8 lines

-----Original Message-----
From: Tom Rini <[email protected]>
Sent: Tuesday, February 9, 2021 6:33 PM
To: u-boot at lists.denx.de
Cc: Prabhakar Kushwaha <[email protected]>; Priyanka Jain <[email protected]>
Subject: [PATCH 18/25] arm: Remove ls2080a_simu board

Quoted 8 lines

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Prabhakar Kushwaha <[email protected]>
Cc Priyanka Jain <[email protected]>

---

author
#52 lore raw

PATCH 18/25 arm: Remove ls2080a_simu board

In reply to Tom Rini
Quoted 8 lines · Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Prabhakar Kushwaha <[email protected]>
Cc Priyanka Jain <[email protected]>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210215/b24a23ac/attachment.sig>
author
#53 lore raw

PATCH 19/25 arm: Remove s32v234evb board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Eddy Petri?or <[email protected]>
---
 arch/arm/Kconfig                              |   6 -
 arch/arm/cpu/armv8/Kconfig                    |   2 +-
 arch/arm/cpu/armv8/s32v234/Makefile           |   6 -
 arch/arm/cpu/armv8/s32v234/cpu.c              | 102 -----
 arch/arm/cpu/armv8/s32v234/cpu.h              |   7 -
 arch/arm/cpu/armv8/s32v234/generic.c          | 353 ------------------
 arch/arm/include/asm/arch-s32v234/clock.h     |  31 --
 arch/arm/include/asm/arch-s32v234/ddr.h       | 156 --------
 arch/arm/include/asm/arch-s32v234/imx-regs.h  | 328 ----------------
 arch/arm/include/asm/arch-s32v234/lpddr2.h    |  74 ----
 .../include/asm/arch-s32v234/mc_cgm_regs.h    | 253 -------------
 .../arm/include/asm/arch-s32v234/mc_me_regs.h | 198 ----------
 .../include/asm/arch-s32v234/mc_rgm_regs.h    |  30 --
 arch/arm/include/asm/arch-s32v234/mmdc.h      |  88 -----
 arch/arm/include/asm/arch-s32v234/siul.h      | 149 --------
 board/freescale/s32v234evb/Kconfig            |  23 --
 board/freescale/s32v234evb/MAINTAINERS        |   8 -
 board/freescale/s32v234evb/Makefile           |   9 -
 board/freescale/s32v234evb/clock.c            | 343 -----------------
 board/freescale/s32v234evb/lpddr2.c           | 136 -------
 board/freescale/s32v234evb/s32v234evb.c       | 183 ---------
 board/freescale/s32v234evb/s32v234evb.cfg     |  28 --
 configs/s32v234evb_defconfig                  |  25 --
 drivers/mmc/Kconfig                           |   2 +-
 include/configs/s32v234evb.h                  | 167 ---------
 25 files changed, 2 insertions(+), 2705 deletions(-)
 delete mode 100644 arch/arm/cpu/armv8/s32v234/Makefile
 delete mode 100644 arch/arm/cpu/armv8/s32v234/cpu.c
 delete mode 100644 arch/arm/cpu/armv8/s32v234/cpu.h
 delete mode 100644 arch/arm/cpu/armv8/s32v234/generic.c
 delete mode 100644 arch/arm/include/asm/arch-s32v234/clock.h
 delete mode 100644 arch/arm/include/asm/arch-s32v234/ddr.h
 delete mode 100644 arch/arm/include/asm/arch-s32v234/imx-regs.h
 delete mode 100644 arch/arm/include/asm/arch-s32v234/lpddr2.h
 delete mode 100644 arch/arm/include/asm/arch-s32v234/mc_cgm_regs.h
 delete mode 100644 arch/arm/include/asm/arch-s32v234/mc_me_regs.h
 delete mode 100644 arch/arm/include/asm/arch-s32v234/mc_rgm_regs.h
 delete mode 100644 arch/arm/include/asm/arch-s32v234/mmdc.h
 delete mode 100644 arch/arm/include/asm/arch-s32v234/siul.h
 delete mode 100644 board/freescale/s32v234evb/Kconfig
 delete mode 100644 board/freescale/s32v234evb/MAINTAINERS
 delete mode 100644 board/freescale/s32v234evb/Makefile
 delete mode 100644 board/freescale/s32v234evb/clock.c
 delete mode 100644 board/freescale/s32v234evb/lpddr2.c
 delete mode 100644 board/freescale/s32v234evb/s32v234evb.c
 delete mode 100644 board/freescale/s32v234evb/s32v234evb.cfg
 delete mode 100644 configs/s32v234evb_defconfig
 delete mode 100644 include/configs/s32v234evb.h
arch/arm/Kconfig +0 -6
index 6263781e6f60..535b71d4df51 100644
@@ -920,11 +920,6 @@ config ARCH_RMOBILE
 	imply SYS_THUMB_BUILD
 	imply ARCH_MISC_INIT if DISPLAY_CPUINFO
 
-config TARGET_S32V234EVB
-	bool "Support s32v234evb"
-	select ARM64
-	select SYS_FSL_ERRATUM_ESDHC111
-
 config ARCH_SNAPDRAGON
 	bool "Qualcomm Snapdragon SoCs"
 	select ARM64
@@ -1967,7 +1962,6 @@ source "board/freescale/ls1012aqds/Kconfig"
 source "board/freescale/ls1012ardb/Kconfig"
 source "board/freescale/ls1012afrdm/Kconfig"
 source "board/freescale/lx2160a/Kconfig"
-source "board/freescale/s32v234evb/Kconfig"
 source "board/grinn/chiliboard/Kconfig"
 source "board/hisilicon/hikey/Kconfig"
 source "board/hisilicon/hikey960/Kconfig"
arch/arm/cpu/armv8/Kconfig +1 -1
index 9cd6a8d642b5..b7a10a8e34e6 100644
@@ -116,7 +116,7 @@ config PSCI_RESET
 		   !TARGET_LS1046AFRWY && \
 		   !TARGET_LS2081ARDB && !TARGET_LX2160ARDB && \
 		   !TARGET_LX2160AQDS && !TARGET_LX2162AQDS && \
-		   !ARCH_UNIPHIER && !TARGET_S32V234EVB
+		   !ARCH_UNIPHIER
 	help
 	  Most armv8 systems have PSCI support enabled in EL3, either through
 	  ARM Trusted Firmware or other firmware.
arch/arm/cpu/armv8/s32v234/Makefile deleted +0 -6
deleted file mode 100644
index 3bdb98d995e1..000000000000
@@ -1,6 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2013-2016, Freescale Semiconductor, Inc.
-
-obj-y += generic.o
-obj-y += cpu.o
arch/arm/cpu/armv8/s32v234/cpu.c deleted +0 -102

102 lines not on this page · raw message

arch/arm/cpu/armv8/s32v234/cpu.h deleted +0 -7
deleted file mode 100644
index 11c3a6b435e9..000000000000
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2014-2016, Freescale Semiconductor, Inc.
- */
-
-u32 cpu_mask(void);
-int cpu_numcores(void);
arch/arm/cpu/armv8/s32v234/generic.c deleted +0 -353

353 lines not on this page · raw message

arch/arm/include/asm/arch-s32v234/clock.h deleted +0 -31
deleted file mode 100644
index 70846094e898..000000000000
@@ -1,31 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2015-2016, Freescale Semiconductor, Inc.
- */
-
-#ifndef __ASM_ARCH_CLOCK_H
-#define __ASM_ARCH_CLOCK_H
-
-enum mxc_clock {
-	MXC_ARM_CLK = 0,
-	MXC_BUS_CLK,
-	MXC_PERIPHERALS_CLK,
-	MXC_UART_CLK,
-	MXC_USDHC_CLK,
-	MXC_FEC_CLK,
-	MXC_I2C_CLK,
-};
-enum pll_type {
-	ARM_PLL = 0,
-	PERIPH_PLL,
-	ENET_PLL,
-	DDR_PLL,
-	VIDEO_PLL,
-};
-
-unsigned int mxc_get_clock(enum mxc_clock clk);
-void clock_init(void);
-
-#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
-
-#endif /* __ASM_ARCH_CLOCK_H */
arch/arm/include/asm/arch-s32v234/ddr.h deleted +0 -156

156 lines not on this page · raw message

arch/arm/include/asm/arch-s32v234/imx-regs.h deleted +0 -328

328 lines not on this page · raw message

arch/arm/include/asm/arch-s32v234/lpddr2.h deleted +0 -74

74 lines not on this page · raw message

arch/arm/include/asm/arch-s32v234/mc_cgm_regs.h deleted +0 -253

253 lines not on this page · raw message

arch/arm/include/asm/arch-s32v234/mc_me_regs.h deleted +0 -198

198 lines not on this page · raw message

arch/arm/include/asm/arch-s32v234/mc_rgm_regs.h deleted +0 -30
deleted file mode 100644
index 34501b2189b3..000000000000
@@ -1,30 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2015, Freescale Semiconductor, Inc.
- */
-
-#ifndef __ARCH_ARM_MACH_S32V234_MCRGM_REGS_H__
-#define __ARCH_ARM_MACH_S32V234_MCRGM_REGS_H__
-
-#define MC_RGM_DES			(MC_RGM_BASE_ADDR)
-#define MC_RGM_FES			(MC_RGM_BASE_ADDR + 0x300)
-#define MC_RGM_FERD			(MC_RGM_BASE_ADDR + 0x310)
-#define MC_RGM_FBRE			(MC_RGM_BASE_ADDR + 0x330)
-#define MC_RGM_FESS			(MC_RGM_BASE_ADDR + 0x340)
-#define MC_RGM_DDR_HE			(MC_RGM_BASE_ADDR + 0x350)
-#define MC_RGM_DDR_HS			(MC_RGM_BASE_ADDR + 0x354)
-#define MC_RGM_FRHE			(MC_RGM_BASE_ADDR + 0x358)
-#define MC_RGM_FREC			(MC_RGM_BASE_ADDR + 0x600)
-#define MC_RGM_FRET			(MC_RGM_BASE_ADDR + 0x607)
-#define MC_RGM_DRET			(MC_RGM_BASE_ADDR + 0x60B)
-
-/* function reset sources mask */
-#define F_SWT4				0x8000
-#define F_JTAG				0x400
-#define F_FCCU_SOFT			0x40
-#define F_FCCU_HARD			0x20
-#define F_SOFT_FUNC			0x8
-#define F_ST_DONE			0x4
-#define F_EXT_RST			0x1
-
-#endif /* __ARCH_ARM_MACH_S32V234_MCRGM_REGS_H__ */
arch/arm/include/asm/arch-s32v234/mmdc.h deleted +0 -88

88 lines not on this page · raw message

arch/arm/include/asm/arch-s32v234/siul.h deleted +0 -149

149 lines not on this page · raw message

board/freescale/s32v234evb/Kconfig deleted +0 -23
deleted file mode 100644
index e71dfc4ab228..000000000000
@@ -1,23 +0,0 @@
-if TARGET_S32V234EVB
-
-config SYS_CPU
-	string
-	default "armv8"
-
-config SYS_BOARD
-	string
-	default "s32v234evb"
-
-config SYS_VENDOR
-	string
-	default "freescale"
-
-config SYS_SOC
-	string
-	default "s32v234"
-
-config SYS_CONFIG_NAME
-	string
-	default "s32v234evb"
-
-endif
board/freescale/s32v234evb/MAINTAINERS deleted +0 -8
deleted file mode 100644
index 62b2e1b264f7..000000000000
@@ -1,8 +0,0 @@
-S32V234 Evaluation BOARD
-M:	Eddy Petri?or <[email protected]>
-S:	Maintained
-F:	arch/arm/cpu/armv8/s32v234/
-F:	arch/arm/include/asm/arch-s32v234/
-F:	board/freescale/s32v234evb/
-F:	include/configs/s32v234evb.h
-F:	configs/s32v234evb_defconfig
board/freescale/s32v234evb/Makefile deleted +0 -9
deleted file mode 100644
index f6028e127763..000000000000
@@ -1,9 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2013-2015, Freescale Semiconductor, Inc.
-
-obj-y   := clock.o
-obj-y   += lpddr2.o
-obj-y   += s32v234evb.o
-
-#########################################################################
board/freescale/s32v234evb/clock.c deleted +0 -343

343 lines not on this page · raw message

board/freescale/s32v234evb/lpddr2.c deleted +0 -136

136 lines not on this page · raw message

board/freescale/s32v234evb/s32v234evb.c deleted +0 -183

183 lines not on this page · raw message

board/freescale/s32v234evb/s32v234evb.cfg deleted +0 -28
deleted file mode 100644
index d7f722006312..000000000000
@@ -1,28 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2013-2015, Freescale Semiconductor, Inc.
- */
-
-/*
- * Refer doc/imx/mkimage/imximage.txt for more details about how-to configure
- * and create imximage boot image
- *
- * The syntax is taken as close as possible with the kwbimage
- */
-#include <asm/mach-imx/imximage.cfg>
-
-/* image version */
-IMAGE_VERSION	2
-BOOT_FROM sd
-
-
-/*
- * Boot Device : one of qspi, sd:
- * qspi:   flash_offset: 0x1000
- * sd/mmc: flash_offset: 0x1000
- */
-
-
-#ifdef CONFIG_IMX_HAB
-SECURE_BOOT
-#endif
configs/s32v234evb_defconfig deleted +0 -25
deleted file mode 100644
index 656f63f76ab0..000000000000
@@ -1,25 +0,0 @@
-CONFIG_ARM=y
-CONFIG_TARGET_S32V234EVB=y
-CONFIG_SYS_TEXT_BASE=0x3E800000
-CONFIG_NR_DRAM_BANKS=1
-CONFIG_SYS_MEMTEST_START=0xc0000000
-CONFIG_SYS_MEMTEST_END=0xc7c00000
-CONFIG_ENV_SIZE=0x2000
-CONFIG_ENV_OFFSET=0xC0000
-CONFIG_DISTRO_DEFAULTS=y
-CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/s32v234evb/s32v234evb.cfg"
-CONFIG_USE_BOOTARGS=y
-CONFIG_BOOTARGS="console=ttyLF0 root=/dev/ram rw"
-CONFIG_BOARD_EARLY_INIT_F=y
-CONFIG_CMD_BOOTZ=y
-CONFIG_CMD_MEMTEST=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_CACHE=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_MMC=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_DM=y
-CONFIG_FSL_USDHC=y
-CONFIG_DM_SERIAL=y
-CONFIG_FSL_LINFLEXUART=y
-CONFIG_OF_LIBFDT=y
drivers/mmc/Kconfig +1 -1
index f8ea92172e44..07c8dbec2239 100644
@@ -787,7 +787,7 @@ config FSL_ESDHC_IMX
 
 config FSL_USDHC
 	bool "Freescale/NXP i.MX uSDHC controller support"
-	depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMXRT || TARGET_S32V234EVB
+	depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMXRT
 	select FSL_ESDHC_IMX
 	help
 	  This enables the Ultra Secured Digital Host Controller enhancements
include/configs/s32v234evb.h deleted +0 -167

167 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#54 lore raw

PATCH 20/25 arm: Remove bcm958712k board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

---
 arch/arm/Kconfig                      |  1 -
 board/broadcom/bcm958712k/MAINTAINERS |  6 ---
 board/broadcom/bcmns2/Kconfig         | 15 -------
 board/broadcom/bcmns2/Makefile        |  5 ---
 board/broadcom/bcmns2/northstar2.c    | 62 ---------------------------
 configs/bcm958712k_defconfig          | 14 ------
 include/configs/bcm_northstar2.h      | 42 ------------------
 7 files changed, 145 deletions(-)
 delete mode 100644 board/broadcom/bcm958712k/MAINTAINERS
 delete mode 100644 board/broadcom/bcmns2/Kconfig
 delete mode 100644 board/broadcom/bcmns2/Makefile
 delete mode 100644 board/broadcom/bcmns2/northstar2.c
 delete mode 100644 configs/bcm958712k_defconfig
 delete mode 100644 include/configs/bcm_northstar2.h
arch/arm/Kconfig +0 -1
index 535b71d4df51..2eb714f8a080 100644
@@ -1939,7 +1939,6 @@ source "board/broadcom/bcm968360bg/Kconfig"
 source "board/broadcom/bcm968580xref/Kconfig"
 source "board/broadcom/bcmcygnus/Kconfig"
 source "board/broadcom/bcmnsp/Kconfig"
-source "board/broadcom/bcmns2/Kconfig"
 source "board/broadcom/bcmns3/Kconfig"
 source "board/cavium/thunderx/Kconfig"
 source "board/cirrus/edb93xx/Kconfig"
board/broadcom/bcm958712k/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 024fb1447d23..000000000000
@@ -1,6 +0,0 @@
-BCM958712K BOARD
-M:	Jon Mason <[email protected]>
-S:	Maintained
-F:	board/broadcom/bcmns2/
-F:	include/configs/bcm_northstar2.h
-F:	configs/bcm958712k_defconfig
board/broadcom/bcmns2/Kconfig deleted +0 -15
deleted file mode 100644
index 3ac67249c4d7..000000000000
@@ -1,15 +0,0 @@
-if TARGET_BCMNS2
-
-config SYS_BOARD
-	default "bcmns2"
-
-config SYS_VENDOR
-	default "broadcom"
-
-config SYS_SOC
-	default "ns2"
-
-config SYS_CONFIG_NAME
-	default "bcm_northstar2"
-
-endif
board/broadcom/bcmns2/Makefile deleted +0 -5
deleted file mode 100644
index 29274bd106ce..000000000000
@@ -1,5 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright 2016 Broadcom Ltd.
-
-obj-y	:= northstar2.o
board/broadcom/bcmns2/northstar2.c deleted +0 -62

62 lines not on this page · raw message

configs/bcm958712k_defconfig deleted +0 -14
deleted file mode 100644
index 74070f555b65..000000000000
@@ -1,14 +0,0 @@
-CONFIG_ARM=y
-CONFIG_TARGET_BCMNS2=y
-CONFIG_SYS_TEXT_BASE=0x85000000
-CONFIG_NR_DRAM_BANKS=2
-CONFIG_ENV_SIZE=0x2000
-CONFIG_IDENT_STRING=" Broadcom Northstar 2"
-CONFIG_DISTRO_DEFAULTS=y
-CONFIG_BOOTDELAY=5
-# CONFIG_DISPLAY_CPUINFO is not set
-CONFIG_SYS_PROMPT="u-boot> "
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_CONS_INDEX=4
-CONFIG_SYS_NS16550=y
-CONFIG_OF_LIBFDT=y
include/configs/bcm_northstar2.h deleted +0 -42

42 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#55 lore raw

PATCH 21/25 arm: Remove wb45n board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

---
 arch/arm/mach-at91/Kconfig    |   6 -
 board/laird/wb45n/Kconfig     |  12 --
 board/laird/wb45n/MAINTAINERS |   6 -
 board/laird/wb45n/Makefile    |   4 -
 board/laird/wb45n/wb45n.c     | 199 ----------------------------------
 configs/wb45n_defconfig       |  51 ---------
 include/configs/wb45n.h       | 124 ---------------------
 7 files changed, 402 deletions(-)
 delete mode 100644 board/laird/wb45n/Kconfig
 delete mode 100644 board/laird/wb45n/MAINTAINERS
 delete mode 100644 board/laird/wb45n/Makefile
 delete mode 100644 board/laird/wb45n/wb45n.c
 delete mode 100644 configs/wb45n_defconfig
 delete mode 100644 include/configs/wb45n.h
arch/arm/mach-at91/Kconfig +0 -6
index c78a308f4884..5880e651bafd 100644
@@ -303,11 +303,6 @@ config TARGET_VINCO
 	select SUPPORT_SPL
 	imply CMD_DM
 
-config TARGET_WB45N
-	bool "Support Laird WB45N"
-	select CPU_ARM926EJS
-	select SUPPORT_SPL
-
 config TARGET_WB50N
 	bool "Support Laird WB50N"
 	select BOARD_EARLY_INIT_F
@@ -358,7 +353,6 @@ source "board/ronetix/pm9g45/Kconfig"
 source "board/siemens/corvus/Kconfig"
 source "board/siemens/taurus/Kconfig"
 source "board/siemens/smartweb/Kconfig"
-source "board/laird/wb45n/Kconfig"
 source "board/laird/wb50n/Kconfig"
 
 config SPL_LDSCRIPT
board/laird/wb45n/Kconfig deleted +0 -12
deleted file mode 100644
index 2a67337293ef..000000000000
@@ -1,12 +0,0 @@
-if TARGET_WB45N
-
-config SYS_BOARD
-	default "wb45n"
-
-config SYS_VENDOR
-	default "laird"
-
-config SYS_CONFIG_NAME
-	default "wb45n"
-
-endif
board/laird/wb45n/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 60bb56320103..000000000000
@@ -1,6 +0,0 @@
-WB45N CPU MODULE
-M:	Ben Whitten <[email protected]>
-S:	Maintained
-F:	board/laird/wb45n/
-F:	include/configs/wb45n.h
-F:	configs/wb45n_defconfig
board/laird/wb45n/Makefile deleted +0 -4
deleted file mode 100644
index 2971c6c95286..000000000000
@@ -1,4 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-
-obj-y += wb45n.o
board/laird/wb45n/wb45n.c deleted +0 -199

199 lines not on this page · raw message

configs/wb45n_defconfig deleted +0 -51

51 lines not on this page · raw message

include/configs/wb45n.h deleted +0 -124

124 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#56 lore raw

PATCH 22/25 arm: Remove wb50n board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

---
 arch/arm/mach-at91/Kconfig    |   9 --
 board/laird/wb50n/Kconfig     |  12 --
 board/laird/wb50n/MAINTAINERS |   6 -
 board/laird/wb50n/Makefile    |   4 -
 board/laird/wb50n/wb50n.c     | 205 ----------------------------------
 configs/wb50n_defconfig       |  53 ---------
 include/configs/wb50n.h       |  96 ----------------
 7 files changed, 385 deletions(-)
 delete mode 100644 board/laird/wb50n/Kconfig
 delete mode 100644 board/laird/wb50n/MAINTAINERS
 delete mode 100644 board/laird/wb50n/Makefile
 delete mode 100644 board/laird/wb50n/wb50n.c
 delete mode 100644 configs/wb50n_defconfig
 delete mode 100644 include/configs/wb50n.h
arch/arm/mach-at91/Kconfig +0 -9
index 5880e651bafd..22f6e4114e8e 100644
@@ -303,14 +303,6 @@ config TARGET_VINCO
 	select SUPPORT_SPL
 	imply CMD_DM
 
-config TARGET_WB50N
-	bool "Support Laird WB50N"
-	select BOARD_EARLY_INIT_F
-	select BOARD_LATE_INIT
-	select CPU_V7A
-	select SUPPORT_SPL
-	select ATMEL_SFR
-
 endchoice
 
 config ATMEL_SFR
@@ -353,7 +345,6 @@ source "board/ronetix/pm9g45/Kconfig"
 source "board/siemens/corvus/Kconfig"
 source "board/siemens/taurus/Kconfig"
 source "board/siemens/smartweb/Kconfig"
-source "board/laird/wb50n/Kconfig"
 
 config SPL_LDSCRIPT
 	default "arch/arm/mach-at91/arm926ejs/u-boot-spl.lds" if CPU_ARM926EJS
board/laird/wb50n/Kconfig deleted +0 -12
deleted file mode 100644
index 2e7090ec34b2..000000000000
@@ -1,12 +0,0 @@
-if TARGET_WB50N
-
-config SYS_BOARD
-	default "wb50n"
-
-config SYS_VENDOR
-	default "laird"
-
-config SYS_CONFIG_NAME
-	default "wb50n"
-
-endif
board/laird/wb50n/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 3d38fc4e9faf..000000000000
@@ -1,6 +0,0 @@
-WB50N CPU MODULE
-M:	Ben Whitten <[email protected]>
-S:	Maintained
-F:	board/laird/wb50n/
-F:	include/configs/wb50n.h
-F:	configs/wb50n_defconfig
board/laird/wb50n/Makefile deleted +0 -4
deleted file mode 100644
index f4c3831db462..000000000000
@@ -1,4 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-
-obj-y += wb50n.o
board/laird/wb50n/wb50n.c deleted +0 -205

205 lines not on this page · raw message

configs/wb50n_defconfig deleted +0 -53

53 lines not on this page · raw message

include/configs/wb50n.h deleted +0 -96

96 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#57 lore raw

PATCH 23/25 arm: Remove picosam9g45 board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Erik van Luijk <[email protected]>
---
 arch/arm/mach-at91/Kconfig               |   6 -
 board/mini-box/picosam9g45/Kconfig       |  12 -
 board/mini-box/picosam9g45/MAINTAINERS   |   6 -
 board/mini-box/picosam9g45/Makefile      |  17 --
 board/mini-box/picosam9g45/led.c         |  22 --
 board/mini-box/picosam9g45/picosam9g45.c | 346 -----------------------
 configs/picosam9g45_defconfig            |  48 ----
 include/configs/picosam9g45.h            | 118 --------
 8 files changed, 575 deletions(-)
 delete mode 100644 board/mini-box/picosam9g45/Kconfig
 delete mode 100644 board/mini-box/picosam9g45/MAINTAINERS
 delete mode 100644 board/mini-box/picosam9g45/Makefile
 delete mode 100644 board/mini-box/picosam9g45/led.c
 delete mode 100644 board/mini-box/picosam9g45/picosam9g45.c
 delete mode 100644 configs/picosam9g45_defconfig
 delete mode 100644 include/configs/picosam9g45.h
arch/arm/mach-at91/Kconfig +0 -6
index 22f6e4114e8e..1adf09b9a148 100644
@@ -134,11 +134,6 @@ config TARGET_PM9G45
 	bool "Ronetix pm9g45 board"
 	select AT91SAM9G45
 
-config TARGET_PICOSAM9G45
-	bool "Mini-box picosam9g45 board"
-	select AT91SAM9M10G45
-	select SUPPORT_SPL
-
 config TARGET_AT91SAM9N12EK
 	bool "Atmel AT91SAM9N12-EK board"
 	select AT91SAM9N12
@@ -338,7 +333,6 @@ source "board/egnite/ethernut5/Kconfig"
 source "board/esd/meesc/Kconfig"
 source "board/gardena/smart-gateway-at91sam/Kconfig"
 source "board/l+g/vinco/Kconfig"
-source "board/mini-box/picosam9g45/Kconfig"
 source "board/ronetix/pm9261/Kconfig"
 source "board/ronetix/pm9263/Kconfig"
 source "board/ronetix/pm9g45/Kconfig"
board/mini-box/picosam9g45/Kconfig deleted +0 -12
deleted file mode 100644
index 98ec0c457a62..000000000000
@@ -1,12 +0,0 @@
-if TARGET_PICOSAM9G45
-
-config SYS_BOARD
-	default "picosam9g45"
-
-config SYS_VENDOR
-	default "mini-box"
-
-config SYS_CONFIG_NAME
-	default "picosam9g45"
-
-endif
board/mini-box/picosam9g45/MAINTAINERS deleted +0 -6
deleted file mode 100644
index a8cf01d70380..000000000000
@@ -1,6 +0,0 @@
-PICOSAM9G45 BOARD
-M:	Erik van Luijk <[email protected]>
-S:	Maintained
-F:	board/mini-box/picosam9g45/
-F:	include/configs/picosam9g45.h
-F:	configs/picosam9g45_defconfig
board/mini-box/picosam9g45/Makefile deleted +0 -17
deleted file mode 100644
index 6e98997a7c31..000000000000
@@ -1,17 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Makefile for mini-box PICOSAM9G45 (AT91SAM9G45) based board
-# (C) Copytight 2015 Inter Act B.V.
-#
-# Based on:
-# U-Boot file: board/atmel/at91sam9m10g45ek/Makefile
-#
-# (C) Copyright 2003-2008
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-#
-# (C) Copyright 2008
-# Stelian Pop <[email protected]>
-# Lead Tech Design <www.leadtechdesign.com>
-
-obj-y += picosam9g45.o
-obj-y += led.o
board/mini-box/picosam9g45/led.c deleted +0 -22
deleted file mode 100644
index 8ce8b6bbeac2..000000000000
@@ -1,22 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2007-2008
- * Stelian Pop <[email protected]>
- * Lead Tech Design <www.leadtechdesign.com>
- */
-
-#include <common.h>
-#include <status_led.h>
-#include <asm/io.h>
-#include <asm/arch/at91sam9g45.h>
-#include <asm/arch/clk.h>
-#include <asm/arch/gpio.h>
-
-void coloured_LED_init(void)
-{
-	at91_periph_clk_enable(ATMEL_ID_PIODE);
-
-	at91_set_gpio_output(CONFIG_GREEN_LED, 1);
-
-	at91_set_gpio_value(CONFIG_GREEN_LED, 1);
-}
board/mini-box/picosam9g45/picosam9g45.c deleted +0 -346

346 lines not on this page · raw message

configs/picosam9g45_defconfig deleted +0 -48

48 lines not on this page · raw message

include/configs/picosam9g45.h deleted +0 -118

118 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#58 lore raw

PATCH 24/25 arm: Remove db-88f6281-bp board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Chris Packham <[email protected]>
---
 arch/arm/dts/Makefile                       |   2 -
 arch/arm/dts/kirkwood-db-88f6281-spi.dts    |  48 ---------
 arch/arm/dts/kirkwood-db-88f6281.dts        |  26 -----
 arch/arm/dts/kirkwood-db.dtsi               |  94 -----------------
 arch/arm/mach-kirkwood/Kconfig              |   4 -
 board/Marvell/db-88f6281-bp/.gitignore      |   1 -
 board/Marvell/db-88f6281-bp/Kconfig         |  12 ---
 board/Marvell/db-88f6281-bp/MAINTAINERS     |  10 --
 board/Marvell/db-88f6281-bp/Makefile        |  12 ---
 board/Marvell/db-88f6281-bp/db-88f6281-bp.c | 106 --------------------
 board/Marvell/db-88f6281-bp/kwbimage.cfg.in |  36 -------
 configs/db-88f6281-bp-nand_defconfig        |  64 ------------
 configs/db-88f6281-bp-spi_defconfig         |  63 ------------
 include/configs/db-88f6281-bp.h             |  83 ---------------
 14 files changed, 561 deletions(-)
 delete mode 100644 arch/arm/dts/kirkwood-db-88f6281-spi.dts
 delete mode 100644 arch/arm/dts/kirkwood-db-88f6281.dts
 delete mode 100644 arch/arm/dts/kirkwood-db.dtsi
 delete mode 100644 board/Marvell/db-88f6281-bp/.gitignore
 delete mode 100644 board/Marvell/db-88f6281-bp/Kconfig
 delete mode 100644 board/Marvell/db-88f6281-bp/MAINTAINERS
 delete mode 100644 board/Marvell/db-88f6281-bp/Makefile
 delete mode 100644 board/Marvell/db-88f6281-bp/db-88f6281-bp.c
 delete mode 100644 board/Marvell/db-88f6281-bp/kwbimage.cfg.in
 delete mode 100644 configs/db-88f6281-bp-nand_defconfig
 delete mode 100644 configs/db-88f6281-bp-spi_defconfig
 delete mode 100644 include/configs/db-88f6281-bp.h
arch/arm/dts/Makefile +0 -2
index f0944b7590cf..cbaa9f29c1b5 100644
@@ -39,8 +39,6 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += \
 	kirkwood-atl-sbx81lifxcat.dtb \
 	kirkwood-blackarmor-nas220.dtb \
 	kirkwood-d2net.dtb \
-	kirkwood-db-88f6281.dtb \
-	kirkwood-db-88f6281-spi.dtb \
 	kirkwood-dns325.dtb \
 	kirkwood-dockstar.dtb \
 	kirkwood-dreamplug.dtb \
arch/arm/dts/kirkwood-db-88f6281-spi.dts deleted +0 -48

48 lines not on this page · raw message

arch/arm/dts/kirkwood-db-88f6281.dts deleted +0 -26
deleted file mode 100644
index 2adb17c955aa..000000000000
@@ -1,26 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Marvell DB-88F6281-BP Development Board Setup
- *
- * Saeed Bishara <[email protected]>
- * Thomas Petazzoni <[email protected]>
- *
- */
-
-/dts-v1/;
-
-#include "kirkwood-db.dtsi"
-#include "kirkwood-6281.dtsi"
-
-/ {
-	model = "Marvell DB-88F6281-BP Development Board";
-	compatible = "marvell,db-88f6281-bp", "marvell,kirkwood-88f6281", "marvell,kirkwood";
-};
-
-&pciec {
-        status = "okay";
-};
-
-&pcie0 {
-	status = "okay";
-};
arch/arm/dts/kirkwood-db.dtsi deleted +0 -94

94 lines not on this page · raw message

arch/arm/mach-kirkwood/Kconfig +0 -4
index 1d2ba886dd1a..546a3fc00fdc 100644
@@ -56,9 +56,6 @@ config TARGET_SBx81LIFKW
 config TARGET_SBx81LIFXCAT
 	bool "Allied Telesis SBx81GP24/SBx81GT24"
 
-config TARGET_DB_88F6281_BP
-	bool "Marvell DB-88F6281-BP"
-
 endchoice
 
 config SYS_SOC
@@ -81,6 +78,5 @@ source "board/Seagate/nas220/Kconfig"
 source "board/zyxel/nsa310s/Kconfig"
 source "board/alliedtelesis/SBx81LIFKW/Kconfig"
 source "board/alliedtelesis/SBx81LIFXCAT/Kconfig"
-source "board/Marvell/db-88f6281-bp/Kconfig"
 
 endif
board/Marvell/db-88f6281-bp/.gitignore deleted +0 -1
deleted file mode 100644
index 775b9346b859..000000000000
@@ -1 +0,0 @@
-kwbimage.cfg
board/Marvell/db-88f6281-bp/Kconfig deleted +0 -12
deleted file mode 100644
index 38467399e688..000000000000
@@ -1,12 +0,0 @@
-if TARGET_DB_88F6281_BP
-
-config SYS_BOARD
-	default "db-88f6281-bp"
-
-config SYS_VENDOR
-	default "Marvell"
-
-config SYS_CONFIG_NAME
-	default "db-88f6281-bp"
-
-endif
board/Marvell/db-88f6281-bp/MAINTAINERS deleted +0 -10
deleted file mode 100644
index acf0b051ff54..000000000000
@@ -1,10 +0,0 @@
-DB_88F6820_AMC BOARD
-M:	Chris Packham <[email protected]>
-S:	Maintained
-F:	arch/arm/dts/kirkwood-db-88f6281.dts
-F:	arch/arm/dts/kirkwood-db-88f6281-spi.dts
-F:	arch/arm/dts/kirkwood-db.dtsi
-F:	board/Marvell/db-88f6281-bp/
-F:	include/configs/db-88f6281-bp.h
-F:	configs/db-88f6281-bp-nand_defconfig
-F:	configs/db-88f6281-bp-spi_defconfig
board/Marvell/db-88f6281-bp/Makefile deleted +0 -12
deleted file mode 100644
index 003e9f66d18f..000000000000
@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-
-obj-y	:= db-88f6281-bp.o
-extra-y := kwbimage.cfg
-
-quiet_cmd_sed = SED     $@
-      cmd_sed = sed $(SEDFLAGS_$(@F)) $< >$(dir $@)$(@F)
-
-SEDFLAGS_kwbimage.cfg = -e "s/^\#@BOOT_FROM.*/BOOT_FROM	$(if $(CONFIG_CMD_NAND),nand,spi)/"
-$(obj)/kwbimage.cfg: $(src)/kwbimage.cfg.in include/autoconf.mk \
-		include/config/auto.conf
-	$(call if_changed,sed)
board/Marvell/db-88f6281-bp/db-88f6281-bp.c deleted +0 -106

106 lines not on this page · raw message

board/Marvell/db-88f6281-bp/kwbimage.cfg.in deleted +0 -36
deleted file mode 100644
index 05f8b275f607..000000000000
@@ -1,36 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-
-# Boot Media configurations
-#@BOOT_FROM
-
-DATA 0xd00100e0 0x1b1b1b9b
-DATA 0xd0020134 0xbbbbbbbb
-DATA 0xd0020138 0x00bbbbbb
-DATA 0xd0020154 0x00000200
-DATA 0xd002014c 0x00001c00
-DATA 0xd0020148 0x00000001
-
-DATA 0xd0001400 0x43000c30
-DATA 0xd0001404 0x39543000
-DATA 0xd0001408 0x22125451
-DATA 0xd000140c 0x00000833
-DATA 0xd0001410 0x000000cc
-DATA 0xd0001414 0x00000000
-DATA 0xd0001418 0x00000000
-DATA 0xd000141c 0x00000c52
-DATA 0xd0001420 0x00000044
-DATA 0xd0001424 0x0000f1ff
-DATA 0xd0001428 0x00085520
-DATA 0xd000147c 0x00008552
-DATA 0xd0001504 0x0ffffff1
-DATA 0xd0001508 0x10000000
-DATA 0xd000150c 0x0ffffff5
-DATA 0xd0001514 0x00000000
-DATA 0xd000151c 0x00000000
-DATA 0xd0001494 0x84210000
-DATA 0xd0001498 0x00000000
-DATA 0xd000149c 0x0000f40f
-DATA 0xd0001480 0x00000001
-
-# End of Header extension
-DATA 0x0 0x0
configs/db-88f6281-bp-nand_defconfig deleted +0 -64

64 lines not on this page · raw message

configs/db-88f6281-bp-spi_defconfig deleted +0 -63

63 lines not on this page · raw message

include/configs/db-88f6281-bp.h deleted +0 -83

83 lines not on this page · raw message

Signature · 1 line
2.17.1
#59 lore raw

PATCH 24/25 arm: Remove db-88f6281-bp board

Quoted 7 lines · Tom Rini,

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Chris Packham <[email protected]>

I did have every intention of finishing off the migration but the reference board I have has gathered plenty of dust. So reluctantly

---

Quoted 713 lines
 arch/arm/dts/Makefile                       |   2 -
 arch/arm/dts/kirkwood-db-88f6281-spi.dts    |  48 ---------
 arch/arm/dts/kirkwood-db-88f6281.dts        |  26 -----
 arch/arm/dts/kirkwood-db.dtsi               |  94 -----------------
 arch/arm/mach-kirkwood/Kconfig              |   4 -
 board/Marvell/db-88f6281-bp/.gitignore      |   1 -
 board/Marvell/db-88f6281-bp/Kconfig         |  12 ---
 board/Marvell/db-88f6281-bp/MAINTAINERS     |  10 --
 board/Marvell/db-88f6281-bp/Makefile        |  12 ---
 board/Marvell/db-88f6281-bp/db-88f6281-bp.c | 106 --------------------
 board/Marvell/db-88f6281-bp/kwbimage.cfg.in |  36 -------
 configs/db-88f6281-bp-nand_defconfig        |  64 ------------
 configs/db-88f6281-bp-spi_defconfig         |  63 ------------
 include/configs/db-88f6281-bp.h             |  83 ---------------
 14 files changed, 561 deletions(-)
 delete mode 100644 arch/arm/dts/kirkwood-db-88f6281-spi.dts
 delete mode 100644 arch/arm/dts/kirkwood-db-88f6281.dts
 delete mode 100644 arch/arm/dts/kirkwood-db.dtsi
 delete mode 100644 board/Marvell/db-88f6281-bp/.gitignore
 delete mode 100644 board/Marvell/db-88f6281-bp/Kconfig
 delete mode 100644 board/Marvell/db-88f6281-bp/MAINTAINERS
 delete mode 100644 board/Marvell/db-88f6281-bp/Makefile
 delete mode 100644 board/Marvell/db-88f6281-bp/db-88f6281-bp.c
 delete mode 100644 board/Marvell/db-88f6281-bp/kwbimage.cfg.in
 delete mode 100644 configs/db-88f6281-bp-nand_defconfig
 delete mode 100644 configs/db-88f6281-bp-spi_defconfig
 delete mode 100644 include/configs/db-88f6281-bp.h
arch/arm/dts/Makefile +0 -2
index f0944b7590cf..cbaa9f29c1b5 100644
@@ -39,8 +39,6 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += \
        kirkwood-atl-sbx81lifxcat.dtb \
        kirkwood-blackarmor-nas220.dtb \
        kirkwood-d2net.dtb \
-       kirkwood-db-88f6281.dtb \
-       kirkwood-db-88f6281-spi.dtb \
        kirkwood-dns325.dtb \
        kirkwood-dockstar.dtb \
        kirkwood-dreamplug.dtb \
arch/arm/dts/kirkwood-db-88f6281-spi.dts deleted +0 -48
deleted file mode 100644
index 50b1b0d4a535..000000000000
@@ -1,48 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Marvell DB-88F6281-BP Development Board Setup
- *
- * Saeed Bishara <[email protected]>
- * Thomas Petazzoni <[email protected]>
- *
- */
-
-/dts-v1/;
-
-#include "kirkwood-db-88f6281.dts"
-
-/ {
-       aliases {
-               spi0 = &spi0;
-       };
-};
-
-&spi0 {
-       status = "okay";
-
-       flash at 0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "st,m25p128", "jedec,spi-nor", "spi-flash";
-               reg = <0>;
-               spi-max-frequency = <50000000>;
-               mode = <0>;
-
-               partition at u-boot {
-                       reg = <0x00000000 0x00c00000>;
-                       label = "u-boot";
-               };
-               partition at u-boot-env {
-                       reg = <0x00c00000 0x00040000>;
-                       label = "u-boot-env";
-               };
-               partition at unused {
-                       reg = <0x00100000 0x00f00000>;
-                       label = "unused";
-               };
-       };
-};
-
-&nand {
-       status = "disabled";
-};
arch/arm/dts/kirkwood-db-88f6281.dts deleted +0 -17
deleted file mode 100644
index 2adb17c955aa..000000000000
@@ -1,26 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Marvell DB-88F6281-BP Development Board Setup
- *
- * Saeed Bishara <[email protected]>
- * Thomas Petazzoni <[email protected]>
- *
- */
-
-/dts-v1/;
-
-#include "kirkwood-db.dtsi"
-#include "kirkwood-6281.dtsi"
-
-/ {
-       model = "Marvell DB-88F6281-BP Development Board";
-       compatible = "marvell,db-88f6281-bp", "marvell,kirkwood-88f6281",

"marvell,kirkwood";

arch/arm/dts/kirkwood-db-88f6281.dts deleted +0 -9
-};
-
-&pciec {
-        status = "okay";
-};
-
-&pcie0 {
-       status = "okay";
-};
arch/arm/dts/kirkwood-db.dtsi deleted +0 -94
deleted file mode 100644
index b81d8e8298a3..000000000000
@@ -1,94 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Marvell DB-{88F6281,88F6282}-BP Development Board Setup
- *
- * Saeed Bishara <[email protected]>
- * Thomas Petazzoni <[email protected]>
- *
- * This file contains the definitions that are common between the 6281
- * and 6282 variants of the Marvell Kirkwood Development Board.
- */
-
-#include "kirkwood.dtsi"
-
-/ {
-       memory {
-               device_type = "memory";
-               reg = <0x00000000 0x20000000>; /* 512 MB */
-       };
-
-       chosen {
-               bootargs = "console=ttyS0,115200n8 earlyprintk";
-               stdout-path = &uart0;
-       };
-
-       aliases {
-               ethernet0 = &eth0;
-               spi0 = &spi0;
-       };
-
-       ocp at f1000000 {
-               pin-controller at 10000 {
-                       pmx_sdio_gpios: pmx-sdio-gpios {
-                               marvell,pins = "mpp37", "mpp38";
-                               marvell,function = "gpio";
-                       };
-               };
-
-               serial at 12000 {
-                       status = "okay";
-               };
-
-               sata at 80000 {
-                       nr-ports = <2>;
-                       status = "okay";
-               };
-
-               ehci at 50000 {
-                       status = "okay";
-               };
-
-               mvsdio at 90000 {
-                       pinctrl-0 = <&pmx_sdio_gpios>;
-                       pinctrl-names = "default";
-                       wp-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
-                       cd-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
-                       status = "okay";
-               };
-       };
-};
-
-&nand {
-       chip-delay = <25>;
-       status = "okay";
-
-       partition at 0 {
-               label = "uboot";
-               reg = <0x0 0x100000>;
-       };
-
-       partition at 100000 {
-               label = "uImage";
-               reg = <0x100000 0x400000>;
-       };
-
-       partition at 500000 {
-               label = "root";
-               reg = <0x500000 0x1fb00000>;
-       };
-};
-
-&mdio {
-       status = "okay";
-
-       ethphy0: ethernet-phy at 8 {
-               reg = <8>;
-       };
-};
-
-&eth0 {
-       status = "okay";
-       ethernet0-port at 0 {
-               phy-handle = <&ethphy0>;
-       };
-};
arch/arm/mach-kirkwood/Kconfig +0 -4
index 1d2ba886dd1a..546a3fc00fdc 100644
@@ -56,9 +56,6 @@ config TARGET_SBx81LIFKW
 config TARGET_SBx81LIFXCAT
        bool "Allied Telesis SBx81GP24/SBx81GT24"
 
-config TARGET_DB_88F6281_BP
-       bool "Marvell DB-88F6281-BP"
-
 endchoice
 
 config SYS_SOC
@@ -81,6 +78,5 @@ source "board/Seagate/nas220/Kconfig"
 source "board/zyxel/nsa310s/Kconfig"
 source "board/alliedtelesis/SBx81LIFKW/Kconfig"
 source "board/alliedtelesis/SBx81LIFXCAT/Kconfig"
-source "board/Marvell/db-88f6281-bp/Kconfig"
 
 endif
board/Marvell/db-88f6281-bp/.gitignore deleted +0 -1
deleted file mode 100644
index 775b9346b859..000000000000
@@ -1 +0,0 @@
-kwbimage.cfg
board/Marvell/db-88f6281-bp/Kconfig deleted +0 -12
deleted file mode 100644
index 38467399e688..000000000000
@@ -1,12 +0,0 @@
-if TARGET_DB_88F6281_BP
-
-config SYS_BOARD
-       default "db-88f6281-bp"
-
-config SYS_VENDOR
-       default "Marvell"
-
-config SYS_CONFIG_NAME
-       default "db-88f6281-bp"
-
-endif
board/Marvell/db-88f6281-bp/MAINTAINERS deleted +0 -10
deleted file mode 100644
index acf0b051ff54..000000000000
@@ -1,10 +0,0 @@
-DB_88F6820_AMC BOARD
-M:     Chris Packham <[email protected]>
-S:     Maintained
-F:     arch/arm/dts/kirkwood-db-88f6281.dts
-F:     arch/arm/dts/kirkwood-db-88f6281-spi.dts
-F:     arch/arm/dts/kirkwood-db.dtsi
-F:     board/Marvell/db-88f6281-bp/
-F:     include/configs/db-88f6281-bp.h
-F:     configs/db-88f6281-bp-nand_defconfig
-F:     configs/db-88f6281-bp-spi_defconfig
board/Marvell/db-88f6281-bp/Makefile deleted +0 -9
deleted file mode 100644
index 003e9f66d18f..000000000000
@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-
-obj-y  := db-88f6281-bp.o
-extra-y := kwbimage.cfg
-
-quiet_cmd_sed = SED     $@
-      cmd_sed = sed $(SEDFLAGS_$(@F)) $< >$(dir $@)$(@F)
-
-SEDFLAGS_kwbimage.cfg = -e "s/^\#@BOOT_FROM.*/BOOT_FROM        $(if

$(CONFIG_CMD_NAND),nand,spi)/"
-$(obj)/kwbimage.cfg: $(src)/kwbimage.cfg.in include/autoconf.mk \

board/Marvell/db-88f6281-bp/Makefile deleted +0 -2
-               include/config/auto.conf
-       $(call if_changed,sed)
board/Marvell/db-88f6281-bp/db-88f6281-bp.c deleted +0 -106
deleted file mode 100644
index 62027bd6385e..000000000000
@@ -1,106 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-
-#include <common.h>
-#include <init.h>
-#include <net.h>
-#include <linux/bitops.h>
-#include <linux/io.h>
-#include <miiphy.h>
-#include <netdev.h>
-#include <asm/arch/cpu.h>
-#include <asm/arch/soc.h>
-#include <asm/arch/mpp.h>
-#include <asm/arch/gpio.h>
-
-#define DB_88F6281_OE_LOW      ~(BIT(7))
-#define DB_88F6281_OE_HIGH     ~(BIT(15) | BIT(14) | BIT(13) | BIT(4))
-#define DB_88F6281_OE_VAL_LOW  BIT(7)
-#define DB_88F6281_OE_VAL_HIGH 0
-
-DECLARE_GLOBAL_DATA_PTR;
-
-int board_early_init_f(void)
-{
-       mvebu_config_gpio(DB_88F6281_OE_VAL_LOW,
-                         DB_88F6281_OE_VAL_HIGH,
-                         DB_88F6281_OE_LOW, DB_88F6281_OE_HIGH);
-
-       /* Multi-Purpose Pins Functionality configuration */
-       static const u32 kwmpp_config[] = {
-#ifdef CONFIG_CMD_NAND
-               MPP0_NF_IO2,
-               MPP1_NF_IO3,
-               MPP2_NF_IO4,
-               MPP3_NF_IO5,
-#else
-               MPP0_SPI_SCn,
-               MPP1_SPI_MOSI,
-               MPP2_SPI_SCK,
-               MPP3_SPI_MISO,
-#endif
-               MPP4_NF_IO6,
-               MPP5_NF_IO7,
-               MPP6_SYSRST_OUTn,
-               MPP7_GPO,
-               MPP8_TW_SDA,
-               MPP9_TW_SCK,
-               MPP10_UART0_TXD,
-               MPP11_UART0_RXD,
-               MPP12_SD_CLK,
-               MPP13_SD_CMD,
-               MPP14_SD_D0,
-               MPP15_SD_D1,
-               MPP16_SD_D2,
-               MPP17_SD_D3,
-               MPP18_NF_IO0,
-               MPP19_NF_IO1,
-               MPP20_SATA1_ACTn,
-               MPP21_SATA0_ACTn,
-               MPP22_GPIO,
-               MPP23_GPIO,
-               MPP24_GPIO,
-               MPP25_GPIO,
-               MPP26_GPIO,
-               MPP27_GPIO,
-               MPP28_GPIO,
-               MPP29_GPIO,
-               MPP30_GPIO,
-               MPP31_GPIO,
-               MPP32_GPIO,
-               MPP33_GPIO,
-               MPP34_GPIO,
-               MPP35_GPIO,
-               MPP36_GPIO,
-               MPP37_GPIO,
-               MPP38_GPIO,
-               MPP39_GPIO,
-               MPP40_GPIO,
-               MPP41_GPIO,
-               MPP42_GPIO,
-               MPP43_GPIO,
-               MPP44_GPIO,
-               MPP45_GPIO,
-               MPP46_GPIO,
-               MPP47_GPIO,
-               MPP48_GPIO,
-               MPP49_GPIO,
-               0
-       };
-       kirkwood_mpp_conf(kwmpp_config, NULL);
-
-       return 0;
-}
-
-int board_init(void)
-{
-       gd->bd->bi_boot_params = mvebu_sdram_bar(0) + 0x100;
-
-       return 0;
-}
-
-#ifdef CONFIG_RESET_PHY_R
-/* automatically defined by kirkwood config.h */
-void reset_phy(void)
-{
-}
-#endif
board/Marvell/db-88f6281-bp/kwbimage.cfg.in deleted +0 -36
deleted file mode 100644
index 05f8b275f607..000000000000
@@ -1,36 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-
-# Boot Media configurations
-#@BOOT_FROM
-
-DATA 0xd00100e0 0x1b1b1b9b
-DATA 0xd0020134 0xbbbbbbbb
-DATA 0xd0020138 0x00bbbbbb
-DATA 0xd0020154 0x00000200
-DATA 0xd002014c 0x00001c00
-DATA 0xd0020148 0x00000001
-
-DATA 0xd0001400 0x43000c30
-DATA 0xd0001404 0x39543000
-DATA 0xd0001408 0x22125451
-DATA 0xd000140c 0x00000833
-DATA 0xd0001410 0x000000cc
-DATA 0xd0001414 0x00000000
-DATA 0xd0001418 0x00000000
-DATA 0xd000141c 0x00000c52
-DATA 0xd0001420 0x00000044
-DATA 0xd0001424 0x0000f1ff
-DATA 0xd0001428 0x00085520
-DATA 0xd000147c 0x00008552
-DATA 0xd0001504 0x0ffffff1
-DATA 0xd0001508 0x10000000
-DATA 0xd000150c 0x0ffffff5
-DATA 0xd0001514 0x00000000
-DATA 0xd000151c 0x00000000
-DATA 0xd0001494 0x84210000
-DATA 0xd0001498 0x00000000
-DATA 0xd000149c 0x0000f40f
-DATA 0xd0001480 0x00000001
-
-# End of Header extension
-DATA 0x0 0x0
configs/db-88f6281-bp-nand_defconfig deleted +0 -64
deleted file mode 100644
index 4fff3269aff1..000000000000
@@ -1,64 +0,0 @@
-CONFIG_ARM=y
-CONFIG_SYS_DCACHE_OFF=y
-CONFIG_ARCH_CPU_INIT=y
-CONFIG_SYS_THUMB_BUILD=y
-CONFIG_ARCH_KIRKWOOD=y
-CONFIG_SYS_TEXT_BASE=0x600000
-CONFIG_NR_DRAM_BANKS=2
-CONFIG_TARGET_DB_88F6281_BP=y
-CONFIG_ENV_SIZE=0x1000
-CONFIG_ENV_OFFSET=0xC0000
-CONFIG_ENV_SECT_SIZE=0x40000
-CONFIG_IDENT_STRING="\nMarvell DB-88F6281-BP"
-CONFIG_DEFAULT_DEVICE_TREE="kirkwood-db-88f6281"
-# CONFIG_SYS_MALLOC_F is not set
-CONFIG_BOOTDELAY=3
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-CONFIG_CMD_DM=y
-# CONFIG_CMD_FLASH is not set
-CONFIG_CMD_IDE=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_NAND=y
-CONFIG_CMD_USB=y
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_EXT2=y
-CONFIG_CMD_EXT4=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_JFFS2=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
 
-CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:512K(uboot),512K(env),4M(kernel),-(rootfs)"
-CONFIG_ISO_PARTITION=y
-CONFIG_OF_CONTROL=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_SPI_FLASH=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_NET_RANDOM_ETHADDR=y
-CONFIG_NETCONSOLE=y
-CONFIG_DM=y
-CONFIG_MVSATA_IDE=y
-CONFIG_MTD=y
-CONFIG_MTD_RAW_NAND=y
-CONFIG_DM_SPI_FLASH=y
-CONFIG_SPI_FLASH_STMICRO=y
-CONFIG_PHY_MARVELL=y
-CONFIG_DM_ETH=y
-CONFIG_MVGBE=y
-CONFIG_MII=y
-CONFIG_DM_RTC=y
-CONFIG_RTC_MV=y
-CONFIG_SYS_NS16550=y
-CONFIG_SPI=y
-CONFIG_DM_SPI=y
-CONFIG_KIRKWOOD_SPI=y
-CONFIG_USB=y
-CONFIG_DM_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_LZMA=y
-CONFIG_LZO=y
configs/db-88f6281-bp-spi_defconfig deleted +0 -63
deleted file mode 100644
index 07e9db7f41b2..000000000000
@@ -1,63 +0,0 @@
-CONFIG_ARM=y
-CONFIG_SYS_DCACHE_OFF=y
-CONFIG_ARCH_CPU_INIT=y
-CONFIG_SYS_THUMB_BUILD=y
-CONFIG_ARCH_KIRKWOOD=y
-CONFIG_SYS_TEXT_BASE=0x600000
-CONFIG_NR_DRAM_BANKS=2
-CONFIG_TARGET_DB_88F6281_BP=y
-CONFIG_ENV_SIZE=0x1000
-CONFIG_ENV_OFFSET=0xC0000
-CONFIG_ENV_SECT_SIZE=0x40000
-CONFIG_IDENT_STRING="\nMarvell DB-88F6281-BP"
-CONFIG_DEFAULT_DEVICE_TREE="kirkwood-db-88f6281-spi"
-# CONFIG_SYS_MALLOC_F is not set
-CONFIG_FIT=y
-CONFIG_BOOTDELAY=3
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
-CONFIG_CMD_DM=y
-# CONFIG_CMD_FLASH is not set
-CONFIG_CMD_IDE=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_USB=y
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_EXT2=y
-CONFIG_CMD_EXT4=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_JFFS2=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
 
-CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:512K(uboot),512K(env),4M(kernel),-(rootfs)"
-CONFIG_ISO_PARTITION=y
-CONFIG_OF_CONTROL=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_SPI_FLASH=y
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_NET_RANDOM_ETHADDR=y
-CONFIG_NETCONSOLE=y
-CONFIG_DM=y
-CONFIG_MVSATA_IDE=y
-CONFIG_MTD=y
-CONFIG_DM_SPI_FLASH=y
-CONFIG_SPI_FLASH_STMICRO=y
-CONFIG_PHY_MARVELL=y
-CONFIG_DM_ETH=y
-CONFIG_MVGBE=y
-CONFIG_MII=y
-CONFIG_DM_RTC=y
-CONFIG_RTC_MV=y
-CONFIG_SYS_NS16550=y
-CONFIG_SPI=y
-CONFIG_DM_SPI=y
-CONFIG_KIRKWOOD_SPI=y
-CONFIG_USB=y
-CONFIG_DM_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_LZMA=y
-CONFIG_LZO=y
include/configs/db-88f6281-bp.h deleted +0 -45
deleted file mode 100644
index 06a7091be208..000000000000
@@ -1,83 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-
-#ifndef _CONFIG_DB_88F6281_BP_H
-#define _CONFIG_DB_88F6281_BP_H
-
-/*
- * High Level Configuration Options (easy to change)
- */
-#define CONFIG_FEROCEON_88FR131        1       /* CPU Core subversion */
-#define CONFIG_KW88F6281       1       /* SOC Name */
-#define CONFIG_SKIP_LOWLEVEL_INIT      /* disable board lowlevel_init */
-#define CONFIG_SYS_TCLK                166666667
-#define CONFIG_SYS_KWD_CONFIG  $(CONFIG_BOARDDIR)/kwbimage.cfg
-
-/* additions for new ARM relocation support */
-#define CONFIG_SYS_SDRAM_BASE  0x00000000
-
-#define CONFIG_KIRKWOOD_EGIGA_INIT     /* Enable GbePort0/1 for kernel */
-#define CONFIG_KIRKWOOD_PCIE_INIT      /* Enable PCIE Port0 */
-#define CONFIG_KIRKWOOD_RGMII_PAD_1V8  /* Set RGMII Pad voltage to 1.8V */
-#define CONFIG_KIRKWOOD_GPIO   1
-
-/*
- * NS16550 Configuration
- */
-#define CONFIG_SYS_NS16550_SERIAL
-#define CONFIG_SYS_NS16550_REG_SIZE    (-4)
-#define CONFIG_SYS_NS16550_CLK         CONFIG_SYS_TCLK
-#define CONFIG_SYS_NS16550_COM1                KW_UART0_BASE
-
-#define CONFIG_SYS_MAX_NAND_DEVICE     1
-
-/*
- *  Environment variables configurations
- */
-#define CONFIG_ENV_SPI_BUS             0
-#define CONFIG_ENV_SPI_CS              0
-#define CONFIG_ENV_SPI_MAX_HZ          20000000        /* 20Mhz */
-#define CONFIG_ENV_SPI_MODE            CONFIG_SF_DEFAULT_MODE
-
-/*
- * U-Boot bootcode configuration
- */
-
-#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB

for monitor */
-#define CONFIG_SYS_MALLOC_LEN (4 << 20) /* Reserve 4.0 MB
for malloc */

include/configs/db-88f6281-bp.h deleted +0 -7
-
-/*
- * For booting Linux, the board info and command line data
- * have to be in the first 8 MB of memory, since this is
- * the maximum mapped by the Linux kernel during initialization.
- */
-#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Mem map

for Linux*/

include/configs/db-88f6281-bp.h deleted +0 -28
-
-/* size in bytes reserved for initial data */
-
-#include <asm/arch/config.h>
-/* There is no PHY directly connected so don't ask it for link status */
-#undef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
-
-/*
- * Other required minimal configurations
- */
-#define CONFIG_SYS_RESET_ADDRESS 0xffff0000    /* Rst Vector Adr */
-
-/*
- * SDIO/MMC Card Configuration
- */
-#ifdef CONFIG_CMD_MMC
-#define CONFIG_MVEBU_MMC
-#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
-#endif /* CONFIG_CMD_MMC */
-
-/*
- * SATA Driver configuration
- */
-#ifdef CONFIG_MVSATA_IDE
-#define CONFIG_SYS_ATA_IDE0_OFFSET     MV_SATA_PORT0_OFFSET
-#endif /*CONFIG_MVSATA_IDE*/
-
-#define CONFIG_SYS_LOAD_ADDR  0x1000000      /* default location for tftp

and bootm */

include/configs/db-88f6281-bp.h deleted +0 -3
-
-#endif /* _CONFIG_DB_88F6281_BP_H */
--

2.17.1

author
#60 lore raw

PATCH 24/25 arm: Remove db-88f6281-bp board

In reply to Tom Rini
Quoted 7 lines · Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210215/c2ee4e8b/attachment.sig>
author
#61 lore raw

PATCH 25/25 arm: Remove warp board

In reply to Tom Rini

This board has not been converted to CONFIG_DM_MMC by the deadline of v2019.04, which is almost two years ago. In addition there are other DM migrations it is also missing. Remove it.

Cc Otavio Salvador <[email protected]>
---
 arch/arm/mach-imx/mx6/Kconfig |   6 --
 board/warp/Kconfig            |   9 --
 board/warp/MAINTAINERS        |   6 --
 board/warp/Makefile           |   6 --
 board/warp/README             |  56 -----------
 board/warp/imximage.cfg       | 123 -------------------------
 board/warp/warp.c             | 169 ----------------------------------
 configs/warp_defconfig        |  49 ----------
 include/configs/warp.h        | 145 -----------------------------
 9 files changed, 569 deletions(-)
 delete mode 100644 board/warp/Kconfig
 delete mode 100644 board/warp/MAINTAINERS
 delete mode 100644 board/warp/Makefile
 delete mode 100644 board/warp/README
 delete mode 100644 board/warp/imximage.cfg
 delete mode 100644 board/warp/warp.c
 delete mode 100644 configs/warp_defconfig
 delete mode 100644 include/configs/warp.h
arch/arm/mach-imx/mx6/Kconfig +0 -6
index 737e305f29f1..410afed075c8 100644
@@ -642,11 +642,6 @@ config TARGET_WANDBOARD
 	select BOARD_LATE_INIT
 	select SUPPORT_SPL
 
-config TARGET_WARP
-	bool "WaRP"
-	depends on MX6SL
-	select BOARD_LATE_INIT
-
 config TARGET_XPRESS
 	bool "CCV xPress"
 	depends on MX6UL
@@ -746,7 +741,6 @@ source "board/k+p/kp_imx6q_tpc/Kconfig"
 source "board/udoo/Kconfig"
 source "board/udoo/neo/Kconfig"
 source "board/wandboard/Kconfig"
-source "board/warp/Kconfig"
 source "board/BuR/brppt2/Kconfig"
 
 endif
board/warp/Kconfig deleted +0 -9
deleted file mode 100644
index dc0263631906..000000000000
@@ -1,9 +0,0 @@
-if TARGET_WARP
-
-config SYS_BOARD
-	default "warp"
-
-config SYS_CONFIG_NAME
-	default "warp"
-
-endif
board/warp/MAINTAINERS deleted +0 -6
deleted file mode 100644
index ee2114d08235..000000000000
@@ -1,6 +0,0 @@
-WaRP BOARD
-M:	Otavio Salvador <[email protected]>
-S:	Maintained
-F:	board/warp/
-F:	include/configs/warp.h
-F:	configs/warp_defconfig
board/warp/Makefile deleted +0 -6
deleted file mode 100644
index 3a2373d7bf5b..000000000000
@@ -1,6 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-# Copyright (C) 2014 O.S. Systems Software LTDA.
-# Copyright (C) 2014 Kynetics LLC.
-# Copyright (C) 2014 Revolution Robotics, Inc.
-
-obj-y  := warp.o
board/warp/README deleted +0 -56

56 lines not on this page · raw message

board/warp/imximage.cfg deleted +0 -123

123 lines not on this page · raw message

board/warp/warp.c deleted +0 -169

169 lines not on this page · raw message

configs/warp_defconfig deleted +0 -49

49 lines not on this page · raw message

include/configs/warp.h deleted +0 -145

145 lines not on this page · raw message

Signature · 1 line
2.17.1