summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2010-04-19 13:42:33 +0800
committerTerry Lv <r65388@freescale.com>2010-04-20 10:27:44 +0800
commit4656abc886843e162f5c2538baffe57135281480 (patch)
tree23d94a51ff34b0286809d31f2a25cd5bbe256ad4 /include/configs
parent260584a4e6144d1e8a5477c4fb55a67dd4fa2ac3 (diff)
downloadu-boot-imx-4656abc886843e162f5c2538baffe57135281480.zip
u-boot-imx-4656abc886843e162f5c2538baffe57135281480.tar.gz
u-boot-imx-4656abc886843e162f5c2538baffe57135281480.tar.bz2
ENGR00122643: Integrate linear PMIC
Integrate linear PMIC. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mx51_bbg.h13
-rw-r--r--include/configs/mx51_bbg_android.h11
-rw-r--r--include/configs/mx51_bbg_mfg.h3
3 files changed, 27 insertions, 0 deletions
diff --git a/include/configs/mx51_bbg.h b/include/configs/mx51_bbg.h
index 121c7a1..117e506 100644
--- a/include/configs/mx51_bbg.h
+++ b/include/configs/mx51_bbg.h
@@ -95,6 +95,7 @@
#define CONFIG_CMD_SF
#define CONFIG_CMD_MMC
#define CONFIG_CMD_FUSE
+#define CONFIG_CMD_I2C
/*
* FUSE Configs
@@ -129,6 +130,18 @@
#define CONFIG_DOS_PARTITION 1
#define CONFIG_CMD_FAT 1
#endif
+
+/*
+ * I2C Configs
+ */
+#ifdef CONFIG_CMD_I2C
+ #define CONFIG_HARD_I2C 1
+ #define CONFIG_I2C_MXC 1
+ #define CONFIG_SYS_I2C_PORT I2C1_BASE_ADDR
+ #define CONFIG_SYS_I2C_SPEED 400000
+ #define CONFIG_SYS_I2C_SLAVE 0xfe
+#endif
+
/*
* Eth Configs
*/
diff --git a/include/configs/mx51_bbg_android.h b/include/configs/mx51_bbg_android.h
index a0bb39e..5f7435d 100644
--- a/include/configs/mx51_bbg_android.h
+++ b/include/configs/mx51_bbg_android.h
@@ -81,6 +81,7 @@
#define CONFIG_CMD_MII
#define CONFIG_CMD_NET
#define CONFIG_NET_RETRY_COUNT 100
+#define CONFIG_CMD_I2C
/*
* Android support Configs
@@ -256,6 +257,16 @@
#define CONFIG_CMD_FAT 1
#define CONFIG_CMD_EXT2 1
#endif
+
+/*
+ * I2C Configs
+ */
+#define CONFIG_HARD_I2C 1
+#define CONFIG_I2C_MXC 1
+#define CONFIG_SYS_I2C_PORT I2C1_BASE_ADDR
+#define CONFIG_SYS_I2C_SPEED 400000
+#define CONFIG_SYS_I2C_SLAVE 0xfe
+
/*-----------------------------------------------------------------------
* Stack sizes
*
diff --git a/include/configs/mx51_bbg_mfg.h b/include/configs/mx51_bbg_mfg.h
index 4d35de2..becad73 100644
--- a/include/configs/mx51_bbg_mfg.h
+++ b/include/configs/mx51_bbg_mfg.h
@@ -47,6 +47,7 @@
#define CONFIG_DISPLAY_BOARDINFO
#define BOARD_LATE_INIT
+
/*
* Disabled for now due to build problems under Debian and a significant
* increase in the final file size: 144260 vs. 109536 Bytes.
@@ -207,6 +208,8 @@
/* TO1 boards */
/* #define PHYS_SDRAM_1_SIZE (128 * 1024 * 1024) */
#define PHYS_SDRAM_1_SIZE (512 * 1024 * 1024)
+#define iomem_valid_addr(addr, size) \
+ (addr >= PHYS_SDRAM_1 && addr <= (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE))
/*-----------------------------------------------------------------------
* FLASH and environment organization