1 /* SPDX-License-Identifier: GPL-2.0 */
7 * Contains all JEDEC related definitions
10 #ifndef __LINUX_MTD_JEDEC_H
11 #define __LINUX_MTD_JEDEC_H
13 struct jedec_ecc_info {
17 __le16 block_endurance;
22 #define JEDEC_FEATURE_16_BIT_BUS (1 << 0)
24 struct nand_jedec_params {
25 /* rev info and features block */
32 u8 num_of_param_pages;
35 /* manufacturer information block */
36 char manufacturer[12];
41 /* memory organization block */
43 __le16 spare_bytes_per_page;
45 __le32 pages_per_block;
46 __le32 blocks_per_lun;
52 u8 multi_plane_op_attr;
55 /* electrical parameter block */
56 __le16 async_sdr_speed_grade;
57 __le16 toggle_ddr_speed_grade;
58 __le16 sync_ddr_speed_grade;
59 u8 async_sdr_features;
60 u8 toggle_ddr_features;
65 __le16 t_r_multi_plane;
67 __le16 io_pin_capacitance_typ;
68 __le16 input_pin_capacitance_typ;
69 __le16 clk_pin_capacitance_typ;
70 u8 driver_strength_support;
74 /* ECC and endurance block */
75 u8 guaranteed_good_blocks;
76 __le16 guaranteed_block_endurance;
77 struct jedec_ecc_info ecc_info[4];
84 __le16 vendor_rev_num;
87 /* CRC for Parameter Page */
91 #endif /* __LINUX_MTD_JEDEC_H */