diff options
| author | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-07-08 16:43:12 +1000 |
|---|---|---|
| committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-10-27 17:58:43 +1000 |
| commit | 2add7980d34bf9f558c7ea87b79d07479d50c600 (patch) | |
| tree | c43fbe018c62ba84c8814397766ff3b3c32e6a97 | |
| parent | 3a81a7e049bd16b762d1fe00fb9f8bc0ddb2eb91 (diff) | |
| download | meta-xilinx-2add7980d34bf9f558c7ea87b79d07479d50c600.tar.gz | |
linux: Add support for linux-yocto config fragments
* Added kernel config fragments for Zynq and MicroBlaze
* Includes config fragments specifically for the architecture/SoC and
drivers
* Feature fragments for features commonly used with Zynq and MicroBlaze
platforms that are not yet part of the default yocto kernel configs
* Setup the linux-yocto append recipes to add the in layers config/*
kernel cache
* Remove the use of MACHINE_KCONFIG and MACHINE_DEVICETREE from the
linux-yocto recipes
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
27 files changed, 392 insertions, 10 deletions
diff --git a/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.cfg b/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.cfg new file mode 100644 index 00000000..06e03a3f --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.cfg | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | |||
| 2 | CONFIG_MICROBLAZE=y | ||
| 3 | |||
| 4 | # Important for performance and code size optimization | ||
| 5 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
| 6 | |||
| 7 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | ||
| 8 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.scc b/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.scc new file mode 100644 index 00000000..2b3aba2c --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.scc | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | |||
| 2 | if [ "$KARCH" = "microblaze" ]; then | ||
| 3 | kconf hardware microblaze.cfg | ||
| 4 | include cfg/timer/hz_100.scc | ||
| 5 | fi | ||
| 6 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze-standard.scc b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze-standard.scc new file mode 100644 index 00000000..66eaccca --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/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/microblaze/microblaze.scc | ||
| 8 | |||
| 9 | # Common board drivers | ||
| 10 | include features/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/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.cfg b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.cfg new file mode 100644 index 00000000..e9dcfb7a --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.cfg | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | |||
| 2 | # Arch Feature Selections | ||
| 3 | CONFIG_MMU=y | ||
| 4 | |||
| 5 | # Default Arch Configuration | ||
| 6 | CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1 | ||
| 7 | CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR=1 | ||
| 8 | CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1 | ||
| 9 | CONFIG_XILINX_MICROBLAZE0_USE_DIV=0 | ||
| 10 | CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=0 | ||
| 11 | CONFIG_XILINX_MICROBLAZE0_USE_FPU=0 | ||
| 12 | |||
| 13 | # Memory | ||
| 14 | CONFIG_HIGHMEM=y | ||
| 15 | |||
| 16 | # Device tree | ||
| 17 | CONFIG_PROC_DEVICETREE=y | ||
| 18 | |||
| 19 | # Debug | ||
| 20 | CONFIG_PRINTK_TIME=y | ||
| 21 | CONFIG_EARLY_PRINTK=y | ||
| 22 | |||
| 23 | # OF Scan serial devices | ||
| 24 | CONFIG_SERIAL_OF_PLATFORM=y | ||
| 25 | |||
| 26 | # Disable VT (Non-Functional with MicroBlaze) | ||
| 27 | CONFIG_VT=n | ||
| 28 | # Disable FTRACE, does not work with MicroBlaze | ||
| 29 | CONFIG_FTRACE=n | ||
| 30 | # Not supported on MicroBlaze | ||
| 31 | CONFIG_SERIO_I8042=n | ||
| 32 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.scc b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.scc new file mode 100644 index 00000000..955e0275 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.scc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | include arch/microblaze/microblaze.scc | ||
| 2 | |||
| 3 | kconf hardware microblaze.cfg | ||
| 4 | |||
| 5 | include features/xilinx/xilinx-ip.scc | ||
| 6 | |||
| 7 | include features/scsi/scsi.scc | ||
| 8 | include features/scsi/scsi-generic.scc | ||
| 9 | include features/scsi/disk.scc | ||
| 10 | |||
| 11 | include features/mtd/mtd.scc | ||
| 12 | include features/uio/uio.scc | ||
| 13 | |||
| 14 | include cfg/fs/debugfs.scc | ||
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq-standard.scc b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq-standard.scc new file mode 100644 index 00000000..05ab5ec1 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq-standard.scc | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | define KMACHINE zynq | ||
| 2 | define KTYPE standard | ||
| 3 | define KARCH arm | ||
| 4 | |||
| 5 | include ktypes/standard/standard.scc | ||
| 6 | |||
| 7 | include bsp/zynq/zynq.scc | ||
| 8 | |||
| 9 | # Common board drivers | ||
| 10 | include features/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/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.cfg b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.cfg new file mode 100644 index 00000000..3b5e2eb5 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.cfg | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | |||
| 2 | # Arch Feature Selections | ||
| 3 | CONFIG_ARCH_VEXPRESS=y | ||
| 4 | CONFIG_ARCH_ZYNQ=y | ||
| 5 | CONFIG_VFP=y | ||
| 6 | CONFIG_NEON=y | ||
| 7 | CONFIG_AEABI=y | ||
| 8 | |||
| 9 | # CPU Erratas | ||
| 10 | CONFIG_ARM_ERRATA_754322=y | ||
| 11 | CONFIG_ARM_ERRATA_754327=y | ||
| 12 | CONFIG_ARM_ERRATA_764369=y | ||
| 13 | CONFIG_ARM_ERRATA_775420=y | ||
| 14 | |||
| 15 | # SMP | ||
| 16 | CONFIG_SMP=y | ||
| 17 | CONFIG_SCHED_MC=y | ||
| 18 | CONFIG_SCHED_SMT=y | ||
| 19 | |||
| 20 | # Memory | ||
| 21 | CONFIG_HIGHMEM=y | ||
| 22 | |||
| 23 | # Power management | ||
| 24 | CONFIG_PM_RUNTIME=y | ||
| 25 | |||
| 26 | # Thermal | ||
| 27 | CONFIG_THERMAL=y | ||
| 28 | CONFIG_CPU_THERMAL=y | ||
| 29 | |||
| 30 | # CPU Frequency | ||
| 31 | CONFIG_CPU_FREQ=y | ||
| 32 | CONFIG_CPU_FREQ_STAT_DETAILS=y | ||
| 33 | CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y | ||
| 34 | CONFIG_CPU_FREQ_GOV_PERFORMANCE=y | ||
| 35 | CONFIG_CPU_FREQ_GOV_POWERSAVE=y | ||
| 36 | CONFIG_CPU_FREQ_GOV_ONDEMAND=y | ||
| 37 | CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y | ||
| 38 | CONFIG_GENERIC_CPUFREQ_CPU0=y | ||
| 39 | CONFIG_CPU_IDLE=y | ||
| 40 | CONFIG_ARM_ZYNQ_CPUIDLE=y | ||
| 41 | |||
| 42 | # EDAC | ||
| 43 | CONFIG_EDAC=y | ||
| 44 | CONFIG_EDAC_MM_EDAC=y | ||
| 45 | CONFIG_EDAC_ZYNQ=y | ||
| 46 | |||
| 47 | # Device tree | ||
| 48 | CONFIG_PROC_DEVICETREE=y | ||
| 49 | |||
| 50 | # Debug | ||
| 51 | CONFIG_PRINTK_TIME=y | ||
| 52 | CONFIG_EARLY_PRINTK=y | ||
| 53 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.scc b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.scc new file mode 100644 index 00000000..358f6596 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.scc | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | kconf hardware zynq.cfg | ||
| 2 | |||
| 3 | include cfg/timer/no_hz.scc | ||
| 4 | |||
| 5 | include features/xilinx/zynq7-ip.scc | ||
| 6 | include features/xilinx/xilinx-ip.scc | ||
| 7 | |||
| 8 | include cfg/usb-mass-storage.scc | ||
| 9 | |||
| 10 | include features/scsi/scsi.scc | ||
| 11 | include features/scsi/scsi-generic.scc | ||
| 12 | include features/scsi/disk.scc | ||
| 13 | |||
| 14 | include features/mtd/mtd.scc | ||
| 15 | include features/uio/uio.scc | ||
| 16 | |||
| 17 | include cfg/fs/debugfs.scc | ||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.cfg b/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.cfg new file mode 100644 index 00000000..17b4ece4 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.cfg | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | |||
| 2 | # MTD | ||
| 3 | CONFIG_MTD=y | ||
| 4 | CONFIG_MTD_CMDLINE_PARTS=y | ||
| 5 | CONFIG_MTD_BLOCK=y | ||
| 6 | CONFIG_MTD_CFI=y | ||
| 7 | CONFIG_MTD_CFI_AMDSTD=y | ||
| 8 | CONFIG_MTD_CFI_INTELEXT=y | ||
| 9 | CONFIG_MTD_CFI_STAA=y | ||
| 10 | CONFIG_MTD_PHYSMAP=y | ||
| 11 | CONFIG_MTD_PHYSMAP_OF=y | ||
| 12 | CONFIG_MTD_M25P80=y | ||
| 13 | CONFIG_MTD_NAND=y | ||
| 14 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.scc b/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.scc new file mode 100644 index 00000000..48925c6b --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.scc | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Enable MTD Support" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconfig hardware mtd.cfg | ||
| 5 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg b/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg new file mode 100644 index 00000000..70c9c29c --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg | |||
| @@ -0,0 +1 @@ | |||
| CONFIG_RTC_CLASS=y | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.scc b/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.scc new file mode 100644 index 00000000..cb1a0a3d --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.scc | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Enable RTC Class Support" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconfig hardware rtc.cfg | ||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.cfg b/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.cfg new file mode 100644 index 00000000..70210a01 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.cfg | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | |||
| 2 | # Generic SCSI | ||
| 3 | CONFIG_CHR_DEV_SG=y | ||
| 4 | CONFIG_SCSI_MULTI_LUN=y | ||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.scc b/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.scc new file mode 100644 index 00000000..ad4a5681 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.scc | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Enable Options for SCSI Generic Support" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconfig hardware scsi-generic.cfg | ||
| 5 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/uio/uio.cfg b/recipes-kernel/linux/config/xilinx-common/features/uio/uio.cfg new file mode 100644 index 00000000..6c066070 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/uio/uio.cfg | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | CONFIG_UIO=y | ||
| 2 | CONFIG_UIO_PDRV_GENIRQ=y | ||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/uio/uio.scc b/recipes-kernel/linux/config/xilinx-common/features/uio/uio.scc new file mode 100644 index 00000000..9697949a --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/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/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.cfg b/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.cfg new file mode 100644 index 00000000..c2afc9a8 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.cfg | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | # Common drivers for Zynq Boards | ||
| 2 | |||
| 3 | # Ethernet PHYs | ||
| 4 | CONFIG_PHYLIB=y | ||
| 5 | CONFIG_MARVELL_PHY=y | ||
| 6 | CONFIG_VITESSE_PHY=y | ||
| 7 | |||
| 8 | # I2C | ||
| 9 | CONFIG_I2C=y | ||
| 10 | CONFIG_I2C_CHARDEV=y | ||
| 11 | CONFIG_I2C_MUX=y | ||
| 12 | CONFIG_I2C_MUX_PCA954x=y | ||
| 13 | |||
| 14 | # EEPROM | ||
| 15 | CONFIG_EEPROM_AT24=y | ||
| 16 | CONFIG_EEPROM_AT25=y | ||
| 17 | |||
| 18 | # Hardware monitors | ||
| 19 | CONFIG_PMBUS=y | ||
| 20 | CONFIG_SENSORS_PMBUS=y | ||
| 21 | CONFIG_REGULATOR=y | ||
| 22 | CONFIG_SENSORS_UCD9000=y | ||
| 23 | CONFIG_SENSORS_UCD9200=y | ||
| 24 | |||
| 25 | # RTC drivers | ||
| 26 | CONFIG_RTC_DRV_PCF8563=y | ||
| 27 | |||
| 28 | # SI570 I2C Device | ||
| 29 | CONFIG_COMMON_CLK_SI570=y | ||
| 30 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.scc b/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.scc new file mode 100644 index 00000000..480158ee --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.scc | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Xilinx Evaluation Board Common Drivers" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconfig hardware board-common.cfg | ||
| 5 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.cfg b/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.cfg new file mode 100644 index 00000000..bc1c6ee1 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.cfg | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | |||
| 2 | # Serial/UART | ||
| 3 | CONFIG_SERIAL=y | ||
| 4 | CONFIG_SERIAL_CONSOLE=y | ||
| 5 | CONFIG_SERIAL_8250=y | ||
| 6 | CONFIG_SERIAL_8250_CONSOLE=y | ||
| 7 | CONFIG_SERIAL_UARTLITE=y | ||
| 8 | CONFIG_SERIAL_UARTLITE_CONSOLE=y | ||
| 9 | |||
| 10 | # DMA | ||
| 11 | CONFIG_DMADEVICES=y | ||
| 12 | CONFIG_XILINX_DMA_ENGINES=y | ||
| 13 | CONFIG_XILINX_AXIDMA=y | ||
| 14 | CONFIG_XILINX_AXIVDMA=y | ||
| 15 | CONFIG_XILINX_AXICDMA=y | ||
| 16 | |||
| 17 | # Watchdog | ||
| 18 | CONFIG_WATCHDOG=y | ||
| 19 | CONFIG_XILINX_WATCHDOG=y | ||
| 20 | |||
| 21 | # Ethernet | ||
| 22 | CONFIG_XILINX_EMACLITE=y | ||
| 23 | CONFIG_XILINX_AXI_EMAC=y | ||
| 24 | |||
| 25 | # GPIO | ||
| 26 | CONFIG_GPIOLIB=y | ||
| 27 | CONFIG_OF_GPIO=y | ||
| 28 | CONFIG_GPIO_SYSFS=y | ||
| 29 | CONFIG_GPIO_XILINX=y | ||
| 30 | |||
| 31 | # I2C | ||
| 32 | CONFIG_I2C=y | ||
| 33 | CONFIG_I2C_XILINX=y | ||
| 34 | |||
| 35 | # SPI | ||
| 36 | CONFIG_SPI=y | ||
| 37 | CONFIG_SPI_XILINX=y | ||
| 38 | |||
| 39 | # PCI(e) | ||
| 40 | CONFIG_XILINX_AXIPCIE=y | ||
| 41 | CONFIG_PCI_MSI=y | ||
| 42 | |||
| 43 | # Xilinx Traffic Generator | ||
| 44 | CONFIG_XILINX_TRAFGEN=y | ||
| 45 | |||
| 46 | # Xilinx XADC | ||
| 47 | CONFIG_IIO=y | ||
| 48 | CONFIG_XILINX_XADC=y | ||
| 49 | |||
| 50 | # Xilinx SYSACE | ||
| 51 | CONFIG_XILINX_SYSACE=y | ||
| 52 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.scc b/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.scc new file mode 100644 index 00000000..e4f75d7e --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.scc | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Xilinx Soft IP Core Drivers/Support" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconfig hardware xilinx-ip.cfg | ||
| 5 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.cfg b/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.cfg new file mode 100644 index 00000000..340d3fb2 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.cfg | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | |||
| 2 | # UART | ||
| 3 | CONFIG_SERIAL_XILINX_PS_UART=y | ||
| 4 | CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y | ||
| 5 | |||
| 6 | # devcfg | ||
| 7 | CONFIG_XILINX_DEVCFG=y | ||
| 8 | |||
| 9 | # SRAM | ||
| 10 | CONFIG_SRAM=y | ||
| 11 | |||
| 12 | # DMA | ||
| 13 | CONFIG_DMADEVICES=y | ||
| 14 | CONFIG_XILINX_DMA_ENGINES=y | ||
| 15 | CONFIG_PL330_DMA=y | ||
| 16 | |||
| 17 | # PL310 | ||
| 18 | CONFIG_PL310_ERRATA_588369=y | ||
| 19 | CONFIG_PL310_ERRATA_727915=y | ||
| 20 | CONFIG_PL310_ERRATA_769419=y | ||
| 21 | |||
| 22 | # Watchdog | ||
| 23 | CONFIG_WATCHDOG=y | ||
| 24 | CONFIG_CADENCE_WATCHDOG=y | ||
| 25 | |||
| 26 | # Ethernet | ||
| 27 | CONFIG_MACB=y | ||
| 28 | CONFIG_XILINX_PS_EMAC=y | ||
| 29 | |||
| 30 | # GPIO | ||
| 31 | CONFIG_GPIO_SYSFS=y | ||
| 32 | CONFIG_GPIO_ZYNQ=y | ||
| 33 | |||
| 34 | # I2C | ||
| 35 | CONFIG_I2C=y | ||
| 36 | CONFIG_I2C_CADENCE=y | ||
| 37 | |||
| 38 | # SPI | ||
| 39 | CONFIG_SPI=y | ||
| 40 | CONFIG_SPI_CADENCE=y | ||
| 41 | CONFIG_SPI_ZYNQ_QSPI=y | ||
| 42 | |||
| 43 | # CAN | ||
| 44 | CONFIG_CAN=y | ||
| 45 | CONFIG_CAN_XILINXCAN=y | ||
| 46 | |||
| 47 | # MMC/SD | ||
| 48 | CONFIG_MMC=y | ||
| 49 | CONFIG_MMC_SDHCI=y | ||
| 50 | CONFIG_MMC_SDHCI_PLTFM=y | ||
| 51 | CONFIG_MMC_SDHCI_OF_ARASAN=y | ||
| 52 | |||
| 53 | # NAND | ||
| 54 | CONFIG_MTD_NAND_PL353=y | ||
| 55 | |||
| 56 | # USB (+otg) | ||
| 57 | CONFIG_USB=y | ||
| 58 | CONFIG_USB_OTG=y | ||
| 59 | CONFIG_USB_EHCI_HCD=y | ||
| 60 | CONFIG_USB_EHCI_ZYNQ=y | ||
| 61 | CONFIG_USB_ZYNQ_ERRATA_DT654401=y | ||
| 62 | CONFIG_USB_GADGET=y | ||
| 63 | CONFIG_USB_GADGET_XILINX=y | ||
| 64 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.scc b/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.scc new file mode 100644 index 00000000..3a7f8ce4 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.scc | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Xilinx Zynq 7000 IP Core Drivers/Support" | ||
| 2 | define KFEATURE_COMPATIBILITY board | ||
| 3 | |||
| 4 | kconfig hardware zynq7-ip.cfg | ||
| 5 | |||
diff --git a/recipes-kernel/linux/linux-xilinx-configs.inc b/recipes-kernel/linux/linux-xilinx-configs.inc new file mode 100644 index 00000000..4d9efcc3 --- /dev/null +++ b/recipes-kernel/linux/linux-xilinx-configs.inc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | # This include file sets up the xilinx config fragments, these | ||
| 2 | # fragments build on top of the base config infrastructure provided in | ||
| 3 | # the linux-yocto/kernel-yocto recipes and classes in core layer of OE. | ||
| 4 | |||
| 5 | FILESEXTRAPATHS_prepend := "${THISDIR}/config:" | ||
| 6 | |||
| 7 | SRC_URI_append += " \ | ||
| 8 | file://xilinx-common;type=kmeta;destsuffix=xilinx-common \ | ||
| 9 | file://xilinx-machine;type=kmeta;destsuffix=xilinx-machine \ | ||
| 10 | " | ||
| 11 | |||
diff --git a/recipes-kernel/linux/linux-xilinx-machines.inc b/recipes-kernel/linux/linux-xilinx-machines.inc new file mode 100644 index 00000000..d448d71a --- /dev/null +++ b/recipes-kernel/linux/linux-xilinx-machines.inc | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | # Setup for MicroBlaze and Zynq architectures | ||
| 2 | |||
| 3 | COMPATIBLE_MACHINE_zynq = "zynq" | ||
| 4 | KMACHINE_zynq ?= "zynq" | ||
| 5 | |||
| 6 | COMPATIBLE_MACHINE_microblaze = "microblaze" | ||
| 7 | KMACHINE_microblaze ?= "microblaze" | ||
| 8 | |||
| 9 | # Default kernel config fragements for specific machines | ||
| 10 | |||
| 11 | KERNEL_FEATURES_append_qemumicroblaze += "bsp/qemumicroblaze/qemumicroblaze.scc" | ||
| 12 | KERNEL_FEATURES_append_kc705-trd-microblazeel += "bsp/kc705-trd-microblazeel/kc705-trd-microblazeel.scc" | ||
| 13 | |||
| 14 | # MicroBlaze is a uImage target, but its not called 'uImage' | ||
| 15 | DEPENDS_append_microblaze += "u-boot-mkimage-native" | ||
| 16 | |||
diff --git a/recipes-kernel/linux/linux-yocto-dev.bbappend b/recipes-kernel/linux/linux-yocto-dev.bbappend index b9b6b9e3..651e0d72 100644 --- a/recipes-kernel/linux/linux-yocto-dev.bbappend +++ b/recipes-kernel/linux/linux-yocto-dev.bbappend | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | 1 | ||
| 2 | require linux-machine-common.inc | 2 | require linux-xilinx-configs.inc |
| 3 | require linux-xilinx-machines.inc | ||
| 3 | 4 | ||
| 4 | COMPATIBLE_MACHINE_zynq = "zynq" | ||
| 5 | COMPATIBLE_MACHINE_microblaze = "microblaze" | ||
diff --git a/recipes-kernel/linux/linux-yocto_3.10.bbappend b/recipes-kernel/linux/linux-yocto_3.10.bbappend index 3601d587..a8b72e04 100644 --- a/recipes-kernel/linux/linux-yocto_3.10.bbappend +++ b/recipes-kernel/linux/linux-yocto_3.10.bbappend | |||
| @@ -1,8 +1,6 @@ | |||
| 1 | 1 | ||
| 2 | require linux-machine-common.inc | 2 | require linux-xilinx-configs.inc |
| 3 | 3 | require linux-xilinx-machines.inc | |
| 4 | COMPATIBLE_MACHINE_zynq = "zynq" | ||
| 5 | COMPATIBLE_MACHINE_microblaze = "microblaze" | ||
| 6 | 4 | ||
| 7 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" | 5 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" |
| 8 | SRC_URI_append_microblaze += "file://ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch" | 6 | SRC_URI_append_microblaze += "file://ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch" |
diff --git a/recipes-kernel/linux/linux-yocto_3.14.bbappend b/recipes-kernel/linux/linux-yocto_3.14.bbappend index b9b6b9e3..651e0d72 100644 --- a/recipes-kernel/linux/linux-yocto_3.14.bbappend +++ b/recipes-kernel/linux/linux-yocto_3.14.bbappend | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | 1 | ||
| 2 | require linux-machine-common.inc | 2 | require linux-xilinx-configs.inc |
| 3 | require linux-xilinx-machines.inc | ||
| 3 | 4 | ||
| 4 | COMPATIBLE_MACHINE_zynq = "zynq" | ||
| 5 | COMPATIBLE_MACHINE_microblaze = "microblaze" | ||
