ARM: i.MX6: esdctl: Share memory size calculation code
Code for calculating total amount of memory found in
imx6_mmdc_add_mem(), imx6q_barebox_entry() and imx6ul_barebox_entry()
is exaclty the same, so refactor the code to avoid duplication.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e2ad9e2 commit 01e91362a613a0b109fb36f07a4fd8fddf1dfe79
@Andrey Smirnov Andrey Smirnov authored on 10 Apr 2018
Sascha Hauer committed on 12 Apr 2018
Showing 1 changed file
View
arch/arm/mach-imx/esdctl.c