fb_nand.h 706 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2014 Broadcom Corporation.
  4. * Copyright 2015 Free Electrons.
  5. */
  6. /**
  7. * fastboot_nand_flash_write() - Write image to NAND for fastboot
  8. *
  9. * @cmd: Named device to write image to
  10. * @download_buffer: Pointer to image data
  11. * @download_bytes: Size of image data
  12. * @response: Pointer to fastboot response buffer
  13. */
  14. void fastboot_nand_flash_write(const char *cmd, void *download_buffer,
  15. unsigned int download_bytes, char *response);
  16. /**
  17. * fastboot_nand_flash_erase() - Erase NAND for fastboot
  18. *
  19. * @cmd: Named device to erase
  20. * @response: Pointer to fastboot response buffer
  21. */
  22. void fastboot_nand_erase(const char *cmd, char *response);