[U-Boot] [PATCH v10 1/8] nds32: add header files support for nds32

Mike Frysinger vapier at gentoo.org
Wed Aug 31 16:52:03 CEST 2011


On Wednesday, August 31, 2011 06:25:53 Macpaul Lin wrote:
> --- /dev/null
> +++ b/arch/nds32/include/asm/unaligned.h
> @@ -0,0 +1,31 @@
> +/*
> + * Copyright (C) 2016 Andes Technology Corporation
> + * Copyright (C) 2011 Macpaul Lin (macpaul at andestech.com)
> + *
> + * This file is subject to the terms and conditions of the GNU General
> Public + * License.  See the file "COPYING" in the main directory of this
> archive + * for more details.
> + */
> +
> +#ifndef _ASM_NDS_UNALIGNED_H
> +#define _ASM_NDS_UNALIGNED_H
> +
> +#include <compiler.h>
> +/*
> + * Select endianness
> + */
> +#ifndef __NDSEB__
> +#define get_unaligned	__get_unaligned_le
> +#define put_unaligned	__put_unaligned_le
> +#else
> +#define get_unaligned	__get_unaligned_be
> +#define put_unaligned	__put_unaligned_be
> +#endif /* __NDSEB__ */
> +
> +#include <asm/byteorder.h>
> +
> +#include <linux/unaligned/le_byteshift.h>
> +#include <linux/unaligned/be_byteshift.h>
> +#include <linux/unaligned/generic.h>
> +
> +#endif /* _ASM_NDS_UNALIGNED_H */

cant you just include asm-generic/unaligned.h ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110831/dd903403/attachment.pgp 


More information about the U-Boot mailing list