drivers: pcie: refactor pcie directory to make RC and EP independent
With this refactoring of pcie directory, RC drivers are placed under host/ directory, EP drivers are placed under endpoint/ directory and they are completely independent of each other. Signed-off-by: Abhishek Shah <abhishek.shah@broadcom.com>
This commit is contained in:
parent
1fc2e43eb3
commit
08ed93fed9
8 changed files with 35 additions and 33 deletions
|
@ -4,6 +4,7 @@ add_definitions(-D__ZEPHYR_SUPERVISOR__)
|
|||
|
||||
add_subdirectory(console)
|
||||
add_subdirectory(interrupt_controller)
|
||||
add_subdirectory(pcie)
|
||||
|
||||
add_subdirectory_if_kconfig(adc)
|
||||
add_subdirectory_if_kconfig(clock_control)
|
||||
|
@ -21,7 +22,6 @@ add_subdirectory_if_kconfig(ipm)
|
|||
add_subdirectory_if_kconfig(led)
|
||||
add_subdirectory_if_kconfig(led_strip)
|
||||
add_subdirectory_if_kconfig(modem)
|
||||
add_subdirectory_if_kconfig(pcie)
|
||||
add_subdirectory_if_kconfig(pinmux)
|
||||
add_subdirectory_if_kconfig(pwm)
|
||||
add_subdirectory_if_kconfig(rtc)
|
||||
|
|
|
@ -1,5 +1,2 @@
|
|||
zephyr_sources(pcie.c)
|
||||
zephyr_sources_ifdef(CONFIG_PCIE_MSI msi.c)
|
||||
zephyr_sources_ifdef(CONFIG_PCIE_SHELL shell.c)
|
||||
|
||||
add_subdirectory_ifdef(CONFIG_PCIE host)
|
||||
add_subdirectory_ifdef(CONFIG_PCIE_ENDPOINT endpoint)
|
||||
|
|
|
@ -1,30 +1,4 @@
|
|||
# PCIe/new PCI configuration options
|
||||
|
||||
# Copyright (c) 2019 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
menuconfig PCIE
|
||||
bool "Enable new PCI/PCIe support"
|
||||
help
|
||||
This option enables support for new PCI(e) drivers.
|
||||
|
||||
if PCIE
|
||||
|
||||
config PCIE_MSI
|
||||
bool "Enable support for PCI(e) MSI"
|
||||
help
|
||||
Use Message-Signaled Interrupts where possible. With this option
|
||||
enabled, PCI(e) devices which support MSI will be configured (at
|
||||
runtime) to use them. This is typically required for PCIe devices
|
||||
to generate interrupts at all.
|
||||
|
||||
config PCIE_SHELL
|
||||
bool "Enable PCIe/new PCI Shell"
|
||||
default y
|
||||
depends on SHELL && !PCIE_ENDPOINT
|
||||
help
|
||||
Enable commands for debugging PCI(e) using the built-in shell.
|
||||
# PCIe RC/EP drivers configuration options
|
||||
|
||||
source "drivers/pcie/host/Kconfig"
|
||||
source "drivers/pcie/endpoint/Kconfig"
|
||||
|
||||
endif # PCIE
|
||||
|
|
3
drivers/pcie/host/CMakeLists.txt
Normal file
3
drivers/pcie/host/CMakeLists.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
zephyr_sources(pcie.c)
|
||||
zephyr_sources_ifdef(CONFIG_PCIE_MSI msi.c)
|
||||
zephyr_sources_ifdef(CONFIG_PCIE_SHELL shell.c)
|
28
drivers/pcie/host/Kconfig
Normal file
28
drivers/pcie/host/Kconfig
Normal file
|
@ -0,0 +1,28 @@
|
|||
# PCIe/new PCI configuration options
|
||||
|
||||
# Copyright (c) 2019 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
menuconfig PCIE
|
||||
bool "Enable new PCI/PCIe Root Complex support"
|
||||
help
|
||||
This option enables support for new PCI(e) drivers.
|
||||
|
||||
if PCIE
|
||||
|
||||
config PCIE_MSI
|
||||
bool "Enable support for PCI(e) MSI"
|
||||
help
|
||||
Use Message-Signaled Interrupts where possible. With this option
|
||||
enabled, PCI(e) devices which support MSI will be configured (at
|
||||
runtime) to use them. This is typically required for PCIe devices
|
||||
to generate interrupts at all.
|
||||
|
||||
config PCIE_SHELL
|
||||
bool "Enable PCIe/new PCI Shell"
|
||||
default y
|
||||
depends on SHELL
|
||||
help
|
||||
Enable commands for debugging PCI(e) using the built-in shell.
|
||||
|
||||
endif # PCIE
|
Loading…
Add table
Add a link
Reference in a new issue