linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kgene.kim@samsung.com (Kukjin Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: EXYNOS4: Adds Samsung NURI board support
Date: Mon, 28 Feb 2011 16:42:31 +0900	[thread overview]
Message-ID: <002301cbd71b$1969bd00$4c3d3700$%kim@samsung.com> (raw)
In-Reply-To: <4D676BB8.9040803@samsung.com>

Minkyu Kang wrote:
> 
> This patch adds Samsung NURI board support.
> 
> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> This patch is base on next-exynos4 branch at kgene tree.
> 
>  arch/arm/configs/exynos4_defconfig |    1 +
>  arch/arm/mach-exynos4/Kconfig      |   15 +++
>  arch/arm/mach-exynos4/Makefile     |    1 +
>  arch/arm/mach-exynos4/mach-nuri.c  |  233
> ++++++++++++++++++++++++++++++++++++
>  4 files changed, 250 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/mach-exynos4/mach-nuri.c
> 

(snip)

> +config MACH_NURI
> +	bool "Mobile NURI Board"
> +	select CPU_EXYNOS4210
> +	select S3C_DEV_WDT
> +	select S3C_DEV_HSMMC
> +	select S3C_DEV_HSMMC2
> +	select S3C_DEV_HSMMC3
> +	select S3C_DEV_I2C1
> +	select S3C_DEV_I2C5
> +	select EXYNOS4_SETUP_I2C1
> +	select EXYNOS4_SETUP_I2C5
> +	select EXYNOS4_SETUP_SDHCI
> +	help
> +	  Machine support for Samsung Mobile NURI Board.
> +

(snip)

> +enum fixed_regulator_id {
> +	FIXED_REG_ID_MMC = 0,

	FIXED_REG_ID_MMC,

(snip)

> +static struct platform_device emmc_fixed_voltage = {
> +	.name			= "reg-fixed-voltage",
> +	.id			= FIXED_REG_ID_MMC,

Is there any reason to use FIXED_REG_ID_MMC instead directly id 0?

(snip)

> +static struct platform_device *nuri_devices[] __initdata = {
> +	/* Samsung Platform Devices */
> +	&emmc_fixed_voltage,
> +	&s3c_device_hsmmc0,
> +	&s3c_device_hsmmc2,
> +	&s3c_device_hsmmc3,
> +#ifdef CONFIG_S3C2410_WATCHDOG
> +	&s3c_device_wdt,
> +#endif

Basically no need to add #ifdef here.
Because "s3c_device_wdt" depends on CONFIG_S3C_DEV_WDT and you already
selected it in Kconfig.

Of course, CONFIG_S3C2410_WATCHDOG is another selection for watchdog driver.

I'm sorting it out like the relation of platform device and regarding device
driver.

(snip)

Others, looks ok to me.

Thanks.

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

  reply	other threads:[~2011-02-28  7:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-25  8:43 [PATCH] ARM: EXYNOS4: Adds Samsung NURI board support Minkyu Kang
2011-02-28  7:42 ` Kukjin Kim [this message]
2011-02-28  8:14   ` Minkyu Kang
2011-02-28  8:26     ` Kukjin Kim
2011-02-28 11:20       ` Kukjin Kim
2011-03-04  7:28       ` Kukjin Kim

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='002301cbd71b$1969bd00$4c3d3700$%kim@samsung.com' \
    --to=kgene.kim@samsung.com \
    --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).