Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
meta: bcm-2xxx-rpi: add bsp meta
Browse files Browse the repository at this point in the history
Rally: US94129

Signed-off-by: Xulin Sun <[email protected]>
  • Loading branch information
xulinsun authored and Taoyuetao committed Jul 5, 2017
1 parent 14d9f86 commit 78aad55
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bsp/bcm-2xxx-rpi/bcm-2xxx-rpi-preempt-rt.scc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
define KMACHINE bcm-2xxx-rpi
define KTYPE preempt-rt
define KARCH arm

include ktypes/preempt-rt
branch bcm-2xxx-rpi

include bcm-2xxx-rpi.scc
9 changes: 9 additions & 0 deletions bsp/bcm-2xxx-rpi/bcm-2xxx-rpi-standard.scc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
define KMACHINE bcm-2xxx-rpi
define KTYPE standard
define KARCH arm

include ktypes/standard
branch bcm-2xxx-rpi

include bcm-2xxx-rpi.scc

272 changes: 272 additions & 0 deletions bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
..........................................................................
. 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_ARCH_MULTIPLATFORM=y

# CPU Core family selection
CONFIG_ARCH_MULTI_V7=y
CONFIG_ARCH_BCM=y
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_CACHE_L2X0 is not set
CONFIG_REGMAP_IRQ=y
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_SCHEDUTIL=y

# Floating point emulation
CONFIG_VFP=y
CONFIG_NEON=y
CONFIG_KERNEL_MODE_NEON=y
CONFIG_BINFMT_MISC=m
CONFIG_BRCM_CHAR_DRIVERS=y
CONFIG_BCM2708_VCMEM=y
CONFIG_ARM_BCM2835_CPUFREQ=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_DMA_SHARED_BUFFER=y

# MTD devices
CONFIG_MTD=y
CONFIG_MTD_BLOCK=m

# Ethernet devices
CONFIG_PM=y
CONFIG_NET=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_HW_RANDOM=y
CONFIG_RAW_DRIVER=y

# I2C device
CONFIG_I2C=y
CONFIG_I2C_CHARDEV=m
CONFIG_I2C_MUX_PCA954x=m
CONFIG_I2C_BCM2708=m
CONFIG_I2C_BCM2835=m
CONFIG_I2C_GPIO=m
CONFIG_REGMAP_I2C=m
CONFIG_EEPROM_AT24=m

# SPI device
CONFIG_SPI=y
CONFIG_SPI_BCM2835=m
CONFIG_SPI_BCM2835AUX=m
CONFIG_SPI_SPIDEV=y
CONFIG_REGMAP_SPI=m

# Graphics support
CONFIG_FB=y
CONFIG_FB_BCM2708=y
CONFIG_FB_UDL=m
CONFIG_FB_SSD1307=m
CONFIG_FB_RPISENSE=m

CONFIG_BCM_VC_CMA=y
CONFIG_BCM_VCIO=y
CONFIG_BCM_VC_SM=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_DRM=m
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
CONFIG_DRM_UDL=m
CONFIG_DRM_VC4=m
CONFIG_HDMI=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

#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_RC_SUPPORT=y
CONFIG_MEDIA_CONTROLLER=y

CONFIG_VIDEO_V4L2=m
CONFIG_MEDIA_SUPPORT=m
CONFIG_MEDIA_USB_SUPPORT=y
CCONFIG_USB_VIDEO_CLASS=m

CONFIG_B43=m
CONFIG_B43LEGACY=m
CONFIG_BRCMFMAC=m
CONFIG_BRCMFMAC_USB=y
CONFIG_RASPBERRYPI_POWER=y
CONFIG_THERMAL=y
CONFIG_THERMAL_BCM2835=y
CONFIG_USB_DWCOTG=y

CONFIG_VIDEO_EM28XX=m
CONFIG_VIDEO_EM28XX_V4L2=m
CONFIG_VIDEO_EM28XX_ALSA=m
CONFIG_VIDEO_EM28XX_DVB=m
CONFIG_V4L_PLATFORM_DRIVERS=y
CONFIG_VIDEO_BCM2835=y
CONFIG_VIDEO_BCM2835_MMAL=m

# MMC/SD/SDIO Card Drivers
CONFIG_MMC=y
CONFIG_MMC_BLOCK_MINORS=32
CONFIG_MMC_BCM2835=y
CONFIG_MMC_BCM2835_DMA=y
CONFIG_MMC_BCM2835_SDHOST=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PLTFM=y
CONFIG_MMC_SPI=m

# DMA Devices
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_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SOC=m
CONFIG_SND_BCM2835=m
CONFIG_SND_BCM2835_SOC_I2S=m
CONFIG_SND_MPU401=m
CONFIG_HID_LOGITECH=m
CONFIG_LOGITECH_FF=y
CONFIG_LOGIRUMBLEPAD2_FF=y
CONFIG_LOGIG940_FF=y
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQUENCER_OSS=y
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_RASPIDAC3=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_PISOUND=m

# GPIO Support
CONFIG_MFD_CORE=y
CONFIG_MFD_STMPE=y
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_MCP23S08=m
CONFIG_GPIO_BCM_EXP=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

CONFIG_ARM_CRYPTO=y
CONFIG_CRYPTO_SHA1_ARM_NEON=m
CONFIG_CRYPTO_AES_ARM_BS=m
CONFIG_CRC_ITU_T=y
CONFIG_LIBCRC32C=y

# Industrial I/O support
CONFIG_IIO=m

#
# Bluetooth device drivers
#
CONFIG_BT_HCIBTUSB=m
CONFIG_BT_HCIUART=m
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

11 changes: 11 additions & 0 deletions bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.scc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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

0 comments on commit 78aad55

Please sign in to comment.