forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fpga: xrt: Kconfig and Makefile updates for XRT drivers
Update fpga Kconfig/Makefile and add Kconfig/Makefile for new drivers. Signed-off-by: Sonal Santan <sonal.santan@xilinx.com>
- Loading branch information
1 parent
478feb6
commit 3096c9b7caac1243afabb56e8b6c6f752cd1a0de
Showing
8 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # SPDX-License-Identifier: GPL-2.0-only | ||
| # | ||
| # Xilinx Alveo FPGA device configuration | ||
| # | ||
|
|
||
| source "drivers/fpga/xrt/lib/Kconfig" | ||
| source "drivers/fpga/xrt/mgmt/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # SPDX-License-Identifier: GPL-2.0 | ||
| # | ||
| # Copyright (C) 2020 Xilinx, Inc. All rights reserved. | ||
| # | ||
| # Authors: Sonal.Santan@xilinx.com | ||
| # | ||
|
|
||
| all: | ||
| $(MAKE) -C lib all | ||
| $(MAKE) -C mgmt all | ||
| $(MAKE) lint | ||
|
|
||
| tags: | ||
| ../../../../scripts/tags.sh | ||
|
|
||
| clean: | ||
| $(MAKE) -C lib clean | ||
| $(MAKE) -C mgmt clean | ||
|
|
||
| lint: | ||
| ../../../../scripts/lint.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # SPDX-License-Identifier: GPL-2.0-only | ||
| # | ||
| # XRT Alveo FPGA device configuration | ||
| # | ||
|
|
||
| config FPGA_XRT_LIB | ||
| tristate "XRT Alveo Driver Library" | ||
| depends on HWMON && PCI | ||
| select LIBFDT | ||
| help | ||
| XRT Alveo FPGA PCIe device driver common library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # SPDX-License-Identifier: GPL-2.0 | ||
| # | ||
| # Copyright (C) 2020 Xilinx, Inc. All rights reserved. | ||
| # | ||
| # Authors: Sonal.Santan@xilinx.com | ||
| # | ||
|
|
||
| FULL_XRT_PATH=$(srctree)/$(src)/.. | ||
| FULL_DTC_PATH=$(srctree)/scripts/dtc/libfdt | ||
|
|
||
| obj-$(CONFIG_FPGA_XRT_LIB) := xrt-lib.o | ||
|
|
||
| xrt-lib-objs := \ | ||
| xrt-main.o \ | ||
| xrt-subdev.o \ | ||
| xrt-cdev.o \ | ||
| ../common/xrt-metadata.o \ | ||
| subdevs/xrt-partition.o \ | ||
| subdevs/xrt-vsec.o \ | ||
| subdevs/xrt-axigate.o \ | ||
| subdevs/xrt-gpio.o \ | ||
| subdevs/xrt-icap.o \ | ||
| subdevs/xrt-clock.o \ | ||
| subdevs/xrt-clkfreq.o \ | ||
| subdevs/xrt-ucs.o \ | ||
| subdevs/xrt-calib.o | ||
|
|
||
| ccflags-y := -I$(FULL_XRT_PATH)/include \ | ||
| -I$(FULL_XRT_PATH)/common \ | ||
| -I$(FULL_DTC_PATH) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # SPDX-License-Identifier: GPL-2.0-only | ||
| # | ||
| # Xilinx XRT FPGA device configuration | ||
| # | ||
|
|
||
| config FPGA_XRT_XMGMT | ||
| tristate "Xilinx Alveo Management Driver" | ||
| depends on HWMON && PCI && FPGA_XRT_LIB | ||
| select LIBFDT | ||
| help | ||
| XRT Alveo FPGA PCIe device driver for Management Physical Function. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # SPDX-License-Identifier: GPL-2.0 | ||
| # | ||
| # Copyright (C) 2019-2020 Xilinx, Inc. All rights reserved. | ||
| # | ||
| # Authors: Sonal.Santan@xilinx.com | ||
| # | ||
|
|
||
| FULL_XRT_PATH=$(srctree)/$(src)/.. | ||
| FULL_DTC_PATH=$(srctree)/scripts/dtc/libfdt | ||
|
|
||
| obj-$(CONFIG_FPGA_XRT_XMGMT) += xmgmt.o | ||
|
|
||
| commondir := ../common | ||
|
|
||
| xmgmt-objs := xmgmt-root.o \ | ||
| xmgmt-main.o \ | ||
| xmgmt-fmgr-drv.o \ | ||
| xmgmt-main-region.o \ | ||
| $(commondir)/xrt-root.o \ | ||
| $(commondir)/xrt-metadata.o \ | ||
| $(commondir)/xrt-xclbin.o | ||
|
|
||
|
|
||
|
|
||
| ccflags-y := -I$(FULL_XRT_PATH)/include \ | ||
| -I$(FULL_XRT_PATH)/common \ | ||
| -I$(FULL_DTC_PATH) |