3 * Texas Instruments, <www.ti.com>
5 * Sricharan R <r.sricharan@ti.com>
7 * SPDX-License-Identifier: GPL-2.0+
10 /* ROM code defines */
12 #define BOOT_DEVICE_MASK 0xFF
13 #define BOOT_DEVICE_OFFSET 0x8
14 #define DEV_DESC_PTR_OFFSET 0x4
15 #define DEV_DATA_PTR_OFFSET 0x18
16 #define BOOT_MODE_OFFSET 0x8
17 #define RESET_REASON_OFFSET 0x9
18 #define CH_FLAGS_OFFSET 0xA
20 #define CH_FLAGS_CHSETTINGS (0x1 << 0)
21 #define CH_FLAGS_CHRAM (0x1 << 1)
22 #define CH_FLAGS_CHFLASH (0x1 << 2)
23 #define CH_FLAGS_CHMMCSD (0x1 << 3)
26 struct omap_boot_parameters {
28 unsigned int mem_boot_descriptor;
29 unsigned char omap_bootdevice;
30 unsigned char reset_reason;
31 unsigned char ch_flags;
32 unsigned long omap_bootmode;