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
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"
48 * Miscellaneous configurable options
50 #define CONFIG_SYS_CBSIZE 512
52 /*-----------------------------------------------------------------------
56 #define CONFIG_SYS_STACK_SIZE (32 * 1024)
57 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
59 /*-----------------------------------------------------------------------
60 * Environment configuration
63 /*-----------------------------------------------------------------------
66 #define CONFIG_PCI_CONFIG_HOST_BRIDGE
68 /*-----------------------------------------------------------------------
72 #define CONFIG_BOOTP_BOOTFILESIZE
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"
82 #define CONFIG_OTHBOOTARGS "othbootargs=acpi=off\0"
85 #if defined(CONFIG_DISTRO_DEFAULTS)
86 #define DISTRO_BOOTENV BOOTENV
88 #define DISTRO_BOOTENV
91 #define CONFIG_EXTRA_ENV_SETTINGS \
93 CONFIG_STD_DEVICES_SETTINGS \
96 "consoledev=ttyS0\0" \
98 "scriptaddr=0x7000000\0" \
99 "kernel_addr_r=0x1000000\0" \
100 "ramdisk_addr_r=0x4000000\0" \
101 "ramdiskfile=initramfs.gz\0"
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"
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"
121 #endif /* __CONFIG_H */