mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-07 14:24:18 +08:00
12ac188b93
Add basic Sandisk manufacturer ops support to get SDTNQGAMA timing data with the nand_get_sdr_timings() function. Signed-off-by: Johan Jonker <jbx6244@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/aaf4580a-a368-8f70-c9c4-21b5ed4dd599@gmail.com
27 lines
630 B
C
27 lines
630 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "internals.h"
|
|
|
|
static int
|
|
sdtnqgama_choose_interface_config(struct nand_chip *chip,
|
|
struct nand_interface_config *iface)
|
|
{
|
|
onfi_fill_interface_config(chip, iface, NAND_SDR_IFACE, 0);
|
|
|
|
return nand_choose_best_sdr_timings(chip, iface, NULL);
|
|
}
|
|
|
|
static int sandisk_nand_init(struct nand_chip *chip)
|
|
{
|
|
if (!strncmp("SDTNQGAMA", chip->parameters.model,
|
|
sizeof("SDTNQGAMA") - 1))
|
|
chip->ops.choose_interface_config =
|
|
&sdtnqgama_choose_interface_config;
|
|
|
|
return 0;
|
|
}
|
|
|
|
const struct nand_manufacturer_ops sandisk_nand_manuf_ops = {
|
|
.init = sandisk_nand_init,
|
|
};
|