omap4-sar-layout.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * omap4-sar-layout.h: OMAP4 SAR RAM layout header file
  3. *
  4. * Copyright (C) 2011 Texas Instruments, Inc.
  5. * Santosh Shilimkar <santosh.shilimkar@ti.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef OMAP_ARCH_OMAP4_SAR_LAYOUT_H
  12. #define OMAP_ARCH_OMAP4_SAR_LAYOUT_H
  13. /*
  14. * SAR BANK offsets from base address OMAP44XX_SAR_RAM_BASE
  15. */
  16. #define SAR_BANK1_OFFSET 0x0000
  17. #define SAR_BANK2_OFFSET 0x1000
  18. #define SAR_BANK3_OFFSET 0x2000
  19. #define SAR_BANK4_OFFSET 0x3000
  20. /* Scratch pad memory offsets from SAR_BANK1 */
  21. #define SCU_OFFSET0 0xd00
  22. #define SCU_OFFSET1 0xd04
  23. #define OMAP_TYPE_OFFSET 0xd10
  24. /* CPUx Wakeup Non-Secure Physical Address offsets in SAR_BANK3 */
  25. #define CPU0_WAKEUP_NS_PA_ADDR_OFFSET 0xa04
  26. #define CPU1_WAKEUP_NS_PA_ADDR_OFFSET 0xa08
  27. #define SAR_BACKUP_STATUS_OFFSET (SAR_BANK3_OFFSET + 0x500)
  28. #define SAR_SECURE_RAM_SIZE_OFFSET (SAR_BANK3_OFFSET + 0x504)
  29. #define SAR_SECRAM_SAVED_AT_OFFSET (SAR_BANK3_OFFSET + 0x508)
  30. /* WakeUpGen save restore offset from OMAP44XX_SAR_RAM_BASE */
  31. #define WAKEUPGENENB_OFFSET_CPU0 (SAR_BANK3_OFFSET + 0x684)
  32. #define WAKEUPGENENB_SECURE_OFFSET_CPU0 (SAR_BANK3_OFFSET + 0x694)
  33. #define WAKEUPGENENB_OFFSET_CPU1 (SAR_BANK3_OFFSET + 0x6a4)
  34. #define WAKEUPGENENB_SECURE_OFFSET_CPU1 (SAR_BANK3_OFFSET + 0x6b4)
  35. #define AUXCOREBOOT0_OFFSET (SAR_BANK3_OFFSET + 0x6c4)
  36. #define AUXCOREBOOT1_OFFSET (SAR_BANK3_OFFSET + 0x6c8)
  37. #define PTMSYNCREQ_MASK_OFFSET (SAR_BANK3_OFFSET + 0x6cc)
  38. #define PTMSYNCREQ_EN_OFFSET (SAR_BANK3_OFFSET + 0x6d0)
  39. #define SAR_BACKUP_STATUS_WAKEUPGEN 0x10
  40. #endif