<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/drivers/ddr/altera, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2019-05-06T10:44:17Z</updated>
<entry>
<title>arm: socfpga: Move Stratix 10 SDRAM driver to DM</title>
<updated>2019-05-06T10:44:17Z</updated>
<author>
<name>Ley Foon Tan</name>
</author>
<published>2019-05-06T01:56:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=6bf238a46192bf9164da4548178d657dde4e1c96'/>
<id>urn:sha1:6bf238a46192bf9164da4548178d657dde4e1c96</id>
<content type='text'>
Convert Stratix 10 SDRAM driver to device model.

Get rid of call to socfpga_per_reset() and use reset
framework.

SPL is changed from calling function in SDRAM driver
directly to just probing UCLASS_RAM.

Move sdram_s10.h from arch to driver/ddr/altera directory.

Signed-off-by: Ley Foon Tan &lt;ley.foon.tan@intel.com&gt;
</content>
</entry>
<entry>
<title>ddr: altera: Compile ALTERA SDRAM in SPL only</title>
<updated>2019-05-06T10:44:17Z</updated>
<author>
<name>Ley Foon Tan</name>
</author>
<published>2019-05-06T01:55:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=5918afda9d43106dd540c04bb05b7718e5f82171'/>
<id>urn:sha1:5918afda9d43106dd540c04bb05b7718e5f82171</id>
<content type='text'>
Compile ALTERA_SDRAM driver in SPL only.
Rename ALTERA_SDRAM to SPL_ALTERA_SDRAM.

Signed-off-by: Ley Foon Tan &lt;ley.foon.tan@intel.com&gt;
</content>
</entry>
<entry>
<title>ddr: altera: Stratix10: Add ECC memory scrubbing</title>
<updated>2019-04-17T20:20:17Z</updated>
<author>
<name>Ley Foon Tan</name>
</author>
<published>2019-03-21T17:24:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=456d45261bc6abee1ffedd0f9cbd35aada5c0ff3'/>
<id>urn:sha1:456d45261bc6abee1ffedd0f9cbd35aada5c0ff3</id>
<content type='text'>
Scrub memory content if ECC is enabled and it is not
from warm reset boot.

Enable icache and dcache before scrub memory
and use "DC ZVA" instruction to clear memory
to zeros. This instruction writes a cache line
at a time and it can prevent false ECC error
trigger if write cache line partially.

Signed-off-by: Ley Foon Tan &lt;ley.foon.tan@intel.com&gt;
</content>
</entry>
<entry>
<title>ddr: altera: Stratix10: Add multi-banks DRAM size check</title>
<updated>2019-04-17T20:20:17Z</updated>
<author>
<name>Ley Foon Tan</name>
</author>
<published>2019-03-21T17:24:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=6cd7134e7309a53f015a402e52e5863f29e366fd'/>
<id>urn:sha1:6cd7134e7309a53f015a402e52e5863f29e366fd</id>
<content type='text'>
Stratix 10 maps dram from 0 to 128GB.  There is a 2GB hole
in the memory for peripherals and other IO from 2GB to 4GB.
However the dram controller ignores upper address bits for
smaller dram configurations.  Example: a 4GB dram
maps to multiple locations, every 4GB on the address.

Signed-off-by: Dalon Westergreen &lt;dalon.westergreen@intel.com&gt;
Signed-off-by: Ley Foon Tan &lt;ley.foon.tan@intel.com&gt;
</content>
</entry>
<entry>
<title>ddr: altera: stratix10: Move SDRAM size check to SDRAM driver</title>
<updated>2019-04-17T20:20:17Z</updated>
<author>
<name>Ley Foon Tan</name>
</author>
<published>2019-03-21T17:24:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=b6f7ee5d1f980ffa63e22749e2deae6caa57227e'/>
<id>urn:sha1:b6f7ee5d1f980ffa63e22749e2deae6caa57227e</id>
<content type='text'>
Move SDRAM size check to SDRAM driver. sdram_calculate_size()
is called in SDRAM initialization already, avoid calling
twice in size check function.

Signed-off-by: Ley Foon Tan &lt;ley.foon.tan@intel.com&gt;
</content>
</entry>
<entry>
<title>arm: socfpga: move gen5 SDR driver to DM</title>
<updated>2019-04-17T20:20:16Z</updated>
<author>
<name>Simon Goldschmidt</name>
</author>
<published>2019-04-16T20:04:39Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=29873c74f367474faafd16376e2a9f404172fbdd'/>
<id>urn:sha1:29873c74f367474faafd16376e2a9f404172fbdd</id>
<content type='text'>
To clean up reset handling for socfpga gen5, port the DDR driver to DM
using UCLASS_RAM and implement proper reset handling.

This gets us rid of one ad-hoc call to socfpga_per_reset().

The gen5 driver is implemented in 2 distinct files. One of it (containing
the calibration training) is not touched much and is kept at using
hard coded addresses since the code grows even more otherwise.

SPL is changed from calling hard into the DDR driver code to just
probing UCLASS_RESET and UCLASS_RAM. It is happy after finding a RAM
driver after that.

Signed-off-by: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
</content>
</entry>
<entry>
<title>ddr: socfpga: Clean up ddr_setup()</title>
<updated>2019-03-09T22:25:19Z</updated>
<author>
<name>Marek Vasut</name>
</author>
<published>2019-03-09T20:58:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=88c3bb49e1bf2b808cbad1fbdeda09480ae580a7'/>
<id>urn:sha1:88c3bb49e1bf2b808cbad1fbdeda09480ae580a7</id>
<content type='text'>
Replace the current rather convoluted code using ad-hoc polling
mechanism with a more straightforward code. Use wait_for_bit_le32()
to poll the DDRCALSTAT register instead of local reimplementation.
It makes no sense to pull for 5 seconds before giving up and trying
to restart the EMIF, so instead wait 500 mSec for the calibration to
complete and if this fails, restart the EMIF and try again. Perform
this 32 times instead of 3 times as the original code did.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Chin Liang See &lt;chin.liang.see@intel.com&gt;
Cc: Dinh Nguyen &lt;dinguyen@kernel.org&gt;
Cc: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
Cc: Tien Fong Chee &lt;tien.fong.chee@intel.com&gt;
</content>
</entry>
<entry>
<title>ddr: socfpga: Clean up EMIF reset</title>
<updated>2019-03-09T22:25:19Z</updated>
<author>
<name>Marek Vasut</name>
</author>
<published>2019-03-09T20:57:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=8297dd1d934281175ffa8646a2e3200755402db5'/>
<id>urn:sha1:8297dd1d934281175ffa8646a2e3200755402db5</id>
<content type='text'>
The EMIF reset code can well use wait_for_bit_le32() instead of all that
convoluted polling code. Reduce the timeout from 100 seconds to 1 second,
since if the EMIF fails to reset itself in 1 second, it's unlikely longer
wait would help. Make sure to clear the EMIF reset request even if the
SEQ2CORE_INT_RESP_BIT isn't asserted.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Chin Liang See &lt;chin.liang.see@intel.com&gt;
Cc: Dinh Nguyen &lt;dinguyen@kernel.org&gt;
Cc: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
Cc: Tien Fong Chee &lt;tien.fong.chee@intel.com&gt;
</content>
</entry>
<entry>
<title>ddr: socfpga: Fix EMIF clear timeout</title>
<updated>2019-03-09T22:25:19Z</updated>
<author>
<name>Marek Vasut</name>
</author>
<published>2019-03-08T18:11:55Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=ffd1e1a336730b6991c2ae7e7b0605e99d4f2b06'/>
<id>urn:sha1:ffd1e1a336730b6991c2ae7e7b0605e99d4f2b06</id>
<content type='text'>
The current EMIF clear timeout handling code was applying bitwise
operations to signed data types and as it was, was extremely hard
to read. Replace it with simple wait_for_bit(). Expand the error
handling to make it more readable too.

This patch also changes the timeout for emif_clear() from 14 hours
to 1 second.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Chin Liang See &lt;chin.liang.see@intel.com&gt;
Cc: Dinh Nguyen &lt;dinguyen@kernel.org&gt;
Cc: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
Cc: Tien Fong Chee &lt;tien.fong.chee@intel.com&gt;
</content>
</entry>
<entry>
<title>ddr: socfpga: Fix newline in debug print on A10</title>
<updated>2019-03-09T16:59:13Z</updated>
<author>
<name>Marek Vasut</name>
</author>
<published>2019-03-06T16:18:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=dc3249b91b0c5dffdbd42426a3535bea5e14448f'/>
<id>urn:sha1:dc3249b91b0c5dffdbd42426a3535bea5e14448f</id>
<content type='text'>
The debug print is missing a newline, add it.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Chin Liang See &lt;chin.liang.see@intel.com&gt;
Cc: Dinh Nguyen &lt;dinguyen@kernel.org&gt;
Cc: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
Cc: Tien Fong Chee &lt;tien.fong.chee@intel.com&gt;
</content>
</entry>
</feed>
