From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] inka4x0: Add hardware diagnosis functions for inka4x0
Date: Wed, 25 Mar 2009 00:36:51 +0100 [thread overview]
Message-ID: <49C96E93.1040101@denx.de> (raw)
In-Reply-To: <1237914158-15693-6-git-send-email-dzu@denx.de>
Hi Detlev,
Detlev Zundel wrote:
> This patch adds advanced diagnosis functions for the inka4x0 board.
>
> Signed-off-by: Andreas Pfefferle <ap@denx.de>
> Signed-off-by: Detlev Zundel <ap@denx.de>
Something went wrong here, duplicated e-mail address from
Andreas in your SoB. Also please see some style comments below.
> diff --git a/board/inka4x0/inkadiag.c b/board/inka4x0/inkadiag.c
> new file mode 100644
> index 0000000..bdbf652
> --- /dev/null
> +++ b/board/inka4x0/inkadiag.c
...
> +
> +static void inka_digio_set_output(unsigned int state, int which)
> +{
> + if (which == 0) {
> + /* other */
> + CHECK_LED(0);
> + CHECK_LED(1);
> + CHECK_LED(2);
> + CHECK_LED(3);
> + CHECK_LED(4);
> + CHECK_LED(5);
> + } else {
> + struct mpc5xxx_gpio *gpio = (struct mpc5xxx_gpio *)MPC5XXX_GPIO;
> + if (which == 1) {
maybe we should add blank line before 'if' statement here?
...
> +static void ser_putc(volatile struct mpc5xxx_psc *psc, const char c)
> +{
> + /* Wait 1 second for last character to go. */
> + int i = 0;
> + while (!(psc->psc_status & PSC_SR_TXEMP) && (i++ < 1000000/10))
add blank line before while().
...
> +static int ser_getc(volatile struct mpc5xxx_psc *psc)
> +{
> + /* Wait for a character to arrive. */
> + int i = 0;
> + while (!(psc->psc_status & PSC_SR_RXRDY) && (i++ < 1000000/10))
> + udelay(10);
add blank line before while().
...
> +U_BOOT_CMD(inkadiag, 6, 1, do_inkadiag,
> + "inkadiag - inka diagnosis\n",
> + "[inkadiag what ...]\n"
> + " - perform a diagnosis on inka hardware\n"
> + "'inkadiag' performs hardware tests.\n\n");
> +
> +/* Relocate the command table functino pointers when running in RAM */
Typo, s/functino/function/
> +int inkadiag_init_r (void) {
> + cmd_tbl_t *cmdtp;
> +
> + for (cmdtp = &cmd_inkadiag_sub[0]; cmdtp !=
> + &cmd_inkadiag_sub[ARRAY_SIZE(cmd_inkadiag_sub)]; cmdtp++) {
> + ulong addr;
> + addr = (ulong) (cmdtp->cmd) + gd->reloc_off;
add blank line after declaration.
Best regards,
Anatolij
next prev parent reply other threads:[~2009-03-24 23:36 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-24 17:02 [U-Boot] [PATCH v1 0/7] Update for inka4x0 plus some new features Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] command.c: Expose the core of do_help as _do_help to the rest of u-boot Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] mpc5xxx: Add structure definition for several more register blocks Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] drivers/twserial: Add protocol driver for "three wire serial" interface Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] rtc: add support for 4543 RTC (manufactured by e.g. EPSON) Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] inka4x0: Add hardware diagnosis functions for inka4x0 Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] inka4x0: Add hardware diagnosis and RTC in configuration Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] inka4x0: Use proper accessor macros for memory mapped registers Detlev Zundel
2009-03-24 22:56 ` [U-Boot] [PATCH] inka4x0: Add hardware diagnosis and RTC in configuration Wolfgang Denk
2009-03-25 9:16 ` Detlev Zundel
2009-03-25 9:41 ` Wolfgang Denk
2009-03-25 15:18 ` Detlev Zundel
2009-03-24 23:47 ` Anatolij Gustschin
2009-03-24 17:53 ` [U-Boot] [PATCH] inka4x0: Add hardware diagnosis functions for inka4x0 Heiko Schocher
2009-03-24 22:38 ` Wolfgang Denk
2009-03-25 9:40 ` Detlev Zundel
2009-03-25 9:40 ` Detlev Zundel
2009-03-25 12:16 ` Heiko Schocher
2009-03-24 22:50 ` Wolfgang Denk
2009-03-24 23:08 ` Scott Wood
2009-03-25 15:07 ` Detlev Zundel
2009-03-25 19:07 ` Wolfgang Denk
2009-03-24 23:36 ` Anatolij Gustschin [this message]
2009-03-25 9:13 ` Detlev Zundel
2009-03-24 22:54 ` [U-Boot] [PATCH] drivers/twserial: Add protocol driver for "three wire serial" interface Wolfgang Denk
2009-03-25 15:49 ` Detlev Zundel
2009-03-27 20:04 ` [U-Boot] [PATCH] mpc5xxx: Add structure definition for several more register blocks Wolfgang Denk
2009-03-24 22:36 ` [U-Boot] [PATCH v1 0/7] Update for inka4x0 plus some new features Wolfgang Denk
2009-03-25 15:12 ` Detlev Zundel
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=49C96E93.1040101@denx.de \
--to=agust@denx.de \
--cc=u-boot@lists.denx.de \
/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.