diff options
author | Tom Rini <trini@konsulko.com> | 2021-07-07 13:34:42 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-07 13:34:42 -0400 |
commit | 7e58a3a148fb94e9ce09fb48d0ddd75c20ee7df9 (patch) | |
tree | 6a4edadac675129fe33da72bb6aa863b7e57f2e1 /arch/sandbox/include/asm/test.h | |
parent | 5b8a83551d339736af92c43524ed0e1ba01122af (diff) | |
parent | 880e4768c20b99b1f9a50f35c180f8522dd82c9a (diff) |
Merge tag 'dm-pull-6jul21' of https://source.denx.de/u-boot/custodians/u-boot-dm
various minor sandbox improvements
Diffstat (limited to 'arch/sandbox/include/asm/test.h')
-rw-r--r-- | arch/sandbox/include/asm/test.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h index 1cb960ac240..dab1a4ea01b 100644 --- a/arch/sandbox/include/asm/test.h +++ b/arch/sandbox/include/asm/test.h @@ -275,4 +275,14 @@ void sandbox_set_enable_memio(bool enable); */ void sandbox_cros_ec_set_test_flags(struct udevice *dev, uint flags); +/** + * sandbox_cros_ec_get_pwm_duty() - Get EC PWM config for testing purposes + * + * @dev: Device to check + * @index: PWM channel index + * @duty: Current duty cycle in 0..EC_PWM_MAX_DUTY range. + * @return 0 if OK, -ENOSPC if the PWM number is invalid + */ +int sandbox_cros_ec_get_pwm_duty(struct udevice *dev, uint index, uint *duty); + #endif |