Guest User

Untitled

a guest
Aug 29th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. From 5072db08867a7240fb33c9d9d99b3d8119ff62ec Mon Sep 17 00:00:00 2001
  2. From: Fabio Estevam <fabio.estevam@nxp.com>
  3. Date: Mon, 29 Aug 2016 16:40:28 -0300
  4. Subject: [PATCH 2/2] mx6ul_14x14_evk: Pass refsel and refr fields to avoid hang
  5.  
  6. When running a NXP 4.1 kernel with U-Boot mainline on a mx6ul-evk,
  7. we observe a hang when going into the lowest operational point of cpufreq.
  8.  
  9. After comparing the SPL DDR initialization against the DCD table
  10. from NXP U-Boot, the key difference that causes the hang is the
  11. MDREF register setting.
  12.  
  13. In the DDR3 MX6UL boards we have the following configuration
  14. for MDREF in NXP U-Boot:
  15.  
  16. DATA 4 0x021B0020 0x00000800
  17.  
  18. ,which means:
  19.  
  20. REF_SEL = 0 -->Periodic refresh cycle: 64kHz
  21. REFR = 1 ---> Refresh Rate - 2 refreshes
  22.  
  23. So adjust the MDREF initialization for mx6ul_evk accordingly
  24. to fix the kernel hang issue at low bus frequency.
  25.  
  26. Reported-by: Eric Nelson <eric@nelint.com>
  27. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
  28. ---
  29. board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 ++
  30. 1 file changed, 2 insertions(+)
  31.  
  32. diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
  33. index c213861..111aadc 100644
  34. --- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
  35. +++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
  36. @@ -804,6 +804,8 @@ struct mx6_ddr_sysinfo ddr_sysinfo = {
  37. .sde_to_rst = 0x10, /* 14 cycles, 200us (JEDEC default) */
  38. .rst_to_cke = 0x23, /* 33 cycles, 500us (JEDEC default) */
  39. .ddr_type = DDR_TYPE_DDR3,
  40. + .refsel = 0, /* Refresh cycles at 64KHz */
  41. + .refr = 1, /* 2 refresh commands per refresh cycle */
  42. };
  43.  
  44. static struct mx6_ddr3_cfg mem_ddr = {
  45. --
  46. 1.9.1
Add Comment
Please, Sign In to add comment