mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 18:59:44 +00:00
b1b4e89a0f
This patch adds LZO decompression support to U-Boot. It is needed for the upcoming UBIFS support, since UBIFS uses LZO as default compressor/ decompressor. Since we only support read-only in UBIFS, only the decompressor is needed. All this is copied with minor changes from the current Linux kernel version (2.6.28-rc8). This patch only implements this LZO decompressor support for PPC. Other platforms using UBIFS will have to add the required "include/asm/unaligned.h" as well. It should be fairly easy to copy this from the Linux source tree as I have done it for PPC in this patch. Signed-off-by: Stefan Roese <sr@denx.de>
16 lines
383 B
C
16 lines
383 B
C
#ifndef _ASM_POWERPC_UNALIGNED_H
|
|
#define _ASM_POWERPC_UNALIGNED_H
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
/*
|
|
* The PowerPC 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_POWERPC_UNALIGNED_H */
|