sandbox: Change CONFIG_SANDBOX_BITS_PER_LONG to hard-coded
authorTom Rini <trini@konsulko.com>
Wed, 12 Apr 2017 20:41:00 +0000 (16:41 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 13 Apr 2017 13:41:09 +0000 (09:41 -0400)
Instead of having CONFIG_SANDBOX_BITS_PER_LONG in sandbox.h set to 64
with a comment to change to 32 on a 32bit host, simply set this to 64 in
asm/types.h and have the comment be there.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/sandbox/include/asm/types.h
include/configs/sandbox.h

index 42c09e2..623cdaf 100644 (file)
@@ -50,7 +50,11 @@ typedef __INT64_TYPE__ s64;
 typedef __UINT64_TYPE__ u64;
 #endif
 
-#define BITS_PER_LONG  CONFIG_SANDBOX_BITS_PER_LONG
+/*
+ * Number of bits in a C 'long' on this architecture. Set this to 32 when
+ * building on a 32-bit machine.
+ */
+#define BITS_PER_LONG  32
 
 typedef unsigned long dma_addr_t;
 typedef u32 phys_addr_t;
index 7de8765..4c112cc 100644 (file)
 #define CONFIG_SYS_TIMER_RATE          1000000
 #endif
 
-/*
- * Number of bits in a C 'long' on this architecture. Set this to 32 when
- * building on a 32-bit machine.
- */
-#define CONFIG_SANDBOX_BITS_PER_LONG   64
-
 #define CONFIG_LMB
 #define CONFIG_ANDROID_BOOT_IMAGE