]> git.baikalelectronics.ru Git - uboot.git/commit
imx: Place imx_ddr_size() into a separate file
authorFabio Estevam <festevam@gmail.com>
Thu, 18 Jul 2019 18:04:22 +0000 (15:04 -0300)
committerStefano Babic <sbabic@denx.de>
Mon, 14 Oct 2019 07:31:33 +0000 (09:31 +0200)
commit13d6a7ee67993e86dc5dda72f672d1ffb5cc4e27
tree018931d76cbdc0de2156b821fff7ab6eda320226
parent92211233e66adff04b3b87e2f07d1b389fd90d7a
imx: Place imx_ddr_size() into a separate file

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 <festevam@gmail.com>
Signed-off-by: Stefano Babic <sbabic@denx.de>
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/cpu.c
arch/arm/mach-imx/mmdc_size.c [new file with mode: 0644]