SRICHARAN R | 41ee148 | 2013-04-24 00:41:21 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2013 |
| 3 | * Texas Instruments, <www.ti.com> |
| 4 | * |
| 5 | * Sricharan R <r.sricharan@ti.com> |
| 6 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
SRICHARAN R | 41ee148 | 2013-04-24 00:41:21 +0000 | [diff] [blame] | 8 | */ |
| 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__ |
| 26 | struct 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 R | 4af1988 | 2013-04-24 00:41:23 +0000 | [diff] [blame] | 32 | unsigned long omap_bootmode; |
SRICHARAN R | 41ee148 | 2013-04-24 00:41:21 +0000 | [diff] [blame] | 33 | }; |
| 34 | #endif |