Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
ed3df72d
Commit
ed3df72d
authored
14 years ago
by
Fabio Estevam
Committed by
Albert Aribaud
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
mx31pdk: Use the new relocation scheme
Signed-off-by:
Fabio Estevam
<
fabio.estevam@freescale.com
>
parent
0b509519
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
board/freescale/mx31pdk/mx31pdk.c
+8
-2
8 additions, 2 deletions
board/freescale/mx31pdk/mx31pdk.c
include/configs/mx31pdk.h
+6
-0
6 additions, 0 deletions
include/configs/mx31pdk.h
nand_spl/board/freescale/mx31pdk/u-boot.lds
+52
-7
52 additions, 7 deletions
nand_spl/board/freescale/mx31pdk/u-boot.lds
with
66 additions
and
9 deletions
board/freescale/mx31pdk/mx31pdk.c
+
8
−
2
View file @
ed3df72d
...
@@ -32,11 +32,17 @@
...
@@ -32,11 +32,17 @@
DECLARE_GLOBAL_DATA_PTR
;
DECLARE_GLOBAL_DATA_PTR
;
int
dram_init
(
void
)
int
dram_init
(
void
)
{
/* dram_init must store complete ramsize in gd->ram_size */
gd
->
ram_size
=
get_ram_size
((
volatile
void
*
)
CONFIG_SYS_SDRAM_BASE
,
PHYS_SDRAM_1_SIZE
);
return
0
;
}
void
dram_init_banksize
(
void
)
{
{
gd
->
bd
->
bi_dram
[
0
].
start
=
PHYS_SDRAM_1
;
gd
->
bd
->
bi_dram
[
0
].
start
=
PHYS_SDRAM_1
;
gd
->
bd
->
bi_dram
[
0
].
size
=
PHYS_SDRAM_1_SIZE
;
gd
->
bd
->
bi_dram
[
0
].
size
=
PHYS_SDRAM_1_SIZE
;
return
0
;
}
}
int
board_init
(
void
)
int
board_init
(
void
)
...
...
This diff is collapsed.
Click to expand it.
include/configs/mx31pdk.h
+
6
−
0
View file @
ed3df72d
...
@@ -155,6 +155,12 @@
...
@@ -155,6 +155,12 @@
#define PHYS_SDRAM_1 CSD0_BASE
#define PHYS_SDRAM_1 CSD0_BASE
#define PHYS_SDRAM_1_SIZE (128 * 1024 * 1024)
#define PHYS_SDRAM_1_SIZE (128 * 1024 * 1024)
#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)
/*-----------------------------------------------------------------------
/*-----------------------------------------------------------------------
* FLASH and environment organization
* FLASH and environment organization
*/
*/
...
...
This diff is collapsed.
Click to expand it.
nand_spl/board/freescale/mx31pdk/u-boot.lds
+
52
−
7
View file @
ed3df72d
/*
* (C) Copyright 2009
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* 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
*/
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
OUTPUT_ARCH(arm)
ENTRY(_start)
ENTRY(_start)
...
@@ -19,18 +41,41 @@ SECTIONS
...
@@ -19,18 +41,41 @@ SECTIONS
.rodata : { *(.rodata) }
.rodata : { *(.rodata) }
. = ALIGN(4);
. = ALIGN(4);
.data : { *(.data) }
.data : {
*(.data)
}
. = ALIGN(4);
. = ALIGN(4);
.got : { *(.got) }
. = .;
__u_boot_cmd_start = .;
__u_boot_cmd_start = .;
.u_boot_cmd : { *(.u_boot_cmd) }
.u_boot_cmd : { *(.u_boot_cmd) }
__u_boot_cmd_end = .;
__u_boot_cmd_end = .;
. = ALIGN(4);
. = ALIGN(4);
__bss_start = .;
.bss : { *(.bss) }
.rel.dyn : {
_end = .;
__rel_dyn_start = .;
*(.rel*)
__rel_dyn_end = .;
}
.dynsym : {
__dynsym_start = .;
*(.dynsym)
}
.bss __rel_dyn_start (OVERLAY) : {
__bss_start = .;
*(.bss)
. = ALIGN(4);
_end = .;
}
/DISCARD/ : { *(.bss*) }
/DISCARD/ : { *(.dynstr*) }
/DISCARD/ : { *(.dynsym*) }
/DISCARD/ : { *(.dynamic*) }
/DISCARD/ : { *(.hash*) }
/DISCARD/ : { *(.plt*) }
/DISCARD/ : { *(.interp*) }
/DISCARD/ : { *(.gnu*) }
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment