cardhu.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0
  5. */
  6. #ifndef __CONFIG_H
  7. #define __CONFIG_H
  8. #include <linux/sizes.h>
  9. #include "tegra30-common.h"
  10. /* VDD core PMIC */
  11. #define CONFIG_TEGRA_VDD_CORE_TPS62361B_SET3
  12. /* High-level configuration options */
  13. #define CONFIG_TEGRA_BOARD_STRING "NVIDIA Cardhu"
  14. #define BOARD_EXTRA_ENV_SETTINGS \
  15. "board_name=cardhu-a04\0" \
  16. "fdtfile=tegra30-cardhu-a04.dtb\0"
  17. /* Board-specific serial config */
  18. #define CONFIG_TEGRA_ENABLE_UARTA
  19. #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE
  20. #define CONFIG_MACH_TYPE MACH_TYPE_CARDHU
  21. /* I2C */
  22. #define CONFIG_SYS_I2C_TEGRA
  23. /* SD/MMC */
  24. #define CONFIG_GENERIC_MMC
  25. #define CONFIG_TEGRA_MMC
  26. /* Environment in eMMC, at the end of 2nd "boot sector" */
  27. #define CONFIG_ENV_IS_IN_MMC
  28. #define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
  29. #define CONFIG_SYS_MMC_ENV_DEV 0
  30. #define CONFIG_SYS_MMC_ENV_PART 2
  31. /* SPI */
  32. #define CONFIG_TEGRA_SLINK_CTRLS 6
  33. #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
  34. #define CONFIG_SF_DEFAULT_SPEED 24000000
  35. #define CONFIG_SPI_FLASH_SIZE (4 << 20)
  36. /* USB Host support */
  37. #define CONFIG_USB_EHCI
  38. #define CONFIG_USB_EHCI_TEGRA
  39. /* USB networking support */
  40. #define CONFIG_USB_HOST_ETHER
  41. #define CONFIG_USB_ETHER_ASIX
  42. /* PCI host support */
  43. #define CONFIG_CMD_PCI
  44. /* General networking support */
  45. #include "tegra-common-post.h"
  46. #endif /* __CONFIG_H */