[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-6.2 17/25] hw/arm/stellaris: Wire sysclk up to armv7m
From: |
Peter Maydell |
Subject: |
[PATCH for-6.2 17/25] hw/arm/stellaris: Wire sysclk up to armv7m |
Date: |
Thu, 12 Aug 2021 10:33:48 +0100 |
Connect the sysclk to the armv7m object. This board's SoC does not
connect up the systick reference clock, so we don't need to connect a
refclk.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/arm/stellaris.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c
index bf24abd44fd..8c8bd39e2fe 100644
--- a/hw/arm/stellaris.c
+++ b/hw/arm/stellaris.c
@@ -1322,7 +1322,7 @@ static void stellaris_init(MachineState *ms,
stellaris_board_info *board)
DeviceState *ssys_dev;
int i;
int j;
- uint8_t *macaddr;
+ const uint8_t *macaddr;
MemoryRegion *sram = g_new(MemoryRegion, 1);
MemoryRegion *flash = g_new(MemoryRegion, 1);
@@ -1364,6 +1364,9 @@ static void stellaris_init(MachineState *ms,
stellaris_board_info *board)
qdev_prop_set_uint32(nvic, "num-irq", NUM_IRQ_LINES);
qdev_prop_set_string(nvic, "cpu-type", ms->cpu_type);
qdev_prop_set_bit(nvic, "enable-bitband", true);
+ qdev_connect_clock_in(nvic, "cpuclk",
+ qdev_get_clock_out(ssys_dev, "SYSCLK"));
+ /* This SoC does not connect the systick reference clock */
object_property_set_link(OBJECT(nvic), "memory",
OBJECT(get_system_memory()), &error_abort);
/* This will exit with an error if the user passed us a bad cpu_type */
--
2.20.1
- Re: [PATCH for-6.2 11/25] hw/arm/stm32f100: Wire up sysclk and refclk, (continued)
- [PATCH for-6.2 12/25] hw/arm/stm32f205: Wire up sysclk and refclk, Peter Maydell, 2021/08/12
- [PATCH for-6.2 13/25] hw/arm/stm32f405: Wire up sysclk and refclk, Peter Maydell, 2021/08/12
- [PATCH for-6.2 17/25] hw/arm/stellaris: Wire sysclk up to armv7m,
Peter Maydell <=
- [PATCH for-6.2 18/25] hw/arm/msf2_soc: Don't allocate separate MemoryRegions, Peter Maydell, 2021/08/12
- [PATCH for-6.2 20/25] hw/arm/msf2-soc: Wire up refclk, Peter Maydell, 2021/08/12
- [PATCH for-6.2 21/25] hw/timer/armv7m_systick: Use clock inputs instead of system_clock_scale, Peter Maydell, 2021/08/12
- [PATCH for-6.2 23/25] hw/arm/stellaris: Split stellaris-gptm into its own file, Peter Maydell, 2021/08/12