blob: f77f9d6b774f96573bbe5c5bc3e137427837a144 [file] [log] [blame]
SRICHARAN R76db5b82013-04-24 00:41:21 +00001/*
2 * (C) Copyright 2013
3 * Texas Instruments, <www.ti.com>
4 *
5 * Sricharan R <r.sricharan@ti.com>
6 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
SRICHARAN R76db5b82013-04-24 00:41:21 +00008 */
9
10/* ROM code defines */
11/* Boot device */
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
19
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)
24
25#ifndef __ASSEMBLY__
26struct omap_boot_parameters {
27 char *boot_message;
28 unsigned int mem_boot_descriptor;
29 unsigned char omap_bootdevice;
30 unsigned char reset_reason;
31 unsigned char ch_flags;
SRICHARAN Rfda06812013-04-24 00:41:23 +000032 unsigned long omap_bootmode;
SRICHARAN R76db5b82013-04-24 00:41:21 +000033};
34#endif