diff options
| author | Jackson Donaldson <jackson88044@gmail.com> | 2025-07-04 18:32:38 -0400 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-07-08 17:31:59 +0100 |
| commit | 33dfff7e3405e9c7e877556d5f7050da4af0304f (patch) | |
| tree | fd483c5d2ccbf954017331a272df1a1a86ea4ccf /hw/misc/max78000_gcr.c | |
| parent | 5adeb160322ff827f3e81f38e9481fb4896670e8 (diff) | |
| download | focaccia-qemu-33dfff7e3405e9c7e877556d5f7050da4af0304f.tar.gz focaccia-qemu-33dfff7e3405e9c7e877556d5f7050da4af0304f.zip | |
MAX78000: AES implementation
This commit implements AES for the MAX78000 Signed-off-by: Jackson Donaldson <jcksn@duck.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20250704223239.248781-11-jcksn@duck.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/misc/max78000_gcr.c')
| -rw-r--r-- | hw/misc/max78000_gcr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/misc/max78000_gcr.c b/hw/misc/max78000_gcr.c index 5916ee615a..fbbc92cca3 100644 --- a/hw/misc/max78000_gcr.c +++ b/hw/misc/max78000_gcr.c @@ -15,6 +15,7 @@ #include "hw/qdev-properties.h" #include "hw/char/max78000_uart.h" #include "hw/misc/max78000_trng.h" +#include "hw/misc/max78000_aes.h" #include "hw/misc/max78000_gcr.h" @@ -161,6 +162,9 @@ static void max78000_gcr_write(void *opaque, hwaddr addr, if (val & TRNG_RESET) { device_cold_reset(s->trng); } + if (val & AES_RESET) { + device_cold_reset(s->aes); + } /* TODO: As other devices are implemented, add them here */ break; @@ -263,6 +267,8 @@ static const Property max78000_gcr_properties[] = { TYPE_MAX78000_UART, DeviceState*), DEFINE_PROP_LINK("trng", Max78000GcrState, trng, TYPE_MAX78000_TRNG, DeviceState*), + DEFINE_PROP_LINK("aes", Max78000GcrState, aes, + TYPE_MAX78000_AES, DeviceState*), }; static const MemoryRegionOps max78000_gcr_ops = { |