Sfoglia il codice sorgente

bcm53xx: enable CONFIG_I2C_BCM_IPROC

This is required for the AT24 EEPROM holding MAC address on Meraki
devices to probe before preinit starts, so all network devices can be
available at the preinit network setup starts

Signed-off-by: Lech Perczak <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/16634
Signed-off-by: Hauke Mehrtens <[email protected]>
Lech Perczak 1 anno fa
parent
commit
a69eaf8079
2 ha cambiato i file con 6 aggiunte e 4 eliminazioni
  1. 4 0
      target/linux/bcm53xx/config-6.6
  2. 2 4
      target/linux/bcm53xx/image/Makefile

+ 4 - 0
target/linux/bcm53xx/config-6.6

@@ -183,6 +183,9 @@ CONFIG_HW_RANDOM=y
 CONFIG_HW_RANDOM_BCM2835=y
 CONFIG_HW_RANDOM_BCM2835=y
 CONFIG_HZ_FIXED=0
 CONFIG_HZ_FIXED=0
 CONFIG_HZ_PERIODIC=y
 CONFIG_HZ_PERIODIC=y
+CONFIG_I2C=y
+CONFIG_I2C_BCM_IPROC=y
+# CONFIG_I2C_SLAVE_TESTUNIT is not set
 CONFIG_INITRAMFS_SOURCE=""
 CONFIG_INITRAMFS_SOURCE=""
 CONFIG_IRQCHIP=y
 CONFIG_IRQCHIP=y
 CONFIG_IRQSTACKS=y
 CONFIG_IRQSTACKS=y
@@ -294,6 +297,7 @@ CONFIG_PWM_SYSFS=y
 CONFIG_RANDSTRUCT_NONE=y
 CONFIG_RANDSTRUCT_NONE=y
 CONFIG_RATIONAL=y
 CONFIG_RATIONAL=y
 CONFIG_REGMAP=y
 CONFIG_REGMAP=y
+CONFIG_REGMAP_I2C=y
 CONFIG_REGMAP_MMIO=y
 CONFIG_REGMAP_MMIO=y
 CONFIG_RFS_ACCEL=y
 CONFIG_RFS_ACCEL=y
 CONFIG_RPS=y
 CONFIG_RPS=y

+ 2 - 4
target/linux/bcm53xx/image/Makefile

@@ -382,8 +382,7 @@ TARGET_DEVICES += luxul_xwr-3150
 define Device/meraki_mr26
 define Device/meraki_mr26
   DEVICE_VENDOR := Meraki
   DEVICE_VENDOR := Meraki
   DEVICE_MODEL := MR26
   DEVICE_MODEL := MR26
-  DEVICE_PACKAGES := $(B43) kmod-i2c-bcm-iproc \
-	kmod-hwmon-ina2xx kmod-leds-uleds nu801
+  DEVICE_PACKAGES := $(B43) kmod-hwmon-ina2xx kmod-leds-uleds nu801
   DEVICE_DTS := bcm53015-meraki-mr26
   DEVICE_DTS := bcm53015-meraki-mr26
 # resize the initramfs to fit the size of the existing part.safe.
 # resize the initramfs to fit the size of the existing part.safe.
   KERNEL_LOADADDR := 0x00008000
   KERNEL_LOADADDR := 0x00008000
@@ -399,8 +398,7 @@ TARGET_DEVICES += meraki_mr26
 define Device/meraki_mr32
 define Device/meraki_mr32
   DEVICE_VENDOR := Meraki
   DEVICE_VENDOR := Meraki
   DEVICE_MODEL := MR32
   DEVICE_MODEL := MR32
-  DEVICE_PACKAGES := $(B43) kmod-i2c-bcm-iproc \
-	kmod-leds-pwm kmod-hwmon-ina2xx kmod-bluetooth
+  DEVICE_PACKAGES := $(B43) kmod-leds-pwm kmod-hwmon-ina2xx kmod-bluetooth
   DEVICE_DTS := bcm53016-meraki-mr32
   DEVICE_DTS := bcm53016-meraki-mr32
 # Meraki FW r23 tries to resize the part.safe partition before it will
 # Meraki FW r23 tries to resize the part.safe partition before it will
 # flash the image. This is a bit of a problem, since resizing will fail
 # flash the image. This is a bit of a problem, since resizing will fail