blob: db3059a82c690138d77c8c668e43c2e7ffc98c80 [file] [log] [blame]
Andrii Anisov355d1e42020-08-06 12:42:47 +03001/* SPDX-License-Identifier: GPL-2.0+
2 *
3 * (C) Copyright 2020 EPAM Systemc Inc.
4 */
5#ifndef __XENGUEST_ARM64_H
6#define __XENGUEST_ARM64_H
7
8#ifndef __ASSEMBLY__
9#include <linux/types.h>
10#endif
11
12#define CONFIG_BOARD_EARLY_INIT_F
13
14#define CONFIG_EXTRA_ENV_SETTINGS
15
16#undef CONFIG_NR_DRAM_BANKS
17#undef CONFIG_SYS_SDRAM_BASE
18
19#define CONFIG_NR_DRAM_BANKS 1
20
21/*
22 * This can be any arbitrary address as we are using PIE, but
23 * please note, that CONFIG_SYS_TEXT_BASE must match the below.
24 */
25#define CONFIG_SYS_LOAD_ADDR 0x40000000
26#define CONFIG_LNX_KRNL_IMG_TEXT_OFFSET_BASE CONFIG_SYS_LOAD_ADDR
27
28/* Size of malloc() pool */
29#define CONFIG_SYS_MALLOC_LEN (32 * 1024 * 1024)
30
31/* Monitor Command Prompt */
32#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
33#define CONFIG_SYS_CBSIZE 1024
34#define CONFIG_SYS_MAXARGS 64
35#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
36#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
37 sizeof(CONFIG_SYS_PROMPT) + 16)
38
39#define CONFIG_OF_SYSTEM_SETUP
40
41#define CONFIG_CMDLINE_TAG 1
42#define CONFIG_INITRD_TAG 1
43
Anastasiia Lukianenko4fec7f82020-08-06 12:42:55 +030044#define CONFIG_CMD_RUN
45
46#undef CONFIG_EXTRA_ENV_SETTINGS
47#define CONFIG_EXTRA_ENV_SETTINGS \
48 "loadimage=ext4load pvblock 0 0x90000000 /boot/Image;\0" \
49 "pvblockboot=run loadimage;" \
50 "booti 0x90000000 - 0x88000000;\0"
51
Andrii Anisov355d1e42020-08-06 12:42:47 +030052#endif /* __XENGUEST_ARM64_H */