Skip to content
Permalink
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
sonals authored and intel-lab-lkp committed Dec 17, 2020
1 parent 478feb6 commit 3096c9b7caac1243afabb56e8b6c6f752cd1a0de
Show file tree
Hide file tree
Showing 8 changed files with 113 additions and 0 deletions.
@@ -215,4 +215,6 @@ config FPGA_MGR_ZYNQMP_FPGA
to configure the programmable logic(PL) through PS
on ZynqMP SoC.

source "drivers/fpga/xrt/Kconfig"

endif # FPGA
@@ -46,3 +46,7 @@ dfl-afu-objs += dfl-afu-error.o

# Drivers for FPGAs which implement DFL
obj-$(CONFIG_FPGA_DFL_PCI) += dfl-pci.o

# XRT drivers for Alveo
obj-$(CONFIG_FPGA_XRT_LIB) += xrt/lib/
obj-$(CONFIG_FPGA_XRT_XMGMT) += xrt/mgmt/
@@ -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"
@@ -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
@@ -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.
@@ -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)
@@ -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.
@@ -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)

0 comments on commit 3096c9b

Please sign in to comment.