Please bear with me - another rename checkin. This qualifies as trivial, no
[coreboot.git] / src / cpu / ppc / ppc7xx / ppc7xx.inc
index 3391b28a443c62f0631dd3176fa737cc0cb19ac4..11b54c4207ec7f4097aec27e341b0e0913eb8784 100644 (file)
@@ -1,5 +1,21 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * 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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ */
 
 /*
  * The aim of this code is to bring the machine from power-on to the point 
@@ -22,6 +38,8 @@
  *
  */
 
+#include <ppc750.h>
+
 #define BSP_IOREGION1  0x80000000
 #define BSP_IOMASK1    BAT_BL_256M | BAT_VALID_SUPERVISOR | BAT_VALID_USER
 #define BSP_IOREGION2  0xFD000000
        /*
         * Clear segment registers (LinuxBIOS doesn't use these)
         */
-       mtsr    0, r0
-       isync
-       mtsr    1, r0
-       isync
-       mtsr    2, r0
-       isync
-       mtsr    3, r0
-       isync
-       mtsr    4, r0
-       isync
-       mtsr    5, r0
-       isync
-       mtsr    6, r0
-       isync
-       mtsr    7, r0
-       isync
-       mtsr    8, r0
-       isync
-       mtsr    9, r0
-       isync
-       mtsr    10, r0
-       isync
-       mtsr    11, r0
-       isync
-       mtsr    12, r0
-       isync
-       mtsr    13, r0
-       isync
-       mtsr    14, r0
-       isync
-       mtsr    15, r0
+       li      r3, 15
+1:     mtsrin  r3, r0
+       subic.  r3, r3, 1
+       bge     1b
        isync
 
         /*