From: sbabic at denx.de Date: Mon, 14 Oct 2019 12:40:51 +0000 (UTC) Subject: [U-Boot] [PATCH 1/4] imx: Place imx_ddr_size() into a separate file In-Reply-To: <20190718180425.29472-1-festevam@gmail.com> Message-ID: <20191014124308.F3A44C21E36@lists.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Place imx_ddr_size() into a separate file. > The motivation for doing this is to be able to easily reuse > imx_ddr_size() on i.MX7ULP. > Currently imx_ddr_size() is inside arch/arm/mach-imx/cpu.c, which > is not built for i.MX7ULP. > Changing the logic to allow building cpu.c for i.MX7UP would > require adding several ifdef's, leading to a not a very elegant > solution. > To allow better reuse, just place imx_ddr_size() into a common > mmdc_size.c file. > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================