From owner-freebsd-ppc@FreeBSD.ORG Mon Nov 3 08:22:04 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A4131065678; Mon, 3 Nov 2008 08:22:04 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id D734E8FC1A; Mon, 3 Nov 2008 08:22:03 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from wolfram.andreas.nets ([91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id mA38LwQQ056017; Mon, 3 Nov 2008 09:22:00 +0100 (CET) (envelope-from andreast-list@fgznet.ch) Message-ID: <490EB4A5.3010609@fgznet.ch> Date: Mon, 03 Nov 2008 09:21:57 +0100 From: Andreas Tobler User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: Marco Trillo References: <490E152C.30300@fgznet.ch> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: FreeBSD PowerPC ML Subject: Re: DFS on PowerBook5,4 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2008 08:22:04 -0000 Hi Marco, Marco Trillo wrote: > On Sun, Nov 2, 2008 at 10:01 PM, Andreas Tobler wrote: >> The problem I have, I do not know how and what to tell gpio to do the right >> thing. >> >> At OF prompt I can set set-dfs-high and my PB comes up in full speed, >> 1.5GHz. >> >> Having a look at set-dfs-high: >> >> set-dfs-high >> pvr@ 10 rshift 8003 <> if >> exit >> else >> 5 1 gpio! 1 ms hid1@ 1 1f 9 - lshift andc hid1! >> then >> ; ok >> >> I see that I have to do something with gpio. But I do not know what and how. >> The difference from set-dfs-high @ OF level and my implementation attempt is >> the gpio part which is missing right now. > > Hmm... for the GPIO part, you might want to try the following ugly hack: > > #include > > out8(0x8000006b, 0x5); > DELAY(1000); /* wait 1 ms */ > > ... I think it will do the same as "5 1 gpio! 1 ms" in OF, but of > course, no warranty for that :) It didn't burn the PowerBook :) FreeBSD 8.0-CURRENT #8: Mon Nov 3 07:56:10 CET 2008 andreast@wolfram.andreas.nets:/usr/obj/export/devel/fbsd/src/sys/ANDREAST cpu0: Motorola PowerPC 7447A revision 1.1, 1504.63 MHz cpu0: L1 I-cache enabled, L1 D-cache enabled cpu0: 512KB L2 cache cpu0: HID0 8450c0bc cpu0: HID1 8000fc80 real memory = 1063473152 (1014 MB) avail memory = 1027330048 (979 MB) Thanks a lot! Sometimes I seem to miss the simple things.... I continue playing..... Thanks again, Andreas