mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-08 21:11:01 +01:00
ipq806x: FLASH XFER STEP register settings
Change-Id: If500851cc06a82359402cf0d72ec035f43e8b7f7 Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
This commit is contained in:
parent
d087f2437c
commit
a653a9f554
1 changed files with 9 additions and 1 deletions
|
|
@ -1543,6 +1543,8 @@ int ipq_nand_scan(struct mtd_info *mtd)
|
|||
uint32_t nand_id2 = 0;
|
||||
uint32_t onfi_sig = 0;
|
||||
struct nand_chip *chip = MTD_NAND_CHIP(mtd);
|
||||
struct ipq_nand_dev *dev = MTD_IPQ_NAND_DEV(mtd);
|
||||
struct ebi2nd_regs *regs = dev->regs;
|
||||
|
||||
ret = ipq_nand_onfi_probe(mtd, &onfi_sig);
|
||||
if (ret < 0)
|
||||
|
|
@ -1575,7 +1577,13 @@ int ipq_nand_scan(struct mtd_info *mtd)
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
writel(0x04E00480, ®s->xfr_step1);
|
||||
writel(0x41F0419A, ®s->xfr_step2);
|
||||
writel(0x81E08180, ®s->xfr_step3);
|
||||
writel(0xD000C000, ®s->xfr_step4);
|
||||
writel(0xC000C000, ®s->xfr_step5);
|
||||
writel(0xC000C000, ®s->xfr_step6);
|
||||
writel(0xC000C000, ®s->xfr_step7);
|
||||
mtd->type = MTD_NANDFLASH;
|
||||
mtd->flags = MTD_CAP_NANDFLASH;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue