p3450-0000.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2018-2019 NVIDIA Corporation.
  4. */
  5. #ifndef _P3450_0000_H
  6. #define _P3450_0000_H
  7. #include <linux/sizes.h>
  8. #include "tegra210-common.h"
  9. /* High-level configuration options */
  10. #define CONFIG_TEGRA_BOARD_STRING "NVIDIA P3450-0000"
  11. /* Board-specific serial config */
  12. #define CONFIG_TEGRA_ENABLE_UARTA
  13. /* Only MMC/PXE/DHCP for now, add USB back in later when supported */
  14. #define BOOT_TARGET_DEVICES(func) \
  15. func(MMC, mmc, 1) \
  16. func(MMC, mmc, 0) \
  17. func(PXE, pxe, na) \
  18. func(DHCP, dhcp, na)
  19. /* Environment at end of QSPI, in the VER partition */
  20. #define CONFIG_ENV_SPI_MAX_HZ 48000000
  21. #define CONFIG_ENV_SPI_MODE SPI_MODE_0
  22. #define CONFIG_SPI_FLASH_SIZE (4 << 20)
  23. #define CONFIG_PREBOOT
  24. #define BOARD_EXTRA_ENV_SETTINGS \
  25. "preboot=if test -e mmc 1:1 /u-boot-preboot.scr; then " \
  26. "load mmc 1:1 ${scriptaddr} /u-boot-preboot.scr; " \
  27. "source ${scriptaddr}; " \
  28. "fi\0"
  29. /* General networking support */
  30. #include "tegra-common-usb-gadget.h"
  31. #include "tegra-common-post.h"
  32. /* Crystal is 38.4MHz. clk_m runs at half that rate */
  33. #define COUNTER_FREQUENCY 19200000
  34. #endif /* _P3450_0000_H */