diff options
| -rw-r--r-- | arch/arm/include/asm/byteorder.h | 25 | ||||
| -rw-r--r-- | drivers/mtd/nand/tmio_nand.c | 8 | ||||
| -rw-r--r-- | include/asm-generic/Kbuild.asm | 6 | ||||
| -rw-r--r-- | include/linux/Kbuild | 6 |
4 files changed, 26 insertions, 19 deletions
diff --git a/arch/arm/include/asm/byteorder.h b/arch/arm/include/asm/byteorder.h index d04a7a2bc2e9..4fbfb22f65a0 100644 --- a/arch/arm/include/asm/byteorder.h +++ b/arch/arm/include/asm/byteorder.h | |||
| @@ -18,15 +18,7 @@ | |||
| 18 | #include <linux/compiler.h> | 18 | #include <linux/compiler.h> |
| 19 | #include <asm/types.h> | 19 | #include <asm/types.h> |
| 20 | 20 | ||
| 21 | #ifdef __ARMEB__ | 21 | static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) |
| 22 | # define __BIG_ENDIAN | ||
| 23 | #else | ||
| 24 | # define __LITTLE_ENDIAN | ||
| 25 | #endif | ||
| 26 | |||
| 27 | #define __SWAB_64_THRU_32__ | ||
| 28 | |||
| 29 | static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | ||
| 30 | { | 22 | { |
| 31 | __u32 t; | 23 | __u32 t; |
| 32 | 24 | ||
| @@ -48,8 +40,19 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | |||
| 48 | 40 | ||
| 49 | return x; | 41 | return x; |
| 50 | } | 42 | } |
| 51 | #define __arch_swab32 __arch_swab32 | ||
| 52 | 43 | ||
| 53 | #include <linux/byteorder.h> | 44 | #define __arch__swab32(x) ___arch__swab32(x) |
| 45 | |||
| 46 | #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) | ||
| 47 | # define __BYTEORDER_HAS_U64__ | ||
| 48 | # define __SWAB_64_THRU_32__ | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #ifdef __ARMEB__ | ||
| 52 | #include <linux/byteorder/big_endian.h> | ||
| 53 | #else | ||
| 54 | #include <linux/byteorder/little_endian.h> | ||
| 55 | #endif | ||
| 54 | 56 | ||
| 55 | #endif | 57 | #endif |
| 58 | |||
diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index cbab654b03c8..edb1e322113d 100644 --- a/drivers/mtd/nand/tmio_nand.c +++ b/drivers/mtd/nand/tmio_nand.c | |||
| @@ -109,7 +109,7 @@ struct tmio_nand { | |||
| 109 | 109 | ||
| 110 | void __iomem *ccr; | 110 | void __iomem *ccr; |
| 111 | void __iomem *fcr; | 111 | void __iomem *fcr; |
| 112 | unsigned long fcr_phys; | 112 | unsigned long fcr_base; |
| 113 | 113 | ||
| 114 | unsigned int irq; | 114 | unsigned int irq; |
| 115 | 115 | ||
| @@ -316,8 +316,8 @@ static int tmio_hw_init(struct platform_device *dev, struct tmio_nand *tmio) | |||
| 316 | tmio_iowrite8(0x81, tmio->ccr + CCR_ICC); | 316 | tmio_iowrite8(0x81, tmio->ccr + CCR_ICC); |
| 317 | 317 | ||
| 318 | /* (10h)BaseAddress 0x1000 spba.spba2 */ | 318 | /* (10h)BaseAddress 0x1000 spba.spba2 */ |
| 319 | tmio_iowrite16(tmio->fcr_phys, tmio->ccr + CCR_BASE); | 319 | tmio_iowrite16(tmio->fcr_base, tmio->ccr + CCR_BASE); |
| 320 | tmio_iowrite16(tmio->fcr_phys >> 16, tmio->ccr + CCR_BASE + 16); | 320 | tmio_iowrite16(tmio->fcr_base >> 16, tmio->ccr + CCR_BASE + 2); |
| 321 | 321 | ||
| 322 | /* (04h)Command Register I/O spcmd */ | 322 | /* (04h)Command Register I/O spcmd */ |
| 323 | tmio_iowrite8(0x02, tmio->ccr + CCR_COMMAND); | 323 | tmio_iowrite8(0x02, tmio->ccr + CCR_COMMAND); |
| @@ -395,7 +395,7 @@ static int tmio_probe(struct platform_device *dev) | |||
| 395 | goto err_iomap_ccr; | 395 | goto err_iomap_ccr; |
| 396 | } | 396 | } |
| 397 | 397 | ||
| 398 | tmio->fcr_phys = (unsigned long)fcr->start; | 398 | tmio->fcr_base = fcr->start & 0xfffff; |
| 399 | tmio->fcr = ioremap(fcr->start, fcr->end - fcr->start + 1); | 399 | tmio->fcr = ioremap(fcr->start, fcr->end - fcr->start + 1); |
| 400 | if (!tmio->fcr) { | 400 | if (!tmio->fcr) { |
| 401 | retval = -EIO; | 401 | retval = -EIO; |
diff --git a/include/asm-generic/Kbuild.asm b/include/asm-generic/Kbuild.asm index 1170dc60e638..1870d5e05f1c 100644 --- a/include/asm-generic/Kbuild.asm +++ b/include/asm-generic/Kbuild.asm | |||
| @@ -1,8 +1,10 @@ | |||
| 1 | ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/kvm.h),) | 1 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \ |
| 2 | $(srctree)/include/asm-$(SRCARCH)/kvm.h),) | ||
| 2 | header-y += kvm.h | 3 | header-y += kvm.h |
| 3 | endif | 4 | endif |
| 4 | 5 | ||
| 5 | ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/a.out.h),) | 6 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \ |
| 7 | $(srctree)/include/asm-$(SRCARCH)/a.out.h),) | ||
| 6 | unifdef-y += a.out.h | 8 | unifdef-y += a.out.h |
| 7 | endif | 9 | endif |
| 8 | unifdef-y += auxvec.h | 10 | unifdef-y += auxvec.h |
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 59391250d51c..b68ec09399be 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
| @@ -167,7 +167,8 @@ unifdef-y += acct.h | |||
| 167 | unifdef-y += adb.h | 167 | unifdef-y += adb.h |
| 168 | unifdef-y += adfs_fs.h | 168 | unifdef-y += adfs_fs.h |
| 169 | unifdef-y += agpgart.h | 169 | unifdef-y += agpgart.h |
| 170 | ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/a.out.h),) | 170 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \ |
| 171 | $(srctree)/include/asm-$(SRCARCH)/a.out.h),) | ||
| 171 | unifdef-y += a.out.h | 172 | unifdef-y += a.out.h |
| 172 | endif | 173 | endif |
| 173 | unifdef-y += apm_bios.h | 174 | unifdef-y += apm_bios.h |
| @@ -258,7 +259,8 @@ unifdef-y += kd.h | |||
| 258 | unifdef-y += kernelcapi.h | 259 | unifdef-y += kernelcapi.h |
| 259 | unifdef-y += kernel.h | 260 | unifdef-y += kernel.h |
| 260 | unifdef-y += keyboard.h | 261 | unifdef-y += keyboard.h |
| 261 | ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/kvm.h),) | 262 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \ |
| 263 | $(srctree)/include/asm-$(SRCARCH)/kvm.h),) | ||
| 262 | unifdef-y += kvm.h | 264 | unifdef-y += kvm.h |
| 263 | endif | 265 | endif |
| 264 | unifdef-y += llc.h | 266 | unifdef-y += llc.h |
