tdx-cfg-block: simplify i.MX 6 module detection
authorStefan Agner <stefan.agner@toradex.com>
Tue, 9 Apr 2019 15:24:08 +0000 (17:24 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 25 Apr 2019 15:03:25 +0000 (17:03 +0200)
commit89315f319cd9016ede10448e611aa3f2c84188df
tree1809eadc3caa02d97fa2ac14305335c7df0111c9
parent08f80555216515d3e5c97f2b1689ddbe143dd3c7
tdx-cfg-block: simplify i.MX 6 module detection

Use CONFIG_TARGET_... at compile time to differentiate between
Apalis iMX6, Colibri iMX6 and Colibri iMX6ULL. Avoid code
duplication by moving question about Wi-Fi / Bluetooth before
IT/non-IT decision.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
board/toradex/common/tdx-cfg-block.c