spl.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * (C) Copyright 2012
  3. * Texas Instruments, <www.ti.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef _ASM_ARCH_SPL_H_
  8. #define _ASM_SPL_H_
  9. #if defined(CONFIG_TI816X)
  10. #define BOOT_DEVICE_XIP 2
  11. #define BOOT_DEVICE_NAND 3
  12. #define BOOT_DEVICE_MMC1 6
  13. #define BOOT_DEVICE_MMC2 5
  14. #define BOOT_DEVICE_UART 0x43
  15. #define BOOT_DEVICE_MMC2_2 0xFF
  16. #else
  17. #define BOOT_DEVICE_XIP 2
  18. #define BOOT_DEVICE_NAND 5
  19. #if defined(CONFIG_AM33XX) || defined(CONFIG_AM43XX)
  20. #define BOOT_DEVICE_MMC1 8
  21. #define BOOT_DEVICE_MMC2 9 /* eMMC or daughter card */
  22. #elif defined(CONFIG_TI814X)
  23. #define BOOT_DEVICE_MMC1 9
  24. #define BOOT_DEVICE_MMC2 8 /* ROM only supports 2nd instance */
  25. #endif
  26. #define BOOT_DEVICE_SPI 11
  27. #define BOOT_DEVICE_UART 65
  28. #define BOOT_DEVICE_USBETH 68
  29. #define BOOT_DEVICE_CPGMAC 70
  30. #define BOOT_DEVICE_MMC2_2 0xFF
  31. #endif
  32. #if defined(CONFIG_AM33XX) || defined(CONFIG_AM43XX)
  33. #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
  34. #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
  35. #elif defined(CONFIG_TI81XX)
  36. #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2
  37. #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1
  38. #endif
  39. #endif