]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: iomux-v3: fix pad setup on i.MX6DQP when CONFIG_MX6QDL is defined
authorFilip Brozovic <fbrozovic@gmail.com>
Wed, 14 Sep 2016 11:50:39 +0000 (13:50 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 4 Oct 2016 10:01:14 +0000 (12:01 +0200)
The CPU detection macro is_mx6dq returns 0 on an i.MX6DQP, so we need to
check for it explicitly in order to correctly initialize the pads when
CONFIG_MX6QDL is defined.

Signed-off-by: Filip Brozovic <fbrozovic@gmail.com>
arch/arm/imx-common/iomux-v3.c

index 66137d148a7beea051b6ceccad2892259dd73f1b..2612e09f130f09ede1fea2cf5d026d7876a4a504 100644 (file)
@@ -83,7 +83,7 @@ void imx_iomux_v3_setup_multiple_pads(iomux_v3_cfg_t const *pad_list,
 
 #if defined(CONFIG_MX6QDL)
        stride = 2;
-       if (!is_mx6dq())
+       if (!is_mx6dq() && !is_mx6dqp())
                p += 1;
 #else
        stride = 1;