Linux Samsung SOC development
 help / color / mirror / Atom feed
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,
	'Joonyoung Shim' <jy0922.shim@samsung.com>,
	ben-linux@fluff.org
Subject: RE: [PATCH 3/6] ARM: S5PC110: Add si470x radio device to the GONI board
Date: Fri, 10 Sep 2010 18:58:15 +0900	[thread overview]
Message-ID: <000601cb50ce$b24f5620$16ee0260$%kim@samsung.com> (raw)
In-Reply-To: <1284103403-10696-4-git-send-email-m.szyprowski@samsung.com>

Marek Szyprowski wrote:
> 
> Add required platform definitions for si470x radio device on Samsung
> Goni board.
> 
Is this the same with following?
http://marc.info/?l=linux-arm-kernel&m=128220793700997&w=2

> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
>  arch/arm/mach-s5pv210/Kconfig     |    2 ++
>  arch/arm/mach-s5pv210/mach-goni.c |   29
> +++++++++++++++++++++++++++++
>  2 files changed, 31 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig
> index b46925b..b1f671d 100644
> --- a/arch/arm/mach-s5pv210/Kconfig
> +++ b/arch/arm/mach-s5pv210/Kconfig
> @@ -83,9 +83,11 @@ config MACH_GONI
>  	select S3C_DEV_HSMMC
>  	select S3C_DEV_HSMMC1
>  	select S3C_DEV_HSMMC2
> +	select S3C_DEV_I2C1
>  	select S5P_DEV_ONENAND
>  	select SAMSUNG_DEV_KEYPAD
>  	select S5PV210_SETUP_FB_24BPP
> +	select S5PV210_SETUP_I2C1
>  	select S5PV210_SETUP_KEYPAD
>  	select S5PV210_SETUP_SDHCI
>  	help
> diff --git a/arch/arm/mach-s5pv210/mach-goni.c
b/arch/arm/mach-s5pv210/mach-
> goni.c
> index b263f3a..30da422 100644
> --- a/arch/arm/mach-s5pv210/mach-goni.c
> +++ b/arch/arm/mach-s5pv210/mach-goni.c
> @@ -38,6 +38,7 @@
>  #include <plat/devs.h>
>  #include <plat/cpu.h>
>  #include <plat/fb.h>
> +#include <plat/iic.h>
>  #include <plat/keypad.h>
>  #include <plat/sdhci.h>
> 
> @@ -200,6 +201,27 @@ static struct samsung_keypad_platdata keypad_data
> __initdata = {
>  	.cols		= 3,
>  };
> 
> +/* Radio */
> +static struct i2c_board_info i2c1_devs[] __initdata = {
> +	{
> +		I2C_BOARD_INFO("si470x", 0x10),
> +	},
> +};
> +
> +static void __init goni_radio_init(void)
> +{
> +	int gpio;
> +
> +	gpio = S5PV210_GPJ2(4);			/* XMSMDATA_4 */
> +	gpio_request(gpio, "FM_INT");
> +	s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(0xf));
> +	i2c1_devs[0].irq = gpio_to_irq(gpio);
> +
> +	gpio = S5PV210_GPJ2(5);			/* XMSMDATA_5 */
> +	gpio_request(gpio, "FM_RST");
> +	gpio_direction_output(gpio, 1);
> +}
> +
>  /* MAX8998 regulators */
>  #if defined(CONFIG_REGULATOR_MAX8998) ||
> defined(CONFIG_REGULATOR_MAX8998_MODULE)
> 
> @@ -567,6 +589,13 @@ static void __init goni_map_io(void)
> 
>  static void __init goni_machine_init(void)
>  {
> +	/* Radio: call before I2C 1 registeration */
> +	goni_radio_init();
> +
> +	/* I2C1 */
> +	s3c_i2c1_set_platdata(NULL);
> +	i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs));
> +
>  	/* PMIC */
>  	goni_pmic_init();
>  	i2c_register_board_info(AP_I2C_GPIO_PMIC_BUS_4,
> i2c_gpio_pmic_devs,
> --


Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

  reply	other threads:[~2010-09-10  9:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-10  7:23 [PATCH] ARM: S5PC110: Samsung Goni board update Marek Szyprowski
2010-09-10  7:23 ` [PATCH 1/6] ARM: S5PC110: update framebuffer setup information for Goni Marek Szyprowski
2010-09-10  9:49   ` Kukjin Kim
2010-09-14  5:38     ` Marek Szyprowski
2010-09-10  7:23 ` [PATCH 2/6] ARM: S5PC110: add support for S6E63M0 LCD controller on Goni board Marek Szyprowski
2010-09-10  7:23 ` [PATCH 3/6] ARM: S5PC110: Add si470x radio device to the GONI board Marek Szyprowski
2010-09-10  9:58   ` Kukjin Kim [this message]
2010-09-14  5:43     ` Marek Szyprowski
2010-09-10  7:23 ` [PATCH 4/6] ARM: S5PV210: Enable USB HSOTG gadget build Marek Szyprowski
2010-09-10 10:33   ` Kukjin Kim
2010-09-11  6:12     ` Kyungmin Park
2010-09-10  7:23 ` [PATCH 5/6] ARM: S5PC110: add support for otg usb gadget on Goni board Marek Szyprowski
2010-09-10 10:44   ` Kukjin Kim
2010-09-14  5:46     ` Marek Szyprowski
2010-09-10  7:23 ` [PATCH 6/6] ARM: S5PC110: add support for MMC regulators " Marek Szyprowski
2010-09-10  9:41   ` Mark Brown
2010-09-10  9:55   ` Kukjin Kim
2010-09-10  9:58     ` Mark Brown

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='000601cb50ce$b24f5620$16ee0260$%kim@samsung.com' \
    --to=kgene.kim@samsung.com \
    --cc=ben-linux@fluff.org \
    --cc=jy0922.shim@samsung.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