Skip to content

Commit 5edfd02

Browse files
Lahyllaskartben
authored andcommitted
drivers: pcie: add brcmstb pcie controller driver
Add PCIe controller driver for brcmstb, required by Raspberry Pi 5. Signed-off-by: Junho Lee <[email protected]>
1 parent c85c8d3 commit 5edfd02

File tree

7 files changed

+673
-0
lines changed

7 files changed

+673
-0
lines changed

drivers/pcie/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
add_subdirectory_ifdef(CONFIG_PCIE host)
22
add_subdirectory_ifdef(CONFIG_PCIE_ENDPOINT endpoint)
3+
add_subdirectory_ifdef(CONFIG_PCIE_CONTROLLER controller)

drivers/pcie/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
source "drivers/pcie/host/Kconfig"
44
source "drivers/pcie/endpoint/Kconfig"
5+
source "drivers/pcie/controller/Kconfig"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
zephyr_library()
4+
5+
zephyr_library_sources_ifdef(CONFIG_PCIE_BRCMSTB pcie_brcmstb.c)

drivers/pcie/controller/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# PCIe controller configuration options
2+
3+
# Copyright 2024 TSN Lab, Inc.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if PCIE_CONTROLLER
7+
8+
source "drivers/pcie/controller/Kconfig.brcmstb"
9+
10+
endif # PCIE_CONTROLLER
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2024 Junho Lee <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config PCIE_BRCMSTB
5+
bool "Broadcom Set-top box SoC PCIe Driver"
6+
default y
7+
depends on DT_HAS_BRCM_BRCMSTB_PCIE_ENABLED
8+
help
9+
Enable Driver for Broadcom Set-top box SoC PCIe controllers.

0 commit comments

Comments
 (0)