126750c8aSTom Rini /* 226750c8aSTom Rini * Copyright 2012 Texas Instruments 326750c8aSTom Rini * 426750c8aSTom Rini * This file is licensed under the terms of the GNU General Public 526750c8aSTom Rini * License Version 2. This file is licensed "as is" without any 626750c8aSTom Rini * warranty of any kind, whether express or implied. 726750c8aSTom Rini */ 826750c8aSTom Rini 926750c8aSTom Rini #ifndef __CONFIG_FALLBACKS_H 1026750c8aSTom Rini #define __CONFIG_FALLBACKS_H 1126750c8aSTom Rini 126113d3f2SBenoît Thébaudeau #ifdef CONFIG_SPL 136113d3f2SBenoît Thébaudeau #ifdef CONFIG_SPL_PAD_TO 146113d3f2SBenoît Thébaudeau #ifdef CONFIG_SPL_MAX_SIZE 156113d3f2SBenoît Thébaudeau #if CONFIG_SPL_PAD_TO && CONFIG_SPL_PAD_TO < CONFIG_SPL_MAX_SIZE 166113d3f2SBenoît Thébaudeau #error CONFIG_SPL_PAD_TO < CONFIG_SPL_MAX_SIZE 176113d3f2SBenoît Thébaudeau #endif 186113d3f2SBenoît Thébaudeau #endif 196113d3f2SBenoît Thébaudeau #else 206113d3f2SBenoît Thébaudeau #ifdef CONFIG_SPL_MAX_SIZE 216113d3f2SBenoît Thébaudeau #define CONFIG_SPL_PAD_TO CONFIG_SPL_MAX_SIZE 226113d3f2SBenoît Thébaudeau #else 236113d3f2SBenoît Thébaudeau #define CONFIG_SPL_PAD_TO 0 246113d3f2SBenoît Thébaudeau #endif 256113d3f2SBenoît Thébaudeau #endif 266113d3f2SBenoît Thébaudeau #endif 276113d3f2SBenoît Thébaudeau 2826750c8aSTom Rini #ifndef CONFIG_SYS_BAUDRATE_TABLE 2926750c8aSTom Rini #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } 3026750c8aSTom Rini #endif 3126750c8aSTom Rini 3272f09606SThomas Petazzoni /* Console I/O Buffer Size */ 3372f09606SThomas Petazzoni #ifndef CONFIG_SYS_CBSIZE 3472f09606SThomas Petazzoni #if defined(CONFIG_CMD_KGDB) 3572f09606SThomas Petazzoni #define CONFIG_SYS_CBSIZE 1024 3672f09606SThomas Petazzoni #else 3772f09606SThomas Petazzoni #define CONFIG_SYS_CBSIZE 256 3872f09606SThomas Petazzoni #endif 3972f09606SThomas Petazzoni #endif 4072f09606SThomas Petazzoni 4131cc2c85SFabio Estevam #ifndef CONFIG_SYS_PBSIZE 4280c914f1SThomas Petazzoni #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) 4331cc2c85SFabio Estevam #endif 4431cc2c85SFabio Estevam 45*bb939d7aSThomas Petazzoni #ifndef CONFIG_SYS_MAXARGS 46*bb939d7aSThomas Petazzoni #define CONFIG_SYS_MAXARGS 16 47*bb939d7aSThomas Petazzoni #endif 48*bb939d7aSThomas Petazzoni 49c6202d85SSimon Glass #ifdef CONFIG_DM_I2C 50c6202d85SSimon Glass # ifdef CONFIG_SYS_I2C 51c6202d85SSimon Glass # error "Cannot define CONFIG_SYS_I2C when CONFIG_DM_I2C is used" 52c6202d85SSimon Glass # endif 53c6202d85SSimon Glass #endif 54c6202d85SSimon Glass 5526750c8aSTom Rini #endif /* __CONFIG_FALLBACKS_H */ 56