nand: imx6: Changed default NAND clock
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 Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Tested-by: Stefan Lengfeld <s.lengfeld@phytec.de> Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
047ee22b89
commit
6f58e5cac9
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue