omap_boot.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * (C) Copyright 2013
  3. * Texas Instruments, <www.ti.com>
  4. *
  5. * Sricharan R <r.sricharan@ti.com>
  6. *
  7. * See file CREDITS for list of people who contributed to this
  8. * project.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of
  13. * the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  23. * MA 02111-1307 USA
  24. */
  25. /* ROM code defines */
  26. /* Boot device */
  27. #define BOOT_DEVICE_MASK 0xFF
  28. #define BOOT_DEVICE_OFFSET 0x8
  29. #define DEV_DESC_PTR_OFFSET 0x4
  30. #define DEV_DATA_PTR_OFFSET 0x18
  31. #define BOOT_MODE_OFFSET 0x8
  32. #define RESET_REASON_OFFSET 0x9
  33. #define CH_FLAGS_OFFSET 0xA
  34. #define CH_FLAGS_CHSETTINGS (0x1 << 0)
  35. #define CH_FLAGS_CHRAM (0x1 << 1)
  36. #define CH_FLAGS_CHFLASH (0x1 << 2)
  37. #define CH_FLAGS_CHMMCSD (0x1 << 3)
  38. #ifndef __ASSEMBLY__
  39. struct omap_boot_parameters {
  40. char *boot_message;
  41. unsigned int mem_boot_descriptor;
  42. unsigned char omap_bootdevice;
  43. unsigned char reset_reason;
  44. unsigned char ch_flags;
  45. unsigned long omap_bootmode;
  46. };
  47. #endif