diff options
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/gpmi-nand/gpmi-lib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-lib.c b/drivers/mtd/nand/gpmi-nand/gpmi-lib.c index 7d56d87599c0..aaced29727fb 100644 --- a/drivers/mtd/nand/gpmi-nand/gpmi-lib.c +++ b/drivers/mtd/nand/gpmi-nand/gpmi-lib.c | |||
@@ -1079,6 +1079,13 @@ int gpmi_is_ready(struct gpmi_nand_data *this, unsigned chip) | |||
1079 | mask = MX23_BM_GPMI_DEBUG_READY0 << chip; | 1079 | mask = MX23_BM_GPMI_DEBUG_READY0 << chip; |
1080 | reg = readl(r->gpmi_regs + HW_GPMI_DEBUG); | 1080 | reg = readl(r->gpmi_regs + HW_GPMI_DEBUG); |
1081 | } else if (GPMI_IS_MX28(this) || GPMI_IS_MX6Q(this)) { | 1081 | } else if (GPMI_IS_MX28(this) || GPMI_IS_MX6Q(this)) { |
1082 | /* | ||
1083 | * In the imx6, all the ready/busy pins are bound | ||
1084 | * together. So we only need to check chip 0. | ||
1085 | */ | ||
1086 | if (GPMI_IS_MX6Q(this)) | ||
1087 | chip = 0; | ||
1088 | |||
1082 | /* MX28 shares the same R/B register as MX6Q. */ | 1089 | /* MX28 shares the same R/B register as MX6Q. */ |
1083 | mask = MX28_BF_GPMI_STAT_READY_BUSY(1 << chip); | 1090 | mask = MX28_BF_GPMI_STAT_READY_BUSY(1 << chip); |
1084 | reg = readl(r->gpmi_regs + HW_GPMI_STAT); | 1091 | reg = readl(r->gpmi_regs + HW_GPMI_STAT); |