Skip to contentSkip to conversation

arm: bcm235xx: Remove this SoC

PATCH In review Tom Rini 1 participant 2 messages Jul 18, 2025 – Aug 11, 2025 Arm (32-bit)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 arm: bcm235xx: Remove this SoC

As there are no platforms for this SoC, remove the code.

---
 arch/arm/cpu/armv7/Makefile                 |   1 -
 arch/arm/cpu/armv7/bcm235xx/Makefile        |  10 -
 arch/arm/cpu/armv7/bcm235xx/clk-bcm235xx.c  | 567 --------------------
 arch/arm/cpu/armv7/bcm235xx/clk-bsc.c       |  50 --
 arch/arm/cpu/armv7/bcm235xx/clk-core.c      | 512 ------------------
 arch/arm/cpu/armv7/bcm235xx/clk-core.h      | 491 -----------------
 arch/arm/cpu/armv7/bcm235xx/clk-eth.c       | 142 -----
 arch/arm/cpu/armv7/bcm235xx/clk-sdio.c      |  71 ---
 arch/arm/cpu/armv7/bcm235xx/clk-usb-otg.c   |  25 -
 arch/arm/include/asm/arch-bcm235xx/boot0.h  |  10 -
 arch/arm/include/asm/arch-bcm235xx/gpio.h   |  14 -
 arch/arm/include/asm/arch-bcm235xx/sysmap.h |  30 --
 12 files changed, 1923 deletions(-)
 delete mode 100644 arch/arm/cpu/armv7/bcm235xx/Makefile
 delete mode 100644 arch/arm/cpu/armv7/bcm235xx/clk-bcm235xx.c
 delete mode 100644 arch/arm/cpu/armv7/bcm235xx/clk-bsc.c
 delete mode 100644 arch/arm/cpu/armv7/bcm235xx/clk-core.c
 delete mode 100644 arch/arm/cpu/armv7/bcm235xx/clk-core.h
 delete mode 100644 arch/arm/cpu/armv7/bcm235xx/clk-eth.c
 delete mode 100644 arch/arm/cpu/armv7/bcm235xx/clk-sdio.c
 delete mode 100644 arch/arm/cpu/armv7/bcm235xx/clk-usb-otg.c
 delete mode 100644 arch/arm/include/asm/arch-bcm235xx/boot0.h
 delete mode 100644 arch/arm/include/asm/arch-bcm235xx/gpio.h
 delete mode 100644 arch/arm/include/asm/arch-bcm235xx/sysmap.h
arch/arm/cpu/armv7/Makefile +0 -1
index 318a71f24b1d..e3415cfd1d18 100644
@@ -32,7 +32,6 @@ ifneq (,$(filter s5pc1xx exynos,$(SOC)))
 obj-y += s5p-common/
 endif
 
-obj-$(if $(filter bcm235xx,$(SOC)),y) += bcm235xx/
 obj-$(if $(filter bcm281xx,$(SOC)),y) += bcm281xx/
 obj-$(if $(filter bcmcygnus,$(SOC)),y) += bcmcygnus/
 obj-$(if $(filter bcmnsp,$(SOC)),y) += bcmnsp/
arch/arm/cpu/armv7/bcm235xx/Makefile deleted +0 -10
deleted file mode 100644
index 3d09126cabe0..000000000000
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright 2013 Broadcom Corporation.
-
-obj-y	+= clk-core.o
-obj-y	+= clk-bcm235xx.o
-obj-y	+= clk-sdio.o
-obj-y	+= clk-bsc.o
-obj-$(CONFIG_BCM_SF2_ETH) += clk-eth.o
-obj-y	+= clk-usb-otg.o
arch/arm/cpu/armv7/bcm235xx/clk-bcm235xx.c deleted +0 -567

567 lines not on this page · raw message

arch/arm/cpu/armv7/bcm235xx/clk-bsc.c deleted +0 -50

50 lines not on this page · raw message

arch/arm/cpu/armv7/bcm235xx/clk-core.c deleted +0 -512

512 lines not on this page · raw message

arch/arm/cpu/armv7/bcm235xx/clk-core.h deleted +0 -491

491 lines not on this page · raw message

arch/arm/cpu/armv7/bcm235xx/clk-eth.c deleted +0 -142

142 lines not on this page · raw message

arch/arm/cpu/armv7/bcm235xx/clk-sdio.c deleted +0 -71

71 lines not on this page · raw message

arch/arm/cpu/armv7/bcm235xx/clk-usb-otg.c deleted +0 -25
deleted file mode 100644
index 87918059408c..000000000000
@@ -1,25 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2014 Broadcom Corporation.
- */
-
-#include <linux/errno.h>
-#include <asm/arch/sysmap.h>
-#include "clk-core.h"
-
-/* Enable appropriate clocks for the USB OTG port */
-int clk_usb_otg_enable(void *base)
-{
-	char *ahbstr;
-
-	switch ((u32) base) {
-	case HSOTG_BASE_ADDR:
-		ahbstr = "usb_otg_ahb_clk";
-		break;
-	default:
-		printf("%s: base 0x%p not found\n", __func__, base);
-		return -EINVAL;
-	}
-
-	return clk_get_and_enable(ahbstr);
-}
arch/arm/include/asm/arch-bcm235xx/boot0.h deleted +0 -10
deleted file mode 100644
index 8cde42b89bbb..000000000000
@@ -1,10 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright 2016 Broadcom Corporation.
- */
-
-/* BOOT0 header information */
-_start:
-	ARM_VECTORS
-	.word	0xbabeface
-	.word	_end - _start
arch/arm/include/asm/arch-bcm235xx/gpio.h deleted +0 -14
deleted file mode 100644
index 82c12bb70c2b..000000000000
@@ -1,14 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright 2013 Broadcom Corporation.
- */
-
-#ifndef __ARCH_BCM235XX_GPIO_H
-#define __ARCH_BCM235XX_GPIO_H
-
-/*
- * Empty file - cmd_gpio.c requires this. The implementation
- * is in drivers/gpio/kona_gpio.c instead of inlined here.
- */
-
-#endif
arch/arm/include/asm/arch-bcm235xx/sysmap.h deleted +0 -30
deleted file mode 100644
index ff6debc677c0..000000000000
@@ -1,30 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright 2013 Broadcom Corporation.
- */
-
-#ifndef __ARCH_BCM235XX_SYSMAP_H
-
-#define BSC1_BASE_ADDR		0x3e016000
-#define BSC2_BASE_ADDR		0x3e017000
-#define BSC3_BASE_ADDR		0x3e018000
-#define GPIO2_BASE_ADDR		0x35003000
-#define HSOTG_BASE_ADDR		0x3f120000
-#define HSOTG_CTRL_BASE_ADDR	0x3f130000
-#define KONA_MST_CLK_BASE_ADDR	0x3f001000
-#define KONA_SLV_CLK_BASE_ADDR	0x3e011000
-#define PMU_BSC_BASE_ADDR	0x3500d000
-#define SDIO1_BASE_ADDR		0x3f180000
-#define SDIO2_BASE_ADDR		0x3f190000
-#define SDIO3_BASE_ADDR		0x3f1a0000
-#define SDIO4_BASE_ADDR		0x3f1b0000
-#define TIMER_BASE_ADDR		0x3e00d000
-
-#define HSOTG_DCTL_OFFSET					0x00000804
-#define    HSOTG_DCTL_SFTDISCON_MASK				0x00000002
-
-#define HSOTG_CTRL_PHY_P1CTL_OFFSET				0x00000008
-#define    HSOTG_CTRL_PHY_P1CTL_SOFT_RESET_MASK			0x00000002
-#define    HSOTG_CTRL_PHY_P1CTL_NON_DRIVING_MASK		0x00000001
-
-#endif
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 3 lines · Tom Rini

As there are no platforms for this SoC, remove the code.

Applied to u-boot/next, thanks!

[1/1] arm: bcm235xx: Remove this SoC

      commit: 26f857f1e37ccb7dfb93d55650ce35b179ed220f
Signature · 1 line
Tom