2012-06-19 12:54:34 +00: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 09:35:49 +00: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 12:54:34 +00:00
|
|
|
#ifndef CONFIG_SYS_BAUDRATE_TABLE
|
|
|
|
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
|
|
|
|
#endif
|
|
|
|
|
2017-06-02 12:24:02 +00:00
|
|
|
#if defined(CONFIG_ENV_IS_IN_FAT) && !defined(CONFIG_FS_FAT)
|
2012-10-22 06:43:50 +00:00
|
|
|
#define CONFIG_FS_FAT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if (defined(CONFIG_CMD_EXT4) || defined(CONFIG_CMD_EXT2)) && \
|
|
|
|
!defined(CONFIG_FS_EXT4)
|
|
|
|
#define CONFIG_FS_EXT4
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(CONFIG_CMD_EXT4_WRITE) && !defined(CONFIG_EXT4_WRITE)
|
|
|
|
#define CONFIG_EXT4_WRITE
|
|
|
|
#endif
|
|
|
|
|
2013-02-28 15:03:46 +00:00
|
|
|
/* Rather than repeat this expression each time, add a define for it */
|
2017-05-17 09:25:30 +00:00
|
|
|
#if defined(CONFIG_IDE) || \
|
2017-06-15 03:28:25 +00:00
|
|
|
defined(CONFIG_SATA) || \
|
2016-05-01 17:36:02 +00:00
|
|
|
defined(CONFIG_SCSI) || \
|
2013-02-28 15:03:46 +00:00
|
|
|
defined(CONFIG_CMD_USB) || \
|
2013-02-28 15:03:47 +00:00
|
|
|
defined(CONFIG_CMD_PART) || \
|
2013-10-04 17:42:53 +00:00
|
|
|
defined(CONFIG_CMD_GPT) || \
|
2013-02-28 15:03:46 +00:00
|
|
|
defined(CONFIG_MMC) || \
|
2017-08-22 15:15:17 +00:00
|
|
|
defined(CONFIG_NVME) || \
|
2013-11-10 17:26:56 +00:00
|
|
|
defined(CONFIG_SYSTEMACE) || \
|
|
|
|
defined(CONFIG_SANDBOX)
|
2013-02-28 15:03:46 +00:00
|
|
|
#define HAVE_BLOCK_DEVICE
|
|
|
|
#endif
|
|
|
|
|
2017-01-27 10:00:42 +00:00
|
|
|
#if (CONFIG_IS_ENABLED(PARTITION_UUIDS) || \
|
2017-01-27 10:00:41 +00:00
|
|
|
CONFIG_IS_ENABLED(EFI_PARTITION) || \
|
2014-04-02 08:20:04 +00:00
|
|
|
defined(CONFIG_RANDOM_UUID) || \
|
2014-04-02 08:20:05 +00:00
|
|
|
defined(CONFIG_CMD_UUID) || \
|
2014-04-02 08:20:04 +00:00
|
|
|
defined(CONFIG_BOOTP_PXE)) && \
|
|
|
|
!defined(CONFIG_LIB_UUID)
|
|
|
|
#define CONFIG_LIB_UUID
|
|
|
|
#endif
|
|
|
|
|
2014-04-02 08:20:05 +00:00
|
|
|
#if (defined(CONFIG_RANDOM_UUID) || \
|
|
|
|
defined(CONFIG_CMD_UUID)) && \
|
|
|
|
(!defined(CONFIG_LIB_RAND) && \
|
|
|
|
!defined(CONFIG_LIB_HW_RAND))
|
2014-04-02 08:20:04 +00:00
|
|
|
#define CONFIG_LIB_RAND
|
|
|
|
#endif
|
|
|
|
|
2017-08-23 20:58:59 +00: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-27 22:41:44 +00:00
|
|
|
#ifndef CONFIG_SYS_PBSIZE
|
2017-08-23 20:59:01 +00:00
|
|
|
#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
|
2014-11-27 22:41:44 +00:00
|
|
|
#endif
|
|
|
|
|
2014-05-28 09:33:33 +00: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 15:55:47 +00: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 01:07:35 +00:00
|
|
|
#ifndef CONFIG_CMDLINE
|
|
|
|
#undef CONFIG_CMDLINE_EDITING
|
|
|
|
#undef CONFIG_SYS_LONGHELP
|
|
|
|
#endif
|
|
|
|
|
2012-06-19 12:54:34 +00:00
|
|
|
#endif /* __CONFIG_FALLBACKS_H */
|