From: Peng Fan Date: Mon, 23 May 2016 10:36:03 +0000 (+0800) Subject: ocotp: mxc: use simpler runtime cpu dection macros X-Git-Tag: v2016.07-rc2~49^2~38 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bff755033133b49eaea38a68fe3284c1a25f2695;p=u-boot ocotp: mxc: use simpler runtime cpu dection macros Use simpler runtime cpu dection macros. Signed-off-by: Peng Fan Cc: Stefano Babic --- diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index 65ff8158e5..38344e8090 100644 --- a/drivers/misc/mxc_ocotp.c +++ b/drivers/misc/mxc_ocotp.c @@ -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