From: Theo Gjaltema <gjalt007@chello.nl>
To: lobo fan <lobofan@gmail.com>
Cc: "linuxppc-embedded@ozlabs.org" <linuxppc-embedded@ozlabs.org>
Subject: Re: reboot of mpc8270 sometimes fails
Date: Tue, 04 Dec 2007 09:42:26 +0100 [thread overview]
Message-ID: <475512F2.6040503@chello.nl> (raw)
In-Reply-To: <d111b2340711212024o2c261b6bn790edf4b4b9f9d50@mail.gmail.com>
Index: m8260_setup.c
===================================================================
RCS file: /home/.dbCVS_linux/kernel_2_4_25/arch/ppc/kernel/m8260_setup.c,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -c -r1.1.1.2 -r1.2
*** m8260_setup.c 2006/11/17 07:58:49 1.1.1.2
--- m8260_setup.c 2007/10/08 07:53:54 1.2
***************
*** 148,154 ****
--- 148,164 ----
if (!strncmp(cmd, "startaddr=", 10))
startaddr = simple_strtoul(&cmd[10], NULL, 0);
}
+ #if defined (CONFIG_8260)
+ {
+ #include <asm-ppc/cpm_8260.h>
+ volatile cpm8260_t *cp = &((immap_t *)IMAP_ADDR)->im_cpm;
+ cp->cp_cpcr = (CPM_CR_RST | CPM_CR_FLG); /* see page 14.17 $14.4.2 of the CPM manual */
+
+ while (cp->cp_cpcr & CPM_CR_FLG); /* Wait for it (should be 2 clocks). */
+
+ }
+ #endif
m8260_gorom((unsigned int)__pa(__res), startaddr);
}
lobo fan schreef:
> Hi Theo,
> Could you please give me the patch? I am very interested in your patch.
>
> --
> Thanks.
>
> Best Regards,
> Lobo
> ------------------------------------------------------------------------
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
next prev parent reply other threads:[~2007-12-04 8:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-22 4:24 reboot of mpc8270 sometimes fails lobo fan
2007-12-04 8:42 ` Theo Gjaltema [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-10-31 20:14 Matvejchikov Ilya
2007-11-01 18:02 ` Theo Gjaltema
2007-10-09 10:23 Theo Gjaltema
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=475512F2.6040503@chello.nl \
--to=gjalt007@chello.nl \
--cc=linuxppc-embedded@ozlabs.org \
--cc=lobofan@gmail.com \
/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 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).