diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 12:38:42 -0700 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 12:38:42 -0700 | 
| commit | ae4c42e4e4d76d003f8ca551fe1aef93ff9a4b21 (patch) | |
| tree | 2bff2e4f4456077e7d7c589c8c28824f12dfa21c /arch/arm/mach-omap2/board-rx51-peripherals.c | |
| parent | dd58ecba48edf14be1a5f70120fcd3002277a74a (diff) | |
| parent | ab2a0e0d135490729e384c1826d118f92e88cae8 (diff) | |
| download | olio-linux-3.10-ae4c42e4e4d76d003f8ca551fe1aef93ff9a4b21.tar.xz olio-linux-3.10-ae4c42e4e4d76d003f8ca551fe1aef93ff9a4b21.zip  | |
Merge branch 'next/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc
* 'next/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc: (133 commits)
  ARM: EXYNOS4: Change devname for FIMD clkdev
  ARM: S3C64XX: Cleanup mach/regs-fb.h from mach-s3c64xx
  ARM: S5PV210: Cleanup mach/regs-fb.h from mach-s5pv210
  ARM: S5PC100: Cleanup mach/regs-fb.h from mach-s5pc100
  ARM: S3C24XX: Use generic s3c_set_platdata for devices
  ARM: S3C64XX: Use generic s3c_set_platdata for OneNAND
  ARM: SAMSUNG: Use generic s3c_set_platdata for NAND
  ARM: SAMSUNG: Use generic s3c_set_platdata for USB OHCI
  ARM: SAMSUNG: Use generic s3c_set_platdata for HWMON
  ARM: SAMSUNG: Use generic s3c_set_platdata for FB
  ARM: SAMSUNG: Use generic s3c_set_platdata for TS
  ARM: S3C64XX: Add PWM backlight support on SMDK6410
  ARM: S5P64X0: Add PWM backlight support on SMDK6450
  ARM: S5P64X0: Add PWM backlight support on SMDK6440
  ARM: S5PC100: Add PWM backlight support on SMDKC100
  ARM: S5PV210: Add PWM backlight support on SMDKV210
  ARM: EXYNOS4: Add PWM backlight support on SMDKC210
  ARM: EXYNOS4: Add PWM backlight support on SMDKV310
  ARM: SAMSUNG: Create a common infrastructure for PWM backlight support
  clocksource: convert 32-bit down counting clocksource on S5PV210/S5P64X0
  ...
Fix up trivial conflict in arch/arm/mach-imx/mach-scb9328.c
Diffstat (limited to 'arch/arm/mach-omap2/board-rx51-peripherals.c')
| -rw-r--r-- | arch/arm/mach-omap2/board-rx51-peripherals.c | 67 | 
1 files changed, 22 insertions, 45 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 88bd6f7705f..bdb24db3600 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -288,10 +288,6 @@ static struct twl4030_keypad_data rx51_kp_data = {  	.rep		= 1,  }; -static struct twl4030_madc_platform_data rx51_madc_data = { -	.irq_line		= 1, -}; -  /* Enable input logic and pull all lines up when eMMC is on. */  static struct omap_board_mux rx51_mmc2_on_mux[] = {  	OMAP3_MUX(SDMMC2_CMD, OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), @@ -358,14 +354,17 @@ static struct omap2_hsmmc_info mmc[] __initdata = {  	{}	/* Terminator */  }; -static struct regulator_consumer_supply rx51_vmmc1_supply = -	REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"); +static struct regulator_consumer_supply rx51_vmmc1_supply[] = { +	REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), +}; -static struct regulator_consumer_supply rx51_vaux3_supply = -	REGULATOR_SUPPLY("vmmc", "omap_hsmmc.1"); +static struct regulator_consumer_supply rx51_vaux3_supply[] = { +	REGULATOR_SUPPLY("vmmc", "omap_hsmmc.1"), +}; -static struct regulator_consumer_supply rx51_vsim_supply = -	REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.1"); +static struct regulator_consumer_supply rx51_vsim_supply[] = { +	REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.1"), +};  static struct regulator_consumer_supply rx51_vmmc2_supplies[] = {  	/* tlv320aic3x analog supplies */ @@ -395,10 +394,6 @@ static struct regulator_consumer_supply rx51_vaux1_consumers[] = {  	REGULATOR_SUPPLY("vdd", "2-0063"),  }; -static struct regulator_consumer_supply rx51_vdac_supply[] = { -	REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"), -}; -  static struct regulator_init_data rx51_vaux1 = {  	.constraints = {  		.name			= "V28", @@ -452,8 +447,8 @@ static struct regulator_init_data rx51_vaux3_mmc = {  					| REGULATOR_CHANGE_MODE  					| REGULATOR_CHANGE_STATUS,  	}, -	.num_consumer_supplies	= 1, -	.consumer_supplies	= &rx51_vaux3_supply, +	.num_consumer_supplies	= ARRAY_SIZE(rx51_vaux3_supply), +	.consumer_supplies	= rx51_vaux3_supply,  };  static struct regulator_init_data rx51_vaux4 = { @@ -479,8 +474,8 @@ static struct regulator_init_data rx51_vmmc1 = {  					| REGULATOR_CHANGE_MODE  					| REGULATOR_CHANGE_STATUS,  	}, -	.num_consumer_supplies	= 1, -	.consumer_supplies	= &rx51_vmmc1_supply, +	.num_consumer_supplies	= ARRAY_SIZE(rx51_vmmc1_supply), +	.consumer_supplies	= rx51_vmmc1_supply,  };  static struct regulator_init_data rx51_vmmc2 = { @@ -511,23 +506,8 @@ static struct regulator_init_data rx51_vsim = {  		.valid_ops_mask		= REGULATOR_CHANGE_MODE  					| REGULATOR_CHANGE_STATUS,  	}, -	.num_consumer_supplies	= 1, -	.consumer_supplies	= &rx51_vsim_supply, -}; - -static struct regulator_init_data rx51_vdac = { -	.constraints = { -		.name			= "VDAC", -		.min_uV			= 1800000, -		.max_uV			= 1800000, -		.apply_uV		= true, -		.valid_modes_mask	= REGULATOR_MODE_NORMAL -					| REGULATOR_MODE_STANDBY, -		.valid_ops_mask		= REGULATOR_CHANGE_MODE -					| REGULATOR_CHANGE_STATUS, -	}, -	.num_consumer_supplies	= 1, -	.consumer_supplies	= rx51_vdac_supply, +	.num_consumer_supplies	= ARRAY_SIZE(rx51_vsim_supply), +	.consumer_supplies	= rx51_vsim_supply,  };  static struct regulator_init_data rx51_vio = { @@ -600,10 +580,6 @@ static struct twl4030_gpio_platform_data rx51_gpio_data = {  	.setup			= rx51_twlgpio_setup,  }; -static struct twl4030_usb_data rx51_usb_data = { -	.usb_mode		= T2_USB_MODE_ULPI, -}; -  static struct twl4030_ins sleep_on_seq[] __initdata = {  /*   * Turn off everything @@ -775,14 +751,9 @@ struct twl4030_codec_data rx51_codec_data __initdata = {  };  static struct twl4030_platform_data rx51_twldata __initdata = { -	.irq_base		= TWL4030_IRQ_BASE, -	.irq_end		= TWL4030_IRQ_END, -  	/* platform_data for children goes here */  	.gpio			= &rx51_gpio_data,  	.keypad			= &rx51_kp_data, -	.madc			= &rx51_madc_data, -	.usb			= &rx51_usb_data,  	.power			= &rx51_t2scripts_data,  	.codec			= &rx51_codec_data, @@ -791,7 +762,6 @@ static struct twl4030_platform_data rx51_twldata __initdata = {  	.vaux4			= &rx51_vaux4,  	.vmmc1			= &rx51_vmmc1,  	.vsim			= &rx51_vsim, -	.vdac			= &rx51_vdac,  	.vio			= &rx51_vio,  }; @@ -847,6 +817,13 @@ static int __init rx51_i2c_init(void)  		rx51_twldata.vaux3 = &rx51_vaux3_cam;  	}  	rx51_twldata.vmmc2 = &rx51_vmmc2; +	omap3_pmic_get_config(&rx51_twldata, +			TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC, +			TWL_COMMON_REGULATOR_VDAC); + +	rx51_twldata.vdac->constraints.apply_uV = true; +	rx51_twldata.vdac->constraints.name = "VDAC"; +  	omap_pmic_init(1, 2200, "twl5030", INT_34XX_SYS_NIRQ, &rx51_twldata);  	omap_register_i2c_bus(2, 100, rx51_peripherals_i2c_board_info_2,  			      ARRAY_SIZE(rx51_peripherals_i2c_board_info_2));  |