From 8bbd9f59b14569f6aac71fdb595d6f08dfd98b85 Mon Sep 17 00:00:00 2001 From: Eric Bénard Date: Tue, 10 Sep 2013 19:13:32 +0200 Subject: nand_mxs: fix on i.MX28 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit when the bootmode is different than NAND (USB for example), the GPMI clock is not enabled thus we can't probe a NAND flash. Tested on an i.MX28 Signed-off-by: Eric Bénard Signed-off-by: Sascha Hauer --- drivers/mtd/nand/nand_mxs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/mtd') diff --git a/drivers/mtd/nand/nand_mxs.c b/drivers/mtd/nand/nand_mxs.c index 8e5c83cef3..d1e4b5717d 100644 --- a/drivers/mtd/nand/nand_mxs.c +++ b/drivers/mtd/nand/nand_mxs.c @@ -1259,6 +1259,7 @@ static int mxs_nand_probe(struct device_d *dev) nand_info->dma_channel_base = 0; } else { nand_info->dma_channel_base = MXS_DMA_CHANNEL_AHB_APBH_GPMI0; + clk_enable(nand_info->clk); } err = mxs_nand_alloc_buffers(nand_info); -- cgit v1.2.3