Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 1 | /* |
| 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 Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 12 | * SPDX-License-Identifier: GPL-2.0+ |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #ifndef _OMAP_H_ |
| 16 | #define _OMAP_H_ |
| 17 | |
Tom Rini | cfff4aa | 2016-08-26 13:30:43 -0400 | [diff] [blame] | 18 | #include <linux/sizes.h> |
| 19 | |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 20 | #ifdef CONFIG_AM33XX |
Tom Rini | 3a30083 | 2013-05-31 10:48:03 -0400 | [diff] [blame] | 21 | #define NON_SECURE_SRAM_START 0x402F0400 |
| 22 | #define NON_SECURE_SRAM_END 0x40310000 |
Tom Rini | cfff4aa | 2016-08-26 13:30:43 -0400 | [diff] [blame] | 23 | #define NON_SECURE_SRAM_IMG_END 0x4030B800 |
Tom Rini | 2a84b01 | 2017-05-16 14:46:40 -0400 | [diff] [blame] | 24 | #elif defined(CONFIG_TI816X) || defined(CONFIG_TI814X) |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 25 | #define NON_SECURE_SRAM_START 0x40300000 |
| 26 | #define NON_SECURE_SRAM_END 0x40320000 |
Tom Rini | cfff4aa | 2016-08-26 13:30:43 -0400 | [diff] [blame] | 27 | #define NON_SECURE_SRAM_IMG_END 0x4031B800 |
Lokesh Vutla | 83269d0 | 2013-07-30 11:36:28 +0530 | [diff] [blame] | 28 | #elif defined(CONFIG_AM43XX) |
| 29 | #define NON_SECURE_SRAM_START 0x402F0400 |
| 30 | #define NON_SECURE_SRAM_END 0x40340000 |
Tom Rini | cfff4aa | 2016-08-26 13:30:43 -0400 | [diff] [blame] | 31 | #define NON_SECURE_SRAM_IMG_END 0x40337DE0 |
Sourav Poddar | 7ba4ac5 | 2013-12-21 12:50:12 +0530 | [diff] [blame] | 32 | #define QSPI_BASE 0x47900000 |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 33 | #endif |
Tom Rini | cfff4aa | 2016-08-26 13:30:43 -0400 | [diff] [blame] | 34 | #define SRAM_SCRATCH_SPACE_ADDR (NON_SECURE_SRAM_IMG_END - SZ_1K) |
Paul Kocialkowski | d5b7624 | 2015-07-15 16:02:19 +0200 | [diff] [blame] | 35 | |
| 36 | /* Boot parameters */ |
| 37 | #ifndef __ASSEMBLY__ |
| 38 | struct 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 Protsenko | a8cb022 | 2017-06-02 18:00:00 +0300 | [diff] [blame^] | 44 | |
| 45 | #define DEVICE_TYPE_SHIFT 0x8 |
| 46 | #define DEVICE_TYPE_MASK (0x7 << DEVICE_TYPE_SHIFT) |
Paul Kocialkowski | d5b7624 | 2015-07-15 16:02:19 +0200 | [diff] [blame] | 47 | #endif |
| 48 | |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 49 | #endif |