config_fallbacks.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright 2012 Texas Instruments
  3. *
  4. * This file is licensed under the terms of the GNU General Public
  5. * License Version 2. This file is licensed "as is" without any
  6. * warranty of any kind, whether express or implied.
  7. */
  8. #ifndef __CONFIG_FALLBACKS_H
  9. #define __CONFIG_FALLBACKS_H
  10. #ifdef CONFIG_SPL
  11. #ifdef CONFIG_SPL_PAD_TO
  12. #ifdef CONFIG_SPL_MAX_SIZE
  13. #if CONFIG_SPL_PAD_TO && CONFIG_SPL_PAD_TO < CONFIG_SPL_MAX_SIZE
  14. #error CONFIG_SPL_PAD_TO < CONFIG_SPL_MAX_SIZE
  15. #endif
  16. #endif
  17. #else
  18. #ifdef CONFIG_SPL_MAX_SIZE
  19. #define CONFIG_SPL_PAD_TO CONFIG_SPL_MAX_SIZE
  20. #else
  21. #define CONFIG_SPL_PAD_TO 0
  22. #endif
  23. #endif
  24. #endif
  25. #ifndef CONFIG_SYS_BAUDRATE_TABLE
  26. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  27. #endif
  28. /* Console I/O Buffer Size */
  29. #ifndef CONFIG_SYS_CBSIZE
  30. #if defined(CONFIG_CMD_KGDB)
  31. #define CONFIG_SYS_CBSIZE 1024
  32. #else
  33. #define CONFIG_SYS_CBSIZE 256
  34. #endif
  35. #endif
  36. #ifndef CONFIG_SYS_PBSIZE
  37. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  38. #endif
  39. #ifndef CONFIG_SYS_MAXARGS
  40. #define CONFIG_SYS_MAXARGS 16
  41. #endif
  42. #ifdef CONFIG_DM_I2C
  43. # ifdef CONFIG_SYS_I2C
  44. # error "Cannot define CONFIG_SYS_I2C when CONFIG_DM_I2C is used"
  45. # endif
  46. #endif
  47. #endif /* __CONFIG_FALLBACKS_H */