summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Fan <van.freenix@gmail.com>2016-05-23 18:36:03 +0800
committerStefano Babic <sbabic@denx.de>2016-05-24 14:59:57 +0200
commitbff755033133b49eaea38a68fe3284c1a25f2695 (patch)
tree3d722638d02b3e5d78d91796c6909c3adf5f0126
parent9aa550d2e8e9c6c2a149528d3d2b33870608a860 (diff)
downloadblackbird-obmc-uboot-bff755033133b49eaea38a68fe3284c1a25f2695.tar.gz
blackbird-obmc-uboot-bff755033133b49eaea38a68fe3284c1a25f2695.zip
ocotp: mxc: use simpler runtime cpu dection macros
Use simpler runtime cpu dection macros. Signed-off-by: Peng Fan <van.freenix@gmail.com> Cc: Stefano Babic <sbabic@denx.de>
-rw-r--r--drivers/misc/mxc_ocotp.c4
1 files changed, 2 insertions, 2 deletions
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
OpenPOWER on IntegriCloud