case NAND_OP_ADDR_INSTR:
ts72xx_nand_ctrl(chip, TS72XX_NAND_CTRL_ALE);
iowrite8_rep(data->base, instr->ctx.addr.addrs, instr->ctx.addr.naddrs);
ts72xx_nand_ctrl(chip, TS72XX_NAND_NCE); break;
case NAND_OP_DATA_IN_INSTR:
ioread8_rep(data->base, instr->ctx.data.buf.in, instr->ctx.data.len); break;
case NAND_OP_DATA_OUT_INSTR:
iowrite8_rep(data->base, instr->ctx.data.buf.in, instr->ctx.data.len); break;
case NAND_OP_WAITRDY_INSTR:
timeout_us = instr->ctx.waitrdy.timeout_ms * 1000;
ret = readb_poll_timeout(data->busy, status, status & BIT(5), 0, timeout_us); if (ret) return ret;
child = fwnode_get_next_child_node(dev_fwnode(&pdev->dev), NULL); if (!child) return dev_err_probe(&pdev->dev, -ENXIO, "ts72xx controller node should have exactly one child\n");
/* * This driver assumes that the default ECC engine should be TYPE_SOFT. * Set ->engine_type before registering the NAND devices in order to * provide a driver specific default value.
*/
data->chip.ecc.engine_type = NAND_ECC_ENGINE_TYPE_SOFT;
/* Scan to find existence of the device */
err = nand_scan(&data->chip, 1); if (err) goto err_handle_put;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.