Blame view

include/configs/x86-common.h 3.64 KB
83d290c56   Tom Rini   SPDX: Convert all...
1
  /* SPDX-License-Identifier: GPL-2.0+ */
880a3cc43   Simon Glass   x86: config: Move...
2
3
4
5
  /*
   * Copyright (c) 2011 The Chromium OS Authors.
   * (C) Copyright 2008
   * Graeme Russ, graeme.russ@gmail.com.
880a3cc43   Simon Glass   x86: config: Move...
6
7
8
9
10
11
12
13
14
15
16
   */
  
  #include <asm/ibmpc.h>
  
  #ifndef __CONFIG_X86_COMMON_H
  #define __CONFIG_X86_COMMON_H
  
  /*
   * High Level Configuration Options
   * (easy to change)
   */
880a3cc43   Simon Glass   x86: config: Move...
17
  #define CONFIG_PHYSMEM
880a3cc43   Simon Glass   x86: config: Move...
18

880a3cc43   Simon Glass   x86: config: Move...
19
  #define CONFIG_LMB
880a3cc43   Simon Glass   x86: config: Move...
20

880a3cc43   Simon Glass   x86: config: Move...
21
22
23
24
25
  #undef CONFIG_ZLIB
  #undef CONFIG_GZIP
  #define CONFIG_SYS_BOOTM_LEN		(16 << 20)
  
  /* SATA AHCI storage */
880a3cc43   Simon Glass   x86: config: Move...
26
  #ifdef CONFIG_SCSI_AHCI
a40abfcc0   Bin Meng   x86: Add CONFIG_L...
27
  #define CONFIG_LBA48
880a3cc43   Simon Glass   x86: config: Move...
28
  #define CONFIG_SYS_64BIT_LBA
880a3cc43   Simon Glass   x86: config: Move...
29
30
31
  #endif
  
  /* Generic TPM interfaced through LPC bus */
880a3cc43   Simon Glass   x86: config: Move...
32
33
34
35
36
  #define CONFIG_TPM_TIS_BASE_ADDRESS        0xfed40000
  
  /*-----------------------------------------------------------------------
   * Real Time Clock Configuration
   */
880a3cc43   Simon Glass   x86: config: Move...
37
38
39
40
41
42
  #define CONFIG_SYS_ISA_IO_BASE_ADDRESS	0
  #define CONFIG_SYS_ISA_IO      CONFIG_SYS_ISA_IO_BASE_ADDRESS
  
  /*-----------------------------------------------------------------------
   * Serial Configuration
   */
880a3cc43   Simon Glass   x86: config: Move...
43
  #define CONFIG_SYS_NS16550_PORT_MAPPED
880a3cc43   Simon Glass   x86: config: Move...
44
45
46
  /*-----------------------------------------------------------------------
   * Command line configuration.
   */
880a3cc43   Simon Glass   x86: config: Move...
47

368e86d98   Heinrich Schuchardt   configs: x86: all...
48
  #ifndef CONFIG_BOOTCOMMAND
880a3cc43   Simon Glass   x86: config: Move...
49
50
  #define CONFIG_BOOTCOMMAND	\
  	"ext2load scsi 0:3 01000000 /boot/vmlinuz; zboot 01000000"
368e86d98   Heinrich Schuchardt   configs: x86: all...
51
  #endif
880a3cc43   Simon Glass   x86: config: Move...
52
53
54
55
56
57
58
59
  
  #if defined(CONFIG_CMD_KGDB)
  #define CONFIG_KGDB_BAUDRATE			115200
  #endif
  
  /*
   * Miscellaneous configurable options
   */
880a3cc43   Simon Glass   x86: config: Move...
60
  #define CONFIG_SYS_CBSIZE			512
880a3cc43   Simon Glass   x86: config: Move...
61
62
63
64
65
66
  
  #define CONFIG_SYS_MEMTEST_START		0x00100000
  #define CONFIG_SYS_MEMTEST_END			0x01000000
  #define CONFIG_SYS_LOAD_ADDR			0x20000000
  
  /*-----------------------------------------------------------------------
880a3cc43   Simon Glass   x86: config: Move...
67
68
   * CPU Features
   */
880a3cc43   Simon Glass   x86: config: Move...
69
70
71
  #define CONFIG_SYS_STACK_SIZE			(32 * 1024)
  #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_TEXT_BASE
  #define CONFIG_SYS_MALLOC_LEN			0x200000
880a3cc43   Simon Glass   x86: config: Move...
72
73
74
75
76
  
  /* allow to overwrite serial and ethaddr */
  #define CONFIG_ENV_OVERWRITE
  
  /*-----------------------------------------------------------------------
880a3cc43   Simon Glass   x86: config: Move...
77
78
   * Environment configuration
   */
880a3cc43   Simon Glass   x86: config: Move...
79
80
81
82
83
  #define CONFIG_ENV_SIZE			0x01000
  
  /*-----------------------------------------------------------------------
   * PCI configuration
   */
3ff2f001c   Bin Meng   x86: Enable CONFI...
84
  #define CONFIG_PCI_CONFIG_HOST_BRIDGE
880a3cc43   Simon Glass   x86: config: Move...
85
86
87
88
  
  /*-----------------------------------------------------------------------
   * USB configuration
   */
880a3cc43   Simon Glass   x86: config: Move...
89

880a3cc43   Simon Glass   x86: config: Move...
90
  #define CONFIG_TFTP_TSIZE
880a3cc43   Simon Glass   x86: config: Move...
91
  #define CONFIG_BOOTP_BOOTFILESIZE
880a3cc43   Simon Glass   x86: config: Move...
92

6f1eba49a   Bin Meng   x86: Add ramboot ...
93
94
  /* Default environment */
  #define CONFIG_ROOTPATH		"/opt/nfsroot"
5bc0543df   Mario Six   treewide: Convert...
95
  #define CONFIG_HOSTNAME		"x86"
6f1eba49a   Bin Meng   x86: Add ramboot ...
96
97
  #define CONFIG_BOOTFILE		"bzImage"
  #define CONFIG_LOADADDR		0x1000000
030b9e34c   Bin Meng   x86: Remove acpi=...
98
  #define CONFIG_RAMDISK_ADDR	0x4000000
a0913cdf7   Bin Meng   x86: efi: payload...
99
  #if defined(CONFIG_GENERATE_ACPI_TABLE) || defined(CONFIG_EFI_STUB)
030b9e34c   Bin Meng   x86: Remove acpi=...
100
101
102
103
  #define CONFIG_OTHBOOTARGS	"othbootargs=\0"
  #else
  #define CONFIG_OTHBOOTARGS	"othbootargs=acpi=off\0"
  #endif
6f1eba49a   Bin Meng   x86: Add ramboot ...
104

039c031e0   Bin Meng   x86: qemu: Fix bu...
105
106
107
108
  #if defined(CONFIG_DISTRO_DEFAULTS)
  #define DISTRO_BOOTENV		BOOTENV
  #else
  #define DISTRO_BOOTENV
68d70a1cf   Bin Meng   x86: qemu: Fix no...
109
  #endif
6f1eba49a   Bin Meng   x86: Add ramboot ...
110
  #define CONFIG_EXTRA_ENV_SETTINGS			\
039c031e0   Bin Meng   x86: qemu: Fix bu...
111
  	DISTRO_BOOTENV					\
6f1eba49a   Bin Meng   x86: Add ramboot ...
112
  	CONFIG_STD_DEVICES_SETTINGS			\
546698320   Bin Meng   x86: qemu: Make h...
113
  	"pciconfighost=1\0"				\
6f1eba49a   Bin Meng   x86: Add ramboot ...
114
115
  	"netdev=eth0\0"					\
  	"consoledev=ttyS0\0"				\
030b9e34c   Bin Meng   x86: Remove acpi=...
116
  	CONFIG_OTHBOOTARGS				\
68d70a1cf   Bin Meng   x86: qemu: Fix no...
117
118
119
  	"scriptaddr=0x7000000\0"			\
  	"kernel_addr_r=0x1000000\0"			\
  	"ramdisk_addr_r=0x4000000\0"			\
039c031e0   Bin Meng   x86: qemu: Fix bu...
120
  	"ramdiskfile=initramfs.gz\0"
6f1eba49a   Bin Meng   x86: Add ramboot ...
121
122
123
124
125
  
  #define CONFIG_RAMBOOTCOMMAND				\
  	"setenv bootargs root=/dev/ram rw "		\
  	"ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
  	"console=$consoledev,$baudrate $othbootargs;"	\
68d70a1cf   Bin Meng   x86: qemu: Fix no...
126
127
128
  	"tftpboot $kernel_addr_r $bootfile;"		\
  	"tftpboot $ramdisk_addr_r $ramdiskfile;"	\
  	"zboot $kernel_addr_r 0 $ramdisk_addr_r $filesize"
6f1eba49a   Bin Meng   x86: Add ramboot ...
129
130
131
132
133
134
  
  #define CONFIG_NFSBOOTCOMMAND				\
  	"setenv bootargs root=/dev/nfs rw "		\
  	"nfsroot=$serverip:$rootpath "			\
  	"ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
  	"console=$consoledev,$baudrate $othbootargs;"	\
68d70a1cf   Bin Meng   x86: qemu: Fix no...
135
136
  	"tftpboot $kernel_addr_r $bootfile;"		\
  	"zboot $kernel_addr_r"
880a3cc43   Simon Glass   x86: config: Move...
137

f7c3638c9   Stefan Roese   x86: x86-common.h...
138

880a3cc43   Simon Glass   x86: config: Move...
139
  #endif	/* __CONFIG_H */