1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2011 The Chromium OS Authors.
10 #ifndef __CONFIG_X86_COMMON_H
11 #define __CONFIG_X86_COMMON_H
14 * High Level Configuration Options
17 #define CONFIG_PHYSMEM
19 #define CONFIG_SYS_BOOTM_LEN (16 << 20)
21 /* SATA AHCI storage */
22 #ifdef CONFIG_SCSI_AHCI
24 #define CONFIG_SYS_64BIT_LBA
28 /* Generic TPM interfaced through LPC bus */
29 #define CONFIG_TPM_TIS_BASE_ADDRESS 0xfed40000
31 /*-----------------------------------------------------------------------
32 * Real Time Clock Configuration
34 #define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0
35 #define CONFIG_SYS_ISA_IO CONFIG_SYS_ISA_IO_BASE_ADDRESS
37 /*-----------------------------------------------------------------------
38 * Serial Configuration
40 #define CONFIG_SYS_NS16550_PORT_MAPPED
42 #ifndef CONFIG_BOOTCOMMAND
43 #define CONFIG_BOOTCOMMAND \
44 "ext2load scsi 0:3 01000000 /boot/vmlinuz; zboot 01000000"
47 #if defined(CONFIG_CMD_KGDB)
48 #define CONFIG_KGDB_BAUDRATE 115200
52 * Miscellaneous configurable options
54 #define CONFIG_SYS_CBSIZE 512
56 #define CONFIG_SYS_LOAD_ADDR 0x20000000
58 /*-----------------------------------------------------------------------
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
66 /*-----------------------------------------------------------------------
67 * Environment configuration
70 /*-----------------------------------------------------------------------
73 #define CONFIG_PCI_CONFIG_HOST_BRIDGE
75 /*-----------------------------------------------------------------------
79 #define CONFIG_BOOTP_BOOTFILESIZE
81 /* Default environment */
82 #define CONFIG_ROOTPATH "/opt/nfsroot"
83 #define CONFIG_HOSTNAME "x86"
84 #define CONFIG_BOOTFILE "bzImage"
85 #define CONFIG_LOADADDR 0x1000000
86 #define CONFIG_RAMDISK_ADDR 0x4000000
87 #if defined(CONFIG_GENERATE_ACPI_TABLE) || defined(CONFIG_EFI_STUB)
88 #define CONFIG_OTHBOOTARGS "othbootargs=\0"
90 #define CONFIG_OTHBOOTARGS "othbootargs=acpi=off\0"
93 #if defined(CONFIG_DISTRO_DEFAULTS)
94 #define DISTRO_BOOTENV BOOTENV
96 #define DISTRO_BOOTENV
99 #define CONFIG_EXTRA_ENV_SETTINGS \
101 CONFIG_STD_DEVICES_SETTINGS \
102 "pciconfighost=1\0" \
104 "consoledev=ttyS0\0" \
106 "scriptaddr=0x7000000\0" \
107 "kernel_addr_r=0x1000000\0" \
108 "ramdisk_addr_r=0x4000000\0" \
109 "ramdiskfile=initramfs.gz\0"
112 #define CONFIG_RAMBOOTCOMMAND \
113 "setenv bootargs root=/dev/ram rw " \
114 "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
115 "console=$consoledev,$baudrate $othbootargs;" \
116 "tftpboot $kernel_addr_r $bootfile;" \
117 "tftpboot $ramdisk_addr_r $ramdiskfile;" \
118 "zboot $kernel_addr_r 0 $ramdisk_addr_r $filesize"
120 #define CONFIG_NFSBOOTCOMMAND \
121 "setenv bootargs root=/dev/nfs rw " \
122 "nfsroot=$serverip:$rootpath " \
123 "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
124 "console=$consoledev,$baudrate $othbootargs;" \
125 "tftpboot $kernel_addr_r $bootfile;" \
126 "zboot $kernel_addr_r"
129 #endif /* __CONFIG_H */