- if (readl(&bch_regs->hw_bch_ctrl_reg) &
- (BCH_CTRL_SFTRST | BCH_CTRL_CLKGATE))
- /* When booting from NAND the BCH engine will already
- * be operational and obviously does not like being reset here.
- * There will be occasional read errors upon boot when this
- * reset is done.
- */
- mxs_reset_block(&bch_regs->hw_bch_ctrl_reg);
- readl(&bch_regs->hw_bch_ctrl_reg);