ocotp: mxc: use simpler runtime cpu dection macros
authorPeng Fan <van.freenix@gmail.com>
Mon, 23 May 2016 10:36:03 +0000 (18:36 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 24 May 2016 12:59:57 +0000 (14:59 +0200)
Use simpler runtime cpu dection macros.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
drivers/misc/mxc_ocotp.c

index 65ff815..38344e8 100644 (file)
@@ -95,9 +95,9 @@ u32 fuse_bank_physical(int index)
 {
        u32 phy_index;
 
-       if (is_cpu_type(MXC_CPU_MX6SL)) {
+       if (is_mx6sl()) {
                phy_index = index;
-       } else if (is_cpu_type(MXC_CPU_MX6UL)) {
+       } else if (is_mx6ul()) {
                if (index >= 6)
                        phy_index = fuse_bank_physical(5) + (index - 6) + 3;
                else