All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sean MacLennan <smaclennan@pikatech.com>
To: linuxppc-dev@ozlabs.org
Subject: [PATCH 3/5] Warp Base Platform
Date: Wed, 09 Jan 2008 15:22:46 -0500	[thread overview]
Message-ID: <47852D16.2070906@pikatech.com> (raw)
In-Reply-To: <47852C41.8000506@pikatech.com>

Basically the powerpc/boot directory files.

Signed-off-by: Sean MacLennan <smaclennan@pikatech.com>
---
diff --git a/arch/powerpc/boot/44x.h b/arch/powerpc/boot/44x.h
index 0256344..9db0213 100644
--- a/arch/powerpc/boot/44x.h
+++ b/arch/powerpc/boot/44x.h
@@ -12,5 +12,6 @@
 
 void ebony_init(void *mac0, void *mac1);
 void bamboo_init(void *mac0, void *mac1);
+void warp_init(void *mac0, void *mac1);
 
 #endif /* _PPC_BOOT_44X_H_ */
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index d1e625c..df0ef6f 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -56,13 +56,13 @@ src-wlib := string.S crt0.S stdio.c main.c \
 		gunzip_util.c elf_util.c $(zlib) devtree.c oflib.c ofconsole.c \
 		4xx.c ebony.c mv64x60.c mpsc.c mv64x60_i2c.c cuboot.c bamboo.c \
 		cpm-serial.c stdlib.c mpc52xx-psc.c planetcore.c uartlite.c \
-		fsl-soc.c mpc8xx.c pq2.c
+		fsl-soc.c mpc8xx.c pq2.c warp.c
 src-plat := of.c cuboot-52xx.c cuboot-83xx.c cuboot-85xx.c holly.c \
 		cuboot-ebony.c treeboot-ebony.c prpmc2800.c \
 		ps3-head.S ps3-hvcall.S ps3.c treeboot-bamboo.c cuboot-8xx.c \
 		cuboot-pq2.c cuboot-sequoia.c treeboot-walnut.c cuboot-bamboo.c \
 		fixed-head.S ep88xc.c cuboot-hpc2.c ep405.c cuboot-taishan.c \
-		cuboot-katmai.c cuboot-rainier.c
+		cuboot-katmai.c cuboot-rainier.c cuboot-warp.c
 src-boot := $(src-wlib) $(src-plat) empty.c
 
 src-boot := $(addprefix $(obj)/, $(src-boot))
@@ -206,6 +206,7 @@ image-$(CONFIG_RAINIER)			+= cuImage.rainier
 image-$(CONFIG_WALNUT)			+= treeImage.walnut
 image-$(CONFIG_TAISHAN)			+= cuImage.taishan
 image-$(CONFIG_KATMAI)			+= cuImage.katmai
+image-$(CONFIG_WARP)			+= cuImage.warp
 endif
 
 # For 32-bit powermacs, build the COFF and miboot images
--- /dev/null	2005-11-20 22:22:37.000000000 -0500
+++ arch/powerpc/boot/cuboot-warp.c	2008-01-08 12:09:39.000000000 -0500
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2008 PIKA Technologies
+ *   Sean MacLennan <smaclennan@pikatech.com>
+ *
+ * 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.
+ */
+
+#include "ops.h"
+#include "44x.h"
+#include "cuboot.h"
+
+#define TARGET_44x
+#include "ppcboot.h"
+
+static bd_t bd;
+
+void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
+				   unsigned long r6, unsigned long r7)
+{
+	CUBOOT_INIT();
+
+	warp_init(&bd.bi_enetaddr, &bd.bi_enet1addr);
+}
--- /dev/null	2005-11-20 22:22:37.000000000 -0500
+++ arch/powerpc/boot/warp.c	2008-01-08 12:09:54.000000000 -0500
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2008 PIKA Technologies
+ *   Sean MacLennan <smaclennan@pikatech.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; version 2 of the License
+ */
+#include "ops.h"
+#include "4xx.h"
+#include "44x.h"
+
+static u8 *warp_mac0, *warp_mac1;
+
+static void warp_fixups(void)
+{
+	unsigned long sysclk = 66000000;
+
+	ibm440ep_fixup_clocks(sysclk, 11059200, 50000000);
+	ibm4xx_sdram_fixup_memsize();
+	ibm4xx_quiesce_eth((u32 *)0xef600e00, (u32 *)0xef600f00);
+	dt_fixup_mac_addresses(warp_mac0, warp_mac1);
+}
+
+void warp_init(void *mac0, void *mac1)
+{
+	platform_ops.fixups = warp_fixups;
+	platform_ops.exit = ibm44x_dbcr_reset;
+	warp_mac0 = mac0;
+	warp_mac1 = mac1;
+	fdt_init(_dtb_start);
+	serial_console_init();
+}

  parent reply	other threads:[~2008-01-09 20:22 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 20:19 [PATCH 1/5] Warp Base Platform Sean MacLennan
2008-01-09 20:21 ` [PATCH 2/5] Warp Base Platform - dts Sean MacLennan
2008-01-10  2:47   ` David Gibson
2008-01-10  3:14     ` Sean MacLennan
2008-01-10  3:17       ` Josh Boyer
2008-01-10  3:33         ` Sean MacLennan
2008-01-10  3:35           ` David Gibson
2008-01-10  3:36           ` Josh Boyer
2008-01-10 23:59     ` Sean MacLennan
2008-01-11  0:20       ` David Gibson
2008-01-11  5:21         ` Sean MacLennan
2008-01-11  5:32           ` David Gibson
2008-01-11  6:15             ` Sean MacLennan
2008-01-11 17:54               ` Josh Boyer
2008-01-11 23:27                 ` Sean MacLennan
2008-01-12  6:13                   ` Stefan Roese
2008-01-12 20:32                     ` Sean MacLennan
2008-01-09 20:22 ` Sean MacLennan [this message]
2008-01-10  2:49   ` [PATCH 3/5] Warp Base Platform David Gibson
2008-01-10  3:17     ` Sean MacLennan
2008-01-10  3:29       ` David Gibson
2008-01-11  0:04     ` Sean MacLennan
2008-01-11  6:17       ` Sean MacLennan
2008-01-11 17:56         ` Josh Boyer
2008-01-09 20:23 ` [PATCH 4/5] Warp Base Platform - defconfig Sean MacLennan
2008-01-09 20:25 ` [PATCH 5/5] Warp Base Platform - cputable Sean MacLennan
2008-01-11  6:21 ` [PATCH 1/5] Warp Base Platform Sean MacLennan
2008-01-11  6:42 ` Stephen Rothwell
2008-01-11  7:10   ` Sean MacLennan
2008-01-11 10:02     ` Stephen Rothwell
2008-01-11 16:26       ` Sean MacLennan
2008-01-11 17:51     ` Josh Boyer
2008-01-11 23:39       ` Sean MacLennan
2008-01-12  2:40         ` Stephen Rothwell
2008-01-12  2:52           ` Sean MacLennan
2008-01-12  3:00           ` Olof Johansson
2008-01-12  2:55             ` Sean MacLennan
2008-01-12  3:47               ` Olof Johansson
2008-01-12  2:59             ` Sean MacLennan
2008-01-12  6:23         ` Stefan Roese
2008-01-12  6:35           ` Sean MacLennan
2008-01-12 20:30           ` Sean MacLennan
2008-01-12 20:42             ` Sean MacLennan
2008-01-13  0:35               ` Stephen Rothwell
2008-01-14 17:18                 ` Sean MacLennan
2008-01-16 23:29                 ` Sean MacLennan
2008-01-16 23:36                   ` Stephen Rothwell
2008-01-16 23:39                     ` Josh Boyer
2008-01-21 17:55                   ` Sean MacLennan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47852D16.2070906@pikatech.com \
    --to=smaclennan@pikatech.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.