The functions are required to use the generic SPL Framework. Signed-off-by: Stefano Babic <sbabic@denx.de>master
parent
e650030347
commit
d41924a2c1
@ -0,0 +1,62 @@ |
|||||||
|
/* |
||||||
|
* (C) Copyright 2002 |
||||||
|
* Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
||||||
|
* |
||||||
|
* (C) Copyright 2010 |
||||||
|
* Texas Instruments, <www.ti.com> |
||||||
|
* Aneesh V <aneesh@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 |
||||||
|
*/ |
||||||
|
|
||||||
|
MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ |
||||||
|
LENGTH = CONFIG_SPL_MAX_SIZE } |
||||||
|
MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ |
||||||
|
LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
||||||
|
|
||||||
|
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
||||||
|
OUTPUT_ARCH(arm) |
||||||
|
ENTRY(_start) |
||||||
|
SECTIONS |
||||||
|
{ |
||||||
|
.text : |
||||||
|
{ |
||||||
|
__start = .; |
||||||
|
arch/arm/cpu/arm1136/start.o (.text) |
||||||
|
*(.text*) |
||||||
|
} >.sram |
||||||
|
|
||||||
|
. = ALIGN(4); |
||||||
|
.rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
||||||
|
|
||||||
|
. = ALIGN(4); |
||||||
|
.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
||||||
|
. = ALIGN(4); |
||||||
|
__image_copy_end = .; |
||||||
|
_end = .; |
||||||
|
|
||||||
|
.bss : |
||||||
|
{ |
||||||
|
. = ALIGN(4); |
||||||
|
__bss_start = .; |
||||||
|
*(.bss*) |
||||||
|
. = ALIGN(4); |
||||||
|
__bss_end__ = .; |
||||||
|
} >.sdram |
||||||
|
} |
@ -0,0 +1,31 @@ |
|||||||
|
/*
|
||||||
|
* (C) Copyright 2008 |
||||||
|
* Texas Instruments, <www.ti.com> |
||||||
|
* Syed Mohammed Khasim <khasim@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's version 2 of |
||||||
|
* the License. |
||||||
|
* |
||||||
|
* 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 |
||||||
|
*/ |
||||||
|
|
||||||
|
#ifndef MMC_HOST_DEF_H |
||||||
|
#define MMC_HOST_DEF_H |
||||||
|
|
||||||
|
/* Driver definitions */ |
||||||
|
#define MMCSD_SECTOR_SIZE 512 |
||||||
|
|
||||||
|
#endif /* MMC_HOST_DEF_H */ |
@ -0,0 +1,38 @@ |
|||||||
|
/*
|
||||||
|
* (C) Copyright 2012 |
||||||
|
* Texas Instruments, <www.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 |
||||||
|
*/ |
||||||
|
#ifndef _ASM_ARCH_SPL_H_ |
||||||
|
#define _ASM_SPL_H_ |
||||||
|
|
||||||
|
#define BOOT_DEVICE_NONE 0 |
||||||
|
#define BOOT_DEVICE_XIP 1 |
||||||
|
#define BOOT_DEVICE_XIPWAIT 2 |
||||||
|
#define BOOT_DEVICE_NAND 3 |
||||||
|
#define BOOT_DEVICE_ONE_NAND 4 |
||||||
|
#define BOOT_DEVICE_MMC1 5 |
||||||
|
#define BOOT_DEVICE_MMC2 6 |
||||||
|
#define BOOT_DEVICE_MMC2_2 7 |
||||||
|
#define BOOT_DEVICE_NOR 8 |
||||||
|
#define BOOT_DEVICE_I2C 9 |
||||||
|
#define BOOT_DEVICE_SPI 10 |
||||||
|
|
||||||
|
#endif |
Loading…
Reference in new issue