Convert CONFIG_BZIP2 et al 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_LMB
20
21 #define CONFIG_SYS_BOOTM_LEN            (16 << 20)
22
23 /* SATA AHCI storage */
24 #ifdef CONFIG_SCSI_AHCI
25 #define CONFIG_LBA48
26 #define CONFIG_SYS_64BIT_LBA
27
28 #endif
29
30 /* Generic TPM interfaced through LPC bus */
31 #define CONFIG_TPM_TIS_BASE_ADDRESS        0xfed40000
32
33 /*-----------------------------------------------------------------------
34  * Real Time Clock Configuration
35  */
36 #define CONFIG_SYS_ISA_IO_BASE_ADDRESS  0
37 #define CONFIG_SYS_ISA_IO      CONFIG_SYS_ISA_IO_BASE_ADDRESS
38
39 /*-----------------------------------------------------------------------
40  * Serial Configuration
41  */
42 #define CONFIG_SYS_NS16550_PORT_MAPPED
43
44 /*-----------------------------------------------------------------------
45  * Command line configuration.
46  */
47
48 #ifndef CONFIG_BOOTCOMMAND
49 #define CONFIG_BOOTCOMMAND      \
50         "ext2load scsi 0:3 01000000 /boot/vmlinuz; zboot 01000000"
51 #endif
52
53 #if defined(CONFIG_CMD_KGDB)
54 #define CONFIG_KGDB_BAUDRATE                    115200
55 #endif
56
57 /*
58  * Miscellaneous configurable options
59  */
60 #define CONFIG_SYS_CBSIZE                       512
61
62 #define CONFIG_SYS_LOAD_ADDR                    0x20000000
63
64 /*-----------------------------------------------------------------------
65  * CPU Features
66  */
67
68 #define CONFIG_SYS_STACK_SIZE                   (32 * 1024)
69 #define CONFIG_SYS_MONITOR_BASE         CONFIG_SYS_TEXT_BASE
70 #define CONFIG_SYS_MALLOC_LEN                   0x200000
71
72 /* allow to overwrite serial and ethaddr */
73 #define CONFIG_ENV_OVERWRITE
74
75 /*-----------------------------------------------------------------------
76  * Environment configuration
77  */
78
79 /*-----------------------------------------------------------------------
80  * PCI configuration
81  */
82 #define CONFIG_PCI_CONFIG_HOST_BRIDGE
83
84 /*-----------------------------------------------------------------------
85  * USB configuration
86  */
87
88 #define CONFIG_TFTP_TSIZE
89 #define CONFIG_BOOTP_BOOTFILESIZE
90
91 /* Default environment */
92 #define CONFIG_ROOTPATH         "/opt/nfsroot"
93 #define CONFIG_HOSTNAME         "x86"
94 #define CONFIG_BOOTFILE         "bzImage"
95 #define CONFIG_LOADADDR         0x1000000
96 #define CONFIG_RAMDISK_ADDR     0x4000000
97 #if defined(CONFIG_GENERATE_ACPI_TABLE) || defined(CONFIG_EFI_STUB)
98 #define CONFIG_OTHBOOTARGS      "othbootargs=\0"
99 #else
100 #define CONFIG_OTHBOOTARGS      "othbootargs=acpi=off\0"
101 #endif
102
103 #if defined(CONFIG_DISTRO_DEFAULTS)
104 #define DISTRO_BOOTENV          BOOTENV
105 #else
106 #define DISTRO_BOOTENV
107 #endif
108
109 #define CONFIG_EXTRA_ENV_SETTINGS                       \
110         DISTRO_BOOTENV                                  \
111         CONFIG_STD_DEVICES_SETTINGS                     \
112         "pciconfighost=1\0"                             \
113         "netdev=eth0\0"                                 \
114         "consoledev=ttyS0\0"                            \
115         CONFIG_OTHBOOTARGS                              \
116         "scriptaddr=0x7000000\0"                        \
117         "kernel_addr_r=0x1000000\0"                     \
118         "ramdisk_addr_r=0x4000000\0"                    \
119         "ramdiskfile=initramfs.gz\0"
120
121
122 #define CONFIG_RAMBOOTCOMMAND                           \
123         "setenv bootargs root=/dev/ram rw "             \
124         "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
125         "console=$consoledev,$baudrate $othbootargs;"   \
126         "tftpboot $kernel_addr_r $bootfile;"            \
127         "tftpboot $ramdisk_addr_r $ramdiskfile;"        \
128         "zboot $kernel_addr_r 0 $ramdisk_addr_r $filesize"
129
130 #define CONFIG_NFSBOOTCOMMAND                           \
131         "setenv bootargs root=/dev/nfs rw "             \
132         "nfsroot=$serverip:$rootpath "                  \
133         "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
134         "console=$consoledev,$baudrate $othbootargs;"   \
135         "tftpboot $kernel_addr_r $bootfile;"            \
136         "zboot $kernel_addr_r"
137
138
139 #endif  /* __CONFIG_H */