summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-mx51/imx_fuse.h
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2010-01-26 20:18:22 +0800
committerTerry Lv <r65388@freescale.com>2010-01-27 13:29:28 +0800
commit3de15e03d89eeda18e665d270c6e3abf65c94d1d (patch)
treebcd1cb6bc3bc677cd148ee2cfe75519b90166c00 /include/asm-arm/arch-mx51/imx_fuse.h
parentc77b09d0ede28f2d9ab940ed15bd16bdafb7ea26 (diff)
downloadu-boot-imx-3de15e03d89eeda18e665d270c6e3abf65c94d1d.zip
u-boot-imx-3de15e03d89eeda18e665d270c6e3abf65c94d1d.tar.gz
u-boot-imx-3de15e03d89eeda18e665d270c6e3abf65c94d1d.tar.bz2
ENGR00120476: Add fuse support for mx51
Add fuse support for mx51. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'include/asm-arm/arch-mx51/imx_fuse.h')
-rw-r--r--include/asm-arm/arch-mx51/imx_fuse.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/asm-arm/arch-mx51/imx_fuse.h b/include/asm-arm/arch-mx51/imx_fuse.h
new file mode 100644
index 0000000..8a65613
--- /dev/null
+++ b/include/asm-arm/arch-mx51/imx_fuse.h
@@ -0,0 +1,33 @@
+/*
+ * (C) Copyright 2009-2010 Freescale Semiconductor, Inc.
+ *
+ * Configuration settings for the MX51-3Stack Freescale board.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef _IMX_FUSE_H_
+#define _IMX_FUSE_H_
+
+#define IIM_ERR_SHIFT 8
+#define POLL_FUSE_PRGD (IIM_STAT_PRGD | (IIM_ERR_PRGE << IIM_ERR_SHIFT))
+#define POLL_FUSE_SNSD (IIM_STAT_SNSD | (IIM_ERR_SNSE << IIM_ERR_SHIFT))
+
+int fuse_read(int bank, char row);
+int fuse_blow(int bank, int row, int val);
+int fuse_blow_func(char *func_name, char *func_val);
+
+#endif