summaryrefslogtreecommitdiffstats
path: root/nand_spl/nand_boot_fsl_nfc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nand_spl/nand_boot_fsl_nfc.c')
-rw-r--r--nand_spl/nand_boot_fsl_nfc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nand_spl/nand_boot_fsl_nfc.c b/nand_spl/nand_boot_fsl_nfc.c
index 842943c651..4c5a7feec1 100644
--- a/nand_spl/nand_boot_fsl_nfc.c
+++ b/nand_spl/nand_boot_fsl_nfc.c
@@ -139,7 +139,11 @@ static void nfc_nand_data_output(void)
static int nfc_nand_check_ecc(void)
{
+#if defined(MXC_NFC_V1)
return readw(&nfc->ecc_status_result);
+#elif defined(MXC_NFC_V1_1)
+ return readl(&nfc->ecc_status_result);
+#endif
}
static void nfc_nand_read_page(unsigned int page_address)
OpenPOWER on IntegriCloud