mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 16:07:30 +00:00
722bc5b5d9
Add initial infrastructure for Xen para-virtualized block device. This includes compile-time configuration and the skeleton for the future driver implementation. Add new class UCLASS_PVBLOCK which is going to be a parent for virtual block devices. Add new interface type IF_TYPE_PVBLOCK. Implement basic driver setup by reading XenStore configuration. Signed-off-by: Andrii Anisov <andrii_anisov@epam.com> Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
52 lines
1.4 KiB
C
52 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0+
|
|
*
|
|
* (C) Copyright 2020 EPAM Systemc Inc.
|
|
*/
|
|
#ifndef __XENGUEST_ARM64_H
|
|
#define __XENGUEST_ARM64_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
#include <linux/types.h>
|
|
#endif
|
|
|
|
#define CONFIG_BOARD_EARLY_INIT_F
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS
|
|
|
|
#undef CONFIG_NR_DRAM_BANKS
|
|
#undef CONFIG_SYS_SDRAM_BASE
|
|
|
|
#define CONFIG_NR_DRAM_BANKS 1
|
|
|
|
/*
|
|
* This can be any arbitrary address as we are using PIE, but
|
|
* please note, that CONFIG_SYS_TEXT_BASE must match the below.
|
|
*/
|
|
#define CONFIG_SYS_LOAD_ADDR 0x40000000
|
|
#define CONFIG_LNX_KRNL_IMG_TEXT_OFFSET_BASE CONFIG_SYS_LOAD_ADDR
|
|
|
|
/* Size of malloc() pool */
|
|
#define CONFIG_SYS_MALLOC_LEN (32 * 1024 * 1024)
|
|
|
|
/* Monitor Command Prompt */
|
|
#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
|
|
#define CONFIG_SYS_CBSIZE 1024
|
|
#define CONFIG_SYS_MAXARGS 64
|
|
#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
|
|
#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
|
|
sizeof(CONFIG_SYS_PROMPT) + 16)
|
|
|
|
#define CONFIG_OF_SYSTEM_SETUP
|
|
|
|
#define CONFIG_CMDLINE_TAG 1
|
|
#define CONFIG_INITRD_TAG 1
|
|
|
|
#define CONFIG_CMD_RUN
|
|
|
|
#undef CONFIG_EXTRA_ENV_SETTINGS
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
"loadimage=ext4load pvblock 0 0x90000000 /boot/Image;\0" \
|
|
"pvblockboot=run loadimage;" \
|
|
"booti 0x90000000 - 0x88000000;\0"
|
|
|
|
#endif /* __XENGUEST_ARM64_H */
|