[linux-yocto] [kernel-cache][RFC PATCH 7/7] features/debug/debug-dyndbg: Add feature to enable dynamic debug

2017-07-04 Thread Nathan Rossi
Add a feature to enable the kernel DYNAMIC_DEBUG config which allows for
dynamic printing of debug messages. Kernel debug messages are normally
not enabled in the kernel unless manually defining DEBUG in code files.
Dynamic debug allows for the messages to be embedded but toggled
dynamically during run time (via boot parameters or from a sysfs
interface).

Enabling this option is useful when debugging multiple parts of the
kernel as well as to allow for enabling of debug messages without
needing to modify the source.

Signed-off-by: Nathan Rossi 
---
 features/debug/debug-dyndbg.cfg | 1 +
 features/debug/debug-dyndbg.scc | 4 
 2 files changed, 5 insertions(+)
 create mode 100644 features/debug/debug-dyndbg.cfg
 create mode 100644 features/debug/debug-dyndbg.scc

diff --git a/features/debug/debug-dyndbg.cfg b/features/debug/debug-dyndbg.cfg
new file mode 100644
index 00..5698f5ebf6
--- /dev/null
+++ b/features/debug/debug-dyndbg.cfg
@@ -0,0 +1 @@
+CONFIG_DYNAMIC_DEBUG=y
diff --git a/features/debug/debug-dyndbg.scc b/features/debug/debug-dyndbg.scc
new file mode 100644
index 00..b48de2d32b
--- /dev/null
+++ b/features/debug/debug-dyndbg.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable dynamic debug printk"
+define KFEATURE_COMPATIBILITY all
+
+kconf non-hardware debug-dyndbg.cfg
-- 
2.13.2

-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


[linux-yocto] [kernel-cache][RFC PATCH 5/7] bsp/qemumicroblazeeb: Add BSP configs for qemumicroblazeeb

2017-07-04 Thread Nathan Rossi
Create configs for the qemumicroblazeeb machine. This includes both
-standard and -tiny configs.

Signed-off-by: Nathan Rossi 
---
 bsp/qemumicroblaze/qemumicroblazeeb-standard.scc | 15 +++
 bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc | 12 
 bsp/qemumicroblaze/qemumicroblazeeb.cfg  | 15 +++
 3 files changed, 42 insertions(+)
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeeb-standard.scc
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeeb.cfg

diff --git a/bsp/qemumicroblaze/qemumicroblazeeb-standard.scc 
b/bsp/qemumicroblaze/qemumicroblazeeb-standard.scc
new file mode 100644
index 00..ae93b49a11
--- /dev/null
+++ b/bsp/qemumicroblaze/qemumicroblazeeb-standard.scc
@@ -0,0 +1,15 @@
+define KMACHINE qemumicroblazeeb
+define KTYPE standard
+define KARCH microblaze
+
+include ktypes/standard/standard.scc
+
+include arch/microblaze/microblaze.scc
+kconf hardware qemumicroblazeeb.cfg
+
+include bsp/xilinx/soc/drivers-softip.scc
+include bsp/xilinx/board-common.scc
+
+# default policy for standard kernels
+include features/latencytop/latencytop.scc
+include features/profiling/profiling.scc
diff --git a/bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc 
b/bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc
new file mode 100644
index 00..2d1bb74132
--- /dev/null
+++ b/bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc
@@ -0,0 +1,12 @@
+define KMACHINE qemumicroblazeeb
+define KTYPE tiny
+define KARCH microblaze
+
+include ktypes/tiny/tiny.scc
+
+include arch/microblaze/microblaze.scc
+kconf hardware qemumicroblazeeb.cfg
+
+include bsp/xilinx/soc/drivers-softip.scc
+include bsp/xilinx/board-common.scc
+
diff --git a/bsp/qemumicroblaze/qemumicroblazeeb.cfg 
b/bsp/qemumicroblaze/qemumicroblazeeb.cfg
new file mode 100644
index 00..0f635c1652
--- /dev/null
+++ b/bsp/qemumicroblaze/qemumicroblazeeb.cfg
@@ -0,0 +1,15 @@
+
+CONFIG_XILINX_MICROBLAZE0_FAMILY="spartan3"
+
+# CPU ISA Config
+CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1
+CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR=1
+CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1
+CONFIG_XILINX_MICROBLAZE0_USE_DIV=0
+CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=1
+CONFIG_XILINX_MICROBLAZE0_USE_FPU=0
+CONFIG_XILINX_MICROBLAZE0_HW_VER="7.10.d"
+
+# Memory Base Address
+CONFIG_KERNEL_BASE_ADDR=0x9000
+
-- 
2.13.2

-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


[linux-yocto] [kernel-cache][RFC PATCH 6/7] bsp/xilinx/zynq: Add a general purpose KMACHINE for Zynq targets

2017-07-04 Thread Nathan Rossi
Add a general purpose KMACHINE that can be used for general purpose Zynq
BSPs. The main configuration of the Zynq SoC can be configured via
device tree, allowing for a common kernel config. This allows for a
single KMACHINE to target multiple BSPs without needing to be directly
configured for the platform/soc.

This adds configs for -standard and -tiny.

Signed-off-by: Nathan Rossi 
---
 bsp/xilinx/soc/drivers-zynq.cfg | 75 +
 bsp/xilinx/soc/zynq.cfg | 43 +++
 bsp/xilinx/soc/zynq.scc | 10 ++
 bsp/xilinx/zynq-standard.scc| 15 +
 bsp/xilinx/zynq-tiny.scc|  9 +
 5 files changed, 152 insertions(+)
 create mode 100644 bsp/xilinx/soc/drivers-zynq.cfg
 create mode 100644 bsp/xilinx/soc/zynq.cfg
 create mode 100644 bsp/xilinx/soc/zynq.scc
 create mode 100644 bsp/xilinx/zynq-standard.scc
 create mode 100644 bsp/xilinx/zynq-tiny.scc

diff --git a/bsp/xilinx/soc/drivers-zynq.cfg b/bsp/xilinx/soc/drivers-zynq.cfg
new file mode 100644
index 00..daffe670b3
--- /dev/null
+++ b/bsp/xilinx/soc/drivers-zynq.cfg
@@ -0,0 +1,75 @@
+
+# UART
+CONFIG_TTY=y
+CONFIG_SERIAL_EARLYCON=y
+CONFIG_SERIAL_XILINX_PS_UART=y
+CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y
+
+# SRAM
+CONFIG_SRAM=y
+
+# EDAC
+CONFIG_EDAC=y
+CONFIG_EDAC_MM_EDAC=y
+CONFIG_EDAC_SYNOPSYS=y
+
+# DMA
+CONFIG_DMADEVICES=y
+CONFIG_PL330_DMA=y
+
+# PL310
+CONFIG_CACHE_L2X0=y
+CONFIG_PL310_ERRATA_588369=y
+CONFIG_PL310_ERRATA_727915=y
+CONFIG_PL310_ERRATA_769419=y
+
+# Watchdog
+CONFIG_WATCHDOG=y
+CONFIG_CADENCE_WATCHDOG=y
+
+# Ethernet
+CONFIG_NET_CADENCE=y
+CONFIG_MACB=y
+
+# GPIO
+CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_ZYNQ=y
+
+# I2C
+CONFIG_I2C=y
+CONFIG_I2C_CADENCE=y
+
+# SPI
+CONFIG_SPI=y
+CONFIG_SPI_CADENCE=y
+
+# CAN
+CONFIG_CAN=y
+CONFIG_CAN_DEV=y
+CONFIG_CAN_XILINXCAN=y
+
+# MMC/SD
+CONFIG_MMC=y
+CONFIG_MMC_BLOCK=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_OF_ARASAN=y
+
+# USB
+CONFIG_USB_SUPPORT=y
+CONFIG_USB=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_CHIPIDEA=y
+CONFIG_USB_CHIPIDEA_UDC=y
+CONFIG_USB_CHIPIDEA_HOST=y
+CONFIG_USB_ULPI=y
+CONFIG_NOP_USB_XCEIV=y
+CONFIG_USB_OTG=y
+CONFIG_USB_GADGET=y
+
+# FPGA
+CONFIG_FPGA=y
+CONFIG_FPGA_MGR_ZYNQ_FPGA=y
+CONFIG_FPGA_REGION=y
+CONFIG_FPGA_BRIDGE=y
+
diff --git a/bsp/xilinx/soc/zynq.cfg b/bsp/xilinx/soc/zynq.cfg
new file mode 100644
index 00..bfc74460fb
--- /dev/null
+++ b/bsp/xilinx/soc/zynq.cfg
@@ -0,0 +1,43 @@
+
+# Arch Feature Selections
+CONFIG_MMU=y
+CONFIG_ARCH_MULTI_V7=y
+CONFIG_ARCH_VEXPRESS=y
+CONFIG_ARCH_ZYNQ=y
+CONFIG_VFP=y
+CONFIG_NEON=y
+CONFIG_AEABI=y
+
+# CPU Erratas
+CONFIG_ARM_ERRATA_754322=y
+CONFIG_ARM_ERRATA_754327=y
+CONFIG_ARM_ERRATA_764369=y
+CONFIG_ARM_ERRATA_775420=y
+
+# SMP
+CONFIG_SMP=y
+CONFIG_ARM_CPU_TOPOLOGY=y
+CONFIG_SCHED_MC=y
+CONFIG_SCHED_SMT=y
+
+# Memory
+CONFIG_HIGHMEM=y
+
+# Thermal
+CONFIG_THERMAL=y
+CONFIG_THERMAL_OF=y
+CONFIG_CPU_THERMAL=y
+
+# CPU Frequency
+CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_STAT=y
+CONFIG_CPU_FREQ_STAT_DETAILS=y
+CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
+CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
+CONFIG_CPUFREQ_DT=y
+CONFIG_CPU_IDLE=y
+CONFIG_ARM_ZYNQ_CPUIDLE=y
+
diff --git a/bsp/xilinx/soc/zynq.scc b/bsp/xilinx/soc/zynq.scc
new file mode 100644
index 00..9a0e88b903
--- /dev/null
+++ b/bsp/xilinx/soc/zynq.scc
@@ -0,0 +1,10 @@
+define KFEATURE_DESCRIPTION "Xilinx Zynq 7000 SoC"
+define KFEATURE_COMPATIBILITY board
+
+include features/net/net.scc
+include cfg/timer/no_hz.scc
+
+kconf hardware zynq.cfg
+kconf hardware drivers-zynq.cfg
+include bsp/xilinx/soc/drivers-softip.scc
+
diff --git a/bsp/xilinx/zynq-standard.scc b/bsp/xilinx/zynq-standard.scc
new file mode 100644
index 00..b58461ae86
--- /dev/null
+++ b/bsp/xilinx/zynq-standard.scc
@@ -0,0 +1,15 @@
+define KMACHINE zynq
+define KTYPE standard
+define KARCH arm
+
+include ktypes/standard/standard.scc
+
+include bsp/xilinx/soc/zynq.scc
+include bsp/xilinx/board-common.scc
+
+include features/input/input.scc
+include cfg/usb-mass-storage.scc
+
+# default policy for standard kernels
+include features/latencytop/latencytop.scc
+include features/profiling/profiling.scc
diff --git a/bsp/xilinx/zynq-tiny.scc b/bsp/xilinx/zynq-tiny.scc
new file mode 100644
index 00..eeb7db1ebe
--- /dev/null
+++ b/bsp/xilinx/zynq-tiny.scc
@@ -0,0 +1,9 @@
+define KMACHINE zynq
+define KTYPE tiny
+define KARCH arm
+
+include ktypes/tiny/tiny.scc
+
+include bsp/xilinx/soc/zynq.scc
+include bsp/xilinx/board-common.scc
+
-- 
2.13.2

-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


[linux-yocto] [kernel-cache][RFC PATCH 4/7] bsp/qemumicroblazeel: Add BSP configs for qemumicroblazeel

2017-07-04 Thread Nathan Rossi
Create configs for the qemumicroblazeel machine. This includes both
-standard and -tiny configs.

Signed-off-by: Nathan Rossi 
---
 bsp/qemumicroblaze/qemumicroblazeel-standard.scc | 15 +++
 bsp/qemumicroblaze/qemumicroblazeel-tiny.scc | 12 
 bsp/qemumicroblaze/qemumicroblazeel.cfg  | 15 +++
 3 files changed, 42 insertions(+)
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeel-standard.scc
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeel-tiny.scc
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeel.cfg

diff --git a/bsp/qemumicroblaze/qemumicroblazeel-standard.scc 
b/bsp/qemumicroblaze/qemumicroblazeel-standard.scc
new file mode 100644
index 00..f992d9a5e1
--- /dev/null
+++ b/bsp/qemumicroblaze/qemumicroblazeel-standard.scc
@@ -0,0 +1,15 @@
+define KMACHINE qemumicroblazeel
+define KTYPE standard
+define KARCH microblaze
+
+include ktypes/standard/standard.scc
+
+include arch/microblaze/microblaze.scc
+kconf hardware qemumicroblazeel.cfg
+
+include bsp/xilinx/soc/drivers-softip.scc
+include bsp/xilinx/board-common.scc
+
+# default policy for standard kernels
+include features/latencytop/latencytop.scc
+include features/profiling/profiling.scc
diff --git a/bsp/qemumicroblaze/qemumicroblazeel-tiny.scc 
b/bsp/qemumicroblaze/qemumicroblazeel-tiny.scc
new file mode 100644
index 00..199e62cf7f
--- /dev/null
+++ b/bsp/qemumicroblaze/qemumicroblazeel-tiny.scc
@@ -0,0 +1,12 @@
+define KMACHINE qemumicroblazeel
+define KTYPE tiny
+define KARCH microblaze
+
+include ktypes/tiny/tiny.scc
+include arch/microblaze/microblaze.scc
+
+kconf hardware qemumicroblazeel.cfg
+
+include bsp/xilinx/soc/drivers-softip.scc
+include bsp/xilinx/board-common.scc
+
diff --git a/bsp/qemumicroblaze/qemumicroblazeel.cfg 
b/bsp/qemumicroblaze/qemumicroblazeel.cfg
new file mode 100644
index 00..771aec069c
--- /dev/null
+++ b/bsp/qemumicroblaze/qemumicroblazeel.cfg
@@ -0,0 +1,15 @@
+
+CONFIG_XILINX_MICROBLAZE0_FAMILY="virtex6"
+
+# CPU ISA Config
+CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1
+CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR=1
+CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1
+CONFIG_XILINX_MICROBLAZE0_USE_DIV=1
+CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=2
+CONFIG_XILINX_MICROBLAZE0_USE_FPU=1
+CONFIG_XILINX_MICROBLAZE0_HW_VER="8.50.a"
+
+# Memory Base Address
+CONFIG_KERNEL_BASE_ADDR=0x5000
+
-- 
2.13.2

-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


[linux-yocto] [kernel-cache][RFC PATCH 3/7] bsp/xilinx/soc/drivers: Add Xilinx Soft IP drivers fragment

2017-07-04 Thread Nathan Rossi
Add a fragment to enable drivers for Xilinx Soft IP (FPGA devices) which
are used in a number of BSPs including custom MicroBlaze designs.

This fragment has two .cfg files, one is specific to MicroBlaze (kernel
configs have dependency on CONFIG_MICROBLAZE).

Signed-off-by: Nathan Rossi 
---
 bsp/xilinx/soc/drivers-softip-microblaze.cfg |  8 +
 bsp/xilinx/soc/drivers-softip.cfg| 45 
 bsp/xilinx/soc/drivers-softip.scc| 12 
 3 files changed, 65 insertions(+)
 create mode 100644 bsp/xilinx/soc/drivers-softip-microblaze.cfg
 create mode 100644 bsp/xilinx/soc/drivers-softip.cfg
 create mode 100644 bsp/xilinx/soc/drivers-softip.scc

diff --git a/bsp/xilinx/soc/drivers-softip-microblaze.cfg 
b/bsp/xilinx/soc/drivers-softip-microblaze.cfg
new file mode 100644
index 00..f671f7d516
--- /dev/null
+++ b/bsp/xilinx/soc/drivers-softip-microblaze.cfg
@@ -0,0 +1,8 @@
+# MicroBlaze only Xilinx Soft IP drivers
+
+# Xilinx SYSACE
+CONFIG_XILINX_SYSACE=y
+
+# Xilinx HW-ICAP
+CONFIG_XILINX_HWICAP=y
+
diff --git a/bsp/xilinx/soc/drivers-softip.cfg 
b/bsp/xilinx/soc/drivers-softip.cfg
new file mode 100644
index 00..5098d9b2b9
--- /dev/null
+++ b/bsp/xilinx/soc/drivers-softip.cfg
@@ -0,0 +1,45 @@
+# Serial/UART
+CONFIG_TTY=y
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_UARTLITE=y
+CONFIG_SERIAL_UARTLITE_CONSOLE=y
+CONFIG_SERIAL_OF_PLATFORM=y
+
+# DMA
+CONFIG_DMADEVICES=y
+CONFIG_XILINX_DMA=y
+CONFIG_XILINX_VDMA=y
+
+# Watchdog
+CONFIG_WATCHDOG=y
+CONFIG_XILINX_WATCHDOG=y
+
+# Ethernet
+CONFIG_NET_VENDOR_XILINX=y
+CONFIG_XILINX_EMACLITE=y
+CONFIG_XILINX_AXI_EMAC=y
+
+# GPIO
+CONFIG_GPIOLIB=y
+CONFIG_OF_GPIO=y
+CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_XILINX=y
+
+# I2C
+CONFIG_I2C=y
+CONFIG_I2C_XILINX=y
+
+# SPI
+CONFIG_SPI=y
+CONFIG_SPI_XILINX=y
+
+# Xilinx XADC
+CONFIG_IIO=y
+CONFIG_XILINX_XADC=y
+
+# Xilinx AXI USB2 Device
+CONFIG_USB_SUPPORT=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_XILINX=y
+
diff --git a/bsp/xilinx/soc/drivers-softip.scc 
b/bsp/xilinx/soc/drivers-softip.scc
new file mode 100644
index 00..cd6475650f
--- /dev/null
+++ b/bsp/xilinx/soc/drivers-softip.scc
@@ -0,0 +1,12 @@
+define KFEATURE_DESCRIPTION "Xilinx Soft IP Core Drivers"
+define KFEATURE_COMPATIBILITY board
+
+include features/net/net.scc
+
+kconf hardware drivers-softip.cfg
+
+# MicroBlaze only Soft IP drivers
+if [ "$KARCH" = "microblaze" ]; then
+   kconf hardware drivers-softip-microblaze.cfg
+fi
+
-- 
2.13.2

-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


[linux-yocto] [kernel-cache][RFC PATCH 2/7] bsp/xilinx/board-common: Add Xilinx common board fragment for BSPs

2017-07-04 Thread Nathan Rossi
Add a config fragment that enables commonly used configs for Xilinx
boards and systems. This includes a number of board level devices (e.g.
I2C, MTD, Ethernet PHYs, etc.)

Signed-off-by: Nathan Rossi 
---
 bsp/xilinx/board-common.cfg | 71 +
 bsp/xilinx/board-common.scc |  7 +
 2 files changed, 78 insertions(+)
 create mode 100644 bsp/xilinx/board-common.cfg
 create mode 100644 bsp/xilinx/board-common.scc

diff --git a/bsp/xilinx/board-common.cfg b/bsp/xilinx/board-common.cfg
new file mode 100644
index 00..935f8ff7bf
--- /dev/null
+++ b/bsp/xilinx/board-common.cfg
@@ -0,0 +1,71 @@
+# Common Board Drivers
+
+# Ethernet PHYs
+CONFIG_PHYLIB=y
+CONFIG_AMD_PHY=y
+CONFIG_AT803X_PHY=y
+CONFIG_BCM7XXX_PHY=y
+CONFIG_BCM87XX_PHY=y
+CONFIG_BROADCOM_PHY=y
+CONFIG_CICADA_PHY=y
+CONFIG_DAVICOM_PHY=y
+CONFIG_DP83867_PHY=y
+CONFIG_FIXED_PHY=y
+CONFIG_ICPLUS_PHY=y
+CONFIG_LSI_ET1011C_PHY=y
+CONFIG_LXT_PHY=y
+CONFIG_MARVELL_PHY=y
+CONFIG_MICREL_PHY=y
+CONFIG_NATIONAL_PHY=y
+CONFIG_QSEMI_PHY=y
+CONFIG_REALTEK_PHY=y
+CONFIG_SMSC_PHY=y
+CONFIG_VITESSE_PHY=y
+
+# I2C
+CONFIG_I2C=y
+CONFIG_I2C_CHARDEV=y
+CONFIG_I2C_MUX=y
+CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA9541=y
+CONFIG_GPIO_PCA953X=y
+CONFIG_GPIO_PCA953X_IRQ=y
+
+# EEPROM
+CONFIG_EEPROM_AT24=y
+CONFIG_EEPROM_AT25=y
+
+# MTD
+CONFIG_MTD=y
+CONFIG_MTD_SPI_NOR=y
+# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
+CONFIG_MTD_M25P80=y
+CONFIG_MTD_CFI=y
+CONFIG_MTD_CFI_AMDSTD=y
+
+# Hardware monitors
+CONFIG_HWMON=y
+CONFIG_PMBUS=y
+CONFIG_SENSORS_PMBUS=y
+# Power
+CONFIG_SENSORS_UCD9000=y
+CONFIG_SENSORS_UCD9200=y
+CONFIG_SENSORS_INA2XX=y
+CONFIG_SENSORS_MAX20751=y
+
+# Regulators
+CONFIG_REGULATOR=y
+CONFIG_REGULATOR_GPIO=y
+CONFIG_REGULATOR_FIXED_VOLTAGE=y
+
+# Reset/power-off GPIO
+CONFIG_POWER_RESET=y
+CONFIG_POWER_RESET_LTC2952=y
+
+# RTC drivers
+CONFIG_RTC_CLASS=y
+CONFIG_RTC_DRV_PCF8563=y
+
+# SI570 I2C Device
+CONFIG_COMMON_CLK_SI570=y
+
diff --git a/bsp/xilinx/board-common.scc b/bsp/xilinx/board-common.scc
new file mode 100644
index 00..589b1dab7b
--- /dev/null
+++ b/bsp/xilinx/board-common.scc
@@ -0,0 +1,7 @@
+define KFEATURE_DESCRIPTION "Devices/drivers commonly used on Xilinx 
systems/boards"
+define KFEATURE_COMPATIBILITY board
+
+kconf hardware board-common.cfg
+
+include features/leds/leds.scc
+
-- 
2.13.2

-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


[linux-yocto] [kernel-cache][RFC PATCH 1/7] arch/microblaze: Add config fragments for the MicroBlaze architecture

2017-07-04 Thread Nathan Rossi
Add the baseline configuration for the MicroBlaze architecture. This
only enables two configs, and sets up the default tick as 100 hz.

MicroBlaze is available in the mainline kernel and requires no
additional patches.

Signed-off-by: Nathan Rossi 
---
 arch/microblaze/microblaze.cfg | 18 ++
 arch/microblaze/microblaze.scc |  6 ++
 2 files changed, 24 insertions(+)
 create mode 100644 arch/microblaze/microblaze.cfg
 create mode 100644 arch/microblaze/microblaze.scc

diff --git a/arch/microblaze/microblaze.cfg b/arch/microblaze/microblaze.cfg
new file mode 100644
index 00..c4dd6bf58c
--- /dev/null
+++ b/arch/microblaze/microblaze.cfg
@@ -0,0 +1,18 @@
+
+CONFIG_MICROBLAZE=y
+
+# Memory
+CONFIG_MMU=y
+CONFIG_HIGHMEM=y
+
+# Default Arch Configuration
+CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1
+CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR=1
+CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1
+CONFIG_XILINX_MICROBLAZE0_USE_DIV=0
+CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=0
+CONFIG_XILINX_MICROBLAZE0_USE_FPU=0
+
+# Disable FTRACE, does not work with MicroBlaze
+# CONFIG_FTRACE is not set
+
diff --git a/arch/microblaze/microblaze.scc b/arch/microblaze/microblaze.scc
new file mode 100644
index 00..2b3aba2c08
--- /dev/null
+++ b/arch/microblaze/microblaze.scc
@@ -0,0 +1,6 @@
+
+if [ "$KARCH" = "microblaze" ]; then
+   kconf hardware microblaze.cfg
+   include cfg/timer/hz_100.scc
+fi
+
-- 
2.13.2

-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


[linux-yocto] [kernel-cache][RFC PATCH 0/7] MicroBlaze and Zynq BSP configuration

2017-07-04 Thread Nathan Rossi
Most of this configuration has existed in the meta-xilinx layer for
quite some time for use with linux-yocto and Xilinx's vendor tree
kernel, linux-xlnx.

The goal is to enable the use of the MicroBlaze architecture in OE-Core
including the addition of QEMU machines (qemumicroblazeel,
qemumicroblazeeb), this relies on having configuration for the BSPs in
linux-yocto. This series adds the BSP configs for these machines
including both standard and tiny kernel types, as well as fragments for
configuring Xilinx Soft IP drivers.

Also included are Zynq SoC configuration fragments and a generalised
machine config (targeting the SoC for both standard and tiny kernel
types).

Support for MicroBlaze and Zynq has been available in upstream and
linux-yocto for a number of releases. This series does not require any
patching of the kernel source to enable any functionality of the target
BSPs and is purely kernel configuration.

Additionally included in this series is a fragment for debug purposes
that enables the kernels DEBUG_DYNAMIC feature.

Nathan Rossi (7):
  arch/microblaze: Add config fragments for the MicroBlaze architecture
  bsp/xilinx/board-common: Add Xilinx common board fragment for BSPs
  bsp/xilinx/soc/drivers: Add Xilinx Soft IP drivers fragment
  bsp/qemumicroblazeel: Add BSP configs for qemumicroblazeel
  bsp/qemumicroblazeeb: Add BSP configs for qemumicroblazeeb
  bsp/xilinx/zynq: Add a general purpose KMACHINE for Zynq targets
  features/debug/debug-dyndbg: Add feature to enable dynamic debug

 arch/microblaze/microblaze.cfg   | 18 ++
 arch/microblaze/microblaze.scc   |  6 ++
 bsp/qemumicroblaze/qemumicroblazeeb-standard.scc | 15 +
 bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc | 12 
 bsp/qemumicroblaze/qemumicroblazeeb.cfg  | 15 +
 bsp/qemumicroblaze/qemumicroblazeel-standard.scc | 15 +
 bsp/qemumicroblaze/qemumicroblazeel-tiny.scc | 12 
 bsp/qemumicroblaze/qemumicroblazeel.cfg  | 15 +
 bsp/xilinx/board-common.cfg  | 71 ++
 bsp/xilinx/board-common.scc  |  7 +++
 bsp/xilinx/soc/drivers-softip-microblaze.cfg |  8 +++
 bsp/xilinx/soc/drivers-softip.cfg| 45 ++
 bsp/xilinx/soc/drivers-softip.scc| 12 
 bsp/xilinx/soc/drivers-zynq.cfg  | 75 
 bsp/xilinx/soc/zynq.cfg  | 43 ++
 bsp/xilinx/soc/zynq.scc  | 10 
 bsp/xilinx/zynq-standard.scc | 15 +
 bsp/xilinx/zynq-tiny.scc |  9 +++
 features/debug/debug-dyndbg.cfg  |  1 +
 features/debug/debug-dyndbg.scc  |  4 ++
 20 files changed, 408 insertions(+)
 create mode 100644 arch/microblaze/microblaze.cfg
 create mode 100644 arch/microblaze/microblaze.scc
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeeb-standard.scc
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeeb.cfg
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeel-standard.scc
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeel-tiny.scc
 create mode 100644 bsp/qemumicroblaze/qemumicroblazeel.cfg
 create mode 100644 bsp/xilinx/board-common.cfg
 create mode 100644 bsp/xilinx/board-common.scc
 create mode 100644 bsp/xilinx/soc/drivers-softip-microblaze.cfg
 create mode 100644 bsp/xilinx/soc/drivers-softip.cfg
 create mode 100644 bsp/xilinx/soc/drivers-softip.scc
 create mode 100644 bsp/xilinx/soc/drivers-zynq.cfg
 create mode 100644 bsp/xilinx/soc/zynq.cfg
 create mode 100644 bsp/xilinx/soc/zynq.scc
 create mode 100644 bsp/xilinx/zynq-standard.scc
 create mode 100644 bsp/xilinx/zynq-tiny.scc
 create mode 100644 features/debug/debug-dyndbg.cfg
 create mode 100644 features/debug/debug-dyndbg.scc

-- 
2.13.2
-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto