From fccc0fcaaae5154612f8259365d26d04f204859f Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Sun, 28 Jun 2009 12:52:31 -0500 Subject: OMAP3 Move twl4030 mmc function Because twl4030 now has its own device files, move and rename twl4030_mmc_config. twl4030_mmc_config initializes the twl4030 power setting to the mmc device. Because it is in the twl4030 power domain, move it out of drivers/mmc/omap3_mmc.c and into drivers/power/twl4030.c. The function was renamed to twl4030_power_mmc_init because all the functions in this file are to have the format twl4030_power__ In this case the suffix is mmc_init so device : mmc action : init Signed-off-by: Tom Rix Acked-by: Jean-Christophe PLAGNIOL-VILLARD Acked-by: Heiko Schocher --- include/configs/omap3_evm.h | 5 +++++ include/twl4030.h | 3 +++ 2 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/configs/omap3_evm.h b/include/configs/omap3_evm.h index 3d9d72caf3..809198b0f8 100644 --- a/include/configs/omap3_evm.h +++ b/include/configs/omap3_evm.h @@ -127,6 +127,11 @@ #define CONFIG_SYS_I2C_BUS_SELECT 1 #define CONFIG_DRIVER_OMAP34XX_I2C 1 +/* + * TWL4030 + */ +#define CONFIG_TWL4030_POWER 1 + /* * Board NAND Info. */ diff --git a/include/twl4030.h b/include/twl4030.h index eb27ec5b2a..f260ecb8b1 100644 --- a/include/twl4030.h +++ b/include/twl4030.h @@ -390,6 +390,9 @@ static inline int twl4030_i2c_read_u8(u8 chip_no, u8 *val, u8 reg) void twl4030_power_reset_init(void); /* For initializing power device */ void twl4030_power_init(void); +/* For initializing mmc power */ +void twl4030_power_mmc_init(void); + /* * LED */ -- cgit v1.2.3