diff mbox

[U-Boot,v3,2/6] arm: atmel: sama5d3: correct the error define of DIV

Message ID 1383715757-20170-3-git-send-email-voice.shen@atmel.com
State Superseded, archived
Delegated to: Andreas Bießmann
Headers show

Commit Message

Bo Shen Nov. 6, 2013, 5:29 a.m. UTC
Correct the error define of DIV.

Signed-off-by: Bo Shen <voice.shen@atmel.com>

---
Changes in v3:
  - None

Changes in v2:
  - None

 arch/arm/include/asm/arch-at91/at91_pmc.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Andreas Bießmann Nov. 13, 2013, 12:20 p.m. UTC | #1
Hi Bo,

On 11/06/2013 06:29 AM, Bo Shen wrote:
> Correct the error define of DIV.
> 
> Signed-off-by: Bo Shen <voice.shen@atmel.com>
> 
> ---
> Changes in v3:
>   - None
> 
> Changes in v2:
>   - None
> 
>  arch/arm/include/asm/arch-at91/at91_pmc.h |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/include/asm/arch-at91/at91_pmc.h b/arch/arm/include/asm/arch-at91/at91_pmc.h
> index 003920c..ed5462c 100644
> --- a/arch/arm/include/asm/arch-at91/at91_pmc.h
> +++ b/arch/arm/include/asm/arch-at91/at91_pmc.h
> @@ -124,8 +124,8 @@ typedef struct at91_pmc {
>  #define AT91_PMC_MCKR_MDIV_MASK		0x00000300
>  #endif
>  
> -#define AT91_PMC_MCKR_PLLADIV_1		0x00001000
> -#define AT91_PMC_MCKR_PLLADIV_2		0x00002000
> +#define AT91_PMC_MCKR_PLLADIV_1		0x00000000
> +#define AT91_PMC_MCKR_PLLADIV_2		0x00001000

this change will touch pm9261 board. I dunno if your change is correct
for that board. I also wonder why one should set bit position 13 in MCKR
... I can't find any source what that bit could be. However mature
documentation for sam9261 (which is the SoC on pm9261) doesn't name bit
position 12 either.

So I'm fine with your change, but please fix the pm9261 board also (use
the PLLADIV_2 define).

>  
>  #define AT91_PMC_IXR_MOSCS		0x00000001
>  #define AT91_PMC_IXR_LOCKA		0x00000002
> 

Best regards

Andreas Bießmann
Bo Shen Nov. 14, 2013, 6:31 a.m. UTC | #2
Hi Andreas,

On 11/13/2013 08:20 PM, Andreas Bießmann wrote:
> Hi Bo,
>
> On 11/06/2013 06:29 AM, Bo Shen wrote:
>> Correct the error define of DIV.
>>
>> Signed-off-by: Bo Shen <voice.shen@atmel.com>
>>
>> ---
>> Changes in v3:
>>    - None
>>
>> Changes in v2:
>>    - None
>>
>>   arch/arm/include/asm/arch-at91/at91_pmc.h |    4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm/include/asm/arch-at91/at91_pmc.h b/arch/arm/include/asm/arch-at91/at91_pmc.h
>> index 003920c..ed5462c 100644
>> --- a/arch/arm/include/asm/arch-at91/at91_pmc.h
>> +++ b/arch/arm/include/asm/arch-at91/at91_pmc.h
>> @@ -124,8 +124,8 @@ typedef struct at91_pmc {
>>   #define AT91_PMC_MCKR_MDIV_MASK		0x00000300
>>   #endif
>>
>> -#define AT91_PMC_MCKR_PLLADIV_1		0x00001000
>> -#define AT91_PMC_MCKR_PLLADIV_2		0x00002000
>> +#define AT91_PMC_MCKR_PLLADIV_1		0x00000000
>> +#define AT91_PMC_MCKR_PLLADIV_2		0x00001000
>
> this change will touch pm9261 board. I dunno if your change is correct
> for that board. I also wonder why one should set bit position 13 in MCKR
> ... I can't find any source what that bit could be. However mature
> documentation for sam9261 (which is the SoC on pm9261) doesn't name bit
> position 12 either.
>
> So I'm fine with your change, but please fix the pm9261 board also (use
> the PLLADIV_2 define).

Ok, thanks.

>>
>>   #define AT91_PMC_IXR_MOSCS		0x00000001
>>   #define AT91_PMC_IXR_LOCKA		0x00000002
>>
>
> Best regards
>
> Andreas Bießmann
>

Best Regards,
Bo Shen
diff mbox

Patch

diff --git a/arch/arm/include/asm/arch-at91/at91_pmc.h b/arch/arm/include/asm/arch-at91/at91_pmc.h
index 003920c..ed5462c 100644
--- a/arch/arm/include/asm/arch-at91/at91_pmc.h
+++ b/arch/arm/include/asm/arch-at91/at91_pmc.h
@@ -124,8 +124,8 @@  typedef struct at91_pmc {
 #define AT91_PMC_MCKR_MDIV_MASK		0x00000300
 #endif
 
-#define AT91_PMC_MCKR_PLLADIV_1		0x00001000
-#define AT91_PMC_MCKR_PLLADIV_2		0x00002000
+#define AT91_PMC_MCKR_PLLADIV_1		0x00000000
+#define AT91_PMC_MCKR_PLLADIV_2		0x00001000
 
 #define AT91_PMC_IXR_MOSCS		0x00000001
 #define AT91_PMC_IXR_LOCKA		0x00000002