blob: d2c5df84b54f234a2d474a19ea7e59d72523c3d5 [file] [log] [blame]
Chandan Nath77a73fe2012-01-09 20:38:59 +00001/*
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 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020012 * SPDX-License-Identifier: GPL-2.0+
Chandan Nath77a73fe2012-01-09 20:38:59 +000013 */
14
15#ifndef _OMAP_H_
16#define _OMAP_H_
17
Tom Rinicfff4aa2016-08-26 13:30:43 -040018#include <linux/sizes.h>
19
Matt Porter691fbe32013-03-15 10:07:06 +000020#ifdef CONFIG_AM33XX
Tom Rini3a300832013-05-31 10:48:03 -040021#define NON_SECURE_SRAM_START 0x402F0400
22#define NON_SECURE_SRAM_END 0x40310000
Tom Rinicfff4aa2016-08-26 13:30:43 -040023#define NON_SECURE_SRAM_IMG_END 0x4030B800
Tom Rini2a84b012017-05-16 14:46:40 -040024#elif defined(CONFIG_TI816X) || defined(CONFIG_TI814X)
Matt Porter691fbe32013-03-15 10:07:06 +000025#define NON_SECURE_SRAM_START 0x40300000
26#define NON_SECURE_SRAM_END 0x40320000
Tom Rinicfff4aa2016-08-26 13:30:43 -040027#define NON_SECURE_SRAM_IMG_END 0x4031B800
Lokesh Vutla83269d02013-07-30 11:36:28 +053028#elif defined(CONFIG_AM43XX)
29#define NON_SECURE_SRAM_START 0x402F0400
30#define NON_SECURE_SRAM_END 0x40340000
Tom Rinicfff4aa2016-08-26 13:30:43 -040031#define NON_SECURE_SRAM_IMG_END 0x40337DE0
Sourav Poddar7ba4ac52013-12-21 12:50:12 +053032#define QSPI_BASE 0x47900000
Matt Porter691fbe32013-03-15 10:07:06 +000033#endif
Tom Rinicfff4aa2016-08-26 13:30:43 -040034#define SRAM_SCRATCH_SPACE_ADDR (NON_SECURE_SRAM_IMG_END - SZ_1K)
Paul Kocialkowskid5b76242015-07-15 16:02:19 +020035
36/* Boot parameters */
37#ifndef __ASSEMBLY__
38struct omap_boot_parameters {
39 unsigned int reserved;
40 unsigned int boot_device_descriptor;
41 unsigned char boot_device;
42 unsigned char reset_reason;
43};
Semen Protsenkoa8cb0222017-06-02 18:00:00 +030044
45#define DEVICE_TYPE_SHIFT 0x8
46#define DEVICE_TYPE_MASK (0x7 << DEVICE_TYPE_SHIFT)
Paul Kocialkowskid5b76242015-07-15 16:02:19 +020047#endif
48
Chandan Nath77a73fe2012-01-09 20:38:59 +000049#endif