linux/drivers/mtd/nand/raw/nand_toshiba.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2017 Free Electrons
 * Copyright (C) 2017 NextThing Co
 *
 * Author: Boris Brezillon <[email protected]>
 */

#include "internals.h"

/* Bit for detecting BENAND */
#define TOSHIBA_NAND_ID4_IS_BENAND

/* Recommended to rewrite for BENAND */
#define TOSHIBA_NAND_STATUS_REWRITE_RECOMMENDED

/* ECC Status Read Command for BENAND */
#define TOSHIBA_NAND_CMD_ECC_STATUS_READ

/* ECC Status Mask for BENAND */
#define TOSHIBA_NAND_ECC_STATUS_MASK

/* Uncorrectable Error for BENAND */
#define TOSHIBA_NAND_ECC_STATUS_UNCORR

/* Max ECC Steps for BENAND */
#define TOSHIBA_NAND_MAX_ECC_STEPS

static int toshiba_nand_benand_read_eccstatus_op(struct nand_chip *chip,
						 u8 *buf)
{}

static int toshiba_nand_benand_eccstatus(struct nand_chip *chip)
{}

static int
toshiba_nand_read_page_benand(struct nand_chip *chip, uint8_t *buf,
			      int oob_required, int page)
{}

static int
toshiba_nand_read_subpage_benand(struct nand_chip *chip, uint32_t data_offs,
				 uint32_t readlen, uint8_t *bufpoi, int page)
{}

static void toshiba_nand_benand_init(struct nand_chip *chip)
{}

static void toshiba_nand_decode_id(struct nand_chip *chip)
{}

static int
tc58teg5dclta00_choose_interface_config(struct nand_chip *chip,
					struct nand_interface_config *iface)
{}

static int
tc58nvg0s3e_choose_interface_config(struct nand_chip *chip,
				    struct nand_interface_config *iface)
{}

static int
th58nvg2s3hbai4_choose_interface_config(struct nand_chip *chip,
					struct nand_interface_config *iface)
{}

static int tc58teg5dclta00_init(struct nand_chip *chip)
{}

static int tc58nvg0s3e_init(struct nand_chip *chip)
{}

static int th58nvg2s3hbai4_init(struct nand_chip *chip)
{}

static int toshiba_nand_init(struct nand_chip *chip)
{}

const struct nand_manufacturer_ops toshiba_nand_manuf_ops =;