linux/drivers/mtd/nand/raw/gpmi-nand/bch-regs.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Freescale GPMI NAND Flash Driver
 *
 * Copyright 2008-2011 Freescale Semiconductor, Inc.
 * Copyright 2008 Embedded Alley Solutions, Inc.
 */
#ifndef __GPMI_NAND_BCH_REGS_H
#define __GPMI_NAND_BCH_REGS_H

#define HW_BCH_CTRL
#define HW_BCH_CTRL_SET
#define HW_BCH_CTRL_CLR
#define HW_BCH_CTRL_TOG

#define BM_BCH_CTRL_COMPLETE_IRQ_EN
#define BM_BCH_CTRL_COMPLETE_IRQ

#define HW_BCH_STATUS0
#define HW_BCH_MODE
#define HW_BCH_ENCODEPTR
#define HW_BCH_DATAPTR
#define HW_BCH_METAPTR
#define HW_BCH_LAYOUTSELECT

#define HW_BCH_FLASH0LAYOUT0

#define BP_BCH_FLASH0LAYOUT0_NBLOCKS
#define BM_BCH_FLASH0LAYOUT0_NBLOCKS
#define BF_BCH_FLASH0LAYOUT0_NBLOCKS(v)

#define BP_BCH_FLASH0LAYOUT0_META_SIZE
#define BM_BCH_FLASH0LAYOUT0_META_SIZE
#define BF_BCH_FLASH0LAYOUT0_META_SIZE(v)

#define BP_BCH_FLASH0LAYOUT0_ECC0
#define BM_BCH_FLASH0LAYOUT0_ECC0
#define MX6Q_BP_BCH_FLASH0LAYOUT0_ECC0
#define MX6Q_BM_BCH_FLASH0LAYOUT0_ECC0
#define BF_BCH_FLASH0LAYOUT0_ECC0(v, x)

#define MX6Q_BP_BCH_FLASH0LAYOUT0_GF_13_14
#define MX6Q_BM_BCH_FLASH0LAYOUT0_GF_13_14
#define BF_BCH_FLASH0LAYOUT0_GF(v, x)

#define BP_BCH_FLASH0LAYOUT0_DATA0_SIZE
#define BM_BCH_FLASH0LAYOUT0_DATA0_SIZE
#define MX6Q_BM_BCH_FLASH0LAYOUT0_DATA0_SIZE
#define BF_BCH_FLASH0LAYOUT0_DATA0_SIZE(v, x)

#define HW_BCH_FLASH0LAYOUT1

#define BP_BCH_FLASH0LAYOUT1_PAGE_SIZE
#define BM_BCH_FLASH0LAYOUT1_PAGE_SIZE
#define BF_BCH_FLASH0LAYOUT1_PAGE_SIZE(v)

#define BP_BCH_FLASH0LAYOUT1_ECCN
#define BM_BCH_FLASH0LAYOUT1_ECCN
#define MX6Q_BP_BCH_FLASH0LAYOUT1_ECCN
#define MX6Q_BM_BCH_FLASH0LAYOUT1_ECCN
#define BF_BCH_FLASH0LAYOUT1_ECCN(v, x)

#define MX6Q_BP_BCH_FLASH0LAYOUT1_GF_13_14
#define MX6Q_BM_BCH_FLASH0LAYOUT1_GF_13_14
#define BF_BCH_FLASH0LAYOUT1_GF(v, x)

#define BP_BCH_FLASH0LAYOUT1_DATAN_SIZE
#define BM_BCH_FLASH0LAYOUT1_DATAN_SIZE
#define MX6Q_BM_BCH_FLASH0LAYOUT1_DATAN_SIZE
#define BF_BCH_FLASH0LAYOUT1_DATAN_SIZE(v, x)

#define HW_BCH_VERSION
#endif