DEVICE_PACKAGES := \
cypress-firmware-43430-sdio \
brcmfmac-nvram-43430-sdio \
- kmod-brcmfmac wpad-basic-mbedtls \
- kmod-i2c-bcm2835 kmod-spi-bcm2835 \
- kmod-spi-bcm2835-aux
+ kmod-brcmfmac wpad-basic-mbedtls
endef
ifeq ($(SUBTARGET),bcm2708)
TARGET_DEVICES += rpi
brcmfmac-nvram-43430-sdio \
cypress-firmware-43455-sdio \
brcmfmac-nvram-43455-sdio \
- kmod-brcmfmac wpad-basic-mbedtls \
- kmod-i2c-bcm2835 kmod-spi-bcm2835 \
- kmod-spi-bcm2835-aux
+ kmod-brcmfmac wpad-basic-mbedtls
IMAGE/sysupgrade.img.gz := boot-common | boot-2708 | boot-2711 | sdcard-img | gzip | append-metadata
IMAGE/factory.img.gz := boot-common | boot-2708 | boot-2711 | sdcard-img | gzip
endef
brcmfmac-nvram-43430-sdio \
cypress-firmware-43455-sdio \
brcmfmac-nvram-43455-sdio \
- kmod-brcmfmac wpad-basic-mbedtls \
- kmod-i2c-bcm2835 kmod-spi-bcm2835 \
- kmod-spi-bcm2835-aux
+ kmod-brcmfmac wpad-basic-mbedtls
endef
ifeq ($(SUBTARGET),bcm2710)
TARGET_DEVICES += rpi-3
cypress-firmware-43455-sdio \
brcmfmac-nvram-43455-sdio \
kmod-brcmfmac wpad-basic-mbedtls \
- kmod-i2c-bcm2835 kmod-spi-bcm2835 \
- kmod-spi-bcm2835-aux \
- kmod-i2c-brcmstb \
kmod-usb-net-lan78xx \
kmod-usb-net-rtl8152 \
kmod-r8169
cypress-firmware-43455-sdio \
brcmfmac-nvram-43455-sdio \
kmod-brcmfmac wpad-basic-mbedtls \
- kmod-i2c-bcm2835 kmod-spi-bcm2835 \
- kmod-i2c-brcmstb \
- kmod-i2c-designware-platform kmod-spi-dw-mmio \
kmod-hwmon-pwmfan kmod-thermal \
kmod-usb-net-lan78xx \
kmod-usb-net-rtl8152 \
endef
$(eval $(call KernelPackage,i2c-brcmstb))
+
+
+define KernelPackage/bcm27xx-i2c
+ SUBMENU:=$(I2C_MENU)
+ TITLE:=I2C support for bcm27xx boards
+ DEPENDS:=@TARGET_bcm27xx +kmod-i2c-bcm2835 \
+ +TARGET_bcm27xx_bcm2711:kmod-i2c-brcmstb \
+ +TARGET_bcm27xx_bcm2712:kmod-i2c-brcmstb \
+ +TARGET_bcm27xx_bcm2712:kmod-i2c-designware-platform
+endef
+
+define KernelPackage/bcm27xx-i2c/description
+ Pulls in the correct I2C kernel modules for whichever bcm27xx
+ board you're building for, without needing to know which specific
+ driver combination your particular Pi/CM generation requires.
+endef
+
+$(eval $(call KernelPackage,bcm27xx-i2c))
endef
$(eval $(call KernelPackage,spi-bcm2835-aux))
+
+
+define KernelPackage/bcm27xx-spi
+ SUBMENU:=$(SPI_MENU)
+ TITLE:=SPI support for bcm27xx boards
+ DEPENDS:=@TARGET_bcm27xx +kmod-spi-bcm2835 \
+ +!TARGET_bcm27xx_bcm2712:kmod-spi-bcm2835-aux \
+ +TARGET_bcm27xx_bcm2712:kmod-spi-dw-mmio
+endef
+
+define KernelPackage/bcm27xx-spi/description
+ Pulls in the correct SPI kernel modules for whichever bcm27xx
+ board you're building for, without needing to know which specific
+ driver combination your particular Pi/CM generation requires.
+endef
+
+$(eval $(call KernelPackage,bcm27xx-spi))