From: Jaehoon Chung <jh80.chung@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V4 5/9] EXYNOS5: DWMMC: API to set mmc clock divisor
Date: Fri, 11 Jan 2013 12:52:19 +0900 [thread overview]
Message-ID: <50EF8C73.8010004@samsung.com> (raw)
In-Reply-To: <CAPnjgZ0=_7j_zMR--0AHjxYNni8=mGE0aAtYUXndjsaSOCJcKQ@mail.gmail.com>
On 01/11/2013 12:35 AM, Simon Glass wrote:
> Hi Amar,
>
> On Fri, Jan 4, 2013 at 1:34 AM, Amar <amarendra.xt@samsung.com> wrote:
>> This API computes the divisor value based on MPLL clock and
>> writes it into the FSYS1 register.
>>
>> Changes from V1:
>> 1)Updated the function exynos5_mmc_set_clk_div() to receive
>> 'device_i'd as input parameter instead of 'index'.
>>
>> Changes from V2:
>> 1)Updation of commit message and resubmition of proper patch set.
>>
>> Changes from V3:
>> 1)Removed the new API exynos5_mmc_set_clk_div() from clock.c,
>> because existing API set_mmc_clk() can be used to set mmc clock.
>>
>> Signed-off-by: Amar <amarendra.xt@samsung.com>
>> ---
>> arch/arm/cpu/armv7/exynos/clock.c | 4 ++--
>> arch/arm/include/asm/arch-exynos/clk.h | 3 +++
>> 2 files changed, 5 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm/cpu/armv7/exynos/clock.c b/arch/arm/cpu/armv7/exynos/clock.c
>> index 973b84e..89574ba 100644
>> --- a/arch/arm/cpu/armv7/exynos/clock.c
>> +++ b/arch/arm/cpu/armv7/exynos/clock.c
>> @@ -490,7 +490,7 @@ static unsigned long exynos4_get_mmc_clk(int dev_index)
>> (struct exynos4_clock *)samsung_get_base_clock();
>> unsigned long uclk, sclk;
>> unsigned int sel, ratio, pre_ratio;
>> - int shift;
>> + int shift = 0;
>
> Is this fixing a warning?
Maybe..fix the compiler warning..
>
>>
>> sel = readl(&clk->src_fsys);
>> sel = (sel >> (dev_index << 2)) & 0xf;
>> @@ -539,7 +539,7 @@ static unsigned long exynos5_get_mmc_clk(int dev_index)
>> (struct exynos5_clock *)samsung_get_base_clock();
>> unsigned long uclk, sclk;
>> unsigned int sel, ratio, pre_ratio;
>> - int shift;
>> + int shift = 0;
>>
>> sel = readl(&clk->src_fsys);
>> sel = (sel >> (dev_index << 2)) & 0xf;
>> diff --git a/arch/arm/include/asm/arch-exynos/clk.h b/arch/arm/include/asm/arch-exynos/clk.h
>> index 1935b0b..a4d5b4e 100644
>> --- a/arch/arm/include/asm/arch-exynos/clk.h
>> +++ b/arch/arm/include/asm/arch-exynos/clk.h
>> @@ -29,6 +29,9 @@
>> #define VPLL 4
>> #define BPLL 5
>>
>> +#define FSYS1_MMC0_DIV_MASK 0xff0f
>> +#define FSYS1_MMC0_DIV_VAL 0x0701
>
> What is this used for? I don't see it in this patch.
>
> Overall it is not clear what this patch is for.
This define didn't need. That value is not static value, isn't?
Best Regards,
Jaehoon Chung
>
>> +
>> unsigned long get_pll_clk(int pllreg);
>> unsigned long get_arm_clk(void);
>> unsigned long get_i2c_clk(void);
>> --
>> 1.8.0
>>
>
> Regards,
> Simon
>
next prev parent reply other threads:[~2013-01-11 3:52 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-04 9:34 [U-Boot] [PATCH V4 0/9] EXYNOS5: Enable DWMMC, add FDT support for DWMMC and Amar
2013-01-04 9:34 ` [U-Boot] [PATCH V4 1/9] FDT: Add compatible string for DWMMC Amar
2013-01-04 9:34 ` [U-Boot] [PATCH V4 2/9] EXYNOS5: FDT: Add DWMMC device node data Amar
2013-01-10 15:21 ` Simon Glass
2013-01-15 9:11 ` Amarendra Reddy
2013-01-04 9:34 ` [U-Boot] [PATCH V4 3/9] DWMMC: Initialise dwmci and resolve EMMC read write issues Amar
2013-01-10 15:26 ` Simon Glass
2013-01-11 4:01 ` Jaehoon Chung
2013-01-11 5:43 ` Simon Glass
2013-01-15 8:26 ` Amarendra Reddy
2013-01-04 9:34 ` [U-Boot] [PATCH V4 4/9] EXYNOS5: DWMMC: Added FDT support for DWMMC Amar
2013-01-10 15:33 ` Simon Glass
2013-01-11 4:12 ` Jaehoon Chung
2013-01-11 5:44 ` Simon Glass
2013-01-11 13:06 ` Amarendra Reddy
2013-01-22 5:23 ` Joonyoung Shim
2013-01-22 6:41 ` Amarendra Reddy
2013-01-04 9:34 ` [U-Boot] [PATCH V4 5/9] EXYNOS5: DWMMC: API to set mmc clock divisor Amar
2013-01-10 15:35 ` Simon Glass
2013-01-11 3:52 ` Jaehoon Chung [this message]
2013-01-11 13:23 ` Amarendra Reddy
2013-01-11 14:28 ` Simon Glass
2013-01-04 9:34 ` [U-Boot] [PATCH V4 6/9] SMDK5250: Initialise and Enable DWMMC, support FDT and non-FDT Amar
2013-01-10 16:57 ` Simon Glass
2013-01-11 17:58 ` Amarendra Reddy
2013-01-12 16:41 ` Simon Glass
2013-01-15 9:16 ` Amarendra Reddy
2013-01-04 9:34 ` [U-Boot] [PATCH V4 7/9] MMC: APIs to support resize of EMMC boot partition Amar
2013-01-04 10:27 ` Jaehoon Chung
2013-01-07 4:19 ` Amarendra Reddy
2013-01-07 4:34 ` Jaehoon Chung
2013-01-07 5:54 ` Amarendra Reddy
2013-01-07 9:23 ` Jaehoon Chung
2013-01-04 9:34 ` [U-Boot] [PATCH V4 8/9] SMDK5250: Enable EMMC booting Amar
2013-01-10 16:39 ` Simon Glass
2013-01-15 9:14 ` Amarendra Reddy
2013-01-04 9:34 ` [U-Boot] [PATCH V4 9/9] COMMON: MMC: Command to support EMMC booting and to Amar
2013-01-10 16:46 ` Simon Glass
2013-01-11 3:54 ` Jaehoon Chung
2013-01-11 5:41 ` Simon Glass
2013-01-11 13:50 ` Amarendra Reddy
2013-01-11 14:31 ` Simon Glass
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=50EF8C73.8010004@samsung.com \
--to=jh80.chung@samsung.com \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.