blob: 8bd0716c08d2fd81da7a5de49e4762211041c7a2 [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
Simon Glass880a3cc2014-11-10 18:00:23 -07008#ifndef __CONFIG_X86_COMMON_H
9#define __CONFIG_X86_COMMON_H
10
Simon Glass880a3cc2014-11-10 18:00:23 -070011/*-----------------------------------------------------------------------
Simon Glass880a3cc2014-11-10 18:00:23 -070012 * USB configuration
13 */
Simon Glass880a3cc2014-11-10 18:00:23 -070014
Bin Meng6f1eba42015-03-12 13:08:46 +080015/* Default environment */
Tom Rinid4c8dd12022-12-04 10:13:39 -050016#define CFG_RAMDISK_ADDR 0x4000000
Bin Menga0913cd2018-08-23 08:24:11 -070017#if defined(CONFIG_GENERATE_ACPI_TABLE) || defined(CONFIG_EFI_STUB)
Tom Rinia2c164c2022-12-04 10:13:24 -050018#define CFG_OTHBOOTARGS "othbootargs=\0"
Bin Meng030b9e32016-05-07 07:46:35 -070019#else
Tom Rinia2c164c2022-12-04 10:13:24 -050020#define CFG_OTHBOOTARGS "othbootargs=acpi=off\0"
Bin Meng030b9e32016-05-07 07:46:35 -070021#endif
Bin Meng6f1eba42015-03-12 13:08:46 +080022
Simon Glasse5671222021-11-19 13:24:06 -070023#ifndef SPLASH_SETTINGS
24#define SPLASH_SETTINGS
25#endif
26
Tom Rini0613c362022-12-04 10:03:50 -050027#define CFG_EXTRA_ENV_SETTINGS \
Tom Rinie02e5e52022-12-04 10:13:56 -050028 CFG_STD_DEVICES_SETTINGS \
Simon Glasse5671222021-11-19 13:24:06 -070029 SPLASH_SETTINGS \
Bin Meng54669832015-05-24 00:12:32 +080030 "pciconfighost=1\0" \
Bin Meng6f1eba42015-03-12 13:08:46 +080031 "netdev=eth0\0" \
32 "consoledev=ttyS0\0" \
Tom Rinia2c164c2022-12-04 10:13:24 -050033 CFG_OTHBOOTARGS \
Bin Meng68d70a12019-07-28 08:13:58 -070034 "scriptaddr=0x7000000\0" \
35 "kernel_addr_r=0x1000000\0" \
36 "ramdisk_addr_r=0x4000000\0" \
Bin Meng039c0312019-08-14 01:23:05 -070037 "ramdiskfile=initramfs.gz\0"
38
Bin Meng6f1eba42015-03-12 13:08:46 +080039
Simon Glass880a3cc2014-11-10 18:00:23 -070040#endif /* __CONFIG_H */