]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: Drop RAMTOP Kconfig
authorSimon Glass <sjg@chromium.org>
Thu, 1 Jan 2015 23:17:55 +0000 (16:17 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 13 Jan 2015 15:24:58 +0000 (07:24 -0800)
We don't need this in U-Boot since we calculate it based on available memory.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/Kconfig
arch/x86/include/asm/mtrr.h

index 7d007bb60a1fc6abfe4ba7cce48321bfa1a2a0e7..e992e647cca3453011e22829d755efbcb2813288 100644 (file)
@@ -47,10 +47,6 @@ config RAMBASE
        hex
        default 0x100000
 
-config RAMTOP
-       hex
-       default 0x200000
-
 config XIP_ROM_SIZE
        hex
        default ROM_SIZE
index 5f05a4848f66c7aa194f80b126783b259b24bbf0..dcc995dbb6cf681f6282ca5a05603cad453f85d8 100644 (file)
@@ -100,10 +100,6 @@ static inline long x86_mtrr_rom_cache_var_index(void) { return -1; }
 
 #endif
 
-#if !defined(CONFIG_RAMTOP)
-# error "CONFIG_RAMTOP not defined"
-#endif
-
 #if ((CONFIG_XIP_ROM_SIZE & (CONFIG_XIP_ROM_SIZE - 1)) != 0)
 # error "CONFIG_XIP_ROM_SIZE is not a power of 2"
 #endif
@@ -114,8 +110,4 @@ static inline long x86_mtrr_rom_cache_var_index(void) { return -1; }
 
 #define CACHE_ROM_BASE (((1 << 20) - (CONFIG_CACHE_ROM_SIZE >> 12)) << 12)
 
-#if (CONFIG_RAMTOP & (CONFIG_RAMTOP - 1)) != 0
-# error "CONFIG_RAMTOP must be a power of 2"
-#endif
-
 #endif