Skip to content

Commit

Permalink
hw/timer: Add SiFive PWM support
Browse files Browse the repository at this point in the history
This is the initial commit of the SiFive PWM timer. This is used by
guest software as a timer and is included in the SiFive FU540 SoC.

Signed-off-by: Justin Restivo <jrestivo@draper.com>
Signed-off-by: Alexandra Clifford <aclifford@draper.com>
Signed-off-by: Amanda Strnad <astrnad@draper.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Message-id: 9f70a210acbfaf0e1ea6ad311ab892ac69134d8b.1631159656.git.alistair.francis@wdc.com
  • Loading branch information
alistair23 committed Sep 20, 2021
1 parent 57a3a62 commit 5bf6f1a
Show file tree
Hide file tree
Showing 5 changed files with 540 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hw/timer/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ config ALLWINNER_A10_PIT
bool
select PTIMER

config SIFIVE_PWM
bool

config STM32F2XX_TIMER
bool

Expand Down
1 change: 1 addition & 0 deletions hw/timer/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ softmmu_ss.add(when: 'CONFIG_STELLARIS_GPTM', if_true: files('stellaris-gptm.c')
softmmu_ss.add(when: 'CONFIG_STM32F2XX_TIMER', if_true: files('stm32f2xx_timer.c'))
softmmu_ss.add(when: 'CONFIG_XILINX', if_true: files('xilinx_timer.c'))
specific_ss.add(when: 'CONFIG_IBEX', if_true: files('ibex_timer.c'))
softmmu_ss.add(when: 'CONFIG_SIFIVE_PWM', if_true: files('sifive_pwm.c'))

specific_ss.add(when: 'CONFIG_AVR_TIMER16', if_true: files('avr_timer16.c'))
Loading

0 comments on commit 5bf6f1a

Please sign in to comment.