colibri_t20.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. /* Board-specific serial config */
  11. #define CONFIG_TEGRA_ENABLE_UARTA
  12. #define CONFIG_TEGRA_UARTA_SDIO1
  13. #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE
  14. #define CONFIG_MACH_TYPE MACH_TYPE_COLIBRI_TEGRA2
  15. /* LCD support */
  16. #define CONFIG_LCD_LOGO
  17. /* NAND support */
  18. #define CONFIG_TEGRA_NAND
  19. #define CONFIG_SYS_MAX_NAND_DEVICE 1
  20. #define UBOOT_UPDATE \
  21. "update_uboot=nand erase.part u-boot && " \
  22. "nand write ${loadaddr} u-boot ${filesize}\0" \
  23. /* Environment in NAND, 64K is a bit excessive but erase block is 512K anyway */
  24. #define BOARD_EXTRA_ENV_SETTINGS \
  25. "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
  26. UBOOT_UPDATE
  27. /* Increase console I/O buffer size */
  28. #undef CONFIG_SYS_CBSIZE
  29. #define CONFIG_SYS_CBSIZE 1024
  30. /* Increase arguments buffer size */
  31. #undef CONFIG_SYS_BARGSIZE
  32. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  33. /* Increase maximum number of arguments */
  34. #undef CONFIG_SYS_MAXARGS
  35. #define CONFIG_SYS_MAXARGS 32
  36. #include "tegra-common-usb-gadget.h"
  37. #include "tegra-common-post.h"
  38. #endif /* __CONFIG_H */