[PATCH v2 1/7] qfw: Add WRITE definition

Alper Nebi Yasak alpernebiyasak at gmail.com
Tue Aug 22 14:10:19 CEST 2023


From: Alexander Graf <agraf at csgraf.de>

The QEMU fw_cfg device supports writing entries as well. Add the constant
define for it so that we can leverage write functionality later.

Signed-off-by: Alexander Graf <agraf at csgraf.de>
Reviewed-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Alper Nebi Yasak <alpernebiyasak at gmail.com>
---

(no changes since v1)

 include/qfw.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/qfw.h b/include/qfw.h
index 42798fea7db4..d3aaa4d54efc 100644
--- a/include/qfw.h
+++ b/include/qfw.h
@@ -70,6 +70,7 @@ enum {
 #define FW_CFG_DMA_READ	(1 << 1)
 #define FW_CFG_DMA_SKIP	(1 << 2)
 #define FW_CFG_DMA_SELECT	(1 << 3)
+#define FW_CFG_DMA_WRITE	(1 << 4)
 
 /* Bit set in FW_CFG_ID response to indicate DMA interface availability. */
 #define FW_CFG_DMA_ENABLED	(1 << 1)
-- 
2.40.1



More information about the U-Boot mailing list