Skip to contentSkip to conversation

: mpc7448hpc2 platf [...]

PATCH New DENX Support System 1 participant 1 message Nov 2, 2006

lore
Share & tools
lore
#0 lore raw

PATCH v3 5/10 : mpc7448hpc2 platf [...]

Hello list,

inside the automatic U-Boot patch tracking system a new ticket [DNX#2006110242000074] was created:

<snip>

Quoted 90 lines

Add mpc7448hpc2 (mpc7448 + tsi108) board associated code support. mpc7448hpc2 board support high level code:tsi108 init + mpc7448hpc2 .

---
 board/mpc7448hpc2/mpc7448hpc2.c |  489 +++++++++++++++++++++++++++++
 board/mpc7448hpc2/tsi108_init.c |  662
+++++++++++++++++++++++++++++++++++++++
 2 files changed, 1151 insertions(+), 0 deletions(-)
board/mpc7448hpc2/mpc7448hpc2.c new file +71 -0
new file mode 100644
index 0000000..f90a751
@@ -0,0 +1,489 @@
+/*
+ * (C) Copyright 2005 Freescale Semiconductor, Inc.
+ *
+ * Roy Zang <[email protected]>
+ *
+ * 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
+ *
+ * modifications for the Tsi108 Emul Board by avb at Tundra
+ */
+
+/*
+ * board support/init functions for the 
+ * Freescale MPC7448 HPC2 (High-Performance Computing 2 Platform).
+ */
+
+#include <common.h>
+#include <74xx_7xx.h>
+#if defined(CONFIG_OF_FLAT_TREE)
+#include <ft_build.h>
+extern void ft_cpu_setup(void *blob, bd_t *bd);
+#endif
+
+#undef	DEBUG
+
+extern void flush_data_cache(void);
+extern void invalidate_l1_instruction_cache(void);
+extern void tsi108_init_f(void);
+
+int display_mem_map(void);
+
+void after_reloc(ulong dest_addr)
+{
+	DECLARE_GLOBAL_DATA_PTR;
+	
+	/*
+	 * Jump to the main U-Boot board init code
+	 */
+	board_init_r((gd_t *) gd, dest_addr);
+	/* NOTREACHED */
+}
+
+/*
+ * Check Board Identity:
+ *
+ * report board type
+ */
+
+int checkboard(void)
+{
+	int l_type = 0;
+
+	printf("BOARD: %s\n", CFG_BOARD_NAME);
+	return (l_type);
+}
+

board/mpc7448hpc2/mpc7448hpc2.c line 81

Quoted 10 lines
board/mpc7448hpc2/mpc7448hpc2.c new file +10 -0
+/*
+ * Read Processor ID:
+ *
+ * report calling processor number
+ */
+
+int read_pid(void)
+{
+	return 0;		/* we are on single CPU platform for a while */
+}

</snip>

Your U-Boot support team