Lines Matching defs:firmware

14 #include <linux/firmware.h>
579 * This function will advance the firmware into boot stage 3 from boot stage 2.
580 * Boot stage 3 is required to send commands to the firmware. This is achieved
581 * by setting the firmware NEED configuration register to zero, this indicates
582 * no configuration is required forcing the firmware to advance to boot stage 3.
584 * Later revisions of the firmware require the use of an alternative register
610 * This function will return the firmware to boot stage 2 from boot stage 3.
611 * Boot stage 2 is required to apply updates to the firmware. This is achieved
612 * by setting the firmware NEED configuration register to FW_PATCH_NEED_CFG,
614 * firmware will see it is missing a patch configuration and will pause in boot
618 * register here as the driver will only return to boot stage 2 if the firmware
632 * Disable the firmware running on the device such that the driver can access
651 dev_err(cs42l43->dev, "Failed to disable firmware: %d, 0x%x\n", ret, val);
655 /* Soft reset to clear any register state the firmware left behind. */
660 * Callback to load firmware updates.
662 static void cs42l43_mcu_load_firmware(const struct firmware *firmware, void *context)
669 if (!firmware) {
670 dev_err(cs42l43->dev, "Failed to load firmware\n");
675 hdr = (const struct cs42l43_patch_header *)&firmware->data[0];
679 dev_err(cs42l43->dev, "Bad firmware file format: %d\n", hdr->version);
686 &firmware->data[0], firmware->size / sizeof(u32));
695 dev_err(cs42l43->dev, "Failed to update firmware: %d, 0x%x\n", ret, val);
701 release_firmware(firmware);
707 * The process of updating the firmware is split into a series of steps, at the
729 dev_err(cs42l43->dev, "Failed to read firmware revision: %d\n", ret);
742 * The firmware has two revision numbers bringing either of them up to a
777 dev_err(cs42l43->dev, "Failed to request firmware: %d\n", ret);
804 * Update the firmware running on the device.