global: Convert CONFIG_LOADADDR to CONFIG_SYS_LOADADDR
[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 #ifndef CONFIG_BOOTCOMMAND
43 #define CONFIG_BOOTCOMMAND      \
44         "ext2load scsi 0:3 01000000 /boot/vmlinuz; zboot 01000000"
45 #endif
46
47 #if defined(CONFIG_CMD_KGDB)
48 #define CONFIG_KGDB_BAUDRATE                    115200
49 #endif
50
51 /*
52  * Miscellaneous configurable options
53  */
54 #define CONFIG_SYS_CBSIZE                       512
55
56 #define CONFIG_SYS_LOAD_ADDR                    0x20000000
57
58 /*-----------------------------------------------------------------------
59  * CPU Features
60  */
61
62 #define CONFIG_SYS_STACK_SIZE                   (32 * 1024)
63 #define CONFIG_SYS_MONITOR_BASE         CONFIG_SYS_TEXT_BASE
64 #define CONFIG_SYS_MALLOC_LEN                   0x200000
65
66 /*-----------------------------------------------------------------------
67  * Environment configuration
68  */
69
70 /*-----------------------------------------------------------------------
71  * PCI configuration
72  */
73 #define CONFIG_PCI_CONFIG_HOST_BRIDGE
74
75 /*-----------------------------------------------------------------------
76  * USB configuration
77  */
78
79 #define CONFIG_BOOTP_BOOTFILESIZE
80
81 /* Default environment */
82 #define CONFIG_ROOTPATH         "/opt/nfsroot"
83 #define CONFIG_HOSTNAME         "x86"
84 #define CONFIG_BOOTFILE         "bzImage"
85 #define CONFIG_RAMDISK_ADDR     0x4000000
86 #if defined(CONFIG_GENERATE_ACPI_TABLE) || defined(CONFIG_EFI_STUB)
87 #define CONFIG_OTHBOOTARGS      "othbootargs=\0"
88 #else
89 #define CONFIG_OTHBOOTARGS      "othbootargs=acpi=off\0"
90 #endif
91
92 #if defined(CONFIG_DISTRO_DEFAULTS)
93 #define DISTRO_BOOTENV          BOOTENV
94 #else
95 #define DISTRO_BOOTENV
96 #endif
97
98 #define CONFIG_EXTRA_ENV_SETTINGS                       \
99         DISTRO_BOOTENV                                  \
100         CONFIG_STD_DEVICES_SETTINGS                     \
101         "pciconfighost=1\0"                             \
102         "netdev=eth0\0"                                 \
103         "consoledev=ttyS0\0"                            \
104         CONFIG_OTHBOOTARGS                              \
105         "scriptaddr=0x7000000\0"                        \
106         "kernel_addr_r=0x1000000\0"                     \
107         "ramdisk_addr_r=0x4000000\0"                    \
108         "ramdiskfile=initramfs.gz\0"
109
110
111 #define RAMBOOTCOMMAND                          \
112         "setenv bootargs root=/dev/ram rw "             \
113         "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
114         "console=$consoledev,$baudrate $othbootargs;"   \
115         "tftpboot $kernel_addr_r $bootfile;"            \
116         "tftpboot $ramdisk_addr_r $ramdiskfile;"        \
117         "zboot $kernel_addr_r 0 $ramdisk_addr_r $filesize"
118
119 #define NFSBOOTCOMMAND                          \
120         "setenv bootargs root=/dev/nfs rw "             \
121         "nfsroot=$serverip:$rootpath "                  \
122         "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
123         "console=$consoledev,$baudrate $othbootargs;"   \
124         "tftpboot $kernel_addr_r $bootfile;"            \
125         "zboot $kernel_addr_r"
126
127
128 #endif  /* __CONFIG_H */