mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
ARM: OMAP: Make omap_boot_parameters common across socs
omap_boot_parameters is same and defined for each soc. So move this to a common place to reuse it across socs. Signed-off-by: Sricharan R <r.sricharan@ti.com>
This commit is contained in:
parent
30bba01751
commit
76db5b8f59
4 changed files with 49 additions and 72 deletions
49
arch/arm/include/asm/omap_boot.h
Normal file
49
arch/arm/include/asm/omap_boot.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* (C) Copyright 2013
|
||||
* Texas Instruments, <www.ti.com>
|
||||
*
|
||||
* Sricharan R <r.sricharan@ti.com>
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
/* ROM code defines */
|
||||
/* Boot device */
|
||||
#define BOOT_DEVICE_MASK 0xFF
|
||||
#define BOOT_DEVICE_OFFSET 0x8
|
||||
#define DEV_DESC_PTR_OFFSET 0x4
|
||||
#define DEV_DATA_PTR_OFFSET 0x18
|
||||
#define BOOT_MODE_OFFSET 0x8
|
||||
#define RESET_REASON_OFFSET 0x9
|
||||
#define CH_FLAGS_OFFSET 0xA
|
||||
|
||||
#define CH_FLAGS_CHSETTINGS (0x1 << 0)
|
||||
#define CH_FLAGS_CHRAM (0x1 << 1)
|
||||
#define CH_FLAGS_CHFLASH (0x1 << 2)
|
||||
#define CH_FLAGS_CHMMCSD (0x1 << 3)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
struct omap_boot_parameters {
|
||||
char *boot_message;
|
||||
unsigned int mem_boot_descriptor;
|
||||
unsigned char omap_bootdevice;
|
||||
unsigned char reset_reason;
|
||||
unsigned char ch_flags;
|
||||
};
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue