mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v1] MIPS: add 74Kc info
@ 2017-07-27  5:59 Oleksij Rempel
  2017-07-27  7:39 ` Sam Ravnborg
  0 siblings, 1 reply; 3+ messages in thread
From: Oleksij Rempel @ 2017-07-27  5:59 UTC (permalink / raw)
  To: l.stach; +Cc: Oleksij Rempel, barebox

This patch is preparation for SoC QCA AR9344

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 arch/mips/include/asm/cpu.h | 2 ++
 arch/mips/lib/cpu-probe.c   | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/arch/mips/include/asm/cpu.h b/arch/mips/include/asm/cpu.h
index 572cabba34..e0bb78ea61 100644
--- a/arch/mips/include/asm/cpu.h
+++ b/arch/mips/include/asm/cpu.h
@@ -51,6 +51,7 @@
 
 #define PRID_IMP_24K		0x9300
 #define PRID_IMP_24KE		0x9600
+#define PRID_IMP_74K		0x9700
 
 /*
  * These are the PRID's for when 23:16 == PRID_COMP_BROADCOM
@@ -105,6 +106,7 @@ enum cpu_type_enum {
 	 * MIPS32 class processors
 	 */
 	CPU_24K,
+	CPU_74K,
 	CPU_BMIPS3300,
 	CPU_JZRISC,
 	CPU_LOONGSON1,
diff --git a/arch/mips/lib/cpu-probe.c b/arch/mips/lib/cpu-probe.c
index 71dbaf6382..b5d63db189 100644
--- a/arch/mips/lib/cpu-probe.c
+++ b/arch/mips/lib/cpu-probe.c
@@ -106,6 +106,10 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c)
 		c->cputype = CPU_24K;
 		__cpu_name = "MIPS 24Kc";
 		break;
+	case PRID_IMP_74K:
+		c->cputype = CPU_74K;
+		__cpu_name = "MIPS 74Kc";
+		break;
 	}
 }
 
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] MIPS: add 74Kc info
  2017-07-27  5:59 [PATCH v1] MIPS: add 74Kc info Oleksij Rempel
@ 2017-07-27  7:39 ` Sam Ravnborg
  2017-07-27  7:46   ` Oleksij Rempel
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2017-07-27  7:39 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: barebox

Hi Oleksij.

Nitpick...
It would be nice to have the subject indicating this is a MIPS CPU.
There may be a few people that do not recognize that 74Kc is
a MIPS CPU (me at least).

	Sam

On Thu, Jul 27, 2017 at 07:59:08AM +0200, Oleksij Rempel wrote:
> This patch is preparation for SoC QCA AR9344
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  arch/mips/include/asm/cpu.h | 2 ++
>  arch/mips/lib/cpu-probe.c   | 4 ++++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/arch/mips/include/asm/cpu.h b/arch/mips/include/asm/cpu.h
> index 572cabba34..e0bb78ea61 100644
> --- a/arch/mips/include/asm/cpu.h
> +++ b/arch/mips/include/asm/cpu.h
> @@ -51,6 +51,7 @@
>  
>  #define PRID_IMP_24K		0x9300
>  #define PRID_IMP_24KE		0x9600
> +#define PRID_IMP_74K		0x9700
>  
>  /*
>   * These are the PRID's for when 23:16 == PRID_COMP_BROADCOM
> @@ -105,6 +106,7 @@ enum cpu_type_enum {
>  	 * MIPS32 class processors
>  	 */
>  	CPU_24K,
> +	CPU_74K,
>  	CPU_BMIPS3300,
>  	CPU_JZRISC,
>  	CPU_LOONGSON1,
> diff --git a/arch/mips/lib/cpu-probe.c b/arch/mips/lib/cpu-probe.c
> index 71dbaf6382..b5d63db189 100644
> --- a/arch/mips/lib/cpu-probe.c
> +++ b/arch/mips/lib/cpu-probe.c
> @@ -106,6 +106,10 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c)
>  		c->cputype = CPU_24K;
>  		__cpu_name = "MIPS 24Kc";
>  		break;
> +	case PRID_IMP_74K:
> +		c->cputype = CPU_74K;
> +		__cpu_name = "MIPS 74Kc";
> +		break;
>  	}
>  }
>  
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] MIPS: add 74Kc info
  2017-07-27  7:39 ` Sam Ravnborg
@ 2017-07-27  7:46   ` Oleksij Rempel
  0 siblings, 0 replies; 3+ messages in thread
From: Oleksij Rempel @ 2017-07-27  7:46 UTC (permalink / raw)
  To: Sam Ravnborg, Oleksij Rempel; +Cc: barebox

Hi Sam,

i assumed, every one who maintains MIPS arch, knows it :)

ok. I'll keep it in mind.

On 27.07.2017 09:39, Sam Ravnborg wrote:
> Hi Oleksij.
>
> Nitpick...
> It would be nice to have the subject indicating this is a MIPS CPU.
> There may be a few people that do not recognize that 74Kc is
> a MIPS CPU (me at least).
>
> 	Sam
>
> On Thu, Jul 27, 2017 at 07:59:08AM +0200, Oleksij Rempel wrote:
>> This patch is preparation for SoC QCA AR9344
>>
>> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
>> ---
>>  arch/mips/include/asm/cpu.h | 2 ++
>>  arch/mips/lib/cpu-probe.c   | 4 ++++
>>  2 files changed, 6 insertions(+)
>>
>> diff --git a/arch/mips/include/asm/cpu.h b/arch/mips/include/asm/cpu.h
>> index 572cabba34..e0bb78ea61 100644
>> --- a/arch/mips/include/asm/cpu.h
>> +++ b/arch/mips/include/asm/cpu.h
>> @@ -51,6 +51,7 @@
>>
>>  #define PRID_IMP_24K		0x9300
>>  #define PRID_IMP_24KE		0x9600
>> +#define PRID_IMP_74K		0x9700
>>
>>  /*
>>   * These are the PRID's for when 23:16 == PRID_COMP_BROADCOM
>> @@ -105,6 +106,7 @@ enum cpu_type_enum {
>>  	 * MIPS32 class processors
>>  	 */
>>  	CPU_24K,
>> +	CPU_74K,
>>  	CPU_BMIPS3300,
>>  	CPU_JZRISC,
>>  	CPU_LOONGSON1,
>> diff --git a/arch/mips/lib/cpu-probe.c b/arch/mips/lib/cpu-probe.c
>> index 71dbaf6382..b5d63db189 100644
>> --- a/arch/mips/lib/cpu-probe.c
>> +++ b/arch/mips/lib/cpu-probe.c
>> @@ -106,6 +106,10 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c)
>>  		c->cputype = CPU_24K;
>>  		__cpu_name = "MIPS 24Kc";
>>  		break;
>> +	case PRID_IMP_74K:
>> +		c->cputype = CPU_74K;
>> +		__cpu_name = "MIPS 74Kc";
>> +		break;
>>  	}
>>  }
>>
>> --
>> 2.11.0
>>
>>
>> _______________________________________________
>> barebox mailing list
>> barebox@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/barebox
>

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-27  7:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-27  5:59 [PATCH v1] MIPS: add 74Kc info Oleksij Rempel
2017-07-27  7:39 ` Sam Ravnborg
2017-07-27  7:46   ` Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox