Merge branch '2021-12-01-Kconfig-migrations' into next
[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  * High Level Configuration Options
15  * (easy to change)
16  */
17 #define CONFIG_PHYSMEM
18
19 #define CONFIG_SYS_BOOTM_LEN            (16 << 20)
20
21 /* SATA AHCI storage */
22 #ifdef CONFIG_SCSI_AHCI
23 #define CONFIG_LBA48
24 #define CONFIG_SYS_64BIT_LBA
25
26 #endif
27
28 /* Generic TPM interfaced through LPC bus */
29 #define CONFIG_TPM_TIS_BASE_ADDRESS        0xfed40000
30
31 /*-----------------------------------------------------------------------
32  * Real Time Clock Configuration
33  */
34 #define CONFIG_SYS_ISA_IO_BASE_ADDRESS  0
35 #define CONFIG_SYS_ISA_IO      CONFIG_SYS_ISA_IO_BASE_ADDRESS
36
37 /*-----------------------------------------------------------------------
38  * Serial Configuration
39  */
40 #define CONFIG_SYS_NS16550_PORT_MAPPED
41
42 /*
43  * Miscellaneous configurable options
44  */
45 #define CONFIG_SYS_CBSIZE                       512
46
47 /*-----------------------------------------------------------------------
48  * CPU Features
49  */
50
51 #define CONFIG_SYS_STACK_SIZE                   (32 * 1024)
52 #define CONFIG_SYS_MONITOR_BASE         CONFIG_SYS_TEXT_BASE
53
54 /*-----------------------------------------------------------------------
55  * Environment configuration
56  */
57
58 /*-----------------------------------------------------------------------
59  * PCI configuration
60  */
61 #define CONFIG_PCI_CONFIG_HOST_BRIDGE
62
63 /*-----------------------------------------------------------------------
64  * USB configuration
65  */
66
67 #define CONFIG_BOOTP_BOOTFILESIZE
68
69 /* Default environment */
70 #define CONFIG_ROOTPATH         "/opt/nfsroot"
71 #define CONFIG_HOSTNAME         "x86"
72 #define CONFIG_BOOTFILE         "bzImage"
73 #define CONFIG_RAMDISK_ADDR     0x4000000
74 #if defined(CONFIG_GENERATE_ACPI_TABLE) || defined(CONFIG_EFI_STUB)
75 #define CONFIG_OTHBOOTARGS      "othbootargs=\0"
76 #else
77 #define CONFIG_OTHBOOTARGS      "othbootargs=acpi=off\0"
78 #endif
79
80 #if defined(CONFIG_DISTRO_DEFAULTS)
81 #define DISTRO_BOOTENV          BOOTENV
82 #else
83 #define DISTRO_BOOTENV
84 #endif
85
86 #define CONFIG_EXTRA_ENV_SETTINGS                       \
87         DISTRO_BOOTENV                                  \
88         CONFIG_STD_DEVICES_SETTINGS                     \
89         "pciconfighost=1\0"                             \
90         "netdev=eth0\0"                                 \
91         "consoledev=ttyS0\0"                            \
92         CONFIG_OTHBOOTARGS                              \
93         "scriptaddr=0x7000000\0"                        \
94         "kernel_addr_r=0x1000000\0"                     \
95         "ramdisk_addr_r=0x4000000\0"                    \
96         "ramdiskfile=initramfs.gz\0"
97
98
99 #endif  /* __CONFIG_H */