From: "Trilok Soni" <soni.trilok@gmail.com>
To: kmpark@infradead.org
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] ARM: OMAP: Define use internal clock field in MMC configuration
Date: Mon, 28 May 2007 13:54:03 +0530 [thread overview]
Message-ID: <5d5443650705280124i522a005fyd8287c9c5eb2e9ac@mail.gmail.com> (raw)
In-Reply-To: <01ff01c7a0c3$bccee110$e1ac580a@swcenter.sec.samsung.co.kr>
On 5/28/07, Kyungmin Park <kmpark@infradead.org> wrote:
> Hi,
>
> With the recent omap24xx register cleanup, the CONTROL_DEVCONF is only defined
> at arch/arm/mach-omap2/pm.c.
> So define 24XX_CONTROL_DEVCONF and use internal clock field in MMC
> configuration.
> I think it's the proper place to set mmc clock instead of board-specific one.
>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> --
> diff --git a/arch/arm/mach-omap2/board-apollon.c
> b/arch/arm/mach-omap2/board-apollon.c
> index 1276f1f..75c9f3e 100644
> --- a/arch/arm/mach-omap2/board-apollon.c
> +++ b/arch/arm/mach-omap2/board-apollon.c
> @@ -251,6 +251,8 @@ static struct omap_mmc_config apollon_mmc_config __initdata
> = {
> .mmc [0] = {
> .enabled = 1,
> .wire4 = 1,
> + /* Use Interal loop-back in MMC/SDIO Module Input Clock selection */
Typo. s/Interal/Internal
> + .internal_clock = 1,
> .wp_pin = -1,
> .power_pin = -1,
> /* Note: If you want to detect card feature, please assign 37 */
> @@ -311,9 +313,6 @@ static void __init omap_apollon_init(void)
> apollon_flash_init();
> apollon_usb_init();
>
> - /* Use Interal loop-back in MMC/SDIO Module Input Clock selection */
> - CONTROL_DEVCONF |= (1 << 24);
> -
> /*
> * Make sure the serial ports are muxed on at this point.
> * You have to mux them off in device drivers later on
> diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c
> index f8a341b..80d03e2 100644
> --- a/arch/arm/plat-omap/devices.c
> +++ b/arch/arm/plat-omap/devices.c
> @@ -339,6 +339,17 @@ static void __init omap_init_mmc(void)
> omap_cfg_reg(MMC_DAT3);
> }
> }
> + if (mmc->internal_clock) {
> + /*
> + * Use Interal loop-back in MMC/SDIO
> + * Module Input Clock selection
> + */
Typo. s/Interal/Internal
> + if (cpu_is_omap24xx()) {
> + u32 v = omap_readl(OMAP24XX_CONTROL_DEVCONF);
> + v |= (1 << 24);
> + omap_writel(v, OMAP24XX_CONTROL_DEVCONF);
> + }
> + }
> mmc1_conf = *mmc;
> (void) platform_device_register(&mmc_omap_device1);
> }
--
--Trilok Soni
next prev parent reply other threads:[~2007-05-28 8:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-28 1:01 [PATCH] ARM: OMAP: Define use internal clock field in MMC configuration Kyungmin Park
2007-05-28 8:24 ` Trilok Soni [this message]
2007-05-28 8:39 ` [PATCH] ARM: OMAP: Define use internal clock field in MMCconfiguration Kyungmin Park
2007-06-05 10:26 ` Tony Lindgren
2007-06-07 0:12 ` [PATCH] ARM: OMAP: Define use internal clock field inMMCconfiguration Kyungmin Park
2007-06-08 10:28 ` Tony Lindgren
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=5d5443650705280124i522a005fyd8287c9c5eb2e9ac@mail.gmail.com \
--to=soni.trilok@gmail.com \
--cc=kmpark@infradead.org \
--cc=linux-omap-open-source@linux.omap.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