blob: 47962dadf59c9b11da0c7975b2f2b92830876e2d [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
Matt Porter691fbe32013-03-15 10:07:06 +000018#ifdef CONFIG_AM33XX
Tom Rini3a300832013-05-31 10:48:03 -040019#define NON_SECURE_SRAM_START 0x402F0400
20#define NON_SECURE_SRAM_END 0x40310000
Tom Rini45841f62013-08-20 08:53:43 -040021#define SRAM_SCRATCH_SPACE_ADDR 0x4030B800
TENART Antoinea6be77c2013-07-02 12:05:58 +020022#elif defined(CONFIG_TI81XX)
Matt Porter691fbe32013-03-15 10:07:06 +000023#define NON_SECURE_SRAM_START 0x40300000
24#define NON_SECURE_SRAM_END 0x40320000
Tom Rinic513b612013-06-06 08:57:45 -040025#define SRAM_SCRATCH_SPACE_ADDR 0x4031B800
Lokesh Vutla83269d02013-07-30 11:36:28 +053026#elif defined(CONFIG_AM43XX)
27#define NON_SECURE_SRAM_START 0x402F0400
28#define NON_SECURE_SRAM_END 0x40340000
Lokesh Vutlab82e6e92013-12-10 15:02:12 +053029#define SRAM_SCRATCH_SPACE_ADDR 0x40337C00
Sekhar Nori2ab3c492013-12-10 15:02:15 +053030#define AM4372_BOARD_NAME_START SRAM_SCRATCH_SPACE_ADDR
31#define AM4372_BOARD_NAME_END SRAM_SCRATCH_SPACE_ADDR + 0xC
Franklin S. Cooper Jrcc76fc42014-06-27 13:31:14 -050032#define AM4372_BOARD_VERSION_START SRAM_SCRATCH_SPACE_ADDR + 0xD
33#define AM4372_BOARD_VERSION_END SRAM_SCRATCH_SPACE_ADDR + 0x14
Sourav Poddar7ba4ac52013-12-21 12:50:12 +053034#define QSPI_BASE 0x47900000
Matt Porter691fbe32013-03-15 10:07:06 +000035#endif
Paul Kocialkowskid5b76242015-07-15 16:02:19 +020036
37/* Boot parameters */
38#ifndef __ASSEMBLY__
39struct 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 Nath77a73fe2012-01-09 20:38:59 +000047#endif