omap.h 1.2 KB

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