public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 3/5] i.MX6: Add convenience macros cpu_type(rev) and is_cpu_type(cpu)
@ 2013-08-29 17:57 Eric Nelson
  2013-08-29 21:02 ` Stefano Babic
  2013-08-31 16:05 ` Stefano Babic
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Nelson @ 2013-08-29 17:57 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
 arch/arm/include/asm/arch-mx6/sys_proto.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/include/asm/arch-mx6/sys_proto.h b/arch/arm/include/asm/arch-mx6/sys_proto.h
index bfdfd29..8c21364 100644
--- a/arch/arm/include/asm/arch-mx6/sys_proto.h
+++ b/arch/arm/include/asm/arch-mx6/sys_proto.h
@@ -19,6 +19,13 @@
 
 #define is_soc_rev(rev)	((get_cpu_rev() & 0xFF) - rev)
 u32 get_cpu_rev(void);
+
+/* returns MXC_CPU_ value */
+#define cpu_type(rev) (((rev) >> 12)&0xff)
+
+/* use with MXC_CPU_ constants */
+#define is_cpu_type(cpu) (cpu_type(get_cpu_rev()) == cpu)
+
 const char *get_imx_type(u32 imxtype);
 unsigned imx_ddr_size(void);
 
-- 
1.8.1.2

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

* [U-Boot] [PATCH 3/5] i.MX6: Add convenience macros cpu_type(rev) and is_cpu_type(cpu)
  2013-08-29 17:57 [U-Boot] [PATCH 3/5] i.MX6: Add convenience macros cpu_type(rev) and is_cpu_type(cpu) Eric Nelson
@ 2013-08-29 21:02 ` Stefano Babic
  2013-08-29 21:09   ` Eric Nelson
  2013-08-31 16:05 ` Stefano Babic
  1 sibling, 1 reply; 5+ messages in thread
From: Stefano Babic @ 2013-08-29 21:02 UTC (permalink / raw)
  To: u-boot

Hi Eric,

Am 29/08/2013 19:57, schrieb Eric Nelson:
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
> ---
>  arch/arm/include/asm/arch-mx6/sys_proto.h | 7 +++++++
>  1 file changed, 7 insertions(+)
> 

Patch is marked as 3/5 in subject - is it part of a patchset ?

> diff --git a/arch/arm/include/asm/arch-mx6/sys_proto.h b/arch/arm/include/asm/arch-mx6/sys_proto.h
> index bfdfd29..8c21364 100644
> --- a/arch/arm/include/asm/arch-mx6/sys_proto.h
> +++ b/arch/arm/include/asm/arch-mx6/sys_proto.h
> @@ -19,6 +19,13 @@
>  
>  #define is_soc_rev(rev)	((get_cpu_rev() & 0xFF) - rev)
>  u32 get_cpu_rev(void);
> +
> +/* returns MXC_CPU_ value */
> +#define cpu_type(rev) (((rev) >> 12)&0xff)
> +
> +/* use with MXC_CPU_ constants */
> +#define is_cpu_type(cpu) (cpu_type(get_cpu_rev()) == cpu)
> +
>  const char *get_imx_type(u32 imxtype);
>  unsigned imx_ddr_size(void);
>  
> 

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

* [U-Boot] [PATCH 3/5] i.MX6: Add convenience macros cpu_type(rev) and is_cpu_type(cpu)
  2013-08-29 21:02 ` Stefano Babic
@ 2013-08-29 21:09   ` Eric Nelson
  2013-08-30  5:22     ` Stefano Babic
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Nelson @ 2013-08-29 21:09 UTC (permalink / raw)
  To: u-boot

Hi Stefano,

On 08/29/2013 02:02 PM, Stefano Babic wrote:
> Hi Eric,
>
> Am 29/08/2013 19:57, schrieb Eric Nelson:
>> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
>> ---
>>   arch/arm/include/asm/arch-mx6/sys_proto.h | 7 +++++++
>>   1 file changed, 7 insertions(+)
>>
>
> Patch is marked as 3/5 in subject - is it part of a patchset ?
>

No. I'm just patch-challenged today.

I also forwarded a cover letter for the two patches changing
the ANATOP_PFD macros without proper heading.

Let me know if you'd like me to re-send.

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

* [U-Boot] [PATCH 3/5] i.MX6: Add convenience macros cpu_type(rev) and is_cpu_type(cpu)
  2013-08-29 21:09   ` Eric Nelson
@ 2013-08-30  5:22     ` Stefano Babic
  0 siblings, 0 replies; 5+ messages in thread
From: Stefano Babic @ 2013-08-30  5:22 UTC (permalink / raw)
  To: u-boot

On 29/08/2013 23:09, Eric Nelson wrote:
> Hi Stefano,
> 
> On 08/29/2013 02:02 PM, Stefano Babic wrote:
>> Hi Eric,
>>
>> Am 29/08/2013 19:57, schrieb Eric Nelson:
>>> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
>>> ---
>>>   arch/arm/include/asm/arch-mx6/sys_proto.h | 7 +++++++
>>>   1 file changed, 7 insertions(+)
>>>
>>
>> Patch is marked as 3/5 in subject - is it part of a patchset ?
>>
> 
> No. I'm just patch-challenged today.
> 

;-)

> I also forwarded a cover letter for the two patches changing
> the ANATOP_PFD macros without proper heading.
> 
> Let me know if you'd like me to re-send.
> 

No problem, you do not need to resend it.

Regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

* [U-Boot] [PATCH 3/5] i.MX6: Add convenience macros cpu_type(rev) and is_cpu_type(cpu)
  2013-08-29 17:57 [U-Boot] [PATCH 3/5] i.MX6: Add convenience macros cpu_type(rev) and is_cpu_type(cpu) Eric Nelson
  2013-08-29 21:02 ` Stefano Babic
@ 2013-08-31 16:05 ` Stefano Babic
  1 sibling, 0 replies; 5+ messages in thread
From: Stefano Babic @ 2013-08-31 16:05 UTC (permalink / raw)
  To: u-boot

On 29/08/2013 19:57, Eric Nelson wrote:
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
> ---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

end of thread, other threads:[~2013-08-31 16:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-29 17:57 [U-Boot] [PATCH 3/5] i.MX6: Add convenience macros cpu_type(rev) and is_cpu_type(cpu) Eric Nelson
2013-08-29 21:02 ` Stefano Babic
2013-08-29 21:09   ` Eric Nelson
2013-08-30  5:22     ` Stefano Babic
2013-08-31 16:05 ` Stefano Babic

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