UPSTREAM: mfd: cros_ec: Load cros_ec_ucsi on supported ECs
Load cros_ec_ucsi driver if the ChromeOS EC implements UCSI Platform Policy Manager (PPM). Signed-off-by: Pavan Holla <pholla@chromium.org> Signed-off-by: Łukasz Bartosik <ukaszb@chromium.org> Link: https://lore.kernel.org/r/20240910101527.603452-8-ukaszb@chromium.org Signed-off-by: Lee Jones <lee@kernel.org> (cherry picked from commit 4636d159dd046562948c973fcf2cb5d99e380268) Bug: 381479678 Bug: 381479318 Change-Id: I48cda0f8f872de87f4466ef98dab431cacb34baf Signed-off-by: Jameson Thies <jthies@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
21d2121e6b
commit
f84d8f1e8e
@@ -108,6 +108,10 @@ static const struct mfd_cell cros_ec_keyboard_leds_cells[] = {
|
||||
{ .name = "cros-keyboard-leds", },
|
||||
};
|
||||
|
||||
static const struct mfd_cell cros_ec_ucsi_cells[] = {
|
||||
{ .name = "cros_ec_ucsi", },
|
||||
};
|
||||
|
||||
static const struct cros_feature_to_cells cros_subdevices[] = {
|
||||
{
|
||||
.id = EC_FEATURE_CEC,
|
||||
@@ -124,6 +128,11 @@ static const struct cros_feature_to_cells cros_subdevices[] = {
|
||||
.mfd_cells = cros_ec_rtc_cells,
|
||||
.num_cells = ARRAY_SIZE(cros_ec_rtc_cells),
|
||||
},
|
||||
{
|
||||
.id = EC_FEATURE_UCSI_PPM,
|
||||
.mfd_cells = cros_ec_ucsi_cells,
|
||||
.num_cells = ARRAY_SIZE(cros_ec_ucsi_cells),
|
||||
},
|
||||
{
|
||||
.id = EC_FEATURE_USB_PD,
|
||||
.mfd_cells = cros_usbpd_charger_cells,
|
||||
|
||||
Reference in New Issue
Block a user