spl.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. #elif defined(CONFIG_AM43XX)
  16. #define BOOT_DEVICE_NOR 1
  17. #define BOOT_DEVICE_NAND 5
  18. #define BOOT_DEVICE_MMC1 7
  19. #define BOOT_DEVICE_MMC2 8
  20. #define BOOT_DEVICE_SPI 10
  21. #define BOOT_DEVICE_USB 13
  22. #define BOOT_DEVICE_UART 65
  23. #define BOOT_DEVICE_CPGMAC 71
  24. #else
  25. #define BOOT_DEVICE_XIP 2
  26. #define BOOT_DEVICE_NAND 5
  27. #if defined(CONFIG_AM33XX)
  28. #define BOOT_DEVICE_MMC1 8
  29. #define BOOT_DEVICE_MMC2 9 /* eMMC or daughter card */
  30. #elif defined(CONFIG_TI814X)
  31. #define BOOT_DEVICE_MMC1 9
  32. #define BOOT_DEVICE_MMC2 8 /* ROM only supports 2nd instance */
  33. #endif
  34. #define BOOT_DEVICE_SPI 11
  35. #define BOOT_DEVICE_UART 65
  36. #define BOOT_DEVICE_USBETH 68
  37. #define BOOT_DEVICE_CPGMAC 70
  38. #endif
  39. #define BOOT_DEVICE_MMC2_2 0xFF
  40. #if defined(CONFIG_AM33XX)
  41. #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
  42. #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
  43. #elif defined(CONFIG_AM43XX)
  44. #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
  45. #ifdef CONFIG_SPL_USB_SUPPORT
  46. #define MMC_BOOT_DEVICES_END BOOT_DEVICE_USB
  47. #else
  48. #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
  49. #endif
  50. #elif defined(CONFIG_TI81XX)
  51. #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2
  52. #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1
  53. #endif
  54. #endif