On Fri, 2025-04-25 at 18:45 +0200, Edgar E. Iglesias wrote: > CAUTION: External Email!! > On Tue, Mar 18, 2025 at 02:08:00PM +0100, Corvin Köhne wrote: > > From: YannickV <y.vos...@beckhoff.com> > > > > A dummy DDR controller for ZYNQ has been added. While all registers are > > present, > > not all are functional. Read and write access is validated, and the user > > mode > > can be set. This provides a basic DDR controller initialization, preventing > > system hangs due to endless polling or similar issues. > > > > Signed-off-by: Yannick Voßen <y.vos...@beckhoff.com> > > --- > > hw/misc/Kconfig | 3 + > > hw/misc/ > > https://nospamproxywebp.beckhoff.com/enQsig/link?id=BAgAAADa4z1g3ukVnmoAAAAr > > l_jkhWbCv_PHtUJpY7yEY601k79a77UyCbfaGco2JPpcaCOybQdhjR0cGnyWEZqCNC3PiECWlYa1 > > 3TZ7D5x6Yi5GY1Ud-M0zCSTuJ2WblH0OX92Mv4EAFobjbqz_a8r85TtpkZfrrOoa0 | 1 > > + > > hw/misc/zynq_ddr-ctrl.c | 331 ++++++++++++++++++++++++++++++++++++++++ > > 3 files changed, 335 insertions(+) > > create mode 100644 hw/misc/zynq_ddr-ctrl.c > > > > diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig > > index ec0fa5aa9f..1bc4228572 100644 > > --- a/hw/misc/Kconfig > > +++ b/hw/misc/Kconfig > > @@ -222,4 +222,7 @@ config IOSB > > config XLNX_VERSAL_TRNG > > bool > > > > +config DDR_CTRLR > > I suggest XLNX_ZYNQ_DDRC ? > > And name the file accordingly, e.g xlnx-zynq-ddrc.c. > > You may also want to consider using the register API, see for example > hw/misc/xlnx-versal-xramc.c, modelling another memory controller. > >
Thanks for the hint. Will take a look into it. -- Kind regards, Corvin
signature.asc
Description: This is a digitally signed message part