From: Kukjin Kim <kgene.kim@samsung.com>
To: 'Marek Szyprowski' <m.szyprowski@samsung.com>,
linux-samsung-soc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Cc: kyungmin.park@samsung.com,
'Mark Brown' <broonie@opensource.wolfsonmicro.com>,
ben-linux@fluff.org
Subject: RE: [PATCHv2 7/7] ARM: S5PC110: add support for MMC regulators on Goni board
Date: Tue, 28 Sep 2010 15:27:49 +0900 [thread overview]
Message-ID: <005001cb5ed6$490137e0$db03a7a0$%kim@samsung.com> (raw)
In-Reply-To: <1284987337-15365-8-git-send-email-m.szyprowski@samsung.com>
Marek Szyprowski wrote:
>
> Add required platform definitions for MMC power regulators on Samsung
> Goni board. GPIO pin GONI_EXT_FLASH_EN has been transferred from machine
> startup code to fixed voltage regulator.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> CC: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> arch/arm/mach-s5pv210/mach-goni.c | 40
> ++++++++++++++++++++++++++++++++++--
> 1 files changed, 37 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-s5pv210/mach-goni.c
b/arch/arm/mach-s5pv210/mach-
> goni.c
> index 68e22f2..a7fbe08 100644
> --- a/arch/arm/mach-s5pv210/mach-goni.c
> +++ b/arch/arm/mach-s5pv210/mach-goni.c
> @@ -16,6 +16,7 @@
> #include <linux/i2c.h>
> #include <linux/i2c-gpio.h>
> #include <linux/mfd/max8998.h>
> +#include <linux/regulator/fixed.h>
> #include <linux/spi/spi.h>
> #include <linux/spi/spi_gpio.h>
> #include <linux/lcd.h>
> @@ -226,6 +227,10 @@ static void __init goni_radio_init(void)
> /* MAX8998 regulators */
> #if defined(CONFIG_REGULATOR_MAX8998) ||
> defined(CONFIG_REGULATOR_MAX8998_MODULE)
>
> +static struct regulator_consumer_supply goni_ldo5_consumers[] = {
> + REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"),
> +};
> +
> static struct regulator_init_data goni_ldo2_data = {
> .constraints = {
> .name = "VALIVE_1.1V",
> @@ -265,6 +270,8 @@ static struct regulator_init_data goni_ldo5_data = {
> .max_uV = 2800000,
> .apply_uV = 1,
> },
> + .num_consumer_supplies = ARRAY_SIZE(goni_ldo5_consumers),
> + .consumer_supplies = goni_ldo5_consumers,
> };
>
> static struct regulator_init_data goni_ldo6_data = {
> @@ -556,11 +563,37 @@ static struct s3c_sdhci_platdata goni_hsmmc2_data
> __initdata = {
> .ext_cd_gpio_invert = 1,
> };
>
> +static struct regulator_consumer_supply mmc2_supplies[] = {
> + REGULATOR_SUPPLY("vmmc", "s3c-sdhci.2"),
> +};
> +
> +static struct regulator_init_data mmc2_fixed_voltage_init_data = {
> + .constraints = {
> + .name = "V_TF_2.8V",
> + .valid_ops_mask = REGULATOR_CHANGE_STATUS,
> + },
> + .num_consumer_supplies = ARRAY_SIZE(mmc2_supplies),
> + .consumer_supplies = mmc2_supplies,
> +};
> +
> +static struct fixed_voltage_config mmc2_fixed_voltage_config = {
> + .supply_name = "EXT_FLASH_EN",
> + .microvolts = 2800000,
> + .gpio = GONI_EXT_FLASH_EN,
> + .enable_high = true,
> + .init_data = &mmc2_fixed_voltage_init_data,
> +};
> +
> +static struct platform_device mmc2_fixed_voltage = {
> + .name = "reg-fixed-voltage",
> + .id = 2,
> + .dev = {
> + .platform_data = &mmc2_fixed_voltage_config,
> + },
> +};
> +
> static void goni_setup_sdhci(void)
> {
> - gpio_request(GONI_EXT_FLASH_EN, "FLASH_EN");
> - gpio_direction_output(GONI_EXT_FLASH_EN, 1);
> -
> s3c_sdhci0_set_platdata(&goni_hsmmc0_data);
> s3c_sdhci1_set_platdata(&goni_hsmmc1_data);
> s3c_sdhci2_set_platdata(&goni_hsmmc2_data);
> @@ -572,6 +605,7 @@ static struct platform_device *goni_devices[]
__initdata = {
> &goni_spi_gpio,
> &s3c_device_usb_hsotg,
> &goni_i2c_gpio_pmic,
> + &mmc2_fixed_voltage,
> &goni_device_gpiokeys,
> &s5p_device_fimc0,
> &s5p_device_fimc1,
> --
Ok...will apply with Mark Brown's reviewed-by.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
prev parent reply other threads:[~2010-09-28 6:27 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-20 12:55 [PATCH v2] ARM: S5PC110: Samsung Goni board update Marek Szyprowski
2010-09-20 12:55 ` [PATCHv2 1/7] ARM: S5PC110: update framebuffer setup information for Goni Marek Szyprowski
2010-09-28 7:07 ` Kukjin Kim
2010-09-20 12:55 ` [PATCHv2 2/7] ARM: S5PC110: fb setup for Goni - remove pixel clock Marek Szyprowski
2010-09-28 7:08 ` Kukjin Kim
2010-09-20 12:55 ` [PATCHv2 3/7] ARM: S5PC110: add support for S6E63M0 LCD controller on Goni board Marek Szyprowski
2010-09-28 7:38 ` Kukjin Kim
2010-09-28 12:27 ` Marek Szyprowski
2010-09-28 13:15 ` [PATCH v3] " Marek Szyprowski
2010-10-02 10:40 ` Kukjin Kim
2010-10-04 5:42 ` Marek Szyprowski
2010-09-20 12:55 ` [PATCHv2 4/7] ARM: S5PC110: Add si470x radio device to the GONI board Marek Szyprowski
2010-09-28 7:43 ` Kukjin Kim
2010-09-28 13:08 ` Marek Szyprowski
2010-09-28 14:04 ` Kukjin Kim
2010-09-29 5:28 ` Marek Szyprowski
2010-09-20 12:55 ` [PATCHv2 5/7] ARM: S5PV210: Enable USB HSOTG gadget build Marek Szyprowski
2010-09-28 7:53 ` Kukjin Kim
2010-09-20 12:55 ` [PATCHv2 6/7] ARM: S5PC110: add support for otg usb gadget on Goni board Marek Szyprowski
2010-09-28 7:54 ` Kukjin Kim
2010-09-20 12:55 ` [PATCHv2 7/7] ARM: S5PC110: add support for MMC regulators " Marek Szyprowski
2010-09-20 13:03 ` Mark Brown
2010-09-28 6:27 ` Kukjin Kim [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='005001cb5ed6$490137e0$db03a7a0$%kim@samsung.com' \
--to=kgene.kim@samsung.com \
--cc=ben-linux@fluff.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox