/openbmc/linux/drivers/rtc/ |
H A D | rtc-cros-ec.c | 22 * @cros_ec: Pointer to EC device 28 struct cros_ec_device *cros_ec; member 34 static int cros_ec_rtc_get(struct cros_ec_device *cros_ec, u32 command, in cros_ec_rtc_get() argument 47 ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); in cros_ec_rtc_get() 56 static int cros_ec_rtc_set(struct cros_ec_device *cros_ec, u32 command, in cros_ec_rtc_set() argument 70 ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); in cros_ec_rtc_set() 80 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_read_time() local 84 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, &time); in cros_ec_rtc_read_time() 99 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_set_time() local 103 ret = cros_ec_rtc_set(cros_ec, EC_CMD_RTC_SET_VALUE, (u32)time); in cros_ec_rtc_set_time() [all …]
|
/openbmc/linux/drivers/media/cec/platform/cros-ec/ |
H A D | cros-ec-cec.c | 27 * @cros_ec: Pointer to EC device 34 struct cros_ec_device *cros_ec; member 43 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_message() local 44 uint8_t *cec_message = cros_ec->event_data.data.cec_message; in handle_cec_message() 45 unsigned int len = cros_ec->event_size; in handle_cec_message() 57 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_event() local 58 uint32_t events = cros_ec->event_data.data.cec_events; in handle_cec_event() 76 struct cros_ec_device *cros_ec; in cros_ec_cec_event() local 79 cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_event() 81 if (cros_ec->event_data.event_type == EC_MKBP_EVENT_CEC_EVENT) { in cros_ec_cec_event() [all …]
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | Kconfig | 64 config CROS_EC config 75 module will be called cros_ec. 79 depends on CROS_EC && I2C 89 depends on CROS_EC && RPMSG && OF 101 depends on CROS_EC 114 depends on CROS_EC && SPI 124 depends on CROS_EC && ACPI && SERIAL_DEV_BUS 134 depends on CROS_EC && ACPI && (X86 || COMPILE_TEST) 152 depends on LEDS_CLASS && (ACPI || CROS_EC) 304 depends on KUNIT && CROS_EC
|
H A D | cros_ec_uart.c | 20 #include "cros_ec.h" 54 * @wait_queue: Wait queue EC response where the cros_ec sends request 102 * buffer in din by cros_ec. This will ensure that if EC sends more in cros_ec_uart_rx_bytes() 278 /* Initialize ec_dev for cros_ec */ in cros_ec_uart_probe()
|
H A D | Makefile | 12 obj-$(CONFIG_CROS_EC) += cros_ec.o
|
/openbmc/u-boot/drivers/misc/ |
H A D | cros_ec_lpc.c | 3 * Chromium OS cros_ec driver - LPC interface 18 #include <cros_ec.h> 34 debug("%s: Timeout waiting for CROS_EC sync\n", in wait_for_sync() 134 debug("%s: CROS_EC result code %d\n", __func__, i); in cros_ec_lpc_command() 148 debug("%s: CROS_EC protocol mismatch\n", __func__); in cros_ec_lpc_command() 153 debug("%s: CROS_EC returned too much data %d > %d\n", in cros_ec_lpc_command() 171 debug("%s: CROS_EC response has invalid checksum\n", __func__); in cros_ec_lpc_command() 183 * @param dev CROS_EC device 198 debug("%s: CROS_EC device not found on LPC bus\n", in cros_ec_lpc_init()
|
H A D | Kconfig | 72 depends on CROS_EC 80 config CROS_EC config 91 depends on CROS_EC 100 depends on CROS_EC 109 depends on CROS_EC && SANDBOX 118 depends on CROS_EC
|
H A D | cros_ec_spi.c | 3 * Chromium OS cros_ec driver - SPI interface 16 #include <cros_ec.h> 65 * Send a command to a LPC CROS_EC device and return the reply. 69 * @param dev CROS_EC device
|
H A D | cros_ec_sandbox.c | 3 * Chromium OS cros_ec driver - sandbox emulation 9 #include <cros_ec.h> 149 SANDBOX_STATE_IO(cros_ec, "google,cros-ec", cros_ec_read_state, 537 debug("%s: No cros_ec keyboard found\n", __func__); in cros_ec_probe()
|
H A D | cros_ec_i2c.c | 3 * Chromium OS cros_ec driver - I2C interface 18 #include <cros_ec.h>
|
/openbmc/u-boot/doc/device-tree-bindings/misc/ |
H A D | cros-ec.txt | 1 Chrome OS CROS_EC Binding 4 The device tree node which describes the operation of the CROS_EC interface 21 The CROS_EC node should appear as a subnode of the interrupt that connects it
|
/openbmc/u-boot/include/ |
H A D | cros_ec.h | 3 * Chromium OS cros_ec driver 142 * @param cros_ecp Returns pointer to the cros_ec device, or NULL if none 143 * @return 0 if we got an cros_ec device and all is well (or no cros_ec is 144 * expected), -ve if we should have an cros_ec device but failed to find 200 * Run internal tests on the cros_ec interface.
|
/openbmc/u-boot/cmd/ |
H A D | cros_ec.c | 3 * Chromium OS cros_ec driver 11 #include <cros_ec.h> 112 printf("Could not init cros_ec device (err %d)\n", ret); in do_cros_ec() 382 "crosec test run tests on cros_ec\n"
|
/openbmc/linux/arch/arm/boot/dts/ |
H A D | cros-ec-keyboard.dtsi | 11 &cros_ec {
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | tegra124-nyan-big-u-boot.dtsi | 21 cros_ec: cros-ec@0 { label
|
/openbmc/u-boot/common/ |
H A D | cros_ec.c | 12 #include <cros_ec.h>
|
/openbmc/linux/Documentation/devicetree/bindings/chrome/ |
H A D | google,cros-kbd-led-backlight.yaml | 27 cros_ec: ec@0 {
|
H A D | google,cros-ec-typec.yaml | 46 cros_ec: ec@0 {
|
/openbmc/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8183-kukui-jacuzzi-fennel-sku1.dts | 17 label = "cros_ec::kbd_backlight";
|
H A D | mt8183-kukui-jacuzzi.dtsi | 7 /* Must come after mt8183-kukui.dtsi to modify cros_ec */ 90 &cros_ec {
|
/openbmc/u-boot/drivers/i2c/ |
H A D | cros_ec_tunnel.c | 9 #include <cros_ec.h>
|
H A D | cros_ec_ldo.c | 9 #include <cros_ec.h>
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | google,cros-ec-regulator.yaml | 39 cros_ec: ec@0 {
|
/openbmc/u-boot/board/sandbox/ |
H A D | sandbox.c | 7 #include <cros_ec.h>
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc7180-trogdor-r1.dts | 11 /* Must come after sc7180-trogdor.dtsi to modify cros_ec */
|