x86: link: Add build options for SPL
authorSimon Glass <sjg@chromium.org>
Mon, 16 Jan 2017 14:04:25 +0000 (07:04 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 7 Feb 2017 05:11:04 +0000 (13:11 +0800)
If SPL is used we want to use the generic SPL framework and boot from SPI
via a board-specific means. Add these options to the board config file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/configs/chromebook_link.h

index f2d798a52f0b28bc7f2fd157f84b684b9f25f6c6..b116a27869a25bc70c2bdfec835897f659c4920e 100644 (file)
 #define CONFIG_ENV_SECT_SIZE           0x1000
 #define CONFIG_ENV_OFFSET              0x003f8000
 
+#define CONFIG_SPL_FRAMEWORK
+
+#define CONFIG_SPL_TEXT_BASE           0xfffd0000
+
+#define BOOT_DEVICE_SPI                        10
+
+#define CONFIG_SPL_BOARD_LOAD_IMAGE
+#define BOOT_DEVICE_BOARD              11
+
 #endif /* __CONFIG_H */