public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: christian at kwikbyte.com <christian@kwikbyte.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] NAND patch update for KB9202B
Date: Sat, 9 Jun 2007 12:05:59 -0700	[thread overview]
Message-ID: <000001c7aac9$37c38f60$b30196c0@jdesk0010> (raw)
In-Reply-To: <20070607230205.CECCC352681@atlas.denx.de>


-----Original Message-----
From: u-boot-users-bounces@lists.sourceforge.net
[mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of
Wolfgang Denk
Sent: Thursday, June 07, 2007 4:02 PM
To: Matthias Kaehlcke
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] NAND patch update for KB9202B

In message <20070607205405.GD7048@traven> you wrote:
> 
> this is an update of the NAND support patch for the KB9202 board,
> adapted to changes in the board specific Makefile

Sorry, but I have to reject this patch. Please see
http://www.denx.de/wiki/UBoot/Patches for help.

* Signed-off-by: line is missing.
* Patch is not inline, but compressed and thus unreadable
* Patch contains coding style violations (C++ comments)

Also, why are you doing this:

+#ifndef        CONFIG_KB9202B_ATL
+/* 
+       AT91C_BASE_PIOC->PIO_SODR = AT91C_PIO_PC28;
+       AT91C_BASE_PIOC->PIO_ODR = AT91C_PIO_PC29;
+       AT91C_BASE_PIOC->PIO_PER = AT91C_PIO_PC28 | AT91C_PIO_PC29;
+       AT91C_BASE_PIOC->PIO_OER = AT91C_PIO_PC28;
+*/ 
+       AT91C_BASE_PIOC->PIO_SODR = ((unsigned)1<<28);
+       AT91C_BASE_PIOC->PIO_ODR = ((unsigned)1<<29);
+       AT91C_BASE_PIOC->PIO_PER = ((unsigned)1<<28) |
((unsigned)1<<29);
+       AT91C_BASE_PIOC->PIO_OER = ((unsigned)1<<28);
+#else
+/* 
+       AT91C_BASE_PIOB->PIO_SODR = AT91C_PIO_PB26;
+       AT91C_BASE_PIOB->PIO_ODR = AT91C_PIO_PB27;
+       AT91C_BASE_PIOB->PIO_PER = AT91C_PIO_PB26 | AT91C_PIO_PB27;
+       AT91C_BASE_PIOB->PIO_OER = AT91C_PIO_PB26;
+*/ 
+       AT91C_BASE_PIOB->PIO_SODR = ((unsigned)1<<26);
+       AT91C_BASE_PIOB->PIO_ODR = ((unsigned)1<<27);
+       AT91C_BASE_PIOB->PIO_PER = ((unsigned)1<<26) |
((unsigned)1<<27);
+       AT91C_BASE_PIOB->PIO_OER = ((unsigned)1<<26);
+#endif 

If the commented out code is wrong, then it should be removed. On the
other hand, it looks better to me  than  the  code  that  is  inplace
instead. Please clean up.

Best regards,

Wolfgang Denk


>>>>>>
The commented code was supposed to give a little more insight as to what
was going on in the absence of defined symbols, but really doesn't add
much - as you noticed.
I'm including a revised patch that removes the commented code you
pointed at.  No c++ comments, either.
The included patch is meant to replace the one I submitted 07JUN with
following body content:


Add NAND support on KB9202 boards.
Signed-off by: christian at kwikbyte.com


Thank you.
<<<<<<
 

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
panic: can't find /

------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kb9202_nand.patch
Type: application/octet-stream
Size: 8088 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070609/6f7c370d/attachment.obj 

  reply	other threads:[~2007-06-09 19:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-07 20:54 [U-Boot-Users] NAND patch update for KB9202B Matthias Kaehlcke
2007-06-07 21:09 ` Matthias Kaehlcke
2007-06-07 23:02 ` Wolfgang Denk
2007-06-09 19:05   ` christian at kwikbyte.com [this message]
2007-06-09 23:11     ` Wolfgang Denk
2007-06-10 12:24   ` Matthias Kaehlcke

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='000001c7aac9$37c38f60$b30196c0@jdesk0010' \
    --to=christian@kwikbyte.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox