Skip to contentSkip to conversation

board: sama5d2_ptc_ek: adjust the smc timings of nand

PATCH In review Eugen Hristev 2 participants 2 messages Apr 24, 2018 – May 8, 2018 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: sama5d2_ptc_ek: adjust the smc timings of nand

To fix the issue of write the rootfs.ubi, adjust the smc timings configuration of the nand controller.

Based on original work by Wenyou Yang

---
 board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c +2 -2
index 4c2e209..39d1b38 100644
@@ -34,10 +34,10 @@ static void board_nand_hw_init(void)
 	writel(AT91_SMC_SETUP_NWE(1) | AT91_SMC_SETUP_NCS_WR(1) |
 	       AT91_SMC_SETUP_NRD(1) | AT91_SMC_SETUP_NCS_RD(1),
 	       &smc->cs[3].setup);
-	writel(AT91_SMC_PULSE_NWE(2) | AT91_SMC_PULSE_NCS_WR(3) |
+	writel(AT91_SMC_PULSE_NWE(2) | AT91_SMC_PULSE_NCS_WR(4) |
 	       AT91_SMC_PULSE_NRD(2) | AT91_SMC_PULSE_NCS_RD(3),
 	       &smc->cs[3].pulse);
-	writel(AT91_SMC_CYCLE_NWE(5) | AT91_SMC_CYCLE_NRD(5),
+	writel(AT91_SMC_CYCLE_NWE(6) | AT91_SMC_CYCLE_NRD(5),
 	       &smc->cs[3].cycle);
 	writel(AT91_SMC_TIMINGS_TCLR(2) | AT91_SMC_TIMINGS_TADL(7) |
 	       AT91_SMC_TIMINGS_TAR(2)  | AT91_SMC_TIMINGS_TRR(3)   |
Signature · 1 line
2.7.4
#1 lore raw
Quoted 6 lines · Eugen Hristev

To fix the issue of write the rootfs.ubi, adjust the smc timings configuration of the nand controller.

Based on original work by Wenyou Yang

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180508/db08a0a7/attachment.sig>