From: Troy Kisky Date: Tue, 20 Nov 2018 09:47:06 -0800 Subject: [U-Boot] [PATCH V2 14/15] drivers: ddr: introduce DDR driver for i.MX8M In-Reply-To: <20181120102716.4195-14-peng.fan@nxp.com> References: <20181120102716.4195-1-peng.fan@nxp.com> <20181120102716.4195-14-peng.fan@nxp.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 11/20/2018 2:19 AM, Peng Fan wrote: > +#define DDRC_MSTR_0 0x3d400000 > +#define DDRC_STAT_0 0x3d400004 > +#define DDRC_MSTR1_0 0x3d400008 > + Are you are planning to use DDRC_xxxx_0 in .cfg files? With SPL, I doubt the above are necessary. > +/**********************/ > +#define DDRC_MSTR(X) (DDRC_IPS_BASE_ADDR(X) + 0x00) > +#define DDRC_STAT(X) (DDRC_IPS_BASE_ADDR(X) + 0x04) > +#define DDRC_MSTR1(X) (DDRC_IPS_BASE_ADDR(X) + 0x08) Or, do you ever use the above without X == 0 ?