sizes.h - consolidate for all architectures
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Wed, 26 Feb 2014 13:47:58 +0000 (17:47 +0400)
committerChanho Park <chanho61.park@samsung.com>
Mon, 27 Jul 2015 01:09:32 +0000 (10:09 +0900)
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>
Conflicts:
arch/arm/cpu/armv7/kona-common/hwinit-common.c
arch/arm/cpu/armv7/omap5/hwinit.c
arch/arm/cpu/at91-common/phy.c
arch/arm/include/asm/sizes.h
board/compulab/cm_t335/spl.c
board/freescale/mx6slevk/mx6slevk.c
board/samsung/common/misc.c
board/wandboard/wandboard.c
drivers/fpga/zynqpl.c
drivers/pci/pcie_imx.c
include/configs/bcm28155_ap.h
include/configs/beaver.h
include/configs/cardhu.h
include/configs/dalmore.h
include/configs/harmony.h
include/configs/hummingboard.h
include/configs/mx6sabre_common.h
include/configs/mx6slevk.h
include/configs/paz00.h
include/configs/rpi_b.h
include/configs/tegra-common.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/usb/s3c_udc.h

drivers/usb/gadget/f_thor.h
include/linux/sizes.h [new file with mode: 0644]

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
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__ */