ARM: i.MX: Simplify serial bootsource detection for i.MX6 and 7
The algorithm to detect serial mode can be shared between i.M6 and
i.MX7 as wall as simplified a bit by replacing swich goto/break/return
termination logic with more trivial if statements.

This commit also sets the stage for additional improvements in the
commits that follow.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d84beaa commit 761c6bd4cba4bb3b6ea29a020d7da18534e385a6
@Andrey Smirnov Andrey Smirnov authored on 16 Apr 2018
Sascha Hauer committed on 17 Apr 2018
Showing 1 changed file
View
arch/arm/mach-imx/boot.c