Skip to contentSkip to conversation

mpc83xx: New board support for SIMPC8313

PATCH Superseded Ron Madrid 2 participants 5 messages Jan 22, 2009 – Jan 23, 2009 Kbuild

lore
Share & tools
lore

Ron Madrid

author
#0 lore raw

PATCH v5 1/1 mpc83xx: New board support for SIMPC8313

This patch will create a new board, SIMPC8313, from Sheldon Instruments. This board boots from NAND devices and is configureable for either large or small page devices. The board supports non-soldered DDR2, one ethernet port, a Marvell 88E1118 PHY, and PCI host support. The board also has a FPGA connected to the eLBC providing glue logic to a TMS320C67xx DSP.

---
 MAINTAINERS                                 |    4 +
 MAKEALL                                     |    1 +
 Makefile                                    |   15 +
 board/sheldon/simpc8313/Makefile            |   50 +++
 board/sheldon/simpc8313/config.mk           |   13 +
 board/sheldon/simpc8313/sdram.c             |  193 ++++++++++
 board/sheldon/simpc8313/simpc8313.c         |  134 +++++++
 doc/README.simpc8313                        |   80 ++++
 include/configs/SIMPC8313.h                 |  544 +++++++++++++++++++++++++++
 nand_spl/board/sheldon/simpc8313/Makefile   |  100 +++++
 nand_spl/board/sheldon/simpc8313/u-boot.lds |   52 +++
 11 files changed, 1186 insertions(+), 0 deletions(-)
 create mode 100644 board/sheldon/simpc8313/Makefile
 create mode 100644 board/sheldon/simpc8313/config.mk
 create mode 100644 board/sheldon/simpc8313/sdram.c
 create mode 100644 board/sheldon/simpc8313/simpc8313.c
 create mode 100644 doc/README.simpc8313
 create mode 100644 include/configs/SIMPC8313.h
 create mode 100644 nand_spl/board/sheldon/simpc8313/Makefile
 create mode 100644 nand_spl/board/sheldon/simpc8313/u-boot.lds
MAINTAINERS +4 -0
index d07fe86..b774938 100644
@@ -263,6 +263,10 @@ Jon Loeliger <[email protected]>
 
 	MPC8641HPCN	MPC8641D
 
+Ron Madrid <[email protected]>
+
+	SIMPC8313	MPC8313
+
 Dan Malek <[email protected]>
 
 	stxgp3		MPC85xx
MAKEALL +1 -0
index 3e8c56b..1ca5e58 100755
@@ -353,6 +353,7 @@ LIST_83xx="		\
 	MPC837XERDB	\
 	MVBLM7		\
 	sbc8349		\
+	SIMPC8313_LP	\
 	TQM834x		\
 "
 
Makefile +15 -0
index 294efef..9f69278 100644
@@ -2328,6 +2328,21 @@ MVBLM7_config: unconfig
 sbc8349_config:		unconfig
 	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
 
+SIMPC8313_LP_config \
+SIMPC8313_SP_config: unconfig
+	@mkdir -p $(obj)include
+	@mkdir -p $(obj)board/sheldon/simpc8313
+	@if [ "$(findstring _LP_,$@)" ] ; then \
+		$(XECHO) -n "...Large Page NAND..." ; \
+		echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
+	fi ; \
+	if [ "$(findstring _SP_,$@)" ] ; then \
+		$(XECHO) -n "...Small Page NAND..." ; \
+		echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
+	fi ;
+	@$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon
+	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
+
 TQM834x_config:	unconfig
 	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
 
board/sheldon/simpc8313/Makefile new file +50 -0

50 lines not on this page · raw message

board/sheldon/simpc8313/config.mk new file +13 -0
new file mode 100644
index 0000000..ce1c0d8
@@ -0,0 +1,13 @@
+ifndef NAND_SPL
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
+endif
+
+ifndef TEXT_BASE
+TEXT_BASE = 0x00100000
+endif
+
+ifdef CONFIG_NAND_LP
+PAD_TO = 0xFFF20000
+else
+PAD_TO = 0xFFF04000
+endif
board/sheldon/simpc8313/sdram.c new file +193 -0

193 lines not on this page · raw message

board/sheldon/simpc8313/simpc8313.c new file +134 -0

134 lines not on this page · raw message

doc/README.simpc8313 new file +80 -0

80 lines not on this page · raw message

include/configs/SIMPC8313.h new file +544 -0

544 lines not on this page · raw message

nand_spl/board/sheldon/simpc8313/Makefile new file +100 -0

100 lines not on this page · raw message

nand_spl/board/sheldon/simpc8313/u-boot.lds new file +52 -0

52 lines not on this page · raw message

Signature · 1 line
1.5.5.1
#1 lore raw

PATCH v5 1/1 mpc83xx: New board support for SIMPC8313

nand_spl/board/sheldon/simpc8313/u-boot.lds line 52

Quoted 2 lines · On Thu, 22 Jan 2009 15:05:24 -0800 Ron Madrid <[email protected]> wrote:
nand_spl/board/sheldon/simpc8313/u-boot.lds new file +2 -0
+ENTRY(_start)
+ASSERT(_end <= 0xfff01000, "NAND bootstrap too big");

Ron, the above gets asserted when building for large page nand with a gcc 4.1.2 based toolchain:

[kim at beaut u-boot (next)]$ ./MAKEALL SIMPC8313_SP ...Small Page NAND...Configuring for SIMPC8313 board...
text data bss dec hex filename
250704 20964 28472 300140 4946c ./u-boot
[kim@beaut u-boot (next)]$ ./MAKEALL SIMPC8313_LP ...Large Page NAND...Configuring for SIMPC8313 board...
ld: NAND bootstrap too big
ld: NAND bootstrap too big
make[1]: *** [/home/kim/git/u-boot/nand_spl/u-boot-spl] Error 1
make: *** [nand_spl] Error 2
make: *** Waiting for unfinished jobs....
size: './u-boot': No such file

Kim

author
#2 lore raw

PATCH v5 1/1 mpc83xx: New board support for SIMPC8313

Quoted 8 lines · Kim Phillips

From: Kim Phillips <[email protected]>
Subject: Re: [U-Boot] [PATCH v5] mpc83xx: New board support for SIMPC8313
To: "Ron Madrid" <[email protected]>
Cc: u-boot at lists.denx.de
Date: Friday, January 23, 2009, 12:36 PM
On Thu, 22 Jan 2009 15:05:24 -0800
Ron Madrid <[email protected]> wrote:

Quoted 7 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+ENTRY(_start)
+ASSERT(_end <= 0xfff01000, "NAND bootstrap

too big");

Ron, the above gets asserted when building for large page nand with a
gcc 4.1.2 based toolchain:

Please forgive my ignorance, but how can I go about fixing this? How do I determine my toolchain and how can I use the same one you are referring to? Are there any documents that can point me in the right direction?

Also, this seems strange that they should have different sizes when being built as they have always been identical sizes for my builds. But I'll determine the reason for this soon.

Ron

#3 lore raw

PATCH v5 1/1 mpc83xx: New board support for SIMPC8313

Quoted 14 lines · On Fri, 23 Jan 2009 13:29:03 -0800 (PST) Ron Madrid <[email protected]>…
Quoted 12 lines · Kim Phillips

From: Kim Phillips <[email protected]>
Subject: Re: [U-Boot] [PATCH v5] mpc83xx: New board support for SIMPC8313
To: "Ron Madrid" <[email protected]>
Cc: u-boot at lists.denx.de
Date: Friday, January 23, 2009, 12:36 PM

Review

Quoted 2 lines · On Thu, 22 Jan 2009 15:05:24 -0800 Ron Madrid <[email protected]> wrote:
(quoted diff) +2 -0
+ENTRY(_start)
+ASSERT(_end <= 0xfff01000, "NAND bootstrap

too big");

Quoted 7 lines
Quoted 3 lines

Ron, the above gets asserted when building for large page nand with a
gcc 4.1.2 based toolchain:

Please forgive my ignorance, but how can I go about fixing this? How do I determine my toolchain and how can I use the same one you are referring to? Are there any documents that can point me in the right direction?

I'm just using what Fedora brought to me on my G5 box (native compiler). I still use it because it's close to what the ELDK version is (or used to be - I can't immediately tell which version the ELDK is using right now). Where/when did you get your toolchain?

Quoted 3 lines

Also, this seems strange that they should have different sizes when being built as they have always been identical sizes for my builds. But I'll determine the reason for this soon.

this is true; if it helps, I tried playing with the LP's PAD_TO value to no avail...

Kim

author
#4 lore raw

PATCH v5 1/1 mpc83xx: New board support for SIMPC8313

Quoted 18 lines · Kim Phillips
Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
(quoted diff) +2 -0
+ENTRY(_start)
+ASSERT(_end <= 0xfff01000, "NAND

bootstrap

Quoted 3 lines
Quoted 3 lines

too big");

Ron, the above gets asserted when building for

large page

Quoted 4 lines
Quoted 2 lines

nand with a
gcc 4.1.2 based toolchain:

Please forgive my ignorance, but how can I go about

fixing this? How do I

Quoted 1 line

determine my toolchain and how can I use the same one

you are referring to?

Quoted 1 line

Are there any documents that can point me in the right

direction?

Quoted 7 lines

I'm just using what Fedora brought to me on my G5 box (native
compiler). I still use it because it's close to what the ELDK version
is (or used to be - I can't immediately tell which version the ELDK is
using right now). Where/when did you get your toolchain?

I am using the one that came with FC4. I'm guessing that I should go ahead an update my gcc. I'm in the middle of doing that. I'll get back to you if I discover anything and then of course I'll resubmit.

Quoted 10 lines
Quoted 2 lines

Also, this seems strange that they should have

different sizes when being

Quoted 1 line

built as they have always been identical sizes for my

builds. But I'll

Quoted 1 line

determine the reason for this soon.

this is true; if it helps, I tried playing with the LP's PAD_TO value
to no avail...

Thanks for the info.

Ron