dfu.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com
  3. *
  4. * Environment variable definitions for DFU on TI boards.
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #define DFU_ALT_INFO_MMC \
  9. "dfu_alt_info_mmc=" \
  10. "boot part 0 1;" \
  11. "rootfs part 0 2;" \
  12. "MLO fat 0 1;" \
  13. "MLO.raw raw 0x100 0x100;" \
  14. "u-boot.img.raw raw 0x300 0x1000;" \
  15. "u-env.raw raw 0x1300 0x200;" \
  16. "spl-os-args.raw raw 0x1500 0x200;" \
  17. "spl-os-image.raw raw 0x1700 0x6900;" \
  18. "spl-os-args fat 0 1;" \
  19. "spl-os-image fat 0 1;" \
  20. "u-boot.img fat 0 1;" \
  21. "uEnv.txt fat 0 1\0"
  22. #define DFU_ALT_INFO_EMMC \
  23. "dfu_alt_info_emmc=" \
  24. "rawemmc raw 0 3751936;" \
  25. "boot part 1 1;" \
  26. "rootfs part 1 2;" \
  27. "MLO fat 1 1;" \
  28. "MLO.raw raw 0x100 0x100;" \
  29. "u-boot.img.raw raw 0x300 0x1000;" \
  30. "u-env.raw raw 0x1300 0x200;" \
  31. "spl-os-args.raw raw 0x1500 0x200;" \
  32. "spl-os-image.raw raw 0x1700 0x6900;" \
  33. "spl-os-args fat 1 1;" \
  34. "spl-os-image fat 1 1;" \
  35. "u-boot.img fat 1 1;" \
  36. "uEnv.txt fat 1 1\0"
  37. #ifdef CONFIG_NAND
  38. #define DFU_ALT_INFO_NAND \
  39. "dfu_alt_info_nand=" \
  40. "SPL part 0 1;" \
  41. "SPL.backup1 part 0 2;" \
  42. "SPL.backup2 part 0 3;" \
  43. "SPL.backup3 part 0 4;" \
  44. "u-boot part 0 5;" \
  45. "u-boot-spl-os part 0 6;" \
  46. "kernel part 0 8;" \
  47. "rootfs part 0 9\0"
  48. #else
  49. #define DFU_ALT_INFO_NAND ""
  50. #endif
  51. #define DFU_ALT_INFO_RAM \
  52. "dfu_alt_info_ram=" \
  53. "kernel ram 0x80200000 0x4000000;" \
  54. "fdt ram 0x80f80000 0x80000;" \
  55. "ramdisk ram 0x81000000 0x4000000\0"
  56. #define DFU_ALT_INFO_QSPI_XIP \
  57. "dfu_alt_info_qspi=" \
  58. "u-boot.bin raw 0x0 0x080000;" \
  59. "u-boot.backup raw 0x080000 0x080000;" \
  60. "u-boot-spl-os raw 0x100000 0x010000;" \
  61. "u-boot-env raw 0x110000 0x010000;" \
  62. "u-boot-env.backup raw 0x120000 0x010000;" \
  63. "kernel raw 0x130000 0x800000\0"
  64. #define DFU_ALT_INFO_QSPI \
  65. "dfu_alt_info_qspi=" \
  66. "MLO raw 0x0 0x040000;" \
  67. "u-boot.img raw 0x040000 0x0100000;" \
  68. "u-boot-spl-os raw 0x140000 0x080000;" \
  69. "u-boot-env raw 0x1C0000 0x010000;" \
  70. "u-boot-env.backup raw 0x1D0000 0x010000;" \
  71. "kernel raw 0x1E0000 0x800000\0"