summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2017-02-22 16:21:46 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 17:23:51 +0800
commit9988956a0bcbf841df262096c7154d1bb1e8b906 (patch)
treea6dcf0d0c633fa863649712b5d5c8e3fda0855fc /arch
parent8a6a9f74a28f9ca30612452ebe1c325a3486d309 (diff)
downloadu-boot-imx-9988956a0bcbf841df262096c7154d1bb1e8b906.zip
u-boot-imx-9988956a0bcbf841df262096c7154d1bb1e8b906.tar.gz
u-boot-imx-9988956a0bcbf841df262096c7154d1bb1e8b906.tar.bz2
mxc_ocotp: Update driver to support OCOTP controller on i.MX7ULP
Update the mxc_ocotp driver to support i.MX7ULP. The read/write sequence has some changes due to PDN and OUT_STATUS registers added and TIME register is removed. Also update the bank size and number. Add is_mx7ulp macro in sys_proto.h Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by : Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/imx-common/sys_proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/imx-common/sys_proto.h b/arch/arm/include/asm/imx-common/sys_proto.h
index 0f06c90..3a6ebe2 100644
--- a/arch/arm/include/asm/imx-common/sys_proto.h
+++ b/arch/arm/include/asm/imx-common/sys_proto.h
@@ -40,6 +40,8 @@
#define is_mx6ull() (is_cpu_type(MXC_CPU_MX6ULL))
#define is_mx6sll() (is_cpu_type(MXC_CPU_MX6SLL))
+#define is_mx7ulp() (is_cpu_type(MXC_CPU_MX7ULP))
+
u32 get_nr_cpus(void);
u32 get_cpu_rev(void);
u32 get_cpu_speed_grade_hz(void);