colibri_t30.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2013-2016 Stefan Agner
  4. *
  5. * Configuration settings for the Toradex Colibri T30 modules.
  6. */
  7. #ifndef __CONFIG_H
  8. #define __CONFIG_H
  9. #include <linux/sizes.h>
  10. #include "tegra30-common.h"
  11. /* High-level configuration options */
  12. /* Board-specific serial config */
  13. #define CONFIG_TEGRA_ENABLE_UARTA
  14. #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE
  15. #define CONFIG_MACH_TYPE MACH_TYPE_COLIBRI_T30
  16. /* Environment in eMMC, before config block at the end of 1st "boot sector" */
  17. #define CONFIG_SYS_MMC_ENV_DEV 0
  18. #define CONFIG_SYS_MMC_ENV_PART 1
  19. /* General networking support */
  20. #define CONFIG_TFTP_TSIZE
  21. /* Increase console I/O buffer size */
  22. #undef CONFIG_SYS_CBSIZE
  23. #define CONFIG_SYS_CBSIZE 1024
  24. /* Increase arguments buffer size */
  25. #undef CONFIG_SYS_BARGSIZE
  26. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  27. /* Increase maximum number of arguments */
  28. #undef CONFIG_SYS_MAXARGS
  29. #define CONFIG_SYS_MAXARGS 32
  30. #define UBOOT_UPDATE \
  31. "uboot_hwpart=1\0" \
  32. "uboot_blk=0\0" \
  33. "set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff && " \
  34. "setexpr blkcnt ${blkcnt} / 0x200\0" \
  35. "update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} && " \
  36. "mmc write ${loadaddr} ${uboot_blk} ${blkcnt}\0" \
  37. #define BOARD_EXTRA_ENV_SETTINGS \
  38. UBOOT_UPDATE
  39. #include "tegra-common-usb-gadget.h"
  40. #include "tegra-common-post.h"
  41. #endif /* __CONFIG_H */