Skip to contentSkip to conversation

hw/arm: enable at24c with aspeed

PATCH Applied Patrick Leis 5 participants 5 messages Oct 28, 2024 – Nov 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm: enable at24c with aspeed

Enable AT24C with ASPEED in the KConfig because the boards build this device.

---
 hw/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
hw/arm/Kconfig +1 -0
index e7fd9338d1..1b25e73578 100644
@@ -539,6 +539,7 @@ config ASPEED_SOC
     select PMBUS
     select MAX31785
     select FSI_APB2OPB_ASPEED
+    select AT24C
 
 config MPS2
     bool
Signature · 1 line
2.47.0.163.g1226f6d8fa-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Patrick Leis

Enable AT24C with ASPEED in the KConfig because the boards build this device.

Quoted 21 lines
---
 hw/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
hw/arm/Kconfig +1 -1
index e7fd9338d1..1b25e73578 100644
@@ -539,6 +539,7 @@ config ASPEED_SOC
     select PMBUS
     select MAX31785
     select FSI_APB2OPB_ASPEED
+    select AT24C
 
 config MPS2
     bool
--

2.47.0.163.g1226f6d8fa-goog

Reviewed-by on v1 1/1
#2 lore raw
In reply to Patrick Leis
Quoted 4 lines · Patrick Leis

Enable AT24C with ASPEED in the KConfig because the boards build this device.

I was wondering how we haven't hit problems before now. Poking around with scripts/minikconf.py for an arm-softmmu build we get:

   # config AT24C depends on I2C
   # select AT24C if NPCM7XX
   # => AT24C is now True
   # config AT24C default y if E500
   # config AT24C default n

Seems reasonable that the Aspeed models should select it themselves given they depend on the symbols.

#4 lore raw
In reply to Patrick Leis
Quoted 13 lines · Patrick Leis

Enable AT24C with ASPEED in the KConfig because the boards build this device.

---
  hw/arm/Kconfig | 1 +
  1 file changed, 1 insertion(+)
hw/arm/Kconfig +0 -0
index e7fd9338d1..1b25e73578 100644

hw/arm/Kconfig config ASPEED_SOC · line 545

Quoted 7 lines
hw/arm/Kconfig +1 -0
@@ -539,6 +539,7 @@ config ASPEED_SOC
      select PMBUS
      select MAX31785
      select FSI_APB2OPB_ASPEED
+    select AT24C
 
  config MPS2
      bool

Applied to aspeed-next.

Thanks,

C.