Skip to content

Commit

Permalink
drivers: pcie: add brcmstb pcie controller driver
Browse files Browse the repository at this point in the history
Add PCIe controller driver for brcmstb, required by Raspberry Pi 5.

Signed-off-by: Junho Lee <[email protected]>
  • Loading branch information
Lahyllas authored and kartben committed Jan 8, 2025
1 parent c85c8d3 commit 5edfd02
Show file tree
Hide file tree
Showing 7 changed files with 673 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pcie/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
add_subdirectory_ifdef(CONFIG_PCIE host)
add_subdirectory_ifdef(CONFIG_PCIE_ENDPOINT endpoint)
add_subdirectory_ifdef(CONFIG_PCIE_CONTROLLER controller)
1 change: 1 addition & 0 deletions drivers/pcie/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

source "drivers/pcie/host/Kconfig"
source "drivers/pcie/endpoint/Kconfig"
source "drivers/pcie/controller/Kconfig"
5 changes: 5 additions & 0 deletions drivers/pcie/controller/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources_ifdef(CONFIG_PCIE_BRCMSTB pcie_brcmstb.c)
10 changes: 10 additions & 0 deletions drivers/pcie/controller/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# PCIe controller configuration options

# Copyright 2024 TSN Lab, Inc.
# SPDX-License-Identifier: Apache-2.0

if PCIE_CONTROLLER

source "drivers/pcie/controller/Kconfig.brcmstb"

endif # PCIE_CONTROLLER
9 changes: 9 additions & 0 deletions drivers/pcie/controller/Kconfig.brcmstb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2024 Junho Lee <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config PCIE_BRCMSTB
bool "Broadcom Set-top box SoC PCIe Driver"
default y
depends on DT_HAS_BRCM_BRCMSTB_PCIE_ENABLED
help
Enable Driver for Broadcom Set-top box SoC PCIe controllers.
Loading

0 comments on commit 5edfd02

Please sign in to comment.