2012-06-19 20:54:34 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2012 Texas Instruments
|
|
|
|
*
|
|
|
|
* This file is licensed under the terms of the GNU General Public
|
|
|
|
* License Version 2. This file is licensed "as is" without any
|
|
|
|
* warranty of any kind, whether express or implied.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_FALLBACKS_H
|
|
|
|
#define __CONFIG_FALLBACKS_H
|
|
|
|
|
2013-04-11 17:35:49 +08:00
|
|
|
#ifdef CONFIG_SPL
|
|
|
|
#ifdef CONFIG_SPL_PAD_TO
|
|
|
|
#ifdef CONFIG_SPL_MAX_SIZE
|
|
|
|
#if CONFIG_SPL_PAD_TO && CONFIG_SPL_PAD_TO < CONFIG_SPL_MAX_SIZE
|
|
|
|
#error CONFIG_SPL_PAD_TO < CONFIG_SPL_MAX_SIZE
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#ifdef CONFIG_SPL_MAX_SIZE
|
|
|
|
#define CONFIG_SPL_PAD_TO CONFIG_SPL_MAX_SIZE
|
|
|
|
#else
|
|
|
|
#define CONFIG_SPL_PAD_TO 0
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2012-06-19 20:54:34 +08:00
|
|
|
#ifndef CONFIG_SYS_BAUDRATE_TABLE
|
|
|
|
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
|
|
|
|
#endif
|
|
|
|
|
2013-02-28 23:03:46 +08:00
|
|
|
/* Rather than repeat this expression each time, add a define for it */
|
2017-05-17 17:25:30 +08:00
|
|
|
#if defined(CONFIG_IDE) || \
|
2017-06-15 11:28:25 +08:00
|
|
|
defined(CONFIG_SATA) || \
|
2016-05-02 01:36:02 +08:00
|
|
|
defined(CONFIG_SCSI) || \
|
2013-02-28 23:03:46 +08:00
|
|
|
defined(CONFIG_CMD_USB) || \
|
2013-02-28 23:03:47 +08:00
|
|
|
defined(CONFIG_CMD_PART) || \
|
2013-10-05 01:42:53 +08:00
|
|
|
defined(CONFIG_CMD_GPT) || \
|
2013-02-28 23:03:46 +08:00
|
|
|
defined(CONFIG_MMC) || \
|
2017-08-22 23:15:17 +08:00
|
|
|
defined(CONFIG_NVME) || \
|
2013-11-11 01:26:56 +08:00
|
|
|
defined(CONFIG_SYSTEMACE) || \
|
2018-01-22 02:29:30 +08:00
|
|
|
(defined(CONFIG_EFI_LOADER) && !defined(CONFIG_SPL_BUILD)) || \
|
2013-11-11 01:26:56 +08:00
|
|
|
defined(CONFIG_SANDBOX)
|
2013-02-28 23:03:46 +08:00
|
|
|
#define HAVE_BLOCK_DEVICE
|
|
|
|
#endif
|
|
|
|
|
2017-01-27 18:00:42 +08:00
|
|
|
#if (CONFIG_IS_ENABLED(PARTITION_UUIDS) || \
|
2017-01-27 18:00:41 +08:00
|
|
|
CONFIG_IS_ENABLED(EFI_PARTITION) || \
|
2017-09-09 18:47:42 +08:00
|
|
|
CONFIG_IS_ENABLED(EFI_LOADER) || \
|
2014-04-02 16:20:04 +08:00
|
|
|
defined(CONFIG_RANDOM_UUID) || \
|
2014-04-02 16:20:05 +08:00
|
|
|
defined(CONFIG_CMD_UUID) || \
|
2014-04-02 16:20:04 +08:00
|
|
|
defined(CONFIG_BOOTP_PXE)) && \
|
|
|
|
!defined(CONFIG_LIB_UUID)
|
|
|
|
#define CONFIG_LIB_UUID
|
|
|
|
#endif
|
|
|
|
|
2014-04-02 16:20:05 +08:00
|
|
|
#if (defined(CONFIG_RANDOM_UUID) || \
|
|
|
|
defined(CONFIG_CMD_UUID)) && \
|
|
|
|
(!defined(CONFIG_LIB_RAND) && \
|
|
|
|
!defined(CONFIG_LIB_HW_RAND))
|
2014-04-02 16:20:04 +08:00
|
|
|
#define CONFIG_LIB_RAND
|
|
|
|
#endif
|
|
|
|
|
2017-08-24 04:58:59 +08:00
|
|
|
/* Console I/O Buffer Size */
|
|
|
|
#ifndef CONFIG_SYS_CBSIZE
|
|
|
|
#if defined(CONFIG_CMD_KGDB)
|
|
|
|
#define CONFIG_SYS_CBSIZE 1024
|
|
|
|
#else
|
|
|
|
#define CONFIG_SYS_CBSIZE 256
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2014-11-28 06:41:44 +08:00
|
|
|
#ifndef CONFIG_SYS_PBSIZE
|
2017-08-24 04:59:01 +08:00
|
|
|
#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
|
2014-11-28 06:41:44 +08:00
|
|
|
#endif
|
|
|
|
|
2017-08-24 04:59:03 +08:00
|
|
|
#ifndef CONFIG_SYS_MAXARGS
|
|
|
|
#define CONFIG_SYS_MAXARGS 16
|
|
|
|
#endif
|
|
|
|
|
2014-05-28 17:33:33 +08:00
|
|
|
#ifndef CONFIG_FIT_SIGNATURE
|
|
|
|
#define CONFIG_IMAGE_FORMAT_LEGACY
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DISABLE_IMAGE_LEGACY
|
|
|
|
#undef CONFIG_IMAGE_FORMAT_LEGACY
|
|
|
|
#endif
|
|
|
|
|
2014-12-10 23:55:47 +08:00
|
|
|
#ifdef CONFIG_DM_I2C
|
|
|
|
# ifdef CONFIG_SYS_I2C
|
|
|
|
# error "Cannot define CONFIG_SYS_I2C when CONFIG_DM_I2C is used"
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2016-03-14 09:07:35 +08:00
|
|
|
#ifndef CONFIG_CMDLINE
|
|
|
|
#undef CONFIG_CMDLINE_EDITING
|
|
|
|
#undef CONFIG_SYS_LONGHELP
|
|
|
|
#endif
|
|
|
|
|
2012-06-19 20:54:34 +08:00
|
|
|
#endif /* __CONFIG_FALLBACKS_H */
|