diff mbox series

[RFC,15/15] aspeed/soc: Add ASPEED Video stub

Message ID 20190904204659.13878-16-clg@kaod.org
State New
Headers show
Series [RFC,01/15] hw: aspeed_scu: Add AST2600 support | expand

Commit Message

Cédric Le Goater Sept. 4, 2019, 8:46 p.m. UTC
From: Joel Stanley <joel@jms.id.au>


Signed-off-by: Joel Stanley <joel@jms.id.au>

Signed-off-by: Cédric Le Goater <clg@kaod.org>

---
 include/hw/arm/aspeed_soc.h | 1 +
 hw/arm/aspeed_soc.c         | 5 +++++
 2 files changed, 6 insertions(+)

-- 
2.21.0
diff mbox series

Patch

diff --git a/include/hw/arm/aspeed_soc.h b/include/hw/arm/aspeed_soc.h
index 9e06a6ad4fbd..ef5b93e5e9cf 100644
--- a/include/hw/arm/aspeed_soc.h
+++ b/include/hw/arm/aspeed_soc.h
@@ -99,6 +99,7 @@  enum {
     ASPEED_SDMC,
     ASPEED_SCU,
     ASPEED_ADC,
+    ASPEED_VIDEO,
     ASPEED_SRAM,
     ASPEED_SDHCI,
     ASPEED_GPIO,
diff --git a/hw/arm/aspeed_soc.c b/hw/arm/aspeed_soc.c
index c3f99849b7f0..b9da49e16f2d 100644
--- a/hw/arm/aspeed_soc.c
+++ b/hw/arm/aspeed_soc.c
@@ -102,6 +102,7 @@  static const hwaddr aspeed_soc_ast2600_memmap[] = {
     [ASPEED_SCU]       = 0x1E6E2000,
     [ASPEED_XDMA]      = 0x1E6E7000,
     [ASPEED_ADC]       = 0x1E6E9000,
+    [ASPEED_VIDEO]     = 0x1E700000,
     [ASPEED_SDHCI]     = 0x1E740000,
     [ASPEED_GPIO]      = 0x1E780000,
     [ASPEED_GPIO_1_8V] = 0x1E780800,
@@ -371,6 +372,10 @@  static void aspeed_soc_realize(DeviceState *dev, Error **errp)
     create_unimplemented_device("aspeed_soc.io", sc->info->memmap[ASPEED_IOMEM],
                                 ASPEED_SOC_IOMEM_SIZE);
 
+    /* Video engine stub */
+    create_unimplemented_device("aspeed.video", sc->info->memmap[ASPEED_VIDEO],
+                                0x1000);
+
     if (s->num_cpus > sc->info->num_cpus) {
         warn_report("%s: invalid number of CPUs %d, using default %d",
                     sc->info->name, s->num_cpus, sc->info->num_cpus);