U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Wadim Egorov <w.egorov@phytec.de>
To: <u-boot@lists.denx.de>, <upstream@lists.phytec.de>
Cc: <trini@konsulko.com>, <ggiordano@phytec.com>,
	<d.schultz@phytec.de>, <afd@ti.com>, <n-francis@ti.com>,
	<nmorrisson@phytec.com>, <vigneshr@ti.com>,  <s-k6@ti.com>,
	<dannenberg@ti.com>, <bb@ti.com>
Subject: [PATCH 7/8] board: phytec: phycore_am62ax: Share ethernet resources with boot r5 core
Date: Tue, 25 Mar 2025 04:58:23 +0100	[thread overview]
Message-ID: <20250325035824.2304200-8-w.egorov@phytec.de> (raw)
In-Reply-To: <20250325035824.2304200-1-w.egorov@phytec.de>

From: Nathan Morrisson <nmorrisson@phytec.com>

During the U-Boot SPL R5 boot stage the code is running on the MAIN R5
core, which means a host ID of 36 is used for DM/TIFS communication,
see [1]. In order to enable Ethernet boot update the DMA resources used
to be shared with the MAIN R5 core instead of the MCU R5 core.

[1] https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am62ax/hosts.html

Based on patch 19 from https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1307981/sk-am62a-lp-rgmii-boot-mode-problem

Signed-off-by: Nathan Morrisson <nmorrisson@phytec.com>
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
---
 board/phytec/phycore_am62ax/rm-cfg.yaml      | 10 ++--
 board/phytec/phycore_am62ax/tifs-rm-cfg.yaml | 48 +++++++++++---------
 2 files changed, 32 insertions(+), 26 deletions(-)

diff --git a/board/phytec/phycore_am62ax/rm-cfg.yaml b/board/phytec/phycore_am62ax/rm-cfg.yaml
index cbd087de797..0f34b8c1bc0 100644
--- a/board/phytec/phycore_am62ax/rm-cfg.yaml
+++ b/board/phytec/phycore_am62ax/rm-cfg.yaml
@@ -713,7 +713,7 @@ rm-cfg:
             start_resource: 19
             num_resource: 64
             type: 1937
-            host_id: 30
+            host_id: 36
             reserved: 0
         -
             start_resource: 83
@@ -767,7 +767,7 @@ rm-cfg:
             start_resource: 118
             num_resource: 16
             type: 1943
-            host_id: 30
+            host_id: 36
             reserved: 0
         -
             start_resource: 134
@@ -833,7 +833,7 @@ rm-cfg:
             start_resource: 19
             num_resource: 8
             type: 1956
-            host_id: 30
+            host_id: 36
             reserved: 0
         -
             start_resource: 27
@@ -917,7 +917,7 @@ rm-cfg:
             start_resource: 19
             num_resource: 1
             type: 1963
-            host_id: 30
+            host_id: 36
             reserved: 0
         -
             start_resource: 19
@@ -929,7 +929,7 @@ rm-cfg:
             start_resource: 19
             num_resource: 16
             type: 1964
-            host_id: 30
+            host_id: 36
             reserved: 0
         -
             start_resource: 20
diff --git a/board/phytec/phycore_am62ax/tifs-rm-cfg.yaml b/board/phytec/phycore_am62ax/tifs-rm-cfg.yaml
index 151cd599b1b..23dcd784615 100644
--- a/board/phytec/phycore_am62ax/tifs-rm-cfg.yaml
+++ b/board/phytec/phycore_am62ax/tifs-rm-cfg.yaml
@@ -24,26 +24,26 @@ tifs-rm-cfg:
                     allowed_priority: 0xAAAA
                     allowed_sched_priority: 0xAA
                 -  # 2
-                    host_id: 30
+                    host_id: 20
                     allowed_atype: 0x2A
                     allowed_qos: 0xAAAA
                     allowed_orderid: 0xAAAAAAAA
                     allowed_priority: 0xAAAA
                     allowed_sched_priority: 0xAA
                 -  # 3
-                    host_id: 36
+                    host_id: 30
                     allowed_atype: 0x2A
                     allowed_qos: 0xAAAA
                     allowed_orderid: 0xAAAAAAAA
                     allowed_priority: 0xAAAA
                     allowed_sched_priority: 0xAA
                 -  # 4
-                    host_id: 0
-                    allowed_atype: 0
-                    allowed_qos: 0
-                    allowed_orderid: 0
-                    allowed_priority: 0
-                    allowed_sched_priority: 0
+                    host_id: 36
+                    allowed_atype: 0x2A
+                    allowed_qos: 0xAAAA
+                    allowed_orderid: 0xAAAAAAAA
+                    allowed_priority: 0xAAAA
+                    allowed_sched_priority: 0xAA
                 -  # 5
                     host_id: 0
                     allowed_atype: 0
@@ -244,7 +244,7 @@ tifs-rm-cfg:
             subhdr:
                 magic: 0x7B25
                 size: 8
-            resasg_entries_size: 872
+            resasg_entries_size: 880
             reserved: 0
     resasg_entries:
         -
@@ -257,7 +257,7 @@ tifs-rm-cfg:
             start_resource: 18
             num_resource: 6
             type: 1677
-            host_id: 35
+            host_id: 20
             reserved: 0
         -
             start_resource: 18
@@ -287,7 +287,7 @@ tifs-rm-cfg:
             start_resource: 72
             num_resource: 6
             type: 1678
-            host_id: 35
+            host_id: 20
             reserved: 0
         -
             start_resource: 72
@@ -317,7 +317,7 @@ tifs-rm-cfg:
             start_resource: 44
             num_resource: 6
             type: 1679
-            host_id: 35
+            host_id: 20
             reserved: 0
         -
             start_resource: 44
@@ -347,7 +347,7 @@ tifs-rm-cfg:
             start_resource: 18
             num_resource: 6
             type: 1696
-            host_id: 35
+            host_id: 20
             reserved: 0
         -
             start_resource: 18
@@ -377,7 +377,7 @@ tifs-rm-cfg:
             start_resource: 18
             num_resource: 6
             type: 1697
-            host_id: 35
+            host_id: 20
             reserved: 0
         -
             start_resource: 18
@@ -407,7 +407,7 @@ tifs-rm-cfg:
             start_resource: 12
             num_resource: 6
             type: 1698
-            host_id: 35
+            host_id: 20
             reserved: 0
         -
             start_resource: 12
@@ -429,10 +429,16 @@ tifs-rm-cfg:
             reserved: 0
         -
             start_resource: 6
-            num_resource: 34
+            num_resource: 26
             type: 1802
             host_id: 12
             reserved: 0
+        -
+            start_resource: 32
+            num_resource: 8
+            type: 1802
+            host_id: 20
+            reserved: 0
         -
             start_resource: 44
             num_resource: 36
@@ -587,7 +593,7 @@ tifs-rm-cfg:
             start_resource: 19
             num_resource: 64
             type: 1937
-            host_id: 30
+            host_id: 36
             reserved: 0
         -
             start_resource: 83
@@ -641,7 +647,7 @@ tifs-rm-cfg:
             start_resource: 118
             num_resource: 16
             type: 1943
-            host_id: 30
+            host_id: 36
             reserved: 0
         -
             start_resource: 134
@@ -707,7 +713,7 @@ tifs-rm-cfg:
             start_resource: 19
             num_resource: 8
             type: 1956
-            host_id: 30
+            host_id: 36
             reserved: 0
         -
             start_resource: 27
@@ -791,7 +797,7 @@ tifs-rm-cfg:
             start_resource: 19
             num_resource: 1
             type: 1963
-            host_id: 30
+            host_id: 36
             reserved: 0
         -
             start_resource: 19
@@ -803,7 +809,7 @@ tifs-rm-cfg:
             start_resource: 19
             num_resource: 16
             type: 1964
-            host_id: 30
+            host_id: 36
             reserved: 0
         -
             start_resource: 20
-- 
2.34.1


  parent reply	other threads:[~2025-03-25  3:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-25  3:58 [PATCH 0/8] *** Add Ethernet boot support for AM62Ax + phyCORE-AM62 SoMs *** Wadim Egorov
2025-03-25  3:58 ` [PATCH 1/8] arm: dts: k3-am625-phyboard-lyra-rdk: Add boot phase tag to phy_gmii_sel Wadim Egorov
2025-03-27 14:03   ` Daniel Schultz
2025-03-25  3:58 ` [PATCH 2/8] configs: Add phycore_am62x_r5_ethboot_defconfig Wadim Egorov
2025-03-25  3:58 ` [PATCH 3/8] configs: phycore_am62x_a53_defconfig: Update for ethernet boot Wadim Egorov
2025-03-25  3:58 ` [PATCH 4/8] arch: arm: dts: k3-am62a7-phyboard-lyra-rdk-u-boot: Disable Ethernet2 Wadim Egorov
2025-03-25  3:58 ` [PATCH 5/8] arch: arm: mach-k3: am62a7: Probe CPSW NUSS in board_init_f() Wadim Egorov
2025-03-25  3:58 ` [PATCH 6/8] arch: arm: mach-k3: r5: am62ax: Update SoC auto-gen data to enable CPSW boot Wadim Egorov
2025-03-25  3:58 ` Wadim Egorov [this message]
2025-03-25  3:58 ` [PATCH 8/8] configs: Add phycore_am62ax_r5_ethboot_defconfig Wadim Egorov
2025-04-10 22:16 ` [PATCH 0/8] *** Add Ethernet boot support for AM62Ax + phyCORE-AM62 SoMs *** Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250325035824.2304200-8-w.egorov@phytec.de \
    --to=w.egorov@phytec.de \
    --cc=afd@ti.com \
    --cc=bb@ti.com \
    --cc=d.schultz@phytec.de \
    --cc=dannenberg@ti.com \
    --cc=ggiordano@phytec.com \
    --cc=n-francis@ti.com \
    --cc=nmorrisson@phytec.com \
    --cc=s-k6@ti.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=upstream@lists.phytec.de \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox