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