apalis_t30.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2014-2016 Marcel Ziswiler
  4. *
  5. * Configuration settings for the Toradex Apalis T30 modules.
  6. */
  7. #ifndef __CONFIG_H
  8. #define __CONFIG_H
  9. #include <linux/sizes.h>
  10. #include "tegra30-common.h"
  11. /* Board-specific serial config */
  12. #define CONFIG_TEGRA_ENABLE_UARTA
  13. #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE
  14. #define CONFIG_MACH_TYPE MACH_TYPE_APALIS_T30
  15. /* PCI networking support */
  16. #define CONFIG_E1000_NO_NVM
  17. /* General networking support */
  18. #define CONFIG_TFTP_TSIZE
  19. /* Increase console I/O buffer size */
  20. #undef CONFIG_SYS_CBSIZE
  21. #define CONFIG_SYS_CBSIZE 1024
  22. /* Increase arguments buffer size */
  23. #undef CONFIG_SYS_BARGSIZE
  24. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  25. /* Increase maximum number of arguments */
  26. #undef CONFIG_SYS_MAXARGS
  27. #define CONFIG_SYS_MAXARGS 32
  28. #define UBOOT_UPDATE \
  29. "uboot_hwpart=1\0" \
  30. "uboot_blk=0\0" \
  31. "set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff && " \
  32. "setexpr blkcnt ${blkcnt} / 0x200\0" \
  33. "update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} && " \
  34. "mmc write ${loadaddr} ${uboot_blk} ${blkcnt}\0" \
  35. #define BOARD_EXTRA_ENV_SETTINGS \
  36. UBOOT_UPDATE
  37. #include "tegra-common-usb-gadget.h"
  38. #include "tegra-common-post.h"
  39. #endif /* __CONFIG_H */