]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/omap_boot.h
EXYNOS: Move files from board/samsung to arch/arm
[karo-tx-uboot.git] / arch / arm / include / asm / omap_boot.h
1 /*
2  * (C) Copyright 2013
3  * Texas Instruments, <www.ti.com>
4  *
5  * Sricharan R <r.sricharan@ti.com>
6  *
7  * See file CREDITS for list of people who contributed to this
8  * project.
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License as
12  * published by the Free Software Foundation; either version 2 of
13  * the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23  * MA 02111-1307 USA
24  */
25
26 /* ROM code defines */
27 /* Boot device */
28 #define BOOT_DEVICE_MASK        0xFF
29 #define BOOT_DEVICE_OFFSET      0x8
30 #define DEV_DESC_PTR_OFFSET     0x4
31 #define DEV_DATA_PTR_OFFSET     0x18
32 #define BOOT_MODE_OFFSET        0x8
33 #define RESET_REASON_OFFSET     0x9
34 #define CH_FLAGS_OFFSET         0xA
35
36 #define CH_FLAGS_CHSETTINGS     (0x1 << 0)
37 #define CH_FLAGS_CHRAM          (0x1 << 1)
38 #define CH_FLAGS_CHFLASH        (0x1 << 2)
39 #define CH_FLAGS_CHMMCSD        (0x1 << 3)
40
41 #ifndef __ASSEMBLY__
42 struct omap_boot_parameters {
43         char *boot_message;
44         unsigned int mem_boot_descriptor;
45         unsigned char omap_bootdevice;
46         unsigned char reset_reason;
47         unsigned char ch_flags;
48         unsigned long omap_bootmode;
49 };
50 #endif