omap_boot.h 782 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * (C) Copyright 2013
  3. * Texas Instruments, <www.ti.com>
  4. *
  5. * Sricharan R <r.sricharan@ti.com>
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. /* ROM code defines */
  10. /* Boot device */
  11. #define BOOT_DEVICE_MASK 0xFF
  12. #define BOOT_DEVICE_OFFSET 0x8
  13. #define DEV_DESC_PTR_OFFSET 0x4
  14. #define DEV_DATA_PTR_OFFSET 0x18
  15. #define BOOT_MODE_OFFSET 0x8
  16. #define RESET_REASON_OFFSET 0x9
  17. #define CH_FLAGS_OFFSET 0xA
  18. #define CH_FLAGS_CHSETTINGS (0x1 << 0)
  19. #define CH_FLAGS_CHRAM (0x1 << 1)
  20. #define CH_FLAGS_CHFLASH (0x1 << 2)
  21. #define CH_FLAGS_CHMMCSD (0x1 << 3)
  22. #ifndef __ASSEMBLY__
  23. struct omap_boot_parameters {
  24. char *boot_message;
  25. unsigned int mem_boot_descriptor;
  26. unsigned char omap_bootdevice;
  27. unsigned char reset_reason;
  28. unsigned char ch_flags;
  29. unsigned long omap_bootmode;
  30. };
  31. #endif