mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
![K V, Abhilash](/assets/img/avatar_default.png)
With this change the UCSI device will show up in /sys/class/power_supply/. The following values are exported: - online - usb_type - voltage_min - voltage_max - voltage_now - current_max - current_now Once a PD-capable type-C power source is connected to the system, GET_PDOS UCSI command is used to query all source capabilities. Request data object (RDO) is used to get current values. Signed-off-by: K V, Abhilash <abhilash.k.v@intel.com> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20200423132058.6972-7-heikki.krogerus@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 lines
398 B
Makefile
19 lines
398 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
CFLAGS_trace.o := -I$(src)
|
|
|
|
obj-$(CONFIG_TYPEC_UCSI) += typec_ucsi.o
|
|
|
|
typec_ucsi-y := ucsi.o
|
|
|
|
typec_ucsi-$(CONFIG_TRACING) += trace.o
|
|
|
|
ifneq ($(CONFIG_POWER_SUPPLY),)
|
|
typec_ucsi-y += psy.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_TYPEC_DP_ALTMODE),)
|
|
typec_ucsi-y += displayport.o
|
|
endif
|
|
|
|
obj-$(CONFIG_UCSI_ACPI) += ucsi_acpi.o
|
|
obj-$(CONFIG_UCSI_CCG) += ucsi_ccg.o
|