linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kmpark@infradead.org (Kyungmin Park)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/3] ARM: S5PV210: Add support for I2C devices on SMDKV210 and SMDKC110
Date: Wed, 21 Jul 2010 22:23:38 +0900	[thread overview]
Message-ID: <AANLkTilTcum2H5zj2B21Ha8Ov0lfwJ29WavT89AoGQVL@mail.gmail.com> (raw)
In-Reply-To: <1279717139-24422-1-git-send-email-kgene.kim@samsung.com>

which tree do you use? If not fix the s5pv210_IIC2_IRQ correcly, it
can't compile it.
but I'm not see related patch at mailing list.

Thank you,
Kyungmin Park

On Wed, Jul 21, 2010 at 9:58 PM, Kukjin Kim <kgene.kim@samsung.com> wrote:
> From: Naveen Krishna Ch <ch.naveen@samsung.com>
>
> This patch adds support I2C-0/1/2 devices to the SMDKV210/SMDKC110.
>
> Signed-off-by: Naveen Krishna Ch <ch.naveen@samsung.com>
> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
> ---
> Changes since v1:
> - Fixed the wrong name as per Kyungmin Park's comments
>
> ?arch/arm/mach-s5pv210/Kconfig ? ? ? ? | ? ?8 ++++++++
> ?arch/arm/mach-s5pv210/mach-smdkc110.c | ? 28 ++++++++++++++++++++++++++++
> ?arch/arm/mach-s5pv210/mach-smdkv210.c | ? 29 +++++++++++++++++++++++++++++
> ?3 files changed, 65 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig
> index 0761eac..2a996d9 100644
> --- a/arch/arm/mach-s5pv210/Kconfig
> +++ b/arch/arm/mach-s5pv210/Kconfig
> @@ -72,9 +72,13 @@ config MACH_SMDKV210
> ? ? ? ?select CPU_S5PV210
> ? ? ? ?select ARCH_SPARSEMEM_ENABLE
> ? ? ? ?select SAMSUNG_DEV_ADC
> + ? ? ? select S3C_DEV_I2C1
> + ? ? ? select S3C_DEV_I2C2
> ? ? ? ?select SAMSUNG_DEV_TS
> ? ? ? ?select S3C_DEV_WDT
> ? ? ? ?select HAVE_S3C2410_WATCHDOG
> + ? ? ? select S5PV210_SETUP_I2C1
> + ? ? ? select S5PV210_SETUP_I2C2
> ? ? ? ?help
> ? ? ? ? ?Machine support for Samsung SMDKV210
>
> @@ -82,8 +86,12 @@ config MACH_SMDKC110
> ? ? ? ?bool "SMDKC110"
> ? ? ? ?select CPU_S5PV210
> ? ? ? ?select ARCH_SPARSEMEM_ENABLE
> + ? ? ? select S3C_DEV_I2C1
> + ? ? ? select S3C_DEV_I2C2
> ? ? ? ?select S3C_DEV_WDT
> ? ? ? ?select HAVE_S3C2410_WATCHDOG
> + ? ? ? select S5PV210_SETUP_I2C1
> + ? ? ? select S5PV210_SETUP_I2C2
> ? ? ? ?help
> ? ? ? ? ?Machine support for Samsung SMDKC110
> ? ? ? ? ?S5PC110(MCP) is one of package option of S5PV210
> diff --git a/arch/arm/mach-s5pv210/mach-smdkc110.c b/arch/arm/mach-s5pv210/mach-smdkc110.c
> index 4c8903c..fcd475f 100644
> --- a/arch/arm/mach-s5pv210/mach-smdkc110.c
> +++ b/arch/arm/mach-s5pv210/mach-smdkc110.c
> @@ -12,6 +12,7 @@
> ?#include <linux/types.h>
> ?#include <linux/init.h>
> ?#include <linux/serial_core.h>
> +#include <linux/i2c.h>
>
> ?#include <asm/mach/arch.h>
> ?#include <asm/mach/map.h>
> @@ -25,6 +26,7 @@
> ?#include <plat/s5pv210.h>
> ?#include <plat/devs.h>
> ?#include <plat/cpu.h>
> +#include <plat/iic.h>
>
> ?/* Following are default values for UCON, ULCON and UFCON UART registers */
> ?#define S5PV210_UCON_DEFAULT ? (S3C2410_UCON_TXILEVEL | ? ? ? ?\
> @@ -74,9 +76,24 @@ static struct s3c2410_uartcfg smdkv210_uartcfgs[] __initdata = {
> ?static struct platform_device *smdkc110_devices[] __initdata = {
> ? ? ? ?&s5pv210_device_iis0,
> ? ? ? ?&s5pv210_device_ac97,
> + ? ? ? &s3c_device_i2c0,
> + ? ? ? &s3c_device_i2c1,
> + ? ? ? &s3c_device_i2c2,
> ? ? ? ?&s3c_device_wdt,
> ?};
>
> +static struct i2c_board_info smdkc110_i2c_devs0[] __initdata = {
> + ? ? ? { I2C_BOARD_INFO("24c08", 0x50), }, ? ? /* Samsung S524AD0XD1 */
> +};
> +
> +static struct i2c_board_info smdkc110_i2c_devs1[] __initdata = {
> + ? ? ? /* To Be Updated */
> +};
> +
> +static struct i2c_board_info smdkc110_i2c_devs2[] __initdata = {
> + ? ? ? /* To Be Updated */
> +};
> +
> ?static void __init smdkc110_map_io(void)
> ?{
> ? ? ? ?s5p_init_io(NULL, 0, S5P_VA_CHIPID);
> @@ -86,6 +103,17 @@ static void __init smdkc110_map_io(void)
>
> ?static void __init smdkc110_machine_init(void)
> ?{
> + ? ? ? /* I2C */
> + ? ? ? s3c_i2c0_set_platdata(NULL);
> + ? ? ? s3c_i2c1_set_platdata(NULL);
> + ? ? ? s3c_i2c2_set_platdata(NULL);
> + ? ? ? i2c_register_board_info(0, smdkc110_i2c_devs0,
> + ? ? ? ? ? ? ? ? ? ? ? ARRAY_SIZE(smdkc110_i2c_devs0));
> + ? ? ? i2c_register_board_info(1, smdkc110_i2c_devs1,
> + ? ? ? ? ? ? ? ? ? ? ? ARRAY_SIZE(smdkc110_i2c_devs1));
> + ? ? ? i2c_register_board_info(2, smdkc110_i2c_devs2,
> + ? ? ? ? ? ? ? ? ? ? ? ARRAY_SIZE(smdkc110_i2c_devs2));
> +
> ? ? ? ?platform_add_devices(smdkc110_devices, ARRAY_SIZE(smdkc110_devices));
> ?}
>
> diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c
> index 0d46279..765f47e 100644
> --- a/arch/arm/mach-s5pv210/mach-smdkv210.c
> +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c
> @@ -10,6 +10,7 @@
>
> ?#include <linux/kernel.h>
> ?#include <linux/types.h>
> +#include <linux/i2c.h>
> ?#include <linux/init.h>
> ?#include <linux/serial_core.h>
>
> @@ -27,6 +28,7 @@
> ?#include <plat/cpu.h>
> ?#include <plat/adc.h>
> ?#include <plat/ts.h>
> +#include <plat/iic.h>
>
> ?/* Following are default values for UCON, ULCON and UFCON UART registers */
> ?#define S5PV210_UCON_DEFAULT ? (S3C2410_UCON_TXILEVEL | ? ? ? ?\
> @@ -77,10 +79,25 @@ static struct platform_device *smdkv210_devices[] __initdata = {
> ? ? ? ?&s5pv210_device_iis0,
> ? ? ? ?&s5pv210_device_ac97,
> ? ? ? ?&s3c_device_adc,
> + ? ? ? &s3c_device_i2c0,
> + ? ? ? &s3c_device_i2c1,
> + ? ? ? &s3c_device_i2c2,
> ? ? ? ?&s3c_device_ts,
> ? ? ? ?&s3c_device_wdt,
> ?};
>
> +static struct i2c_board_info smdkv210_i2c_devs0[] __initdata = {
> + ? ? ? { I2C_BOARD_INFO("24c08", 0x50), }, ? ? /* Samsung S524AD0XD1 */
> +};
> +
> +static struct i2c_board_info smdkv210_i2c_devs1[] __initdata = {
> + ? ? ? /* To Be Updated */
> +};
> +
> +static struct i2c_board_info smdkv210_i2c_devs2[] __initdata = {
> + ? ? ? /* To Be Updated */
> +};
> +
> ?static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
> ? ? ? ?.delay ? ? ? ? ? ? ? ? ?= 10000,
> ? ? ? ?.presc ? ? ? ? ? ? ? ? ?= 49,
> @@ -97,6 +114,18 @@ static void __init smdkv210_map_io(void)
> ?static void __init smdkv210_machine_init(void)
> ?{
> ? ? ? ?s3c24xx_ts_set_platdata(&s3c_ts_platform);
> +
> + ? ? ? /* I2C */
> + ? ? ? s3c_i2c0_set_platdata(NULL);
> + ? ? ? s3c_i2c1_set_platdata(NULL);
> + ? ? ? s3c_i2c2_set_platdata(NULL);
> + ? ? ? i2c_register_board_info(0, smdkv210_i2c_devs0,
> + ? ? ? ? ? ? ? ? ? ? ? ARRAY_SIZE(smdkv210_i2c_devs0));
> + ? ? ? i2c_register_board_info(1, smdkv210_i2c_devs1,
> + ? ? ? ? ? ? ? ? ? ? ? ARRAY_SIZE(smdkv210_i2c_devs1));
> + ? ? ? i2c_register_board_info(2, smdkv210_i2c_devs2,
> + ? ? ? ? ? ? ? ? ? ? ? ARRAY_SIZE(smdkv210_i2c_devs2));
> +
> ? ? ? ?platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices));
> ?}
>
> --
> 1.6.2.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at ?http://vger.kernel.org/majordomo-info.html
>

      reply	other threads:[~2010-07-21 13:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-21 12:58 [PATCH v2 2/3] ARM: S5PV210: Add support for I2C devices on SMDKV210 and SMDKC110 Kukjin Kim
2010-07-21 13:23 ` Kyungmin Park [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=AANLkTilTcum2H5zj2B21Ha8Ov0lfwJ29WavT89AoGQVL@mail.gmail.com \
    --to=kmpark@infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).