omap.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * omap.h
  3. *
  4. * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
  5. *
  6. * Author:
  7. * Chandan Nath <chandan.nath@ti.com>
  8. *
  9. * Derived from OMAP4 work by
  10. * Aneesh V <aneesh@ti.com>
  11. *
  12. * SPDX-License-Identifier: GPL-2.0+
  13. */
  14. #ifndef _OMAP_H_
  15. #define _OMAP_H_
  16. #include <linux/sizes.h>
  17. #ifdef CONFIG_AM33XX
  18. #define NON_SECURE_SRAM_START 0x402F0400
  19. #define NON_SECURE_SRAM_END 0x40310000
  20. #define NON_SECURE_SRAM_IMG_END 0x4030B800
  21. #elif defined(CONFIG_TI816X) || defined(CONFIG_TI814X)
  22. #define NON_SECURE_SRAM_START 0x40300000
  23. #define NON_SECURE_SRAM_END 0x40320000
  24. #define NON_SECURE_SRAM_IMG_END 0x4031B800
  25. #elif defined(CONFIG_AM43XX)
  26. #define NON_SECURE_SRAM_START 0x402F0400
  27. #define NON_SECURE_SRAM_END 0x40340000
  28. #define NON_SECURE_SRAM_IMG_END 0x40337DE0
  29. #define QSPI_BASE 0x47900000
  30. #endif
  31. #define SRAM_SCRATCH_SPACE_ADDR (NON_SECURE_SRAM_IMG_END - SZ_1K)
  32. /* Boot parameters */
  33. #ifndef __ASSEMBLY__
  34. struct omap_boot_parameters {
  35. unsigned int reserved;
  36. unsigned int boot_device_descriptor;
  37. unsigned char boot_device;
  38. unsigned char reset_reason;
  39. };
  40. #define DEVICE_TYPE_SHIFT 0x8
  41. #define DEVICE_TYPE_MASK (0x7 << DEVICE_TYPE_SHIFT)
  42. #endif
  43. #endif