u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ram: k3-am654: Write all configuration values
@ 2022-03-23 15:04 Christian Gmeiner
  2022-03-23 15:04 ` [PATCH 2/2] ram: k3-am654: Make VTT regulator optional Christian Gmeiner
  2022-04-05 18:02 ` [PATCH 1/2] ram: k3-am654: Write all configuration values Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: Christian Gmeiner @ 2022-03-23 15:04 UTC (permalink / raw)
  To: u-boot, d-gerlach, a-govindraju; +Cc: Dominic Rath, Christian Gmeiner

From: Dominic Rath <rath@ibv-augsburg.net>

Makes it possible to use 16-bit DDR memory.

Signed-off-by: Dominic Rath <rath@ibv-augsburg.net>
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
---
 drivers/ram/k3-am654-ddrss.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/ram/k3-am654-ddrss.c b/drivers/ram/k3-am654-ddrss.c
index 4ec12bf42e..a48ebe6ada 100644
--- a/drivers/ram/k3-am654-ddrss.c
+++ b/drivers/ram/k3-am654-ddrss.c
@@ -265,6 +265,16 @@ static void am654_ddrss_phy_configuration(struct am654_ddrss_desc *ddrss)
 	ddrss_phy_writel(DDRSS_DDRPHY_ACIOCR5, ioctl->ddrphy_aciocr5);
 	ddrss_phy_writel(DDRSS_DDRPHY_IOVCR0, ioctl->ddrphy_iovcr0);
 
+	ddrss_phy_writel(DDRSS_DDRPHY_DX2GCR0, cfg->ddrphy_dx2gcr0);
+	ddrss_phy_writel(DDRSS_DDRPHY_DX2GCR1, cfg->ddrphy_dx2gcr1);
+	ddrss_phy_writel(DDRSS_DDRPHY_DX2GCR2, cfg->ddrphy_dx2gcr2);
+	ddrss_phy_writel(DDRSS_DDRPHY_DX2GCR3, cfg->ddrphy_dx2gcr3);
+
+	ddrss_phy_writel(DDRSS_DDRPHY_DX3GCR0, cfg->ddrphy_dx3gcr0);
+	ddrss_phy_writel(DDRSS_DDRPHY_DX3GCR1, cfg->ddrphy_dx3gcr1);
+	ddrss_phy_writel(DDRSS_DDRPHY_DX3GCR2, cfg->ddrphy_dx3gcr2);
+	ddrss_phy_writel(DDRSS_DDRPHY_DX3GCR3, cfg->ddrphy_dx3gcr3);
+
 	ddrss_phy_writel(DDRSS_DDRPHY_DX4GCR0, cfg->ddrphy_dx4gcr0);
 	ddrss_phy_writel(DDRSS_DDRPHY_DX4GCR1, cfg->ddrphy_dx4gcr1);
 	ddrss_phy_writel(DDRSS_DDRPHY_DX4GCR2, cfg->ddrphy_dx4gcr2);
-- 
2.35.1


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

* [PATCH 2/2] ram: k3-am654: Make VTT regulator optional
  2022-03-23 15:04 [PATCH 1/2] ram: k3-am654: Write all configuration values Christian Gmeiner
@ 2022-03-23 15:04 ` Christian Gmeiner
  2022-04-05 18:02   ` Tom Rini
  2022-04-05 18:02 ` [PATCH 1/2] ram: k3-am654: Write all configuration values Tom Rini
  1 sibling, 1 reply; 4+ messages in thread
From: Christian Gmeiner @ 2022-03-23 15:04 UTC (permalink / raw)
  To: u-boot, d-gerlach, a-govindraju; +Cc: Christian Gmeiner

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
---
 drivers/ram/k3-am654-ddrss.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/ram/k3-am654-ddrss.c b/drivers/ram/k3-am654-ddrss.c
index a48ebe6ada..4453c247b2 100644
--- a/drivers/ram/k3-am654-ddrss.c
+++ b/drivers/ram/k3-am654-ddrss.c
@@ -884,9 +884,8 @@ static int am654_ddrss_power_on(struct am654_ddrss_desc *ddrss)
 	device_get_supply_regulator(ddrss->dev, "vtt-supply",
 				    &ddrss->vtt_supply);
 	ret = regulator_set_value(ddrss->vtt_supply, 3300000);
-	if (ret)
-		return ret;
-	debug("VTT regulator enabled\n");
+	if (ret == 0)
+		debug("VTT regulator enabled\n");
 #endif
 
 	return 0;
-- 
2.35.1


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

* Re: [PATCH 1/2] ram: k3-am654: Write all configuration values
  2022-03-23 15:04 [PATCH 1/2] ram: k3-am654: Write all configuration values Christian Gmeiner
  2022-03-23 15:04 ` [PATCH 2/2] ram: k3-am654: Make VTT regulator optional Christian Gmeiner
@ 2022-04-05 18:02 ` Tom Rini
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2022-04-05 18:02 UTC (permalink / raw)
  To: Christian Gmeiner; +Cc: u-boot, d-gerlach, a-govindraju, Dominic Rath

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

On Wed, Mar 23, 2022 at 04:04:27PM +0100, Christian Gmeiner wrote:

> From: Dominic Rath <rath@ibv-augsburg.net>
> 
> Makes it possible to use 16-bit DDR memory.
> 
> Signed-off-by: Dominic Rath <rath@ibv-augsburg.net>
> Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

* Re: [PATCH 2/2] ram: k3-am654: Make VTT regulator optional
  2022-03-23 15:04 ` [PATCH 2/2] ram: k3-am654: Make VTT regulator optional Christian Gmeiner
@ 2022-04-05 18:02   ` Tom Rini
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2022-04-05 18:02 UTC (permalink / raw)
  To: Christian Gmeiner; +Cc: u-boot, d-gerlach, a-govindraju

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

On Wed, Mar 23, 2022 at 04:04:28PM +0100, Christian Gmeiner wrote:

> Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

end of thread, other threads:[~2022-04-05 18:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-23 15:04 [PATCH 1/2] ram: k3-am654: Write all configuration values Christian Gmeiner
2022-03-23 15:04 ` [PATCH 2/2] ram: k3-am654: Make VTT regulator optional Christian Gmeiner
2022-04-05 18:02   ` Tom Rini
2022-04-05 18:02 ` [PATCH 1/2] ram: k3-am654: Write all configuration values Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).