diff options
author | Peng Fan <peng.fan@nxp.com> | 2016-11-29 11:15:29 +0800 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2016-11-29 11:17:07 +0800 |
commit | fa8efb3d70777554eef52d69468f3e63a828bcd9 (patch) | |
tree | 0259a961ded510d25a183998d88f40f7387eb983 | |
parent | d381b92c0c811f63a1eb576814e062ce164b0b61 (diff) | |
download | u-boot-imx-fa8efb3d70777554eef52d69468f3e63a828bcd9.zip u-boot-imx-fa8efb3d70777554eef52d69468f3e63a828bcd9.tar.gz u-boot-imx-fa8efb3d70777554eef52d69468f3e63a828bcd9.tar.bz2 |
MLK-13532 misc: ocotp: ulp: fix fuse read
There is no hole in i.MX7ULP1 OCOTP space, so the phy_index
is the same one with index.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
-rw-r--r-- | arch/arm/include/asm/arch-imx/cpu.h | 1 | ||||
-rw-r--r-- | drivers/misc/mxc_ocotp.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-imx/cpu.h b/arch/arm/include/asm/arch-imx/cpu.h index 5a663c0..8dd9c04 100644 --- a/arch/arm/include/asm/arch-imx/cpu.h +++ b/arch/arm/include/asm/arch-imx/cpu.h @@ -24,6 +24,7 @@ #define MXC_CPU_MX6DP 0x68 #define MXC_CPU_MX6QP 0x69 #define MXC_CPU_MX7D 0x72 +#define MXC_CPU_MX7ULP 0x73 /* Temporally hard code */ #define MXC_CPU_VF610 0xF6 /* dummy ID */ #define MXC_SOC_MX6 0x60 diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index 1bf11da..ab3565e 100644 --- a/drivers/misc/mxc_ocotp.c +++ b/drivers/misc/mxc_ocotp.c @@ -107,7 +107,7 @@ u32 fuse_bank_physical(int index) { u32 phy_index; - if (is_cpu_type(MXC_CPU_MX6SL)) { + if (is_cpu_type(MXC_CPU_MX6SL) || is_cpu_type(MXC_CPU_MX7ULP)) { phy_index = index; } else if (is_cpu_type(MXC_CPU_MX6UL) || is_cpu_type(MXC_CPU_MX6ULL) || is_cpu_type(MXC_CPU_MX6SLL)) { |