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