blob: 5b2966a0f73308d2e552d7f768f45a107b05a7be [file] [log] [blame]
Santosh Shilimkar501f0c72011-01-01 19:56:04 +05301/*
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/*
Santosh Shilimkar247c4452012-05-09 20:38:35 +053015 * SAR BANK offsets from base address OMAP44XX/54XX_SAR_RAM_BASE
Santosh Shilimkar501f0c72011-01-01 19:56:04 +053016 */
17#define SAR_BANK1_OFFSET 0x0000
18#define SAR_BANK2_OFFSET 0x1000
19#define SAR_BANK3_OFFSET 0x2000
20#define SAR_BANK4_OFFSET 0x3000
21
Santosh Shilimkarb2b97622010-06-16 22:19:48 +053022/* Scratch pad memory offsets from SAR_BANK1 */
Tero Kristof98d5fe2013-02-06 18:39:20 +053023#define SCU_OFFSET0 0xfe4
24#define SCU_OFFSET1 0xfe8
25#define OMAP_TYPE_OFFSET 0xfec
26#define L2X0_SAVE_OFFSET0 0xff0
27#define L2X0_SAVE_OFFSET1 0xff4
28#define L2X0_AUXCTRL_OFFSET 0xff8
29#define L2X0_PREFETCH_CTRL_OFFSET 0xffc
Santosh Shilimkarb2b97622010-06-16 22:19:48 +053030
31/* CPUx Wakeup Non-Secure Physical Address offsets in SAR_BANK3 */
32#define CPU0_WAKEUP_NS_PA_ADDR_OFFSET 0xa04
33#define CPU1_WAKEUP_NS_PA_ADDR_OFFSET 0xa08
Tony Lindgren0f665de2016-11-07 16:50:11 -070034#define OMAP5_CPU0_WAKEUP_NS_PA_ADDR_OFFSET 0xe00
35#define OMAP5_CPU1_WAKEUP_NS_PA_ADDR_OFFSET 0xe04
Santosh Shilimkarb2b97622010-06-16 22:19:48 +053036
Santosh Shilimkar0f3cf2e2010-06-16 23:29:31 +053037#define SAR_BACKUP_STATUS_OFFSET (SAR_BANK3_OFFSET + 0x500)
38#define SAR_SECURE_RAM_SIZE_OFFSET (SAR_BANK3_OFFSET + 0x504)
39#define SAR_SECRAM_SAVED_AT_OFFSET (SAR_BANK3_OFFSET + 0x508)
40
41/* WakeUpGen save restore offset from OMAP44XX_SAR_RAM_BASE */
42#define WAKEUPGENENB_OFFSET_CPU0 (SAR_BANK3_OFFSET + 0x684)
43#define WAKEUPGENENB_SECURE_OFFSET_CPU0 (SAR_BANK3_OFFSET + 0x694)
44#define WAKEUPGENENB_OFFSET_CPU1 (SAR_BANK3_OFFSET + 0x6a4)
45#define WAKEUPGENENB_SECURE_OFFSET_CPU1 (SAR_BANK3_OFFSET + 0x6b4)
46#define AUXCOREBOOT0_OFFSET (SAR_BANK3_OFFSET + 0x6c4)
47#define AUXCOREBOOT1_OFFSET (SAR_BANK3_OFFSET + 0x6c8)
48#define PTMSYNCREQ_MASK_OFFSET (SAR_BANK3_OFFSET + 0x6cc)
49#define PTMSYNCREQ_EN_OFFSET (SAR_BANK3_OFFSET + 0x6d0)
50#define SAR_BACKUP_STATUS_WAKEUPGEN 0x10
51
Santosh Shilimkar247c4452012-05-09 20:38:35 +053052/* WakeUpGen save restore offset from OMAP54XX_SAR_RAM_BASE */
Santosh Shilimkar13fcef92013-02-06 18:21:53 +053053#define OMAP5_WAKEUPGENENB_OFFSET_CPU0 (SAR_BANK3_OFFSET + 0x9dc)
54#define OMAP5_WAKEUPGENENB_SECURE_OFFSET_CPU0 (SAR_BANK3_OFFSET + 0x9f0)
55#define OMAP5_WAKEUPGENENB_OFFSET_CPU1 (SAR_BANK3_OFFSET + 0xa04)
56#define OMAP5_WAKEUPGENENB_SECURE_OFFSET_CPU1 (SAR_BANK3_OFFSET + 0xa18)
57#define OMAP5_AUXCOREBOOT0_OFFSET (SAR_BANK3_OFFSET + 0xa2c)
58#define OMAP5_AUXCOREBOOT1_OFFSET (SAR_BANK3_OFFSET + 0x930)
59#define OMAP5_AMBA_IF_MODE_OFFSET (SAR_BANK3_OFFSET + 0xa34)
Santosh Shilimkar247c4452012-05-09 20:38:35 +053060#define OMAP5_SAR_BACKUP_STATUS_OFFSET (SAR_BANK3_OFFSET + 0x800)
61
Santosh Shilimkar501f0c72011-01-01 19:56:04 +053062#endif