diff options
author | Jackson Donaldson <jackson88044@gmail.com> | 2025-07-04 18:32:39 -0400 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2025-07-08 17:31:59 +0100 |
commit | 4b3a1eb0664db2df02ff4f8affe6e7bda1edaa85 (patch) | |
tree | 06948984f4669ef828e2ac09468f7783dd584d4b /hw | |
parent | 33dfff7e3405e9c7e877556d5f7050da4af0304f (diff) | |
download | qemu-4b3a1eb0664db2df02ff4f8affe6e7bda1edaa85.zip qemu-4b3a1eb0664db2df02ff4f8affe6e7bda1edaa85.tar.gz qemu-4b3a1eb0664db2df02ff4f8affe6e7bda1edaa85.tar.bz2 |
MAX78000: Add AES to SOC
This commit adds AES to max78000_soc
Signed-off-by: Jackson Donaldson <jcksn@duck.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20250704223239.248781-12-jcksn@duck.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/arm/max78000_soc.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/hw/arm/max78000_soc.c b/hw/arm/max78000_soc.c index 3f2069f..7f1856f 100644 --- a/hw/arm/max78000_soc.c +++ b/hw/arm/max78000_soc.c @@ -45,6 +45,8 @@ static void max78000_soc_initfn(Object *obj) object_initialize_child(obj, "trng", &s->trng, TYPE_MAX78000_TRNG); + object_initialize_child(obj, "aes", &s->aes, TYPE_MAX78000_AES); + s->sysclk = qdev_init_clock_in(DEVICE(s), "sysclk", NULL, NULL, 0); } @@ -133,6 +135,13 @@ static void max78000_soc_realize(DeviceState *dev_soc, Error **errp) object_property_set_link(OBJECT(gcrdev), "trng", OBJECT(dev), &err); + dev = DEVICE(&s->aes); + sysbus_realize(SYS_BUS_DEVICE(dev), errp); + sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, 0x40007400); + sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, qdev_get_gpio_in(armv7m, 5)); + + object_property_set_link(OBJECT(gcrdev), "aes", OBJECT(dev), &err); + dev = DEVICE(&s->gcr); sysbus_realize(SYS_BUS_DEVICE(dev), errp); sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, 0x40000000); @@ -148,9 +157,6 @@ static void max78000_soc_realize(DeviceState *dev_soc, Error **errp) create_unimplemented_device("powerSequencer", 0x40006800, 0x400); create_unimplemented_device("miscControl", 0x40006c00, 0x400); - create_unimplemented_device("aes", 0x40007400, 0x400); - create_unimplemented_device("aesKey", 0x40007800, 0x400); - create_unimplemented_device("gpio0", 0x40008000, 0x1000); create_unimplemented_device("gpio1", 0x40009000, 0x1000); |