201a1f34da
Communicating with the Raspberry Pi firmware is currently handled by each driver calling into the mbox driver, however the device tree is structured such that they should be calling into a firmware driver. Add a driver for this node with an interface to communicate to the firmware via the mbox interface. There is a sysctl to get the firmware revision. This is a unix date so can be parsed with: root@generic:~ # date -j -f '%s' sysctl -n dev.bcm2835_firmware.0.revision Tue Nov 19 16:40:28 UTC 2019 Reviewed by: manu Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D25572
48 lines
2.6 KiB
Plaintext
48 lines
2.6 KiB
Plaintext
# $FreeBSD$
|
|
|
|
arm/broadcom/bcm2835/bcm2835_bsc.c optional bcm2835_bsc
|
|
arm/broadcom/bcm2835/bcm2835_cpufreq.c standard
|
|
arm/broadcom/bcm2835/bcm2835_dma.c standard
|
|
arm/broadcom/bcm2835/bcm2835_fb.c optional sc
|
|
arm/broadcom/bcm2835/bcm2835_fbd.c optional vt
|
|
arm/broadcom/bcm2835/bcm2835_firmware.c standard
|
|
arm/broadcom/bcm2835/bcm2835_ft5406.c optional evdev bcm2835_ft5406
|
|
arm/broadcom/bcm2835/bcm2835_gpio.c optional gpio
|
|
arm/broadcom/bcm2835/bcm2835_intr.c standard
|
|
arm/broadcom/bcm2835/bcm2835_machdep.c optional platform
|
|
arm/broadcom/bcm2835/bcm2835_mbox.c standard
|
|
arm/broadcom/bcm2835/bcm2835_rng.c optional random
|
|
arm/broadcom/bcm2835/bcm2835_sdhci.c optional sdhci
|
|
arm/broadcom/bcm2835/bcm2835_sdhost.c optional sdhci
|
|
arm/broadcom/bcm2835/bcm2835_spi.c optional bcm2835_spi
|
|
arm/broadcom/bcm2835/bcm2835_vcbus.c standard
|
|
arm/broadcom/bcm2835/bcm2835_vcio.c standard
|
|
arm/broadcom/bcm2835/bcm2835_wdog.c standard
|
|
arm/broadcom/bcm2835/bcm2838_pci.c optional pci
|
|
arm/broadcom/bcm2835/bcm283x_dwc_fdt.c optional dwcotg fdt
|
|
|
|
dev/mbox/mbox_if.m standard
|
|
|
|
arm/broadcom/bcm2835/bcm2835_audio.c optional sound vchiq \
|
|
compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
|
|
|
|
# VideoCore driver
|
|
contrib/vchiq/interface/compat/vchi_bsd.c optional vchiq \
|
|
compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
|
|
contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c optional vchiq \
|
|
compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
|
|
contrib/vchiq/interface/vchiq_arm/vchiq_arm.c optional vchiq \
|
|
compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
|
|
contrib/vchiq/interface/vchiq_arm/vchiq_connected.c optional vchiq \
|
|
compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
|
|
contrib/vchiq/interface/vchiq_arm/vchiq_core.c optional vchiq \
|
|
compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
|
|
contrib/vchiq/interface/vchiq_arm/vchiq_kern_lib.c optional vchiq \
|
|
compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
|
|
contrib/vchiq/interface/vchiq_arm/vchiq_kmod.c optional vchiq \
|
|
compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
|
|
contrib/vchiq/interface/vchiq_arm/vchiq_shim.c optional vchiq \
|
|
compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
|
|
contrib/vchiq/interface/vchiq_arm/vchiq_util.c optional vchiq \
|
|
compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
|