spl.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2012
  4. * Texas Instruments, <www.ti.com>
  5. */
  6. #ifndef _ASM_ARCH_SPL_H_
  7. #define _ASM_ARCH_SPL_H_
  8. #define BOOT_DEVICE_NONE 0x00
  9. #define BOOT_DEVICE_MMC2_2 0xFF
  10. #if defined(CONFIG_TI814X)
  11. #define BOOT_DEVICE_XIP 0x01
  12. #define BOOT_DEVICE_XIPWAIT 0x02
  13. #define BOOT_DEVICE_NAND 0x05
  14. #define BOOT_DEVICE_NAND_I2C 0x06
  15. #define BOOT_DEVICE_MMC2 0x08 /* ROM only supports 2nd instance. */
  16. #define BOOT_DEVICE_MMC1 0x09
  17. #define BOOT_DEVICE_SPI 0x15
  18. #define BOOT_DEVICE_UART 0x41
  19. #define BOOT_DEVICE_USBETH 0x44
  20. #define BOOT_DEVICE_CPGMAC 0x46
  21. #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2
  22. #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1
  23. #elif defined(CONFIG_TI816X)
  24. #define BOOT_DEVICE_XIP 0x01
  25. #define BOOT_DEVICE_XIPWAIT 0x02
  26. #define BOOT_DEVICE_NAND 0x03
  27. #define BOOT_DEVICE_ONENAND 0x04
  28. #define BOOT_DEVICE_MMC2 0x05 /* ROM only supports 2nd instance. */
  29. #define BOOT_DEVICE_MMC1 0x06
  30. #define BOOT_DEVICE_UART 0x43
  31. #define BOOT_DEVICE_USB 0x45
  32. #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2
  33. #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1
  34. #elif defined(CONFIG_AM33XX)
  35. #define BOOT_DEVICE_XIP 0x01
  36. #define BOOT_DEVICE_XIPWAIT 0x02
  37. #define BOOT_DEVICE_NAND 0x05
  38. #define BOOT_DEVICE_NAND_I2C 0x06
  39. #define BOOT_DEVICE_MMC1 0x08
  40. #define BOOT_DEVICE_MMC2 0x09
  41. #define BOOT_DEVICE_SPI 0x0B
  42. #define BOOT_DEVICE_UART 0x41
  43. #define BOOT_DEVICE_USBETH 0x44
  44. #define BOOT_DEVICE_CPGMAC 0x46
  45. #define BOOT_DEVICE_ONENAND 0xFF /* ROM does not support OneNAND. */
  46. #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
  47. #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
  48. #elif defined(CONFIG_AM43XX)
  49. #define BOOT_DEVICE_NOR 0x01
  50. #define BOOT_DEVICE_NAND 0x05
  51. #define BOOT_DEVICE_MMC1 0x07
  52. #define BOOT_DEVICE_MMC2 0x08
  53. #define BOOT_DEVICE_SPI 0x0A
  54. #define BOOT_DEVICE_USB 0x0D
  55. #define BOOT_DEVICE_UART 0x41
  56. #define BOOT_DEVICE_USBETH 0x45
  57. #define BOOT_DEVICE_CPGMAC 0x47
  58. #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
  59. #ifdef CONFIG_SPL_USB_SUPPORT
  60. #define MMC_BOOT_DEVICES_END BOOT_DEVICE_USB
  61. #else
  62. #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
  63. #endif
  64. #endif
  65. #endif