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