diff mbox

[U-Boot,V2] Resend: i.MX6: add enable_sata_clock()

Message ID 4FA6AF1B.2020307@denx.de
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Commit Message

Stefano Babic May 6, 2012, 5:04 p.m. UTC
On 28/04/2012 17:29, Eric Nelson wrote:

> Hi Dirk,
> 
> I tried to address this global/non-const by making it explicitly public,
> but Stefano nacked the patch:
>     http://patchwork.ozlabs.org/patch/144712/
> 
> As it stands, the compiler won't generate an external reference for the
> local above, so it should be good.

It seems ok. However, this conflicts with

	imx-common: Factor out get_ahb_clk()

sent by Fabio Estevam.

Reason is only the modified structure name : I made these changes to
your patch:

Change is trivial, but please take a look.

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Comments

Eric Nelson May 6, 2012, 5:42 p.m. UTC | #1
Hi Stefano,

On 05/06/2012 10:04 AM, Stefano Babic wrote:
> On 28/04/2012 17:29, Eric Nelson wrote:
>
>> Hi Dirk,
>>
>> I tried to address this global/non-const by making it explicitly public,
>> but Stefano nacked the patch:
>>      http://patchwork.ozlabs.org/patch/144712/
>>
>> As it stands, the compiler won't generate an external reference for the
>> local above, so it should be good.
>
> It seems ok. However, this conflicts with
>
> 	imx-common: Factor out get_ahb_clk()
>
> sent by Fabio Estevam.
>
> Reason is only the modified structure name : I made these changes to
> your patch:
>
> diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
> index 3255771..52d5dc4 100644
> --- a/arch/arm/cpu/armv7/mx6/clock.c
> +++ b/arch/arm/cpu/armv7/mx6/clock.c
> @@ -296,8 +296,8 @@ int enable_sata_clock(void)
>   {
>          u32 reg = 0;
>          s32 timeout = 100000;
> -       struct imx_ccm_reg *const imx_ccm
> -               = (struct imx_ccm_reg *) CCM_BASE_ADDR;
> +       struct mxc_ccm_reg *const imx_ccm
> +               = (struct mxc_ccm_reg *) CCM_BASE_ADDR;
>
>          /* Enable sata clock */
>
> Change is trivial, but please take a look.
>

This is clearly fine, but it has me laughing because I never
remember what 'mxc' stands for.

Regards,


Eric
Fabio Estevam May 6, 2012, 6:08 p.m. UTC | #2
Hi Eric,

On Sun, May 6, 2012 at 2:42 PM, Eric Nelson
<eric.nelson@boundarydevices.com> wrote:

> This is clearly fine, but it has me laughing because I never
> remember what 'mxc' stands for.

Yes, this can cause confunsion. The 'mxc' term is frequently used in
the kernel/u-boot  and has the same meaning as 'imx'.

Regards,

Fabio Estevam
Eric Nelson May 6, 2012, 6:33 p.m. UTC | #3
On 05/06/2012 11:08 AM, Fabio Estevam wrote:
> Hi Eric,
>
> On Sun, May 6, 2012 at 2:42 PM, Eric Nelson
> <eric.nelson@boundarydevices.com>  wrote:
>
>> This is clearly fine, but it has me laughing because I never
>> remember what 'mxc' stands for.
>
> Yes, this can cause confunsion. The 'mxc' term is frequently used in
> the kernel/u-boot  and has the same meaning as 'imx'.
>

Mobile Extreme Confusion? :)
diff mbox

Patch

diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
index 3255771..52d5dc4 100644
--- a/arch/arm/cpu/armv7/mx6/clock.c
+++ b/arch/arm/cpu/armv7/mx6/clock.c
@@ -296,8 +296,8 @@  int enable_sata_clock(void)
 {
        u32 reg = 0;
        s32 timeout = 100000;
-       struct imx_ccm_reg *const imx_ccm
-               = (struct imx_ccm_reg *) CCM_BASE_ADDR;
+       struct mxc_ccm_reg *const imx_ccm
+               = (struct mxc_ccm_reg *) CCM_BASE_ADDR;

        /* Enable sata clock */