aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Wood2012-12-06 07:33:18 -0600
committerKim Phillips2012-12-19 17:45:54 -0600
commit22f4442d12a3833e29b6580f6cf9bc0e55340504 (patch)
tree56f14ace95b011262a7452e34ec6446636507b8d /nand_spl
parent06f60ae3e454e15a410a0d4e96769bf938af8fcb (diff)
downloadu-boot-22f4442d12a3833e29b6580f6cf9bc0e55340504.tar.gz
u-boot-22f4442d12a3833e29b6580f6cf9bc0e55340504.tar.xz
u-boot-22f4442d12a3833e29b6580f6cf9bc0e55340504.zip
powerpc/mpc83xx: convert MPC8313ERDB to new-SPL
This converts MPC8313ERDB NAND boot to use the new SPL infrastructure. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'nand_spl')
-rw-r--r--nand_spl/board/freescale/mpc8313erdb/Makefile108
-rw-r--r--nand_spl/board/freescale/mpc8313erdb/u-boot.lds55
2 files changed, 0 insertions, 163 deletions
diff --git a/nand_spl/board/freescale/mpc8313erdb/Makefile b/nand_spl/board/freescale/mpc8313erdb/Makefile
deleted file mode 100644
index f997b5f81f..0000000000
--- a/nand_spl/board/freescale/mpc8313erdb/Makefile
+++ /dev/null
@@ -1,108 +0,0 @@
1#
2# (C) Copyright 2007
3# Stefan Roese, DENX Software Engineering, sr@denx.de.
4# (C) Copyright 2008 Freescale Semiconductor
5#
6# See file CREDITS for list of people who contributed to this
7# project.
8#
9# This program is free software; you can redistribute it and/or
10# modify it under the terms of the GNU General Public License as
11# published by the Free Software Foundation; either version 2 of
12# the License, or (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software
21# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22# MA 02111-1307 USA
23#
24
25NAND_SPL := y
26PAD_TO := 0xfff04000
27
28include $(TOPDIR)/config.mk
29
30nandobj := $(OBJTREE)/nand_spl/
31
32LDSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lds
33LDFLAGS := -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
34 $(LDFLAGS) $(LDFLAGS_FINAL)
35AFLAGS += -DCONFIG_NAND_SPL
36CFLAGS += -DCONFIG_NAND_SPL
37
38SOBJS = start.o ticks.o
39COBJS = nand_boot_fsl_elbc.o $(BOARD).o sdram.o ns16550.o spl_minimal.o \
40 time.o cache.o
41
42SRCS := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
43OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
44__OBJS := $(SOBJS) $(COBJS)
45LNDIR := $(nandobj)board/$(BOARDDIR)
46
47ALL = $(nandobj)u-boot-spl $(nandobj)u-boot-spl.bin $(nandobj)u-boot-spl-16k.bin
48
49all: $(obj).depend $(ALL)
50
51$(nandobj)u-boot-spl-16k.bin: $(nandobj)u-boot-spl
52 $(OBJCOPY) ${OBJCFLAGS} --pad-to=$(PAD_TO) -O binary $< $@
53
54$(nandobj)u-boot-spl.bin: $(nandobj)u-boot-spl
55 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
56
57$(nandobj)u-boot-spl: $(OBJS) $(nandobj)u-boot.lds
58 cd $(LNDIR) && $(LD) $(LDFLAGS) $(__OBJS) $(PLATFORM_LIBS) \
59 -Map $(nandobj)u-boot-spl.map \
60 -o $(nandobj)u-boot-spl
61
62$(nandobj)u-boot.lds: $(LDSCRIPT)
63 $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
64
65# create symbolic links for common files
66
67$(obj)start.S:
68 ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc83xx/start.S $(obj)start.S
69
70$(obj)nand_boot_fsl_elbc.c:
71 ln -sf $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c \
72 $(obj)nand_boot_fsl_elbc.c
73
74$(obj)sdram.c:
75 ln -sf $(SRCTREE)/board/$(BOARDDIR)/sdram.c $(obj)sdram.c
76
77$(obj)$(BOARD).c:
78 ln -sf $(SRCTREE)/board/$(BOARDDIR)/$(BOARD).c $(obj)$(BOARD).c
79
80$(obj)ns16550.c:
81 ln -sf $(SRCTREE)/drivers/serial/ns16550.c $(obj)ns16550.c
82
83$(obj)spl_minimal.c:
84 ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc83xx/spl_minimal.c $(obj)spl_minimal.c
85
86$(obj)cache.c:
87 ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $(obj)cache.c
88
89$(obj)time.c:
90 ln -sf $(SRCTREE)/arch/powerpc/lib/time.c $(obj)time.c
91
92$(obj)ticks.S:
93 ln -sf $(SRCTREE)/arch/powerpc/lib/ticks.S $(obj)ticks.S
94
95#########################################################################
96
97$(obj)%.o: $(obj)%.S
98 $(CC) $(AFLAGS) -c -o $@ $<
99
100$(obj)%.o: $(obj)%.c
101 $(CC) $(CFLAGS) -c -o $@ $<
102
103# defines $(obj).depend target
104include $(SRCTREE)/rules.mk
105
106sinclude $(obj).depend
107
108#########################################################################
diff --git a/nand_spl/board/freescale/mpc8313erdb/u-boot.lds b/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
deleted file mode 100644
index d140453d49..0000000000
--- a/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
+++ /dev/null
@@ -1,55 +0,0 @@
1/*
2 * (C) Copyright 2006
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * Copyright 2008 Freescale Semiconductor, Inc.
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
26OUTPUT_ARCH(powerpc)
27SECTIONS
28{
29 . = 0xfff00000;
30 .text : {
31 *(.text*)
32 . = ALIGN(16);
33 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
34 }
35
36 . = ALIGN(8);
37 .data : {
38 *(.data*)
39 *(.sdata*)
40 _GOT2_TABLE_ = .;
41 KEEP(*(.got2))
42 KEEP(*(.got))
43 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
44 }
45 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
46
47 . = ALIGN(8);
48 __bss_start = .;
49 .bss (NOLOAD) : {
50 *(.*bss)
51 }
52 __bss_end__ = .;
53}
54ENTRY(_start)
55ASSERT(__bss_end__ <= 0xfff01000, "NAND bootstrap too big");