[U-Boot] Microblaze fix

Hi Wolfgang,
here are two bug fixes for Microblaze. You can apply them if you are ok with them.
Thanks, Michal

From: Michal Simek monstr@monstr.eu
Commit 6a45e384955262882375a2785426dc65aeb636c4 should remove reference from Microblaze too.
Signed-off-by: Michal Simek monstr@monstr.eu --- lib_microblaze/board.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/lib_microblaze/board.c b/lib_microblaze/board.c index 200ea5d..d4baea9 100644 --- a/lib_microblaze/board.c +++ b/lib_microblaze/board.c @@ -43,7 +43,6 @@ extern int interrupts_init (void); #endif #if defined(CONFIG_CMD_NET) extern int eth_init (bd_t * bis); -extern int getenv_IPaddr (char *); #endif
/*

From: Michal Simek monstr@monstr.eu
Microblaze has own hw unaligned handler if is available. Use big endian version.
Signed-off-by: Michal Simek monstr@monstr.eu --- include/asm-microblaze/unaligned.h | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 include/asm-microblaze/unaligned.h
diff --git a/include/asm-microblaze/unaligned.h b/include/asm-microblaze/unaligned.h new file mode 100644 index 0000000..785c2e9 --- /dev/null +++ b/include/asm-microblaze/unaligned.h @@ -0,0 +1,16 @@ +#ifndef _ASM_MICROBLAZE_UNALIGNED_H +#define _ASM_MICROBLAZE_UNALIGNED_H + +#ifdef __KERNEL__ + +/* + * The Microblaze can do unaligned accesses itself in big endian mode. + */ +#include <linux/unaligned/access_ok.h> +#include <linux/unaligned/generic.h> + +#define get_unaligned __get_unaligned_be +#define put_unaligned __put_unaligned_be + +#endif /* __KERNEL__ */ +#endif /* _ASM_MICROBLAZE_UNALIGNED_H */

Dear monstr@monstr.eu,
In message 1263899005-5213-3-git-send-email-monstr@monstr.eu you wrote:
From: Michal Simek monstr@monstr.eu
Microblaze has own hw unaligned handler if is available. Use big endian version.
Signed-off-by: Michal Simek monstr@monstr.eu
include/asm-microblaze/unaligned.h | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 include/asm-microblaze/unaligned.h
Applied, thanks.
Best regards,
Wolfgang Denk

Dear monstr@monstr.eu,
In message 1263899005-5213-2-git-send-email-monstr@monstr.eu you wrote:
From: Michal Simek monstr@monstr.eu
Commit 6a45e384955262882375a2785426dc65aeb636c4 should remove reference from Microblaze too.
Signed-off-by: Michal Simek monstr@monstr.eu
lib_microblaze/board.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
participants (2)
-
monstr@monstr.eu
-
Wolfgang Denk