public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 01/17] SPARC: added unaligned definitions, patch supplied by Magnus Sjalander.
@ 2010-01-28 12:16 Daniel Hellstrom
  2010-01-28 12:16 ` [U-Boot] [PATCH 02/17] GRETH: Added support for selecting PHY address from config, PHY address was always set to zero before Daniel Hellstrom
                   ` (17 more replies)
  0 siblings, 18 replies; 26+ messages in thread
From: Daniel Hellstrom @ 2010-01-28 12:16 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
---
 include/asm-sparc/unaligned.h |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 include/asm-sparc/unaligned.h

diff --git a/include/asm-sparc/unaligned.h b/include/asm-sparc/unaligned.h
new file mode 100644
index 0000000..4e604c1
--- /dev/null
+++ b/include/asm-sparc/unaligned.h
@@ -0,0 +1,17 @@
+#ifndef _ASM_SPARC_UNALIGNED_H
+#define _ASM_SPARC_UNALIGNED_H
+
+#ifdef __KERNEL__
+
+/*
+ * The SPARC can not do unaligned accesses, it must be split into multiple
+ * byte accesses. The SPARC is in big endian mode.
+ */
+#include <linux/unaligned/be_byteshift.h>
+#include <linux/unaligned/generic.h>
+
+#define get_unaligned	__get_unaligned_be
+#define put_unaligned	__put_unaligned_be
+
+#endif	/* __KERNEL__ */
+#endif	/* _ASM_SPARC_UNALIGNED_H */
-- 
1.5.4

^ permalink raw reply related	[flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 01/17] SPARC: added unaligned definitions, patch supplied by Magnus Sjalander.
@ 2010-05-18 14:47 Daniel Hellstrom
  2010-05-19 22:01 ` Mike Frysinger
  0 siblings, 1 reply; 26+ messages in thread
From: Daniel Hellstrom @ 2010-05-18 14:47 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
---
 arch/sparc/include/asm/byteorder.h |    1 +
 arch/sparc/include/asm/unaligned.h |   10 ++++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 arch/sparc/include/asm/unaligned.h

diff --git a/arch/sparc/include/asm/byteorder.h b/arch/sparc/include/asm/byteorder.h
index b9fc656..e3b3dec 100644
--- a/arch/sparc/include/asm/byteorder.h
+++ b/arch/sparc/include/asm/byteorder.h
@@ -32,6 +32,7 @@
 
 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
 #define __BYTEORDER_HAS_U64__
+#define __SWAB_64_THRU_32__
 #endif
 #include <linux/byteorder/big_endian.h>
 #endif				/* _SPARC_BYTEORDER_H */
diff --git a/arch/sparc/include/asm/unaligned.h b/arch/sparc/include/asm/unaligned.h
new file mode 100644
index 0000000..0e646f7
--- /dev/null
+++ b/arch/sparc/include/asm/unaligned.h
@@ -0,0 +1,10 @@
+#ifndef _ASM_SPARC_UNALIGNED_H
+#define _ASM_SPARC_UNALIGNED_H
+
+/*
+ * The SPARC can not do unaligned accesses, it must be split into multiple
+ * byte accesses. The SPARC is in big endian mode.
+ */
+#include <asm-generic/unaligned.h>
+
+#endif	/* _ASM_SPARC_UNALIGNED_H */
-- 
1.5.4

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

end of thread, other threads:[~2010-05-26 11:29 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-28 12:16 [U-Boot] [PATCH 01/17] SPARC: added unaligned definitions, patch supplied by Magnus Sjalander Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 02/17] GRETH: Added support for selecting PHY address from config, PHY address was always set to zero before Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 03/17] GRETH: Added extra RESET, this is needed if GRETH was stopped during an ethernet frame reception Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 04/17] LEON3: reimplemented AMBA Plug&Play scanning routines Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 05/17] LEON3: added memory controller initialization using the new AMBA PnP routines Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 06/17] LEON3: Moved GRLIB core header files to common include/grlib directory Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 07/17] LEON3: serial baud rate register support multiple buses with different frequency Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 08/17] SPARC: added function that checks if IRQ is on or off Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 09/17] LEON3: added busy wait function, made wait_ms() work when IRQ is disabled Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 10/17] LEON3: added CPU count and frequency detection Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 11/17] SPARC: removed USB stop from linux bootm, arch-independent bootm stop USB Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 12/17] SPARC: added optional cpu_late_init routine Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 13/17] LEON3: Added GRETH EDCL debug link IP address initialization Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 14/17] LEON: added support for GRLIB SPI Memory controller, spi command interface Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 15/17] LEON3: fixed MMU table for systems with larger memory than 128MB Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 16/17] bootm command: added argument to arch_preboot_os, function may depend on OS type Daniel Hellstrom
2010-01-28 12:16 ` [U-Boot] [PATCH 17/17] SPARC, LEON3: added support for multiprocessing, tested Linux 2.6.21.1 SMP and RTEMS-4.10 AMP Daniel Hellstrom
2010-01-28 20:41 ` [U-Boot] [PATCH 01/17] SPARC: added unaligned definitions, patch supplied by Magnus Sjalander Mike Frysinger
2010-02-01 17:08   ` Daniel Hellstrom
2010-03-16 20:44     ` Mike Frysinger
2010-05-05 21:35 ` Wolfgang Denk
2010-05-06  6:37   ` Daniel Hellstrom
2010-05-06 10:57     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2010-05-18 14:47 Daniel Hellstrom
2010-05-19 22:01 ` Mike Frysinger
2010-05-26 11:29   ` Daniel Hellstrom

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