summaryrefslogtreecommitdiff
path: root/include/mpc512x.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-02-07 22:08:53 +0100
committerWolfgang Denk <wd@denx.de>2009-02-07 22:08:53 +0100
commit1b33a62bf9301f9e1611a44865bf3d2c51198993 (patch)
treec3ea4cef2b813805a5481c1b816a4da6c8f23667 /include/mpc512x.h
parent9d8811c5bd2b7dd6307742cf22fbdb7953b6f816 (diff)
parent70a4da45e16b72e8e5b0baaecdaee9be8619647d (diff)
downloadu-boot-imx-1b33a62bf9301f9e1611a44865bf3d2c51198993.zip
u-boot-imx-1b33a62bf9301f9e1611a44865bf3d2c51198993.tar.gz
u-boot-imx-1b33a62bf9301f9e1611a44865bf3d2c51198993.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-mpc5xxx
Diffstat (limited to 'include/mpc512x.h')
-rw-r--r--include/mpc512x.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/mpc512x.h b/include/mpc512x.h
index 05a2063..0f02293 100644
--- a/include/mpc512x.h
+++ b/include/mpc512x.h
@@ -573,6 +573,31 @@ void iopin_initialize(iopin_t *,int);
/* Register Offset Base */
#define MPC512X_FEC (CONFIG_SYS_IMMR + 0x02800)
+#define MPC512X_PATA (CONFIG_SYS_IMMR + 0x10200)
+
+/* IIM control */
+#define IIM_SET_UA(bk, f) ((bk << 3) | (f >> 5))
+#define IIM_SET_LA(f, bit) (((f & 0x0000001f) << 3) | bit)
+#define IIM_STAT_BUSY 0x00000080
+#define IIM_STAT_PRGD 0x00000002
+#define IIM_STAT_SNSD 0x00000001
+#define IIM_ERR_WPE 0x00000040
+#define IIM_ERR_OPE 0x00000020
+#define IIM_ERR_RPE 0x00000010
+#define IIM_ERR_WLRE 0x00000008
+#define IIM_ERR_SNSE 0x00000004
+#define IIM_ERR_PARITYE 0x00000002
+#define IIM_PRG_P_SET 0x000000aa
+#define IIM_PRG_P_UNSET 0
+#define IIM_FCTL_PROG_PULSE 0x00000020
+#define IIM_FCTL_PROG 0x00000001
+#define IIM_FCTL_ESNS_N 0x00000008
+#define IIM_FBAC_FBWP 0x00000080
+#define IIM_FBAC_FBOP 0x00000040
+#define IIM_FBAC_FBRP 0x00000020
+#define IIM_FBAC_FBESP 0x00000008
+#define IIM_PROTECTION 0x000000e8
+#define IIM_FMAX 31
/* Number of I2C buses */
#define I2C_BUS_CNT 3