1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2011 The Chromium OS Authors.
5 * Graeme Russ, graeme.russ@gmail.com.
10 #ifndef __CONFIG_X86_COMMON_H
11 #define __CONFIG_X86_COMMON_H
14 * High Level Configuration Options
17 #define CONFIG_PHYSMEM
21 #define CONFIG_SYS_BOOTM_LEN (16 << 20)
23 /* SATA AHCI storage */
24 #ifdef CONFIG_SCSI_AHCI
26 #define CONFIG_SYS_64BIT_LBA
30 /* Generic TPM interfaced through LPC bus */
31 #define CONFIG_TPM_TIS_BASE_ADDRESS 0xfed40000
33 /*-----------------------------------------------------------------------
34 * Real Time Clock Configuration
36 #define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0
37 #define CONFIG_SYS_ISA_IO CONFIG_SYS_ISA_IO_BASE_ADDRESS
39 /*-----------------------------------------------------------------------
40 * Serial Configuration
42 #define CONFIG_SYS_NS16550_PORT_MAPPED
44 /*-----------------------------------------------------------------------
45 * Command line configuration.
48 #ifndef CONFIG_BOOTCOMMAND
49 #define CONFIG_BOOTCOMMAND \
50 "ext2load scsi 0:3 01000000 /boot/vmlinuz; zboot 01000000"
53 #if defined(CONFIG_CMD_KGDB)
54 #define CONFIG_KGDB_BAUDRATE 115200
58 * Miscellaneous configurable options
60 #define CONFIG_SYS_CBSIZE 512
62 #define CONFIG_SYS_LOAD_ADDR 0x20000000
64 /*-----------------------------------------------------------------------
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
72 /* allow to overwrite serial and ethaddr */
73 #define CONFIG_ENV_OVERWRITE
75 /*-----------------------------------------------------------------------
76 * Environment configuration
79 /*-----------------------------------------------------------------------
82 #define CONFIG_PCI_CONFIG_HOST_BRIDGE
84 /*-----------------------------------------------------------------------
88 #define CONFIG_TFTP_TSIZE
89 #define CONFIG_BOOTP_BOOTFILESIZE
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"
100 #define CONFIG_OTHBOOTARGS "othbootargs=acpi=off\0"
103 #if defined(CONFIG_DISTRO_DEFAULTS)
104 #define DISTRO_BOOTENV BOOTENV
106 #define DISTRO_BOOTENV
109 #define CONFIG_EXTRA_ENV_SETTINGS \
111 CONFIG_STD_DEVICES_SETTINGS \
112 "pciconfighost=1\0" \
114 "consoledev=ttyS0\0" \
116 "scriptaddr=0x7000000\0" \
117 "kernel_addr_r=0x1000000\0" \
118 "ramdisk_addr_r=0x4000000\0" \
119 "ramdiskfile=initramfs.gz\0"
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"
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"
139 #endif /* __CONFIG_H */