From 4656abc886843e162f5c2538baffe57135281480 Mon Sep 17 00:00:00 2001 From: Terry Lv Date: Mon, 19 Apr 2010 13:42:33 +0800 Subject: ENGR00122643: Integrate linear PMIC Integrate linear PMIC. Signed-off-by: Terry Lv --- include/configs/mx51_bbg.h | 13 +++++++++++++ include/configs/mx51_bbg_android.h | 11 +++++++++++ include/configs/mx51_bbg_mfg.h | 3 +++ 3 files changed, 27 insertions(+) (limited to 'include') 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 -- cgit v1.1