]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/linux/mtd/nand.h
mtd: nand: allow drivers to request minimum alignment for passed buffer
[people/ms/u-boot.git] / include / linux / mtd / nand.h
index be3005963229f418bba93eeb3b931968b1edde5a..90c60101051814931f31c8982bd6ddd4d62a174b 100644 (file)
@@ -752,6 +752,7 @@ nand_get_sdr_timings(const struct nand_data_interface *conf)
  *                     setting the read-retry mode. Mostly needed for MLC NAND.
  * @ecc:               [BOARDSPECIFIC] ECC control structure
  * @buffers:           buffer structure for read/write
+ * @buf_align:         minimum buffer alignment required by a platform
  * @hwcontrol:         platform-specific hardware control structure
  * @erase:             [REPLACEABLE] erase function
  * @scan_bbt:          [REPLACEABLE] function to scan bad block table
@@ -893,6 +894,7 @@ struct nand_chip {
 
        struct nand_ecc_ctrl ecc;
        struct nand_buffers *buffers;
+       unsigned long buf_align;
        struct nand_hw_control hwcontrol;
 
        uint8_t *bbt;