]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
x86: Move mrccache.[c|h] to a common place
authorBin Meng <bmeng.cn@gmail.com>
Mon, 12 Oct 2015 04:37:36 +0000 (21:37 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Oct 2015 13:46:26 +0000 (07:46 -0600)
mrccache implementation can be common for all boards. Move it
from ivybridge cpu directory to the common lib directory.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/ivybridge/Makefile
arch/x86/cpu/ivybridge/sdram.c
arch/x86/include/asm/mrccache.h [moved from arch/x86/include/asm/arch-ivybridge/mrccache.h with 100% similarity]
arch/x86/lib/Makefile
arch/x86/lib/mrccache.c [moved from arch/x86/cpu/ivybridge/mrccache.c with 98% similarity]
configs/chromebook_link_defconfig
configs/chromebox_panther_defconfig

index 3576b83266b5b19e598408218920a21eec5a0f13..0c7efaec7ceed9c9d43aeb40b4cb5c2470d5d646 100644 (file)
@@ -14,7 +14,6 @@ obj-y += lpc.o
 obj-y += me_status.o
 obj-y += model_206ax.o
 obj-y += microcode_intel.o
-obj-y += mrccache.o
 obj-y += northbridge.o
 obj-y += pch.o
 obj-y += pci.o
index 7f3b13d3571f420aee76006c4277445d878d1df3..10fbe5fb36533dd797bc8a062e4b7e65da30012b 100644 (file)
 #include <asm/processor.h>
 #include <asm/gpio.h>
 #include <asm/global_data.h>
+#include <asm/mrccache.h>
 #include <asm/mtrr.h>
 #include <asm/pci.h>
 #include <asm/arch/me.h>
-#include <asm/arch/mrccache.h>
 #include <asm/arch/pei_data.h>
 #include <asm/arch/pch.h>
 #include <asm/post.h>
index fa9594439901226d5c571c3deabb1f6512a30aa1..2f82a21aff1079de8fbf9c136df8961f9da90919 100644 (file)
@@ -17,6 +17,7 @@ obj-y += init_helpers.o
 obj-y  += interrupts.o
 obj-y  += lpc-uclass.o
 obj-y  += mpspec.o
+obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
 obj-y += cmd_mtrr.o
 obj-$(CONFIG_SYS_PCAT_INTERRUPTS) += pcat_interrupts.o
 obj-$(CONFIG_SYS_PCAT_TIMER) += pcat_timer.o
similarity index 98%
rename from arch/x86/cpu/ivybridge/mrccache.c
rename to arch/x86/lib/mrccache.c
index 92054948eb7b1634b5c905bfec8c5b78ee789e6c..ec0d2cb18b29c38a8781f43e53e6f6c77337ae6d 100644 (file)
@@ -12,8 +12,7 @@
 #include <net.h>
 #include <spi.h>
 #include <spi_flash.h>
-#include <asm/arch/mrccache.h>
-#include <asm/arch/sandybridge.h>
+#include <asm/mrccache.h>
 
 static struct mrc_data_container *next_mrc_block(
        struct mrc_data_container *mrc_cache)
index 21e85f3c666f1a6beaddb6ef04a94374fbdbc604..fbecf8bea9b5c62387d45379994a518e67335e09 100644 (file)
@@ -4,6 +4,7 @@ CONFIG_VENDOR_GOOGLE=y
 CONFIG_DEFAULT_DEVICE_TREE="chromebook_link"
 CONFIG_TARGET_CHROMEBOOK_LINK=y
 CONFIG_HAVE_MRC=y
+CONFIG_ENABLE_MRC_CACHE=y
 CONFIG_HAVE_VGA_BIOS=y
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
index 70a22a907b49032eeee6ea2df2af87a3cb5fb9f7..663aab0b1aaa4d4f848bfa3c5e2955352d127fd7 100644 (file)
@@ -3,6 +3,7 @@ CONFIG_VENDOR_GOOGLE=y
 CONFIG_DEFAULT_DEVICE_TREE="chromebox_panther"
 CONFIG_TARGET_CHROMEBOX_PANTHER=y
 CONFIG_HAVE_MRC=y
+CONFIG_ENABLE_MRC_CACHE=y
 CONFIG_HAVE_VGA_BIOS=y
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set