blob: bc9f0a1146a0682704d78ae7711edc0844e63a1c [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Chandan Nath77a73fe2012-01-09 20:38:59 +00002/*
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>
Chandan Nath77a73fe2012-01-09 20:38:59 +000012 */
13
14#ifndef _OMAP_H_
15#define _OMAP_H_
16
Tom Rinicfff4aa2016-08-26 13:30:43 -040017#include <linux/sizes.h>
18
Matt Porter691fbe32013-03-15 10:07:06 +000019#ifdef CONFIG_AM33XX
Tom Rini3a300832013-05-31 10:48:03 -040020#define NON_SECURE_SRAM_START 0x402F0400
21#define NON_SECURE_SRAM_END 0x40310000
Tom Rinicfff4aa2016-08-26 13:30:43 -040022#define NON_SECURE_SRAM_IMG_END 0x4030B800
Tom Rini2a84b012017-05-16 14:46:40 -040023#elif defined(CONFIG_TI816X) || defined(CONFIG_TI814X)
Matt Porter691fbe32013-03-15 10:07:06 +000024#define NON_SECURE_SRAM_START 0x40300000
25#define NON_SECURE_SRAM_END 0x40320000
Tom Rinicfff4aa2016-08-26 13:30:43 -040026#define NON_SECURE_SRAM_IMG_END 0x4031B800
Lokesh Vutla83269d02013-07-30 11:36:28 +053027#elif defined(CONFIG_AM43XX)
28#define NON_SECURE_SRAM_START 0x402F0400
29#define NON_SECURE_SRAM_END 0x40340000
Tom Rinicfff4aa2016-08-26 13:30:43 -040030#define NON_SECURE_SRAM_IMG_END 0x40337DE0
Sourav Poddar7ba4ac52013-12-21 12:50:12 +053031#define QSPI_BASE 0x47900000
Matt Porter691fbe32013-03-15 10:07:06 +000032#endif
Tom Rinicfff4aa2016-08-26 13:30:43 -040033#define SRAM_SCRATCH_SPACE_ADDR (NON_SECURE_SRAM_IMG_END - SZ_1K)
Paul Kocialkowskid5b76242015-07-15 16:02:19 +020034
35/* Boot parameters */
36#ifndef __ASSEMBLY__
37struct omap_boot_parameters {
38 unsigned int reserved;
39 unsigned int boot_device_descriptor;
40 unsigned char boot_device;
41 unsigned char reset_reason;
42};
Semen Protsenkoa8cb0222017-06-02 18:00:00 +030043
44#define DEVICE_TYPE_SHIFT 0x8
45#define DEVICE_TYPE_MASK (0x7 << DEVICE_TYPE_SHIFT)
Paul Kocialkowskid5b76242015-07-15 16:02:19 +020046#endif
47
Chandan Nath77a73fe2012-01-09 20:38:59 +000048#endif