mpc83xx: don't disable autoboot
[oweals/u-boot.git] / include / configs / M5253DEMO.h
index f2c2317f50c0af797f559e4f126a43897eb424f3..8d9bfa3dd09beb6b5f81e010f2dc99f9981e5a30 100644 (file)
  * Environment is embedded in u-boot in the second sector of the flash
  */
 #ifdef CONFIG_MONITOR_IS_IN_RAM
-#      define CFG_ENV_OFFSET           0x4000
-#      define CFG_ENV_SECT_SIZE        0x1000
-#      define CFG_ENV_IS_IN_FLASH      1
+#      define CONFIG_ENV_OFFSET                0x4000
+#      define CONFIG_ENV_SECT_SIZE     0x1000
+#      define CONFIG_ENV_IS_IN_FLASH   1
 #else
-#      define CFG_ENV_ADDR             (CFG_FLASH_BASE + 0x4000)
-#      define CFG_ENV_SECT_SIZE        0x1000
-#      define CFG_ENV_IS_IN_FLASH      1
+#      define CONFIG_ENV_ADDR          (CFG_FLASH_BASE + 0x4000)
+#      define CONFIG_ENV_SECT_SIZE     0x1000
+#      define CONFIG_ENV_IS_IN_FLASH   1
 #endif
 
 /*
 
 #define CONFIG_HOSTNAME                M5253DEMO
 
+/* I2C */
+#define CONFIG_FSL_I2C
+#define CONFIG_HARD_I2C                /* I2C with hw support */
+#define CFG_I2C_SPEED          80000
+#define CFG_I2C_SLAVE          0x7F
+#define CFG_I2C_OFFSET         0x00000280
+#define CFG_IMMR               CFG_MBAR
+#define CFG_I2C_PINMUX_REG     (*(u32 *) (CFG_MBAR+0x19C))
+#define CFG_I2C_PINMUX_CLR     (0xFFFFE7FF)
+#define CFG_I2C_PINMUX_SET     (0)
+
 #define CFG_PROMPT             "=> "
 #define CFG_LONGHELP           /* undef to save memory */