blob: d0adcfd75eeafc520fd6549bdfc0de0d999f4177 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Glassc861fbf2011-10-03 19:26:47 +00002/*
3 * Copyright (c) 2011 The Chromium OS Authors.
Simon Glassc861fbf2011-10-03 19:26:47 +00004 */
5
6#ifndef __CONFIG_H
7#define __CONFIG_H
8
Simon Glass1c12bce2016-07-04 11:57:52 -06009#ifndef CONFIG_SPL_BUILD
Simon Glass42d3b292014-06-11 23:29:43 -060010#define CONFIG_IO_TRACE
Simon Glass1c12bce2016-07-04 11:57:52 -060011#endif
Simon Glass42d3b292014-06-11 23:29:43 -060012
Thomas Chou9961a0b2015-10-30 15:35:52 +080013#ifndef CONFIG_TIMER
Rob Herring28c860b2013-11-08 08:40:44 -060014#define CONFIG_SYS_TIMER_RATE 1000000
Thomas Chou9961a0b2015-10-30 15:35:52 +080015#endif
Rob Herring28c860b2013-11-08 08:40:44 -060016
Simon Glassb53e94b2014-07-10 22:23:32 -060017#define CONFIG_MALLOC_F_ADDR 0x0010000
Simon Glassc861fbf2011-10-03 19:26:47 +000018
Simon Glassc861fbf2011-10-03 19:26:47 +000019#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
20
Simon Glass2c072c92014-02-27 13:26:25 -070021#define CONFIG_PHYSMEM
Simon Glassc861fbf2011-10-03 19:26:47 +000022
23/* Size of our emulated memory */
Heinrich Schuchardte85497a2020-06-07 18:47:35 +020024#define SB_CONCAT(x, y) x ## y
25#define SB_TO_UL(s) SB_CONCAT(s, UL)
Simon Glassa733b062013-04-26 02:53:43 +000026#define CONFIG_SYS_SDRAM_BASE 0
Heinrich Schuchardte85497a2020-06-07 18:47:35 +020027#define CONFIG_SYS_SDRAM_SIZE \
28 (SB_TO_UL(CONFIG_SANDBOX_RAM_SIZE_MB) << 20)
Simon Glassa733b062013-04-26 02:53:43 +000029#define CONFIG_SYS_MONITOR_BASE 0
Simon Glassc861fbf2011-10-03 19:26:47 +000030
Simon Glassc861fbf2011-10-03 19:26:47 +000031#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\
32 115200}
Simon Glassc861fbf2011-10-03 19:26:47 +000033
Joe Hershberger1f5bc522015-04-08 01:41:25 -050034#define CONFIG_KEEP_SERVERADDR
35#define CONFIG_UDP_CHECKSUM
Joe Hershberger1f5bc522015-04-08 01:41:25 -050036#define CONFIG_TIMESTAMP
Joe Hershbergerf3e0c372015-03-22 17:09:22 -050037#define CONFIG_BOOTP_SERVERIP
Simon Glassc861fbf2011-10-03 19:26:47 +000038
Simon Glassad0e4632014-03-22 17:12:58 -060039#ifndef SANDBOX_NO_SDL
Simon Glass2c072c92014-02-27 13:26:25 -070040#define CONFIG_SANDBOX_SDL
Simon Glassad0e4632014-03-22 17:12:58 -060041#endif
42
Simon Glass1c12bce2016-07-04 11:57:52 -060043#ifndef CONFIG_SPL_BUILD
Simon Glass74c6dc12016-05-01 11:36:23 -060044#define CONFIG_SYS_IDE_MAXBUS 1
45#define CONFIG_SYS_ATA_IDE0_OFFSET 0
46#define CONFIG_SYS_IDE_MAXDEVICE 2
47#define CONFIG_SYS_ATA_BASE_ADDR 0x100
48#define CONFIG_SYS_ATA_DATA_OFFSET 0
49#define CONFIG_SYS_ATA_REG_OFFSET 1
50#define CONFIG_SYS_ATA_ALT_OFFSET 2
51#define CONFIG_SYS_ATA_STRIDE 4
Simon Glass1c12bce2016-07-04 11:57:52 -060052#endif
Simon Glass74c6dc12016-05-01 11:36:23 -060053
Simon Glasse8c0a252016-05-01 11:36:25 -060054#define CONFIG_SCSI_AHCI_PLAT
55#define CONFIG_SYS_SCSI_MAX_DEVICE 2
56#define CONFIG_SYS_SCSI_MAX_SCSI_ID 8
57#define CONFIG_SYS_SCSI_MAX_LUN 4
58
Simon Glass199a1202016-05-01 11:36:27 -060059#define CONFIG_SYS_SATA_MAX_DEVICE 2
60
Simon Glassc861fbf2011-10-03 19:26:47 +000061#endif