zephyr/boards/riscv/it8xxx2_evb
Ruibin Chang 5f3bba54e8 ITE drivers/pwm: support tests/drivers/pwm/pwm_api
Add pwm-0 to support tests/drivers/pwm/pwm_api.

Solve tests code runtime error on it8xxx2_evb:
1.If the pwm channel target frequency is < 1, then we will
  return an error code.

2.If the target_freq is <= 324Hz, we will configure that this pwm
  channel need to output in EC power saving mode.
  In test_pwm_cycle() case, the period is 64000, then the
  target_freq is 8000000 / 64000 = 125Hz and <= 324Hz, so we will
  switch the prescaler clock source from 8MHz to 32.768kHz.
  Then the target_freq is 32768 / 64000 = 0.512Hz and < 1Hz,
  this will return an error code. In order to get the same
  target_freq, we always return PWM_FREQ in
  pwm_it8xxx2_get_cycles_per_sec().

Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
2022-02-21 20:44:41 -05:00
..
doc doc: fix image resolution of the ITE IT8XXX2 series board 2021-06-25 11:35:44 -04:00
support
CMakeLists.txt
Kconfig.board
Kconfig.defconfig
board.cmake cmake: support multiple entries in board.cmake 2021-11-12 21:33:42 -05:00
it8xxx2_evb.dts ITE drivers/pwm: support tests/drivers/pwm/pwm_api 2022-02-21 20:44:41 -05:00
it8xxx2_evb.yaml
it8xxx2_evb_defconfig ITE boards/it8xxx2_evb: remove CONFIG_* not for every application 2021-11-12 10:25:47 -06:00
pinmux.c