diff options
Diffstat (limited to 'drivers/mtd/devices/tegra_nand.h')
-rw-r--r-- | drivers/mtd/devices/tegra_nand.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mtd/devices/tegra_nand.h b/drivers/mtd/devices/tegra_nand.h index 339d6cc7330c..64d66381f8b1 100644 --- a/drivers/mtd/devices/tegra_nand.h +++ b/drivers/mtd/devices/tegra_nand.h @@ -56,6 +56,9 @@ #define LL_CONFIG_REG (TEGRA_NAND_BASE + 0x58) #define LL_PTR_REG (TEGRA_NAND_BASE + 0x5c) #define LL_STATUS_REG (TEGRA_NAND_BASE + 0x60) +#define BCH_CONFIG_REG (TEGRA_NAND_BASE + 0xcc) +#define BCH_DEC_RESULT_REG (TEGRA_NAND_BASE + 0xd0) +#define BCH_DEC_STATUS_BUF_REG (TEGRA_NAND_BASE + 0xd4) /* nand_command bits */ #define COMMAND_GO REG_BIT(31) @@ -144,5 +147,9 @@ #define HWSTATUS_RBSY_MASK(val) REG_FIELD((val), 8, 8) #define HWSTATUS_RBSY_EXP_VAL(val) REG_FIELD((val), 0, 8) +/* nand bch config bits */ +#define BCH_CONFIG_BCH_TVALUE(val) REG_FIELD((val), 4, 2) +#define BCH_CONFIG_BCH_ECC REG_BIT(0) + #endif |