blob: 9bf2462010de5f6b82472a7c5af82d371ef8f06d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Glassff7636c2014-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 Glassff7636c2014-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 Glassff7636c2014-11-10 18:00:23 -070017
Simon Glassff7636c2014-11-10 18:00:23 -070018/* Generic TPM interfaced through LPC bus */
Simon Glassff7636c2014-11-10 18:00:23 -070019#define CONFIG_TPM_TIS_BASE_ADDRESS 0xfed40000
20
21/*-----------------------------------------------------------------------
Simon Glassff7636c2014-11-10 18:00:23 -070022 * Serial Configuration
23 */
Simon Glassff7636c2014-11-10 18:00:23 -070024
Simon Glassff7636c2014-11-10 18:00:23 -070025/*
26 * Miscellaneous configurable options
27 */
Simon Glassff7636c2014-11-10 18:00:23 -070028
Simon Glassff7636c2014-11-10 18:00:23 -070029/*-----------------------------------------------------------------------
Simon Glassff7636c2014-11-10 18:00:23 -070030 * CPU Features
31 */
32
Tom Rini6a5dccc2022-11-16 13:10:41 -050033#define CFG_SYS_STACK_SIZE (32 * 1024)
Simon Glassff7636c2014-11-10 18:00:23 -070034
Simon Glassff7636c2014-11-10 18:00:23 -070035/*-----------------------------------------------------------------------
Simon Glassff7636c2014-11-10 18:00:23 -070036 * Environment configuration
37 */
Simon Glassff7636c2014-11-10 18:00:23 -070038
39/*-----------------------------------------------------------------------
Simon Glassff7636c2014-11-10 18:00:23 -070040 * USB configuration
41 */
Simon Glassff7636c2014-11-10 18:00:23 -070042
Bin Mengf95a6c82015-03-12 13:08:46 +080043/* Default environment */
Bin Meng2b81f612016-05-07 07:46:35 -070044#define CONFIG_RAMDISK_ADDR 0x4000000
Bin Mengdc81d842018-08-23 08:24:11 -070045#if defined(CONFIG_GENERATE_ACPI_TABLE) || defined(CONFIG_EFI_STUB)
Bin Meng2b81f612016-05-07 07:46:35 -070046#define CONFIG_OTHBOOTARGS "othbootargs=\0"
47#else
48#define CONFIG_OTHBOOTARGS "othbootargs=acpi=off\0"
49#endif
Bin Mengf95a6c82015-03-12 13:08:46 +080050
Bin Menga5e37ef2019-08-14 01:23:05 -070051#if defined(CONFIG_DISTRO_DEFAULTS)
52#define DISTRO_BOOTENV BOOTENV
53#else
54#define DISTRO_BOOTENV
Bin Meng11ca7162019-07-28 08:13:58 -070055#endif
56
Simon Glass3d1a5082021-11-19 13:24:06 -070057#ifndef SPLASH_SETTINGS
58#define SPLASH_SETTINGS
59#endif
60
Bin Mengf95a6c82015-03-12 13:08:46 +080061#define CONFIG_EXTRA_ENV_SETTINGS \
Bin Menga5e37ef2019-08-14 01:23:05 -070062 DISTRO_BOOTENV \
Bin Mengf95a6c82015-03-12 13:08:46 +080063 CONFIG_STD_DEVICES_SETTINGS \
Simon Glass3d1a5082021-11-19 13:24:06 -070064 SPLASH_SETTINGS \
Bin Mengde5b8b12015-05-24 00:12:32 +080065 "pciconfighost=1\0" \
Bin Mengf95a6c82015-03-12 13:08:46 +080066 "netdev=eth0\0" \
67 "consoledev=ttyS0\0" \
Bin Meng2b81f612016-05-07 07:46:35 -070068 CONFIG_OTHBOOTARGS \
Bin Meng11ca7162019-07-28 08:13:58 -070069 "scriptaddr=0x7000000\0" \
70 "kernel_addr_r=0x1000000\0" \
71 "ramdisk_addr_r=0x4000000\0" \
Bin Menga5e37ef2019-08-14 01:23:05 -070072 "ramdiskfile=initramfs.gz\0"
73
Bin Mengf95a6c82015-03-12 13:08:46 +080074
Simon Glassff7636c2014-11-10 18:00:23 -070075#endif /* __CONFIG_H */