From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1byv7B-00060f-G5 for barebox@lists.infradead.org; Tue, 25 Oct 2016 06:21:38 +0000 Date: Tue, 25 Oct 2016 08:21:15 +0200 From: Sascha Hauer Message-ID: <20161025062115.lj7cacy2nfobltcu@pengutronix.de> References: <1476970807-43811-1-git-send-email-c.hemp@phytec.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1476970807-43811-1-git-send-email-c.hemp@phytec.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/2] nand: imx6: Changed default NAND clock To: Christian Hemp Cc: barebox@lists.infradead.org, Daniel Schultz On Thu, Oct 20, 2016 at 03:40:06PM +0200, Christian Hemp wrote: > From: Daniel Schultz > > The Barebox recognized false bad erase blocks while booting from a > Spansion NAND (1). This error occurred due a to high clock. The > Kernel sets the default NAND clock to 22Mhz. So, to fix this error and > to be more identical with the Kernel, the Barebox should be too. > > 1: nand: NAND device: Manufacturer ID: 0x01, Chip ID: 0xd3 (AMD/Spansion > S34ML08G2), 1024MiB, page size: 2048, OOB size: 128 Applied both, thanks Sascha > > Signed-off-by: Daniel Schultz > Tested-by: Stefan Lengfeld > Signed-off-by: Christian Hemp > --- > drivers/mtd/nand/nand_mxs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/nand/nand_mxs.c b/drivers/mtd/nand/nand_mxs.c > index 01aa063..fe955e8 100644 > --- a/drivers/mtd/nand/nand_mxs.c > +++ b/drivers/mtd/nand/nand_mxs.c > @@ -2145,7 +2145,7 @@ static int mxs_nand_probe(struct device_d *dev) > > if (mxs_nand_is_imx6(nand_info)) { > clk_disable(nand_info->clk); > - clk_set_rate(nand_info->clk, 96000000); > + clk_set_rate(nand_info->clk, 22000000); > clk_enable(nand_info->clk); > nand_info->dma_channel_base = 0; > } else { > -- > 1.9.1 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox