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 2/10 : mpc7448hpc2 platf [...]

Hello list,

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

<snip>

Quoted 98 lines

Add mpc7448hpc2 (mpc7448 + tsi108) board associated code support. The mpc7448hpc2 board support low level assemble language init code .

---
 board/mpc7448hpc2/asm_init.S |  955
++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 955 insertions(+), 0 deletions(-)
board/mpc7448hpc2/asm_init.S new file +48 -0
new file mode 100644
index 0000000..8c15a3d
@@ -0,0 +1,955 @@
+/*****************************************************************************
+ * (C) Copyright 2004-05;  Tundra Semiconductor Corp.
+ * 
+ * Added automatic detect of SDC settings
+ * Copyright (c) 2005 Freescale Semiconductor, Inc.
+ * Maintainer tie-fei.zang at freescale.com
+ * 
+ * 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
+ ****************************************************************************/
+
+/*----------------------------------------------------------------------------
+ * FILENAME: asm_init.s
+ *
+ * Originator: Alex Bounine
+ *
+ * DESCRIPTION:
+ * Initialization code for the Tundra Tsi108 bridge chip
+ *
+ *---------------------------------------------------------------------------*/
+
+#include <config.h>
+#include <version.h>
+
+#include <ppc_asm.tmpl>
+#include <ppc_defs.h>
+#include <asm/processor.h>
+
+#include <tsi108.h>
+
+/*===========================================================================
+ * Build Configuration Options
+ */
+
+/* #define DISABLE_PBM       disables usage of PB Master */
+/* #define SDC_HARDCODED_INIT  config SDRAM controller with hardcoded

values */

board/mpc7448hpc2/asm_init.S new file +9 -0
+/* #define SDC_AUTOPRECH_EN    enable SDRAM auto precharge */
+
+/* ===========================================================================
+ * Hardcoded SDC settings
+ */
+
+#ifdef SDC_HARDCODED_INIT
+
+/* Micron MT9HTF6472AY-40EA1 : Unbuffered, 512MB, 400, CL3, Single Rank

*/

board/mpc7448hpc2/asm_init.S new file +22 -0
+
+#define VAL_SD_REFRESH  (0x61A)
+#define VAL_SD_TIMING   (0x0308336b)
+#define VAL_SD_D0_CTRL  (0x07100021) /* auto-precharge disabled */
+#define VAL_SD_D0_BAR   (0x0FE00000) /* 512MB @ 0x00000000 */
+#define VAL_SD_D1_CTRL  (0x07100021) /* auto-precharge disabled */
+#define VAL_SD_D1_BAR   (0x0FE00200) /* 512MB @ 0x20000000 */
+
+#endif /* SDC_HARDCODED_INIT */
+
+/*---------------------------------------------------------------------------
+ CPU Configuration:
+
+ CPU Address and Data Parity enables.
+
+#define CPU_AP
+#define CPU_DP
+
+===========================================================================
+ Macros
+
+ !!! Attention !!! Macros LOAD_PTR, LOAD_U32 and LOAD_MEM defined below
Quoted 2 lines

are
+ expected to work correctly for the CSR space within 32KB range.

</snip>

Your U-Boot support team