Searched +full:yoga +full:- +full:c630 +full:- +full:ec (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/platform/arm64/ |
| H A D | lenovo-yoga-c630.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2022-2024, Linaro Ltd 19 #include <linux/platform_data/lenovo-yoga-c630.h> 38 static int yoga_c630_ec_request(struct yoga_c630_ec *ec, u8 *req, size_t req_len, in yoga_c630_ec_request() argument 43 lockdep_assert_held(&ec->lock); in yoga_c630_ec_request() 45 ret = i2c_smbus_write_i2c_block_data(ec->client, LENOVO_EC_REQUEST_REG, in yoga_c630_ec_request() 50 return i2c_smbus_read_i2c_block_data(ec->client, LENOVO_EC_RESPONSE_REG, in yoga_c630_ec_request() 54 int yoga_c630_ec_read8(struct yoga_c630_ec *ec, u8 addr) in yoga_c630_ec_read8() argument 60 guard(mutex)(&ec->lock); in yoga_c630_ec_read8() 63 ret = yoga_c630_ec_request(ec, req, sizeof(req), &val, 1); in yoga_c630_ec_read8() [all …]
|
| /linux/drivers/power/supply/ |
| H A D | lenovo_yoga_c630_battery.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2022-2024, Linaro Ltd 17 #include <linux/platform_data/lenovo-yoga-c630.h> 20 struct yoga_c630_ec *ec; member 73 struct yoga_c630_ec *ec = ecbat->ec; in yoga_c630_psy_update_bat_info() local 76 lockdep_assert_held(&ecbat->lock); in yoga_c630_psy_update_bat_info() 78 val = yoga_c630_ec_read8(ec, LENOVO_EC_BAT_PRESENT); in yoga_c630_psy_update_bat_info() 81 ecbat->bat_present = !!(val & LENOVO_EC_BAT_PRESENT_IS_PRESENT); in yoga_c630_psy_update_bat_info() 82 if (!ecbat->bat_present) in yoga_c630_psy_update_bat_info() 85 val = yoga_c630_ec_read8(ec, LENOVO_EC_BAT_ATTRIBUTES); in yoga_c630_psy_update_bat_info() [all …]
|
| /linux/drivers/usb/typec/ucsi/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 4 tristate "USB Type-C Connector System Software Interface driver" 9 USB Type-C Connector System Software Interface (UCSI) is a 11 control the USB Type-C ports. On UCSI system the USB Type-C ports 15 that are equipped with Embedded Controller and USB Type-C ports. 23 https://www.intel.com/content/www/us/en/io/universal-serial-bus/usb-type-c-ucsi-spec.html 35 Cypress CCGx Type-C controller over I2C interface. 57 Type-C controller over I2C interface. 73 tristate "UCSI Driver for ChromeOS EC" 79 This driver enables UCSI support for a ChromeOS EC. The EC is [all …]
|
| H A D | ucsi_yoga_c630.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2022-2024, Linaro Ltd 18 #include <linux/platform_data/lenovo-yoga-c630.h> 21 #include <drm/bridge/aux-bridge.h> 34 struct yoga_c630_ec *ec; member 45 *version = uec->version; in yoga_c630_ucsi_read_version() 56 ret = yoga_c630_ec_ucsi_read(uec->ec, buf); in yoga_c630_ucsi_read_cci() 72 ret = yoga_c630_ec_ucsi_read(uec->ec, buf); in yoga_c630_ucsi_read_message_in() 86 return yoga_c630_ec_ucsi_write(uec->ec, (u8*)&command); in yoga_c630_ucsi_async_control() 97 * EC doesn't return connector's DP mode even though it is supported. in yoga_c630_ucsi_sync_control() [all …]
|