colibri_t30.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Copyright (c) 2013-2016 Stefan Agner
  3. *
  4. * Configuration settings for the Toradex Colibri T30 modules.
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef __CONFIG_H
  9. #define __CONFIG_H
  10. #include <linux/sizes.h>
  11. #include "tegra30-common.h"
  12. #define CONFIG_ARCH_MISC_INIT
  13. /* High-level configuration options */
  14. #define CONFIG_DISPLAY_BOARDINFO_LATE /* Calls show_board_info() */
  15. /* Board-specific serial config */
  16. #define CONFIG_TEGRA_ENABLE_UARTA
  17. #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE
  18. #define CONFIG_MACH_TYPE MACH_TYPE_COLIBRI_T30
  19. /* I2C */
  20. #define CONFIG_SYS_I2C_TEGRA
  21. /* SD/MMC support */
  22. #define CONFIG_GENERIC_MMC
  23. #define CONFIG_TEGRA_MMC
  24. /* Environment in eMMC, before config block at the end of 1st "boot sector" */
  25. #define CONFIG_ENV_IS_IN_MMC
  26. #define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE + \
  27. CONFIG_TDX_CFG_BLOCK_OFFSET)
  28. #define CONFIG_SYS_MMC_ENV_DEV 0
  29. #define CONFIG_SYS_MMC_ENV_PART 1
  30. /* USB host support */
  31. #define CONFIG_USB_EHCI
  32. #define CONFIG_USB_EHCI_TEGRA
  33. /* USB networking support */
  34. #define CONFIG_USB_HOST_ETHER
  35. #define CONFIG_USB_ETHER_ASIX
  36. /* General networking support */
  37. #define CONFIG_IP_DEFRAG
  38. #define CONFIG_TFTP_BLOCKSIZE 16352
  39. #define CONFIG_TFTP_TSIZE
  40. /* Miscellaneous commands */
  41. #define CONFIG_FAT_WRITE
  42. /* Increase console I/O buffer size */
  43. #undef CONFIG_SYS_CBSIZE
  44. #define CONFIG_SYS_CBSIZE 1024
  45. /* Increase arguments buffer size */
  46. #undef CONFIG_SYS_BARGSIZE
  47. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  48. /* Increase print buffer size */
  49. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  50. /* Increase maximum number of arguments */
  51. #undef CONFIG_SYS_MAXARGS
  52. #define CONFIG_SYS_MAXARGS 32
  53. #include "tegra-common-usb-gadget.h"
  54. #include "tegra-common-post.h"
  55. #endif /* __CONFIG_H */