summary refs log tree commit diff stats
path: root/include/hw/i2c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2018-10-05 13:08:37 +0200
committerGerd Hoffmann <kraxel@redhat.com>2018-10-15 09:57:33 +0200
commit715eb05b782a99e482f2ac02b24fbf2b9a1e5fe2 (patch)
treea333ad10b179dc0a1c4b4cf3e3147b1f6d71083f /include/hw/i2c
parent2f99f80c5dbb319bebede5f737efcb0b2253a45b (diff)
downloadfocaccia-qemu-715eb05b782a99e482f2ac02b24fbf2b9a1e5fe2.tar.gz
focaccia-qemu-715eb05b782a99e482f2ac02b24fbf2b9a1e5fe2.zip
i2c: switch ddc to use the new edid generator
This also makes the default display resolution configurable,
via xres and yres properties.  The default is 1024x768.

The old code had a hard-coded resolution of 1600x1200.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20181005110837.28209-1-kraxel@redhat.com
Diffstat (limited to 'include/hw/i2c')
-rw-r--r--include/hw/i2c/i2c-ddc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hw/i2c/i2c-ddc.h b/include/hw/i2c/i2c-ddc.h
index d9b5f33f58..c29443c5af 100644
--- a/include/hw/i2c/i2c-ddc.h
+++ b/include/hw/i2c/i2c-ddc.h
@@ -19,14 +19,16 @@
 #ifndef I2C_DDC_H
 #define I2C_DDC_H
 
-/* A simple I2C slave which just returns the contents of its EDID blob. */
+#include "hw/display/edid.h"
 
+/* A simple I2C slave which just returns the contents of its EDID blob. */
 struct I2CDDCState {
     /*< private >*/
     I2CSlave i2c;
     /*< public >*/
     bool firstbyte;
     uint8_t reg;
+    qemu_edid_info edid_info;
     uint8_t edid_blob[128];
 };