public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Some discussion about Allwinner DesignWare DRAM controller SPL code cleanup
@ 2017-01-10 10:25 Icenowy Zheng
  2017-01-10 10:53 ` Andre Przywara
  0 siblings, 1 reply; 2+ messages in thread
From: Icenowy Zheng @ 2017-01-10 10:25 UTC (permalink / raw)
  To: u-boot

Hi Jens, Andre, Chen-Yu and everyone,
As we know, allwinner start to refuse to provide code about DRAM initialization
after H3.
For A64, H5, V3s we have already did some work on reusing H3 code and it gives
good result.
For R40 the result is also usable (although half of the memory is lost)
I think we will need some refactor, which will makes the H3 driver finally a
SUNXI_DW_DRAM driver ;-)
The first thing I want to say is that the DDR timing parameters part needs a lot
refactor, for V3s' integrated DDR2, for SoPine's LPDDR3, etc...
What I think is to create some header files included by the DRAM driver which
defines the timing parameters, and make dram_sun8i_h3.c include them by the
choice in .config .
The second thing is that, for some alike controller from AW, we have at least
source files: dram_sun8i_{a33,h3}.c (A33 uses a similar DW DRAM).
Should we merge A33 into the H3 source code?
Opinions wanted ;-)

Thanks,
Icenowy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-10 10:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-10 10:25 [U-Boot] Some discussion about Allwinner DesignWare DRAM controller SPL code cleanup Icenowy Zheng
2017-01-10 10:53 ` Andre Przywara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox