public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] nios2: add 64 bits swab support in asm-nios2/byteorder.h
@ 2010-03-27  4:40 Thomas Chou
  2010-04-17 15:10 ` [U-Boot] [PATCH v2] nios2: add 64 bits swab support Thomas Chou
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Chou @ 2010-03-27  4:40 UTC (permalink / raw)
  To: u-boot

Most 32 bits processors use this.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
 include/asm-nios2/byteorder.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/asm-nios2/byteorder.h b/include/asm-nios2/byteorder.h
index 495c823..d5c152e 100644
--- a/include/asm-nios2/byteorder.h
+++ b/include/asm-nios2/byteorder.h
@@ -25,6 +25,12 @@
 #define __ASM_NIOS2_BYTEORDER_H_
 
 #include <asm/types.h>
+
+#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
+#  define __BYTEORDER_HAS_U64__
+#  define __SWAB_64_THRU_32__
+#endif
+
 #include <linux/byteorder/little_endian.h>
 
 #endif /* __ASM_NIOS2_BYTEORDER_H_ */
-- 
1.6.6.1

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

* [U-Boot] [PATCH v2] nios2: add 64 bits swab support
  2010-03-27  4:40 [U-Boot] [PATCH] nios2: add 64 bits swab support in asm-nios2/byteorder.h Thomas Chou
@ 2010-04-17 15:10 ` Thomas Chou
  2010-04-23  0:02   ` Scott McNutt
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Chou @ 2010-04-17 15:10 UTC (permalink / raw)
  To: u-boot

This patch adds 64 bits swab support. Most 32 bits processors use
this. We need 64 bits swab for UBI.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
arch dir reorganized.

 arch/nios2/include/asm/byteorder.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/nios2/include/asm/byteorder.h b/arch/nios2/include/asm/byteorder.h
index 495c823..d5c152e 100644
--- a/arch/nios2/include/asm/byteorder.h
+++ b/arch/nios2/include/asm/byteorder.h
@@ -25,6 +25,12 @@
 #define __ASM_NIOS2_BYTEORDER_H_
 
 #include <asm/types.h>
+
+#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
+#  define __BYTEORDER_HAS_U64__
+#  define __SWAB_64_THRU_32__
+#endif
+
 #include <linux/byteorder/little_endian.h>
 
 #endif /* __ASM_NIOS2_BYTEORDER_H_ */
-- 
1.6.6.1

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

* [U-Boot] [PATCH v2] nios2: add 64 bits swab support
  2010-04-17 15:10 ` [U-Boot] [PATCH v2] nios2: add 64 bits swab support Thomas Chou
@ 2010-04-23  0:02   ` Scott McNutt
  0 siblings, 0 replies; 3+ messages in thread
From: Scott McNutt @ 2010-04-23  0:02 UTC (permalink / raw)
  To: u-boot

Applied. Thanks.
--Scott

Thomas Chou wrote:
> This patch adds 64 bits swab support. Most 32 bits processors use
> this. We need 64 bits swab for UBI.
> 
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> arch dir reorganized.
> 
>  arch/nios2/include/asm/byteorder.h |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/nios2/include/asm/byteorder.h b/arch/nios2/include/asm/byteorder.h
> index 495c823..d5c152e 100644
> --- a/arch/nios2/include/asm/byteorder.h
> +++ b/arch/nios2/include/asm/byteorder.h
> @@ -25,6 +25,12 @@
>  #define __ASM_NIOS2_BYTEORDER_H_
>  
>  #include <asm/types.h>
> +
> +#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
> +#  define __BYTEORDER_HAS_U64__
> +#  define __SWAB_64_THRU_32__
> +#endif
> +
>  #include <linux/byteorder/little_endian.h>
>  
>  #endif /* __ASM_NIOS2_BYTEORDER_H_ */

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

end of thread, other threads:[~2010-04-23  0:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-27  4:40 [U-Boot] [PATCH] nios2: add 64 bits swab support in asm-nios2/byteorder.h Thomas Chou
2010-04-17 15:10 ` [U-Boot] [PATCH v2] nios2: add 64 bits swab support Thomas Chou
2010-04-23  0:02   ` Scott McNutt

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