From 1c0a0a22eb107fe75f87eae6263027734fa62c5d Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 27 Jun 2016 16:30:21 +0200 Subject: 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 Signed-off-by: Stefan Agner --- drivers/misc/mxc_ocotp.c | 5 ++--- 1 file 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 /* @@ -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) -- cgit v1.2.3