// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2000 Steven J. Hill ([email protected]) * 2002-2006 Thomas Gleixner ([email protected]) * * Credits: * David Woodhouse for adding multichip support * * Aleph One Ltd. and Toby Churchill Ltd. for supporting the * rework for 2K page size chips * * This file contains all ONFI helpers. */ #include <linux/slab.h> #include "internals.h" #define JEDEC_PARAM_PAGES … /* * Check if the NAND chip is JEDEC compliant, returns 1 if it is, 0 otherwise. */ int nand_jedec_detect(struct nand_chip *chip) { … }