global: Migrate CONFIG_EXTRA_ENV_SETTINGS to CFG
[platform/kernel/u-boot.git] / include / configs / x86-common.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (c) 2011 The Chromium OS Authors.
4  * (C) Copyright 2008
5  * Graeme Russ, graeme.russ@gmail.com.
6  */
7
8 #include <asm/ibmpc.h>
9
10 #ifndef __CONFIG_X86_COMMON_H
11 #define __CONFIG_X86_COMMON_H
12
13 /*-----------------------------------------------------------------------
14  * CPU Features
15  */
16
17 #define CFG_SYS_STACK_SIZE                      (32 * 1024)
18
19 /*-----------------------------------------------------------------------
20  * Environment configuration
21  */
22
23 /*-----------------------------------------------------------------------
24  * USB configuration
25  */
26
27 /* Default environment */
28 #define CONFIG_RAMDISK_ADDR     0x4000000
29 #if defined(CONFIG_GENERATE_ACPI_TABLE) || defined(CONFIG_EFI_STUB)
30 #define CONFIG_OTHBOOTARGS      "othbootargs=\0"
31 #else
32 #define CONFIG_OTHBOOTARGS      "othbootargs=acpi=off\0"
33 #endif
34
35 #if defined(CONFIG_DISTRO_DEFAULTS)
36 #define DISTRO_BOOTENV          BOOTENV
37 #else
38 #define DISTRO_BOOTENV
39 #endif
40
41 #ifndef SPLASH_SETTINGS
42 #define SPLASH_SETTINGS
43 #endif
44
45 #define CFG_EXTRA_ENV_SETTINGS                  \
46         DISTRO_BOOTENV                                  \
47         CONFIG_STD_DEVICES_SETTINGS                     \
48         SPLASH_SETTINGS                                 \
49         "pciconfighost=1\0"                             \
50         "netdev=eth0\0"                                 \
51         "consoledev=ttyS0\0"                            \
52         CONFIG_OTHBOOTARGS                              \
53         "scriptaddr=0x7000000\0"                        \
54         "kernel_addr_r=0x1000000\0"                     \
55         "ramdisk_addr_r=0x4000000\0"                    \
56         "ramdiskfile=initramfs.gz\0"
57
58
59 #endif  /* __CONFIG_H */