flash.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * arch/arm/include/asm/mach/flash.h
  4. *
  5. * Copyright (C) 2003 Russell King, All Rights Reserved.
  6. */
  7. #ifndef ASMARM_MACH_FLASH_H
  8. #define ASMARM_MACH_FLASH_H
  9. struct mtd_partition;
  10. struct mtd_info;
  11. /*
  12. * map_name: the map probe function name
  13. * name: flash device name (eg, as used with mtdparts=)
  14. * width: width of mapped device
  15. * init: method called at driver/device initialisation
  16. * exit: method called at driver/device removal
  17. * set_vpp: method called to enable or disable VPP
  18. * mmcontrol: method called to enable or disable Sync. Burst Read in OneNAND
  19. * parts: optional array of mtd_partitions for static partitioning
  20. * nr_parts: number of mtd_partitions for static partitioning
  21. */
  22. struct flash_platform_data {
  23. const char *map_name;
  24. const char *name;
  25. unsigned int width;
  26. int (*init)(void);
  27. void (*exit)(void);
  28. void (*set_vpp)(int on);
  29. void (*mmcontrol)(struct mtd_info *mtd, int sync_read);
  30. struct mtd_partition *parts;
  31. unsigned int nr_parts;
  32. };
  33. #endif