public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Steffen Dirkwinkel <lists@steffen.cc>
To: u-boot@lists.denx.de
Cc: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>,
	Michal Simek <michal.simek@amd.com>
Subject: [PATCH 5/5] xilinx: zynqmp: beckhoff cx8200: setup inner cache broadcasting
Date: Wed, 30 Aug 2023 16:03:34 +0200	[thread overview]
Message-ID: <20230830140349.10801-6-lists@steffen.cc> (raw)
In-Reply-To: <20230830140349.10801-1-lists@steffen.cc>

From: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>

We need it for coherent access between pl and ps.

From xilinx documentation:
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842098/Zynq+UltraScale+MPSoC+Cache+Coherency

Inner Cache Broadcasting

Linux sets up the MMU for cacheable memory to be inner shareable as that supports SMP operation.
As modifying the MMU tables from kernel or userspace is not a straightforwards task, the inner
cache broadcasting feature can be used to allow inner cacheble transactions be broadcasted.
Outside the APU, in the outer domain, the CCI handles coherency across the system.
The brdc_inner bit of the lpd_apu register within the LPD_SLCR module must be written while
the APU is in reset.

The requirement to alter the register while the APU is in reset can be accomplished using the
register initialization feature in the boot image.
.set. 0xFF41A040 = 0x3;

Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>

---

 board/xilinx/zynqmp/zynqmp-beckhoff-cx8200/regs.init | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 board/xilinx/zynqmp/zynqmp-beckhoff-cx8200/regs.init

diff --git a/board/xilinx/zynqmp/zynqmp-beckhoff-cx8200/regs.init b/board/xilinx/zynqmp/zynqmp-beckhoff-cx8200/regs.init
new file mode 100644
index 0000000000..e7038dd80a
--- /dev/null
+++ b/board/xilinx/zynqmp/zynqmp-beckhoff-cx8200/regs.init
@@ -0,0 +1 @@
+0xFF41A040 0x3
\ No newline at end of file
-- 
2.42.0


      parent reply	other threads:[~2023-08-30 18:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-30 14:03 [PATCH 0/5] board: xilinx: zyqmp: add Beckhoff CX8200 Steffen Dirkwinkel
2023-08-30 14:03 ` [PATCH 1/5] drivers: rtc: add rv3032 driver Steffen Dirkwinkel
2023-08-30 19:43   ` Alexandre Belloni
2023-08-30 19:52     ` Steffen Dirkwinkel
2023-08-30 14:03 ` [PATCH 2/5] drivers/usb/dwc3: zynqmp: only free reset gpio if we have one Steffen Dirkwinkel
2023-09-01  7:18   ` Michal Simek
2023-08-30 14:03 ` [PATCH 3/5] xilinx: zynqmp: move fdt_addr so we can use devices with less memory Steffen Dirkwinkel
2023-09-01  7:23   ` Michal Simek
2023-08-30 14:03 ` [PATCH 4/5] xilinx: zynqmp: add Beckhoff CX8200 Steffen Dirkwinkel
2023-09-01  7:36   ` Michal Simek
2023-09-01  9:00     ` Steffen Dirkwinkel
2023-09-01 11:16       ` Michal Simek
2023-09-01 15:03         ` Steffen Dirkwinkel
2023-09-04 10:02           ` Michal Simek
2023-08-30 14:03 ` Steffen Dirkwinkel [this message]

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=20230830140349.10801-6-lists@steffen.cc \
    --to=lists@steffen.cc \
    --cc=michal.simek@amd.com \
    --cc=s.dirkwinkel@beckhoff.com \
    --cc=u-boot@lists.denx.de \
    /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