1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
8 * Chandan Nath <chandan.nath@ti.com>
10 * Derived from OMAP4 work by
11 * Aneesh V <aneesh@ti.com>
17 #include <linux/sizes.h>
20 #define NON_SECURE_SRAM_START 0x402F0400
21 #define NON_SECURE_SRAM_END 0x40310000
22 #define NON_SECURE_SRAM_IMG_END 0x4030B800
23 #elif defined(CONFIG_TI816X) || defined(CONFIG_TI814X)
24 #define NON_SECURE_SRAM_START 0x40300000
25 #define NON_SECURE_SRAM_END 0x40320000
26 #define NON_SECURE_SRAM_IMG_END 0x4031B800
27 #elif defined(CONFIG_AM43XX)
28 #define NON_SECURE_SRAM_START 0x402F0400
29 #define NON_SECURE_SRAM_END 0x40340000
30 #define NON_SECURE_SRAM_IMG_END 0x40337DE0
31 #define QSPI_BASE 0x47900000
33 #define SRAM_SCRATCH_SPACE_ADDR (NON_SECURE_SRAM_IMG_END - SZ_1K)
37 struct omap_boot_parameters {
38 unsigned int reserved;
39 unsigned int boot_device_descriptor;
40 unsigned char boot_device;
41 unsigned char reset_reason;
44 #define DEVICE_TYPE_SHIFT 0x8
45 #define DEVICE_TYPE_MASK (0x7 << DEVICE_TYPE_SHIFT)