]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/mpc512x.h
83xx: searching "muram-data" by compatible property
[karo-tx-uboot.git] / include / mpc512x.h
index a76b1ca2143f06d2f94687bea2c9e2d97a1d331f..0f022939da650b1e7630699abce569e473e5f0cd 100644 (file)
@@ -58,6 +58,7 @@
 #define CS5_CONFIG             0x00014
 #define CS6_CONFIG             0x00018
 #define CS7_CONFIG             0x0001C
+#define CS_ALE_TIMING_CONFIG   0x00034
 
 #define CS_CTRL                        0x00020
 #define CS_CTRL_ME             0x01000000      /* CS Master Enable bit */
@@ -571,7 +572,32 @@ void iopin_initialize(iopin_t *,int);
 #define IOCTRL_MUX_DDR         0x00000036
 
  /* Register Offset Base */
-#define MPC512X_FEC            (CFG_IMMR + 0x02800)
+#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