diff options
-rw-r--r-- | drivers/mtd/nand/plat_nand.c | 2 | ||||
-rw-r--r-- | include/linux/mtd/nand.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c index 28ffd4e8bb2f..47a2105b9671 100644 --- a/drivers/mtd/nand/plat_nand.c +++ b/drivers/mtd/nand/plat_nand.c | |||
@@ -61,6 +61,8 @@ static int __devinit plat_nand_probe(struct platform_device *pdev) | |||
61 | data->chip.cmd_ctrl = pdata->ctrl.cmd_ctrl; | 61 | data->chip.cmd_ctrl = pdata->ctrl.cmd_ctrl; |
62 | data->chip.dev_ready = pdata->ctrl.dev_ready; | 62 | data->chip.dev_ready = pdata->ctrl.dev_ready; |
63 | data->chip.select_chip = pdata->ctrl.select_chip; | 63 | data->chip.select_chip = pdata->ctrl.select_chip; |
64 | data->chip.write_buf = pdata->ctrl.write_buf; | ||
65 | data->chip.read_buf = pdata->ctrl.read_buf; | ||
64 | data->chip.chip_delay = pdata->chip.chip_delay; | 66 | data->chip.chip_delay = pdata->chip.chip_delay; |
65 | data->chip.options |= pdata->chip.options; | 67 | data->chip.options |= pdata->chip.options; |
66 | 68 | ||
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 7efb9be34662..0e35375ea795 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
@@ -584,6 +584,8 @@ struct platform_nand_chip { | |||
584 | * @select_chip: platform specific chip select function | 584 | * @select_chip: platform specific chip select function |
585 | * @cmd_ctrl: platform specific function for controlling | 585 | * @cmd_ctrl: platform specific function for controlling |
586 | * ALE/CLE/nCE. Also used to write command and address | 586 | * ALE/CLE/nCE. Also used to write command and address |
587 | * @write_buf: platform specific function for write buffer | ||
588 | * @read_buf: platform specific function for read buffer | ||
587 | * @priv: private data to transport driver specific settings | 589 | * @priv: private data to transport driver specific settings |
588 | * | 590 | * |
589 | * All fields are optional and depend on the hardware driver requirements | 591 | * All fields are optional and depend on the hardware driver requirements |
@@ -594,6 +596,10 @@ struct platform_nand_ctrl { | |||
594 | void (*select_chip)(struct mtd_info *mtd, int chip); | 596 | void (*select_chip)(struct mtd_info *mtd, int chip); |
595 | void (*cmd_ctrl)(struct mtd_info *mtd, int dat, | 597 | void (*cmd_ctrl)(struct mtd_info *mtd, int dat, |
596 | unsigned int ctrl); | 598 | unsigned int ctrl); |
599 | void (*write_buf)(struct mtd_info *mtd, | ||
600 | const uint8_t *buf, int len); | ||
601 | void (*read_buf)(struct mtd_info *mtd, | ||
602 | uint8_t *buf, int len); | ||
597 | void *priv; | 603 | void *priv; |
598 | }; | 604 | }; |
599 | 605 | ||