Skip to content
  • Peter Maydell's avatar
    68ba05fb
    hw/arm/stm32f205: Wire up sysclk and refclk · 68ba05fb
    Peter Maydell authored
    
    
    Wire up the sysclk and refclk for the stm32f205 SoC.  This SoC always
    runs the systick refclk at 1/8 the frequency of the main CPU clock,
    so the board code only needs to provide a single sysclk clock.
    
    Because there is only one board using this SoC, we convert the SoC
    and the board together, rather than splitting it into "add clock to
    SoC; connect clock in board; add error check in SoC code that clock
    is wired up".
    
    When the systick device starts honouring its clock inputs, this will
    fix an emulation inaccuracy in the netduino2 board where the systick
    reference clock was running at 1MHz rather than 15MHz.
    
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
    Reviewed-by: default avatarAlexandre Iooss <erdnaxe@crans.org>
    Reviewed-by: default avatarLuc Michel <luc@lmichel.fr>
    Message-id: 20210812093356.1946-13-peter.maydell@linaro.org
    68ba05fb
    hw/arm/stm32f205: Wire up sysclk and refclk
    Peter Maydell authored
    
    
    Wire up the sysclk and refclk for the stm32f205 SoC.  This SoC always
    runs the systick refclk at 1/8 the frequency of the main CPU clock,
    so the board code only needs to provide a single sysclk clock.
    
    Because there is only one board using this SoC, we convert the SoC
    and the board together, rather than splitting it into "add clock to
    SoC; connect clock in board; add error check in SoC code that clock
    is wired up".
    
    When the systick device starts honouring its clock inputs, this will
    fix an emulation inaccuracy in the netduino2 board where the systick
    reference clock was running at 1MHz rather than 15MHz.
    
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
    Reviewed-by: default avatarAlexandre Iooss <erdnaxe@crans.org>
    Reviewed-by: default avatarLuc Michel <luc@lmichel.fr>
    Message-id: 20210812093356.1946-13-peter.maydell@linaro.org
Loading