* [U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu
@ 2018-10-31 19:03 Michael Trimarchi
2018-11-02 13:10 ` Michael Nazzareno Trimarchi
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Michael Trimarchi @ 2018-10-31 19:03 UTC (permalink / raw)
To: u-boot
When we initialize the memory we need to autodetect rank and size
but this can happen only if we send the proper reset to both
memory module including cke signal.
For this reason we need initialize the physical on both channel because
we need to presume that both are connected. This way let the CLKE to be
activated at the right time with the memory reset coming from the cpu
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
---
arch/arm/mach-sunxi/dram_sun8i_a33.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-sunxi/dram_sun8i_a33.c b/arch/arm/mach-sunxi/dram_sun8i_a33.c
index d9aa0c6d7e..1da2727f98 100644
--- a/arch/arm/mach-sunxi/dram_sun8i_a33.c
+++ b/arch/arm/mach-sunxi/dram_sun8i_a33.c
@@ -334,7 +334,7 @@ unsigned long sunxi_dram_init(void)
struct dram_para para = {
.cs1 = 0,
.bank = 1,
- .rank = 1,
+ .rank = 2,
.rows = 15,
.bus_width = 16,
.page_size = 2048,
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu
2018-10-31 19:03 [U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu Michael Trimarchi
@ 2018-11-02 13:10 ` Michael Nazzareno Trimarchi
2018-11-05 9:02 ` Maxime Ripard
2018-11-22 7:54 ` Jagan Teki
2 siblings, 0 replies; 5+ messages in thread
From: Michael Nazzareno Trimarchi @ 2018-11-02 13:10 UTC (permalink / raw)
To: u-boot
Hi Maxime
On Wed, Oct 31, 2018 at 8:03 PM Michael Trimarchi
<michael@amarulasolutions.com> wrote:
>
> When we initialize the memory we need to autodetect rank and size
> but this can happen only if we send the proper reset to both
> memory module including cke signal.
> For this reason we need initialize the physical on both channel because
> we need to presume that both are connected. This way let the CLKE to be
> activated at the right time with the memory reset coming from the cpu
>
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Does enough clear?
Michael
> ---
> arch/arm/mach-sunxi/dram_sun8i_a33.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-sunxi/dram_sun8i_a33.c b/arch/arm/mach-sunxi/dram_sun8i_a33.c
> index d9aa0c6d7e..1da2727f98 100644
> --- a/arch/arm/mach-sunxi/dram_sun8i_a33.c
> +++ b/arch/arm/mach-sunxi/dram_sun8i_a33.c
> @@ -334,7 +334,7 @@ unsigned long sunxi_dram_init(void)
> struct dram_para para = {
> .cs1 = 0,
> .bank = 1,
> - .rank = 1,
> + .rank = 2,
> .rows = 15,
> .bus_width = 16,
> .page_size = 2048,
> --
> 2.17.1
>
--
| Michael Nazzareno Trimarchi Amarula Solutions BV |
| COO - Founder Cruquiuskade 47 |
| +31(0)851119172 Amsterdam 1018 AM NL |
| [`as] http://www.amarulasolutions.com |
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu
2018-10-31 19:03 [U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu Michael Trimarchi
2018-11-02 13:10 ` Michael Nazzareno Trimarchi
@ 2018-11-05 9:02 ` Maxime Ripard
2018-11-07 17:13 ` Michael Nazzareno Trimarchi
2018-11-22 7:54 ` Jagan Teki
2 siblings, 1 reply; 5+ messages in thread
From: Maxime Ripard @ 2018-11-05 9:02 UTC (permalink / raw)
To: u-boot
On Wed, Oct 31, 2018 at 08:03:16PM +0100, Michael Trimarchi wrote:
> When we initialize the memory we need to autodetect rank and size
> but this can happen only if we send the proper reset to both
> memory module including cke signal.
> For this reason we need initialize the physical on both channel because
> we need to presume that both are connected. This way let the CLKE to be
> activated at the right time with the memory reset coming from the cpu
>
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181105/0d9c58da/attachment.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu
2018-11-05 9:02 ` Maxime Ripard
@ 2018-11-07 17:13 ` Michael Nazzareno Trimarchi
0 siblings, 0 replies; 5+ messages in thread
From: Michael Nazzareno Trimarchi @ 2018-11-07 17:13 UTC (permalink / raw)
To: u-boot
Hi Jagan
On Mon, Nov 5, 2018 at 10:02 AM Maxime Ripard <maxime.ripard@bootlin.com> wrote:
>
> On Wed, Oct 31, 2018 at 08:03:16PM +0100, Michael Trimarchi wrote:
> > When we initialize the memory we need to autodetect rank and size
> > but this can happen only if we send the proper reset to both
> > memory module including cke signal.
> > For this reason we need initialize the physical on both channel because
> > we need to presume that both are connected. This way let the CLKE to be
> > activated at the right time with the memory reset coming from the cpu
> >
> > Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
>
> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
>
Can you test on a consumer board with A33? I have tested over
oscilloscope on my device
Michael
> Maxime
>
> --
> Maxime Ripard, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
--
| Michael Nazzareno Trimarchi Amarula Solutions BV |
| COO - Founder Cruquiuskade 47 |
| +31(0)851119172 Amsterdam 1018 AM NL |
| [`as] http://www.amarulasolutions.com |
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu
2018-10-31 19:03 [U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu Michael Trimarchi
2018-11-02 13:10 ` Michael Nazzareno Trimarchi
2018-11-05 9:02 ` Maxime Ripard
@ 2018-11-22 7:54 ` Jagan Teki
2 siblings, 0 replies; 5+ messages in thread
From: Jagan Teki @ 2018-11-22 7:54 UTC (permalink / raw)
To: u-boot
On Thu, Nov 1, 2018 at 12:33 AM Michael Trimarchi
<michael@amarulasolutions.com> wrote:
>
> When we initialize the memory we need to autodetect rank and size
> but this can happen only if we send the proper reset to both
> memory module including cke signal.
> For this reason we need initialize the physical on both channel because
> we need to presume that both are connected. This way let the CLKE to be
> activated at the right time with the memory reset coming from the cpu
>
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> ---
Applied to u-boot-sunxi/master
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-11-22 7:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-31 19:03 [U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu Michael Trimarchi
2018-11-02 13:10 ` Michael Nazzareno Trimarchi
2018-11-05 9:02 ` Maxime Ripard
2018-11-07 17:13 ` Michael Nazzareno Trimarchi
2018-11-22 7:54 ` Jagan Teki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.