Skip to contentSkip to conversation

serial: sh: Drop H8 support

PATCH New Marek Vasut 2 participants 14 messages May 10, 2019 – May 13, 2019

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

PATCH 1/12 serial: sh: Drop H8 support

There is no H8 support in U-Boot, drop all the H8 macros.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 drivers/serial/serial_sh.h | 84 --------------------------------------
 1 file changed, 84 deletions(-)
drivers/serial/serial_sh.h +0 -84
index 8aa80d4a37..78d8afa69f 100644
@@ -12,13 +12,6 @@ struct uart_port {
 	enum sh_clk_mode clk_mode;	/* clock mode */
 };
 
-#if defined(CONFIG_H83007) || defined(CONFIG_H83068)
-#include <asm/regs306x.h>
-#endif
-#if defined(CONFIG_H8S2678)
-#include <asm/regs267x.h>
-#endif
-
 #if defined(CONFIG_CPU_SH7706) || \
 	defined(CONFIG_CPU_SH7707) || \
 	defined(CONFIG_CPU_SH7708) || \
@@ -130,12 +123,6 @@ struct uart_port {
 # define SCLSR2\
 		((port->mapbase)+SCIF_LSR2_OFFS) /* 16 bit SCIF */
 # define SCSCR_INIT(port)  0x38		/* TIE=0,RIE=0, TE=1,RE=1,REIE=1 */
-#elif defined(CONFIG_H83007) || defined(CONFIG_H83068)
-# define SCSCR_INIT(port)          0x30 /* TIE=0,RIE=0,TE=1,RE=1 */
-# define H8300_SCI_DR(ch) (*(volatile char *)(P1DR + h8300_sci_pins[ch].port))
-#elif defined(CONFIG_H8S2678)
-# define SCSCR_INIT(port)          0x30 /* TIE=0,RIE=0,TE=1,RE=1 */
-# define H8300_SCI_DR(ch) (*(volatile char *)(P1DR + h8300_sci_pins[ch].port))
 #elif defined(CONFIG_CPU_SH7757) || \
 	defined(CONFIG_CPU_SH7752) || \
 	defined(CONFIG_CPU_SH7753)
@@ -402,16 +389,6 @@ static inline void sci_##name##_out(struct uart_port *port,\
 	}\
 }
 
-#ifdef CONFIG_H8300
-/* h8300 don't have SCIF */
-#define CPU_SCIF_FNS(name)						\
-	static inline unsigned int sci_##name##_in(struct uart_port *port) {\
-		return 0;\
-	}\
-	static inline void sci_##name##_out(struct uart_port *port,\
-					unsigned int value) {\
-	}
-#else
 #define CPU_SCIF_FNS(name, scif_offset, scif_size)			\
 	static inline unsigned int sci_##name##_in(struct uart_port *port) {\
 		SCI_IN(scif_size, scif_offset);\
@@ -420,7 +397,6 @@ static inline void sci_##name##_out(struct uart_port *port,\
 					unsigned int value) {\
 		SCI_OUT(scif_size, scif_offset, value);\
 	}
-#endif
 
 #define CPU_SCI_FNS(name, sci_offset, sci_size)\
 	static inline unsigned int sci_##name##_in(struct uart_port *port) {\
@@ -476,16 +452,6 @@ static inline void sci_##name##_out(struct uart_port *port,\
 				sh4_scif_offset, sh4_scif_size) \
 	CPU_SCIF_FNS(name, sh3_scif_offset, sh3_scif_size)
 #endif
-#elif defined(__H8300H__) || defined(__H8300S__)
-#define SCIx_FNS(name, sh3_sci_offset, sh3_sci_size,\
-				sh4_sci_offset, sh4_sci_size, \
-				sh3_scif_offset, sh3_scif_size,\
-				sh4_scif_offset, sh4_scif_size, \
-				h8_sci_offset, h8_sci_size) \
-	CPU_SCI_FNS(name, h8_sci_offset, h8_sci_size)
-#define SCIF_FNS(name, sh3_scif_offset, sh3_scif_size,\
-					sh4_scif_offset, sh4_scif_size) \
-	CPU_SCIF_FNS(name)
 #elif defined(CONFIG_CPU_SH7723)
 		#define SCIx_FNS(name, sh4_scifa_offset, sh4_scifa_size,\
 					sh4_scif_offset, sh4_scif_size) \
@@ -614,48 +580,6 @@ SCIF_FNS(DL,				0,  0, 0x0,  0) /* dummy */
 #define sci_in(port, reg) sci_##reg##_in(port)
 #define sci_out(port, reg, value) sci_##reg##_out(port, value)
 
-/* H8/300 series SCI pins assignment */
-#if defined(__H8300H__) || defined(__H8300S__)
-static const struct __attribute__((packed)) {
-	int port;             /* GPIO port no */
-	unsigned short rx, tx; /* GPIO bit no */
-} h8300_sci_pins[] = {
-#if defined(CONFIG_H83007) || defined(CONFIG_H83068)
-	{    /* SCI0 */
-		.port = H8300_GPIO_P9,
-		.rx   = H8300_GPIO_B2,
-		.tx   = H8300_GPIO_B0,
-	},
-	{    /* SCI1 */
-		.port = H8300_GPIO_P9,
-		.rx   = H8300_GPIO_B3,
-		.tx   = H8300_GPIO_B1,
-	},
-	{    /* SCI2 */
-		.port = H8300_GPIO_PB,
-		.rx   = H8300_GPIO_B7,
-		.tx   = H8300_GPIO_B6,
-	}
-#elif defined(CONFIG_H8S2678)
-	{    /* SCI0 */
-		.port = H8300_GPIO_P3,
-		.rx   = H8300_GPIO_B2,
-		.tx   = H8300_GPIO_B0,
-	},
-	{    /* SCI1 */
-		.port = H8300_GPIO_P3,
-		.rx   = H8300_GPIO_B3,
-		.tx   = H8300_GPIO_B1,
-	},
-	{    /* SCI2 */
-		.port = H8300_GPIO_P5,
-		.rx   = H8300_GPIO_B1,
-		.tx   = H8300_GPIO_B0,
-	}
-#endif
-};
-#endif
-
 #if defined(CONFIG_CPU_SH7706) || \
 	defined(CONFIG_CPU_SH7707) || \
 	defined(CONFIG_CPU_SH7708) || \
@@ -678,12 +602,6 @@ static inline int sci_rxd_in(struct uart_port *port)
 		return __raw_readb(SCSPTR1)&0x01 ? 1 : 0; /* SCI */
 	return 1;
 }
-#elif defined(__H8300H__) || defined(__H8300S__)
-static inline int sci_rxd_in(struct uart_port *port)
-{
-	int ch = (port->mapbase - SMR0) >> 3;
-	return (H8300_SCI_DR(ch) & h8300_sci_pins[ch].rx) ? 1 : 0;
-}
 #else /* default case for non-SCI processors */
 static inline int sci_rxd_in(struct uart_port *port)
 {
@@ -745,8 +663,6 @@ static inline int scbrr_calc(struct uart_port *port, int bps, int clk)
 		return ((clk*2)+16*bps)/(16*bps)-1;
 }
 #define SCBRR_VALUE(bps, clk) scbrr_calc(port, bps, clk)
-#elif defined(__H8300H__) || defined(__H8300S__)
-#define SCBRR_VALUE(bps, clk) (((clk*1000/32)/bps)-1)
 #elif defined(CONFIG_RCAR_GEN2)
 #define DL_VALUE(bps, clk) (clk / bps / 16) /* External Clock */
  #if defined(CONFIG_SCIF_A)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/12 serial: sh: Drop SH2007 support

There is no SH2007 support in U-Boot, drop all the SH2007 macros.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 drivers/serial/serial_sh.h | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
drivers/serial/serial_sh.h +2 -8
index 78d8afa69f..f78d24874c 100644
@@ -149,13 +149,8 @@ struct uart_port {
 # define SCSPTR1	0xffe10024	/* 16 bit SCIF */
 # define SCIF_ORER	0x0001		/* Overrun error bit */
 
-#if defined(CONFIG_SH_SH2007)
-/* TIE=0,RIE=0,TE=1,RE=1,REIE=1,CKE1=0 */
-# define SCSCR_INIT(port)	0x38
-#else
 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1,CKE1=1 */
 # define SCSCR_INIT(port)	0x3a
-#endif
 
 #elif defined(CONFIG_CPU_SH7786)
 # define SCSPTR0	0xffea0024	/* 16 bit SCIF */
@@ -641,9 +636,8 @@ static inline int sci_rxd_in(struct uart_port *port)
  * -- Mitch Davis - 15 Jul 2000
  */
 
-#if (defined(CONFIG_CPU_SH7780)  || \
-	defined(CONFIG_CPU_SH7786)) && \
-	!defined(CONFIG_SH_SH2007)
+#if defined(CONFIG_CPU_SH7780) || \
+	defined(CONFIG_CPU_SH7786)
 #define SCBRR_VALUE(bps, clk) ((clk+16*bps)/(16*bps)-1)
 #elif defined(CONFIG_CPU_SH7705) || \
 	defined(CONFIG_CPU_SH7720) || \
Signature · 1 line
2.20.1
#2 lore raw

PATCH 3/12 serial: sh: Drop RTS7751R2D support

In reply to Marek Vasut

There is no RTS7751R2D support in U-Boot, drop all the RTS7751R2D macros.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 drivers/serial/serial_sh.h | 5 -----
 1 file changed, 5 deletions(-)
drivers/serial/serial_sh.h +0 -5
index f78d24874c..7187e6ee03 100644
@@ -43,11 +43,6 @@ struct uart_port {
 # define PORT_PTCR	   0xA405011EUL
 # define PORT_PVCR	   0xA4050122UL
 # define SCIF_ORER	   0x0200   /* overrun error bit */
-#elif defined(CONFIG_SH_RTS7751R2D)
-# define SCSPTR1 0xFFE0001C /* 8 bit SCIF */
-# define SCSPTR2 0xFFE80020 /* 16 bit SCIF */
-# define SCIF_ORER 0x0001   /* overrun error bit */
-# define SCSCR_INIT(port) 0x3a /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */
 #elif defined(CONFIG_CPU_SH7750)  || \
 	defined(CONFIG_CPU_SH7750R) || \
 	defined(CONFIG_CPU_SH7750S) || \
Signature · 1 line
2.20.1
#3 lore raw

PATCH 4/12 serial: sh: Drop assorted SH3, SH4, SH5 macros

In reply to Marek Vasut

Drop unused macros from the header to clean it up.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 drivers/serial/serial_sh.c |  12 +---
 drivers/serial/serial_sh.h | 111 +++----------------------------------
 2 files changed, 8 insertions(+), 115 deletions(-)
drivers/serial/serial_sh.c +1 -11
index 8f52f9dce4..acfcc2954a 100644
@@ -19,9 +19,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if defined(CONFIG_CPU_SH7760) || \
-	defined(CONFIG_CPU_SH7780) || \
-	defined(CONFIG_CPU_SH7786)
+#if defined(CONFIG_CPU_SH7780)
 static int scif_rxfill(struct uart_port *port)
 {
 	return sci_in(port, SCRFDR) & 0xff;
@@ -38,14 +36,6 @@ static int scif_rxfill(struct uart_port *port)
 		return sci_in(port, SCFDR) & SCIF2_RFDC_MASK;
 	}
 }
-#elif defined(CONFIG_ARCH_SH7372)
-static int scif_rxfill(struct uart_port *port)
-{
-	if (port->type == PORT_SCIFA)
-		return sci_in(port, SCFDR) & SCIF_RFDC_MASK;
-	else
-		return sci_in(port, SCRFDR);
-}
 #else
 static int scif_rxfill(struct uart_port *port)
 {
drivers/serial/serial_sh.h +7 -104

243 lines not on this page · raw message

Signature · 1 line
2.20.1
#4 lore raw

PATCH 5/12 sh: rsk7203: Remove the board

In reply to Marek Vasut

Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/sh/Kconfig                       |   5 -
 board/renesas/rsk7203/Kconfig         |  12 --
 board/renesas/rsk7203/MAINTAINERS     |   7 -
 board/renesas/rsk7203/Makefile        |  10 --
 board/renesas/rsk7203/lowlevel_init.S | 199 --------------------------
 board/renesas/rsk7203/rsk7203.c       |  59 --------
 configs/rsk7203_defconfig             |  32 -----
 include/configs/rsk7203.h             |  63 --------
 8 files changed, 387 deletions(-)
 delete mode 100644 board/renesas/rsk7203/Kconfig
 delete mode 100644 board/renesas/rsk7203/MAINTAINERS
 delete mode 100644 board/renesas/rsk7203/Makefile
 delete mode 100644 board/renesas/rsk7203/lowlevel_init.S
 delete mode 100644 board/renesas/rsk7203/rsk7203.c
 delete mode 100644 configs/rsk7203_defconfig
 delete mode 100644 include/configs/rsk7203.h
arch/sh/Kconfig +0 -5
index a5772da87a..6f8418131c 100644
@@ -31,10 +31,6 @@ choice
 	prompt "Target select"
 	optional
 
-config TARGET_RSK7203
-	bool "RSK+ 7203"
-	select CPU_SH2A
-
 config TARGET_RSK7264
 	bool "RSK2+SH7264"
 	select CPU_SH2A
@@ -130,7 +126,6 @@ source "board/renesas/ap325rxa/Kconfig"
 source "board/renesas/r0p7734/Kconfig"
 source "board/renesas/r2dplus/Kconfig"
 source "board/renesas/r7780mp/Kconfig"
-source "board/renesas/rsk7203/Kconfig"
 source "board/renesas/rsk7264/Kconfig"
 source "board/renesas/rsk7269/Kconfig"
 source "board/renesas/sh7752evb/Kconfig"
board/renesas/rsk7203/Kconfig deleted +0 -12
deleted file mode 100644
index 10b8786411..0000000000
@@ -1,12 +0,0 @@
-if TARGET_RSK7203
-
-config SYS_BOARD
-	default "rsk7203"
-
-config SYS_VENDOR
-	default "renesas"
-
-config SYS_CONFIG_NAME
-	default "rsk7203"
-
-endif
board/renesas/rsk7203/MAINTAINERS deleted +0 -7
deleted file mode 100644
index 18d36634cf..0000000000
@@ -1,7 +0,0 @@
-RSK7203 BOARD
-M:	Nobuhiro Iwamatsu <[email protected]>
-M:	Nobuhiro Iwamatsu <[email protected]>
-S:	Maintained
-F:	board/renesas/rsk7203/
-F:	include/configs/rsk7203.h
-F:	configs/rsk7203_defconfig
board/renesas/rsk7203/Makefile deleted +0 -10
deleted file mode 100644
index 545079e99e..0000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2007,2008 Nobuhiro Iwamatsu
-# Copyright (C) 2008 Renesas Solutions Corp.
-#
-# u-boot/board/rsk7203/Makefile
-#
-
-obj-y	:= rsk7203.o
-extra-y	+= lowlevel_init.o
board/renesas/rsk7203/lowlevel_init.S deleted +0 -199

199 lines not on this page · raw message

board/renesas/rsk7203/rsk7203.c deleted +0 -59

59 lines not on this page · raw message

configs/rsk7203_defconfig deleted +0 -32
deleted file mode 100644
index 231d699270..0000000000
@@ -1,32 +0,0 @@
-CONFIG_SH=y
-CONFIG_SYS_TEXT_BASE=0xC7C0000
-CONFIG_TARGET_RSK7203=y
-CONFIG_USE_BOOTARGS=y
-CONFIG_BOOTARGS="console=ttySC0,115200"
-CONFIG_VERSION_VARIABLE=y
-# CONFIG_CMDLINE_EDITING is not set
-# CONFIG_AUTO_COMPLETE is not set
-# CONFIG_AUTOBOOT is not set
-# CONFIG_CMD_BDI is not set
-# CONFIG_CMD_CONSOLE is not set
-# CONFIG_CMD_BOOTD is not set
-# CONFIG_CMD_RUN is not set
-# CONFIG_CMD_IMI is not set
-# CONFIG_CMD_XIMG is not set
-# CONFIG_CMD_EDITENV is not set
-# CONFIG_CMD_ENV_EXISTS is not set
-# CONFIG_CMD_LOADB is not set
-# CONFIG_CMD_LOADS is not set
-CONFIG_CMD_SDRAM=y
-# CONFIG_CMD_ECHO is not set
-# CONFIG_CMD_ITEST is not set
-# CONFIG_CMD_SOURCE is not set
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_PING=y
-CONFIG_CMD_CACHE=y
-# CONFIG_CMD_MISC is not set
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_CFI=y
-CONFIG_SCIF_CONSOLE=y
-CONFIG_USE_PRIVATE_LIBGCC=y
include/configs/rsk7203.h deleted +0 -63

63 lines not on this page · raw message

Signature · 1 line
2.20.1
#5 lore raw

PATCH 6/12 sh: rsk7264: Remove the board

In reply to Marek Vasut

Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/sh/Kconfig                       |   5 -
 board/renesas/rsk7264/Kconfig         |  12 --
 board/renesas/rsk7264/MAINTAINERS     |   6 -
 board/renesas/rsk7264/Makefile        |   7 -
 board/renesas/rsk7264/lowlevel_init.S | 209 --------------------------
 board/renesas/rsk7264/rsk7264.c       |  60 --------
 configs/rsk7264_defconfig             |  15 --
 include/configs/rsk7264.h             |  52 -------
 8 files changed, 366 deletions(-)
 delete mode 100644 board/renesas/rsk7264/Kconfig
 delete mode 100644 board/renesas/rsk7264/MAINTAINERS
 delete mode 100644 board/renesas/rsk7264/Makefile
 delete mode 100644 board/renesas/rsk7264/lowlevel_init.S
 delete mode 100644 board/renesas/rsk7264/rsk7264.c
 delete mode 100644 configs/rsk7264_defconfig
 delete mode 100644 include/configs/rsk7264.h
arch/sh/Kconfig +0 -5
index 6f8418131c..95e376bf38 100644
@@ -31,10 +31,6 @@ choice
 	prompt "Target select"
 	optional
 
-config TARGET_RSK7264
-	bool "RSK2+SH7264"
-	select CPU_SH2A
-
 config TARGET_RSK7269
 	bool "RSK2+SH7269"
 	select CPU_SH2A
@@ -126,7 +122,6 @@ source "board/renesas/ap325rxa/Kconfig"
 source "board/renesas/r0p7734/Kconfig"
 source "board/renesas/r2dplus/Kconfig"
 source "board/renesas/r7780mp/Kconfig"
-source "board/renesas/rsk7264/Kconfig"
 source "board/renesas/rsk7269/Kconfig"
 source "board/renesas/sh7752evb/Kconfig"
 source "board/renesas/sh7753evb/Kconfig"
board/renesas/rsk7264/Kconfig deleted +0 -12
deleted file mode 100644
index 755d2896fb..0000000000
@@ -1,12 +0,0 @@
-if TARGET_RSK7264
-
-config SYS_BOARD
-	default "rsk7264"
-
-config SYS_VENDOR
-	default "renesas"
-
-config SYS_CONFIG_NAME
-	default "rsk7264"
-
-endif
board/renesas/rsk7264/MAINTAINERS deleted +0 -6
deleted file mode 100644
index f6202b70d9..0000000000
@@ -1,6 +0,0 @@
-RSK7264 BOARD
-M:	Phil Edworthy <[email protected]>
-S:	Maintained
-F:	board/renesas/rsk7264/
-F:	include/configs/rsk7264.h
-F:	configs/rsk7264_defconfig
board/renesas/rsk7264/Makefile deleted +0 -7
deleted file mode 100644
index 4efcf5cba9..0000000000
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2011 Renesas Electronics Europe Ltd.
-#
-
-obj-y	:= rsk7264.o
-extra-y	+= lowlevel_init.o
board/renesas/rsk7264/lowlevel_init.S deleted +0 -209

209 lines not on this page · raw message

board/renesas/rsk7264/rsk7264.c deleted +0 -60

60 lines not on this page · raw message

configs/rsk7264_defconfig deleted +0 -15
deleted file mode 100644
index 2ae70842a8..0000000000
@@ -1,15 +0,0 @@
-CONFIG_SH=y
-CONFIG_SYS_TEXT_BASE=0xCFC0000
-CONFIG_TARGET_RSK7264=y
-CONFIG_BOOTDELAY=3
-CONFIG_USE_BOOTARGS=y
-CONFIG_BOOTARGS="console=ttySC3,115200"
-# CONFIG_CMDLINE_EDITING is not set
-# CONFIG_AUTO_COMPLETE is not set
-CONFIG_CMD_IMLS=y
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_CFI=y
-CONFIG_SCIF_CONSOLE=y
-CONFIG_USE_PRIVATE_LIBGCC=y
include/configs/rsk7264.h deleted +0 -52

52 lines not on this page · raw message

Signature · 1 line
2.20.1
#6 lore raw

PATCH 7/12 sh: rsk7269: Remove the board

In reply to Marek Vasut

Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/sh/Kconfig                       |   5 -
 board/renesas/rsk7269/Kconfig         |  12 --
 board/renesas/rsk7269/MAINTAINERS     |   6 -
 board/renesas/rsk7269/Makefile        |   8 --
 board/renesas/rsk7269/lowlevel_init.S | 179 --------------------------
 board/renesas/rsk7269/rsk7269.c       |  61 ---------
 configs/rsk7269_defconfig             |  15 ---
 include/configs/rsk7269.h             |  51 --------
 8 files changed, 337 deletions(-)
 delete mode 100644 board/renesas/rsk7269/Kconfig
 delete mode 100644 board/renesas/rsk7269/MAINTAINERS
 delete mode 100644 board/renesas/rsk7269/Makefile
 delete mode 100644 board/renesas/rsk7269/lowlevel_init.S
 delete mode 100644 board/renesas/rsk7269/rsk7269.c
 delete mode 100644 configs/rsk7269_defconfig
 delete mode 100644 include/configs/rsk7269.h
arch/sh/Kconfig +0 -5
index 95e376bf38..c97856f9b4 100644
@@ -31,10 +31,6 @@ choice
 	prompt "Target select"
 	optional
 
-config TARGET_RSK7269
-	bool "RSK2+SH7269"
-	select CPU_SH2A
-
 config TARGET_MPR2
 	bool "Magic Panel Release 2 board"
 	select CPU_SH3
@@ -122,7 +118,6 @@ source "board/renesas/ap325rxa/Kconfig"
 source "board/renesas/r0p7734/Kconfig"
 source "board/renesas/r2dplus/Kconfig"
 source "board/renesas/r7780mp/Kconfig"
-source "board/renesas/rsk7269/Kconfig"
 source "board/renesas/sh7752evb/Kconfig"
 source "board/renesas/sh7753evb/Kconfig"
 source "board/renesas/sh7757lcr/Kconfig"
board/renesas/rsk7269/Kconfig deleted +0 -12
deleted file mode 100644
index ab5cd0e38f..0000000000
@@ -1,12 +0,0 @@
-if TARGET_RSK7269
-
-config SYS_BOARD
-	default "rsk7269"
-
-config SYS_VENDOR
-	default "renesas"
-
-config SYS_CONFIG_NAME
-	default "rsk7269"
-
-endif
board/renesas/rsk7269/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 698fbdb1df..0000000000
@@ -1,6 +0,0 @@
-RSK7269 BOARD
-#M:	-
-S:	Maintained
-F:	board/renesas/rsk7269/
-F:	include/configs/rsk7269.h
-F:	configs/rsk7269_defconfig
board/renesas/rsk7269/Makefile deleted +0 -8
deleted file mode 100644
index c4371f99fb..0000000000
@@ -1,8 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2012 Renesas Electronics Europe Ltd.
-# Copyright (C) 2012 Phil Edworthy
-#
-
-obj-y	:= rsk7269.o
-extra-y	+= lowlevel_init.o
board/renesas/rsk7269/lowlevel_init.S deleted +0 -179

179 lines not on this page · raw message

board/renesas/rsk7269/rsk7269.c deleted +0 -61

61 lines not on this page · raw message

configs/rsk7269_defconfig deleted +0 -15
deleted file mode 100644
index 3d2b03cc57..0000000000
@@ -1,15 +0,0 @@
-CONFIG_SH=y
-CONFIG_SYS_TEXT_BASE=0xDFC0000
-CONFIG_TARGET_RSK7269=y
-CONFIG_BOOTDELAY=3
-CONFIG_USE_BOOTARGS=y
-CONFIG_BOOTARGS="console=ttySC7,115200"
-# CONFIG_CMDLINE_EDITING is not set
-# CONFIG_AUTO_COMPLETE is not set
-CONFIG_CMD_IMLS=y
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_CFI=y
-CONFIG_SCIF_CONSOLE=y
-CONFIG_USE_PRIVATE_LIBGCC=y
include/configs/rsk7269.h deleted +0 -51

51 lines not on this page · raw message

Signature · 1 line
2.20.1
#7 lore raw

PATCH 8/12 sh: sh2: Remove CPU support

In reply to Marek Vasut

This CPU core is old, no boards using the CPU are left in mainline, it has no prospects of ever being converted to DM, drop it.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/sh/Kconfig                  |  8 ---
 arch/sh/cpu/sh2/Makefile         |  9 ----
 arch/sh/cpu/sh2/config.mk        | 15 ------
 arch/sh/cpu/sh2/cpu.c            | 84 --------------------------------
 arch/sh/cpu/sh2/interrupts.c     | 22 ---------
 arch/sh/cpu/sh2/watchdog.c       | 23 ---------
 arch/sh/include/asm/config.h     |  2 -
 arch/sh/include/asm/cpu_sh2.h    | 30 ------------
 arch/sh/include/asm/cpu_sh7203.h | 41 ----------------
 arch/sh/include/asm/cpu_sh7264.h | 41 ----------------
 arch/sh/include/asm/cpu_sh7269.h | 26 ----------
 arch/sh/include/asm/processor.h  |  4 +-
 arch/sh/lib/Makefile             |  4 --
 arch/sh/lib/start.S              |  6 ---
 drivers/serial/serial_sh.h       |  9 +---
 scripts/config_whitelist.txt     |  3 --
 16 files changed, 2 insertions(+), 325 deletions(-)
 delete mode 100644 arch/sh/cpu/sh2/Makefile
 delete mode 100644 arch/sh/cpu/sh2/config.mk
 delete mode 100644 arch/sh/cpu/sh2/cpu.c
 delete mode 100644 arch/sh/cpu/sh2/interrupts.c
 delete mode 100644 arch/sh/cpu/sh2/watchdog.c
 delete mode 100644 arch/sh/include/asm/cpu_sh2.h
 delete mode 100644 arch/sh/include/asm/cpu_sh7203.h
 delete mode 100644 arch/sh/include/asm/cpu_sh7264.h
 delete mode 100644 arch/sh/include/asm/cpu_sh7269.h
arch/sh/Kconfig +0 -8
index c97856f9b4..0659fbbf8b 100644
@@ -1,13 +1,6 @@
 menu "SuperH architecture"
 	depends on SH
 
-config CPU_SH2
-	bool
-
-config CPU_SH2A
-	bool
-	select CPU_SH2
-
 config CPU_SH3
 	bool
 
@@ -101,7 +94,6 @@ config SYS_ARCH
 	default "sh"
 
 config SYS_CPU
-	default "sh2" if CPU_SH2
 	default "sh3" if CPU_SH3
 	default "sh4" if CPU_SH4
 
arch/sh/cpu/sh2/Makefile deleted +0 -9
deleted file mode 100644
index 1220facc55..0000000000
@@ -1,9 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-#
-# Copyright (C) 2007,2008 Nobuhiro Iwamatsu <[email protected]>
-# Copyright (C) 2008 Renesas Solutions Corp.
-
-obj-y	= cpu.o interrupts.o watchdog.o
arch/sh/cpu/sh2/config.mk deleted +0 -15
deleted file mode 100644
index 931964a726..0000000000
@@ -1,15 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2007-2008
-# Nobuhiro Iwamatsu <[email protected]>
-#
-ENDIANNESS += -EB
-
-ifdef CONFIG_CPU_SH2A
-PLATFORM_CPPFLAGS += -m2a-nofpu -mb
-else # SH2
-PLATFORM_CPPFLAGS += -m3e -mb
-endif
-PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)
-
-PLATFORM_LDFLAGS += $(ENDIANNESS)
arch/sh/cpu/sh2/cpu.c deleted +0 -84

84 lines not on this page · raw message

arch/sh/cpu/sh2/interrupts.c deleted +0 -22
deleted file mode 100644
index a5ee41efb9..0000000000
@@ -1,22 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2007,2008 Nobuhiro Iwamatsu <[email protected]>
- * Copyright (C) 2008 Renesas Solutions Corp.
- */
-
-#include <common.h>
-
-int interrupt_init(void)
-{
-	return 0;
-}
-
-void enable_interrupts(void)
-{
-
-}
-
-int disable_interrupts(void)
-{
-	return 0;
-}
arch/sh/cpu/sh2/watchdog.c deleted +0 -23
deleted file mode 100644
index 28240edf19..0000000000
@@ -1,23 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (C) 2008,2010 Nobuhiro Iwamatsu <[email protected]>
- * Copyright (C) 2008,2010 Renesas Solutions Corp.
- */
-
-#include <common.h>
-#include <asm/processor.h>
-#include <asm/system.h>
-
-int watchdog_init(void)
-{
-	return 0;
-}
-
-void reset_cpu(unsigned long ignored)
-{
-	/* Address error with SR.BL=1 first. */
-	trigger_address_error();
-
-	while (1)
-		;
-}
arch/sh/include/asm/config.h +0 -2
index d2862df4a5..df38c82abc 100644
@@ -6,13 +6,11 @@
 #ifndef _ASM_CONFIG_H_
 #define _ASM_CONFIG_H_
 
-#if !defined(CONFIG_CPU_SH2)
 #include <asm/processor.h>
 
 /* Timer */
 #define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER	(TMU_BASE + 0x8)	/* TCNT0 */
 #define CONFIG_SYS_TIMER_RATE		(CONFIG_SYS_CLK_FREQ / 4)
-#endif
 
 #endif
arch/sh/include/asm/cpu_sh2.h deleted +0 -30
deleted file mode 100644
index d98bedd625..0000000000
@@ -1,30 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2007,2008 Nobuhiro Iwamatsu <[email protected]>
- * Copyright (C) 2008 Renesas Solutions Corp.
- */
-
-#ifndef _ASM_CPU_SH2_H_
-#define _ASM_CPU_SH2_H_
-
-/* cache control */
-#define CCR_CACHE_STOP		0x00000008
-#define CCR_CACHE_ENABLE	0x00000005
-#define CCR_CACHE_ICI		0x00000008
-
-#define CACHE_OC_ADDRESS_ARRAY	0xf0000000
-#define CACHE_OC_WAY_SHIFT	13
-#define CACHE_OC_NUM_ENTRIES	256
-#define CACHE_OC_ENTRY_SHIFT	4
-
-#if defined(CONFIG_CPU_SH7203)
-# include <asm/cpu_sh7203.h>
-#elif defined(CONFIG_CPU_SH7264)
-# include <asm/cpu_sh7264.h>
-#elif defined(CONFIG_CPU_SH7269)
-# include <asm/cpu_sh7269.h>
-#else
-# error "Unknown SH2 variant"
-#endif
-
-#endif	/* _ASM_CPU_SH2_H_ */
arch/sh/include/asm/cpu_sh7203.h deleted +0 -41

41 lines not on this page · raw message

arch/sh/include/asm/cpu_sh7264.h deleted +0 -41

41 lines not on this page · raw message

arch/sh/include/asm/cpu_sh7269.h deleted +0 -26
deleted file mode 100644
index 4dea7086d4..0000000000
@@ -1,26 +0,0 @@
-#ifndef _ASM_CPU_SH7269_H_
-#define _ASM_CPU_SH7269_H_
-
-/* Cache */
-#define CCR1		0xFFFC1000
-#define CCR		CCR1
-
-/* SCIF */
-#define SCSMR_0		0xE8007000
-#define SCIF0_BASE	SCSMR_0
-#define SCSMR_1		0xE8007800
-#define SCIF1_BASE	SCSMR_1
-#define SCSMR_2		0xE8008000
-#define SCIF2_BASE	SCSMR_2
-#define SCSMR_3		0xE8008800
-#define SCIF3_BASE	SCSMR_3
-#define SCSMR_7		0xE800A800
-#define SCIF7_BASE	SCSMR_7
-
-/* Timer(CMT) */
-#define CMSTR		0xFFFEC000
-#define CMCSR_0		0xFFFEC002
-#define CMCNT_0		0xFFFEC004
-#define CMCOR_0		0xFFFEC006
-
-#endif	/* _ASM_CPU_SH7269_H_ */
arch/sh/include/asm/processor.h +1 -3
index b07fe542e3..bdc1da6295 100644
@@ -1,8 +1,6 @@
 #ifndef _ASM_SH_PROCESSOR_H_
 #define _ASM_SH_PROCESSOR_H_
-#if defined(CONFIG_CPU_SH2)
-# include <asm/cpu_sh2.h>
-#elif defined(CONFIG_CPU_SH3)
+#if defined(CONFIG_CPU_SH3)
 # include <asm/cpu_sh3.h>
 #elif defined(CONFIG_CPU_SH4)
 # include <asm/cpu_sh4.h>
arch/sh/lib/Makefile +0 -4
index 4171e2b0b8..fbc4cc9d7f 100644
@@ -7,11 +7,7 @@ extra-y	+= start.o
 
 obj-y	+= board.o
 obj-$(CONFIG_CMD_BOOTM) += bootm.o
-ifeq ($(CONFIG_CPU_SH2),y)
-obj-y	+= time_sh2.o
-else
 obj-y	+= time.o
-endif
 obj-$(CONFIG_CMD_SH_ZIMAGEBOOT) += zimageboot.o
 
 udivsi3-y			:= udivsi3_i4i-Os.o
arch/sh/lib/start.S +0 -6
index ee79b4fdd0..f5350b9064 100644
@@ -12,12 +12,6 @@
 
 	.global	_start
 _start:
-#ifdef CONFIG_CPU_SH2
-	.long 0x00000010        /* Ppower ON reset PC*/
-	.long 0x00000000
-	.long 0x00000010        /* Manual reset PC */
-	.long 0x00000000
-#endif
 	mov.l	._lowlevel_init, r0
 100:	bsrf	r0
 	nop
drivers/serial/serial_sh.h +1 -8
index 56472c5419..f13deec72a 100644
@@ -106,14 +106,7 @@ struct uart_port {
 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1,CKE1=1 */
 # define SCSCR_INIT(port)	0x3a
 
-#elif defined(CONFIG_CPU_SH7203) || \
-	defined(CONFIG_CPU_SH7264)
-# define SCSPTR0 0xfffe8020 /* 16 bit SCIF */
-# define SCSPTR1 0xfffe8820 /* 16 bit SCIF */
-# define SCSPTR2 0xfffe9020 /* 16 bit SCIF */
-# define SCSPTR3 0xfffe9820 /* 16 bit SCIF */
-# define SCSCR_INIT(port)	0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */
-#elif defined(CONFIG_CPU_SH7269) || defined(CONFIG_RZA1)
+#elif defined(CONFIG_RZA1)
 # define SCSPTR0 0xe8007020 /* 16 bit SCIF */
 # define SCSPTR1 0xe8007820 /* 16 bit SCIF */
 # define SCSPTR2 0xe8008020 /* 16 bit SCIF */
scripts/config_whitelist.txt +0 -3
index 995811ce99..aadb9de88b 100644
@@ -270,9 +270,6 @@ CONFIG_CPU_PXA26X
 CONFIG_CPU_PXA27X
 CONFIG_CPU_PXA300
 CONFIG_CPU_R8000
-CONFIG_CPU_SH7203
-CONFIG_CPU_SH7264
-CONFIG_CPU_SH7269
 CONFIG_CPU_SH7706
 CONFIG_CPU_SH7720
 CONFIG_CPU_SH7722
Signature · 1 line
2.20.1
#8 lore raw

PATCH 9/12 sh: mpr2: Remove the board

In reply to Marek Vasut

Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it.

Cc Chris Brandt <[email protected]>
Cc Mark Jonas <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/sh/Kconfig            |   5 --
 board/mpr2/Kconfig         |   9 ---
 board/mpr2/MAINTAINERS     |   6 --
 board/mpr2/Makefile        |  19 -----
 board/mpr2/lowlevel_init.S | 117 -------------------------------
 board/mpr2/mpr2.c          | 137 -------------------------------------
 configs/mpr2_defconfig     |  31 ---------
 include/configs/mpr2.h     |  55 ---------------
 8 files changed, 379 deletions(-)
 delete mode 100644 board/mpr2/Kconfig
 delete mode 100644 board/mpr2/MAINTAINERS
 delete mode 100644 board/mpr2/Makefile
 delete mode 100644 board/mpr2/lowlevel_init.S
 delete mode 100644 board/mpr2/mpr2.c
 delete mode 100644 configs/mpr2_defconfig
 delete mode 100644 include/configs/mpr2.h
arch/sh/Kconfig +0 -5
index 0659fbbf8b..ea48ecb9a1 100644
@@ -24,10 +24,6 @@ choice
 	prompt "Target select"
 	optional
 
-config TARGET_MPR2
-	bool "Magic Panel Release 2 board"
-	select CPU_SH3
-
 config TARGET_MS7720SE
 	bool "Support ms7720se"
 	select CPU_SH3
@@ -101,7 +97,6 @@ source "arch/sh/lib/Kconfig"
 
 source "board/alphaproject/ap_sh4a_4a/Kconfig"
 source "board/espt/Kconfig"
-source "board/mpr2/Kconfig"
 source "board/ms7720se/Kconfig"
 source "board/ms7722se/Kconfig"
 source "board/ms7750se/Kconfig"
board/mpr2/Kconfig deleted +0 -9
deleted file mode 100644
index 54176e8f6f..0000000000
@@ -1,9 +0,0 @@
-if TARGET_MPR2
-
-config SYS_BOARD
-	default "mpr2"
-
-config SYS_CONFIG_NAME
-	default "mpr2"
-
-endif
board/mpr2/MAINTAINERS deleted +0 -6
deleted file mode 100644
index beedf8dda6..0000000000
@@ -1,6 +0,0 @@
-MPR2 BOARD
-M:	Mark Jonas <[email protected]>
-S:	Maintained
-F:	board/mpr2/
-F:	include/configs/mpr2.h
-F:	configs/mpr2_defconfig
board/mpr2/Makefile deleted +0 -19
deleted file mode 100644
index 6a71803ac7..0000000000
@@ -1,19 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2007
-# Yoshihiro Shimoda <[email protected]>
-#
-# Copyright (C) 2007
-# Nobuhiro Iwamatsu <[email protected]>
-#
-# Copyright (C) 2007
-# Kenati Technologies, Inc.
-#
-# (C) Copyright 2008
-# Mark Jonas <[email protected]>
-#
-# board/mpr2/Makefile
-#
-
-obj-y	:= mpr2.o
-extra-y	+= lowlevel_init.o
board/mpr2/lowlevel_init.S deleted +0 -117

117 lines not on this page · raw message

board/mpr2/mpr2.c deleted +0 -137

137 lines not on this page · raw message

configs/mpr2_defconfig deleted +0 -31
deleted file mode 100644
index 3e50c555ca..0000000000
@@ -1,31 +0,0 @@
-CONFIG_SH=y
-CONFIG_SYS_TEXT_BASE=0x8FFC0000
-CONFIG_TARGET_MPR2=y
-CONFIG_USE_BOOTARGS=y
-CONFIG_BOOTARGS="console=ttySC0,115200"
-CONFIG_VERSION_VARIABLE=y
-# CONFIG_CMDLINE_EDITING is not set
-# CONFIG_AUTO_COMPLETE is not set
-# CONFIG_AUTOBOOT is not set
-# CONFIG_CMD_BDI is not set
-# CONFIG_CMD_CONSOLE is not set
-# CONFIG_CMD_BOOTD is not set
-# CONFIG_CMD_RUN is not set
-# CONFIG_CMD_IMI is not set
-# CONFIG_CMD_XIMG is not set
-# CONFIG_CMD_EDITENV is not set
-# CONFIG_CMD_ENV_EXISTS is not set
-# CONFIG_CMD_LOADB is not set
-# CONFIG_CMD_LOADS is not set
-# CONFIG_CMD_ECHO is not set
-# CONFIG_CMD_ITEST is not set
-# CONFIG_CMD_SOURCE is not set
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_CACHE=y
-# CONFIG_CMD_MISC is not set
-# CONFIG_NET is not set
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_CFI=y
-CONFIG_SCIF_CONSOLE=y
-CONFIG_USE_PRIVATE_LIBGCC=y
include/configs/mpr2.h deleted +0 -55

55 lines not on this page · raw message

Signature · 1 line
2.20.1
#9 lore raw

PATCH 9/12 sh: mpr2: Remove the board

Hi Marek,

Quoted 23 lines

Betreff: [PATCH 09/12] sh: mpr2: Remove the board

Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it.

Cc Chris Brandt <[email protected]>
Cc Mark Jonas <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/sh/Kconfig            |   5 --
 board/mpr2/Kconfig         |   9 ---
 board/mpr2/MAINTAINERS     |   6 --
 board/mpr2/Makefile        |  19 -----
 board/mpr2/lowlevel_init.S | 117 -------------------------------
 board/mpr2/mpr2.c          | 137 -------------------------------------
 configs/mpr2_defconfig     |  31 ---------
 include/configs/mpr2.h     |  55 ---------------
 8 files changed, 379 deletions(-)
 delete mode 100644 board/mpr2/Kconfig
 delete mode 100644 board/mpr2/MAINTAINERS  delete mode 100644
Quoted 3 lines

board/mpr2/Makefile delete mode 100644 board/mpr2/lowlevel_init.S delete mode 100644 board/mpr2/mpr2.c delete mode 100644 configs/mpr2_defconfig delete mode 100644 include/configs/mpr2.h

Sad but true: U-Boot is not supported on this board anymore.

Greetings,
Mark

#10 lore raw

PATCH 9/12 sh: mpr2: Remove the board

Quoted 1 line · On 5/13/19 2:31 PM, Jonas Mark (BT-FIR/ENG1) wrote:

Hi Marek,

Hi,

Quoted 27 lines
Quoted 23 lines

Betreff: [PATCH 09/12] sh: mpr2: Remove the board

Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it.

Cc Chris Brandt <[email protected]>
Cc Mark Jonas <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/sh/Kconfig            |   5 --
 board/mpr2/Kconfig         |   9 ---
 board/mpr2/MAINTAINERS     |   6 --
 board/mpr2/Makefile        |  19 -----
 board/mpr2/lowlevel_init.S | 117 -------------------------------
 board/mpr2/mpr2.c          | 137 -------------------------------------
 configs/mpr2_defconfig     |  31 ---------
 include/configs/mpr2.h     |  55 ---------------
 8 files changed, 379 deletions(-)
 delete mode 100644 board/mpr2/Kconfig
 delete mode 100644 board/mpr2/MAINTAINERS  delete mode 100644
Quoted 3 lines

board/mpr2/Makefile delete mode 100644 board/mpr2/lowlevel_init.S delete mode 100644 board/mpr2/mpr2.c delete mode 100644 configs/mpr2_defconfig delete mode 100644 include/configs/mpr2.h

Quoted 1 line

Sad but true: U-Boot is not supported on this board anymore.

Oh well, I'll try to keep at least SH4 alive :)

Quoted 1 line

Thanks!

Signature · 2 lines
Best regards,
Marek Vasut
#11 lore raw

PATCH 10/12 sh: ms7720se: Remove the board

In reply to Marek Vasut

Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/sh/Kconfig                |   5 -
 board/ms7720se/Kconfig         |   9 --
 board/ms7720se/MAINTAINERS     |   6 --
 board/ms7720se/Makefile        |  16 ---
 board/ms7720se/lowlevel_init.S | 184 ---------------------------------
 board/ms7720se/ms7720se.c      |  35 -------
 configs/ms7720se_defconfig     |  36 -------
 include/configs/ms7720se.h     |  82 ---------------
 8 files changed, 373 deletions(-)
 delete mode 100644 board/ms7720se/Kconfig
 delete mode 100644 board/ms7720se/MAINTAINERS
 delete mode 100644 board/ms7720se/Makefile
 delete mode 100644 board/ms7720se/lowlevel_init.S
 delete mode 100644 board/ms7720se/ms7720se.c
 delete mode 100644 configs/ms7720se_defconfig
 delete mode 100644 include/configs/ms7720se.h
arch/sh/Kconfig +0 -5
index ea48ecb9a1..4054dd8eea 100644
@@ -24,10 +24,6 @@ choice
 	prompt "Target select"
 	optional
 
-config TARGET_MS7720SE
-	bool "Support ms7720se"
-	select CPU_SH3
-
 config TARGET_SHMIN
 	bool "SHMIN"
 	select CPU_SH3
@@ -97,7 +93,6 @@ source "arch/sh/lib/Kconfig"
 
 source "board/alphaproject/ap_sh4a_4a/Kconfig"
 source "board/espt/Kconfig"
-source "board/ms7720se/Kconfig"
 source "board/ms7722se/Kconfig"
 source "board/ms7750se/Kconfig"
 source "board/renesas/MigoR/Kconfig"
board/ms7720se/Kconfig deleted +0 -9
deleted file mode 100644
index 83313279b3..0000000000
@@ -1,9 +0,0 @@
-if TARGET_MS7720SE
-
-config SYS_BOARD
-	default "ms7720se"
-
-config SYS_CONFIG_NAME
-	default "ms7720se"
-
-endif
board/ms7720se/MAINTAINERS deleted +0 -6
deleted file mode 100644
index 96a80f4e31..0000000000
@@ -1,6 +0,0 @@
-MS7720SE BOARD
-M:	Yoshihiro Shimoda <[email protected]>
-S:	Maintained
-F:	board/ms7720se/
-F:	include/configs/ms7720se.h
-F:	configs/ms7720se_defconfig
board/ms7720se/Makefile deleted +0 -16
deleted file mode 100644
index d3a8e19d0b..0000000000
@@ -1,16 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2007
-# Yoshihiro Shimoda <[email protected]>
-#
-# Copyright (C) 2007
-# Nobuhiro Iwamatsu <[email protected]>
-#
-# Copyright (C) 2007
-# Kenati Technologies, Inc.
-#
-# board/ms7720se/Makefile
-#
-
-obj-y	:= ms7720se.o
-extra-y	+= lowlevel_init.o
board/ms7720se/lowlevel_init.S deleted +0 -184

184 lines not on this page · raw message

board/ms7720se/ms7720se.c deleted +0 -35
deleted file mode 100644
index a35f72e83b..0000000000
@@ -1,35 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (C) 2007
- * Yoshihiro Shimoda <[email protected]>
- *
- * Copyright (C) 2007
- * Nobuhiro Iwamatsu <[email protected]>
- *
- * Copyright (C) 2007
- * Kenati Technologies, Inc.
- *
- * board/ms7720se/ms7720se.c
- */
-
-#include <common.h>
-#include <asm/io.h>
-#include <asm/processor.h>
-
-#define LED_BASE	0xB0800000
-
-int checkboard(void)
-{
-	puts("BOARD: Hitachi UL MS7720SE\n");
-	return 0;
-}
-
-int board_init(void)
-{
-	return 0;
-}
-
-void led_set_state(unsigned short value)
-{
-	outw(value & 0xFF, LED_BASE);
-}
configs/ms7720se_defconfig deleted +0 -36
deleted file mode 100644
index 1e580f5cd0..0000000000
@@ -1,36 +0,0 @@
-CONFIG_SH=y
-CONFIG_SYS_TEXT_BASE=0x8FFC0000
-CONFIG_TARGET_MS7720SE=y
-CONFIG_USE_BOOTARGS=y
-CONFIG_BOOTARGS="console=ttySC0,115200"
-CONFIG_VERSION_VARIABLE=y
-# CONFIG_CMDLINE_EDITING is not set
-# CONFIG_AUTO_COMPLETE is not set
-# CONFIG_AUTOBOOT is not set
-# CONFIG_CMD_BDI is not set
-# CONFIG_CMD_CONSOLE is not set
-# CONFIG_CMD_BOOTD is not set
-# CONFIG_CMD_RUN is not set
-# CONFIG_CMD_IMI is not set
-# CONFIG_CMD_XIMG is not set
-# CONFIG_CMD_EDITENV is not set
-# CONFIG_CMD_ENV_EXISTS is not set
-CONFIG_CMD_IDE=y
-# CONFIG_CMD_LOADB is not set
-# CONFIG_CMD_LOADS is not set
-CONFIG_CMD_PCMCIA=y
-CONFIG_CMD_SDRAM=y
-# CONFIG_CMD_ECHO is not set
-# CONFIG_CMD_ITEST is not set
-# CONFIG_CMD_SOURCE is not set
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_CACHE=y
-# CONFIG_CMD_MISC is not set
-CONFIG_CMD_EXT2=y
-CONFIG_DOS_PARTITION=y
-# CONFIG_NET is not set
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_CFI=y
-CONFIG_SCIF_CONSOLE=y
-CONFIG_USE_PRIVATE_LIBGCC=y
include/configs/ms7720se.h deleted +0 -82

82 lines not on this page · raw message

Signature · 1 line
2.20.1
#12 lore raw

PATCH 11/12 sh: shmin: Remove the board

In reply to Marek Vasut

Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/sh/Kconfig             |  5 ---
 board/shmin/Kconfig         |  9 ----
 board/shmin/MAINTAINERS     |  7 ---
 board/shmin/Makefile        | 10 -----
 board/shmin/lowlevel_init.S | 21 ---------
 board/shmin/shmin.c         | 90 -------------------------------------
 configs/shmin_defconfig     | 31 -------------
 include/configs/shmin.h     | 85 -----------------------------------
 8 files changed, 258 deletions(-)
 delete mode 100644 board/shmin/Kconfig
 delete mode 100644 board/shmin/MAINTAINERS
 delete mode 100644 board/shmin/Makefile
 delete mode 100644 board/shmin/lowlevel_init.S
 delete mode 100644 board/shmin/shmin.c
 delete mode 100644 configs/shmin_defconfig
 delete mode 100644 include/configs/shmin.h
arch/sh/Kconfig +0 -5
index 4054dd8eea..60589b3cef 100644
@@ -24,10 +24,6 @@ choice
 	prompt "Target select"
 	optional
 
-config TARGET_SHMIN
-	bool "SHMIN"
-	select CPU_SH3
-
 config TARGET_ESPT
 	bool "Data Technology ESPT-GIGA board"
 	select CPU_SH4
@@ -104,6 +100,5 @@ source "board/renesas/sh7752evb/Kconfig"
 source "board/renesas/sh7753evb/Kconfig"
 source "board/renesas/sh7757lcr/Kconfig"
 source "board/renesas/sh7763rdp/Kconfig"
-source "board/shmin/Kconfig"
 
 endmenu
board/shmin/Kconfig deleted +0 -9
deleted file mode 100644
index 467580c67b..0000000000
@@ -1,9 +0,0 @@
-if TARGET_SHMIN
-
-config SYS_BOARD
-	default "shmin"
-
-config SYS_CONFIG_NAME
-	default "shmin"
-
-endif
board/shmin/MAINTAINERS deleted +0 -7
deleted file mode 100644
index 5dee37bdf7..0000000000
@@ -1,7 +0,0 @@
-SHMIN BOARD
-M:	Nobuhiro Iwamatsu <[email protected]>
-M:	Nobuhiro Iwamatsu <[email protected]>
-S:	Maintained
-F:	board/shmin/
-F:	include/configs/shmin.h
-F:	configs/shmin_defconfig
board/shmin/Makefile deleted +0 -10
deleted file mode 100644
index 697fc20fa4..0000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2010 Nobuhiro Iwamatsu
-# Copyright (C) 2008 Renesas Solutions Corp.
-#
-# u-boot/board/shmin/Makefile
-#
-
-obj-y	:= shmin.o
-extra-y	+= lowlevel_init.o
board/shmin/lowlevel_init.S deleted +0 -21
deleted file mode 100644
index e4b6ae0b13..0000000000
@@ -1,21 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2008, 2010 Nobuhiro Iwamatsu <[email protected]>
- */
-
-#include <config.h>
-
-#include <asm/processor.h>
-#include <asm/macro.h>
-
-
-	.global	lowlevel_init
-
-	.text
-	.align	2
-
-lowlevel_init:
-	/* Use setting of original bootloader */
-	rts
-	nop
-	.align 2
board/shmin/shmin.c deleted +0 -90

90 lines not on this page · raw message

configs/shmin_defconfig deleted +0 -31
deleted file mode 100644
index 4686e67efd..0000000000
@@ -1,31 +0,0 @@
-CONFIG_SH=y
-CONFIG_SYS_TEXT_BASE=0x8DFB0000
-CONFIG_TARGET_SHMIN=y
-CONFIG_USE_BOOTARGS=y
-CONFIG_BOOTARGS="console=ttySC0,115200"
-CONFIG_VERSION_VARIABLE=y
-# CONFIG_CMDLINE_EDITING is not set
-# CONFIG_AUTO_COMPLETE is not set
-# CONFIG_AUTOBOOT is not set
-# CONFIG_CMD_BDI is not set
-# CONFIG_CMD_CONSOLE is not set
-# CONFIG_CMD_BOOTD is not set
-# CONFIG_CMD_RUN is not set
-# CONFIG_CMD_IMI is not set
-# CONFIG_CMD_XIMG is not set
-# CONFIG_CMD_EDITENV is not set
-# CONFIG_CMD_ENV_EXISTS is not set
-# CONFIG_CMD_LOADB is not set
-# CONFIG_CMD_LOADS is not set
-CONFIG_CMD_SDRAM=y
-# CONFIG_CMD_ECHO is not set
-# CONFIG_CMD_ITEST is not set
-# CONFIG_CMD_SOURCE is not set
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_PING=y
-# CONFIG_CMD_MISC is not set
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_CFI=y
-CONFIG_SCIF_CONSOLE=y
-CONFIG_USE_PRIVATE_LIBGCC=y
include/configs/shmin.h deleted +0 -85

85 lines not on this page · raw message

Signature · 1 line
2.20.1
#13 lore raw

PATCH 12/12 sh: sh3: Remove CPU support

In reply to Marek Vasut

This CPU core is old, no boards using the CPU are left in mainline, it has no prospects of ever being converted to DM, drop it.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/sh/Kconfig                  |   4 -
 arch/sh/cpu/sh3/Makefile         |  12 --
 arch/sh/cpu/sh3/config.mk        |  12 --
 arch/sh/cpu/sh3/cpu.c            |  67 ----------
 arch/sh/cpu/sh3/interrupts.c     |  25 ----
 arch/sh/cpu/sh3/watchdog.c       |  26 ----
 arch/sh/include/asm/cpu_sh3.h    |  30 -----
 arch/sh/include/asm/cpu_sh7706.h |  50 --------
 arch/sh/include/asm/cpu_sh7710.h |  61 ---------
 arch/sh/include/asm/cpu_sh7720.h | 206 -------------------------------
 arch/sh/include/asm/processor.h  |   4 -
 arch/sh/lib/Makefile             |   1 -
 arch/sh/lib/time.c               |   5 -
 doc/README.sh                    |   8 +-
 drivers/serial/serial_sh.h       |  75 ++---------
 scripts/config_whitelist.txt     |   4 -
 16 files changed, 9 insertions(+), 581 deletions(-)
 delete mode 100644 arch/sh/cpu/sh3/Makefile
 delete mode 100644 arch/sh/cpu/sh3/config.mk
 delete mode 100644 arch/sh/cpu/sh3/cpu.c
 delete mode 100644 arch/sh/cpu/sh3/interrupts.c
 delete mode 100644 arch/sh/cpu/sh3/watchdog.c
 delete mode 100644 arch/sh/include/asm/cpu_sh3.h
 delete mode 100644 arch/sh/include/asm/cpu_sh7706.h
 delete mode 100644 arch/sh/include/asm/cpu_sh7710.h
 delete mode 100644 arch/sh/include/asm/cpu_sh7720.h
arch/sh/Kconfig +0 -4
index 60589b3cef..0ce74cf24a 100644
@@ -1,9 +1,6 @@
 menu "SuperH architecture"
 	depends on SH
 
-config CPU_SH3
-	bool
-
 config CPU_SH4
 	bool
 
@@ -82,7 +79,6 @@ config SYS_ARCH
 	default "sh"
 
 config SYS_CPU
-	default "sh3" if CPU_SH3
 	default "sh4" if CPU_SH4
 
 source "arch/sh/lib/Kconfig"
arch/sh/cpu/sh3/Makefile deleted +0 -12
deleted file mode 100644
index 24aca92890..0000000000
@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-#
-# (C) Copyright 2007
-# Nobuhiro Iwamatsu <[email protected]>
-#
-# (C) Copyright 2007
-# Yoshihiro Shimoda <[email protected]>
-
-obj-y	= cpu.o interrupts.o watchdog.o
arch/sh/cpu/sh3/config.mk deleted +0 -12
deleted file mode 100644
index e13ee129da..0000000000
@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2004
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-#
-# (C) Copyright 2007
-# Nobuhiro Iwamatsu <[email protected]>
-#
-# (C) Copyright 2007
-# Yoshihiro Shimoda <[email protected]>
-#
-PLATFORM_CPPFLAGS += -m3
arch/sh/cpu/sh3/cpu.c deleted +0 -67

67 lines not on this page · raw message

arch/sh/cpu/sh3/interrupts.c deleted +0 -25
deleted file mode 100644
index 144505a674..0000000000
@@ -1,25 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2007
- * Yoshihiro Shimoda <[email protected]>
- *
- * (C) Copyright 2007
- * Nobuhiro Iwamatsu <[email protected]>
- */
-
-#include <common.h>
-
-int interrupt_init(void)
-{
-	return 0;
-}
-
-void enable_interrupts(void)
-{
-
-}
-
-int disable_interrupts(void)
-{
-	return 0;
-}
arch/sh/cpu/sh3/watchdog.c deleted +0 -26
deleted file mode 100644
index 40bb33e48e..0000000000
@@ -1,26 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2010
- * Nobuhiro Iwamatsu <[email protected]>
- *
- * (C) Copyright 2007
- * Yoshihiro Shimoda <[email protected]>
- */
-
-#include <common.h>
-#include <asm/processor.h>
-#include <asm/system.h>
-
-int watchdog_init(void)
-{
-	return 0;
-}
-
-void reset_cpu(unsigned long ignored)
-{
-	/* Address error with SR.BL=1 first. */
-	trigger_address_error();
-
-	while (1)
-		;
-}
arch/sh/include/asm/cpu_sh3.h deleted +0 -30
deleted file mode 100644
index a5d3ff7b60..0000000000
@@ -1,30 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2007-2009 Nobuhiro Iwamatsu <[email protected]>
- * (C) Copyright 2007 Yoshihiro Shimoda <[email protected]>
- */
-
-#ifndef _ASM_CPU_SH3_H_
-#define _ASM_CPU_SH3_H_
-
-/* cache control */
-#define CCR_CACHE_STOP   0x00000008
-#define CCR_CACHE_ENABLE 0x00000005
-#define CCR_CACHE_ICI    0x00000008
-
-#define CACHE_OC_ADDRESS_ARRAY	0xf0000000
-#define CACHE_OC_WAY_SHIFT	13
-#define CACHE_OC_NUM_ENTRIES	256
-#define CACHE_OC_ENTRY_SHIFT	4
-
-#if defined(CONFIG_CPU_SH7706)
-#include <asm/cpu_sh7706.h>
-#elif defined(CONFIG_CPU_SH7710)
-#include <asm/cpu_sh7710.h>
-#elif defined(CONFIG_CPU_SH7720)
-#include <asm/cpu_sh7720.h>
-#else
-#error "Unknown SH3 variant"
-#endif
-
-#endif	/* _ASM_CPU_SH3_H_ */
arch/sh/include/asm/cpu_sh7706.h deleted +0 -50

50 lines not on this page · raw message

arch/sh/include/asm/cpu_sh7710.h deleted +0 -61

61 lines not on this page · raw message

arch/sh/include/asm/cpu_sh7720.h deleted +0 -206

206 lines not on this page · raw message

arch/sh/include/asm/processor.h +0 -4
index bdc1da6295..09de94a2e2 100644
@@ -1,8 +1,4 @@
 #ifndef _ASM_SH_PROCESSOR_H_
 #define _ASM_SH_PROCESSOR_H_
-#if defined(CONFIG_CPU_SH3)
-# include <asm/cpu_sh3.h>
-#elif defined(CONFIG_CPU_SH4)
 # include <asm/cpu_sh4.h>
 #endif
-#endif
arch/sh/lib/Makefile +0 -1
index fbc4cc9d7f..9618da1cb3 100644
@@ -13,7 +13,6 @@ obj-$(CONFIG_CMD_SH_ZIMAGEBOOT) += zimageboot.o
 udivsi3-y			:= udivsi3_i4i-Os.o
 
 ifneq ($(CONFIG_CC_OPTIMIZE_FOR_SIZE),y)
-udivsi3-$(CONFIG_CPU_SH3)	:= udivsi3_i4i.o
 udivsi3-$(CONFIG_CPU_SH4)	:= udivsi3_i4i.o
 endif
 udivsi3-y			+= udivsi3.o
arch/sh/lib/time.c +0 -5
index fb317f95d5..51e1cc1181 100644
@@ -14,11 +14,6 @@
 #include <asm/processor.h>
 #include <asm/io.h>
 
-#if defined(CONFIG_CPU_SH3)
-#define TSTR	0x2
-#define TCR0	0xc
-#endif /* CONFIG_CPU_SH3 */
-
 #if defined(CONFIG_CPU_SH4) || defined(CONFIG_ARCH_RMOBILE)
 #define TSTR	0x4
 #define TCR0	0x10
doc/README.sh +1 -7
index 667c7974e5..766a8c8a29 100644
@@ -23,13 +23,7 @@ U-Boot for Renesas SuperH
 	2.2. Renesas SH7722
 		This CPU has the SH4AL-DSP core.
 
-	2.3. Renesas SH7720
-		This CPU has the SH3 core.
-
-	2.4. Renesas SH7710/SH7712
-		This CPU has the SH3-DSP core and Ethernet controller.
-
-	2.5. Renesas SH7780
+	2.3. Renesas SH7780
 		This CPU has the SH4A core.
 
 ================================================================================
drivers/serial/serial_sh.h +8 -67

124 lines not on this page · raw message

scripts/config_whitelist.txt +0 -4
index aadb9de88b..ad5aaeb136 100644
@@ -270,8 +270,6 @@ CONFIG_CPU_PXA26X
 CONFIG_CPU_PXA27X
 CONFIG_CPU_PXA300
 CONFIG_CPU_R8000
-CONFIG_CPU_SH7706
-CONFIG_CPU_SH7720
 CONFIG_CPU_SH7722
 CONFIG_CPU_SH7723
 CONFIG_CPU_SH7734
@@ -4418,7 +4416,6 @@ CONFIG_TWR
 CONFIG_TWR_P1025
 CONFIG_TX_DESCR_NUM
 CONFIG_TZSW_RESERVED_DRAM_SIZE
-CONFIG_T_SH7706LSR
 CONFIG_UART_BR_PRELIM
 CONFIG_UART_OR_PRELIM
 CONFIG_UBIBLOCK
@@ -4517,7 +4514,6 @@ CONFIG_USB_GADGET_OMAP
 CONFIG_USB_GADGET_PXA27X
 CONFIG_USB_GADGET_PXA2XX
 CONFIG_USB_GADGET_SA1100
-CONFIG_USB_GADGET_SUPERH
 CONFIG_USB_INVENTRA_DMA
 CONFIG_USB_ISP1301_I2C_ADDR
 CONFIG_USB_MAX_CONTROLLER_COUNT
Signature · 1 line
2.20.1