[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/8] hw/adc: Make adci[*] R/W in NPCM7XX ADC
From: |
Hao Wu |
Subject: |
[PATCH 4/8] hw/adc: Make adci[*] R/W in NPCM7XX ADC |
Date: |
Thu, 14 Jul 2022 11:00:02 -0700 |
Our sensor test requires both reading and writing from a sensor's
QOM property. So we need to make the input of ADC module R/W instead
of write only for that to work.
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Titus Rwantare <titusr@google.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/adc/npcm7xx_adc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/adc/npcm7xx_adc.c b/hw/adc/npcm7xx_adc.c
index 47fb9e5f74..bc6f3f55e6 100644
--- a/hw/adc/npcm7xx_adc.c
+++ b/hw/adc/npcm7xx_adc.c
@@ -242,7 +242,7 @@ static void npcm7xx_adc_init(Object *obj)
for (i = 0; i < NPCM7XX_ADC_NUM_INPUTS; ++i) {
object_property_add_uint32_ptr(obj, "adci[*]",
- &s->adci[i], OBJ_PROP_FLAG_WRITE);
+ &s->adci[i], OBJ_PROP_FLAG_READWRITE);
}
object_property_add_uint32_ptr(obj, "vref",
&s->vref, OBJ_PROP_FLAG_WRITE);
--
2.37.0.170.g444d1eabd0-goog
- [PATCH 0/8] Misc NPCM7XX patches, Hao Wu, 2022/07/14
- [PATCH 1/8] hw/i2c: Clear ACK bit in NPCM7xx SMBus module, Hao Wu, 2022/07/14
- [PATCH 2/8] hw/i2c: Read FIFO during RXF_CTL change in NPCM7XX SMBus, Hao Wu, 2022/07/14
- [PATCH 6/8] hw/arm: npcm8xx_boards: EEPROMs can take bus as parameter, Hao Wu, 2022/07/14
- [PATCH 5/8] blockdev: Add a new IF type IF_OTHER, Hao Wu, 2022/07/14
- [PATCH 3/8] hw/adc: Fix CONV bit in NPCM7XX ADC CON register, Hao Wu, 2022/07/14
- [PATCH 7/8] hw/arm: Set drive property for at24c eeprom, Hao Wu, 2022/07/14
- [PATCH 8/8] hw/arm: quanta-gbs-bmc add i2c devices, Hao Wu, 2022/07/14
- [PATCH 4/8] hw/adc: Make adci[*] R/W in NPCM7XX ADC,
Hao Wu <=
- [PATCH 0/8] Misc NPCM7XX patches, Hao Wu, 2022/07/14
- [PATCH 1/8] hw/i2c: Clear ACK bit in NPCM7xx SMBus module, Hao Wu, 2022/07/14
- [PATCH 2/8] hw/i2c: Read FIFO during RXF_CTL change in NPCM7XX SMBus, Hao Wu, 2022/07/14
- [PATCH 3/8] hw/adc: Fix CONV bit in NPCM7XX ADC CON register, Hao Wu, 2022/07/14
- [PATCH 4/8] hw/adc: Make adci[*] R/W in NPCM7XX ADC, Hao Wu, 2022/07/14
- [PATCH 5/8] blockdev: Add a new IF type IF_OTHER, Hao Wu, 2022/07/14