summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2016-06-27 16:30:21 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2016-06-28 09:28:18 +0200
commit1c0a0a22eb107fe75f87eae6263027734fa62c5d (patch)
treea105637a10afa301b7cc67b96225063473bbc110
parent7d8be9834d6d2c5aa94c205332fa0c36d8b01c77 (diff)
mxc_ocotp: simplify code
For mx7 the code needn't make provisions, we can use the simple variant of fuse_bank_physical. Also U-Boot does not allow multi- platform (MX6/MX7) configurations, hence we can use compile time defines which select the simpler variant for MX7 always. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r--drivers/misc/mxc_ocotp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c
index bdbe0bd7c4..7e6d9d996f 100644
--- a/drivers/misc/mxc_ocotp.c
+++ b/drivers/misc/mxc_ocotp.c
@@ -71,7 +71,7 @@
#error "Unsupported architecture\n"
#endif
-#if defined(CONFIG_MX6) || defined(CONFIG_MX7)
+#if defined(CONFIG_MX6)
#include <asm/arch/sys_proto.h>
/*
@@ -95,8 +95,7 @@ u32 fuse_bank_physical(int index)
{
u32 phy_index;
- if ((index == 0) || is_cpu_type(MXC_CPU_MX6SL) ||
- is_cpu_type(MXC_CPU_MX7D))
+ if ((index == 0) || is_cpu_type(MXC_CPU_MX6SL))
phy_index = index;
else if (is_cpu_type(MXC_CPU_MX6UL)) {
if (index >= 6)