tec-ng.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * (C) Copyright 2013
  3. * Avionic Design GmbH <www.avionic-design.de>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __CONFIG_H
  8. #define __CONFIG_H
  9. #include "tegra30-common.h"
  10. /* High-level configuration options */
  11. #define V_PROMPT "Tegra30 (TEC-NG) # "
  12. #define CONFIG_TEGRA_BOARD_STRING "Avionic Design Tamonten™ NG Evaluation Carrier"
  13. /* Board-specific serial config */
  14. #define CONFIG_SERIAL_MULTI
  15. #define CONFIG_TEGRA_ENABLE_UARTD
  16. #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTD_BASE
  17. /* I2C */
  18. #define CONFIG_SYS_I2C_TEGRA
  19. #define CONFIG_CMD_I2C
  20. /* SD/MMC */
  21. #define CONFIG_MMC
  22. #define CONFIG_GENERIC_MMC
  23. #define CONFIG_TEGRA_MMC
  24. #define CONFIG_CMD_MMC
  25. /* Environment in eMMC, at the end of 2nd "boot sector" */
  26. #define CONFIG_ENV_IS_IN_MMC
  27. #define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
  28. #define CONFIG_SYS_MMC_ENV_DEV 0
  29. #define CONFIG_SYS_MMC_ENV_PART 2
  30. /* SPI */
  31. #define CONFIG_TEGRA20_SLINK
  32. #define CONFIG_TEGRA_SLINK_CTRLS 6
  33. #define CONFIG_SPI_FLASH
  34. #define CONFIG_SPI_FLASH_WINBOND
  35. #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
  36. #define CONFIG_SF_DEFAULT_SPEED 24000000
  37. #define CONFIG_CMD_SPI
  38. #define CONFIG_CMD_SF
  39. #define CONFIG_SPI_FLASH_SIZE (4 << 20)
  40. /* USB Host support */
  41. #define CONFIG_USB_EHCI
  42. #define CONFIG_USB_EHCI_TEGRA
  43. #define CONFIG_USB_STORAGE
  44. #define CONFIG_CMD_USB
  45. /* USB networking support */
  46. #define CONFIG_USB_HOST_ETHER
  47. #define CONFIG_USB_ETHER_SMSC95XX
  48. /* General networking support */
  49. #define CONFIG_CMD_NET
  50. #define CONFIG_CMD_DHCP
  51. /* Tag support */
  52. #define CONFIG_CMDLINE_TAG
  53. #define CONFIG_SETUP_MEMORY_TAGS
  54. #define CONFIG_INITRD_TAG
  55. /* support the new (FDT-based) image format */
  56. #define CONFIG_FIT
  57. #include "tegra-common-post.h"
  58. #endif /* __CONFIG_H */