Date: Sun, 2 Nov 2008 23:33:38 +0100 From: "Marco Trillo" <marcotrillo@gmail.com> To: "Andreas Tobler" <andreast-list@fgznet.ch> Cc: FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Subject: Re: DFS on PowerBook5,4 Message-ID: <b9c23c9f0811021433y53742a37y2c6625eedf1a3aff@mail.gmail.com> In-Reply-To: <490E152C.30300@fgznet.ch> References: <490E152C.30300@fgznet.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Sun, Nov 2, 2008 at 10:01 PM, Andreas Tobler <andreast-list@fgznet.ch> 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 <machine/pio.h> 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 :) Regards Marco
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b9c23c9f0811021433y53742a37y2c6625eedf1a3aff>