Skip to content

Commit

Permalink
kconfig: Just use ARCH_BCM2835 for depends on
Browse files Browse the repository at this point in the history
ARCH_BCM2708 and ARCH_BCM2709 selects ARCH_BCM2835 now, so the
dependencies can be simplified.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
  • Loading branch information
notro authored and popcornmix committed Nov 27, 2016
1 parent 1ee9a73 commit c83b999
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 28 deletions.
10 changes: 4 additions & 6 deletions arch/arm/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ choice

config DEBUG_BCM2835
bool "Kernel low-level debugging on BCM2835 PL011 UART"
depends on (ARCH_BCM2835 && ARCH_MULTI_V6) || ARCH_BCM2708
depends on ARCH_BCM2835 && ARCH_MULTI_V6
select DEBUG_UART_PL01X

config DEBUG_BCM2836
bool "Kernel low-level debugging on BCM2836 PL011 UART"
depends on (ARCH_BCM2835 && ARCH_MULTI_V7) || ARCH_BCM2709
depends on ARCH_BCM2835 && ARCH_MULTI_V7
select DEBUG_UART_PL01X

config DEBUG_BCM_5301X
Expand Down Expand Up @@ -1695,8 +1695,7 @@ config DEBUG_UART_8250_FLOW_CONTROL

config DEBUG_UNCOMPRESS
bool
depends on ARCH_MULTIPLATFORM || PLAT_SAMSUNG || ARM_SINGLE_ARMV7M || \
ARCH_BCM2708 || ARCH_BCM2709
depends on ARCH_MULTIPLATFORM || PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \
(!DEBUG_TEGRA_UART || !ZBOOT_ROM)
help
Expand All @@ -1713,8 +1712,7 @@ config DEBUG_UNCOMPRESS
config UNCOMPRESS_INCLUDE
string
default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM || \
PLAT_SAMSUNG || ARM_SINGLE_ARMV7M || \
ARCH_BCM2708 || ARCH_BCM2709
PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
default "mach/uncompress.h"

config EARLY_PRINTK
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/broadcom/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ config BCM2835_DEVGPIOMEM

config BCM2835_SMI_DEV
tristate "Character device driver for BCM2835 Secondary Memory Interface"
depends on (MACH_BCM2708 || MACH_BCM2709 || ARCH_BCM2835) && BCM2835_SMI
depends on BCM2835_SMI
default m
help
This driver provides a character device interface (ioctl + read/write) to
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/hw_random/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ config HW_RANDOM_BCM63XX

config HW_RANDOM_BCM2835
tristate "Broadcom BCM2835 Random Number Generator support"
depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709 || ARCH_BCM_NSP || ARCH_BCM_5301X
depends on ARCH_BCM2835 || ARCH_BCM_NSP || ARCH_BCM_5301X
default HW_RANDOM
---help---
This driver provides kernel-side support for the Random Number
Expand Down
2 changes: 1 addition & 1 deletion drivers/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ config COH901318

config DMA_BCM2835
tristate "BCM2835 DMA engine support"
depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709
depends on ARCH_BCM2835
select DMA_ENGINE
select DMA_VIRTUAL_CHANNELS

Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ config GPIO_BCM_KONA

config GPIO_BCM_VIRT
bool "Broadcom Virt GPIO"
depends on OF_GPIO && RASPBERRYPI_FIRMWARE && (ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709 || COMPILE_TEST)
depends on OF_GPIO && RASPBERRYPI_FIRMWARE && (ARCH_BCM2835 || COMPILE_TEST)
help
Turn on virtual GPIO support for Broadcom BCM283X chips.

Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vc4/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config DRM_VC4
tristate "Broadcom VC4 Graphics"
depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709 || COMPILE_TEST
depends on ARCH_BCM2835 || COMPILE_TEST
depends on DRM
select DRM_KMS_HELPER
select DRM_KMS_CMA_HELPER
Expand Down
4 changes: 2 additions & 2 deletions drivers/i2c/busses/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ comment "PC SMBus host controller drivers"

config I2C_BCM2708
tristate "BCM2708 BSC"
depends on MACH_BCM2708 || MACH_BCM2709 || ARCH_BCM2835
depends on ARCH_BCM2835
help
Enabling this option will add BSC (Broadcom Serial Controller)
support for the BCM2708. BSC is a Broadcom proprietary bus compatible
Expand Down Expand Up @@ -385,7 +385,7 @@ config I2C_AXXIA

config I2C_BCM2835
tristate "Broadcom BCM2835 I2C controller"
depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709
depends on ARCH_BCM2835
help
If you say yes to this option, support will be included for the
BCM2835 I2C controller.
Expand Down
2 changes: 1 addition & 1 deletion drivers/mailbox/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ config ALTERA_MBOX

config BCM2835_MBOX
tristate "BCM2835 Mailbox"
depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709
depends on ARCH_BCM2835
help
An implementation of the BCM2385 Mailbox. It is used to invoke
the services of the Videocore. Say Y here if you want to use the
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/platform/bcm2835/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

config VIDEO_BCM2835
bool "Broadcom BCM2835 camera interface driver"
depends on VIDEO_V4L2 && (ARCH_BCM2708 || ARCH_BCM2709 || ARCH_BCM2835)
depends on VIDEO_V4L2 && ARCH_BCM2835
---help---
Say Y here to enable camera host interface devices for
Broadcom BCM2835 SoC. This operates over the VCHIQ interface
Expand Down
2 changes: 1 addition & 1 deletion drivers/misc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ config SENSORS_LIS3LV02D

config BCM2835_SMI
tristate "Broadcom 283x Secondary Memory Interface driver"
depends on MACH_BCM2708 || MACH_BCM2709 || ARCH_BCM2835
depends on ARCH_BCM2835
default m
help
Driver for enabling and using Broadcom's Secondary/Slow Memory Interface.
Expand Down
4 changes: 2 additions & 2 deletions drivers/mmc/host/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ comment "MMC/SD/SDIO Host Controller Drivers"

config MMC_BCM2835
tristate "MMC support on BCM2835"
depends on MACH_BCM2708 || MACH_BCM2709 || ARCH_BCM2835
depends on ARCH_BCM2835
help
This selects the MMC Interface on BCM2835.

Expand Down Expand Up @@ -35,7 +35,7 @@ config MMC_BCM2835_PIO_DMA_BARRIER

config MMC_BCM2835_SDHOST
tristate "Support for the SDHost controller on BCM2708/9"
depends on MACH_BCM2708 || MACH_BCM2709 || ARCH_BCM2835
depends on ARCH_BCM2835
help
This selects the SDHost controller on BCM2835/6.

Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ config MTD_SM_COMMON

config MTD_NAND_BCM2835_SMI
tristate "Use Broadcom's Secondary Memory Interface as a NAND controller (BCM283x)"
depends on (MACH_BCM2708 || MACH_BCM2709 || ARCH_BCM2835) && BCM2835_SMI && MTD_NAND
depends on BCM2835_SMI
default m
help
Uses the BCM2835's SMI peripheral as a NAND controller.
Expand Down
2 changes: 1 addition & 1 deletion drivers/pwm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ config PWM_BCM_KONA

config PWM_BCM2835
tristate "BCM2835 PWM support"
depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709
depends on ARCH_BCM2835
help
PWM framework driver for BCM2835 controller (Raspberry Pi)

Expand Down
2 changes: 1 addition & 1 deletion drivers/soc/bcm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ menu "Broadcom SoC drivers"

config RASPBERRYPI_POWER
bool "Raspberry Pi power domain driver"
depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709 || (COMPILE_TEST && OF)
depends on ARCH_BCM2835 || (COMPILE_TEST && OF)
depends on RASPBERRYPI_FIRMWARE=y
select PM_GENERIC_DOMAINS if PM
help
Expand Down
4 changes: 2 additions & 2 deletions drivers/spi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ config SPI_AXI_SPI_ENGINE
config SPI_BCM2835
tristate "BCM2835 SPI controller"
depends on GPIOLIB
depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709 || COMPILE_TEST
depends on ARCH_BCM2835 || COMPILE_TEST
help
This selects a driver for the Broadcom BCM2835 SPI master.

Expand All @@ -105,7 +105,7 @@ config SPI_BCM2835

config SPI_BCM2835AUX
tristate "BCM2835 SPI auxiliary controller"
depends on ((ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709) && GPIOLIB) || COMPILE_TEST
depends on (ARCH_BCM2835 && GPIOLIB) || COMPILE_TEST
help
This selects a driver for the Broadcom BCM2835 SPI aux master.

Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/8250/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ config SERIAL_8250_ACORN

config SERIAL_8250_BCM2835AUX
tristate "BCM2835 auxiliar mini UART support"
depends on ARCH_BCM2708 || ARCH_BCM2709 || ARCH_BCM2835 || COMPILE_TEST
depends on ARCH_BCM2835 || COMPILE_TEST
depends on SERIAL_8250 && SERIAL_8250_SHARE_IRQ
help
Support for the BCM2835 auxiliar mini UART.
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ config BCM63XX_WDT

config BCM2835_WDT
tristate "Broadcom BCM2835 hardware watchdog"
depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709
depends on ARCH_BCM2835
select WATCHDOG_CORE
help
Watchdog driver for the built in watchdog hardware in Broadcom
Expand Down
3 changes: 1 addition & 2 deletions sound/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ config SND_PXA2XX_AC97

config SND_BCM2835
tristate "BCM2835 ALSA driver"
depends on (ARCH_BCM2708 || ARCH_BCM2709 || ARCH_BCM2835) \
&& BCM2708_VCHIQ && SND
depends on ARCH_BCM2835 && BCM2708_VCHIQ && SND
select SND_PCM
help
Say Y or M if you want to support BCM2835 Alsa pcm card driver
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/bcm/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config SND_BCM2835_SOC_I2S
tristate "SoC Audio support for the Broadcom BCM2835 I2S module"
depends on ARCH_BCM2835 || MACH_BCM2708 || MACH_BCM2709 || COMPILE_TEST
depends on ARCH_BCM2835 || COMPILE_TEST
select SND_SOC_GENERIC_DMAENGINE_PCM
select REGMAP_MMIO
help
Expand Down

0 comments on commit c83b999

Please sign in to comment.