From 5327b62c12cf0a1393481fb2f402806bad6dc280 Mon Sep 17 00:00:00 2001 From: Nathan Morrisson Date: Tue, 25 Mar 2025 04:58:23 +0100 Subject: [PATCH] board: phytec: phycore_am62ax: Share ethernet resources with boot r5 core 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 Signed-off-by: Wadim Egorov --- 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.39.5