Lines Matching +full:nand +full:- +full:int +full:- +full:base

1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Freescale GPMI NAND Flash Driver
5 * Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
13 #include <linux/dma-mapping.h>
20 unsigned int dma_low_channel;
21 unsigned int dma_high_channel;
26 * struct bch_geometry - BCH geometry description.
41 * @block_mark_byte_offset: The byte offset in the ECC-based page view at
43 * @block_mark_bit_offset: The bit offset into the ECC-based page view at
49 unsigned int gf_len;
50 unsigned int ecc_strength;
51 unsigned int page_size;
52 unsigned int metadata_size;
53 unsigned int ecc0_chunk_size;
54 unsigned int eccn_chunk_size;
55 unsigned int ecc_chunk_count;
56 unsigned int payload_size;
57 unsigned int auxiliary_size;
58 unsigned int auxiliary_status_offset;
59 unsigned int block_mark_byte_offset;
60 unsigned int block_mark_bit_offset;
61 unsigned int ecc_for_meta; /* ECC for meta data */
65 * struct boot_rom_geometry - Boot ROM geometry description.
67 * @search_area_stride_exponent: The logarithm to base 2 of the size of a
71 unsigned int stride_size_in_pages;
72 unsigned int search_area_stride_exponent;
86 int bch_max_ecc_strength;
87 int max_chain_delay; /* See the SDR EDO mode */
89 const int clks_count;
94 * struct gpmi_nfc_hardware_timing - GPMI hardware timing parameters.
106 unsigned long int clk_rate;
138 /* NAND Boot issue */
142 /* MTD / NAND */
143 struct nand_controller base; member
144 struct nand_chip nand; member
147 int ntransfers;
172 #define GPMI_IS_MX23(x) ((x)->devdata->type == IS_MX23)
173 #define GPMI_IS_MX28(x) ((x)->devdata->type == IS_MX28)
174 #define GPMI_IS_MX6Q(x) ((x)->devdata->type == IS_MX6Q)
175 #define GPMI_IS_MX6SX(x) ((x)->devdata->type == IS_MX6SX)
176 #define GPMI_IS_MX7D(x) ((x)->devdata->type == IS_MX7D)
177 #define GPMI_IS_MX8QXP(x) ((x)->devdata->type == IS_MX8QXP)