diff mbox series

[U-Boot] ARM: mvebu: add SAR frequency values for 1.8/2.0GHz

Message ID 20170905050326.932-1-judge.packham@gmail.com
State Accepted
Commit 0a91e1cce4497a50af00dc134af6bc19ec87fe34
Headers show
Series [U-Boot] ARM: mvebu: add SAR frequency values for 1.8/2.0GHz | expand

Commit Message

Chris Packham Sept. 5, 2017, 5:03 a.m. UTC
The Armada-38x has 1.8GHz and 2.0GHz variants. Add entries for these
variants to the sar_freq_tab.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
---

 arch/arm/mach-mvebu/cpu.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

Comments

Chris Packham Sept. 25, 2017, 10:21 p.m. UTC | #1
On Tue, Sep 5, 2017 at 5:03 PM, Chris Packham <judge.packham@gmail.com> wrote:
> The Armada-38x has 1.8GHz and 2.0GHz variants. Add entries for these
> variants to the sar_freq_tab.
>
> Signed-off-by: Chris Packham <judge.packham@gmail.com>
> ---
>
>  arch/arm/mach-mvebu/cpu.c | 16 +++++++++-------
>  1 file changed, 9 insertions(+), 7 deletions(-)
>
> diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c
> index f7f83bfa3655..74a63dd6560b 100644
> --- a/arch/arm/mach-mvebu/cpu.c
> +++ b/arch/arm/mach-mvebu/cpu.c
> @@ -112,13 +112,15 @@ static const struct sar_freq_modes sar_freq_tab[] = {
>  #elif defined(CONFIG_ARMADA_38X)
>  /* SAR frequency values for Armada 38x */
>  static const struct sar_freq_modes sar_freq_tab[] = {
> -       {  0x0,  0x0,  666, 333, 333 },
> -       {  0x2,  0x0,  800, 400, 400 },
> -       {  0x4,  0x0, 1066, 533, 533 },
> -       {  0x6,  0x0, 1200, 600, 600 },
> -       {  0x8,  0x0, 1332, 666, 666 },
> -       {  0xc,  0x0, 1600, 800, 800 },
> -       { 0xff, 0xff,    0,   0,   0 }  /* 0xff marks end of array */
> +       {  0x0,  0x0,  666,  333, 333 },
> +       {  0x2,  0x0,  800,  400, 400 },
> +       {  0x4,  0x0, 1066,  533, 533 },
> +       {  0x6,  0x0, 1200,  600, 600 },
> +       {  0x8,  0x0, 1332,  666, 666 },
> +       {  0xc,  0x0, 1600,  800, 800 },
> +       { 0x10,  0x0, 1866,  933, 933 },
> +       { 0x13,  0x0, 2000, 1000, 933 },
> +       { 0xff, 0xff,    0,    0,   0 } /* 0xff marks end of array */
>  };
>  #else
>  /* SAR frequency values for Armada XP */
> --
> 2.14.1
>

Ping?
Stefan Roese Sept. 26, 2017, 4:46 a.m. UTC | #2
Hi Chris,

On 26.09.2017 00:21, Chris Packham wrote:
> On Tue, Sep 5, 2017 at 5:03 PM, Chris Packham <judge.packham@gmail.com> wrote:
>> The Armada-38x has 1.8GHz and 2.0GHz variants. Add entries for these
>> variants to the sar_freq_tab.
>>
>> Signed-off-by: Chris Packham <judge.packham@gmail.com>
>> ---
>>
>>   arch/arm/mach-mvebu/cpu.c | 16 +++++++++-------
>>   1 file changed, 9 insertions(+), 7 deletions(-)
>>
>> diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c
>> index f7f83bfa3655..74a63dd6560b 100644
>> --- a/arch/arm/mach-mvebu/cpu.c
>> +++ b/arch/arm/mach-mvebu/cpu.c
>> @@ -112,13 +112,15 @@ static const struct sar_freq_modes sar_freq_tab[] = {
>>   #elif defined(CONFIG_ARMADA_38X)
>>   /* SAR frequency values for Armada 38x */
>>   static const struct sar_freq_modes sar_freq_tab[] = {
>> -       {  0x0,  0x0,  666, 333, 333 },
>> -       {  0x2,  0x0,  800, 400, 400 },
>> -       {  0x4,  0x0, 1066, 533, 533 },
>> -       {  0x6,  0x0, 1200, 600, 600 },
>> -       {  0x8,  0x0, 1332, 666, 666 },
>> -       {  0xc,  0x0, 1600, 800, 800 },
>> -       { 0xff, 0xff,    0,   0,   0 }  /* 0xff marks end of array */
>> +       {  0x0,  0x0,  666,  333, 333 },
>> +       {  0x2,  0x0,  800,  400, 400 },
>> +       {  0x4,  0x0, 1066,  533, 533 },
>> +       {  0x6,  0x0, 1200,  600, 600 },
>> +       {  0x8,  0x0, 1332,  666, 666 },
>> +       {  0xc,  0x0, 1600,  800, 800 },
>> +       { 0x10,  0x0, 1866,  933, 933 },
>> +       { 0x13,  0x0, 2000, 1000, 933 },
>> +       { 0xff, 0xff,    0,    0,   0 } /* 0xff marks end of array */
>>   };
>>   #else
>>   /* SAR frequency values for Armada XP */
>> --
>> 2.14.1
>>
> 
> Ping?

I've been waiting for some patch updates, which have broken
compilation for MVEBU boards. I'll pull hopefully today.

Sorry for the delay.

Thanks,
Stefan
Stefan Roese Sept. 26, 2017, 8:47 a.m. UTC | #3
On 05.09.2017 07:03, Chris Packham wrote:
> The Armada-38x has 1.8GHz and 2.0GHz variants. Add entries for these
> variants to the sar_freq_tab.
> 
> Signed-off-by: Chris Packham <judge.packham@gmail.com>

Applied to u-boot-marvell/master.

Thanks,
Stefan
diff mbox series

Patch

diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c
index f7f83bfa3655..74a63dd6560b 100644
--- a/arch/arm/mach-mvebu/cpu.c
+++ b/arch/arm/mach-mvebu/cpu.c
@@ -112,13 +112,15 @@  static const struct sar_freq_modes sar_freq_tab[] = {
 #elif defined(CONFIG_ARMADA_38X)
 /* SAR frequency values for Armada 38x */
 static const struct sar_freq_modes sar_freq_tab[] = {
-	{  0x0,  0x0,  666, 333, 333 },
-	{  0x2,  0x0,  800, 400, 400 },
-	{  0x4,  0x0, 1066, 533, 533 },
-	{  0x6,  0x0, 1200, 600, 600 },
-	{  0x8,  0x0, 1332, 666, 666 },
-	{  0xc,  0x0, 1600, 800, 800 },
-	{ 0xff, 0xff,    0,   0,   0 }	/* 0xff marks end of array */
+	{  0x0,  0x0,  666,  333, 333 },
+	{  0x2,  0x0,  800,  400, 400 },
+	{  0x4,  0x0, 1066,  533, 533 },
+	{  0x6,  0x0, 1200,  600, 600 },
+	{  0x8,  0x0, 1332,  666, 666 },
+	{  0xc,  0x0, 1600,  800, 800 },
+	{ 0x10,  0x0, 1866,  933, 933 },
+	{ 0x13,  0x0, 2000, 1000, 933 },
+	{ 0xff, 0xff,    0,    0,   0 }	/* 0xff marks end of array */
 };
 #else
 /* SAR frequency values for Armada XP */