colibri_t20.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2012 Lucas Stach
  4. *
  5. * Configuration settings for the Toradex Colibri T20 modules.
  6. */
  7. #ifndef __CONFIG_H
  8. #define __CONFIG_H
  9. #include "tegra20-common.h"
  10. /* High-level configuration options */
  11. /* Board-specific serial config */
  12. #define CONFIG_TEGRA_ENABLE_UARTA
  13. #define CONFIG_TEGRA_UARTA_SDIO1
  14. #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE
  15. #define CONFIG_MACH_TYPE MACH_TYPE_COLIBRI_TEGRA2
  16. /* I2C */
  17. #define CONFIG_SYS_I2C_TEGRA
  18. /* USB host support */
  19. #define CONFIG_USB_EHCI_TEGRA
  20. #define CONFIG_USB_MAX_CONTROLLER_COUNT 3
  21. /* USB networking support */
  22. /* General networking support */
  23. #define CONFIG_IP_DEFRAG
  24. #define CONFIG_TFTP_BLOCKSIZE 1536
  25. #define CONFIG_TFTP_TSIZE
  26. /* LCD support */
  27. #define CONFIG_LCD_LOGO
  28. /* NAND support */
  29. #define CONFIG_TEGRA_NAND
  30. #define CONFIG_SYS_MAX_NAND_DEVICE 1
  31. /* Dynamic MTD partition support */
  32. #define CONFIG_MTD_PARTITIONS
  33. #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
  34. /* Environment in NAND, 64K is a bit excessive but erase block is 512K anyway */
  35. #define CONFIG_ENV_OFFSET (SZ_2M)
  36. #undef CONFIG_ENV_SIZE /* undef size from tegra20-common.h */
  37. #define CONFIG_ENV_SIZE (SZ_64K)
  38. #define BOARD_EXTRA_ENV_SETTINGS \
  39. "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"
  40. /* Increase console I/O buffer size */
  41. #undef CONFIG_SYS_CBSIZE
  42. #define CONFIG_SYS_CBSIZE 1024
  43. /* Increase arguments buffer size */
  44. #undef CONFIG_SYS_BARGSIZE
  45. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  46. /* Increase maximum number of arguments */
  47. #undef CONFIG_SYS_MAXARGS
  48. #define CONFIG_SYS_MAXARGS 32
  49. #include "tegra-common-usb-gadget.h"
  50. #include "tegra-common-post.h"
  51. #endif /* __CONFIG_H */