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
|
|
|
|
|
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
|
|
|
|
|
2021-02-09 19:52:45 +08:00
|
|
|
#if CONFIG_IS_ENABLED(DM_I2C)
|
2014-12-10 23:55:47 +08:00
|
|
|
# ifdef CONFIG_SYS_I2C
|
|
|
|
# error "Cannot define CONFIG_SYS_I2C when CONFIG_DM_I2C is used"
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2012-06-19 20:54:34 +08:00
|
|
|
#endif /* __CONFIG_FALLBACKS_H */
|