diff options
| author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2017-12-06 16:06:35 -0800 |
|---|---|---|
| committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2017-12-13 16:11:14 -0800 |
| commit | a18947c20dba2c0c38db8bde1ad4684995df4bbd (patch) | |
| tree | 917bf2abbe439a6f99ede8cfafb25812dca54a9a /meta-xilinx-bsp/recipes-kernel | |
| parent | 6ddc5873b0ede30e6542f0ab151a6236acc37944 (diff) | |
| download | meta-xilinx-a18947c20dba2c0c38db8bde1ad4684995df4bbd.tar.gz | |
meta-xilinx: Restructuring meta-xilinx to support multiple layers
As discussed previously on mailing list, we are proceeding with layer
restructuring. For rocko release we will have the following layers
meta-xilinx
->meta-xilinx-bsp (current meta-xilinx)
->meta-xilinx-contrib
In the subsequent releases we will add other layers from Xilinx
meta-xilinx
->meta-xilinx-bsp (current meta-xilinx)
->meta-petalinux
->meta-xilinx-tools
->meta-xilinx-contrib
This will provide one clone to get all the required meta layers from
Xilinx for a complete solution, and the users can blacklist any layer
which they don't want to use using bblayer.conf.
This will enables us to help our vendors/partners to add their reference
designs, board definitions etc.
Recipe changes :
* Move reference design zybo-linux-bd.bb to meta-xilinx-contrib
* Move kernel patches realted to zybo-linux-bd-zynq7 board to
meta-xilinx-contrib
* Update README
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp/recipes-kernel')
30 files changed, 469 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-microblaze.inc b/meta-xilinx-bsp/recipes-kernel/linux/linux-microblaze.inc new file mode 100644 index 00000000..e23a50e8 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-microblaze.inc | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # MicroBlaze is a uImage target, but its not called 'uImage' instead it is called 'linux.bin.ub' | ||
| 2 | python () { | ||
| 3 | if d.getVar('KERNEL_IMAGETYPE', True).endswith('.ub'): | ||
| 4 | d.setVar('DEPENDS', "%s u-boot-mkimage-native" % d.getVar('DEPENDS', True)) | ||
| 5 | } | ||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx-dev.bb b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx-dev.bb new file mode 100644 index 00000000..acb9938f --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx-dev.bb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # This recipe tracks the 'bleeding edge' linux-xlnx repository. | ||
| 2 | # Since this tree is frequently updated, AUTOREV is used to track its contents. | ||
| 3 | # | ||
| 4 | # To enable this recipe, set PREFERRED_PROVIDER_virtual/kernel = "linux-xlnx-dev" | ||
| 5 | |||
| 6 | KBRANCH ?= "master" | ||
| 7 | |||
| 8 | # Use the SRCREV for the last tagged revision of linux-xlnx. | ||
| 9 | SRCREV ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-xlnx-dev", "${AUTOREV}", "84fb0cc65aae5970471cbc54b0c89009b9b904af", d)}' | ||
| 10 | |||
| 11 | # skip version sanity, because the version moves with AUTOREV | ||
| 12 | KERNEL_VERSION_SANITY_SKIP = "1" | ||
| 13 | |||
| 14 | LINUX_VERSION ?= "4.9+" | ||
| 15 | LINUX_VERSION_EXTENSION ?= "-xilinx-dev" | ||
| 16 | |||
| 17 | include linux-xlnx.inc | ||
| 18 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc new file mode 100644 index 00000000..39c146aa --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | # This version extension should match CONFIG_LOCALVERSION in defconfig | ||
| 2 | XILINX_RELEASE_VERSION ?= "" | ||
| 3 | LINUX_VERSION_EXTENSION ?= "-xilinx-${XILINX_RELEASE_VERSION}" | ||
| 4 | PV = "${LINUX_VERSION}${LINUX_VERSION_EXTENSION}+git${SRCPV}" | ||
| 5 | |||
| 6 | # Sources, by default allow for the use of SRCREV pointing to orphaned tags/commits | ||
| 7 | KBRANCH ?= "" | ||
| 8 | SRCBRANCHARG = "${@['nobranch=1', 'branch=${KBRANCH}'][d.getVar('KBRANCH', True) != '']}" | ||
| 9 | |||
| 10 | FILESOVERRIDES_append = ":${XILINX_RELEASE_VERSION}" | ||
| 11 | KERNELURI ?= "git://github.com/Xilinx/linux-xlnx.git;protocol=https" | ||
| 12 | SRC_URI = "${KERNELURI};${SRCBRANCHARG}" | ||
| 13 | |||
| 14 | SRCREV_machine ?= "${SRCREV}" | ||
| 15 | |||
| 16 | require recipes-kernel/linux/linux-yocto.inc | ||
| 17 | require linux-microblaze.inc | ||
| 18 | |||
| 19 | DESCRIPTION = "Xilinx Kernel" | ||
| 20 | |||
| 21 | # Force the use of the KBUILD_DEFCONFIG even if some other defconfig was generated in the ${WORKDIR} | ||
| 22 | do_kernel_metadata_prepend () { | ||
| 23 | [ -n "${KBUILD_DEFCONFIG}" ] && [ -e ${WORKDIR}/defconfig ] && rm ${WORKDIR}/defconfig | ||
| 24 | } | ||
| 25 | |||
| 26 | # Default to be only compatible with specific machines or soc families | ||
| 27 | COMPATIBLE_MACHINE ?= "^$" | ||
| 28 | COMPATIBLE_MACHINE_zynq = ".*" | ||
| 29 | COMPATIBLE_MACHINE_zynqmp = ".*" | ||
| 30 | COMPATIBLE_MACHINE_kc705-microblazeel = ".*" | ||
| 31 | |||
| 32 | # Use DEFCONFIGs for configuring linux-xlnx kernels | ||
| 33 | KCONFIG_MODE ?= "alldefconfig" | ||
| 34 | KBUILD_DEFCONFIG_zynqmp = "xilinx_zynqmp_defconfig" | ||
| 35 | KBUILD_DEFCONFIG_zynq = "xilinx_zynq_defconfig" | ||
| 36 | KBUILD_DEFCONFIG_microblaze = "mmu_defconfig" | ||
| 37 | |||
| 38 | # Add meta-xilinx kmeta, used for MicroBlaze BSP fragments | ||
| 39 | FILESEXTRAPATHS_prepend := "${THISDIR}:" | ||
| 40 | SRC_URI_append = " file://xilinx-kmeta;type=kmeta;name=xilinx-kmeta;destsuffix=xilinx-kmeta" | ||
| 41 | |||
| 42 | # MicroBlaze BSP fragments | ||
| 43 | KERNEL_FEATURES_append_kc705-microblazeel = " bsp/kc705-microblazeel/kc705-microblazeel.scc" | ||
| 44 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2017.3.bb b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2017.3.bb new file mode 100644 index 00000000..7115947b --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2017.3.bb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | LINUX_VERSION = "4.9" | ||
| 2 | XILINX_RELEASE_VERSION = "v2017.3" | ||
| 3 | SRCREV ?= "f1b1e077d641fc83b54c1b8f168cbb58044fbd4e" | ||
| 4 | |||
| 5 | include linux-xlnx.inc | ||
| 6 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend b/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend new file mode 100644 index 00000000..05c39951 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend | |||
| @@ -0,0 +1 @@ | |||
| require linux-yocto-xilinx.inc | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto-tiny_%.bbappend b/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto-tiny_%.bbappend new file mode 100644 index 00000000..05c39951 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto-tiny_%.bbappend | |||
| @@ -0,0 +1 @@ | |||
| require linux-yocto-xilinx.inc | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto-xilinx.inc b/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto-xilinx.inc new file mode 100644 index 00000000..92093008 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto-xilinx.inc | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | require linux-microblaze.inc | ||
| 2 | |||
| 3 | # Add meta-xilinx kmeta | ||
| 4 | FILESEXTRAPATHS_prepend := "${THISDIR}:" | ||
| 5 | SRC_URI_append = " file://xilinx-kmeta;type=kmeta;name=xilinx-kmeta;destsuffix=xilinx-kmeta" | ||
| 6 | |||
| 7 | # Zynq default generic KMACHINE | ||
| 8 | COMPATIBLE_MACHINE_zynq = "zynq" | ||
| 9 | KMACHINE_zynq = "zynq" | ||
| 10 | |||
| 11 | # ZynqMP default generic KMACHINE | ||
| 12 | COMPATIBLE_MACHINE_zynqmp = "zynqmp" | ||
| 13 | KMACHINE_zynqmp = "zynqmp" | ||
| 14 | |||
| 15 | # MicroBlaze KMACHINEs | ||
| 16 | KMACHINE_ml605-qemu-microblazeel = "qemumicroblazeel" | ||
| 17 | KMACHINE_s3adsp1800-qemu-microblazeeb = "qemumicroblazeeb" | ||
| 18 | |||
| 19 | # MicroBlaze default generic KMACHINE | ||
| 20 | KMACHINE_microblaze = "microblaze" | ||
| 21 | COMPATIBLE_MACHINE_microblaze = "microblaze" | ||
| 22 | |||
| 23 | # Default kernel config fragements for specific machines | ||
| 24 | KERNEL_FEATURES_append_kc705-microblazeel = " bsp/kc705-microblazeel/kc705-microblazeel.scc" | ||
| 25 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto_%.bbappend b/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto_%.bbappend new file mode 100644 index 00000000..05c39951 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-yocto_%.bbappend | |||
| @@ -0,0 +1 @@ | |||
| require linux-yocto-xilinx.inc | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/kc705-microblazeel/kc705-microblazeel.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/kc705-microblazeel/kc705-microblazeel.cfg new file mode 100644 index 00000000..bf7f316a --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/kc705-microblazeel/kc705-microblazeel.cfg | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | CONFIG_XILINX_MICROBLAZE0_FAMILY="kintex7" | ||
| 2 | |||
| 3 | # CPU ISA Config | ||
| 4 | CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1 | ||
| 5 | CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR=1 | ||
| 6 | CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1 | ||
| 7 | CONFIG_XILINX_MICROBLAZE0_USE_DIV=1 | ||
| 8 | CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=2 | ||
| 9 | CONFIG_XILINX_MICROBLAZE0_USE_FPU=0 | ||
| 10 | CONFIG_XILINX_MICROBLAZE0_HW_VER="10.0" | ||
| 11 | |||
| 12 | # Memory Base Address | ||
| 13 | CONFIG_KERNEL_BASE_ADDR=0x80000000 | ||
| 14 | |||
| 15 | CONFIG_XILINX_AXI_EMAC=y | ||
| 16 | CONFIG_XILINX_PHY=y | ||
| 17 | CONFIG_BLK_DEV_INITRD=y | ||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/kc705-microblazeel/kc705-microblazeel.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/kc705-microblazeel/kc705-microblazeel.scc new file mode 100644 index 00000000..aaf7c2af --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/kc705-microblazeel/kc705-microblazeel.scc | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Kernel Config for kc705-microblazeel specific setup" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconf hardware kc705-microblazeel.cfg | ||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/microblaze-standard.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/microblaze-standard.scc new file mode 100644 index 00000000..170489d4 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/microblaze-standard.scc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | define KMACHINE microblaze | ||
| 2 | define KTYPE standard | ||
| 3 | define KARCH microblaze | ||
| 4 | |||
| 5 | include ktypes/standard/standard.scc | ||
| 6 | |||
| 7 | include bsp/xilinx/soc/microblaze.scc | ||
| 8 | |||
| 9 | # Common board drivers | ||
| 10 | include bsp/xilinx/board-common.scc | ||
| 11 | |||
| 12 | # default policy for standard kernels | ||
| 13 | include features/latencytop/latencytop.scc | ||
| 14 | include features/profiling/profiling.scc | ||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/microblaze-tiny.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/microblaze-tiny.scc new file mode 100644 index 00000000..979fb86b --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/microblaze-tiny.scc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | define KMACHINE microblaze | ||
| 2 | define KTYPE tiny | ||
| 3 | define KARCH microblaze | ||
| 4 | |||
| 5 | include ktypes/tiny/tiny.scc | ||
| 6 | |||
| 7 | include bsp/xilinx/soc/microblaze.scc | ||
| 8 | |||
| 9 | # Common board drivers | ||
| 10 | include bsp/xilinx/board-common.scc | ||
| 11 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-drm.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-drm.cfg new file mode 100644 index 00000000..0f66c8bc --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-drm.cfg | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | # CMA | ||
| 2 | CONFIG_CMA=y | ||
| 3 | CONFIG_DMA_CMA=y | ||
| 4 | CONFIG_CMA_SIZE_MBYTES=128 | ||
| 5 | CONFIG_CMA_SIZE_SEL_MBYTES=y | ||
| 6 | CONFIG_CMA_ALIGNMENT=8 | ||
| 7 | |||
| 8 | # DRM | ||
| 9 | CONFIG_DRM=y | ||
| 10 | CONFIG_DRM_XILINX=y | ||
| 11 | |||
| 12 | # frame buffer console | ||
| 13 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
| 14 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-drm.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-drm.scc new file mode 100644 index 00000000..56c80c3a --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-drm.scc | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Enable Xilinx DRM support" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconfig hardware drivers-drm.cfg | ||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-softip-pcie.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-softip-pcie.cfg new file mode 100644 index 00000000..df88fce7 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-softip-pcie.cfg | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | |||
| 2 | # PCIe | ||
| 3 | CONFIG_PCI=y | ||
| 4 | CONFIG_PCI_MSI=y | ||
| 5 | CONFIG_PCIEPORTBUS=y | ||
| 6 | CONFIG_PCIE_XILINX=y | ||
| 7 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-softip-pcie.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-softip-pcie.scc new file mode 100644 index 00000000..e60047ae --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-softip-pcie.scc | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Xilinx AXI PCIe Host Bridge" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconfig hardware drivers-softip-pcie.cfg | ||
| 5 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-xlnx-softip.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-xlnx-softip.cfg new file mode 100644 index 00000000..5c2529a2 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-xlnx-softip.cfg | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # Xilinx DMA engines | ||
| 2 | CONFIG_XILINX_DMA_ENGINES=y | ||
| 3 | |||
| 4 | # Xilinx Traffic Generator | ||
| 5 | CONFIG_XILINX_TRAFGEN=y | ||
| 6 | |||
| 7 | # Xilinx Perfmon UIO driver | ||
| 8 | CONFIG_UIO_XILINX_APM=y | ||
| 9 | |||
| 10 | # Interrupt controller | ||
| 11 | CONFIG_XILINX_INTC=y | ||
| 12 | |||
| 13 | # Xilinx PHY | ||
| 14 | CONFIG_XILINX_PHY=y | ||
| 15 | |||
| 16 | # JESD204B PHY | ||
| 17 | CONFIG_XILINX_JESD204B=y | ||
| 18 | CONFIG_XILINX_JESD204B_PHY=y | ||
| 19 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-xlnx-zynq.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-xlnx-zynq.cfg new file mode 100644 index 00000000..9b70ac4e --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-xlnx-zynq.cfg | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | # Devcfg | ||
| 2 | CONFIG_XILINX_DEVCFG=y | ||
| 3 | |||
| 4 | # Ethernet | ||
| 5 | CONFIG_XILINX_PS_EMAC=y | ||
| 6 | |||
| 7 | # SPI | ||
| 8 | CONFIG_SPI_ZYNQ_QSPI=y | ||
| 9 | |||
| 10 | # NAND | ||
| 11 | CONFIG_MTD_NAND_PL353=y | ||
| 12 | CONFIG_MTD_NAND_PL35X=y | ||
| 13 | |||
| 14 | # FPGA | ||
| 15 | CONFIG_XILINX_PR_DECOUPLER=y | ||
| 16 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-xlnx-zynqmp.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-xlnx-zynqmp.cfg new file mode 100644 index 00000000..4cbb2050 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-xlnx-zynqmp.cfg | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | CONFIG_SOC_XILINX_ZYNQMP=y | ||
| 2 | |||
| 3 | # PMU Firmware API | ||
| 4 | CONFIG_ZYNQMP_PM_API_DEBUGFS=y | ||
| 5 | |||
| 6 | # DMA | ||
| 7 | CONFIG_DMADEVICES=y | ||
| 8 | CONFIG_XILINX_DMA_ENGINES=y | ||
| 9 | CONFIG_XILINX_DPDMA=y | ||
| 10 | |||
| 11 | # NAND | ||
| 12 | CONFIG_MTD=y | ||
| 13 | CONFIG_MTD_NAND=y | ||
| 14 | CONFIG_MTD_NAND_ARASAN=y | ||
| 15 | |||
| 16 | # PCIe | ||
| 17 | CONFIG_PCI=y | ||
| 18 | CONFIG_PCI_MSI=y | ||
| 19 | CONFIG_PCIE_XILINX_NWL=y | ||
| 20 | |||
| 21 | # CONFIG_ARM_MALI is not set | ||
| 22 | |||
| 23 | CONFIG_PHY_XILINX_ZYNQMP=y | ||
| 24 | |||
| 25 | # EDAC | ||
| 26 | CONFIG_EDAC=y | ||
| 27 | CONFIG_EDAC_MM_EDAC=y | ||
| 28 | CONFIG_EDAC_CORTEX_ARM64=y | ||
| 29 | CONFIG_EDAC_SYNOPSYS=y | ||
| 30 | CONFIG_EDAC_ZYNQMP_OCM=y | ||
| 31 | |||
| 32 | # Sound | ||
| 33 | CONFIG_SOUND=y | ||
| 34 | CONFIG_SND=y | ||
| 35 | CONFIG_SND_DRIVERS=y | ||
| 36 | CONFIG_SND_SOC=y | ||
| 37 | CONFIG_SND_SOC_XILINX_DP=y | ||
| 38 | |||
| 39 | # Ethernet | ||
| 40 | CONFIG_MACB_EXT_BD=y | ||
| 41 | |||
| 42 | # FPGA | ||
| 43 | CONFIG_FPGA=y | ||
| 44 | CONFIG_FPGA_MGR_ZYNQMP_FPGA=y | ||
| 45 | CONFIG_FPGA_REGION=y | ||
| 46 | CONFIG_FPGA_BRIDGE=y | ||
| 47 | CONFIG_XILINX_PR_DECOUPLER=y | ||
| 48 | |||
| 49 | # AMS | ||
| 50 | CONFIG_XILINX_AMS=y | ||
| 51 | |||
| 52 | # NVMEM | ||
| 53 | CONFIG_NVMEM=y | ||
| 54 | CONFIG_NVMEM_ZYNQMP=y | ||
| 55 | |||
| 56 | # Fabric Clock | ||
| 57 | CONFIG_STAGING=y | ||
| 58 | CONFIG_XILINX_FCLK=y | ||
| 59 | |||
| 60 | # Clock controllers | ||
| 61 | CONFIG_COMMON_CLK=y | ||
| 62 | CONFIG_COMMON_CLK_ZYNQMP=y | ||
| 63 | |||
| 64 | # Reset controller | ||
| 65 | CONFIG_RESET_CONTROLLER=y | ||
| 66 | CONFIG_ZYNQMP_RESET_CONTROLLER=y | ||
| 67 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-zynqmp.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-zynqmp.cfg new file mode 100644 index 00000000..dc69a659 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/drivers-zynqmp.cfg | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | |||
| 2 | # Bus | ||
| 3 | CONFIG_ARM_CCI400_PMU=y | ||
| 4 | |||
| 5 | # IOMMU | ||
| 6 | CONFIG_IOMMU_SUPPORT=y | ||
| 7 | CONFIG_ARM_SMMU=y | ||
| 8 | |||
| 9 | # Serial | ||
| 10 | CONFIG_TTY=y | ||
| 11 | CONFIG_SERIAL_EARLYCON=y | ||
| 12 | CONFIG_SERIAL_XILINX_PS_UART=y | ||
| 13 | CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y | ||
| 14 | |||
| 15 | # Watchdog | ||
| 16 | CONFIG_WATCHDOG=y | ||
| 17 | CONFIG_CADENCE_WATCHDOG=y | ||
| 18 | |||
| 19 | # RTC | ||
| 20 | CONFIG_RTC_CLASS=y | ||
| 21 | CONFIG_RTC_DRV_ZYNQMP=y | ||
| 22 | |||
| 23 | # Ethernet | ||
| 24 | CONFIG_NET_CADENCE=y | ||
| 25 | CONFIG_MACB=y | ||
| 26 | |||
| 27 | # GPIO | ||
| 28 | CONFIG_GPIOLIB=y | ||
| 29 | CONFIG_GPIO_SYSFS=y | ||
| 30 | CONFIG_GPIO_ZYNQ=y | ||
| 31 | |||
| 32 | # I2C | ||
| 33 | CONFIG_I2C=y | ||
| 34 | CONFIG_I2C_CADENCE=y | ||
| 35 | |||
| 36 | # SPI | ||
| 37 | CONFIG_SPI=y | ||
| 38 | CONFIG_SPI_CADENCE=y | ||
| 39 | CONFIG_SPI_ZYNQMP_GQSPI=y | ||
| 40 | |||
| 41 | # CAN | ||
| 42 | CONFIG_CAN=y | ||
| 43 | CONFIG_CAN_DEV=y | ||
| 44 | CONFIG_CAN_XILINXCAN=y | ||
| 45 | |||
| 46 | # SATA | ||
| 47 | CONFIG_ATA=y | ||
| 48 | CONFIG_ATA_SFF=y | ||
| 49 | CONFIG_SATA_AHCI_PLATFORM=y | ||
| 50 | CONFIG_AHCI_CEVA=y | ||
| 51 | |||
| 52 | # MMC/SD | ||
| 53 | CONFIG_MMC=y | ||
| 54 | CONFIG_MMC_SDHCI=y | ||
| 55 | CONFIG_MMC_SDHCI_PLTFM=y | ||
| 56 | CONFIG_MMC_SDHCI_OF_ARASAN=y | ||
| 57 | |||
| 58 | # USB | ||
| 59 | CONFIG_USB=y | ||
| 60 | CONFIG_USB_SUPPORT=y | ||
| 61 | CONFIG_USB_XHCI_HCD=y | ||
| 62 | CONFIG_USB_DWC3=y | ||
| 63 | CONFIG_USB_GADGET=y | ||
| 64 | |||
| 65 | # DMA | ||
| 66 | CONFIG_DMA_ENGINE=y | ||
| 67 | CONFIG_XILINX_ZYNQMP_DMA=y | ||
| 68 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/zynqmp.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/zynqmp.cfg new file mode 100644 index 00000000..072a3feb --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/zynqmp.cfg | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | |||
| 2 | # Arch Feature Selections | ||
| 3 | CONFIG_ARM64=y | ||
| 4 | CONFIG_64BIT=y | ||
| 5 | CONFIG_ARCH_ZYNQMP=y | ||
| 6 | |||
| 7 | # SMP | ||
| 8 | CONFIG_SMP=y | ||
| 9 | |||
| 10 | # ARM 32-Bit compatiblity | ||
| 11 | CONFIG_COMPAT=y | ||
| 12 | # CONFIG_COMPAT_BRK is not set | ||
| 13 | |||
| 14 | # CPU Frequency | ||
| 15 | CONFIG_CPU_FREQ=y | ||
| 16 | CONFIG_CPU_FREQ_STAT=y | ||
| 17 | CONFIG_CPU_FREQ_STAT_DETAILS=y | ||
| 18 | CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y | ||
| 19 | CONFIG_CPU_FREQ_GOV_PERFORMANCE=y | ||
| 20 | CONFIG_CPU_FREQ_GOV_POWERSAVE=y | ||
| 21 | CONFIG_CPU_FREQ_GOV_ONDEMAND=y | ||
| 22 | CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y | ||
| 23 | CONFIG_CPUFREQ_DT=y | ||
| 24 | CONFIG_CPU_IDLE=y | ||
| 25 | CONFIG_ARM_CPUIDLE=y | ||
| 26 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/zynqmp.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/zynqmp.scc new file mode 100644 index 00000000..8fcb8e62 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/soc/zynqmp.scc | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Xilinx Zynq UltraScale+ MPSoC" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | include features/net/net.scc | ||
| 5 | include cfg/timer/no_hz.scc | ||
| 6 | |||
| 7 | kconf hardware zynqmp.cfg | ||
| 8 | kconf hardware drivers-zynqmp.cfg | ||
| 9 | include bsp/xilinx/soc/drivers-softip.scc | ||
| 10 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/zynqmp-standard.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/zynqmp-standard.scc new file mode 100644 index 00000000..1c9a4f3d --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/zynqmp-standard.scc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | define KMACHINE zynqmp | ||
| 2 | define KTYPE standard | ||
| 3 | define KARCH arm64 | ||
| 4 | |||
| 5 | include ktypes/standard/standard.scc | ||
| 6 | |||
| 7 | include bsp/xilinx/soc/zynqmp.scc | ||
| 8 | include bsp/xilinx/board-common.scc | ||
| 9 | |||
| 10 | include features/input/input.scc | ||
| 11 | include cfg/usb-mass-storage.scc | ||
| 12 | |||
| 13 | # default policy for standard kernels | ||
| 14 | #include features/latencytop/latencytop.scc | ||
| 15 | #include features/profiling/profiling.scc | ||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/zynqmp-tiny.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/zynqmp-tiny.scc new file mode 100644 index 00000000..6cdfc723 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/zynqmp-tiny.scc | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | define KMACHINE zynqmp | ||
| 2 | define KTYPE tiny | ||
| 3 | define KARCH arm64 | ||
| 4 | |||
| 5 | include ktypes/tiny/tiny.scc | ||
| 6 | |||
| 7 | include bsp/xilinx/soc/zynqmp.scc | ||
| 8 | include bsp/xilinx/board-common.scc | ||
| 9 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/zybo-linux-bd-zynq7/zybo-linux-bd-zynq7.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/zybo-linux-bd-zynq7/zybo-linux-bd-zynq7.cfg new file mode 100644 index 00000000..37eaa4cf --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/zybo-linux-bd-zynq7/zybo-linux-bd-zynq7.cfg | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # Keyboard GPIO support | ||
| 2 | CONFIG_KEYBOARD_GPIO=y | ||
| 3 | CONFIG_KEYBOARD_GPIO_POLLED=y | ||
| 4 | |||
| 5 | # Sound support for Zybo linux_bd project | ||
| 6 | CONFIG_SOUND=y | ||
| 7 | CONFIG_SND=y | ||
| 8 | CONFIG_SND_SOC=y | ||
| 9 | CONFIG_SND_SOC_ADI=y | ||
| 10 | CONFIG_SND_SOC_ADI_AXI_I2S=y | ||
| 11 | CONFIG_SND_SIMPLE_CARD=y | ||
| 12 | CONFIG_SND_SOC_SSM2602_I2C=y | ||
| 13 | |||
| 14 | # Drivers for Digilent DRM encoder | ||
| 15 | # DRM encoder | ||
| 16 | CONFIG_DRM_DIGILENT_ENCODER=y | ||
| 17 | # Common Clock Framework | ||
| 18 | CONFIG_COMMON_CLK_DGLNT_DYNCLK=y | ||
| 19 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/zybo-linux-bd-zynq7/zybo-linux-bd-zynq7.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/zybo-linux-bd-zynq7/zybo-linux-bd-zynq7.scc new file mode 100644 index 00000000..f3e6e8b8 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/zybo-linux-bd-zynq7/zybo-linux-bd-zynq7.scc | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Kernel Config for ZYBO Linux-BD Design" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconf hardware zybo-linux-bd-zynq7.cfg | ||
| 5 | |||
| 6 | include bsp/xilinx/soc/drivers-drm.scc | ||
| 7 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/uio/uio.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/uio/uio.cfg new file mode 100644 index 00000000..048ffe49 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/uio/uio.cfg | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | CONFIG_UIO=y | ||
| 2 | CONFIG_UIO_PDRV_GENIRQ=y | ||
| 3 | CONFIG_UIO_DMEM_GENIRQ=y | ||
| 4 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/uio/uio.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/uio/uio.scc new file mode 100644 index 00000000..9697949a --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/uio/uio.scc | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Enable UIO Support" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconfig hardware uio.cfg | ||
| 5 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/v4l2/v4l2-xilinx.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/v4l2/v4l2-xilinx.cfg new file mode 100644 index 00000000..49a5d6fe --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/v4l2/v4l2-xilinx.cfg | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # Media support | ||
| 2 | CONFIG_MEDIA_SUPPORT=y | ||
| 3 | CONFIG_MEDIA_CAMERA_SUPPORT=y | ||
| 4 | CONFIG_MEDIA_CONTROLLER=y | ||
| 5 | |||
| 6 | # V4L | ||
| 7 | CONFIG_V4L_PLATFORM_DRIVERS=y | ||
| 8 | CONFIG_VIDEO_DEV=y | ||
| 9 | CONFIG_VIDEO_V4L2=y | ||
| 10 | CONFIG_VIDEO_V4L2_SUBDEV_API=y | ||
| 11 | |||
| 12 | # Xilinx Video drivers | ||
| 13 | CONFIG_VIDEO_XILINX=y | ||
| 14 | CONFIG_VIDEO_XILINX_CFA=y | ||
| 15 | CONFIG_VIDEO_XILINX_CRESAMPLE=y | ||
| 16 | CONFIG_VIDEO_XILINX_HLS=y | ||
| 17 | CONFIG_VIDEO_XILINX_REMAPPER=y | ||
| 18 | CONFIG_VIDEO_XILINX_RGB2YUV=y | ||
| 19 | CONFIG_VIDEO_XILINX_SCALER=y | ||
| 20 | CONFIG_VIDEO_XILINX_SWITCH=y | ||
| 21 | CONFIG_VIDEO_XILINX_TPG=y | ||
| 22 | CONFIG_VIDEO_XILINX_VTC=y | ||
| 23 | |||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/v4l2/v4l2-xilinx.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/v4l2/v4l2-xilinx.scc new file mode 100644 index 00000000..6d6ba6ac --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/features/v4l2/v4l2-xilinx.scc | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Enable Xilinx V4L2 support" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconfig hardware v4l2-xilinx.cfg \ No newline at end of file | ||
