From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Nelson Date: Tue, 29 Apr 2014 11:26:15 -0700 Subject: [U-Boot] [PATCH 08/12] MX6: add mmdc configuration for MX6Q/MX6DL In-Reply-To: References: <1398716258-8420-1-git-send-email-tharvey@gateworks.com> <1398716258-8420-9-git-send-email-tharvey@gateworks.com> <535FC215.1020704@boundarydevices.com> Message-ID: <535FEEC7.5080600@boundarydevices.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tim, On 04/29/2014 11:19 AM, Tim Harvey wrote: > On Tue, Apr 29, 2014 at 8:15 AM, Eric Nelson > wrote: >> Hi Tim, >> >> >> >> >> Do you think that someone will want to use SPL on i.MX6 with >> support for only one of the variants? >> >> It seems that this should be conditionally included if >> i.MX6DQ is supported by the board. >> > > Eric, > > Yes - that makes sense. Someone could have a single CPU but have > several memory variants. I'm not sure how much codespace it will save > but things are tight at 64KB max. > > I can wrap the functions and their calls with an: > > #if defined(MX6QDL) || defined(MX6Q) || defined(MX6D) > Perfect. >> >>> +/* Configure MX6DQ mmdc iomux */ >>> +void mx6dq_dram_iocfg(unsigned width, >>> + const struct mx6dq_iomux_ddr_regs *ddr, >>> + const struct mx6dq_iomux_grp_regs *grp) >>> +{ >>> + volatile struct mx6dq_iomux_ddr_regs *mx6_ddr_iomux; >> >>> >> ... >> >> Ditto for i.MX6SDL: >> > > and: > > #if defined(MX6QDL) || defined(MX6DL) || defined(MX6S) > Cool.