2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2012-01-09 20:38:59 +00:00
|
|
|
/*
|
|
|
|
* omap.h
|
|
|
|
*
|
2023-11-01 20:56:03 +00:00
|
|
|
* Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
|
2012-01-09 20:38:59 +00:00
|
|
|
*
|
|
|
|
* Author:
|
|
|
|
* Chandan Nath <chandan.nath@ti.com>
|
|
|
|
*
|
|
|
|
* Derived from OMAP4 work by
|
|
|
|
* Aneesh V <aneesh@ti.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _OMAP_H_
|
|
|
|
#define _OMAP_H_
|
|
|
|
|
2016-08-26 17:30:43 +00:00
|
|
|
#include <linux/sizes.h>
|
|
|
|
|
2013-03-15 10:07:06 +00:00
|
|
|
#ifdef CONFIG_AM33XX
|
2013-05-31 14:48:03 +00:00
|
|
|
#define NON_SECURE_SRAM_START 0x402F0400
|
|
|
|
#define NON_SECURE_SRAM_END 0x40310000
|
2016-08-26 17:30:43 +00:00
|
|
|
#define NON_SECURE_SRAM_IMG_END 0x4030B800
|
2013-07-30 06:06:28 +00:00
|
|
|
#elif defined(CONFIG_AM43XX)
|
|
|
|
#define NON_SECURE_SRAM_START 0x402F0400
|
|
|
|
#define NON_SECURE_SRAM_END 0x40340000
|
2016-08-26 17:30:43 +00:00
|
|
|
#define NON_SECURE_SRAM_IMG_END 0x40337DE0
|
2013-12-21 07:20:12 +00:00
|
|
|
#define QSPI_BASE 0x47900000
|
2013-03-15 10:07:06 +00:00
|
|
|
#endif
|
2016-08-26 17:30:43 +00:00
|
|
|
#define SRAM_SCRATCH_SPACE_ADDR (NON_SECURE_SRAM_IMG_END - SZ_1K)
|
2015-07-15 14:02:19 +00:00
|
|
|
|
|
|
|
/* Boot parameters */
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
struct omap_boot_parameters {
|
|
|
|
unsigned int reserved;
|
|
|
|
unsigned int boot_device_descriptor;
|
|
|
|
unsigned char boot_device;
|
|
|
|
unsigned char reset_reason;
|
|
|
|
};
|
2017-06-02 15:00:00 +00:00
|
|
|
|
|
|
|
#define DEVICE_TYPE_SHIFT 0x8
|
|
|
|
#define DEVICE_TYPE_MASK (0x7 << DEVICE_TYPE_SHIFT)
|
2015-07-15 14:02:19 +00:00
|
|
|
#endif
|
|
|
|
|
2012-01-09 20:38:59 +00:00
|
|
|
#endif
|