diff mbox

[U-Boot,13/14] x86: qemu: Add build options for SPL

Message ID 1484739184-24211-14-git-send-email-bmeng.cn@gmail.com
State Accepted
Commit 73d2de2b590f27c6c683a8476238a6e5025bb0e8
Delegated to: Bin Meng
Headers show

Commit Message

Bin Meng Jan. 18, 2017, 11:33 a.m. UTC
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: Bin Meng <bmeng.cn@gmail.com>
---

 include/configs/qemu-x86.h | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Simon Glass Jan. 25, 2017, 4:09 a.m. UTC | #1
On 18 January 2017 at 04:33, Bin Meng <bmeng.cn@gmail.com> wrote:
> 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: Bin Meng <bmeng.cn@gmail.com>
> ---
>
>  include/configs/qemu-x86.h | 9 +++++++++
>  1 file changed, 9 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
Bin Meng Feb. 7, 2017, 5:45 a.m. UTC | #2
On Wed, Jan 25, 2017 at 12:09 PM, Simon Glass <sjg@chromium.org> wrote:
> On 18 January 2017 at 04:33, Bin Meng <bmeng.cn@gmail.com> wrote:
>> 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: Bin Meng <bmeng.cn@gmail.com>
>> ---
>>
>>  include/configs/qemu-x86.h | 9 +++++++++
>>  1 file changed, 9 insertions(+)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>

applied to u-boot-x86, thanks!
diff mbox

Patch

diff --git a/include/configs/qemu-x86.h b/include/configs/qemu-x86.h
index 4783563..d4acd67 100644
--- a/include/configs/qemu-x86.h
+++ b/include/configs/qemu-x86.h
@@ -54,4 +54,13 @@ 
 #undef CONFIG_ENV_IS_IN_SPI_FLASH
 #define CONFIG_ENV_IS_NOWHERE
 
+#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 */