From: Limeng <meng...@windriver.com>

Signed-off-by: Meng Li <meng...@windriver.com>
---
 bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg             | 268 ++++++++++++++++++
 bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.scc             |  13 +
 bsp/bcm-2xxx-rpi/bcm-2xxx-rpi4-preempt-rt.scc |   8 +
 bsp/bcm-2xxx-rpi/bcm-2xxx-rpi4-standard.scc   |   9 +
 4 files changed, 298 insertions(+)
 create mode 100755 bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg
 create mode 100755 bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.scc
 create mode 100755 bsp/bcm-2xxx-rpi/bcm-2xxx-rpi4-preempt-rt.scc
 create mode 100755 bsp/bcm-2xxx-rpi/bcm-2xxx-rpi4-standard.scc

diff --git a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg 
b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg
new file mode 100755
index 00000000..6cbf3ba8
--- /dev/null
+++ b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg
@@ -0,0 +1,268 @@
+..........................................................................
+.                                WARNING
+.
+. This file is a kernel configuration fragment, and not a full kernel
+. configuration file.  The final kernel configuration is made up of
+. an assembly of processed fragments, each of which is designed to
+. capture a specific part of the final configuration (e.g. platform
+. configuration, feature configuration, and board specific hardware
+. configuration).  For more information on kernel configuration, please
+. consult the product documentation.
+.
+..........................................................................
+
+# System Type
+CONFIG_MMU=y
+CONFIG_ARM64=y
+
+# CPU Core family selection
+CONFIG_ARCH_BCM2835=y
+CONFIG_MAILBOX=y
+CONFIG_BCM2835_MBOX=y
+CONFIG_RASPBERRYPI_FIRMWARE=y
+
+# Bus support
+
+# Kernel Features
+CONFIG_SMP=y
+CONFIG_NR_CPUS=4
+
+# CPU Idle
+# CONFIG_ATAGS is not set
+CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_STAT=y
+CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
+CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
+CONFIG_CPU_IDLE=y
+CONFIG_CPU_IDLE_GOV_MENU=y
+CONFIG_ARM_CPUIDLE=y
+
+# MTD devices
+CONFIG_MTD=y
+CONFIG_MTD_BLOCK=m
+
+# Ethernet devices
+CONFIG_NET=y
+CONFIG_BCMGENET=y
+
+# Serial drivers
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_8250_NR_UARTS=1
+CONFIG_SERIAL_8250_RUNTIME_UARTS=1
+CONFIG_SERIAL_8250_EXTENDED=y
+CONFIG_SERIAL_8250_SHARE_IRQ=y
+CONFIG_SERIAL_8250_BCM2835AUX=y
+CONFIG_SERIAL_OF_PLATFORM=y
+CONFIG_SERIAL_AMBA_PL011=y
+CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
+CONFIG_SERIAL_SC16IS7XX=m
+CONFIG_SERIAL_SC16IS7XX_SPI=y
+CONFIG_SERIAL_DEV_BUS=y
+
+# I2C device
+CONFIG_I2C=y
+CONFIG_I2C_CHARDEV=m
+CONFIG_I2C_BCM2708=m
+CONFIG_I2C_BCM2835=m
+CONFIG_I2C_GPIO=m
+CONFIG_EEPROM_AT24=m
+
+# SPI device
+CONFIG_SPI=y
+CONFIG_SPI_BCM2835=m
+CONFIG_SPI_BCM2835AUX=m
+CONFIG_SPI_SPIDEV=y
+
+# Graphics support
+CONFIG_FB=y
+CONFIG_FB_BCM2708=y
+CONFIG_FB_UDL=m
+CONFIG_FB_SSD1307=m
+CONFIG_FB_RPISENSE=m
+
+CONFIG_BCM_VCIO=y
+CONFIG_FRAMEBUFFER_CONSOLE=y
+CONFIG_DRM=m
+CONFIG_DRM_LOAD_EDID_FIRMWARE=y
+CONFIG_DRM_UDL=m
+CONFIG_DRM_VC4=m
+
+#PCIe Bus support
+CONFIG_PCI=y
+CONFIG_PCIE_BRCMSTB=y
+
+# USB support
+CONFIG_USB=y
+CONFIG_USB_USBNET=y
+CONFIG_USB_NET_SMSC95XX=y
+CONFIG_USB_ALI_M5632=y
+CONFIG_USB_AN2720=y
+CONFIG_USB_EPSON2888=y
+CONFIG_USB_KC2190=y
+CONFIG_INPUT_MISC=y
+CONFIG_USB_DWC2=y
+CONFIG_USB_LAN78XX=y
+CONFIG_USB_DWCOTG=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_PCI=y
+
+#Media support
+CONFIG_MEDIA_CAMERA_SUPPORT=y
+CONFIG_MEDIA_ANALOG_TV_SUPPORT=y
+CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y
+CONFIG_MEDIA_RADIO_SUPPORT=y
+CONFIG_MEDIA_CONTROLLER=y
+CONFIG_MEDIA_SUPPORT=m
+CONFIG_MEDIA_USB_SUPPORT=y
+CCONFIG_USB_VIDEO_CLASS=m
+CONFIG_VIDEO_V4L2=m
+CONFIG_VIDEO_EM28XX=m
+CONFIG_VIDEO_EM28XX_V4L2=m
+CONFIG_VIDEO_EM28XX_ALSA=m
+CONFIG_VIDEO_EM28XX_DVB=m
+CONFIG_VIDEO_BCM2835=m
+CONFIG_V4L_PLATFORM_DRIVERS=y
+
+# Thermal configuration
+CONFIG_THERMAL=y
+CONFIG_BCM2835_THERMAL=y
+
+# MMC/SD/SDIO Card Drivers
+CONFIG_MMC=y
+CONFIG_MMC_BLOCK_MINORS=32
+CONFIG_MMC_BCM2835_MMC=y
+CONFIG_MMC_BCM2835_DMA=y
+CONFIG_MMC_BCM2835_SDHOST=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SPI=m
+CONFIG_MMC_SDHCI_IPROC=y
+
+# DMA Devices
+CONFIG_DMA_SHARED_BUFFER=y
+CONFIG_CMA=y
+CONFIG_DMADEVICES=y
+CONFIG_DMA_BCM2835=y
+CONFIG_DMA_BCM2708=y
+CONFIG_DMA_CMA=y
+
+# PWM support
+CONFIG_PWM=y
+CONFIG_PWM_BCM2835=m
+CONFIG_PWM_PCA9685=m
+
+# Watchdog timer support
+CONFIG_WATCHDOG=y
+CONFIG_BCM2835_WDT=y
+
+# Sound card support
+CONFIG_SOUND=y
+CONFIG_SND=m
+CONFIG_SND_SOC=m
+CONFIG_SND_BCM2835_SOC_I2S=m
+CONFIG_SND_MPU401=m
+CONFIG_SND_SEQUENCER=m
+CONFIG_SND_HRTIMER=m
+CONFIG_SND_DUMMY=m
+CONFIG_SND_ALOOP=m
+CONFIG_SND_VIRMIDI=m
+CONFIG_SND_MTPAV=m
+CONFIG_SND_SEQ_DUMMY=m
+CONFIG_SND_HWDEP=m
+CONFIG_SND_USB_AUDIO=m
+CONFIG_SND_USB_UA101=m
+CONFIG_SND_USB_CAIAQ=m
+CONFIG_SND_USB_CAIAQ_INPUT=y
+CONFIG_SND_USB_6FIRE=m
+CONFIG_SND_BCM2708_SOC_GOOGLEVOICEHAT_SOUNDCARD=m
+CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC=m
+CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS=m
+CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI=m
+CONFIG_SND_BCM2708_SOC_HIFIBERRY_AMP=m
+CONFIG_SND_BCM2708_SOC_RPI_CIRRUS=m
+CONFIG_SND_BCM2708_SOC_RPI_DAC=m
+CONFIG_SND_BCM2708_SOC_RPI_PROTO=m
+CONFIG_SND_BCM2708_SOC_JUSTBOOM_DAC=m
+CONFIG_SND_BCM2708_SOC_JUSTBOOM_DIGI=m
+CONFIG_SND_BCM2708_SOC_IQAUDIO_DAC=m
+CONFIG_SND_BCM2708_SOC_IQAUDIO_DIGI=m
+CONFIG_SND_BCM2708_SOC_ADAU1977_ADC=m
+CONFIG_SND_AUDIOINJECTOR_PI_SOUNDCARD=m
+CONFIG_SND_AUDIOINJECTOR_OCTO_SOUNDCARD=m
+CONFIG_SND_DIGIDAC1_SOUNDCARD=m
+CONFIG_SND_BCM2708_SOC_DIONAUDIO_LOCO=m
+CONFIG_SND_BCM2708_SOC_DIONAUDIO_LOCO_V2=m
+CONFIG_SND_BCM2708_SOC_ALLO_PIANO_DAC=m
+CONFIG_SND_BCM2708_SOC_ALLO_PIANO_DAC_PLUS=m
+CONFIG_SND_BCM2708_SOC_FE_PI_AUDIO=m
+CONFIG_SND_BCM2708_SOC_ALLO_BOSS_DAC=m
+CONFIG_SND_BCM2708_SOC_ALLO_DIGIONE=m
+CONFIG_SND_BCM2708_SOC_ALLO_KATANA_DAC=m
+CONFIG_SND_PISOUND=m
+CONFIG_SND_BCM2835=m
+
+# GPIO Support
+CONFIG_MFD_CORE=y
+CONFIG_MFD_STMPE=y
+CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_BCM_VIRT=y
+CONFIG_MFD_ARIZONA_I2C=m
+CONFIG_MFD_ARIZONA=y
+CONFIG_GPIO_ARIZONA=m
+CONFIG_GPIO_STMPE=y
+
+# Hardware Monitoring support
+CONFIG_HWMON=m
+
+# Industrial I/O support
+CONFIG_IIO=m
+
+# Bluetooth device drivers
+CONFIG_BT_HCIBTUSB=m
+CONFIG_BT_HCIUART=m
+CONFIG_BT_HCIUART_SERDEV=y
+CONFIG_BT_HCIUART_3WIRE=y
+CONFIG_BT_HCIUART_BCM=y
+CONFIG_BT_HCIBCM203X=m
+CONFIG_BT_HCIBPA10X=m
+CONFIG_BT_HCIBFUSB=m
+CONFIG_BT_HCIVHCI=m
+CONFIG_HOSTAP=y
+CONFIG_WIMAX=m
+CONFIG_MWIFIEX=m
+CONFIG_MWIFIEX_SDIO=m
+CONFIG_WIMAX_I2400M_USB=m
+
+# Regulator configuration
+CONFIG_REGULATOR=y
+CONFIG_REGULATOR_FIXED_VOLTAGE=m
+CONFIG_REGULATOR_ARIZONA_LDO1=m
+CONFIG_REGULATOR_ARIZONA_MICSUPP=m
+CONFIG_REGULATOR_GPIO=y
+
+# Misc configuration
+CONFIG_BINFMT_MISC=m
+CONFIG_BRCM_CHAR_DRIVERS=y
+CONFIG_PM=y
+CONFIG_RASPBERRYPI_POWER=y
+CONFIG_B43=m
+CONFIG_B43LEGACY=m
+CONFIG_BRCMFMAC=m
+CONFIG_BRCMFMAC_USB=y
+CONFIG_STAGING=y
+CONFIG_BCM_VIDEOCORE=y
+CONFIG_CRC_ITU_T=y
+CONFIG_LIBCRC32C=y
+CONFIG_HW_RANDOM=y
+CONFIG_RAW_DRIVER=y
+CONFIG_HID_LOGITECH=m
+CONFIG_LOGITECH_FF=y
+CONFIG_LOGIRUMBLEPAD2_FF=y
+CONFIG_LOGIG940_FF=y
+CONFIG_SENSORS_RPI_POE_FAN=m
diff --git a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.scc 
b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.scc
new file mode 100755
index 00000000..8974076c
--- /dev/null
+++ b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.scc
@@ -0,0 +1,13 @@
+kconf hardware bcm-2xxx-rpi.cfg
+
+include cfg/usb-mass-storage.scc
+include features/profiling/profiling.scc
+include features/latencytop/latencytop.scc
+
+include features/hostapd/hostapd.scc
+include features/mac80211/mac80211.scc
+include features/bluetooth/bluetooth.scc
+include features/netfilter/netfilter.scc
+
+# enable the ability to run 32 bit apps
+include arch/arm/32bit-compat.scc
diff --git a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi4-preempt-rt.scc 
b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi4-preempt-rt.scc
new file mode 100755
index 00000000..2bfe26d3
--- /dev/null
+++ b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi4-preempt-rt.scc
@@ -0,0 +1,8 @@
+define KMACHINE bcm-2xxx-rpi4
+define KTYPE preempt-rt
+define KARCH arm64
+
+include ktypes/preempt-rt
+branch bcm-2xxx-rpi
+
+include bcm-2xxx-rpi.scc
diff --git a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi4-standard.scc 
b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi4-standard.scc
new file mode 100755
index 00000000..b479d8b7
--- /dev/null
+++ b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi4-standard.scc
@@ -0,0 +1,9 @@
+define KMACHINE bcm-2xxx-rpi4
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard
+branch bcm-2xxx-rpi
+
+include bcm-2xxx-rpi.scc
+
-- 
2.17.1

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

Reply via email to