Skip to contentSkip to conversation

mpc85xx: Add support for SBC8548

PATCH New Joe Hamman 2 participants 3 messages Dec 13, 2007 Kbuild

lore
Share & tools
lore

Joe Hamman

author
#0 lore raw

PATCH 1/2 mpc85xx: Add support for SBC8548

Add support for Wind River's SBC8548 reference board.

Signed-off by: Joe Hamman <[email protected]>

MAINTAINERS +1 -0
index b8c1fdc..ac11985 100644
@@ -190,6 +190,7 @@ Howard Gray <[email protected]>
 
 Joe Hamman <[email protected]>
 
+	sbc8548			MPC8548
 	sbc8641d		MPC8641D
 
 Klaus Heydeck <[email protected]>
Makefile +3 -0
index bde38ca..75841c0 100644
@@ -1992,6 +1992,9 @@ sbc8540_66_config:	unconfig
 	fi
 	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
 
+sbc8548_config:		unconfig
+	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
+
 sbc8560_config \
 sbc8560_33_config \
 sbc8560_66_config:      unconfig
board/sbc8548/Makefile new file +55 -0

55 lines not on this page · raw message

board/sbc8548/config.mk new file +32 -0
new file mode 100644
index 0000000..c9fa3ad
@@ -0,0 +1,32 @@
+#
+# Copyright 2004, 2007 Freescale Semiconductor.
+#
+# 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
+#
+
+#
+# sbc8548 board
+#
+ifndef TEXT_BASE
+TEXT_BASE = 0xfff80000
+endif
+
+PLATFORM_CPPFLAGS += -DCONFIG_E500=1
+PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx=1
+PLATFORM_CPPFLAGS += -DCONFIG_MPC8548=1
board/sbc8548/init.S new file +247 -0

247 lines not on this page · raw message

board/sbc8548/sbc8548.c new file +553 -0

553 lines not on this page · raw message

#1 lore raw

PATCH 1/2 mpc85xx: Add support for SBC8548

Missing updates to MAKEALL

[snip]

board/sbc8548/sbc8548.c line 537

Quoted 4 lines
board/sbc8548/sbc8548.c new file +4 -0
+
+typedef struct epld_reg {
+	u_char bd_rev;		/* Board revision */
+} epld_reg_t;

seems over kill for the one usage below.

Quoted 4 lines
board/sbc8548/sbc8548.c new file +3 -0
+
+unsigned int get_board_rev(void)
+{

board/sbc8548/sbc8548.c line 550

Quoted 10 lines
board/sbc8548/sbc8548.c new file +10 -0
+	volatile epld_reg_t *epld = (epld_reg_t *)CFG_BD_REV;
+
+	return ((epld->bd_rev) >> 4);
+}
+
+#if defined(CONFIG_OF_BOARD_SETUP)
+void
+ft_board_setup(void *blob, bd_t *bd)
+{
+	ft_cpu_setup(blob, bd);

PCI of setup code?

board/sbc8548/sbc8548.c line 109

Quoted 4 lines
board/sbc8548/sbc8548.c new file +3 -0
+}
+#endif
+

- k

author
#2 lore raw

PATCH 1/2 mpc85xx: Add support for SBC8548

Quoted 10 lines

-----Original Message-----
From: Kumar Gala [mailto:galak at kernel.crashing.org]
Sent: Wednesday, December 12, 2007 10:20 PM
To: joe.hamman at embeddedspecialties.com
Cc: afleming at gmail.com; u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] [PATCH 1/2] mpc85xx: Add support for SBC8548

Quoted 2 lines

Missing updates to MAKEALL

Thanks for the catch!

Quoted 10 lines

[snip]

board/sbc8548/sbc8548.c line 537

Quoted 4 lines
board/sbc8548/sbc8548.c new file +4 -0
+
+typedef struct epld_reg {
+	u_char bd_rev;		/* Board revision */
+} epld_reg_t;

seems over kill for the one usage below.

Quoted 1 line
Quoted 13 lines

board/sbc8548/sbc8548.c line 550

Quoted 13 lines
board/sbc8548/sbc8548.c new file +13 -0
+
+unsigned int get_board_rev(void)
+{
+	volatile epld_reg_t *epld = (epld_reg_t *)CFG_BD_REV;
+
+	return ((epld->bd_rev) >> 4);
+}
+
+#if defined(CONFIG_OF_BOARD_SETUP)
+void
+ft_board_setup(void *blob, bd_t *bd)
+{
+	ft_cpu_setup(blob, bd);

I agree. Originally I thought there would be more in the structure.

Quoted 7 lines

PCI of setup code?

board/sbc8548/sbc8548.c line 109

Quoted 4 lines
board/sbc8548/sbc8548.c new file +3 -0
+}
+#endif
+

Added.

Updated patch coming...

Joe