sizes.h - consolidate for all architectures
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Wed, 26 Feb 2014 13:47:58 +0000 (17:47 +0400)
committerTom Rini <trini@ti.com>
Tue, 4 Mar 2014 17:15:01 +0000 (12:15 -0500)
Copied from Linux sources "include/linux/sizes.h" commit
413541dd66d51f791a0b169d9b9014e4f56be13c

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Tom Rini <trini@ti.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Acked-by: Tom Rini <trini@ti.com>
Acked-by: Stefan Roese <sr@denx.de>
[trini: Add bcm Kona platforms to the patch]
Signed-off-by: Tom Rini <trini@ti.com>
53 files changed:
arch/arm/cpu/armv7/kona-common/hwinit-common.c
arch/arm/cpu/armv7/omap-common/hwinit-common.c
arch/arm/cpu/armv7/omap4/hwinit.c
arch/arm/cpu/armv7/omap5/hwinit.c
arch/arm/cpu/at91-common/phy.c
arch/arm/include/asm/arch-davinci/hardware.h
arch/arm/include/asm/arch-mb86r0x/hardware.h
arch/arm/include/asm/arch-tnetv107x/hardware.h
arch/arm/include/asm/sizes.h [deleted file]
board/BuS/vl_ma2sc/vl_ma2sc.c
board/atmel/at91sam9263ek/at91sam9263ek.c
board/compulab/cm_t335/spl.c
board/freescale/mx6slevk/mx6slevk.c
board/highbank/highbank.c
board/ronetix/pm9261/pm9261.c
board/ronetix/pm9263/pm9263.c
board/ronetix/pm9g45/pm9g45.c
board/samsung/common/misc.c
board/wandboard/wandboard.c
drivers/fpga/zynqpl.c
drivers/gpio/at91_gpio.c
drivers/pci/pcie_imx.c
drivers/usb/gadget/f_thor.h
include/configs/at91rm9200ek.h
include/configs/bcm28155_ap.h
include/configs/beaver.h
include/configs/cardhu.h
include/configs/cpuat91.h
include/configs/dalmore.h
include/configs/devkit3250.h
include/configs/harmony.h
include/configs/hummingboard.h
include/configs/mx6sabre_common.h
include/configs/mx6slevk.h
include/configs/omap1510.h
include/configs/omap3_sdp3430.h
include/configs/paz00.h
include/configs/rpi_b.h
include/configs/sbc35_a9g20.h
include/configs/seaboard.h
include/configs/snapper9260.h
include/configs/tegra-common.h
include/configs/tnetv107x_evm.h
include/configs/trats.h
include/configs/trats2.h
include/configs/trimslice.h
include/configs/udoo.h
include/configs/venice2.h
include/configs/ventana.h
include/configs/wandboard.h
include/configs/whistler.h
include/linux/sizes.h [new file with mode: 0644]
include/usb/s3c_udc.h

index f8b1e063cd25b8943646387def632853f30413a2..2b3a84051c76d1c7e5779011c9dc79c84d0e5aa7 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #include <common.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #ifndef CONFIG_SYS_DCACHE_OFF
 void enable_caches(void)
index ade744e31fe4feff27f266a685d3b87d92df91ff..8ebc0ce251632cff1b2564130496d7cb34970982 100644 (file)
@@ -14,7 +14,7 @@
 #include <common.h>
 #include <spl.h>
 #include <asm/arch/sys_proto.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/emif.h>
 #include <asm/omap_common.h>
 #include <linux/compiler.h>
index b0598a0774d5a0ce6a085a244e782c16439418d3..db16548fac49bab91d0c257e6657daab2ef89f05 100644 (file)
@@ -15,7 +15,7 @@
 #include <asm/armv7.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/sys_proto.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/emif.h>
 #include <asm/arch/gpio.h>
 #include <asm/omap_common.h>
index 737d23ccb4316e931a134afc6ecd80a638af4cfb..93feb1623cd9a04764234acb99d582c2dce4ccaf 100644 (file)
@@ -17,7 +17,7 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/clock.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/utils.h>
 #include <asm/arch/gpio.h>
 #include <asm/emif.h>
index 3b6c60ca56b871e78d6cb711bf332b0538f44f3e..2cba7169e4e464f8e58abfe157bb1859282a3fdf 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <common.h>
 #include <asm/io.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/arch/at91_pmc.h>
 #include <asm/arch/at91_rstc.h>
 #include <watchdog.h>
index 27b1844ee68802584dcba2be708c72bb41b241c7..98fe56e68653023b4c30695ee4859fee36ac792a 100644 (file)
@@ -15,7 +15,7 @@
 #define __ASM_ARCH_HARDWARE_H
 
 #include <config.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #define        REG(addr)       (*(volatile unsigned int *)(addr))
 #define REG_P(addr)    ((volatile unsigned int *)(addr))
index c0e3f206cddade0f2fd8907ddd63e85c7005c66b..42a52bc36c40d6a948a6b735f435a020b6b68c49 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef __ASM_ARCH_HARDWARE_H
 #define __ASM_ARCH_HARDWARE_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/arch/mb86r0x.h>
 
 #endif
index aed6c46f64160d4ab09a03b0181143895d4492c0..2a7ca4e00c137872682e7bbfc52cab39e071ce42 100644 (file)
@@ -9,7 +9,7 @@
 
 #ifndef __ASSEMBLY__
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #define ASYNC_EMIF_NUM_CS              4
 #define ASYNC_EMIF_MODE_NOR            0
diff --git a/arch/arm/include/asm/sizes.h b/arch/arm/include/asm/sizes.h
deleted file mode 100644 (file)
index 28cf5ea..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * SPDX-License-Identifier:    GPL-2.0+
- */
-/*  Size defintions
- *  Copyright (C) ARM Limited 1998. All rights reserved.
- */
-
-#ifndef __sizes_h
-#define __sizes_h                       1
-
-/* handy sizes */
-#define SZ_1K                           0x00000400
-#define SZ_4K                           0x00001000
-#define SZ_8K                           0x00002000
-#define SZ_16K                          0x00004000
-#define SZ_32K                          0x00008000
-#define SZ_64K                          0x00010000
-#define SZ_128K                         0x00020000
-#define SZ_256K                         0x00040000
-#define SZ_512K                         0x00080000
-
-#define SZ_1M                           0x00100000
-#define SZ_2M                           0x00200000
-#define SZ_4M                           0x00400000
-#define SZ_8M                           0x00800000
-#define SZ_16M                          0x01000000
-#define SZ_31M                          0x01F00000
-#define SZ_32M                          0x02000000
-#define SZ_64M                          0x04000000
-#define SZ_128M                         0x08000000
-#define SZ_256M                         0x10000000
-#define SZ_512M                         0x20000000
-
-#define SZ_1G                           0x40000000
-#define SZ_2G                           0x80000000
-
-#endif
-
-/*         END */
index 63f7ad9a7adbc60d11ee89b3d398b57a8c87ee4a..da39c8625821965ec747bcb359890c487bcb020a 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <config.h>
 #include <common.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/hardware.h>
index d42a1730cc38fe338f70526190dda0ad71349d00..7784cd7f0ac4e9d8a7c3db5a0f5e88e90f676d7e 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #include <common.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/arch/at91sam9263.h>
 #include <asm/arch/at91sam9_smc.h>
 #include <asm/arch/at91_common.h>
index b3b150a577ad00a1cb742f07e980c1888281c70a..d57436445e93b61a88501b391461dfd73e09bdf5 100644 (file)
@@ -18,7 +18,7 @@
 #include <asm/arch/clocks_am33xx.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware_am33xx.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 const struct ctrl_ioregs ioregs = {
        .cm0ioctl               = MT41J128MJT125_IOCTRL_VALUE,
index c4962549a71e2812f3610281da2b726de79e0224..aadad3266f3c90fbcd6957201c35a06be732ecb1 100644 (file)
@@ -14,7 +14,7 @@
 #include <asm/gpio.h>
 #include <asm/imx-common/iomux-v3.h>
 #include <asm/io.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <common.h>
 #include <fsl_esdhc.h>
 #include <mmc.h>
index 4b272c780e101477074a85bb317f8cfc0671fa08..371b0a2b168b79a733230319034855f2258b946b 100644 (file)
@@ -9,7 +9,7 @@
 #include <netdev.h>
 #include <scsi.h>
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/io.h>
 
 #define HB_AHCI_BASE                   0xffe08000
index a63438343ea139c4f6da44f759aae07a459170df..ec3ac895938f8fa9ef80568520acf99d34e59712 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #include <common.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/at91sam9_smc.h>
index 3cedeef8ae64554541f17cf61ebfb92fc81449b4..3aaffa803c9285633552001aacac442ebb610014 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #include <common.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/at91sam9_smc.h>
index c9f2747007d80c9d4c839cbcc5d47b3cd0332dac..15aa4acd1129e9ff344006da9422a4eebb2adb05 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 #include <common.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/at91sam9_smc.h>
index eb157394adb58dcf96bad4b294fc6c32fefbeb37..3ff4289780a8fe665cf89ff92f182e6ae6b0b9ad 100644 (file)
@@ -11,7 +11,7 @@
 #include <samsung/misc.h>
 #include <errno.h>
 #include <version.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/gpio.h>
 #include <asm/gpio.h>
index 72e9bb2e972af3d86d4e0c40ae4b62c860c3c348..050845777d22bc042cf74b28ec465b03fc304f33 100644 (file)
@@ -17,7 +17,7 @@
 #include <asm/imx-common/iomux-v3.h>
 #include <asm/imx-common/boot_mode.h>
 #include <asm/io.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <common.h>
 #include <fsl_esdhc.h>
 #include <ipu_pixfmt.h>
index 15900c9ef262eb0f498a59b4a598672f67430958..923a1586d8b558e7ac2241383fb9d8d7bca70c6a 100644 (file)
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <asm/io.h>
 #include <zynqpl.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 
index 8b766665c689727081eea1e4311498726c2287df..0b70071871ce8046577fab9453c195d2281bc81d 100644 (file)
@@ -11,7 +11,7 @@
 #include <config.h>
 #include <common.h>
 #include <asm/io.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_pio.h>
 #include <asm/arch/gpio.h>
index 34377e90bdb088083d7481bf787ba3ca73d20c62..1f600aaec49b13e335a70aa8a9c745a204b533c1 100644 (file)
@@ -17,7 +17,7 @@
 #include <asm/arch/crm_regs.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <errno.h>
 
 #define PCI_ACCESS_READ  0
index 04ee9a2438be195f95e50117e685991a974d2640..833a9d24ae7e632ba18173738491b5c6f65a1650 100644 (file)
@@ -11,7 +11,7 @@
 #define _USB_THOR_H_
 
 #include <linux/compiler.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 /* THOR Composite Gadget */
 #define STRING_MANUFACTURER_IDX        0
index 5d96c31f99cef96a859835986459720a8a1ffb78..a30c016b41cd4f6d74bf655e7897d33c308a0039 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef __AT91RM9200EK_CONFIG_H__
 #define __AT91RM9200EK_CONFIG_H__
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 /*
  * set some initial configurations depending on configure target
index 8e1c81fc13ada5e8ced4a2dc8b8ebf6e3395c74b..e93b855f8f69ef74e12adacfc8b0be45cef49dad 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __BCM28155_AP_H
 #define __BCM28155_AP_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/arch/sysmap.h>
 
 /* Architecture, CPU, chip, mach, etc */
index 801caca24f129cd68c184eabc2dea57784d10252..df9a98bca6e22c2962c14e6ffb2d30f7af77a3d3 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #include "tegra30-common.h"
 
index e80d1a6fa3a40432adef3d86f312c75732a60f44..e15b52737b24ea4302ab0a1f9ae581a99d38603a 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #include "tegra30-common.h"
 
index 49cfabdc6bda7a28d61dc8c59fcd838c669222aa..ce521012f220d3105599f974b465ae33b0c3abb0 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef _CONFIG_CPUAT91_H
 #define _CONFIG_CPUAT91_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #ifdef CONFIG_RAMBOOT
 #define CONFIG_SKIP_LOWLEVEL_INIT
index bdf012b2b8e3ee51c2b04feb6603a370660ccfd3..fd774a3314fcc98f86e512c9a49c7c72a9dc8dca 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #include "tegra114-common.h"
 
index 3d39b106584710bfd97a7825ebcb35e5a764c401..bd96a7d3f45a6ef6ff2b1789af8e77db826220f6 100644 (file)
@@ -10,7 +10,7 @@
 #define __CONFIG_DEVKIT3250_H__
 
 /* SoC and board defines */
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/arch/cpu.h>
 
 /*
index d733be9cd5b67c72d79bae9587353f5685bc6655..c4ff4a25cb9c355c701d688807b0e19545a8fc32 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include "tegra20-common.h"
 
 /* Enable fdt support for Harmony. Flash the image in u-boot-dtb.bin */
index 6bf3408dd00a5b4bd137146c12cef830806c0f41..28955233449f3e6ecf4d8892892f2353f557d490 100644 (file)
@@ -14,7 +14,7 @@
 #include "mx6_common.h"
 #include <asm/arch/imx-regs.h>
 #include <asm/imx-common/gpio.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #define CONFIG_MX6
 #define CONFIG_DISPLAY_CPUINFO
index 4efcebf4ff88a9c99eb1103dfd1f823c5a5794b3..7a2c172d4a84c5c982eb1712a7537e7ec1367e73 100644 (file)
@@ -12,7 +12,7 @@
 #define CONFIG_MX6
 
 #include "mx6_common.h"
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
index e5bdcc2c0d7d8e1dbc7db32e4e32cedc0a9e1807..1876dbf35addc2ab43daa78530107456342e35ea 100644 (file)
@@ -10,7 +10,7 @@
 #define __CONFIG_H
 
 #include <asm/arch/imx-regs.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include "mx6_common.h"
 
 #define CONFIG_MX6
index a578edd0d82102ea182e0d6d90f4a3a6377cf66c..41f7973f2b8843287b5ccdc9e5e667dca4297154 100644 (file)
@@ -10,7 +10,7 @@
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 /*
   There are 2 sets of general I/O -->
index 6f1304dc9432e374b9f8203d3e3f77d72fb79d64..a3e8a5997288ea8061238810e663afe60c99e633 100644 (file)
@@ -16,7 +16,7 @@
 /* TODO: REMOVE THE FOLLOWING
  * Retained the following till size.h is removed in u-boot
  */
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 /*
  * High Level Configuration Options
  */
index 9e2686ac449e8625094bafe5e66653fe3fcd1712..dd0abf8de6bb87533c2a88eceecf4dba71313d65 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include "tegra20-common.h"
 
 /* Enable fdt support for Paz00. Flash the image in u-boot-dtb.bin */
index 6306d61bb2736db10b3f44c4ec180ce41b199f68..ed8b4dfb51decabac2900077673ebcbf58c4eab9 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 /* Architecture, CPU, etc.*/
 #define CONFIG_ARM1176
index 7e16c451c378710b3cd4ff6623cd6a1783b9c817..a1b5751d09573e33732c4fc397499d4dcaf53e60 100644 (file)
@@ -12,7 +12,7 @@
 
 /* SoC type is defined in boards.cfg */
 #include <asm/hardware.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #if defined(CONFIG_SYS_USE_NANDFLASH)
 #define CONFIG_ENV_IS_IN_NAND
index 2a24ef3c642b8ba77b691cea64f8563b0572c9fe..fc4f976d8d3873fb68990e9b448243d6556d7855 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 /* LP0 suspend / resume */
 #define CONFIG_TEGRA_LP0
index 94a65c4d01c84c36586da6e8bbd65fcaae7053d1..1ebee714ba3e5c568c86c99b937b7d5a2c645644 100644 (file)
@@ -13,7 +13,7 @@
 
 /* SoC type is defined in boards.cfg */
 #include <asm/hardware.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #define CONFIG_SYS_TEXT_BASE           0x20000000
 
index 522cd4133d7724725862e56e576c75bac2f5d0aa..0b102aa289f4da8f886853b11f8c6afde0260754 100644 (file)
@@ -7,7 +7,7 @@
 
 #ifndef _TEGRA_COMMON_H_
 #define _TEGRA_COMMON_H_
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <linux/stringify.h>
 
 /*
index 48fcb24c4fdfac17e48309f6403ed5dbc10dae0e..162826f7d354ec423c7f0d41c64cdb0ff400a86c 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/clock.h>
 
index 718107ac9f0dd61031eea5273d5d9ce7f5f63429..7cea2592ff6448d05dc45ae22cfda0c2bfa06316 100644 (file)
@@ -51,7 +51,7 @@
 #define MACH_TYPE_TRATS                        3928
 #define CONFIG_MACH_TYPE               MACH_TYPE_TRATS
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + (80 * SZ_1M))
 
index e30c428a442e2d6ba061ff9017d53a903b3326df..6d389df9df4c3020b532ae7a301957f2ea4c5bf2 100644 (file)
@@ -64,7 +64,7 @@
 
 #define CONFIG_DISPLAY_CPUINFO
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + (80 * SZ_1M))
 
index 8e03f6f4c4b76e9157bd5ef5fb5c47fcf8dc7f2d..f81cfa2e354d4e499e673cfcece60f232b9c4e75 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include "tegra20-common.h"
 
 /* Enable fdt support for TrimSlice. Flash the image in u-boot-dtb.bin */
index 4f518527a0f3b42eff39769eedc177bd83149451..a0306de6a337b63f55213567f1ca0225e09cc521 100644 (file)
@@ -12,7 +12,7 @@
 #include "mx6_common.h"
 #include <asm/arch/imx-regs.h>
 #include <asm/imx-common/gpio.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #define CONFIG_MX6
 #define CONFIG_DISPLAY_CPUINFO
index 91808e9203881c91bc3fd8c341272df88e93c2b4..2d75f5013fdde9449be09e89e971e16f1cde44ee 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #include "tegra124-common.h"
 
index 5c02c968f90162efb894650238db495bc4d77a27..edf3720b615c6e08f5b993106dac803b0f7255a1 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include "tegra20-common.h"
 
 /* Enable fdt support for Ventana. Flash the image in u-boot-dtb.bin */
index 348847238e769fa64bf5be134fe5873fc5f6c6cb..6c74c72952586f3e9264591c41af34d4bfa8e1e1 100644 (file)
@@ -12,7 +12,7 @@
 #include "mx6_common.h"
 #include <asm/arch/imx-regs.h>
 #include <asm/imx-common/gpio.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 
 #define CONFIG_MX6
 #define CONFIG_DISPLAY_CPUINFO
index d5c7e3bbd6e0f8e01b8f3d4fa37501ab6a85b34f..9e09f03d5270de7200c6d99d1587409f90b4a3f0 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include "tegra20-common.h"
 
 /* Enable fdt support for Whistler. Flash the image in u-boot-dtb.bin */
diff --git a/include/linux/sizes.h b/include/linux/sizes.h
new file mode 100644 (file)
index 0000000..ce3e815
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * include/linux/sizes.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#ifndef __LINUX_SIZES_H__
+#define __LINUX_SIZES_H__
+
+#define SZ_1                           0x00000001
+#define SZ_2                           0x00000002
+#define SZ_4                           0x00000004
+#define SZ_8                           0x00000008
+#define SZ_16                          0x00000010
+#define SZ_32                          0x00000020
+#define SZ_64                          0x00000040
+#define SZ_128                         0x00000080
+#define SZ_256                         0x00000100
+#define SZ_512                         0x00000200
+
+#define SZ_1K                          0x00000400
+#define SZ_2K                          0x00000800
+#define SZ_4K                          0x00001000
+#define SZ_8K                          0x00002000
+#define SZ_16K                         0x00004000
+#define SZ_32K                         0x00008000
+#define SZ_64K                         0x00010000
+#define SZ_128K                                0x00020000
+#define SZ_256K                                0x00040000
+#define SZ_512K                                0x00080000
+
+#define SZ_1M                          0x00100000
+#define SZ_2M                          0x00200000
+#define SZ_4M                          0x00400000
+#define SZ_8M                          0x00800000
+#define SZ_16M                         0x01000000
+#define SZ_32M                         0x02000000
+#define SZ_64M                         0x04000000
+#define SZ_128M                                0x08000000
+#define SZ_256M                                0x10000000
+#define SZ_512M                                0x20000000
+
+#define SZ_1G                          0x40000000
+#define SZ_2G                          0x80000000
+
+#endif /* __LINUX_SIZES_H__ */
index ce3dd2c6bbe3ab1871445a56a15a627e2f9fdd22..70e48f88ee7386e86bba22a71b903f45c11f9359 100644 (file)
@@ -10,7 +10,7 @@
 #define __S3C_USB_GADGET
 
 #include <asm/errno.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
 #include <linux/list.h>