Home
last modified time | relevance | path

Searched full:cros_ec (Results 1 – 25 of 108) sorted by relevance

12345

/openbmc/linux/drivers/rtc/
H A Drtc-cros-ec.c22 * @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 Dcros-ec-cec.c27 * @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 DKconfig64 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 Dcros_ec_uart.c20 #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 DMakefile12 obj-$(CONFIG_CROS_EC) += cros_ec.o
/openbmc/u-boot/drivers/misc/
H A Dcros_ec_lpc.c3 * 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 DKconfig72 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 Dcros_ec_spi.c3 * 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 Dcros_ec_sandbox.c3 * 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 Dcros_ec_i2c.c3 * Chromium OS cros_ec driver - I2C interface
18 #include <cros_ec.h>
/openbmc/u-boot/doc/device-tree-bindings/misc/
H A Dcros-ec.txt1 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 Dcros_ec.h3 * 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 Dcros_ec.c3 * 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 Dcros-ec-keyboard.dtsi11 &cros_ec {
/openbmc/u-boot/arch/arm/dts/
H A Dtegra124-nyan-big-u-boot.dtsi21 cros_ec: cros-ec@0 { label
/openbmc/u-boot/common/
H A Dcros_ec.c12 #include <cros_ec.h>
/openbmc/linux/Documentation/devicetree/bindings/chrome/
H A Dgoogle,cros-kbd-led-backlight.yaml27 cros_ec: ec@0 {
H A Dgoogle,cros-ec-typec.yaml46 cros_ec: ec@0 {
/openbmc/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8183-kukui-jacuzzi-fennel-sku1.dts17 label = "cros_ec::kbd_backlight";
H A Dmt8183-kukui-jacuzzi.dtsi7 /* Must come after mt8183-kukui.dtsi to modify cros_ec */
90 &cros_ec {
/openbmc/u-boot/drivers/i2c/
H A Dcros_ec_tunnel.c9 #include <cros_ec.h>
H A Dcros_ec_ldo.c9 #include <cros_ec.h>
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A Dgoogle,cros-ec-regulator.yaml39 cros_ec: ec@0 {
/openbmc/u-boot/board/sandbox/
H A Dsandbox.c7 #include <cros_ec.h>
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dsc7180-trogdor-r1.dts11 /* Must come after sc7180-trogdor.dtsi to modify cros_ec */

12345