summary refs log tree commit diff stats
path: root/hw/exynos4210.h
diff options
context:
space:
mode:
authorMitsyanko Igor <i.mitsyanko@samsung.com>2012-07-18 08:18:34 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-07-20 14:30:09 +0100
commitffbbe7d02fd02a6b563df443e4406de076ac7d93 (patch)
treec0e5d06ffc549882af0f9ccabd4b1cac5caf0bd0 /hw/exynos4210.h
parent4688870d87883784bd151e0b7d024e5027c39f01 (diff)
downloadfocaccia-qemu-ffbbe7d02fd02a6b563df443e4406de076ac7d93.tar.gz
focaccia-qemu-ffbbe7d02fd02a6b563df443e4406de076ac7d93.zip
exynos4210: add Exynos4210 i2c implementation
Create 9 exynos4210 i2c interfaces.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/exynos4210.h')
-rw-r--r--hw/exynos4210.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/exynos4210.h b/hw/exynos4210.h
index 9b1ae4c8b1..a43ba3aedc 100644
--- a/hw/exynos4210.h
+++ b/hw/exynos4210.h
@@ -74,6 +74,8 @@
 #define EXYNOS4210_EXT_GIC_NIRQ     (160-32)
 #define EXYNOS4210_INT_GIC_NIRQ     64
 
+#define EXYNOS4210_I2C_NUMBER               9
+
 typedef struct Exynos4210Irq {
     qemu_irq int_combiner_irq[EXYNOS4210_MAX_INT_COMBINER_IN_IRQ];
     qemu_irq ext_combiner_irq[EXYNOS4210_MAX_EXT_COMBINER_IN_IRQ];
@@ -95,6 +97,7 @@ typedef struct Exynos4210State {
     MemoryRegion dram1_mem;
     MemoryRegion boot_secondary;
     MemoryRegion bootreg_mem;
+    i2c_bus *i2c_if[EXYNOS4210_I2C_NUMBER];
 } Exynos4210State;
 
 void exynos4210_write_secondary(ARMCPU *cpu,