blob: c1c5a09a35c71454e303b242656bfce7a1778c7a [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
Simon Glass880a3cc2014-11-10 18:00:23 -070013/*-----------------------------------------------------------------------
Simon Glass880a3cc2014-11-10 18:00:23 -070014 * CPU Features
15 */
16
Tom Rini65cc0e22022-11-16 13:10:41 -050017#define CFG_SYS_STACK_SIZE (32 * 1024)
Simon Glass880a3cc2014-11-10 18:00:23 -070018
Simon Glass880a3cc2014-11-10 18:00:23 -070019/*-----------------------------------------------------------------------
Simon Glass880a3cc2014-11-10 18:00:23 -070020 * Environment configuration
21 */
Simon Glass880a3cc2014-11-10 18:00:23 -070022
23/*-----------------------------------------------------------------------
Simon Glass880a3cc2014-11-10 18:00:23 -070024 * USB configuration
25 */
Simon Glass880a3cc2014-11-10 18:00:23 -070026
Bin Meng6f1eba42015-03-12 13:08:46 +080027/* Default environment */
Tom Rinid4c8dd12022-12-04 10:13:39 -050028#define CFG_RAMDISK_ADDR 0x4000000
Bin Menga0913cd2018-08-23 08:24:11 -070029#if defined(CONFIG_GENERATE_ACPI_TABLE) || defined(CONFIG_EFI_STUB)
Tom Rinia2c164c2022-12-04 10:13:24 -050030#define CFG_OTHBOOTARGS "othbootargs=\0"
Bin Meng030b9e32016-05-07 07:46:35 -070031#else
Tom Rinia2c164c2022-12-04 10:13:24 -050032#define CFG_OTHBOOTARGS "othbootargs=acpi=off\0"
Bin Meng030b9e32016-05-07 07:46:35 -070033#endif
Bin Meng6f1eba42015-03-12 13:08:46 +080034
Bin Meng039c0312019-08-14 01:23:05 -070035#if defined(CONFIG_DISTRO_DEFAULTS)
36#define DISTRO_BOOTENV BOOTENV
37#else
38#define DISTRO_BOOTENV
Bin Meng68d70a12019-07-28 08:13:58 -070039#endif
40
Simon Glasse5671222021-11-19 13:24:06 -070041#ifndef SPLASH_SETTINGS
42#define SPLASH_SETTINGS
43#endif
44
Tom Rini0613c362022-12-04 10:03:50 -050045#define CFG_EXTRA_ENV_SETTINGS \
Bin Meng039c0312019-08-14 01:23:05 -070046 DISTRO_BOOTENV \
Tom Rinie02e5e52022-12-04 10:13:56 -050047 CFG_STD_DEVICES_SETTINGS \
Simon Glasse5671222021-11-19 13:24:06 -070048 SPLASH_SETTINGS \
Bin Meng54669832015-05-24 00:12:32 +080049 "pciconfighost=1\0" \
Bin Meng6f1eba42015-03-12 13:08:46 +080050 "netdev=eth0\0" \
51 "consoledev=ttyS0\0" \
Tom Rinia2c164c2022-12-04 10:13:24 -050052 CFG_OTHBOOTARGS \
Bin Meng68d70a12019-07-28 08:13:58 -070053 "scriptaddr=0x7000000\0" \
54 "kernel_addr_r=0x1000000\0" \
55 "ramdisk_addr_r=0x4000000\0" \
Bin Meng039c0312019-08-14 01:23:05 -070056 "ramdiskfile=initramfs.gz\0"
57
Bin Meng6f1eba42015-03-12 13:08:46 +080058
Simon Glass880a3cc2014-11-10 18:00:23 -070059#endif /* __CONFIG_H */