Searched refs:spinand (Results 1 – 9 of 9) sorted by relevance
/u-boot/drivers/mtd/nand/spi/ |
A D | core.c | 89 *cfg = spinand->cfg_cache[spinand->cur_target]; in spinand_get_cfg() 102 if (spinand->cfg_cache[spinand->cur_target] == cfg) in spinand_set_cfg() 109 spinand->cfg_cache[spinand->cur_target] = cfg; in spinand_set_cfg() 163 ret = spinand->select_target(spinand, target); in spinand_select_target() 489 return spinand->eccinfo.get_status(spinand, status); in spinand_check_ecc_status() 860 return spinand->manufacturer->ops->init(spinand); in spinand_manufacturer_init() 869 return spinand->manufacturer->ops->cleanup(spinand); in spinand_manufacturer_cleanup() 974 ret = spinand_read_id_op(spinand, spinand->id.data); in spinand_detect() 1058 spinand->oobbuf = spinand->databuf + nanddev_page_size(nand); in spinand_init() 1150 spinand = devm_kzalloc(&mem->spi->dev, sizeof(*spinand), in spinand_probe() [all …]
|
A D | winbond.c | 67 static int w25m02gv_select_target(struct spinand_device *spinand, in w25m02gv_select_target() argument 74 spinand->scratchbuf, in w25m02gv_select_target() 77 *spinand->scratchbuf = target; in w25m02gv_select_target() 78 return spi_mem_exec_op(spinand->slave, &op); in w25m02gv_select_target() 106 static int winbond_spinand_detect(struct spinand_device *spinand) in winbond_spinand_detect() argument 108 u8 *id = spinand->id.data; in winbond_spinand_detect() 118 ret = spinand_match_and_init(spinand, winbond_spinand_table, in winbond_spinand_detect() 126 static int winbond_spinand_init(struct spinand_device *spinand) in winbond_spinand_init() argument 128 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init() 136 spinand_select_target(spinand, i); in winbond_spinand_init() [all …]
|
A D | macronix.c | 55 static int mx35lf1ge4ab_get_eccsr(struct spinand_device *spinand, u8 *eccsr) in mx35lf1ge4ab_get_eccsr() argument 62 return spi_mem_exec_op(spinand->slave, &op); in mx35lf1ge4ab_get_eccsr() 65 static int mx35lf1ge4ab_ecc_get_status(struct spinand_device *spinand, in mx35lf1ge4ab_ecc_get_status() argument 68 struct nand_device *nand = spinand_to_nand(spinand); in mx35lf1ge4ab_ecc_get_status() 84 if (mx35lf1ge4ab_get_eccsr(spinand, &eccsr)) in mx35lf1ge4ab_ecc_get_status() 119 static int macronix_spinand_detect(struct spinand_device *spinand) in macronix_spinand_detect() argument 121 u8 *id = spinand->id.data; in macronix_spinand_detect() 131 ret = spinand_match_and_init(spinand, macronix_spinand_table, in macronix_spinand_detect()
|
A D | micron.c | 81 static int micron_select_target(struct spinand_device *spinand, in micron_select_target() argument 85 spinand->scratchbuf); in micron_select_target() 90 *spinand->scratchbuf = MICRON_SELECT_DIE(target); in micron_select_target() 92 return spi_mem_exec_op(spinand->slave, &op); in micron_select_target() 95 static int micron_8_ecc_get_status(struct spinand_device *spinand, in micron_8_ecc_get_status() argument 217 static int micron_spinand_detect(struct spinand_device *spinand) in micron_spinand_detect() argument 219 u8 *id = spinand->id.data; in micron_spinand_detect() 229 ret = spinand_match_and_init(spinand, micron_spinand_table, in micron_spinand_detect() 237 static int micron_spinand_init(struct spinand_device *spinand) in micron_spinand_init() argument 244 if (spinand->flags & SPINAND_HAS_CR_FEAT_BIT) in micron_spinand_init() [all …]
|
A D | gigadevice.c | 76 static int gd5fxgq4xexxg_ecc_get_status(struct spinand_device *spinand, in gd5fxgq4xexxg_ecc_get_status() argument 93 ret = spi_mem_exec_op(spinand->slave, &op); in gd5fxgq4xexxg_ecc_get_status() 118 static int gd5fxgq5xexxg_ecc_get_status(struct spinand_device *spinand, in gd5fxgq5xexxg_ecc_get_status() argument 135 ret = spi_mem_exec_op(spinand->slave, &op); in gd5fxgq5xexxg_ecc_get_status() 181 static int gigadevice_spinand_detect(struct spinand_device *spinand) in gigadevice_spinand_detect() argument 183 u8 *id = spinand->id.data; in gigadevice_spinand_detect() 193 ret = spinand_match_and_init(spinand, gigadevice_spinand_table, in gigadevice_spinand_detect()
|
A D | Makefile | 3 spinand-objs := core.o gigadevice.o macronix.o micron.o toshiba.o winbond.o 4 obj-$(CONFIG_MTD_SPI_NAND) += spinand.o
|
A D | toshiba.c | 74 static int tx58cxgxsxraix_ecc_get_status(struct spinand_device *spinand, in tx58cxgxsxraix_ecc_get_status() argument 77 struct nand_device *nand = spinand_to_nand(spinand); in tx58cxgxsxraix_ecc_get_status() 95 if (spi_mem_exec_op(spinand->slave, &op)) in tx58cxgxsxraix_ecc_get_status() 260 static int toshiba_spinand_detect(struct spinand_device *spinand) in toshiba_spinand_detect() argument 262 u8 *id = spinand->id.data; in toshiba_spinand_detect() 272 ret = spinand_match_and_init(spinand, toshiba_spinand_table, in toshiba_spinand_detect()
|
/u-boot/include/linux/mtd/ |
A D | spinand.h | 186 int (*detect)(struct spinand_device *spinand); 187 int (*init)(struct spinand_device *spinand); 188 void (*cleanup)(struct spinand_device *spinand); 244 int (*get_status)(struct spinand_device *spinand, u8 status); 281 int (*select_target)(struct spinand_device *spinand, 356 int (*select_target)(struct spinand_device *spinand, 389 return nanddev_to_mtd(&spinand->base); in spinand_to_mtd() 410 spinand_to_nand(struct spinand_device *spinand) in spinand_to_nand() argument 412 return &spinand->base; in spinand_to_nand() 426 nanddev_set_of_node(&spinand->base, np); in spinand_set_of_node() [all …]
|
/u-boot/board/st/common/ |
A D | stm32mp_mtdparts.c | 73 bool tee, nor, nand, spinand, serial; in board_mtdparts_default() local 84 spinand = false; in board_mtdparts_default() 96 spinand = true; in board_mtdparts_default() 102 spinand = true; in board_mtdparts_default() 137 if (spinand) { in board_mtdparts_default()
|
Completed in 12 milliseconds