Merge tag 'video-2021-07-rc1' of https://source.denx.de/u-boot/custodians/u-boot-video
- rk3399 eDP support - pwm backlight without a known period_ns - add Chrome OS EC PWM driver - Kconfig SIMPLE_PANEL DM_GPIO dependency - remove mb862xx driver remnants - fix KiB format in reserve_video() debug trace - fix tegra124 sor CSTM LVDS_EN_ENABLE/DISABLE config - fix line padding calculation for 16 and 24 BPP bitmaps
This commit is contained in:
@@ -512,6 +512,19 @@ int cros_ec_efs_verify(struct udevice *dev, enum ec_flash_region region);
|
||||
*/
|
||||
int cros_ec_battery_cutoff(struct udevice *dev, uint8_t flags);
|
||||
|
||||
/**
|
||||
* cros_ec_set_pwm_duty() - Set duty cycle of a generic pwm
|
||||
*
|
||||
* Note that duty value needs to be passed to the EC as a 16 bit number
|
||||
* for increased precision.
|
||||
*
|
||||
* @param dev CROS-EC device
|
||||
* @param index Index of the pwm
|
||||
* @param duty Desired duty cycle, in 0..EC_PWM_MAX_DUTY range.
|
||||
* @return 0 if OK, -ve on error
|
||||
*/
|
||||
int cros_ec_set_pwm_duty(struct udevice *dev, uint8_t index, uint16_t duty);
|
||||
|
||||
/**
|
||||
* cros_ec_read_limit_power() - Check if power is limited by batter/charger
|
||||
*
|
||||
|
@@ -17,6 +17,10 @@ struct pwm_ops {
|
||||
/**
|
||||
* set_config() - Set the PWM configuration
|
||||
*
|
||||
* Change both the PWM device's period and it's duty period if
|
||||
* possible. Otherwise, set an appropriate duty period that best
|
||||
* matches the given period_ns / duty_ns ratio for the device.
|
||||
*
|
||||
* @dev: PWM device to update
|
||||
* @channel: PWM channel to update
|
||||
* @period_ns: PWM period in nanoseconds
|
||||
@@ -51,6 +55,10 @@ struct pwm_ops {
|
||||
/**
|
||||
* pwm_set_config() - Set the PWM configuration
|
||||
*
|
||||
* Change both the PWM device's period and it's duty period if
|
||||
* possible. Otherwise, set an appropriate duty period that best
|
||||
* matches the given period_ns / duty_ns ratio for the device.
|
||||
*
|
||||
* @dev: PWM device to update
|
||||
* @channel: PWM channel to update
|
||||
* @period_ns: PWM period in nanoseconds
|
||||
|
Reference in New Issue
Block a user