Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed32350d authored by Madhusudhan Chikkature's avatar Madhusudhan Chikkature Committed by Tony Lindgren
Browse files

omap3: Zoom2/3: Update hsmmc board config params



Update the hsmmc zoom peripheral configuration to support:
Power saving mode
mmc2 8-bit support
Configure mmc2 as non removable

Signed-off-by: default avatarMadhusudhan Chikkature <madhu.cr@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5bcf5a10
Loading
Loading
Loading
Loading
+8 −5
Original line number Original line Diff line number Diff line
@@ -152,14 +152,20 @@ static struct regulator_init_data zoom_vsim = {


static struct twl4030_hsmmc_info mmc[] __initdata = {
static struct twl4030_hsmmc_info mmc[] __initdata = {
	{
	{
		.name		= "external",
		.mmc		= 1,
		.mmc		= 1,
		.wires		= 4,
		.wires		= 4,
		.gpio_wp	= -EINVAL,
		.gpio_wp	= -EINVAL,
		.power_saving	= true,
	},
	},
	{
	{
		.name		= "internal",
		.mmc		= 2,
		.mmc		= 2,
		.wires		= 4,
		.wires		= 8,
		.gpio_cd	= -EINVAL,
		.gpio_wp	= -EINVAL,
		.gpio_wp	= -EINVAL,
		.nonremovable	= true,
		.power_saving	= true,
	},
	},
	{}      /* Terminator */
	{}      /* Terminator */
};
};
@@ -167,11 +173,8 @@ static struct twl4030_hsmmc_info mmc[] __initdata = {
static int zoom_twl_gpio_setup(struct device *dev,
static int zoom_twl_gpio_setup(struct device *dev,
		unsigned gpio, unsigned ngpio)
		unsigned gpio, unsigned ngpio)
{
{
	/* gpio + 0 is "mmc0_cd" (input/IRQ),
	/* gpio + 0 is "mmc0_cd" (input/IRQ) */
	 * gpio + 1 is "mmc1_cd" (input/IRQ)
	 */
	mmc[0].gpio_cd = gpio + 0;
	mmc[0].gpio_cd = gpio + 0;
	mmc[1].gpio_cd = gpio + 1;
	twl4030_mmc_init(mmc);
	twl4030_mmc_init(mmc);


	/* link regulators to MMC adapters ... we "know" the
	/* link regulators to MMC adapters ... we "know" the