Lines Matching +full:cros +full:- +full:ec

6  * SPDX-License-Identifier:	GPL-2.0+
21 struct gpio_desc ec_int; /* GPIO used as EC interrupt line */
26 * These two buffers will always be dword-aligned and include enough
27 * space for up to 7 word-alignment bytes also, so we can ensure that
28 * the body of the message is always dword-aligned (64-bit).
41 * Hard-code the number of columns we happen to know we have right now. It
52 /* Holds information about the Chrome EC */
54 struct fmap_entry flash; /* Address and size of EC flash */
56 * Byte value of erased flash, or -1 if not known. It is normally
64 * Read the ID of the CROS-EC device
66 * The ID is a string identifying the CROS-EC device.
68 * @param dev CROS-EC device
71 * @return 0 if ok, -1 on error
76 * Read a keyboard scan from the CROS-EC device
80 * @param dev CROS-EC device
82 * @return 0 if ok, -1 on error
87 * Read which image is currently running on the CROS-EC device.
89 * @param dev CROS-EC device
97 * Read the hash of the CROS-EC device firmware.
99 * @param dev CROS-EC device
107 * Send a reboot command to the CROS-EC device.
111 * @param dev CROS-EC device
120 * Check if the CROS-EC device has an interrupt pending.
122 * Read the status of the external interrupt connected to the CROS-EC device.
125 * @param dev CROS-EC device
140 * Initialise the Chromium OS EC driver
145 * expected), -ve if we should have an cros_ec device but failed to find
146 * one, or init failed (-CROS_EC_ERR_...).
153 * @param dev CROS-EC device
162 * @param dev CROS-EC device
171 * @param dev CROS-EC device
180 * @param dev CROS-EC device
185 * @param prot Destination for updated protection state from EC.
196 * @param dev CROS-EC device
202 * Update the EC RW copy.
204 * @param dev CROS-EC device
213 * Return a pointer to the board's CROS-EC device
217 * @return pointer to CROS-EC device, or NULL if none is available
230 ((struct dm_cros_ec_ops *)(dev)->driver->ops)
238 * @param cmd Command number associated with data, or -1 for none
245 * Calculate a simple 8-bit checksum of a data block
259 * Read an arbitrary amount of data from the EC flash, by repeatedly reading
265 * @param dev CROS-EC device
269 * @return 0 if ok, -1 on error
277 * This function reads back parameters of the flash as reported by the EC
288 * Write an arbitrary amount of data to the EC flash, by repeatedly writing
294 * Attempting to write to the region where the EC is currently running from
297 * @param dev CROS-EC device
301 * @return 0 if ok, -1 on error
309 * @param dev CROS-EC device
311 * @param offset Returns offset of flash region in EC flash
313 * @return 0 if ok, -1 on error
319 * Read/write VbNvContext from/to a CROS-EC device.
321 * @param dev CROS-EC device
323 * @return 0 if ok, -1 on error
329 * Read the version information for the EC images
331 * @param dev CROS-EC device
333 * @return 0 if ok, -1 on error
339 * Read the build information for the EC
341 * @param dev CROS-EC device
343 * @return 0 if ok, -1 on error
350 * @param dev CROS-EC device
353 * @return 0 if ok, -1 on error
360 * @param dev CROS-EC device
363 * @return 0 if ok, -1 on error
370 * This permits delayed reporting of the EC error if it failed during
373 * @return error (0 if there was no error, -ve if there was an error)
378 * Returns information from the FDT about the Chrome EC flash
389 * @param ec CROS-EC device
395 * Tunnel an I2C transfer to the EC
397 * @param dev CROS-EC device
398 * @param port The remote port on EC to use