linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* SystemACE, but I'm not a V2Pro
@ 2004-03-22  2:00 Stephen Williams
  2004-03-22 15:17 ` Jeff Angielski
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Williams @ 2004-03-22  2:00 UTC (permalink / raw)
  To: linuxppc-embedded


I'm successfully using the existing System ACE adapter driver
to mount my compact flash devices, and that's great. But I'm
getting some baggage I don't want. Specifically, in adapter.c
the xsysace_init function replaces the ppc_md.restart function
with xsysace_restart, which breaks reboot on my PPC405GPr based
board.

The brute force method is for me to #ifdef out that bit of
code with something like "#ifndef CONFIG_JSE" (my board is
a JSE board) but that seems klunky.

It seems to me there may be others who have SystemACE boards
without V2Pro chips. Would it be safe and reasonable for me
to use the CONFIG_VIRTEX_II_PRO config define to ifdef that
bit of code *in*?

(I'm asking because I'd like to integrate my board support
into the main tree someday, so I want a generally clean patch.)

--
Steve Williams                "The woods are lovely, dark and deep.
steve at XXXXXXXXXX           But I have promises to keep,
http://www.XXXXXXXXXX         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SystemACE, but I'm not a V2Pro
  2004-03-22  2:00 SystemACE, but I'm not a V2Pro Stephen Williams
@ 2004-03-22 15:17 ` Jeff Angielski
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Angielski @ 2004-03-22 15:17 UTC (permalink / raw)
  To: Stephen Williams; +Cc: linuxppc-embedded


Hi Stephen,

Here is the simple change that what worked for me:

static void
xsysace_restart(char *cmd)
{
        XSysAce_ResetCfg(&SysAce);

        /* also call the machdep restart */
        if( old_restart )
                old_restart(cmd);

        /* Wait for reset. */
        for (;;) ;
}


Jeff


On Sun, 2004-03-21 at 21:00, Stephen Williams wrote:
> I'm successfully using the existing System ACE adapter driver
> to mount my compact flash devices, and that's great. But I'm
> getting some baggage I don't want. Specifically, in adapter.c
> the xsysace_init function replaces the ppc_md.restart function
> with xsysace_restart, which breaks reboot on my PPC405GPr based
> board.
>
> The brute force method is for me to #ifdef out that bit of
> code with something like "#ifndef CONFIG_JSE" (my board is
> a JSE board) but that seems klunky.
>
> It seems to me there may be others who have SystemACE boards
> without V2Pro chips. Would it be safe and reasonable for me
> to use the CONFIG_VIRTEX_II_PRO config define to ifdef that
> bit of code *in*?
>
> (I'm asking because I'd like to integrate my board support
> into the main tree someday, so I want a generally clean patch.)
>
> --
> Steve Williams                "The woods are lovely, dark and deep.
> steve at XXXXXXXXXX           But I have promises to keep,
> http://www.XXXXXXXXXX         and lines to code before I sleep,
> http://www.picturel.com       And lines to code before I sleep."
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-22 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-22  2:00 SystemACE, but I'm not a V2Pro Stephen Williams
2004-03-22 15:17 ` Jeff Angielski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).