summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen-Yu Tsai <wenst@chromium.org>2026-04-27 12:10:57 +0300
committerFlorian Fainelli <florian.fainelli@broadcom.com>2026-05-06 22:35:53 +0300
commite8f908b91550dad3274b5ab3bb0e779ca9d80aff (patch)
treeb69b08f0c6746aadf0dfeb5f3c90cd6065fd7656
parent12c8e4fe4acd19aa4f85204d07529aef205f967b (diff)
downloadlinux-e8f908b91550dad3274b5ab3bb0e779ca9d80aff.tar.xz
firmware: raspberrypi: Change dependency to ARCH_BCM2835 and COMPILE_TEST
The Raspberry Pi firmware driver has no compile dependencies on the BCM2835 mailbox driver. It's just a indirect runtime dependency: the driver only works on a Raspberry Pi. Change the dependency from BCM2835_MBOX to ARCH_BCM2835. Also allow compile tests. This allows drivers that have build time dependencies on this firmware driver to be compile tested as well. More dependencies are added to account for build time dependencies: - depends on MAILBOX for mailbox API (not stubbed) usage - depends on ARM || ARM64 for dsb() usage Also make it built by default if ARCH_BCM2835, since many functions will not work without this firmware driver. Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Link: https://lore.kernel.org/r/20260427091058.2669812-1-wenst@chromium.org Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
-rw-r--r--drivers/firmware/Kconfig5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index bbd2155d8483..bcfda01c2ab8 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -114,7 +114,10 @@ config ISCSI_IBFT
config RASPBERRYPI_FIRMWARE
tristate "Raspberry Pi Firmware Driver"
- depends on BCM2835_MBOX
+ depends on ARCH_BCM2835 || COMPILE_TEST
+ depends on ARM || ARM64
+ depends on MAILBOX
+ default ARCH_BCM2835
help
This option enables support for communicating with the firmware on the
Raspberry Pi.