[U-Boot] [PATCH 15/15] imx: add i.MX8MQ EVK support

Jon Nettleton jon at solid-run.com
Tue Nov 13 07:52:38 UTC 2018


On Fri, Nov 9, 2018 at 8:06 PM Troy Kisky
<troy.kisky at boundarydevices.com> wrote:
>
> On 11/9/2018 1:17 AM, Peng Fan wrote:
> > Add i.MX8MQ EVK support. SPL will initialize ddr and load ddr phy
> > firmware. Then loading FIT image, ATF to OCRAM, U-Boot and DTB to
> > DRAM....
>
>
> > +
> > +static struct dram_cfg_param lpddr4_ddrc_cfg[] = {
> > +     /* Start to config, default 3200mbps */
> > +     /* dis_dq=1, indicates no reads or writes are issued to SDRAM */
> > +     { DDRC_DBG1(0), 0x00000001 },
>
>
> Just a little elaboration on how a structure might work here
>
> #define DDRC_ADDR(reg, x) &((struct ddrc *)(DDRC_IPS_BASE_ADDR(x))->reg)
>
>         { DDRC_ADDR(dbg1, 0), 0x00000001 },
>
>
>
> Thanks for working on this Peng!
>
>
> BR
> Troy

Yes thanks for working on this Peng.  Just to clarify one thing.  Do
you have a script that is generating the structures from output of the
mx8m_ddr_tool, or is the mx8m_ddr_tool being changed to output the
structures?

-Jon


More information about the U-Boot mailing list