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 | |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 18 | #ifdef CONFIG_AM33XX |
Tom Rini | 3a30083 | 2013-05-31 10:48:03 -0400 | [diff] [blame] | 19 | #define NON_SECURE_SRAM_START 0x402F0400 |
| 20 | #define NON_SECURE_SRAM_END 0x40310000 |
Tom Rini | 45841f6 | 2013-08-20 08:53:43 -0400 | [diff] [blame] | 21 | #define SRAM_SCRATCH_SPACE_ADDR 0x4030B800 |
TENART Antoine | a6be77c | 2013-07-02 12:05:58 +0200 | [diff] [blame] | 22 | #elif defined(CONFIG_TI81XX) |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 23 | #define NON_SECURE_SRAM_START 0x40300000 |
| 24 | #define NON_SECURE_SRAM_END 0x40320000 |
Tom Rini | c513b61 | 2013-06-06 08:57:45 -0400 | [diff] [blame] | 25 | #define SRAM_SCRATCH_SPACE_ADDR 0x4031B800 |
Lokesh Vutla | 83269d0 | 2013-07-30 11:36:28 +0530 | [diff] [blame] | 26 | #elif defined(CONFIG_AM43XX) |
| 27 | #define NON_SECURE_SRAM_START 0x402F0400 |
| 28 | #define NON_SECURE_SRAM_END 0x40340000 |
Lokesh Vutla | b82e6e9 | 2013-12-10 15:02:12 +0530 | [diff] [blame] | 29 | #define SRAM_SCRATCH_SPACE_ADDR 0x40337C00 |
Sekhar Nori | 2ab3c49 | 2013-12-10 15:02:15 +0530 | [diff] [blame] | 30 | #define AM4372_BOARD_NAME_START SRAM_SCRATCH_SPACE_ADDR |
| 31 | #define AM4372_BOARD_NAME_END SRAM_SCRATCH_SPACE_ADDR + 0xC |
Franklin S. Cooper Jr | cc76fc4 | 2014-06-27 13:31:14 -0500 | [diff] [blame] | 32 | #define AM4372_BOARD_VERSION_START SRAM_SCRATCH_SPACE_ADDR + 0xD |
| 33 | #define AM4372_BOARD_VERSION_END SRAM_SCRATCH_SPACE_ADDR + 0x14 |
Sourav Poddar | 7ba4ac5 | 2013-12-21 12:50:12 +0530 | [diff] [blame] | 34 | #define QSPI_BASE 0x47900000 |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 35 | #endif |
Paul Kocialkowski | d5b7624 | 2015-07-15 16:02:19 +0200 | [diff] [blame] | 36 | |
| 37 | /* Boot parameters */ |
| 38 | #ifndef __ASSEMBLY__ |
| 39 | struct omap_boot_parameters { |
| 40 | unsigned int reserved; |
| 41 | unsigned int boot_device_descriptor; |
| 42 | unsigned char boot_device; |
| 43 | unsigned char reset_reason; |
| 44 | }; |
| 45 | #endif |
| 46 | |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 47 | #endif |