gpio.c (82fc5099744e5f30cd8c9ee13075f28fb37e9518) | gpio.c (bf6065c6c08fa3ed7bdf8d28b8062ce8e58c1543) |
---|---|
1/* 2 * Updated, and converted to generic GPIO based driver by Russell King. 3 * 4 * Written by Ben Dooks <ben@simtec.co.uk> 5 * Based on 2.4 version by Mark Whittaker 6 * 7 * © 2004 Simtec Electronics 8 * --- 265 unchanged lines hidden (view full) --- 274 chip->dev_ready = gpio_nand_devready; 275 276 nand_set_flash_node(chip, pdev->dev.of_node); 277 chip->legacy.IO_ADDR_W = chip->legacy.IO_ADDR_R; 278 chip->ecc.mode = NAND_ECC_SOFT; 279 chip->ecc.algo = NAND_ECC_HAMMING; 280 chip->options = gpiomtd->plat.options; 281 chip->chip_delay = gpiomtd->plat.chip_delay; | 1/* 2 * Updated, and converted to generic GPIO based driver by Russell King. 3 * 4 * Written by Ben Dooks <ben@simtec.co.uk> 5 * Based on 2.4 version by Mark Whittaker 6 * 7 * © 2004 Simtec Electronics 8 * --- 265 unchanged lines hidden (view full) --- 274 chip->dev_ready = gpio_nand_devready; 275 276 nand_set_flash_node(chip, pdev->dev.of_node); 277 chip->legacy.IO_ADDR_W = chip->legacy.IO_ADDR_R; 278 chip->ecc.mode = NAND_ECC_SOFT; 279 chip->ecc.algo = NAND_ECC_HAMMING; 280 chip->options = gpiomtd->plat.options; 281 chip->chip_delay = gpiomtd->plat.chip_delay; |
282 chip->cmd_ctrl = gpio_nand_cmd_ctrl; | 282 chip->legacy.cmd_ctrl = gpio_nand_cmd_ctrl; |
283 284 mtd = nand_to_mtd(chip); 285 mtd->dev.parent = dev; 286 287 platform_set_drvdata(pdev, gpiomtd); 288 289 /* Disable write protection, if wired up */ 290 if (gpiomtd->nwp && !IS_ERR(gpiomtd->nwp)) --- 38 unchanged lines hidden --- | 283 284 mtd = nand_to_mtd(chip); 285 mtd->dev.parent = dev; 286 287 platform_set_drvdata(pdev, gpiomtd); 288 289 /* Disable write protection, if wired up */ 290 if (gpiomtd->nwp && !IS_ERR(gpiomtd->nwp)) --- 38 unchanged lines hidden --- |