From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Mon, 23 May 2016 18:36:03 +0800 Subject: [U-Boot] [PATCH V2 12/15] ocotp: mxc: use simpler runtime cpu dection macros In-Reply-To: <1463999766-16786-1-git-send-email-van.freenix@gmail.com> References: <1463999766-16786-1-git-send-email-van.freenix@gmail.com> Message-ID: <1463999766-16786-12-git-send-email-van.freenix@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Use simpler runtime cpu dection macros. Signed-off-by: Peng Fan Cc: Stefano Babic --- drivers/misc/mxc_ocotp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index 65ff815..38344e8 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 -- 2.6.2