blob: 3e17b53dde2dc23e937f35a44a57ee471f86b5be [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Glass880a3cc2014-11-10 18:00:23 -07002/*
3 * Copyright (c) 2011 The Chromium OS Authors.
4 * (C) Copyright 2008
5 * Graeme Russ, graeme.russ@gmail.com.
Simon Glass880a3cc2014-11-10 18:00:23 -07006 */
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 */
Simon Glass880a3cc2014-11-10 18:00:23 -070017
Simon Glass880a3cc2014-11-10 18:00:23 -070018/* Generic TPM interfaced through LPC bus */
Simon Glass880a3cc2014-11-10 18:00:23 -070019#define CONFIG_TPM_TIS_BASE_ADDRESS 0xfed40000
20
21/*-----------------------------------------------------------------------
Simon Glass880a3cc2014-11-10 18:00:23 -070022 * Serial Configuration
23 */
Simon Glass880a3cc2014-11-10 18:00:23 -070024
Simon Glass880a3cc2014-11-10 18:00:23 -070025/*
26 * Miscellaneous configurable options
27 */
Simon Glass880a3cc2014-11-10 18:00:23 -070028
Simon Glass880a3cc2014-11-10 18:00:23 -070029/*-----------------------------------------------------------------------
Simon Glass880a3cc2014-11-10 18:00:23 -070030 * CPU Features
31 */
32
Tom Rini65cc0e22022-11-16 13:10:41 -050033#define CFG_SYS_STACK_SIZE (32 * 1024)
Simon Glass880a3cc2014-11-10 18:00:23 -070034
Simon Glass880a3cc2014-11-10 18:00:23 -070035/*-----------------------------------------------------------------------
Simon Glass880a3cc2014-11-10 18:00:23 -070036 * Environment configuration
37 */
Simon Glass880a3cc2014-11-10 18:00:23 -070038
39/*-----------------------------------------------------------------------
Simon Glass880a3cc2014-11-10 18:00:23 -070040 * USB configuration
41 */
Simon Glass880a3cc2014-11-10 18:00:23 -070042
Bin Meng6f1eba42015-03-12 13:08:46 +080043/* Default environment */
44#define CONFIG_ROOTPATH "/opt/nfsroot"
Mario Six5bc05432018-03-28 14:38:20 +020045#define CONFIG_HOSTNAME "x86"
Bin Meng030b9e32016-05-07 07:46:35 -070046#define CONFIG_RAMDISK_ADDR 0x4000000
Bin Menga0913cd2018-08-23 08:24:11 -070047#if defined(CONFIG_GENERATE_ACPI_TABLE) || defined(CONFIG_EFI_STUB)
Bin Meng030b9e32016-05-07 07:46:35 -070048#define CONFIG_OTHBOOTARGS "othbootargs=\0"
49#else
50#define CONFIG_OTHBOOTARGS "othbootargs=acpi=off\0"
51#endif
Bin Meng6f1eba42015-03-12 13:08:46 +080052
Bin Meng039c0312019-08-14 01:23:05 -070053#if defined(CONFIG_DISTRO_DEFAULTS)
54#define DISTRO_BOOTENV BOOTENV
55#else
56#define DISTRO_BOOTENV
Bin Meng68d70a12019-07-28 08:13:58 -070057#endif
58
Simon Glasse5671222021-11-19 13:24:06 -070059#ifndef SPLASH_SETTINGS
60#define SPLASH_SETTINGS
61#endif
62
Bin Meng6f1eba42015-03-12 13:08:46 +080063#define CONFIG_EXTRA_ENV_SETTINGS \
Bin Meng039c0312019-08-14 01:23:05 -070064 DISTRO_BOOTENV \
Bin Meng6f1eba42015-03-12 13:08:46 +080065 CONFIG_STD_DEVICES_SETTINGS \
Simon Glasse5671222021-11-19 13:24:06 -070066 SPLASH_SETTINGS \
Bin Meng54669832015-05-24 00:12:32 +080067 "pciconfighost=1\0" \
Bin Meng6f1eba42015-03-12 13:08:46 +080068 "netdev=eth0\0" \
69 "consoledev=ttyS0\0" \
Bin Meng030b9e32016-05-07 07:46:35 -070070 CONFIG_OTHBOOTARGS \
Bin Meng68d70a12019-07-28 08:13:58 -070071 "scriptaddr=0x7000000\0" \
72 "kernel_addr_r=0x1000000\0" \
73 "ramdisk_addr_r=0x4000000\0" \
Bin Meng039c0312019-08-14 01:23:05 -070074 "ramdiskfile=initramfs.gz\0"
75
Bin Meng6f1eba42015-03-12 13:08:46 +080076
Simon Glass880a3cc2014-11-10 18:00:23 -070077#endif /* __CONFIG_H */