Re: [U-Boot] UEC phy not working on first try

2011-04-20 Thread DUNDA Matthias
  I am using u-boot.2010.09 on a MPC8568-based board.
 
  When trying to boot over one of the UEC network interfaces, it is not
  working instantly. The cable is connected from the beginning, but I
  have to issue a manual 'boot' command, sometimes even multiple times
  before the link is correct. This is the output:

 Do all the UEC interfaces show the same symptoms?

Yes, this happens for all UECs. And I think it worked until we switched from 
u-boot 2009.11.1 to 2010.09 - but there's so much change that I didn't find the 
reason for it, yet.


 The driver thinks the link went away again.  When the cable is
 connected all the time, then this is an indication of something going
 wrong.  You should try to diagnose, why the software gets this link
 change and if it really is an information that the phy provides, if the
 physical path to the phy is stable.

Well, the software runs though uec_init (the_first_run is zero) and gets a 
positive link state in the do-while-loop instantly. Afterwards adjust_link is 
called - and there it fails. Strange thing - I guess I need to dig a little 
deeper...

Code hints are very appreciated! ;-)


 Best wishes
   Detlev Zundel
Thanks!
Matthias


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Fix for overlapping sections?

2011-04-20 Thread Wolfgang Denk
Dear Larry,

In message 
f4ba0e7cacfbac4384dc92f2d5aab507ab4...@dsgburgmail001.gburg.drs-ds.master you 
wrote:
 
 A while back there was a fix for the overlapping section link problem
 (see below) involving changing some sort of global.  Does anyone have a
 pointer to the change.  I'm using a fairly old uboot for AMCC
 Canyonlands/460Ex and can't easily upgrade to a newer uboot build.

I don't understand what you mean.  Why exactly can you not upgrade to
a recent version of U-Boot?  All it takes to get a current version of
U-Boot for the Canyonlands board is to type ./MAKEALL canyonlands.



Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
A fail-safe circuit will destroy others. -- Klipstein
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH-V2 2/2] at91: reworked support for otc570 board

2011-04-20 Thread Daniel Gorsulowski
Hello Reinhard,

Reinhard Meyer wrote:
 Am 18.04.2011 16:15, schrieb Daniel Gorsulowski:
 The otc570 board support was broken. Within this opportunity, I completely
 reworked the board files.

 Signed-off-by: Daniel Gorsulowski daniel.gorsulow...@esd.eu
 ---

 This patch is based on u-boot-atmel/rework101229 branch (minus the last 5
 patches) plus the 'at91: fixed at91sam9263 system file' patch in
 u-boot-atmel/next branch.

 V2: -fixed commit description

  board/esd/otc570/config.mk |1 -
  board/esd/otc570/otc570.c  |  106 ++
  boards.cfg |3 +-
  include/configs/otc570.h   |  265 
 +---
  4 files changed, 211 insertions(+), 164 deletions(-)
  delete mode 100644 board/esd/otc570/config.mk
 
 This patch had several places with spacetab or start of linespace.
 
 I removed them manually. Please, next time run your patches through
 linux/scripts/checkpatch.pl. Thanks.

Sorry, but I checked my patches by checkpatch.pl. Maybe you can explain
me, what I did wrong?

danielg@debby:~/git/u-boot-atmel$
../linux/linux-2.6/scripts/checkpatch.pl
0002-at91-reworked-support-for-otc570-board.patch
WARNING: Use #include linux/io.h instead of asm/io.h
#48: FILE: board/esd/otc570/otc570.c:30:
+#include asm/io.h

ERROR: Macros with complex values should be enclosed in parenthesis
#578: FILE: include/configs/otc570.h:209:
+# define CONFIG_SYS_NAND_ENABLE_PINAT91_PIO_PORTD, 15

ERROR: Macros with complex values should be enclosed in parenthesis
#579: FILE: include/configs/otc570.h:210:
+# define CONFIG_SYS_NAND_READY_PIN AT91_PIO_PORTA, 22

total: 2 errors, 1 warnings, 610 lines checked

0002-at91-reworked-support-for-otc570-board.patch has style problems,
please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

 
 Applied to u-boot-atmel/next.

Thank you!

 
 Best Regards,
 
 Reinhard
 ___
 U-Boot mailing list
 U-Boot@lists.denx.de
 http://lists.denx.de/mailman/listinfo/u-boot
 
 
 

-- 
Mit freundlichen Grüßen
Daniel Gorsulowski

-
B.Eng. Daniel Gorsulowski
System-Design

esd electronic system design gmbh
Vahrenwalder Str. 207 - 30165 Hannover - GERMANY
Telefon: 0511-37298-192 - Fax: 0511-37298-68
Bitte besuchen Sie uns im Internet unter http://www.esd.eu
Quality Products - Made in Germany
-
Geschäftsführer: Klaus Detering
Amtsgericht Hannover HRB 51373 - VAT-ID DE 115672832
-
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] How does u-boot know where to put its start code?

2011-04-20 Thread Rogan Dawes
On 2011/04/20 7:42 AM, Albert ARIBAUD wrote:
 Le 20/04/2011 04:23, Hebbar, Gururaja a écrit :
 Hi,

 On Wed, Apr 20, 2011 at 02:43:23, Rogan Dawes wrote:
 Hi folks,

 I'm trying to understand a bit more about how u-boot creates the
 image, such that the CPU reset vector is pointing to the right piece
 of code when it is reset.

 i.e. my DNS323 (Orion5x) has a reset vector of 0x. But for
 the life of me, I can't find anywhere that actually references that
 value to place the start code at that point.


 Placing the final boot image is left to user who flashes/burns it
 board. But it should be same as _TEXT_BASE (this is being removed now.
 Orion5x is arm based). Also look
 atu-boot-src\arch\arm\cpu\arm926ejs\start.S 
 u-boot-src\arch\arm\cpu\arm926ejs\u-boot.lds for more info on how
 linker is instructed to place the starting code at predefined address.

 I'm basically trying to make sure that my CONFIG_SYS_TEXT_BASE is
 correct (the address in the flash to which I write the whole
 u-boot.bin file, right?.

 This is passed to linker as the entry point.
 
 There is another point re: orion5x based boards: often, their designers
 preferred generating a linear image for U-Boot, but the fact that the
 vector address is at  makes it impossible to directly the image
 there because it is always greater than 64K. So the designers put some
 pseudo-rom boot code at  that will finally jump to an address
 lower in FLASH; for ED Mini V2 it is FFF9, and that's where the
 U-Boot image is supposed to be flashed.

So, is that the address that you would use for CONFIG_SYS_TEXT_BASE ?

 Rogan, I bet in the DNS323 case, the same applies modulo your Flash
 size. Try tracing through the  code, it should not last more
 than a few tens of instructions before it jumps to some absolute address.

Do you think it would be possible to figure it out from the original
vendor u-boot?

Thanks

Rogan
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Update and Cut down mach types

2011-04-20 Thread Detlev Zundel
Hi Michael,

[...]

 I did that and got the following reply (without quotes due to cut-and-paste)

[...]

 The normal URL which you fetch the file from (as contained within the
 file) will give you the full listing rather than the cut-down version.
 There really is no need for uboot to go picking the copy up from the
 mainline kernel.

So we can just use that version and everything remains sane?  Then
let's do that and move on to other topics ;)

Cheers
  Detlev

-- 
If we knew what it was we were doing, we wouldn't call it research.
-- Einstein
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 3/6] TFTP: rename server to remote

2011-04-20 Thread Detlev Zundel
Hi Luca,

 Hi,

 just a few e-mails ago along this thread Albert Aribaud wrote:

  My opinion is that you should make sure that at least the code you touch
  is checkpatch-clean, so yes, you should fix that; but there is no need
  to submit 'checkpatch-compliance' patches. Just fix the line here so
  that checkpatch does not complain.


 So I proceeded along that way.

 Now Detlev Zundel wrote:
 ...
 Hm, I see.  Still, can we have one commit (with cosmetic in the
 changelog) that silences checkpatch but does not have any functional
 changes?  We really try hard to separate cosmetic from functional
 changes.  This makes reviewing (and debugging) so much easier.

 While I appreciate the careful review of my patches, I cannot hide
 that it is discouraging for new contributors to be requested for
 contradictory modifications.

Sorry for that, but it is only that we start using checkpatch more
aggressively, that such problems turn up which we did not yet agree on
how to solve.

 There should be one precise policy, and that should be clearly documented.

I fully agree.

 http://www.denx.de/wiki/U-Boot/CodingStyle is the place where I would
 expect to find it.

I'll start a new thread to discuss this.  Hopefully we then come up with
a policy to stick into that wiki page.

Thanks for bearing with me
  Detlev

-- 
In God we trust.  All others we monitor
   -- NSA motto
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] UEC phy not working on first try

2011-04-20 Thread Detlev Zundel
Hi Matthias,

  I am using u-boot.2010.09 on a MPC8568-based board.
 
  When trying to boot over one of the UEC network interfaces, it is not
  working instantly. The cable is connected from the beginning, but I
  have to issue a manual 'boot' command, sometimes even multiple times
  before the link is correct. This is the output:

 Do all the UEC interfaces show the same symptoms?

 Yes, this happens for all UECs. And I think it worked until we
 switched from u-boot 2009.11.1 to 2010.09 - but there's so much change
 that I didn't find the reason for it, yet.

Ah!  I didn't realize that you are in the excellent position to have one
good and one bad commit.  Simply use git bisect to find the problematic
commit and show that to us.

Best wishes
  Detlev

-- 
... and I will continue to use a  low-level language to indicate how
machines actually compute.  Readers  who only want to see algorithms
that are already packaged in a plug-in way, using a trendy language,
should buy other people's books.
 -- Donald Knuth, Fascicle 1
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] How does u-boot know where to put its start code?

2011-04-20 Thread Albert ARIBAUD
Hi Rogan,

Le 20/04/2011 09:46, Rogan Dawes a écrit :
 On 2011/04/20 7:42 AM, Albert ARIBAUD wrote:
 Le 20/04/2011 04:23, Hebbar, Gururaja a écrit :
 Hi,

 On Wed, Apr 20, 2011 at 02:43:23, Rogan Dawes wrote:
 Hi folks,

 I'm trying to understand a bit more about how u-boot creates the
 image, such that the CPU reset vector is pointing to the right piece
 of code when it is reset.

 i.e. my DNS323 (Orion5x) has a reset vector of 0x. But for
 the life of me, I can't find anywhere that actually references that
 value to place the start code at that point.


 Placing the final boot image is left to user who flashes/burns it
 board. But it should be same as _TEXT_BASE (this is being removed now.
 Orion5x is arm based). Also look
 atu-boot-src\arch\arm\cpu\arm926ejs\start.S
 u-boot-src\arch\arm\cpu\arm926ejs\u-boot.lds for more info on how
 linker is instructed to place the starting code at predefined address.

 I'm basically trying to make sure that my CONFIG_SYS_TEXT_BASE is
 correct (the address in the flash to which I write the whole
 u-boot.bin file, right?.

 This is passed to linker as the entry point.

 There is another point re: orion5x based boards: often, their designers
 preferred generating a linear image for U-Boot, but the fact that the
 vector address is at  makes it impossible to directly the image
 there because it is always greater than 64K. So the designers put some
 pseudo-rom boot code at  that will finally jump to an address
 lower in FLASH; for ED Mini V2 it is FFF9, and that's where the
 U-Boot image is supposed to be flashed.

 So, is that the address that you would use for CONFIG_SYS_TEXT_BASE ?

Yes, exactly.

 Rogan, I bet in the DNS323 case, the same applies modulo your Flash
 size. Try tracing through the  code, it should not last more
 than a few tens of instructions before it jumps to some absolute address.

 Do you think it would be possible to figure it out from the original
 vendor u-boot?

Sort of: if you look up the vendor U-Boot source code and find nothing 
about 0x, that's a sign that it expects something else than 
U-Boot to kick in at that address.

You can also disassemble what lies at 0x on your board, either 
live through JTAG or offline by running a binary extract of  
through objdump.

 Thanks

 Rogan

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 3/6] TFTP: rename server to remote

2011-04-20 Thread Detlev Zundel
Hi Luca,

 Il 19/04/2011 16:18, Detlev Zundel ha scritto:
 Hi Luca,

 With the upcoming TFTP server implementation, the remote node can be
 either a client or a server, so avoid ambiguities.

 Signed-off-by: Luca Ceresoliluca.ceres...@comelit.it
 Cc: Wolfgang Denkw...@denx.de
 ---
 Changes in v2:
   - fixed checkpatch issues.

   net/tftp.c |   42 +-
   1 files changed, 21 insertions(+), 21 deletions(-)

 diff --git a/net/tftp.c b/net/tftp.c
 index 00abec3..da545c6 100644
 --- a/net/tftp.c
 +++ b/net/tftp.c
 @@ -55,18 +55,18 @@ enum {
 TFTP_ERR_FILE_ALREADY_EXISTS = 6,
   };

 -static IPaddr_t TftpServerIP;
 -static int TftpServerPort; /* The UDP port at their end
 */
 -static int TftpOurPort;/* The UDP port at our end  
 */
 +static IPaddr_t TftpRemoteIP;
 +static int TftpRemotePort; /* The UDP port at their end*/
 +static int TftpOurPort;/* The UDP port at our end  */
   static intTftpTimeoutCount;
 -static ulong   TftpBlock;  /* packet sequence number   
 */
 -static ulong   TftpLastBlock;  /* last packet sequence number 
 received */
 -static ulong   TftpBlockWrap;  /* count of sequence number 
 wraparounds */
 -static ulong   TftpBlockWrapOffset;/* memory offset due to 
 wrapping*/
 +static ulong   TftpBlock;  /* packet sequence number   
 */
 +static ulong   TftpLastBlock;  /* last packet sequence number received 
 */
 +static ulong   TftpBlockWrap;  /* count of sequence number wraparounds 
 */
 +static ulong   TftpBlockWrapOffset; /* memory offset due to wrapping   
 */
 These changes are indentation only changes, so they should be in a
 separate patch.

 It's needed for checkpatch compliance.

I'm trying to understand the problems involved, but looking at this
again, it is not clear to me what you say here.  When I run your version
1 of the patches (where you only do the rename) through checkpatch, I
get:

  WARNING: line over 80 characters
  #116: FILE: net/tftp.c:59:
  +static int   TftpRemotePort; /* The UDP port at their end
*/
  
  WARNING: consider using kstrto* in preference to simple_strtol
  #215: FILE: net/tftp.c:619:
  + TftpRemotePort = simple_strtol(ep, NULL, 10);
  
  total: 0 errors, 2 warnings, 99 lines checked
  
  /home/dzu/transfer/p2 has style problems, please review.  If any of these 
errors
  are false positives report them to the maintainer, see
  CHECKPATCH in MAINTAINERS.

So I'm not sure why you say that the other changes are needed for
checkpatch.  What exactly do you mean by this?

Thanks
  Detlev

-- 
C hasn't changed much since the 1970s. And let's face it it's ugly.
Can't we do better? C++? (Sorry, never mind.)
-- Rob Pike
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Update and Cut down mach types

2011-04-20 Thread Albert ARIBAUD
Le 19/04/2011 15:45, Paulraj, Sandeep a écrit :



 Hello Sandeep, Wolfgang

 Am 19.04.2011 14:42, schrieb Paulraj, Sandeep:
 Wolfgang, Albert,

 Russell King sent some updates to the linux kernel for mach-types.

 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-
 2.6.git;a=commitdiff;h=6f82f4db80189281a8ac42f2e72396accb719b57

   He also removed a lot of entries which never made it to mainline.

 I have a patch and it is the branch below

 http://git.denx.de/?p=u-boot/u-boot-
 ti.git;a=shortlog;h=refs/heads/update-mach-types

 Please review and if it is acceptable to everyone then we should
 apply this patch to remain in sync with the mainline kernel.

 This will break a least jadecpu.
 We don't use Linux on this board. When
 porting I was requested to reserve an MACH_ID just in case the board
 will ever be used with Linux. This has not been the case for this board.
 But I would like to have this board in the u-boot tree.

 We are not removing this board from u-boot

 What will be the
 solution for ARM but non-Linux u-boot ports then? What should be passed
 to gd-bd-bi_arch_number?

 I'll defer to Wolfgang and Albert on this issue.

 There are new boards and hence mach types being added.
 Russell sent a patch that both added new mach IDs and removed many others.


 --Sandeep

If the jadecpu board does not require a machine ID because it does not 
run Linux, then it should be able to build without a machine ID. So:

- if the need for a machine ID lies in the jadecpu U-Boot code, then the 
jadecpu code should be fixed.

- if the need for a machine ID is general to the U-Boot ARM arch, than 
the ARM arch must be fixed.

Now somebody must find out which is which, and submit a patch copying 
either the jadecpu maintainer, the ARM custodian, or better yet, both. :)

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] TFTP - check for len == 0 before storing

2011-04-20 Thread David Andrey
Hello,

I had a problem with an old TFTP Server which is sending a second last
data block with len == 0 at end. It's clearly not RFC conform, but I
still made a additional check in u-boot/tftp to avoid a wrong filesize
value. This wrong filesize value caused some trouble by NAND operations.


Regards
David



Date: Wed, 20 Apr 2011 10:12:10 +0200
Subject: [PATCH] Check for for data block len == 0

---
 net/tftp.c |   10 --
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/net/tftp.c b/net/tftp.c
index ed559b7..40d81b5 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -135,8 +135,14 @@ mcast_cleanup(void)
 static __inline__ void
 store_block (unsigned block, uchar * src, unsigned len)
 {
-   ulong offset = block * TftpBlkSize + TftpBlockWrapOffset;
-   ulong newsize = offset + len;
+   ulong offset = 0;
+   ulong newsize = 0;
+
+   if (len == 0)
+   return;
+
+   offset = block * TftpBlkSize + TftpBlockWrapOffset;
+   newsize = offset + len;
 #ifdef CONFIG_SYS_DIRECT_FLASH_TFTP
int i, rc = 0;

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Update and Cut down mach types

2011-04-20 Thread Igor Grinberg
Hi Sandeep, Albert, Wolfgang,

On 04/19/11 15:42, Paulraj, Sandeep wrote:
 Wolfgang, Albert,

 Russell King sent some updates to the linux kernel for mach-types.

 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=6f82f4db80189281a8ac42f2e72396accb719b57

 He also removed a lot of entries which never made it to mainline.

Well, as I understood from Russell, the main purpose of this cut down
is to make du -s linux/arch/arm smaller, because there is no real need in
all those boards listed in mach-types.h unless there is a support for them
in mainline Linux kernel.
Nevertheless the real ARM registry remains untouched - meaning that all
board ids remain the same and no board is removed from the registry.

This is the place where U-Boot board support diverges from Linux...

Are we obliged to follow the Linux mach-types.h?
Can't we just adopt Russell's cut down script to boards supported by U-Boot?
Or will it harden the mach-types.h future updates?

Have you thought of getting rid of mach-types.h completely?
Making every board define its ARM registry id can work and will
eliminate the need for mach-types.h update every couple of months.

 I have a patch and it is the branch below

 http://git.denx.de/?p=u-boot/u-boot-ti.git;a=shortlog;h=refs/heads/update-mach-types

Have you checked that none of the removed boards are in U-Boot tree?
Because if there are some, then their build will be broken...
And have to be fixed by... say a #define MACH_TYPE_* id
in a board_config file.


 Please review and if it is acceptable to everyone then we should apply this 
 patch to remain in sync with the mainline kernel.

[...]


-- 
Regards,
Igor.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Please pull u-boot-ti/master

2011-04-20 Thread Albert ARIBAUD
Hi Sandeep,

Le 19/04/2011 16:02, s-paul...@ti.com a écrit :
 The following changes since commit 75cb6fbe7293fbde04662124bf8f4dbef0dbce44:
Albert Aribaud (1):
  Merge remote-tracking branch 'u-boot-ti/master'

 are available in the git repository at:

git://git.denx.de/u-boot-ti.git master

 Alexander Holler (3):
OMAP3: Change some USB related MUX values
OMAP3: Add support for DPLL5 (usbhost)
omap3_beagle: enable EHCI and USB storage.

 Enric Balletbo i Serra (2):
ARM: OMAP3: Revamp IGEP v2 default
ARM: OMAP3: Revamp IGEP module default configuration

 Luca Ceresoli (2):
ARMV7: OMAP3: Fix preprocessor check for CONFIG_OMAP34XX
ARMV7: OMAP3: Add GPMC_CONFIGx register value definitions

   arch/arm/cpu/armv7/omap3/clock.c   |   20 +
   arch/arm/cpu/armv7/omap3/lowlevel_init.S   |   22 +
   arch/arm/cpu/armv7/start.S |2 +-
   arch/arm/include/asm/arch-omap3/clocks.h   |1 +
   arch/arm/include/asm/arch-omap3/clocks_omap3.h |   26 ++
   arch/arm/include/asm/arch-omap3/cpu.h  |   21 -
   arch/arm/include/asm/arch-omap3/ehci_omap3.h   |   58 +
   arch/arm/include/asm/arch-omap3/omap3-regs.h   |   95 +
   board/ti/beagle/beagle.c   |  106 
 
   board/ti/beagle/beagle.h   |   27 +++---
   include/configs/igep0020.h |   57 -
   include/configs/igep0030.h |   57 -
   include/configs/omap3_beagle.h |6 ++
   13 files changed, 469 insertions(+), 29 deletions(-)
   create mode 100644 arch/arm/include/asm/arch-omap3/ehci_omap3.h
   create mode 100644 arch/arm/include/asm/arch-omap3/omap3-regs.h

Pulled in u-boot-arm/master, thanks.

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Policy for checkpatch usage?

2011-04-20 Thread Detlev Zundel
Hi,

currently our CodingStyle[1] has this to say about checkpatch.pl:

  Make sure to run the checkpatch.pl script from the Linux source tree
  to check your patches. Note that this should be done before posting on
  the mailing list!

Now this is not very clear as to what should be done with regard to the
results of such a checkpatch run.  I think we all agree that warnings
tailored to the linux kernel like this can be ignored:

  WARNING: consider using kstrto* in preference to simple_strtol
  #215: FILE: net/tftp.c:619:
  + TftpRemotePort = simple_strtol(ep, NULL, 10);

From this it follows, that we _cannot_ require 0 warnings from
checkpatch.  Maybe we can require 0 _errors_?

Moreover, it's only recently that I saw checkpatch warning about lines
that are not even changed in a patch but are only in the context, as for
exmaple here:

  WARNING: unnecessary whitespace before a quoted newline
  #293: FILE: net/net.c:1604:
debug(Got ICMP ECHO REQUEST, return %d bytes 
\n,
  
Now when this is fixed, the new patch will then contain a cosmetic
change only intermixed with the real changes.  Personally I think this
is problematic and contrary to the intention of checking a _patch_, but
it's the way it is.

I think we all agree that we should make reviews as easy as possible.
In order for that, we need to separate cosmetic from functional changes.
Otherwise in large patches it is very difficult to find the meat of a
patch.  Only recently this exact problem made Andy Fleming resplit a
large commit[2] into functional and cosmetic[3] changes (ironically the
cosmetic changes were added as a followup to my request of fixing
checkpatch problems).  As much as this is appreciated, it is clear that
it takes some effort to do.  Ideally we should prevent such work right
from the start.

So what exact wording should we use in our CodingStyle to prevent such
problems, or should we even start our own version of checkpatch tailored
to our project?

As a base for discussion, what about this:

  Use common sense in interpreting the results of checkpatch. Warnings
  that clearly only make sense in the Linux kernel can be ignored.  Also
  warnings produced for _context lines_ rather than actual changes can
  also be ignored.

Thanks
  Detlev  

[1] http://www.denx.de/wiki/view/U-Boot/CodingStyle
[2] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/97068
[3] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/97129

-- 
config LGUEST
If unsure, say N.  If curious, say M.  If masochistic, say Y.
 -- linux/drivers/lguest/Kconfig
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH V3 1/2] MX5: factor out boot cause funciton to common code

2011-04-20 Thread Stefano Babic
On 04/18/2011 11:19 AM, Detlev Zundel wrote:
 Hi Stefano,
 
 On 04/15/2011 02:47 PM, Fabio Estevam wrote:
 +char *get_reset_cause(void)
 +{
 +u32 cause;
 +struct src *src_regs = (struct src
 *)SRC_BASE_ADDR;
 +
 +cause = readl(src_regs-srsr);

 You need to mask the 7 LSB of SRSR register.

 If you don´t bit 16 can still affect its result.

 Why ? As this becomes a general function for i.MX5, should we not
 provide a way to check all significant bits ? Why should we exclude the
 warm boot bit to be checked and printed out ?
 
 And _please_ (as indictated in my i.MX31 mail) use the code for _all_
 iMX51 boards withoput the need for them to call a function and print the
 result.

Jason,

I noted only now that this comment was not directly addressed to you,
but it is related to your patch. As you see for the i.MX31, the result
of the discussion was to call the get_reset_cause() inside the
print_cpuinfo() function, to make automatically this function available
for all MX5 boards.

Regards,
Stefano

-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: off...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Policy for checkpatch usage?

2011-04-20 Thread Graeme Russ
On Wednesday, April 20, 2011, Detlev Zundel d...@denx.de wrote:
 Hi,



 As a base for discussion, what about this:

   Use common sense in interpreting the results of checkpatch. Warnings
   that clearly only make sense in the Linux kernel can be ignored.  Also
   warnings produced for _context lines_ rather than actual changes can
   also be ignored.

One man's common sense is another's idiocy

I vote for a zero warnings, zero errors U-Boot specific checkpatch

Regards,

Graeme
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] How does u-boot know where to put its start code?

2011-04-20 Thread Rogan Dawes
On 2011/04/20 10:29 AM, Albert ARIBAUD wrote:
 Hi Rogan,
 
 Le 20/04/2011 09:46, Rogan Dawes a écrit :
 On 2011/04/20 7:42 AM, Albert ARIBAUD wrote:
 Le 20/04/2011 04:23, Hebbar, Gururaja a écrit :
 Hi,

 On Wed, Apr 20, 2011 at 02:43:23, Rogan Dawes wrote:
 Hi folks,

 I'm trying to understand a bit more about how u-boot creates the
 image, such that the CPU reset vector is pointing to the right piece
 of code when it is reset.

 i.e. my DNS323 (Orion5x) has a reset vector of 0x. But for
 the life of me, I can't find anywhere that actually references that
 value to place the start code at that point.


 Placing the final boot image is left to user who flashes/burns it
 board. But it should be same as _TEXT_BASE (this is being removed now.
 Orion5x is arm based). Also look
 atu-boot-src\arch\arm\cpu\arm926ejs\start.S
 u-boot-src\arch\arm\cpu\arm926ejs\u-boot.lds for more info on how
 linker is instructed to place the starting code at predefined address.

 I'm basically trying to make sure that my CONFIG_SYS_TEXT_BASE is
 correct (the address in the flash to which I write the whole
 u-boot.bin file, right?.

 This is passed to linker as the entry point.

 There is another point re: orion5x based boards: often, their designers
 preferred generating a linear image for U-Boot, but the fact that the
 vector address is at  makes it impossible to directly the image
 there because it is always greater than 64K. So the designers put some
 pseudo-rom boot code at  that will finally jump to an address
 lower in FLASH; for ED Mini V2 it is FFF9, and that's where the
 U-Boot image is supposed to be flashed.

 So, is that the address that you would use for CONFIG_SYS_TEXT_BASE ?
 
 Yes, exactly.
 
 Rogan, I bet in the DNS323 case, the same applies modulo your Flash
 size. Try tracing through the  code, it should not last more
 than a few tens of instructions before it jumps to some absolute
 address.

 Do you think it would be possible to figure it out from the original
 vendor u-boot?
 
 Sort of: if you look up the vendor U-Boot source code and find nothing
 about 0x, that's a sign that it expects something else than
 U-Boot to kick in at that address.
 
 You can also disassemble what lies at 0x on your board, either
 live through JTAG or offline by running a binary extract of 
 through objdump.

Ok, so this is what I get at 0x:

000: 5c10 9fe5 0060 91e5 5810 9fe5 0160 06e0  \`..X`..
010: 5410 9fe5 0100 56e1 0f00 001a 4c10 9fe5  T.V.L...
020: 0060 91e5 ff10 a0e3 0160 06e0 0100 56e3  .`...`V.
030: 0800 001a 3810 9fe5 0060 91e5 3410 9fe5  8`..4...
040: 0160 06e0 3010 9fe5 0160 86e1 2010 9fe5  .`..0`.. ...
050: 0060 81e5 0100 00ea  00ea  ffea  .`..
060: 18f0 9fe5  04d0    8152  ...R
070: 0800 04d0 2001 02d0 8080  1b82    ...
080:  fdff        

Which disassembles to:

$ arm-linux-gnueabi-objdump -m arm -b binary -D mtdblock4-3

   0:   e59f105cldr r1, [pc, #92]   ; 0x64
   4:   e5916000ldr r6, [r1]
   8:   e59f1058ldr r1, [pc, #88]   ; 0x68
   c:   e0066001and r6, r6, r1
  10:   e59f1054ldr r1, [pc, #84]   ; 0x6c
  14:   e1560001cmp r6, r1
  18:   1a0fbne 0x5c
  1c:   e59f104cldr r1, [pc, #76]   ; 0x70
  20:   e5916000ldr r6, [r1]
  24:   e3a010ffmov r1, #255; 0xff
  28:   e0066001and r6, r6, r1
  2c:   e3560001cmp r6, #1
  30:   1a08bne 0x58
  34:   e59f1038ldr r1, [pc, #56]   ; 0x74
  38:   e5916000ldr r6, [r1]
  3c:   e59f1034ldr r1, [pc, #52]   ; 0x78
  40:   e0066001and r6, r6, r1
  44:   e59f1030ldr r1, [pc, #48]   ; 0x7c
  48:   e1866001orr r6, r6, r1
  4c:   e59f1020ldr r1, [pc, #32]   ; 0x74
  50:   e5816000str r6, [r1]
  54:   ea01b   0x60
  58:   ea00b   0x60
  5c:   eaffb   0x60
  60:   e59ff018ldr pc, [pc, #24]   ; 0x80
  64:   d004andle   r0, r4, r0
  68:   ; UNDEFINED
instruction: 0x
  6c:   5281addpl   r0, r1, #0
  70:   d0040008andle   r0, r4, r8
  74:   d0020120andle   r0, r2, r0, lsr #2
  78:   8080; UNDEFINED
instruction: 0x8080
  7c:   821bandeq   r8, r0, fp, lsl r2
  80:   fffd; UNDEFINED
instruction: 0xfffd

And of 

[U-Boot] [PATCH 1/1] mx5: drop boot cause code from board support code

2011-04-20 Thread Jason Liu
The boot cause code has been factor out to soc common
code,we need drop the part from the board support code

Signed-off-by: Jason Liu jason@linaro.org
---
 board/efikamx/efikamx.c   |   30 ++
 board/freescale/mx51evk/mx51evk.c |   26 ++
 board/freescale/mx53evk/mx53evk.c |   21 +
 board/ttcontrol/vision2/vision2.c |   28 ++--
 4 files changed, 19 insertions(+), 86 deletions(-)

diff --git a/board/efikamx/efikamx.c b/board/efikamx/efikamx.c
index f735260..0aef654 100644
--- a/board/efikamx/efikamx.c
+++ b/board/efikamx/efikamx.c
@@ -644,46 +644,28 @@ int board_late_init(void)
 int checkboard(void)
 {
u32 system_rev = get_cpu_rev();
-   u32 cause;
-   struct src *src_regs = (struct src *)SRC_BASE_ADDR;
 
puts(Board: Efika MX );
 
switch (system_rev  0xff) {
case CHIP_REV_3_0:
-   puts(3.0 [);
+   puts(3.0);
break;
case CHIP_REV_2_5:
-   puts(2.5 [);
+   puts(2.5);
break;
case CHIP_REV_2_0:
-   puts(2.0 [);
+   puts(2.0);
break;
case CHIP_REV_1_1:
-   puts(1.1 [);
+   puts(1.1);
break;
case CHIP_REV_1_0:
default:
-   puts(1.0 [);
+   puts(1.0);
break;
}
 
-   cause = src_regs-srsr;
-   switch (cause) {
-   case 0x0001:
-   puts(POR);
-   break;
-   case 0x0009:
-   puts(RST);
-   break;
-   case 0x0010:
-   case 0x0011:
-   puts(WDOG);
-   break;
-   default:
-   printf(unknown 0x%x, cause);
-   }
-   puts(]\n);
-
+   puts(\n);
return 0;
 }
diff --git a/board/freescale/mx51evk/mx51evk.c 
b/board/freescale/mx51evk/mx51evk.c
index 02a765d..cff2ff1 100644
--- a/board/freescale/mx51evk/mx51evk.c
+++ b/board/freescale/mx51evk/mx51evk.c
@@ -435,37 +435,23 @@ int checkboard(void)
 
switch (system_rev  0xff) {
case CHIP_REV_3_0:
-   puts(3.0 [);
+   puts(3.0);
break;
case CHIP_REV_2_5:
-   puts(2.5 [);
+   puts(2.5);
break;
case CHIP_REV_2_0:
-   puts(2.0 [);
+   puts(2.0);
break;
case CHIP_REV_1_1:
-   puts(1.1 [);
+   puts(1.1);
break;
case CHIP_REV_1_0:
default:
-   puts(1.0 [);
+   puts(1.0);
break;
}
 
-   switch (__raw_readl(SRC_BASE_ADDR + 0x8)) {
-   case 0x0001:
-   puts(POR);
-   break;
-   case 0x0009:
-   puts(RST);
-   break;
-   case 0x0010:
-   case 0x0011:
-   puts(WDOG);
-   break;
-   default:
-   puts(unknown);
-   }
-   puts(]\n);
+   puts(\n);
return 0;
 }
diff --git a/board/freescale/mx53evk/mx53evk.c 
b/board/freescale/mx53evk/mx53evk.c
index e71701b..a89aa25 100644
--- a/board/freescale/mx53evk/mx53evk.c
+++ b/board/freescale/mx53evk/mx53evk.c
@@ -372,26 +372,7 @@ int board_late_init(void)
 
 int checkboard(void)
 {
-   u32 cause;
-   struct src *src_regs = (struct src *)SRC_BASE_ADDR;
+   puts(Board: MX53EVK\n);
 
-   puts(Board: MX53EVK [);
-
-   cause = src_regs-srsr;
-   switch (cause) {
-   case 0x0001:
-   printf(POR);
-   break;
-   case 0x0009:
-   printf(RST);
-   break;
-   case 0x0010:
-   case 0x0011:
-   printf(WDOG);
-   break;
-   default:
-   printf(unknown);
-   }
-   printf(]\n);
return 0;
 }
diff --git a/board/ttcontrol/vision2/vision2.c 
b/board/ttcontrol/vision2/vision2.c
index f8ef4fc..8423110 100644
--- a/board/ttcontrol/vision2/vision2.c
+++ b/board/ttcontrol/vision2/vision2.c
@@ -708,40 +708,24 @@ int checkboard(void)
 
switch (system_rev  0xff) {
case CHIP_REV_3_0:
-   puts(3.0 [);
+   puts(3.0);
break;
case CHIP_REV_2_5:
-   puts(2.5 [);
+   puts(2.5);
break;
case CHIP_REV_2_0:
-   puts(2.0 [);
+   puts(2.0);
break;
case CHIP_REV_1_1:
-   puts(1.1 [);
+   puts(1.1);
break;
case CHIP_REV_1_0:
default:
-   puts(1.0 [);
+   puts(1.0);
break;
}
 
-   cause = src_regs-srsr;
-   switch (cause) {
-   case 0x0001:
-   puts(POR);
-   break;
-   case 0x0009:
-   puts(RST);
-   break;
-   case 0x0010:
- 

[U-Boot] [PATCH V5 1/2] MX5: factor out boot cause funciton to common code

2011-04-20 Thread Jason Liu
factor out boot cause funciton to common code to avoid
the duplicate code in each board support package

Signed-off-by: Jason Liu jason@linaro.org
---
change since v4:
- make common code soc specific
changes since v3:
- add full boot reset cause
---
 arch/arm/cpu/armv7/mx5/soc.c |   28 
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/arch/arm/cpu/armv7/mx5/soc.c b/arch/arm/cpu/armv7/mx5/soc.c
index 09500b3..6f4e8db 100644
--- a/arch/arm/cpu/armv7/mx5/soc.c
+++ b/arch/arm/cpu/armv7/mx5/soc.c
@@ -77,6 +77,33 @@ u32 get_cpu_rev(void)
return system_rev;
 }
 
+static char *get_reset_cause(void)
+{
+   u32 cause;
+   struct src *src_regs = (struct src *)SRC_BASE_ADDR;
+
+   cause = readl(src_regs-srsr);
+   writel(cause, src_regs-srsr);
+
+   switch (cause) {
+   case 0x1:
+   return POR;
+   case 0x4:
+   return CSU;
+   case 0x8:
+   return IPP USER;
+   case 0x00010:
+   return WDOG;
+   case 0x00020:
+   return JTAG HIGH-Z;
+   case 0x00040:
+   return JTAG SW;
+   case 0x1:
+   return WARM BOOT;
+   default:
+   return unknown reset;
+   }
+}
 
 #if defined(CONFIG_DISPLAY_CPUINFO)
 int print_cpuinfo(void)
@@ -89,6 +116,7 @@ int print_cpuinfo(void)
(cpurev  0x000F0)  4,
(cpurev  0xF)  0,
mxc_get_clock(MXC_ARM_CLK) / 100);
+   printf(Reset cause: %s\n, get_reset_cause());
return 0;
 }
 #endif
-- 
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH V5 2/2] MX53: support for freescale MX53LOCO board

2011-04-20 Thread Jason Liu
This patch add initial support for freescale MX53LOCO board.
Network(FEC),SD/MMC, UART have been supported by this patch.

Signed-off-by: Jason Liu jason@linaro.org
---
changes since v4:
- remove the boot reset cause from board support
changes since v3:
- include other two small patch into this commit,
mx53loco: set mmc env to MMC slot1
MX5: Enable flat-device-tree support on mx53 loco board
changes since V2:
-factor out the boot cause function to common code,
-fix gd-ram_size with full memory size
-remove the '1' from all #defines that just enable features
-correct memory test end address value
---
 MAINTAINERS   |1 +
 arch/arm/cpu/armv7/mx5/soc.c  |2 +-
 board/freescale/mx53loco/Makefile |   47 +
 board/freescale/mx53loco/imximage.cfg |   96 +++
 board/freescale/mx53loco/mx53loco.c   |  301 +
 boards.cfg|1 +
 include/configs/mx53loco.h|  199 ++
 7 files changed, 646 insertions(+), 1 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 4756f14..7c311f7 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -567,6 +567,7 @@ Stefano Babic sba...@denx.de
 Jason Liu r64...@freescale.com
 
mx53evk i.MX53
+   mx53locoi.MX53
 
 Enric Balletbo i Serra eballe...@iseebcn.com
 
diff --git a/arch/arm/cpu/armv7/mx5/soc.c b/arch/arm/cpu/armv7/mx5/soc.c
index 6f4e8db..9c03474 100644
--- a/arch/arm/cpu/armv7/mx5/soc.c
+++ b/arch/arm/cpu/armv7/mx5/soc.c
@@ -116,7 +116,7 @@ int print_cpuinfo(void)
(cpurev  0x000F0)  4,
(cpurev  0xF)  0,
mxc_get_clock(MXC_ARM_CLK) / 100);
-   printf(Reset cause: %s\n, get_reset_cause());
+   printf(Reset  cause: %s\n, get_reset_cause());
return 0;
 }
 #endif
diff --git a/board/freescale/mx53loco/Makefile 
b/board/freescale/mx53loco/Makefile
new file mode 100644
index 000..2088a48
--- /dev/null
+++ b/board/freescale/mx53loco/Makefile
@@ -0,0 +1,47 @@
+#
+# (C) Copyright 2011 Freescale Semiconductor, Inc.
+# Jason Liu r64...@freescale.com
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB= $(obj)lib$(BOARD).o
+
+COBJS  := mx53loco.o
+
+SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+SOBJS  := $(addprefix $(obj),$(SOBJS))
+
+$(LIB):$(obj).depend $(OBJS) $(SOBJS)
+   $(call cmd_link_o_target, $(OBJS) $(SOBJS))
+
+clean:
+   rm -f $(SOBJS) $(OBJS)
+
+distclean: clean
+   rm -f $(LIB) core *.bak .depend
+
+#
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/board/freescale/mx53loco/imximage.cfg 
b/board/freescale/mx53loco/imximage.cfg
new file mode 100644
index 000..ce9c8fc
--- /dev/null
+++ b/board/freescale/mx53loco/imximage.cfg
@@ -0,0 +1,96 @@
+# Copyright (C) 2011 Freescale Semiconductor, Inc.
+# Jason Liu r64...@freescale.com
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not write to the Free Software
+# Foundation Inc. 51 Franklin Street Fifth Floor Boston,
+# MA 02110-1301 USA
+#
+# Refer docs/README.imxmage for more details about how-to configure
+# and create imximage boot image
+#
+# The syntax is taken as close as possible with the kwbimage
+
+# image version
+
+IMAGE_VERSION 2
+
+# Boot Device : one of
+# spi, sd (the board has no nand neither onenand)
+
+BOOT_FROM  sd
+
+# Device Configuration Data (DCD)
+#
+# Each entry must have the format:
+# 

Re: [U-Boot] [PATCH v2 3/6] TFTP: rename server to remote

2011-04-20 Thread Luca Ceresoli
Detlev Zundel wrote:
 Hi Luca,

 Il 19/04/2011 16:18, Detlev Zundel ha scritto:
 Hi Luca,

 With the upcoming TFTP server implementation, the remote node can be
 either a client or a server, so avoid ambiguities.

 Signed-off-by: Luca Ceresoliluca.ceres...@comelit.it
 Cc: Wolfgang Denkw...@denx.de
 ---
 Changes in v2:
- fixed checkpatch issues.

net/tftp.c |   42 +-
1 files changed, 21 insertions(+), 21 deletions(-)

 diff --git a/net/tftp.c b/net/tftp.c
 index 00abec3..da545c6 100644
 --- a/net/tftp.c
 +++ b/net/tftp.c
 @@ -55,18 +55,18 @@ enum {
TFTP_ERR_FILE_ALREADY_EXISTS = 6,
};

 -static IPaddr_t TftpServerIP;
 -static intTftpServerPort; /* The UDP port at their end
 */
 -static intTftpOurPort;/* The UDP port at our end  
 */
 +static IPaddr_t TftpRemoteIP;
 +static intTftpRemotePort; /* The UDP port at their end
 */
 +static intTftpOurPort;/* The UDP port at our end  
 */
static int  TftpTimeoutCount;
 -static ulong  TftpBlock;  /* packet sequence number   
 */
 -static ulong  TftpLastBlock;  /* last packet sequence number 
 received */
 -static ulong  TftpBlockWrap;  /* count of sequence number 
 wraparounds */
 -static ulong  TftpBlockWrapOffset;/* memory offset due to 
 wrapping*/
 +static ulong  TftpBlock;  /* packet sequence number   
 */
 +static ulong  TftpLastBlock;  /* last packet sequence number received 
 */
 +static ulong  TftpBlockWrap;  /* count of sequence number wraparounds 
 */
 +static ulong  TftpBlockWrapOffset; /* memory offset due to wrapping   
 */
 These changes are indentation only changes, so they should be in a
 separate patch.
 It's needed for checkpatch compliance.
 I'm trying to understand the problems involved, but looking at this
 again, it is not clear to me what you say here.  When I run your version
 1 of the patches (where you only do the rename) through checkpatch, I
 get:

WARNING: line over 80 characters
#116: FILE: net/tftp.c:59:
+static intTftpRemotePort; /* The UDP port at their end
 */

WARNING: consider using kstrto* in preference to simple_strtol
#215: FILE: net/tftp.c:619:
+  TftpRemotePort = simple_strtol(ep, NULL, 10);

total: 0 errors, 2 warnings, 99 lines checked

/home/dzu/transfer/p2 has style problems, please review.  If any of these 
 errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

 So I'm not sure why you say that the other changes are needed for
 checkpatch.  What exactly do you mean by this?

All the comments were nicely columned before my patchset. Reducing the
length of a line would have broken this.

I chose to change all of them in order to preserve the pre-existing 
coding style.

Luca

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH V3 1/2] MX5: factor out boot cause funciton to common code

2011-04-20 Thread Jason Liu
Hi, Stefano,

2011/4/20 Stefano Babic sba...@denx.de:
 On 04/18/2011 11:19 AM, Detlev Zundel wrote:
 Hi Stefano,

 On 04/15/2011 02:47 PM, Fabio Estevam wrote:
 +char *get_reset_cause(void)
 +{
 +    u32 cause;
 +    struct src *src_regs = (struct src
 *)SRC_BASE_ADDR;
 +
 +    cause = readl(src_regs-srsr);

 You need to mask the 7 LSB of SRSR register.

 If you don´t bit 16 can still affect its result.

 Why ? As this becomes a general function for i.MX5, should we not
 provide a way to check all significant bits ? Why should we exclude the
 warm boot bit to be checked and printed out ?

 And _please_ (as indictated in my i.MX31 mail) use the code for _all_
 iMX51 boards withoput the need for them to call a function and print the
 result.

 Jason,

 I noted only now that this comment was not directly addressed to you,
 but it is related to your patch. As you see for the i.MX31, the result
 of the discussion was to call the get_reset_cause() inside the
 print_cpuinfo() function, to make automatically this function available
 for all MX5 boards.

Yes, I have send out the v5 patch for it. please review it. Thanks,

Jason


 Regards,
 Stefano

 --
 =
 DENX Software Engineering GmbH,     MD: Wolfgang Denk  Detlev Zundel
 HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
 Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: off...@denx.de
 =

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v5 0/2] Add DIG297 board and OMAP3 fixes

2011-04-20 Thread Luca Ceresoli
Hi all,

this patch series cleans up some OMAP3 stuff and adds DIG297 board support.

New in v5:
 - rebased against u-boot-ti master (007965dbe4dae12);
 - updated to support the new am3517 crane board;
 - removed two patches that have already been pushed to u-boot-ti master.

Luca

Luca Ceresoli (2):
  ARMV7: OMAP3: Cleanup extern variables in mem.c
  ARMV7: OMAP3: Add support for Comelit DIG297 board

 MAINTAINERS |4 +
 MAKEALL |1 +
 arch/arm/cpu/armv7/omap3/mem.c  |   32 
 board/comelit/dig297/Makefile   |   49 +
 board/comelit/dig297/dig297.c   |  187 +++
 board/comelit/dig297/dig297.h   |  383 +++
 boards.cfg  |1 +
 include/configs/am3517_crane.h  |   16 +--
 include/configs/am3517_evm.h|   18 +--
 include/configs/cm_t35.h|   16 +-
 include/configs/devkit8000.h|   10 +-
 include/configs/dig297.h|  311 +++
 include/configs/omap3_beagle.h  |   16 +-
 include/configs/omap3_evm.h |   26 ++--
 include/configs/omap3_overo.h   |   16 +-
 include/configs/omap3_pandora.h |   16 +-
 include/configs/omap3_sdp3430.h |   10 -
 include/configs/omap3_zoom1.h   |   16 +-
 include/configs/omap3_zoom2.h   |   16 +-
 19 files changed, 989 insertions(+), 155 deletions(-)
 create mode 100644 board/comelit/dig297/Makefile
 create mode 100644 board/comelit/dig297/dig297.c
 create mode 100644 board/comelit/dig297/dig297.h
 create mode 100644 include/configs/dig297.h

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v5 1/2] ARMV7: OMAP3: Cleanup extern variables in mem.c

2011-04-20 Thread Luca Ceresoli
Removed boot_flash_* extern variables.
boot_flash_type was totally unused. The other ones were actually constants, so
they have been replaced with #defines in the board config files.

Signed-off-by: Luca Ceresoli luca.ceres...@comelit.it
Cc: Wolfgang Denk w...@denx.de
Cc: Albert Aribaud albert.arib...@free.fr
Cc: Sandeep Paulraj s-paul...@ti.com
---
Changes in v4:
 - this patch is new in v4.

Changes in v5:
 - extended to crane board.

 arch/arm/cpu/armv7/omap3/mem.c  |   32 
 include/configs/am3517_crane.h  |   16 
 include/configs/am3517_evm.h|   18 ++
 include/configs/cm_t35.h|   16 +---
 include/configs/devkit8000.h|   10 +-
 include/configs/omap3_beagle.h  |   16 +---
 include/configs/omap3_evm.h |   26 --
 include/configs/omap3_overo.h   |   16 +---
 include/configs/omap3_pandora.h |   16 +---
 include/configs/omap3_sdp3430.h |   10 --
 include/configs/omap3_zoom1.h   |   16 +---
 include/configs/omap3_zoom2.h   |   16 +---
 12 files changed, 53 insertions(+), 155 deletions(-)

diff --git a/arch/arm/cpu/armv7/omap3/mem.c b/arch/arm/cpu/armv7/omap3/mem.c
index bd914b0..a01c303 100644
--- a/arch/arm/cpu/armv7/omap3/mem.c
+++ b/arch/arm/cpu/armv7/omap3/mem.c
@@ -31,16 +31,6 @@
 #include asm/arch/sys_proto.h
 #include command.h
 
-/*
- * Only One NAND allowed on board at a time.
- * The GPMC CS Base for the same
- */
-unsigned int boot_flash_base;
-unsigned int boot_flash_off;
-unsigned int boot_flash_sec;
-unsigned int boot_flash_type;
-volatile unsigned int boot_flash_env_addr;
-
 struct gpmc *gpmc_cfg;
 
 #if defined(CONFIG_CMD_NAND)
@@ -134,10 +124,6 @@ void gpmc_init(void)
const u32 *gpmc_config = NULL;
u32 base = 0;
u32 size = 0;
-#if defined(CONFIG_ENV_IS_IN_NAND) || defined(CONFIG_ENV_IS_IN_ONENAND)
-   u32 f_off = CONFIG_SYS_MONITOR_LEN;
-   u32 f_sec = 0;
-#endif
 #endif
u32 config = 0;
 
@@ -162,15 +148,6 @@ void gpmc_init(void)
base = PISMO1_NAND_BASE;
size = PISMO1_NAND_SIZE;
enable_gpmc_cs_config(gpmc_config, gpmc_cfg-cs[0], base, size);
-#if defined(CONFIG_ENV_IS_IN_NAND)
-   f_off = SMNAND_ENV_OFFSET;
-   f_sec = (128  10);/* 128 KiB */
-   /* env setup */
-   boot_flash_base = base;
-   boot_flash_off = f_off;
-   boot_flash_sec = f_sec;
-   boot_flash_env_addr = f_off;
-#endif
 #endif
 
 #if defined(CONFIG_CMD_ONENAND)
@@ -178,14 +155,5 @@ void gpmc_init(void)
base = PISMO1_ONEN_BASE;
size = PISMO1_ONEN_SIZE;
enable_gpmc_cs_config(gpmc_config, gpmc_cfg-cs[0], base, size);
-#if defined(CONFIG_ENV_IS_IN_ONENAND)
-   f_off = ONENAND_ENV_OFFSET;
-   f_sec = (128  10);/* 128 KiB */
-   /* env setup */
-   boot_flash_base = base;
-   boot_flash_off = f_off;
-   boot_flash_sec = f_sec;
-   boot_flash_env_addr = f_off;
-#endif
 #endif
 }
diff --git a/include/configs/am3517_crane.h b/include/configs/am3517_crane.h
index ef0c0a1..09cb951 100644
--- a/include/configs/am3517_crane.h
+++ b/include/configs/am3517_crane.h
@@ -294,7 +294,7 @@
 #define CONFIG_SYS_MAX_FLASH_BANKS 2   /* max number of flash banks */
 #define CONFIG_SYS_MONITOR_LEN (256  10) /* Reserve 2 sectors */
 
-#define CONFIG_SYS_FLASH_BASE  boot_flash_base
+#define CONFIG_SYS_FLASH_BASE  PISMO1_NAND_BASE
 
 /* Monitor at start of flash */
 #define CONFIG_SYS_MONITOR_BASECONFIG_SYS_FLASH_BASE
@@ -304,9 +304,9 @@
 #define CONFIG_ENV_IS_IN_NAND  1
 #define SMNAND_ENV_OFFSET  0x26 /* environment starts here */
 
-#define CONFIG_SYS_ENV_SECT_SIZE   boot_flash_sec
-#define CONFIG_ENV_OFFSET  boot_flash_off
-#define CONFIG_ENV_ADDRboot_flash_env_addr
+#define CONFIG_SYS_ENV_SECT_SIZE   (128  10) /* 128 KiB sector */
+#define CONFIG_ENV_OFFSET  SMNAND_ENV_OFFSET
+#define CONFIG_ENV_ADDRSMNAND_ENV_OFFSET
 
 /*---
  * CFI FLASH driver setup
@@ -323,14 +323,6 @@
 #define CONFIG_SYS_JFFS2_FIRST_BANKCONFIG_SYS_MAX_FLASH_BANKS
 #define CONFIG_SYS_JFFS2_NUM_BANKS 1
 
-#ifndef __ASSEMBLY__
-extern unsigned int boot_flash_base;
-extern volatile unsigned int boot_flash_env_addr;
-extern unsigned int boot_flash_off;
-extern unsigned int boot_flash_sec;
-extern unsigned int boot_flash_type;
-#endif
-
 #define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_RAM_ADDR   0x4020f800
 #define CONFIG_SYS_INIT_RAM_SIZE   0x800
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index 70e8f07..f5d5821 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -294,7 +294,9 @@
 #define CONFIG_SYS_MAX_FLASH_BANKS 2 

[U-Boot] [PATCH v5 2/2] ARMV7: OMAP3: Add support for Comelit DIG297 board

2011-04-20 Thread Luca Ceresoli
Board support for the DIG297 board manufactured by Comelit Group SpA.
It is a custom board based on the BeagleBoard http://beagleboard.org/ by
Texas Instruments.

The board support is based on the BeagleBoard implementation.

Signed-off-by: Luca Ceresoli luca.ceres...@comelit.it
Cc: Wolfgang Denk w...@denx.de
Cc: Albert Aribaud albert.arib...@free.fr
Cc: Sandeep Paulraj s-paul...@ti.com
---
Changes in v4:
 - this patch is new in v4.

Changes in v5: none.

 MAINTAINERS   |4 +
 MAKEALL   |1 +
 board/comelit/dig297/Makefile |   49 ++
 board/comelit/dig297/dig297.c |  187 
 board/comelit/dig297/dig297.h |  383 +
 boards.cfg|1 +
 include/configs/dig297.h  |  311 +
 7 files changed, 936 insertions(+), 0 deletions(-)
 create mode 100644 board/comelit/dig297/Makefile
 create mode 100644 board/comelit/dig297/dig297.c
 create mode 100644 board/comelit/dig297/dig297.h
 create mode 100644 include/configs/dig297.h

diff --git a/MAINTAINERS b/MAINTAINERS
index 91e7cd9..fc793f5 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -600,6 +600,10 @@ Rick Bronson r...@efn.org
 
AT91RM9200DKat91rm9200
 
+Luca Ceresoli luca.ceres...@comelit.it
+
+   dig297  ARM ARMV7 (OMAP3530 SoC)
+
 Po-Yu Chuang ratb...@faraday-tech.com
 
a320evb FA526 (ARM920T-like) (a320 SoC)
diff --git a/MAKEALL b/MAKEALL
index fdc1aca..c3df657 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -422,6 +422,7 @@ LIST_ARMV7=\
am3517_evm  \
ca9x4_ct_vxp\
devkit8000  \
+   dig297  \
igep0020\
igep0030\
mx51evk \
diff --git a/board/comelit/dig297/Makefile b/board/comelit/dig297/Makefile
new file mode 100644
index 000..8dffedd
--- /dev/null
+++ b/board/comelit/dig297/Makefile
@@ -0,0 +1,49 @@
+#
+# (C) Copyright 2000, 2001, 2002
+# Wolfgang Denk, DENX Software Engineering, w...@denx.de.
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB= $(obj)lib$(BOARD).o
+
+COBJS  := dig297.o
+
+SRCS   := $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+
+$(LIB):$(obj).depend $(OBJS)
+   $(call cmd_link_o_target, $(OBJS))
+
+clean:
+   rm -f $(OBJS)
+
+distclean: clean
+   rm -f $(LIB) core *.bak $(obj).depend
+
+#
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/board/comelit/dig297/dig297.c b/board/comelit/dig297/dig297.c
new file mode 100644
index 000..0062f12
--- /dev/null
+++ b/board/comelit/dig297/dig297.c
@@ -0,0 +1,187 @@
+/*
+ * (C) Copyright 2011 Comelit Group SpA
+ * Luca Ceresoli luca.ceres...@comelit.it
+ *
+ * Based on board/ti/beagle/beagle.c:
+ * (C) Copyright 2004-2008
+ * Texas Instruments, www.ti.com
+ *
+ * Author :
+ * Sunil Kumar sunilsain...@gmail.com
+ * Shashi Ranjan shashiranjanmc...@gmail.com
+ *
+ * Derived from Beagle Board and 3430 SDP code by
+ * Richard Woodruff r-woodru...@ti.com
+ * Syed Mohammed Khasim kha...@ti.com
+ *
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+#include common.h
+#include netdev.h

Re: [U-Boot] [PATCH] PowerPC: Move -fPIC flag to common place

2011-04-20 Thread Joakim Tjernlund
Wolfgang Denk w...@denx.de wrote on 2011/04/20 00:41:01:

 Dear Joakim Tjernlund,

 In message 
 ofbc9c03bc.436c27c7-onc1257877.00797190-c1257877.007a0...@transmode.se you 
 wrote:
 
   Yes, but you yorself pointed out that commit 337f5f5 missed a large
   number of boards, leaving the tree in a inconsistent state. Should we
   not revert that one as well?
 
  It is not too bad, just not complete yet. Reverting all just makes
  it harder to get it all done.
  I still don't get why it broke really.
  hmm, did you by any chance include my patches to gcc too?
  if so I you should only have to fixup arch/powerpc/config.mk:
  - PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections 
  -fdata-sections
  - PLATFORM_RELFLAGS += $(call cc-option,-msingle-pic-base,)
  + PLATFORM_RELFLAGS += -fPIC -mrelocatable -ffunction-sections 
  -fdata-sections

 Can you please have a look at this yourslef?  You understand much
 better than me which of your patches are doing what, and how they
 might interact.

 I don't have the time to dig into this any deeper.  If we cannot find
 a quick solution, I suggest to back out all this stuff and redo once
 the problems have been sorted out.  Sorry for applying the stuff to
 mainline without more thorough testing, I should have noticed these
 issues earlier and never checked in all that stuff.

OK, I managed to script the change, patch last in mail.

However CROSS_COMPILE=powerpc-softfloat-linux-gnu- ./MAKEALL  TQM862L TQM855L 
TQM860L
does not build for me, same problem as you got.
Even if I manually back out the 2 patches affecting 8xx it wont build.
I think these boards have some other problem really, like u-boot is too big for 
them.

Most other 8xx boards build fine, those that don't have some other problem.

From ce7970dd177a798c5ab7e093adadfc57a97ce0e7 Mon Sep 17 00:00:00 2001
From: Joakim Tjernlund joakim.tjernl...@transmode.se
Date: Wed, 20 Apr 2011 14:22:59 +0200
Subject: [PATCH] powerpc, 8xx: Fixup all 8xx u-boot.lds scripts

8xx was left behind when fixing up powerpc linking
scripts to support -fpic.

Signed-off-by: Joakim Tjernlund joakim.tjernl...@transmode.se
---
 board/LEOX/elpt860/u-boot.lds|5 +++--
 board/RPXClassic/u-boot.lds  |5 +++--
 board/RPXlite/u-boot.lds |5 +++--
 board/RPXlite_dw/u-boot.lds  |5 +++--
 board/RRvision/u-boot.lds|5 +++--
 board/adder/u-boot.lds   |5 +++--
 board/amirix/ap1000/u-boot.lds   |5 +++--
 board/c2mon/u-boot.lds   |5 +++--
 board/cogent/u-boot.lds  |5 +++--
 board/dave/PPChameleonEVB/u-boot.lds |3 ++-
 board/eltec/mhpc/u-boot.lds  |5 +++--
 board/emk/top860/u-boot.lds  |5 +++--
 board/ep88x/u-boot.lds   |3 ++-
 board/esd/dasa_sim/u-boot.lds|5 +++--
 board/esteem192e/u-boot.lds  |5 +++--
 board/etx094/u-boot.lds  |5 +++--
 board/evb64260/u-boot.lds|5 +++--
 board/fads/u-boot.lds|5 +++--
 board/flagadm/u-boot.lds |5 +++--
 board/gen860t/u-boot.lds |5 +++--
 board/genietv/u-boot.lds |5 +++--
 board/hermes/u-boot.lds  |5 +++--
 board/hymod/u-boot.lds   |2 +-
 board/icu862/u-boot.lds  |5 +++--
 board/ip860/u-boot.lds   |5 +++--
 board/ivm/u-boot.lds |5 +++--
 board/kup/kup4k/u-boot.lds   |5 +++--
 board/kup/kup4x/u-boot.lds   |5 +++--
 board/lantec/u-boot.lds  |5 +++--
 board/lwmon/u-boot.lds   |5 +++--
 board/manroland/uc100/u-boot.lds |5 +++--
 board/matrix_vision/mvsmr/u-boot.lds |3 ++-
 board/mbx8xx/u-boot.lds  |5 +++--
 board/ml2/u-boot.lds |5 +++--
 board/mousse/u-boot.lds  |5 +++--
 board/mvblue/u-boot.lds  |5 +++--
 board/netphone/u-boot.lds|5 +++--
 board/netta/u-boot.lds   |5 +++--
 board/netta2/u-boot.lds  |5 +++--
 board/netvia/u-boot.lds  |5 +++--
 board/nx823/u-boot.lds   |5 +++--
 board/quantum/u-boot.lds |5 +++--
 board/r360mpi/u-boot.lds |5 +++--
 board/rbc823/u-boot.lds  |5 +++--
 board/rmu/u-boot.lds |5 +++--
 board/rsdproto/u-boot.lds|2 +-
 board/sandpoint/u-boot.lds   |5 +++--
 board/sc3/u-boot.lds |5 +++--
 board/siemens/IAD210/u-boot.lds  |5 +++--
 board/sixnet/u-boot.lds  |5 +++--
 board/snmc/qs850/u-boot.lds  |5 +++--
 board/snmc/qs860t/u-boot.lds |5 +++--
 board/spc1920/u-boot.lds |5 +++--
 board/spd8xx/u-boot.lds  |5 +++--
 board/stx/stxxtc/u-boot.lds  |5 +++--
 board/svm_sc8xx/u-boot.lds   |5 +++--
 

Re: [U-Boot] Policy for checkpatch usage?

2011-04-20 Thread Graeme Russ
On Wednesday, April 20, 2011, Graeme Russ graeme.r...@gmail.com wrote:
 On Wednesday, April 20, 2011, Detlev Zundel d...@denx.de wrote:
 Hi,



 As a base for discussion, what about this:

   Use common sense in interpreting the results of checkpatch. Warnings
   that clearly only make sense in the Linux kernel can be ignored.  Also
   warnings produced for _context lines_ rather than actual changes can
   also be ignored.

 One man's common sense is another's idiocy

 I vote for a zero warnings, zero errors U-Boot specific checkpatch


I also think that all patches should be submitted with a checkpatch
summary with an explaination for any errors or warnings - this will at
least save a little effort for the maintainers and reduce the number of
patches bounced only to have the checkpatch problems argued away
by the author anyway

Regards,

Graeme
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] UEC phy not working on first try

2011-04-20 Thread DUNDA Matthias
Hi Detlef,

   I am using u-boot.2010.09 on a MPC8568-based board.

 Ah!  I didn't realize that you are in the excellent position to have
 one
 good and one bad commit.  Simply use git bisect to find the problematic
 commit and show that to us.

so far I traced it down to the adjust_link call in uec_init from file uec.c 
(line 1234 in release 2011.03).

This call wasn't there in release 2009.11.1 and removing that line solves the 
issue here.

I don't know, why this went in and what the drawbacks are without it. Maybe 
someone on this list knows... (Sorry, I didn't search for a specific commit in 
git, yet. I just diffed pertinent files around the qe|uec|net drivers first.)

Happy sunny Easter all! 8-)
Matthias


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] QorIQ corenet_ds.h: Wrong PCIe 3 virtual address

2011-04-20 Thread Trübenbach , Ralf
This patch fixes a wrong address define in corenet_ds.h (used by 
P4080DS.h, P3041DS.h, P5020DS.h).

Since board/Freescale/corenet_ds/tlb.c does not use the 
CONFIG_SYS_PCIE3_MEM_VIRT define (uses CONFIG_SYS_PCIE1_MEM_VIRT with a 
fix offset instead) this has no effect to the functionality. But it may 
be important for changes in the future?

Signed-off-by: Ralf Trübenbach ralf.truebenb...@men.de
Cc: Kumar Gala kumar.g...@freescale.com
Cc: Andy Fleming aflem...@gmail.com
---

diff --git a/include/configs/corenet_ds.h b/include/configs/corenet_ds.h
index 7bafa05..705ffb0 100644
--- a/include/configs/corenet_ds.h
+++ b/include/configs/corenet_ds.h
@@ -330,7 +330,7 @@
 #define CONFIG_SYS_PCIE2_IO_SIZE   0x0001  /* 64k */
 
 /* controller 3, Slot 1, tgtid 1, Base address 202000 */
-#define CONFIG_SYS_PCIE3_MEM_VIRT  0xe000
+#define CONFIG_SYS_PCIE3_MEM_VIRT  0xc000
 #ifdef CONFIG_PHYS_64BIT
 #define CONFIG_SYS_PCIE3_MEM_BUS   0xe000
 #define CONFIG_SYS_PCIE3_MEM_PHYS  0xc4000ull


--
Best Regards/Mit freundlichen Gruessen
Ralf Trübenbach

Ralf Trübenbach, Software Design
MEN Mikro Elektronik GmbH
Neuwieder Straße 5-7
90411 Nürnberg, Germany
Phone +49-911-99 33 5-0
Fax +49-911-99 33 5-910
ralf.truebenb...@men.de
www.men.de
MEN Mikro Elektronik GmbH - Manfred Schmitz (CTO), Udo Fuchs (CFO) 
- Handelsregister/Trade Register AG Nürnberg HRB 5540

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] UEC phy not working on first try

2011-04-20 Thread Detlev Zundel
Hi Matthias,

   I am using u-boot.2010.09 on a MPC8568-based board.

 Ah!  I didn't realize that you are in the excellent position to have
 one
 good and one bad commit.  Simply use git bisect to find the problematic
 commit and show that to us.

 so far I traced it down to the adjust_link call in uec_init from file
 uec.c (line 1234 in release 2011.03).

 This call wasn't there in release 2009.11.1 and removing that line
 solves the issue here.

git blame shows this commit to be responsible:

commit 582c55a0274f38e6e7e35b95e7ab81d3e912f700
Author: Heiko Schocher h...@denx.de
Date:   Wed Jan 20 09:04:28 2010 +0100

83xx, uec: split enet_interface in two variables

There's no sensible reason to unite speed and interface type into
one variable.  So split this variable enet_interface into two
vars: enet_interface_type, which hold the interface type and speed.

Also: add the possibility for switching between 10 and 100 MBit
interfaces on the fly, when running in FAST_ETH mode.

Signed-off-by: Heiko Schocher h...@denx.de
Signed-off-by: Ben Warren biggerbadder...@gmail.com

 I don't know, why this went in and what the drawbacks are without
 it. Maybe someone on this list knows... (Sorry, I didn't search for a
 specific commit in git, yet. I just diffed pertinent files around the
 qe|uec|net drivers first.)

Hm, looking at adjust_link code, it seems that for you someone set
mii_info-link to 0 which gets you into the else clause of this
function.  On a quick grep, I cannot find any place where this happens,
but I guess this is your problem (or at least one of them) ;)

Maybe Heiko can contribute some more insights?

 Happy sunny Easter all! 8-)

Same to you, thanks!
  Detlev

-- 
There is no need to be  rigid in carrying out policies about what changes
to install.  To do a good job of maintaining Emacs doesn't require acting
like government bureaucrats.
-- Richard Stallman e1mix3y-0005iz...@fencepost.gnu.org
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] checkpatch - theory and practice [was: [PATCH v2 3/6] TFTP: rename server to remote]

2011-04-20 Thread Detlev Zundel
Hi Luca,

 It's needed for checkpatch compliance.
 I'm trying to understand the problems involved, but looking at this
 again, it is not clear to me what you say here.  When I run your version
 1 of the patches (where you only do the rename) through checkpatch, I
 get:

WARNING: line over 80 characters
#116: FILE: net/tftp.c:59:
+static int   TftpRemotePort; /* The UDP port at their end
 */

WARNING: consider using kstrto* in preference to simple_strtol
#215: FILE: net/tftp.c:619:
+ TftpRemotePort = simple_strtol(ep, NULL, 10);

total: 0 errors, 2 warnings, 99 lines checked

/home/dzu/transfer/p2 has style problems, please review.  If any of these 
 errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

 So I'm not sure why you say that the other changes are needed for
 checkpatch.  What exactly do you mean by this?

 All the comments were nicely columned before my patchset. Reducing the
 length of a line would have broken this.

 I chose to change all of them in order to preserve the pre-existing
 coding style.

Ok, this makes sense, alas the wording it's needed for checkpatch
compliance was somewhat misleading.

Ideally only the relevant changes should be in one commit and
re-indentation to align everything again should be in a separate commit.
As we saw that checkpatch also looks at context lines, this commit
usually needs to be logically _before_ your own changes.  Probably the
easiest way to achieve this is to commit the changes separately and
reorder them with git rebase -i.

I amended the wiki page[1] in the hope of getting more light into these
things.

Cheers
  Detlev

[1] http://www.denx.de/wiki/U-Boot/Patches

-- 
Irrationality is the square root of all evil.
 -- Douglas Hofstadter
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Policy for checkpatch usage?

2011-04-20 Thread Detlev Zundel
Hi Graeme,

 On Wednesday, April 20, 2011, Detlev Zundel d...@denx.de wrote:
 Hi,



 As a base for discussion, what about this:

   Use common sense in interpreting the results of checkpatch. Warnings
   that clearly only make sense in the Linux kernel can be ignored.  Also
   warnings produced for _context lines_ rather than actual changes can
   also be ignored.

 One man's common sense is another's idiocy

 I vote for a zero warnings, zero errors U-Boot specific checkpatch

Forking checkpatch means that someone has to invest work to maintain it.
Judging from the linux repo there are quite some changes in every
iteration of the kernel, so this will be work for us also:

[dzu@pollux linux (master)]$ git rev-list v2.6.35..v2.6.36 
scripts/checkpatch.pl | wc -l
7
[dzu@pollux linux (master)]$ git rev-list v2.6.36..v2.6.37 
scripts/checkpatch.pl | wc -l
19
[dzu@pollux linux (master)]$ git rev-list v2.6.37..v2.6.38 
scripts/checkpatch.pl | wc -l
4

Do we want to invest this work?  Do you volunteer? ;)

Can't we disable individual messages not relevant for us?  Like
-Wno-kstrto or such things?

Cheers
  Detlev

-- 
The number you have dialed is imaginary. Please rotate your phone 90
degrees and try again.
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Policy for checkpatch usage?

2011-04-20 Thread Detlev Zundel
Hi Graeme,

 On Wednesday, April 20, 2011, Graeme Russ graeme.r...@gmail.com wrote:
 On Wednesday, April 20, 2011, Detlev Zundel d...@denx.de wrote:
 Hi,



 As a base for discussion, what about this:

   Use common sense in interpreting the results of checkpatch. Warnings
   that clearly only make sense in the Linux kernel can be ignored.  Also
   warnings produced for _context lines_ rather than actual changes can
   also be ignored.

 One man's common sense is another's idiocy

 I vote for a zero warnings, zero errors U-Boot specific checkpatch


 I also think that all patches should be submitted with a checkpatch
 summary with an explaination for any errors or warnings - this will at
 least save a little effort for the maintainers and reduce the number of
 patches bounced only to have the checkpatch problems argued away
 by the author anyway

When we accept 0 errors and 0 warnings only, then we will always see the
same text :)

As long as we are not there, I do agree but then we should come up with
a recipe on how to automate this.  I looked into git format-patch but it
does not seem to have such an option.  Does anyone have a clever
one-liner for this?

Cheers
  Detlev

-- 
Math and Alcohol don't mix, so...
PLEASE DON'T DRINK AND DERIVE

[Motto of the society: Mathematicians Against Drunk Deriving]
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] UEC phy not working on first try

2011-04-20 Thread Charles Krinke
Hmmm. I'm not seeing a delayed link behaviour at all and I am using the
latest u-boot-2011.03 on an 8323ERDB which has two UEC's.
On Apr 19, 2011 11:07 PM, DUNDA Matthias matthias.du...@thalesgroup.com
wrote:
  I am using u-boot.2010.09 on a MPC8568-based board.
 
  When trying to boot over one of the UEC network interfaces, it is not
  working instantly. The cable is connected from the beginning, but I
  have to issue a manual 'boot' command, sometimes even multiple times
  before the link is correct. This is the output:

 Do all the UEC interfaces show the same symptoms?

 Yes, this happens for all UECs. And I think it worked until we switched
from u-boot 2009.11.1 to 2010.09 - but there's so much change that I didn't
find the reason for it, yet.


 The driver thinks the link went away again. When the cable is
 connected all the time, then this is an indication of something going
 wrong. You should try to diagnose, why the software gets this link
 change and if it really is an information that the phy provides, if the
 physical path to the phy is stable.

 Well, the software runs though uec_init (the_first_run is zero) and gets a
positive link state in the do-while-loop instantly. Afterwards adjust_link
is called - and there it fails. Strange thing - I guess I need to dig a
little deeper...

 Code hints are very appreciated! ;-)


 Best wishes
 Detlev Zundel
 Thanks!
 Matthias


 ___
 U-Boot mailing list
 U-Boot@lists.denx.de
 http://lists.denx.de/mailman/listinfo/u-boot
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] TFTP - check for len == 0 before storing

2011-04-20 Thread Detlev Zundel
Hi David,

 I had a problem with an old TFTP Server which is sending a second last
 data block with len == 0 at end. It's clearly not RFC conform, but I
 still made a additional check in u-boot/tftp to avoid a wrong filesize
 value. This wrong filesize value caused some trouble by NAND operations.

Please look at our patch guidelines[1] on how to submit patches.
Especially a signed-off-by is missing on this patch.

Moreover, please put the explanation into the commit log so that one can
learn the rationale for the change when studying the source with git.

Thanks
  Detlev

[1] http://www.denx.de/wiki/U-Boot/Patches

-- 
LISP has  jokingly been  described as  the most  intelligent way to  misuse a
computer.  I think that  description a great  compliment because it transmits
the full  flavour of  liberation:  it has assisted a number of our most gifted
fellow humans in thinking previously impossible thoughts. - Edsger W. Dijkstra
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] DreamPlug bootloader replacement

2011-04-20 Thread Jason
All,

I'm attempting to replace u-boot on the new dreamplug.  This is
different from the guruplug and sheevaplug in that the bootloader is
stored in a 1MB (!) flash connected via SPI.  I was able to dump the
factory u-boot to a file, and it's header looks strikingly similar to
the u-boot.kwb image I used on my guruplug.  However, the first 32 bits,
supposedly the magic number, are different.  Is that important?

Here's the first 0x100 bytes starting at 0x0.

### factory dreamplug image ###
000: 5a 00 00 00 54 49 02 00 00 00 00 00 00 02 00 00
010: 00 00 60 00 00 00 60 00 00 00 00 00 00 00 01 bc
020: 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
040: e0 00 d1 ff 9b 9b 1b 1b 00 14 d0 ff 30 0c 00 43
050: 04 14 d0 ff 00 30 54 37 08 14 d0 ff 51 54 12 22
060: 0c 14 d0 ff 33 0a 00 00 10 14 d0 ff cc 00 00 00
070: 14 14 d0 ff 00 00 00 00 18 14 d0 ff 00 00 00 00
080: 1c 14 d0 ff 52 0c 00 00 20 14 d0 ff 40 00 00 00
090: 24 14 d0 ff 7f f1 00 00 28 14 d0 ff 20 55 08 00
0a0: 7c 14 d0 ff 52 85 00 00 00 15 d0 ff 00 00 00 00
0b0: 04 15 d0 ff f1 ff ff 0f 08 15 d0 ff 00 00 00 10
0c0: 0c 15 d0 ff f5 ff ff 0f 14 15 d0 ff 00 00 00 00
0d0: 1c 15 d0 ff 00 00 00 00 94 14 d0 ff 00 00 03 00
0e0: 98 14 d0 ff 00 00 00 00 9c 14 d0 ff 03 e8 00 00
0f0: 80 14 d0 ff 01 00 00 00 00 00 00 00 00 00 00 00
### end factory dreamplug image ###

And, here's my u-boot.kwb:

### my u-boot.kwb #
000: 8b 00 00 08 58 9d 03 00 00 00 00 00 00 02 00 00
010: 00 00 60 00 00 00 60 00 00 00 00 00 00 00 01 4e
020: 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
040: e0 00 d1 ff 9b 9b 1b 1b 00 14 d0 ff 30 0c 00 43
050: 04 14 d0 ff 00 30 54 37 08 14 d0 ff 51 54 12 22
060: 0c 14 d0 ff 33 0a 00 00 10 14 d0 ff cc 00 00 00
070: 14 14 d0 ff 00 00 00 00 18 14 d0 ff 00 00 00 00
080: 1c 14 d0 ff 52 0c 00 00 20 14 d0 ff 40 00 00 00
090: 24 14 d0 ff 7f f1 00 00 28 14 d0 ff 20 55 08 00
0a0: 7c 14 d0 ff 52 85 00 00 00 15 d0 ff 00 00 00 00
0b0: 04 15 d0 ff f1 ff ff 0f 08 15 d0 ff 00 00 00 10
0c0: 0c 15 d0 ff f5 ff ff 0f 14 15 d0 ff 00 00 00 00
0d0: 1c 15 d0 ff 00 00 00 00 94 14 d0 ff 00 00 03 00
0e0: 98 14 d0 ff 00 00 00 00 9c 14 d0 ff 03 e8 00 00
0f0: 80 14 d0 ff 01 00 00 00 00 00 00 00 00 00 00 00
### end my u-boot.kwb #

Also, before I do a 'sf erase...; sf write...' I'd like to know I can
recover via the jtag, if necessary.  In theory, I should be able to load
the factory image into RAM via jtag, and run it.  Then, use tftpload and
'sf write' to restore the factory bootloader.  What I'm missing is how
to directly burn the spi flash from openocd.  Has anyone done this?  Is
there a config I can reference?

thx,

Jason. 
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] QorIQ corenet_ds.h: Wrong PCIe 3 virtual address

2011-04-20 Thread Kumar Gala

On Apr 20, 2011, at 8:04 AM, Trübenbach, Ralf wrote:

 This patch fixes a wrong address define in corenet_ds.h (used by 
 P4080DS.h, P3041DS.h, P5020DS.h).
 
 Since board/Freescale/corenet_ds/tlb.c does not use the 
 CONFIG_SYS_PCIE3_MEM_VIRT define (uses CONFIG_SYS_PCIE1_MEM_VIRT with a 
 fix offset instead) this has no effect to the functionality. But it may 
 be important for changes in the future?
 
 Signed-off-by: Ralf Trübenbach ralf.truebenb...@men.de
 Cc: Kumar Gala kumar.g...@freescale.com
 Cc: Andy Fleming aflem...@gmail.com
 ---

applied to 85xx

- k
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v5 0/2] Add DIG297 board and OMAP3 fixes

2011-04-20 Thread Paulraj, Sandeep


 
 Hi all,
 
 this patch series cleans up some OMAP3 stuff and adds DIG297 board support.
 
 New in v5:
  - rebased against u-boot-ti master (007965dbe4dae12);
  - updated to support the new am3517 crane board;
  - removed two patches that have already been pushed to u-boot-ti master.
 
 Luca
 
 Luca Ceresoli (2):
   ARMV7: OMAP3: Cleanup extern variables in mem.c
   ARMV7: OMAP3: Add support for Comelit DIG297 board
 


Thanks

Pushed to u-boot-ti

Regards,
Sandeep
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Please pull u-boot-ti/master

2011-04-20 Thread s-paulraj
The following changes since commit 104d04ed57d5de5d11fcd5b2242dadd325e9ce8f:
  Albert Aribaud (1):
Merge remote-tracking branch 'u-boot-ti/master'

are available in the git repository at:

  git://git.denx.de/u-boot-ti.git master

Luca Ceresoli (2):
  ARMV7: OMAP3: Cleanup extern variables in mem.c
  ARMV7: OMAP3: Add support for Comelit DIG297 board

 MAINTAINERS |4 +
 MAKEALL |1 +
 arch/arm/cpu/armv7/omap3/mem.c  |   32 
 board/comelit/dig297/Makefile   |   49 +
 board/comelit/dig297/dig297.c   |  187 +++
 board/comelit/dig297/dig297.h   |  383 +++
 boards.cfg  |1 +
 include/configs/am3517_crane.h  |   16 +--
 include/configs/am3517_evm.h|   18 +--
 include/configs/cm_t35.h|   16 +-
 include/configs/devkit8000.h|   10 +-
 include/configs/dig297.h|  311 +++
 include/configs/omap3_beagle.h  |   16 +-
 include/configs/omap3_evm.h |   26 ++--
 include/configs/omap3_overo.h   |   16 +-
 include/configs/omap3_pandora.h |   16 +-
 include/configs/omap3_sdp3430.h |   10 -
 include/configs/omap3_zoom1.h   |   16 +-
 include/configs/omap3_zoom2.h   |   16 +-
 19 files changed, 989 insertions(+), 155 deletions(-)
 create mode 100644 board/comelit/dig297/Makefile
 create mode 100644 board/comelit/dig297/dig297.c
 create mode 100644 board/comelit/dig297/dig297.h
 create mode 100644 include/configs/dig297.h
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Mainlining android fastboot support to upstream u-boot

2011-04-20 Thread John Rigby
On Tue, Apr 19, 2011 at 12:33 PM, Wolfgang Denk w...@denx.de wrote:
 Dear Jim Huang,

 In message BANLkTi=ynna9nbxwng_1mfwfd6g_o09...@mail.gmail.com you wrote:

 My idea is that we require abstract 'bootloader' component in Android
 device/linaro/common, and (patched) 'u-boot' would be the provider of
 'bootloader' component in
 device/linaro/Linaro-Evaluation-Build-Hardware.  Also, supporting

 If you are discussing requirements for U-Boot, and plan to get these
 merged in to mainlineU-Boot one day, it would probably be a good idea
 to discuss these plans on the U-Boot mailing list as well - ideally
 before any design is cast in iron.

 Best regards,

 Wolfgang Denk

 --
 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: w...@denx.de
 The management question ... is not _whether_ to build a pilot  system
 and  throw  it away. You _will_ do that. The only question is whether
 to plan in advance to build a throwaway, or to promise to deliver the
 throwaway to customers.       - Fred Brooks, The Mythical Man Month

 ___
 linaro-dev mailing list
 linaro-...@lists.linaro.org
 http://lists.linaro.org/mailman/listinfo/linaro-dev


Wolfgang,

As you can see from this discussion, Linaro is considering applying
resources (probably me) to upstreaming Android Fastboot features into
mainline u-boot.  What suggestions do you have for making this process
as painless as possible?

The topic came up briefly here last year:
http://lists.denx.de/pipermail/u-boot/2010-August/076343.html

An implementation exists for omap4/panda on gitorious:
git://gitorious.org/pandaboard/u-boot.git in the omap4_panda_es2.0
branch.  There is also a version for omap3 somewhere else on
gitorious.

To bring this to mainline one would have to:

1) Bring code up to current mainline revision.
2) Fix any coding standards issues.
3) Document the new features.

What else?  I know one issue maybe why does this need to exist when
other solutions exist.  I think that since Android uses it, it is
somewhat of a de facto standard.

All comments welcome,
John
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Policy for checkpatch usage?

2011-04-20 Thread Scott Wood
On Wed, 20 Apr 2011 20:15:40 +1000
Graeme Russ graeme.r...@gmail.com wrote:

 On Wednesday, April 20, 2011, Detlev Zundel d...@denx.de wrote:
  Hi,
 
 
 
  As a base for discussion, what about this:
 
    Use common sense in interpreting the results of checkpatch. Warnings
    that clearly only make sense in the Linux kernel can be ignored.  Also
    warnings produced for _context lines_ rather than actual changes can
    also be ignored.
 
 One man's common sense is another's idiocy
 
 I vote for a zero warnings, zero errors U-Boot specific checkpatch

I vote for checkpatch is a tool that can help you find some style problems,
but is imperfect, and the things it complains about are of varying
importance.  If you insist on zero warnings, what's the difference between
a warning and an error?  And will there then be a U-Boot-specific coding
style document to match?  Will anyone that wants to submit a patch that
checkpatch erroneously complains about have to first submit a patch for
checkpatch (first learning Perl if need be)?

There's a lot more common sense that needs to be applied when writing
software than where to stick what kind and amount of whitespace.
Guidelines are good -- zero-tolerance obedience to a script, not so much.

-Scott

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Update and Cut down mach types

2011-04-20 Thread Michael Schwingen
On 04/20/2011 10:58 AM, Igor Grinberg wrote:
 Hi Sandeep, Albert, Wolfgang,

 On 04/19/11 15:42, Paulraj, Sandeep wrote:
 Wolfgang, Albert,

 Russell King sent some updates to the linux kernel for mach-types.

 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=6f82f4db80189281a8ac42f2e72396accb719b57

 He also removed a lot of entries which never made it to mainline.
 Well, as I understood from Russell, the main purpose of this cut down
 is to make du -s linux/arch/arm smaller, because there is no real need in
 all those boards listed in mach-types.h unless there is a support for them
 in mainline Linux kernel.
 Nevertheless the real ARM registry remains untouched - meaning that all
 board ids remain the same and no board is removed from the registry.
Correct.
 This is the place where U-Boot board support diverges from Linux...

 Are we obliged to follow the Linux mach-types.h?
 Can't we just adopt Russell's cut down script to boards supported by U-Boot?
 Or will it harden the mach-types.h future updates?

 Have you thought of getting rid of mach-types.h completely?
 Making every board define its ARM registry id can work and will
 eliminate the need for mach-types.h update every couple of months.
Also, why do we need to pull mach-types.h from Linux at all?

Why don't we pull the original master mach-types file, and generate the 
required .h file(s) during make using the same (or a similar) script 
Linux uses?


 I have a patch and it is the branch below

 http://git.denx.de/?p=u-boot/u-boot-ti.git;a=shortlog;h=refs/heads/update-mach-types
 Have you checked that none of the removed boards are in U-Boot tree?
 Because if there are some, then their build will be broken...
It will break ACTUX1-ACTUX4 (which are in-tree, and work fine as soon as 
the relocation-breakage-patch is accepted), plus  DVLHOST, for which I 
have patches submitted to add support.

For my own boards, I can go to the ARM machine database, touch the 
entry, and wait until the define re-emerges in Linux, and await until 
that is marged back to u-boot, but this is plain silly. However, for 
DVLHOST, I am not the registered maintainer in the machine database, so 
I would have to create a duplicate entry for this to work.

cu
Michael

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Update and Cut down mach types

2011-04-20 Thread Albert ARIBAUD
Le 20/04/2011 19:15, Michael Schwingen a écrit :

 Why don't we pull the original master mach-types file, and generate the
 required .h file(s) during make using the same (or a similar) script
 Linux uses?

Hmm, because it would mean maintaining the same script as Linux uses. 
With the current solution, there's work to be done on mach-types only 
when someone needs new machine IDs.

 Have you checked that none of the removed boards are in U-Boot tree?
 Because if there are some, then their build will be broken...
 It will break ACTUX1-ACTUX4 (which are in-tree, and work fine as soon as
 the relocation-breakage-patch is accepted), plus  DVLHOST, for which I
 have patches submitted to add support.

 For my own boards, I can go to the ARM machine database, touch the
 entry, and wait until the define re-emerges in Linux, and await until
 that is marged back to u-boot, but this is plain silly. However, for
 DVLHOST, I am not the registered maintainer in the machine database, so
 I would have to create a duplicate entry for this to work.

IIUC the machines that would disappear are those for which the is no 
actual mainline Linux support and which have not been touched in over a 
year, right? Do ACTUX* and DVLHOST boards fit in this description?

 cu
 Michael

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] (no subject)

2011-04-20 Thread jeffhemstreet
http://www.industrialresourcesmanagement.com/cool01.11.php?ID=686
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [RFC PATCH] arm: provide a CONFIG flag for disabling relocation

2011-04-20 Thread Simon Glass
On Fri, Mar 25, 2011 at 11:35 AM, Albert ARIBAUD albert.arib...@free.fr wrote:
 Le 25/03/2011 17:12, Aneesh V a écrit :

 Another problem I have with relocation is that it makes debugging with
 JTAG debugers more difficult. The addresses of symbols in the ELF
 target are no longer valid. Of course, you can load the symbols at an
 offset from the original location. But one has to first enable debug
 prints, find the relocation offset, use it while loading the symbols
 before you can do source level debugging.

 Actually you don't need recompiling: simply set a breakpoint at the
 entry of relocate_code and once you hit the bp, look up r2: it contains
 the destination. If you want the offset rather than the absolute
 address, set the breakpoint right after the 'sub r9, r6, r0' round line
 222: r9 will then give you the offset. Unload the current symbols,
 reload the symbols with the relevant offset, and there you go.

I would like to revisit this thread. I'm not sure how other people do
development in U-Boot but I like to use an ICE and a source-level
debugger for any significant effort. I think it should be possible to
use a JTAG debugging just by loading the u-boot ELF file and running.

With this patch (or something similar) this is possible. Without it,
it is painful.

To be clear, we are not talking here about creating a platform that
doesn't use relocation, just that for development purposes it is
convenient to be able to disable it.

Looking at the December thread
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/88067/focus=88262

Aneesh:
  Shouldn't we provide a CONFIG option by which users can disable
  Elf relocation?

Wolfgang:
 Why should we?  It would just make the code even more complicated, and
 require a lot of additional test cases.

From what I can see this is a new CONFIG option, two ifdefs in the
board.c file, and optionally disabling the -pie position-independent
executable option to reduce size. It is pretty trivial:

 arch/arm/config.mk   |2 ++
 arch/arm/lib/board.c |5 +
 2 files changed, 7 insertions(+), 0 deletions(-)

Regards,
Simon


 Amicalement,
 --
 Albert.
 ___
 U-Boot mailing list
 U-Boot@lists.denx.de
 http://lists.denx.de/mailman/listinfo/u-boot

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Please pull u-boot-ti/master

2011-04-20 Thread Albert ARIBAUD
Hi Sandeep,

Le 20/04/2011 17:16, s-paul...@ti.com a écrit :
 The following changes since commit 104d04ed57d5de5d11fcd5b2242dadd325e9ce8f:
Albert Aribaud (1):
  Merge remote-tracking branch 'u-boot-ti/master'

 are available in the git repository at:

git://git.denx.de/u-boot-ti.git master

 Luca Ceresoli (2):
ARMV7: OMAP3: Cleanup extern variables in mem.c
ARMV7: OMAP3: Add support for Comelit DIG297 board

   MAINTAINERS |4 +
   MAKEALL |1 +
   arch/arm/cpu/armv7/omap3/mem.c  |   32 
   board/comelit/dig297/Makefile   |   49 +
   board/comelit/dig297/dig297.c   |  187 +++
   board/comelit/dig297/dig297.h   |  383 
 +++
   boards.cfg  |1 +
   include/configs/am3517_crane.h  |   16 +--
   include/configs/am3517_evm.h|   18 +--
   include/configs/cm_t35.h|   16 +-
   include/configs/devkit8000.h|   10 +-
   include/configs/dig297.h|  311 +++
   include/configs/omap3_beagle.h  |   16 +-
   include/configs/omap3_evm.h |   26 ++--
   include/configs/omap3_overo.h   |   16 +-
   include/configs/omap3_pandora.h |   16 +-
   include/configs/omap3_sdp3430.h |   10 -
   include/configs/omap3_zoom1.h   |   16 +-
   include/configs/omap3_zoom2.h   |   16 +-
   19 files changed, 989 insertions(+), 155 deletions(-)
   create mode 100644 board/comelit/dig297/Makefile
   create mode 100644 board/comelit/dig297/dig297.c
   create mode 100644 board/comelit/dig297/dig297.h
   create mode 100644 include/configs/dig297.h

Pulled in u-boot-arm/master, thanks.

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Please pull u-boot-mmc.git phylib

2011-04-20 Thread Andy Fleming
I've put all of the phylib patches in this tree.  Please pull
them from here.

The following changes since commit 73e5476e1edf1b860dbd9b5fc21ef32ac1b551ba:
  Fabio Estevam (1):
MAINTAINERS: fix email address case

are available in the git repository at:

  git://www.denx.de/git/u-boot-mmc.git phylib

Andy Fleming (7):
  Remove instances of phy_read/write
  miiphy: Fix some formatting issues
  Create PHY Lib for U-Boot
  phylib: Add a bunch of PHY drivers from tsec
  tsec: Convert tsec to use PHY Lib
  fsl: Change fsl_phy_enet_if to phy_interface_t
  Add mdio command for new PHY infrastructure

Mingkai Hu (2):
  tsec: use IO accessors for IO accesses
  tsec: arrange the code to avoid useless function declaration

 arch/powerpc/cpu/mpc8xxx/fdt.c|   23 +-
 arch/powerpc/include/asm/config.h |9 +
 arch/powerpc/include/asm/fsl_enet.h   |   27 +-
 board/freescale/mpc8360emds/mpc8360emds.c |   10 +-
 board/freescale/mpc837xemds/mpc837xemds.c |   10 +-
 board/freescale/mpc8536ds/mpc8536ds.c |6 +
 board/freescale/mpc8544ds/mpc8544ds.c |   30 +
 board/freescale/mpc8569mds/mpc8569mds.c   |4 +-
 board/freescale/mpc8572ds/mpc8572ds.c |6 +
 board/freescale/p1022ds/p1022ds.c |6 +
 board/freescale/p1_p2_rdb/p1_p2_rdb.c |6 +
 board/freescale/p2020ds/p2020ds.c |7 +
 common/Makefile   |4 +
 common/cmd_mdio.c |  286 +
 common/miiphyutil.c   |  311 +++--
 drivers/net/Makefile  |2 +-
 drivers/net/dm9000x.c |   18 +-
 drivers/net/enc28j60.c|   24 +-
 drivers/net/fsl_mdio.c|  120 ++
 drivers/net/phy/Makefile  |   13 +
 drivers/net/phy/atheros.c |   48 +
 drivers/net/phy/broadcom.c|  288 +
 drivers/net/phy/davicom.c |   98 ++
 drivers/net/phy/generic_10g.c |  105 ++
 drivers/net/phy/lxt.c |   87 ++
 drivers/net/phy/marvell.c |  367 ++
 drivers/net/phy/micrel.c  |   40 +
 drivers/net/phy/natsemi.c |   96 ++
 drivers/net/phy/phy.c |  753 +++
 drivers/net/phy/realtek.c |  130 ++
 drivers/net/phy/teranetics.c  |   62 +
 drivers/net/phy/vitesse.c |  242 
 drivers/net/tsec.c| 1992 -
 drivers/net/uli526x.c |   24 +-
 drivers/qe/uec.c  |   59 +-
 drivers/qe/uec.h  |3 +-
 drivers/qe/uec_phy.c  |  181 ++--
 include/config_phylib_all_drivers.h   |   32 +
 include/configs/MPC8323ERDB.h |4 +-
 include/configs/MPC832XEMDS.h |4 +-
 include/configs/MPC8360EMDS.h |4 +-
 include/configs/MPC8360ERDK.h |4 +-
 include/configs/MPC8568MDS.h  |4 +-
 include/configs/MPC8569MDS.h  |   20 +-
 include/configs/kmeter1.h |2 +-
 include/fsl_mdio.h|   62 +
 include/linux/ethtool.h   |  721 +++
 include/linux/mdio.h  |  278 
 include/miiphy.h  |   53 +-
 include/phy.h |  229 
 include/tsec.h|  302 +
 net/eth.c |6 +
 52 files changed, 4900 insertions(+), 2322 deletions(-)
 create mode 100644 common/cmd_mdio.c
 create mode 100644 drivers/net/fsl_mdio.c
 create mode 100644 drivers/net/phy/atheros.c
 create mode 100644 drivers/net/phy/broadcom.c
 create mode 100644 drivers/net/phy/davicom.c
 create mode 100644 drivers/net/phy/generic_10g.c
 create mode 100644 drivers/net/phy/lxt.c
 create mode 100644 drivers/net/phy/marvell.c
 create mode 100644 drivers/net/phy/micrel.c
 create mode 100644 drivers/net/phy/natsemi.c
 create mode 100644 drivers/net/phy/phy.c
 create mode 100644 drivers/net/phy/realtek.c
 create mode 100644 drivers/net/phy/teranetics.c
 create mode 100644 drivers/net/phy/vitesse.c
 create mode 100644 include/config_phylib_all_drivers.h
 create mode 100644 include/fsl_mdio.h
 create mode 100644 include/linux/ethtool.h
 create mode 100644 include/linux/mdio.h
 create mode 100644 include/phy.h

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] Fix the issue of _end symbol not being found while building

2011-04-20 Thread Albert ARIBAUD
Hi Sughosh,

Le 10/04/2011 22:16, Sughosh Ganu a écrit :
 Fix the nand_spl build for the hawkboard

 Signed-off-by: Sughosh Ganuurwithsugh...@gmail.com
 ---
   nand_spl/board/davinci/da8xxevm/u-boot.lds |2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

 diff --git a/nand_spl/board/davinci/da8xxevm/u-boot.lds 
 b/nand_spl/board/davinci/da8xxevm/u-boot.lds
 index c86117b..638ffd9 100644
 --- a/nand_spl/board/davinci/da8xxevm/u-boot.lds
 +++ b/nand_spl/board/davinci/da8xxevm/u-boot.lds
 @@ -68,6 +68,8 @@ SECTIONS

   __got_end = .;

 + _end = .;
 +
   . = ALIGN(4);
   __bss_start = .;
   .bss : { *(.bss) }

Applied to u-boot-arm/master, thanks.

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] Strip dead code on omap3 devices

2011-04-20 Thread Charles Manning
On Wednesday 20 April 2011 15:51:56 Charles Manning wrote:
 Garbage collect code that isn't used.

 Saves a good few kbytes.


Sorry folks. THis patch is broken.

I'll submit another.

Charles
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Fix for overlapping sections?

2011-04-20 Thread Charles Manning
On Tuesday 19 April 2011 11:20:47 Ciummo, Larry (DS-1) wrote:
 Designation: Non-SSA/Finmeccanica

 A while back there was a fix for the overlapping section link problem
 (see below) involving changing some sort of global.  Does anyone have a
 pointer to the change.  I'm using a fairly old uboot for AMCC
 Canyonlands/460Ex and can't easily upgrade to a newer uboot build.

 Thanks
 Larry

 eldk/usr/bin/../lib/gcc/powerpc-linux/4.2.2/pic -lgcc -Map u-boot.map -o
 u-boot
 /opt/eldk/usr/bin/ppc_4xx-ld: section .bootpg [f000 - f303]
 overlaps section .data.rel.local [e1d8 - febb]
 /opt/eldk/usr/bin/ppc_4xx-ld: u-boot: section .bootpg lma 0xf000
 overlaps previous sections
 /opt/eldk/usr/bin/ppc_4xx-ld: u-boot: section .u_boot_cmd lma 0xfebc
 overlaps previous sections
 make: *** [u-boot] Error 1

Overlapping sections are commonly caused by one of two problems:
1) You have set up the memory map in a way that does not give enough space so 
the sections do indeed overlap.
2) Your ld script is not handling all the sections being fed to it. This is  
likely if you have switched to  using -ffunction-sections etc.

In the case of (2) you will need to modify your ld script with something like:
@@ -34,8 +34,8 @@ SECTIONS
. = ALIGN(4);
.text   :
{
-   arch/arm/cpu/armv7/start.o  (.text)
-   *(.text)
+   KEEP(arch/arm/cpu/armv7/start.o (.text*))
+   *(.text*)
}
 
. = ALIGN(4);
@@ -70,7 +70,7 @@ SECTIONS
 
.bss __rel_dyn_start (OVERLAY) : {
__bss_start = .;
-   *(.bss)
+   *(.bss*)
 . = ALIGN(4);
__bss_end__ = .;
}


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v5] MX31: Introduce get_reset_cause()

2011-04-20 Thread Albert ARIBAUD
Le 19/04/2011 17:17, Detlev Zundel a écrit :
 Hi Fabio,

 Signed-off-by: Fabio Estevamfabio.este...@freescale.com
 ---
 Changes since v4:
 - Make get_reset_cause CPU specific code and no need to
 add any board specific call.

   arch/arm/cpu/arm1136/mx31/generic.c |   29 -
   1 files changed, 28 insertions(+), 1 deletions(-)

 Thanks, this looks good.  Now all i.MX31 boards profit!

 Acked-by: Detlev Zundeld...@denx.de

Stefano, does this get in your tree?

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Update and Cut down mach types

2011-04-20 Thread Michael Schwingen
On 04/20/2011 07:49 PM, Albert ARIBAUD wrote:
 Le 20/04/2011 19:15, Michael Schwingen a écrit :

 Why don't we pull the original master mach-types file, and generate the
 required .h file(s) during make using the same (or a similar) script
 Linux uses?
 Hmm, because it would mean maintaining the same script as Linux uses.
 With the current solution, there's work to be done on mach-types only
 when someone needs new machine IDs.
I don't see how much maintaining the script would need - if the input 
format does not change, the script does not need changes, and if changes 
are needed, the can be copied 1:1 from the Linux version.

On the plus side: the mach-types file is much more terse than the 
generated headers, so updates that pull in new machines would generate 
diffs that are a lot smaller than they are now.


 Have you checked that none of the removed boards are in U-Boot tree?
 Because if there are some, then their build will be broken...
 It will break ACTUX1-ACTUX4 (which are in-tree, and work fine as soon as
 the relocation-breakage-patch is accepted), plus  DVLHOST, for which I
 have patches submitted to add support.

 For my own boards, I can go to the ARM machine database, touch the
 entry, and wait until the define re-emerges in Linux, and await until
 that is marged back to u-boot, but this is plain silly. However, for
 DVLHOST, I am not the registered maintainer in the machine database, so
 I would have to create a duplicate entry for this to work.
 IIUC the machines that would disappear are those for which the is no
 actual mainline Linux support and which have not been touched in over a
 year, right? Do ACTUX* and DVLHOST boards fit in this description?
Yes. The ACTUX board ports are by me, while the DVLHOST machine type 
seems to be allocated by the manufacturer, Devolo, who never mainlined 
their Linux adaptions, so my goal is to get an independent port up. 
However, that means I can't update the machine type to get it back in 
mainline Linux by the 12-month-rule.

cu
Michael

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Fix for overlapping sections?

2011-04-20 Thread Albert ARIBAUD
Le 20/04/2011 21:03, Charles Manning a écrit :
 On Tuesday 19 April 2011 11:20:47 Ciummo, Larry (DS-1) wrote:
 Designation: Non-SSA/Finmeccanica

 A while back there was a fix for the overlapping section link problem
 (see below) involving changing some sort of global.  Does anyone have a
 pointer to the change.  I'm using a fairly old uboot for AMCC
 Canyonlands/460Ex and can't easily upgrade to a newer uboot build.

 Thanks
 Larry

 eldk/usr/bin/../lib/gcc/powerpc-linux/4.2.2/pic -lgcc -Map u-boot.map -o
 u-boot
 /opt/eldk/usr/bin/ppc_4xx-ld: section .bootpg [f000 -  f303]
 overlaps section .data.rel.local [e1d8 -  febb]
 /opt/eldk/usr/bin/ppc_4xx-ld: u-boot: section .bootpg lma 0xf000
 overlaps previous sections
 /opt/eldk/usr/bin/ppc_4xx-ld: u-boot: section .u_boot_cmd lma 0xfebc
 overlaps previous sections
 make: *** [u-boot] Error 1

 Overlapping sections are commonly caused by one of two problems:
 1) You have set up the memory map in a way that does not give enough space so
 the sections do indeed overlap.
 2) Your ld script is not handling all the sections being fed to it. This is
 likely if you have switched to  using -ffunction-sections etc.

 In the case of (2) you will need to modify your ld script with something like:
 @@ -34,8 +34,8 @@ SECTIONS
  . = ALIGN(4);
  .text   :
  {
 -   arch/arm/cpu/armv7/start.o  (.text)
 -   *(.text)
 +   KEEP(arch/arm/cpu/armv7/start.o (.text*))
 +   *(.text*)
  }

  . = ALIGN(4);
 @@ -70,7 +70,7 @@ SECTIONS

  .bss __rel_dyn_start (OVERLAY) : {
  __bss_start = .;
 -   *(.bss)
 +   *(.bss*)
   . = ALIGN(4);
  __bss_end__ = .;
  }

Watch out: these are ARM excerpts. The original problem is on PPC, to 
which these might possibly not apply.

Aside: I understand the stars added because of the -ffunction-section in 
your example, but why the KEEP(), or more specifically, what makes it 
required with -ffunction-section? Unless you assume --gc-sections also?

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] PowerPC: Move -fPIC flag to common place

2011-04-20 Thread Wolfgang Denk
Dear Joakim Tjernlund,

In message 
of8b32e14f.150b51b9-onc1257878.0044927e-c1257878.00452...@transmode.se you 
wrote:

 OK, I managed to script the change, patch last in mail.

Thanks.

 However CROSS_COMPILE=powerpc-softfloat-linux-gnu- ./MAKEALL  TQM862L TQM855L 
 TQM860L
 does not build for me, same problem as you got.
 Even if I manually back out the 2 patches affecting 8xx it wont build.
 I think these boards have some other problem really, like u-boot is too big 
 for them.
 
 Most other 8xx boards build fine, those that don't have some other problem.

I bisected the build issue, and it pointed at your patch.


 From ce7970dd177a798c5ab7e093adadfc57a97ce0e7 Mon Sep 17 00:00:00 2001
 From: Joakim Tjernlund joakim.tjernl...@transmode.se
 Date: Wed, 20 Apr 2011 14:22:59 +0200
 Subject: [PATCH] powerpc, 8xx: Fixup all 8xx u-boot.lds scripts
 
 8xx was left behind when fixing up powerpc linking
 scripts to support -fpic.
 
 Signed-off-by: Joakim Tjernlund joakim.tjernl...@transmode.se
 ---
  board/LEOX/elpt860/u-boot.lds|5 +++--
  board/RPXClassic/u-boot.lds  |5 +++--
  board/RPXlite/u-boot.lds |5 +++--
  board/RPXlite_dw/u-boot.lds  |5 +++--
  board/RRvision/u-boot.lds|5 +++--
  board/adder/u-boot.lds   |5 +++--
  board/amirix/ap1000/u-boot.lds   |5 +++--
  board/c2mon/u-boot.lds   |5 +++--
  board/cogent/u-boot.lds  |5 +++--
  board/dave/PPChameleonEVB/u-boot.lds |3 ++-
  board/eltec/mhpc/u-boot.lds  |5 +++--
  board/emk/top860/u-boot.lds  |5 +++--
  board/ep88x/u-boot.lds   |3 ++-
  board/esd/dasa_sim/u-boot.lds|5 +++--
  board/esteem192e/u-boot.lds  |5 +++--
  board/etx094/u-boot.lds  |5 +++--
  board/evb64260/u-boot.lds|5 +++--
  board/fads/u-boot.lds|5 +++--
  board/flagadm/u-boot.lds |5 +++--
  board/gen860t/u-boot.lds |5 +++--
  board/genietv/u-boot.lds |5 +++--
  board/hermes/u-boot.lds  |5 +++--
  board/hymod/u-boot.lds   |2 +-
  board/icu862/u-boot.lds  |5 +++--
  board/ip860/u-boot.lds   |5 +++--
  board/ivm/u-boot.lds |5 +++--
  board/kup/kup4k/u-boot.lds   |5 +++--
  board/kup/kup4x/u-boot.lds   |5 +++--
  board/lantec/u-boot.lds  |5 +++--
  board/lwmon/u-boot.lds   |5 +++--
  board/manroland/uc100/u-boot.lds |5 +++--
  board/matrix_vision/mvsmr/u-boot.lds |3 ++-
  board/mbx8xx/u-boot.lds  |5 +++--
  board/ml2/u-boot.lds |5 +++--
  board/mousse/u-boot.lds  |5 +++--
  board/mvblue/u-boot.lds  |5 +++--
  board/netphone/u-boot.lds|5 +++--
  board/netta/u-boot.lds   |5 +++--
  board/netta2/u-boot.lds  |5 +++--
  board/netvia/u-boot.lds  |5 +++--
  board/nx823/u-boot.lds   |5 +++--
  board/quantum/u-boot.lds |5 +++--
  board/r360mpi/u-boot.lds |5 +++--
  board/rbc823/u-boot.lds  |5 +++--
  board/rmu/u-boot.lds |5 +++--
  board/rsdproto/u-boot.lds|2 +-
  board/sandpoint/u-boot.lds   |5 +++--
  board/sc3/u-boot.lds |5 +++--
  board/siemens/IAD210/u-boot.lds  |5 +++--
  board/sixnet/u-boot.lds  |5 +++--
  board/snmc/qs850/u-boot.lds  |5 +++--
  board/snmc/qs860t/u-boot.lds |5 +++--
  board/spc1920/u-boot.lds |5 +++--
  board/spd8xx/u-boot.lds  |5 +++--
  board/stx/stxxtc/u-boot.lds  |5 +++--
  board/svm_sc8xx/u-boot.lds   |5 +++--
  board/tqc/tqm8xx/u-boot.lds  |5 +++--
  board/v37/u-boot.lds |5 +++--
  board/westel/amx860/u-boot.lds   |5 +++--
  59 files changed, 170 insertions(+), 113 deletions(-)

Thanks, applied.

Problem is still present.

Bisected again:

39768f7715ed637ef02f49fc7de664cc1aaf14b3 is the first bad commit
commit 39768f7715ed637ef02f49fc7de664cc1aaf14b3
Author: Joakim Tjernlund joakim.tjernl...@transmode.se
Date:   Mon Dec 6 18:35:37 2010 +0100

PowerPC: Add support for -msingle-pic-base


I revert this commit now.  Result:

- ./MAKEALL TQM860L
Configuring for TQM860L board...
u-boot.lds:75 cannot move location counter backwards (from 40008024 to 40008000)
make: *** [u-boot] Error 1
ppc_8xx-size: './u-boot': No such file

- SUMMARY 
Boards compiled: 1
Boards with warnings or errors: 1 ( TQM860L )
--
- git revert 39768f7715ed637ef02f49fc7de664cc1aaf14b3
[master 8c4734e] Revert PowerPC: Add support for -msingle-pic-base
 13 files changed, 

Re: [U-Boot] [PATCH] da850evm: fix NAND WSTROBE and TA timings

2011-04-20 Thread Paulraj, Sandeep


 The current NAND timings, introduced in commit
 a3f88293ddd13facd734769c1664d35ab4ed681f da850evm: setup the NAND flash
 timings , incorrectly set WSTROBE and TA to 0. A more recent inspection of
 the
 values set by the Linux kernel indicates that these should be set to 1.
 
 Set the WSTROBE and TA field of the EMIFA cycle-count timings
 configuration to
 1 to match the values set by linux.
 
 Signed-off-by: Ben Gardiner bengardi...@nanometrics.ca
 CC: Stefano Babic sba...@denx.de
 CC: Sandeep Paulraj s-paul...@ti.com
 CC: Scott Wood scottw...@freescale.com
 ---
  board/davinci/da8xxevm/da850evm.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

Thanks

Pushed to u-boot-ti

--Sandeep
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] DreamPlug bootloader replacement

2011-04-20 Thread Jason
On Wed, Apr 20, 2011 at 12:57:10PM -0700, Drassal, Allan wrote:
 I have posted instructions in the following place, please take a look.
 I have been able to do a full dump and reload of the DreamPlug.
 I would be more than happy to entertain any questions.
 
 http://www.newit.co.uk/forum/index.php/topic,1977.0.html
 

Awesome!  Thanks for the help.  

 I have also built a current version of openocd (0.4.0) with the
 correct config files.  The trick with the DreamPlug is that openocd
 does not know how to write to the SPI NOR flash, however, you can
 startup off a previous bootloader using the JTAG, and also use the
 JTAG to place the bootloader you want to replace in memory at a
 location, then use the sf erase sf write commands to replace it.
 

Yes, that's my backup plan.  It would be nice if openocd could write SPI
flash.

Apparently, they don't know how either (.../target/board/dreamplug.cfg):

proc dreamplug_burn_uboot { } {

# load u-Boot into RAM and execute it
sheevaplug_init
load_image ./u-boot
load_image u-boot.kwb 0x640
#   load_image u-boot.kwb 0x90
resume 0x0060

}

hehehe...

 Please take a look at the post, let me know if you need any of the
 original files from it, or the openocd.  What I would REALLY like to
 do is know how to get U-Boot to build me a new bootloader, if you have
 accomplished this, please share.  I don't know how to edit the
 board/guruplug.cfg file in the U-Boot source tree to match the
 configuration on the DreamPlug, It always freezes on boot right after
 detecting the DRAM size (and it is incorrect).
 

I'm going to fire off an email to them now.  They usually don't respond,
but it gives me an excuse to call them. ;-)

thx,

Jason.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Please pull u-boot-mmc.git

2011-04-20 Thread Wolfgang Denk
Dear Andy Fleming,

In message 1302741144-8656-1-git-send-email-aflem...@freescale.com you wrote:
 I apologize for the long delay.  Hopefully now that we're beginning to push
 out all of this p4080 stuff, I'll be able to stay on top of what's happening
 outside of Freescale.
 
 The following changes since commit b16aadf411280fc426d7488ddd8a5b2038b7194d:
   Lei Wen (1):
 disk/part.c: fix potential stack overflow bug
 
 are available in the git repository at:
 
   git://www.denx.de/git/u-boot-mmc.git master
 
 Alagu Sankar (1):
   SD1.00 wide-bus fix
 
 Frans Meulenbroeks (1):
   drivers/mmc/fsl_esdhc.c: reordered tests
 
 Matt Waddel (1):
   MMC: Max blocks value adjustable
 
 Mike Frysinger (1):
   mmc: constify  localize data
 
 Minkyu Kang (2):
   mmc: show mmc capacity using print_size
   mmc: remove duplicated header file
 
 Raffaele Recalcati (4):
   mmc: checking status after commands with R1b response
   mmc: SEND_OP_COND considers card capabilities (voltage)
   mmc: trace added
   MMC may wrongly regconize 2GB eMMC as high capacity
 
 Thomas Chou (1):
   mmc: add generic mmc spi driver
 
 Wolfgang Wegner (1):
   add CONFIG_SPI_IDLE_VAL for cf_spi.c to allow use of spi_mmc
 
  common/Makefile |1 +
  common/cmd_mmc.c|3 +-
  common/cmd_mmc_spi.c|   88 +++
  drivers/mmc/Makefile|1 +
  drivers/mmc/fsl_esdhc.c |6 +-
  drivers/mmc/mmc.c   |  260 ---
  drivers/mmc/mmc_spi.c   |  280 
 +++
  drivers/spi/cf_spi.c|   14 ++-
  include/mmc.h   |   11 ++
  9 files changed, 614 insertions(+), 50 deletions(-)
  create mode 100644 common/cmd_mmc_spi.c
  create mode 100644 drivers/mmc/mmc_spi.c

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
One of the advantages of being a captain is being able to ask for ad-
vice without necessarily having to take it.
-- Kirk, Dagger of the Mind, stardate 2715.2
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [i2c] Pull request

2011-04-20 Thread Wolfgang Denk
Dear Heiko Schocher,

In message 4da696e7.5090...@denx.de you wrote:
 Hello Wolfgang,
 
 please pull from:
 
 The following changes since commit 73e5476e1edf1b860dbd9b5fc21ef32ac1b551ba:
 
   MAINTAINERS: fix email address case (2011-04-13 22:40:51 +0200)
 
 are available in the git repository at:
   git://git.denx.de/u-boot-i2c.git master
 
 Nick Thompson (1):
   I2C: OMAP: detect more devices when probing an i2c bus
 
  drivers/i2c/omap24xx_i2c.c |   42 +++---
  1 files changed, 11 insertions(+), 31 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
Why should we subsidize intellectual curiosity? - Ronald Reagan
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Pull request: nand flash

2011-04-20 Thread Wolfgang Denk
Dear Scott Wood,

In message 20110415212850.ga25...@schlenkerla.am.freescale.net you wrote:
 The following changes since commit 73e5476e1edf1b860dbd9b5fc21ef32ac1b551ba:
 
   MAINTAINERS: fix email address case (2011-04-13 22:40:51 +0200)
 
 are available in the git repository at:
   git://git.denx.de/u-boot-nand-flash.git master
 
 Alex Waterman (1):
   nand_spl: Fix large page nand_command()
 
 Dipen Dudhat (1):
   powerpc/85xx: Modify NAND loader makefiles to compile NAND_SPL linker 
 script
 
 Florian Fainelli (2):
   NAND: Fix integer overflow in ONFI detection of chips = 4GiB
   NAND: rearrange ONFI revision checking, add ONFI 2.3
 
 Matthew McClintock (1):
   nand/spl: Assuming a static nand page size to reduce code size
 
  drivers/mtd/nand/nand_base.c |   22 +-
  nand_spl/board/freescale/mpc8536ds/Makefile  |   11 +++
  nand_spl/board/freescale/mpc8569mds/Makefile |   11 +++
  nand_spl/board/freescale/mpc8572ds/Makefile  |   11 +++
  nand_spl/board/freescale/p1_p2_rdb/Makefile  |   11 +++
  nand_spl/nand_boot.c |4 
  nand_spl/nand_boot_fsl_elbc.c|   10 +-
  7 files changed, 50 insertions(+), 30 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
We don't have to protect the environment -- the Second Coming is  at
hand.   - James Watt
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Pull request: u-boot-fdt

2011-04-20 Thread Wolfgang Denk
Dear Gerald Van Baren,

In message 4dab91e9.3040...@cideas.com you wrote:
 Dear Wolfgang,
 
 Sorry for the late pull request, due to other priorities (not the least 
 being filling out tax forms :-/) I was unable to get this out sooner.
 
 I only have a one-liner bugfix by Kyle Moffett in the pull.  Grant's 
 changes [PATCH 0/6] ARM device tree support improvements look good in 
 principle, but I had a compilation error using the PPC target we need to 
 work that out.

Please let me know when this situation changes.  I want to see that
stuff in mainline as quickly as possible.  Thanks.

 The following changes since commit d13ffa66aff1d9aed9081986492fb74c1a61a4a9:
Kyle Moffett (1):
  fdt_support: Fix buffer overflow in fdt_fixup_memory_banks
 
 are available in the git repository at:
 
git://git.denx.de/u-boot-fdt.git master

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
The connection between the language in which we think/program and the
problems and solutions we can imagine is very close. For this  reason
restricting  language  features  with  the intent of eliminating pro-
grammer errors is at best dangerous.
   - Bjarne Stroustrup in The  C++ Programming Language
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Pull request u-boot-blackfin.git (misc branch)

2011-04-20 Thread Wolfgang Denk
Dear Mike Frysinger,

In message 1302724928-24360-1-git-send-email-vap...@gentoo.org you wrote:
 Wolfgang: I put together this branch of my random little patches over
 the tree.  These are the latest versions, and haven't garned any new
 feedback (if any at all).  Just in case pulling a branch vs cherry
 picking random e-mails is easier.

It is. Thanks a lot.

 The following changes since commit b16aadf411280fc426d7488ddd8a5b2038b7194d:
 
   disk/part.c: fix potential stack overflow bug (2011-04-12 22:58:35 +0200)
 
 are available in the git repository at:
   git://www.denx.de/git/u-boot-blackfin.git misc
 
 Mike Frysinger (7):
   env: make import/export optional
   make `go` optional
   crc32: make command optional
   md5sum/sha1sum/unzip: split out of mondo mem file
   gpio: generalize for all generic gpio providers
   config_defaults.h: drop OSE bootm default
   gpio: check request result
 
  README   |4 +
  arch/blackfin/cpu/Makefile   |1 -
  arch/blackfin/cpu/cmd_gpio.c |  118 
 --
  arch/blackfin/include/asm/gpio.h |   53 +
  common/Makefile  |4 +
  common/cmd_boot.c|4 +
  common/cmd_gpio.c|   89 
  common/cmd_md5sum.c  |   53 +
  common/cmd_mem.c |  108 ++
  common/cmd_nvedit.c  |8 +++
  common/cmd_sha1sum.c |   53 +
  common/cmd_unzip.c   |   59 +++
  include/config_cmd_defaults.h|6 ++-
  include/config_defaults.h|1 -
  14 files changed, 338 insertions(+), 223 deletions(-)
  delete mode 100644 arch/blackfin/cpu/cmd_gpio.c
  create mode 100644 common/cmd_gpio.c
  create mode 100644 common/cmd_md5sum.c
  create mode 100644 common/cmd_sha1sum.c
  create mode 100644 common/cmd_unzip.c

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
I paid too much for it, but its worth it.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Please pull u-boot-mmc.git phylib

2011-04-20 Thread Wolfgang Denk
Dear Andy Fleming,

In message 1303325302-10258-1-git-send-email-aflem...@freescale.com you wrote:
 I've put all of the phylib patches in this tree.  Please pull
 them from here.

Thanks a lot.

 The following changes since commit 73e5476e1edf1b860dbd9b5fc21ef32ac1b551ba:
   Fabio Estevam (1):
 MAINTAINERS: fix email address case
 
 are available in the git repository at:
 
   git://www.denx.de/git/u-boot-mmc.git phylib
 
 Andy Fleming (7):
   Remove instances of phy_read/write
   miiphy: Fix some formatting issues
   Create PHY Lib for U-Boot
   phylib: Add a bunch of PHY drivers from tsec
   tsec: Convert tsec to use PHY Lib
   fsl: Change fsl_phy_enet_if to phy_interface_t
   Add mdio command for new PHY infrastructure
 
 Mingkai Hu (2):
   tsec: use IO accessors for IO accesses
   tsec: arrange the code to avoid useless function declaration

  arch/powerpc/cpu/mpc8xxx/fdt.c|   23 +-
  arch/powerpc/include/asm/config.h |9 +
  arch/powerpc/include/asm/fsl_enet.h   |   27 +-
  board/freescale/mpc8360emds/mpc8360emds.c |   10 +-
  board/freescale/mpc837xemds/mpc837xemds.c |   10 +-
  board/freescale/mpc8536ds/mpc8536ds.c |6 +
  board/freescale/mpc8544ds/mpc8544ds.c |   30 +
  board/freescale/mpc8569mds/mpc8569mds.c   |4 +-
  board/freescale/mpc8572ds/mpc8572ds.c |6 +
  board/freescale/p1022ds/p1022ds.c |6 +
  board/freescale/p1_p2_rdb/p1_p2_rdb.c |6 +
  board/freescale/p2020ds/p2020ds.c |7 +
  common/Makefile   |4 +
  common/cmd_mdio.c |  286 +
  common/miiphyutil.c   |  311 +++--
  drivers/net/Makefile  |2 +-
  drivers/net/dm9000x.c |   18 +-
  drivers/net/enc28j60.c|   24 +-
  drivers/net/fsl_mdio.c|  120 ++
  drivers/net/phy/Makefile  |   13 +
  drivers/net/phy/atheros.c |   48 +
  drivers/net/phy/broadcom.c|  288 +
  drivers/net/phy/davicom.c |   98 ++
  drivers/net/phy/generic_10g.c |  105 ++
  drivers/net/phy/lxt.c |   87 ++
  drivers/net/phy/marvell.c |  367 ++
  drivers/net/phy/micrel.c  |   40 +
  drivers/net/phy/natsemi.c |   96 ++
  drivers/net/phy/phy.c |  753 +++
  drivers/net/phy/realtek.c |  130 ++
  drivers/net/phy/teranetics.c  |   62 +
  drivers/net/phy/vitesse.c |  242 
  drivers/net/tsec.c| 1992 
 -
  drivers/net/uli526x.c |   24 +-
  drivers/qe/uec.c  |   59 +-
  drivers/qe/uec.h  |3 +-
  drivers/qe/uec_phy.c  |  181 ++--
  include/config_phylib_all_drivers.h   |   32 +
  include/configs/MPC8323ERDB.h |4 +-
  include/configs/MPC832XEMDS.h |4 +-
  include/configs/MPC8360EMDS.h |4 +-
  include/configs/MPC8360ERDK.h |4 +-
  include/configs/MPC8568MDS.h  |4 +-
  include/configs/MPC8569MDS.h  |   20 +-
  include/configs/kmeter1.h |2 +-
  include/fsl_mdio.h|   62 +
  include/linux/ethtool.h   |  721 +++
  include/linux/mdio.h  |  278 
  include/miiphy.h  |   53 +-
  include/phy.h |  229 
  include/tsec.h|  302 +
  net/eth.c |6 +
  52 files changed, 4900 insertions(+), 2322 deletions(-)
  create mode 100644 common/cmd_mdio.c
  create mode 100644 drivers/net/fsl_mdio.c
  create mode 100644 drivers/net/phy/atheros.c
  create mode 100644 drivers/net/phy/broadcom.c
  create mode 100644 drivers/net/phy/davicom.c
  create mode 100644 drivers/net/phy/generic_10g.c
  create mode 100644 drivers/net/phy/lxt.c
  create mode 100644 drivers/net/phy/marvell.c
  create mode 100644 drivers/net/phy/micrel.c
  create mode 100644 drivers/net/phy/natsemi.c
  create mode 100644 drivers/net/phy/phy.c
  create mode 100644 drivers/net/phy/realtek.c
  create mode 100644 drivers/net/phy/teranetics.c
  create mode 100644 drivers/net/phy/vitesse.c
  create mode 100644 include/config_phylib_all_drivers.h
  create mode 100644 include/fsl_mdio.h
  create mode 100644 include/linux/ethtool.h
  create mode 100644 include/linux/mdio.h
  create mode 100644 include/phy.h

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
A memorandum is written not to inform the 

Re: [U-Boot] Pull request: u-boot-fdt

2011-04-20 Thread Jerry Van baren
On 4/20/2011 4:54 PM, Wolfgang Denk wrote:
 Dear Gerald Van Baren,

[snip]

 I only have a one-liner bugfix by Kyle Moffett in the pull.  Grant's
 changes [PATCH 0/6] ARM device tree support improvements look good in
 principle, but I had a compilation error using the PPC target we need to
 work that out.

 Please let me know when this situation changes.  I want to see that
 stuff in mainline as quickly as possible.  Thanks.

Will do, I'll prioritize it.

[snip]

 Best regards,
 Wolfgang Denk

Thanks,
gvb

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] Add 'led' command

2011-04-20 Thread Wolfgang Denk
Dear Jason Kridner,

In message 1299013329-29931-1-git-send-email-jkrid...@beagleboard.org you 
wrote:
 This patch allows any board implementing the coloured LED API
 to control the LEDs from the console.
 
 led [green | yellow | red | all ]  [ on | off ]
 
 or
 
 led [ 1 | 2 | 3 | all ]  [ on | off ]

I still wonder if such a patch will help to get rid of the ton of LEd
drivers we already have in U-Boot, or if it just adds another such
interface?

Which drivers (led.c files) will be obsoleted by this patch?


If it is intended to be a generic interface - how can this then be
combined with the status_led.c driver? 

The configuration green, yellow, red seems to be very specific
to me - I guess this applies just to very few boards?

...
 +struct led_tbl_s {
 + char*string;/* String for use in the command */
 + led_id_tmask;   /* Mask used for calling __led_set() */
 + void(*on)(void);/* Optional fucntion for turning LED on 
 */
 + void(*off)(void);   /* Optional fucntion for turning LED on 
 */
 +};
 +
 +typedef struct led_tbl_s led_tbl_t;
 +
 +static const led_tbl_t led_commands[] = {
 +#ifdef CONFIG_BOARD_SPECIFIC_LED
 +#ifdef STATUS_LED_BIT
 + { 0, STATUS_LED_BIT, NULL, NULL },
 +#endif
 +#ifdef STATUS_LED_BIT1
 + { 1, STATUS_LED_BIT1, NULL, NULL },
 +#endif
 +#ifdef STATUS_LED_BIT2
 + { 2, STATUS_LED_BIT2, NULL, NULL },
 +#endif
 +#ifdef STATUS_LED_BIT3
 + { 3, STATUS_LED_BIT3, NULL, NULL },
 +#endif

What are these status bits good for when they have no actual
handlers attached?  Where are they actually used?


 +#ifdef STATUS_LED_GREEN
 + { green, STATUS_LED_GREEN, green_LED_off, green_LED_on },
 +#endif
 +#ifdef STATUS_LED_YELLOW
 + { yellow, STATUS_LED_YELLOW, yellow_LED_off, yellow_LED_on },
 +#endif
 +#ifdef STATUS_LED_RED
 + { red, STATUS_LED_RED, red_LED_off, red_LED_on },
 +#endif
 +#ifdef STATUS_LED_BLUE
 + { blue, STATUS_LED_BLUE, blue_LED_off, blue_LED_on },
 +#endif

We do not allow CamelCase identifiers (like green_LED_off).


Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
Sometimes a man will tell his bartender things he'll never tell his doctor.
-- Dr. Phillip Boyce, The Menagerie (The Cage),
   stardate unknown.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] BeagleBoard: Added LED driver

2011-04-20 Thread Wolfgang Denk
Dear Jason Kridner,

In message 1299013343-29963-1-git-send-email-jkrid...@beagleboard.org you 
wrote:
 Added LED driver using status_led.  USR0 is set to monitor the boot
 status.  USR1 is set to be the green LED.
 
 Included adding configuration and command to the default configuration.
 
 Signed-off-by: Jason Kridner jkrid...@beagleboard.org
...
 +#ifdef STATUS_LED_GREEN
 +void green_LED_off (void)
...
 +void green_LED_on (void)
...

We doin't allow CamelCase identifiers.

 + if (!omap_request_gpio(BEAGLE_LED_USR0)) {
 + omap_set_gpio_direction(BEAGLE_LED_USR0, 0);
 + omap_set_gpio_dataout(BEAGLE_LED_USR0, state);

Should you not set dataout _before_ direction?  As is, you may drive
the wrong output value for a short time. 

 + if (!omap_request_gpio(BEAGLE_LED_USR1)) {
 + omap_set_gpio_direction(BEAGLE_LED_USR1, 0);
 + omap_set_gpio_dataout(BEAGLE_LED_USR1, state);

Ditto.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/5] Add target EDOSK2674

2011-04-20 Thread Wolfgang Denk
Dear Yoshinori Sato,

In message 87zkpe9dj9.wl%ys...@users.sourceforge.jp you wrote:
 Hi lists,
 
 This patches added new target EDOSK2674.
 Please comments.
 Thanks.

As a general note, it would be a good idea to include some comments
about hwat sort this CPU is, why it is implemented here as a new
architecture, where one can find related documentation, etc.

 Yoshinori Sato (5):
   Add h8300 architecture part1 - core
   Add h8300 architecture part2 - headers
   Add h8300 architecture part3 - misc
   standard SCI support
   Add target edosk2674

This split is artifical and makes no sense.  Please keep in ind that
commits shall implement atomic changes, always resulting in some sort
of sane state. So adding code without the needed headers is a strict
no-no.

Finally, these changes have a number of style issues.  In a first step
I recommend to clean up checkpatch errors and warnings:

[U-Boot] [PATCH 1/5] Add h8300 architecture part1 - core
total: 6 errors, 9 warnings, 716 lines checked
[U-Boot] [PATCH 2/5] Add h8300 architecture part2 - headers
total: 84 errors, 84 warnings, 796 lines checked
[U-Boot] [PATCH 3/5] Add h8300 architecture part3 - misc
total: 1 errors, 11 warnings, 104 lines checked
[U-Boot] [PATCH 4/5] standard SCI support
total: 9 errors, 3 warnings, 273 lines checked
[U-Boot] [PATCH 5/5] Add target edosk2674
total: 8 errors, 11 warnings, 442 lines checked

Thanks.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
Q: Why do PCs have a reset button on the front?
A: Because they are expected to run Microsoft operating systems.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] tools/env: fix redundant env flag comparison

2011-04-20 Thread Wolfgang Denk
Dear Jon Povey,

In message 1299820256-29757-1-git-send-email-jon.po...@racelogic.co.uk you 
wrote:
 This fixes two bugs with comparison of redundant environment flags on
 read.
 
 flag0 and flag1 in fw_env_open() were declared signed instead of
 unsigned char breaking BOOLEAN mode == 0xFF tests and in INCREMENTAL
 mode the wrong environment would be chosen where the flag values are
 127 and 128 (either way round). With both flags over 128, both signs
 flipped and the logic worked by happy accident.
 
 Also there was a logic bug in the INCREMENTAL test (after signedness was
 fixed) in the case flag0=0, flag1=255, env 1 would be incorrectly chosen.
 
 Fix both of these.
 
 Signed-off-by: Jon Povey jon.po...@racelogic.co.uk
 ---
 After my gripe yesterday, something more constructive:
 
 I confirmed these bugs with a little test program in C, can send that
 if anyone wants it.
 
 At a glance it looks like the main u-boot env handling does not have
 these bugs.
 
  tools/env/fw_env.c |   13 ++---
  1 files changed, 6 insertions(+), 7 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
Repeat after me:
Usenet is not a word processor; it's a medium where aesthetics count.
Mozilla is not a newsreader; it's a web browser.
Windows is not an operating system; it's a GUI on a program loader.
 -- Tom Christiansen in 6bq0g5$lr4$2...@csnews.cs.colorado.edu
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] DreamPlug bootloader replacement

2011-04-20 Thread Drassal, Allan
I have posted instructions in the following place, please take a look.
I have been able to do a full dump and reload of the DreamPlug.
I would be more than happy to entertain any questions.

http://www.newit.co.uk/forum/index.php/topic,1977.0.html

I have also built a current version of openocd (0.4.0) with the correct config 
files.
The trick with the DreamPlug is that openocd does not know how to write to the 
SPI NOR flash, however, you can startup off a previous bootloader using the 
JTAG, and also use the JTAG to place the bootloader you want to replace in 
memory at a location, then use the sf erase sf write commands to replace it.

Please take a look at the post, let me know if you need any of the original 
files from it, or the openocd.
What I would REALLY like to do is know how to get U-Boot to build me a new 
bootloader, if you have accomplished this, please share.  I don't know how to 
edit the board/guruplug.cfg file in the U-Boot source tree to match the 
configuration on the DreamPlug, It always freezes on boot right after detecting 
the DRAM size (and it is incorrect).

My first dump from the original bootloader was using the md command and 
copying it from the terminal window, and using a Perl script, convert that to a 
.bin file.  So I have the original original bootloader, the one offered for 
download is dated 2011-03-28 while the one shipped is dated 2011-03-01, if I 
recall correctly.

--Allan


-Original Message-
From: u-boot-boun...@lists.denx.de on behalf of Jason
Sent: Wed 4/20/2011 7:12 AM
To: u-boot@lists.denx.de
Subject: [U-Boot] DreamPlug bootloader replacement
 
All,

I'm attempting to replace u-boot on the new dreamplug.  This is
different from the guruplug and sheevaplug in that the bootloader is
stored in a 1MB (!) flash connected via SPI.  I was able to dump the
factory u-boot to a file, and it's header looks strikingly similar to
the u-boot.kwb image I used on my guruplug.  However, the first 32 bits,
supposedly the magic number, are different.  Is that important?

Here's the first 0x100 bytes starting at 0x0.

### factory dreamplug image ###
000: 5a 00 00 00 54 49 02 00 00 00 00 00 00 02 00 00
010: 00 00 60 00 00 00 60 00 00 00 00 00 00 00 01 bc
020: 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
040: e0 00 d1 ff 9b 9b 1b 1b 00 14 d0 ff 30 0c 00 43
050: 04 14 d0 ff 00 30 54 37 08 14 d0 ff 51 54 12 22
060: 0c 14 d0 ff 33 0a 00 00 10 14 d0 ff cc 00 00 00
070: 14 14 d0 ff 00 00 00 00 18 14 d0 ff 00 00 00 00
080: 1c 14 d0 ff 52 0c 00 00 20 14 d0 ff 40 00 00 00
090: 24 14 d0 ff 7f f1 00 00 28 14 d0 ff 20 55 08 00
0a0: 7c 14 d0 ff 52 85 00 00 00 15 d0 ff 00 00 00 00
0b0: 04 15 d0 ff f1 ff ff 0f 08 15 d0 ff 00 00 00 10
0c0: 0c 15 d0 ff f5 ff ff 0f 14 15 d0 ff 00 00 00 00
0d0: 1c 15 d0 ff 00 00 00 00 94 14 d0 ff 00 00 03 00
0e0: 98 14 d0 ff 00 00 00 00 9c 14 d0 ff 03 e8 00 00
0f0: 80 14 d0 ff 01 00 00 00 00 00 00 00 00 00 00 00
### end factory dreamplug image ###

And, here's my u-boot.kwb:

### my u-boot.kwb #
000: 8b 00 00 08 58 9d 03 00 00 00 00 00 00 02 00 00
010: 00 00 60 00 00 00 60 00 00 00 00 00 00 00 01 4e
020: 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
040: e0 00 d1 ff 9b 9b 1b 1b 00 14 d0 ff 30 0c 00 43
050: 04 14 d0 ff 00 30 54 37 08 14 d0 ff 51 54 12 22
060: 0c 14 d0 ff 33 0a 00 00 10 14 d0 ff cc 00 00 00
070: 14 14 d0 ff 00 00 00 00 18 14 d0 ff 00 00 00 00
080: 1c 14 d0 ff 52 0c 00 00 20 14 d0 ff 40 00 00 00
090: 24 14 d0 ff 7f f1 00 00 28 14 d0 ff 20 55 08 00
0a0: 7c 14 d0 ff 52 85 00 00 00 15 d0 ff 00 00 00 00
0b0: 04 15 d0 ff f1 ff ff 0f 08 15 d0 ff 00 00 00 10
0c0: 0c 15 d0 ff f5 ff ff 0f 14 15 d0 ff 00 00 00 00
0d0: 1c 15 d0 ff 00 00 00 00 94 14 d0 ff 00 00 03 00
0e0: 98 14 d0 ff 00 00 00 00 9c 14 d0 ff 03 e8 00 00
0f0: 80 14 d0 ff 01 00 00 00 00 00 00 00 00 00 00 00
### end my u-boot.kwb #

Also, before I do a 'sf erase...; sf write...' I'd like to know I can
recover via the jtag, if necessary.  In theory, I should be able to load
the factory image into RAM via jtag, and run it.  Then, use tftpload and
'sf write' to restore the factory bootloader.  What I'm missing is how
to directly burn the spi flash from openocd.  Has anyone done this?  Is
there a config I can reference?

thx,

Jason. 
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH V8 1/6] pxa: move i2c driver to the common place

2011-04-20 Thread Wolfgang Denk
Dear Lei Wen,

In message 1301990460-31029-2-git-send-email-lei...@marvell.com you wrote:
 For better sharing with other platform other than pxa's,
 it is more convenient to put the driver to the common place.
 
 Signed-off-by: Lei Wen lei...@marvell.com
 ---
 Changelog:
 v2: rename previous pxa_i2c to mvi2c.
 
 V3: change previous name from pxa_i2c to mv_i2c
 clean code style issue exist in original code
 
 V4:
 V5:
 V6:
 V7:
 V8:
 NO CHANGE
 
  arch/arm/cpu/pxa/Makefile |1 -
  arch/arm/cpu/pxa/i2c.c|  469 
 -
  drivers/i2c/Makefile  |1 +
  drivers/i2c/mv_i2c.c  |  452 +++
  include/configs/innokom.h |1 +
  include/configs/xm250.h   |1 +
  6 files changed, 455 insertions(+), 470 deletions(-)
  delete mode 100644 arch/arm/cpu/pxa/i2c.c
  create mode 100644 drivers/i2c/mv_i2c.c

I understand that arch/arm/cpu/pxa/i2c.c got renamed into
drivers/i2c/mv_i2c.c ?  Then please make sure this is visible in git
history, i. e. this should be a rename (eventually with
modifications), but not a remove/add.


Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
  Is there a way to determine Yesterday's date using Unix utilities?
 echo what is yesterday's date? | /bin/mail root
 -- Randal L. Schwartz in ukbuh2y982@julie.teleport.com
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH V2] Ethernut 5 board support

2011-04-20 Thread Wolfgang Denk
Dear Harald Kipp,

In message 4d7defb5.7010...@egnite.de you wrote:
 Add support for the Ethernut 5 open hardware design, based
 on Atmel's AT91SAM9XE512 SoC.
 
 Signed-off-by: Harald Kipp harald.k...@egnite.de
 ---
 
 V2:
  - Fix several coding style issues.
  - Remove Ethernet MAC address from default environment.
 
  MAINTAINERS   |3 +
  board/egnite/ethernut5/Makefile   |   54 +
  board/egnite/ethernut5/ethernut5.c|  259 ++
  board/egnite/ethernut5/ethernut5_pwrman.c |  339 
 +
  board/egnite/ethernut5/ethernut5_pwrman.h |   68 ++
  boards.cfg|1 +
  include/configs/ethernut5.h   |  281 
  7 files changed, 1005 insertions(+), 0 deletions(-)
  create mode 100644 board/egnite/ethernut5/Makefile
  create mode 100644 board/egnite/ethernut5/ethernut5.c
  create mode 100644 board/egnite/ethernut5/ethernut5_pwrman.c
  create mode 100644 board/egnite/ethernut5/ethernut5_pwrman.h
  create mode 100644 include/configs/ethernut5.h

Acked-by: Wolfgang Denk w...@denx.de

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
How many seconds are there in a year? If I tell you there are 3.155 x
10^7, you won't even try to remember it. On the other hand, who could
forget that, to within half a percent, pi seconds is  a  nanocentury.
   -- Tom Duff, Bell Labs
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: add xM rev C to ID table

2011-04-20 Thread Jason Kridner
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 board/ti/beagle/beagle.c |   10 ++
 board/ti/beagle/beagle.h |1 +
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index 4e194a2..52a7f93 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -216,6 +216,16 @@ int misc_init_r(void)
TWL4030_PM_RECEIVER_VAUX2_DEV_GRP,
TWL4030_PM_RECEIVER_DEV_GRP_P1);
break;
+   case REVISION_XM_C:
+   printf(Beagle xM Rev C\n);
+   setenv(beaglerev, xMC);
+   MUX_BEAGLE_XM();
+   /* Set VAUX2 to 1.8V for EHCI PHY */
+   twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VAUX2_DEDICATED,
+   TWL4030_PM_RECEIVER_VAUX2_VSEL_18,
+   TWL4030_PM_RECEIVER_VAUX2_DEV_GRP,
+   TWL4030_PM_RECEIVER_DEV_GRP_P1);
+   break;
default:
printf(Beagle unknown 0x%02x\n, get_board_revision());
MUX_BEAGLE_XM();
diff --git a/board/ti/beagle/beagle.h b/board/ti/beagle/beagle.h
index a7401b1..04247cd 100644
--- a/board/ti/beagle/beagle.h
+++ b/board/ti/beagle/beagle.h
@@ -39,6 +39,7 @@ const omap3_sysinfo sysinfo = {
 #define REVISION_C40x5
 #define REVISION_XM_A  0x0
 #define REVISION_XM_B  0x1
+#define REVISION_XM_C  0x2
 
 /*
  * IEN  - Input Enable
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: fix LED 0/1 in driver

2011-04-20 Thread Jason Kridner
Fixed USR0/USR1 to be LED 0/1 respectively

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 board/ti/beagle/led.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/ti/beagle/led.c b/board/ti/beagle/led.c
index df26552..fe80e19 100644
--- a/board/ti/beagle/led.c
+++ b/board/ti/beagle/led.c
@@ -27,8 +27,8 @@
 static unsigned int saved_state[2] = {STATUS_LED_OFF, STATUS_LED_OFF};
 
 /* GPIO pins for the LEDs */
-#define BEAGLE_LED_USR0149
-#define BEAGLE_LED_USR1150
+#define BEAGLE_LED_USR0150
+#define BEAGLE_LED_USR1149
 
 #ifdef STATUS_LED_GREEN
 void green_LED_off (void)
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] Corrected LED name match finding

2011-04-20 Thread Jason Kridner
This avoids some extraneous Usage printouts.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 common/cmd_led.c |5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/common/cmd_led.c b/common/cmd_led.c
index f1e8a62..988157b 100644
--- a/common/cmd_led.c
+++ b/common/cmd_led.c
@@ -83,7 +83,7 @@ int str_onoff (char *var)
 
 int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
-   int state, i;
+   int state, i, match = 0;
 
/* Validate arguments */
if ((argc != 3)) {
@@ -98,6 +98,7 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * 
const argv[])
for (i = 0; led_commands[i].string; i++) {
if ((strcmp(all, argv[1]) == 0) || 
(strcmp(led_commands[i].string, argv[1]) == 0)) {
+   match = 1;
if (led_commands[i].on) {
if (state) {
led_commands[i].on();
@@ -112,7 +113,7 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * 
const argv[])
}
 
/* If we ran out of matches, print Usage */
-   if (!led_commands[i].string  !(strcmp(all, argv[1]) == 0)) {
+   if (!match) {
return cmd_usage(cmdtp);
}
 
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] led: correct off/on locations in structure

2011-04-20 Thread Jason Kridner
Although the initialization should probably be done with names, the
existing implementation has these structures filled in the opposite
order.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 common/cmd_led.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/cmd_led.c b/common/cmd_led.c
index 988157b..ad0fd0f 100644
--- a/common/cmd_led.c
+++ b/common/cmd_led.c
@@ -34,8 +34,8 @@
 struct led_tbl_s {
char*string;/* String for use in the command */
led_id_tmask;   /* Mask used for calling __led_set() */
-   void(*on)(void);/* Optional fucntion for turning LED on 
*/
-   void(*off)(void);   /* Optional fucntion for turning LED on 
*/
+   void(*off)(void);   /* Optional function for turning LED on 
*/
+   void(*on)(void);/* Optional function for turning LED on 
*/
 };
 
 typedef struct led_tbl_s led_tbl_t;
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: config: Remove omapfb.debug=y from Beagle and Overo env settings

2011-04-20 Thread Jason Kridner
From: Steve Sakoman st...@sakoman.com

The kernel DSS2 code is mature now, and keeping this setting hurts performance

Signed-off-by: Steve Sakoman st...@sakoman.com
(cherry picked from commit 0588da9057fddb5f6a6a04aedd7e0a79eb39e9e5)
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
This patch is only rebased and is just being represented for inclusion on top 
of u-boot-ti.
---
 include/configs/omap3_beagle.h |2 --
 include/configs/omap3_overo.h  |2 --
 2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index b4cbb06..8af2f7a 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -222,7 +222,6 @@
mpurate=${mpurate}  \
vram=${vram}  \
omapfb.mode=dvi:${dvimode}  \
-   omapfb.debug=y  \
omapdss.def_disp=${defaultdisplay}  \
root=${mmcroot}  \
rootfstype=${mmcrootfstype}\0 \
@@ -230,7 +229,6 @@
mpurate=${mpurate}  \
vram=${vram}  \
omapfb.mode=dvi:${dvimode}  \
-   omapfb.debug=y  \
omapdss.def_disp=${defaultdisplay}  \
root=${nandroot}  \
rootfstype=${nandrootfstype}\0 \
diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h
index 1b3d439..06a28f6 100644
--- a/include/configs/omap3_overo.h
+++ b/include/configs/omap3_overo.h
@@ -169,7 +169,6 @@
mpurate=${mpurate}  \
vram=${vram}  \
omapfb.mode=dvi:${dvimode}  \
-   omapfb.debug=y  \
omapdss.def_disp=${defaultdisplay}  \
root=${mmcroot}  \
rootfstype=${mmcrootfstype}\0 \
@@ -177,7 +176,6 @@
mpurate=${mpurate}  \
vram=${vram}  \
omapfb.mode=dvi:${dvimode}  \
-   omapfb.debug=y  \
omapdss.def_disp=${defaultdisplay}  \
root=${nandroot}  \
rootfstype=${nandrootfstype}\0 \
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: config: reduce BOOTDELAY to 3

2011-04-20 Thread Jason Kridner
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 include/configs/omap3_beagle.h |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index 8af2f7a..06c1ce3 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -203,7 +203,7 @@
/* partition */
 
 /* Environment information */
-#define CONFIG_BOOTDELAY   10
+#define CONFIG_BOOTDELAY   3
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
loadaddr=0x8200\0 \
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: config: increase command-line functionality

2011-04-20 Thread Jason Kridner
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 include/configs/omap3_beagle.h |5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index 17d4356..49bfaa4 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -157,6 +157,7 @@
 #define CONFIG_USB_STORAGE /* USB storage support  */
 #define CONFIG_CMD_NAND/* NAND support */
 #define CONFIG_CMD_LED /* LED support  */
+#define CONFIG_CMD_SETEXPR /* Evaluate expressions */
 
 #undef CONFIG_CMD_FLASH/* flinfo, erase, protect   */
 #undef CONFIG_CMD_FPGA /* FPGA configuration Support   */
@@ -268,11 +269,11 @@
 #define CONFIG_SYS_HUSH_PARSER /* use hush command parser */
 #define CONFIG_SYS_PROMPT_HUSH_PS2  
 #define CONFIG_SYS_PROMPT  OMAP3 beagleboard.org # 
-#define CONFIG_SYS_CBSIZE  256 /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE  512 /* Console I/O Buffer Size */
 /* Print Buffer Size */
 #define CONFIG_SYS_PBSIZE  (CONFIG_SYS_CBSIZE + \
sizeof(CONFIG_SYS_PROMPT) + 16)
-#define CONFIG_SYS_MAXARGS 16  /* max number of command args */
+#define CONFIG_SYS_MAXARGS 32  /* max number of command args */
 /* Boot Argument Buffer Size */
 #define CONFIG_SYS_BARGSIZE(CONFIG_SYS_CBSIZE)
 
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: config: add optargs/buddy/camera

2011-04-20 Thread Jason Kridner
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 include/configs/omap3_beagle.h |9 +
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index e2f7dd0..71e41f8 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -211,6 +211,9 @@
usbtty=cdc_acm\0 \
console=ttyO2,115200n8\0 \
mpurate=auto\0 \
+   buddy=none \
+   optargs=\0 \
+   camera=lbcm3m1\0 \
vram=12M\0 \
dvimode=640x480MR-16@60\0 \
defaultdisplay=dvi\0 \
@@ -220,14 +223,20 @@
nandroot=/dev/mtdblock4 rw\0 \
nandrootfstype=jffs2\0 \
mmcargs=setenv bootargs console=${console}  \
+   ${optargs}  \
mpurate=${mpurate}  \
+   buddy=${buddy} \
+   camera=${camera} \
vram=${vram}  \
omapfb.mode=dvi:${dvimode}  \
omapdss.def_disp=${defaultdisplay}  \
root=${mmcroot}  \
rootfstype=${mmcrootfstype}\0 \
nandargs=setenv bootargs console=${console}  \
+   ${optargs}  \
mpurate=${mpurate}  \
+   buddy=${buddy} \
+   camera=${camera} \
vram=${vram}  \
omapfb.mode=dvi:${dvimode}  \
omapdss.def_disp=${defaultdisplay}  \
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: config: use the USERBUTTON command

2011-04-20 Thread Jason Kridner
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 include/configs/omap3_beagle.h |7 ++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index c29baf5..a946b0e 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -256,7 +256,8 @@
root=${ramroot}  \
rootfstype=${ramrootfstype}\0 \
loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz\0 \
-   loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt\0 \
+   bootenv=uEnv.txt\0 \
+   loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0 \
importbootenv=echo Importing environment from mmc ...;  \
env import -t $loadaddr $filesize\0 \
loaduimagefat=fatload mmc ${mmcdev} ${loadaddr} uImage\0 \
@@ -274,8 +275,12 @@
 
 #define CONFIG_BOOTCOMMAND \
if mmc rescan ${mmcdev}; then  \
+   if userbutton; then  \
+   setenv bootenv user.txt; \
+   fi; \
echo SD/MMC found on device ${mmcdev}; \
if run loadbootenv; then  \
+   echo Loaded environment from ${bootenv}; \
run importbootenv; \
fi; \
if test -n $uenvcmd; then  \
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] video: DSS makefile update

2011-04-20 Thread Jason Kridner
Adding the OMAP3 DSS video driver to the Makefile.  The patch applied to
u-boot-ti didn't include this for some reason.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 drivers/video/Makefile |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index 2c53a6f..6baa7ca 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -41,6 +41,8 @@ COBJS-$(CONFIG_SED156X) += sed156x.o
 COBJS-$(CONFIG_VIDEO_SM501) += sm501.o
 COBJS-$(CONFIG_VIDEO_SMI_LYNXEM) += smiLynxEM.o videomodes.o
 COBJS-$(CONFIG_VIDEO_VCXK) += bus_vcxk.o
+COBJS-$(CONFIG_VIDEO_OMAP3) += omap3_dss.o
+COBJS-y += videomodes.o
 
 COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v3] OMAP3: Add DSS driver for OMAP3

2011-04-20 Thread Jason Kridner
From: Syed Mohammed Khasim kha...@ti.com

Supports dynamic panel configuration
Supports dynamic tv standard selection
Adds support for DSS register access through generic APIs

Incorporated DSS register access using structures.

Previous discussions are here
http://www.mail-archive.com/u-boot@lists.denx.de/msg27150.html
---
v2 updates:
  * Enable panel output for BeagleBoard
  * BeagleBoard: Update DVI-D orange screen frequencies for xM

v3 updates:
  * Remove non-platform (OMAP3) updates

Signed-off-by: Syed Mohammed Khasim kha...@ti.com
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 arch/arm/include/asm/arch-omap3/dss.h |  173 +
 drivers/video/omap3_dss.c |  130 +
 2 files changed, 303 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/include/asm/arch-omap3/dss.h
 create mode 100644 drivers/video/omap3_dss.c

diff --git a/arch/arm/include/asm/arch-omap3/dss.h 
b/arch/arm/include/asm/arch-omap3/dss.h
new file mode 100644
index 000..e5e3b0d
--- /dev/null
+++ b/arch/arm/include/asm/arch-omap3/dss.h
@@ -0,0 +1,173 @@
+/*
+ * (C) Copyright 2010
+ * Texas Instruments, www.ti.com
+ * Syed Mohammed Khasim kha...@ti.com
+ *
+ * Referred to Linux DSS driver files for OMAP3
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation's version 2 of
+ * the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef DSS_H
+#define DSS_H
+
+/*
+ * DSS Base Registers
+ */
+#define OMAP3_DSS_BASE 0x48050040
+#define OMAP3_DISPC_BASE   0x48050440
+#define OMAP3_VENC_BASE0x48050C00
+
+/* DSS Registers */
+struct dss_regs {
+   u32 control;/* 0x40 */
+   u32 sdi_control;/* 0x44 */
+   u32 pll_control;/* 0x48 */
+};
+
+/* DISPC Registers */
+struct dispc_regs {
+   u32 control;/* 0x40 */
+   u32 config; /* 0x44 */
+   u32 reserve_2;  /* 0x48 */
+   u32 default_color0; /* 0x4C */
+   u32 default_color1; /* 0x50 */
+   u32 trans_color0;   /* 0x54 */
+   u32 trans_color1;   /* 0x58 */
+   u32 line_status;/* 0x5C */
+   u32 line_number;/* 0x60 */
+   u32 timing_h;   /* 0x64 */
+   u32 timing_v;   /* 0x68 */
+   u32 pol_freq;   /* 0x6C */
+   u32 divisor;/* 0x70 */
+   u32 global_alpha;   /* 0x74 */
+   u32 size_dig;   /* 0x78 */
+   u32 size_lcd;   /* 0x7C */
+};
+
+/* VENC Registers */
+struct venc_regs {
+   u32 rev_id; /* 0x00 */
+   u32 status; /* 0x04 */
+   u32 f_control;  /* 0x08 */
+   u32 reserve_1;  /* 0x0C */
+   u32 vidout_ctrl;/* 0x10 */
+   u32 sync_ctrl;  /* 0x14 */
+   u32 reserve_2;  /* 0x18 */
+   u32 llen;   /* 0x1C */
+   u32 flens;  /* 0x20 */
+   u32 hfltr_ctrl; /* 0x24 */
+   u32 cc_carr_wss_carr;   /* 0x28 */
+   u32 c_phase;/* 0x2C */
+   u32 gain_u; /* 0x30 */
+   u32 gain_v; /* 0x34 */
+   u32 gain_y; /* 0x38 */
+   u32 black_level;/* 0x3C */
+   u32 blank_level;/* 0x40 */
+   u32 x_color;/* 0x44 */
+   u32 m_control;  /* 0x48 */
+   u32 bstamp_wss_data;/* 0x4C */
+   u32 s_carr; /* 0x50 */
+   u32 line21; /* 0x54 */
+   u32 ln_sel; /* 0x58 */
+   u32 l21__wc_ctl;/* 0x5C */
+   u32 htrigger_vtrigger;  /* 0x60 */
+   

[U-Boot] [PATCH v3] USB: Remove __attribute__ ((packed)) for struct ehci_hccr and ehci_hcor

2011-04-20 Thread Jason Kridner
Remove __attribute__ ((packed)) to prevent byte access to soc
registers in some gcc versions.

Having patches to enable ehci for the BeagleBoard lying around for
several month, this one was the show-stopper.

Credits have to go to Laine Walker-Avina lwalk...@ieee.org for
finding the problem.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
Cc: Alexander Holler hol...@ahsoftware.de
Cc: Sandeep Paulraj s-paul...@ti.com
---
Changes for v2:
* Original and v2 were provided by Alexander Holler.
* v1 was http://patchwork.ozlabs.org/patch/89358/
* v2 was http://patchwork.ozlabs.org/patch/89362/

Changes for v3:
* Switched to align(4), rather than remove the attribute, per suggestion
  from Alexander.
---
 drivers/usb/host/ehci.h |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 945ab64..3d0ad0c 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -55,7 +55,7 @@ struct ehci_hccr {
 #define HCS_N_PORTS(p) (((p)  0)  0xf)
uint32_t cr_hccparams;
uint8_t cr_hcsp_portrt[8];
-} __attribute__ ((packed));
+} __attribute__ ((packed, aligned(4)));
 
 struct ehci_hcor {
uint32_t or_usbcmd;
@@ -85,7 +85,7 @@ struct ehci_hcor {
 #define FLAG_CF(1  0)/* true:  we'll support high 
speed */
uint32_t or_portsc[CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS];
uint32_t or_systune;
-} __attribute__ ((packed));
+} __attribute__ ((packed, aligned(4)));
 
 #define USBMODE0x68/* USB Device mode */
 #define USBMODE_SDIS   (1  3)/* Stream disable */
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] TWL4030/BeagleBoard: Added hub power enable

2011-04-20 Thread Jason Kridner
This is an attempt to get the EHCI port working on the BeagleBoard-xM,
but it is not working for me.  It hangs when I do 'usb start'.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 board/ti/beagle/beagle.c   |   15 +++
 drivers/misc/twl4030_led.c |6 +-
 include/twl4030.h  |1 +
 3 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index 69fe162..4a778b8 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -400,6 +400,21 @@ int ehci_hcd_init(void)
 {
pr_debug(Initializing OMAP3 ECHI\n);
 
+   /* Enable power to the USB hub */
+   switch (get_board_revision()) {
+   case REVISION_XM_A:
+   case REVISION_XM_B:
+   twl4030_led_set(TWL4030_LED_LEDEN_LEDAON | 
TWL4030_LED_LEDEN_LEDBON);
+   break;
+   case REVISION_AXBX:
+   case REVISION_CX:
+   case REVISION_C4:
+   case REVISION_XM_C:
+   default:
+   twl4030_led_set(TWL4030_LED_LEDEN_LEDBON);
+   break;
+   }
+
/* Put the PHY in RESET */
omap_request_gpio(GPIO_PHY_RESET);
omap_set_gpio_direction(GPIO_PHY_RESET, 0);
diff --git a/drivers/misc/twl4030_led.c b/drivers/misc/twl4030_led.c
index 33cea11..8a02e8b 100644
--- a/drivers/misc/twl4030_led.c
+++ b/drivers/misc/twl4030_led.c
@@ -42,7 +42,11 @@ void twl4030_led_init(unsigned char ledon_mask)
if (ledon_mask  TWL4030_LED_LEDEN_LEDBON)
ledon_mask |= TWL4030_LED_LEDEN_LEDBPWM;
 
+   twl4030_led_set(ledon_mask);
+}
+
+void twl4030_led_set(unsigned char ledon_mask)
+{
twl4030_i2c_write_u8(TWL4030_CHIP_LED, ledon_mask,
 TWL4030_LED_LEDEN);
-
 }
diff --git a/include/twl4030.h b/include/twl4030.h
index 930c285..60d6d2b 100644
--- a/include/twl4030.h
+++ b/include/twl4030.h
@@ -523,6 +523,7 @@ void twl4030_power_mmc_init(void);
  * LED
  */
 void twl4030_led_init(unsigned char ledon_mask);
+void twl4030_led_set(unsigned char ledon_mask);
 
 /*
  * USB
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] led: loop through all leds

2011-04-20 Thread Jason Kridner
'led all on|off' requires this patch.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 common/cmd_led.c |1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/common/cmd_led.c b/common/cmd_led.c
index 90cf043..ab85dc6 100644
--- a/common/cmd_led.c
+++ b/common/cmd_led.c
@@ -108,7 +108,6 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * 
const argv[])
} else {
__led_set(led_commands[i].mask, state);
}
-   break;
}
}
 
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: fixed typo in typecast

2011-04-20 Thread Jason Kridner
Without this patch, you should get a warning.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 board/ti/beagle/beagle.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index 52a7f93..c0cab9e 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -171,7 +171,7 @@ int misc_init_r(void)
 {
struct gpio *gpio5_base = (struct gpio *)OMAP34XX_GPIO5_BASE;
struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_BASE;
-   struct control_prog_io *prog_io_base = (struct gpio 
*)OMAP34XX_CTRL_BASE;
+   struct control_prog_io *prog_io_base = (struct control_prog_io 
*)OMAP34XX_CTRL_BASE;
 
/* Enable i2c2 pullup resisters */
writel(~(PRG_I2C2_PULLUPRESX), prog_io_base-io1);
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: config: make mtest run

2011-04-20 Thread Jason Kridner
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 include/configs/omap3_beagle.h |9 +
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index ade6225..17d4356 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -276,10 +276,11 @@
 /* Boot Argument Buffer Size */
 #define CONFIG_SYS_BARGSIZE(CONFIG_SYS_CBSIZE)
 
-#define CONFIG_SYS_MEMTEST_START   (OMAP34XX_SDRC_CS0) /* memtest */
-   /* works on */
-#define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \
-   0x01F0) /* 31MB */
+#define CONFIG_SYS_ALT_MEMTEST 1
+#define CONFIG_SYS_MEMTEST_START   (0x8200)/* memtest */
+   /* defaults */
+#define CONFIG_SYS_MEMTEST_END (0x87FF)/* 128MB */
+#define CONFIG_SYS_MEMTEST_SCRATCH (0x8100)/* dummy address */
 
 #define CONFIG_SYS_LOAD_ADDR   (OMAP34XX_SDRC_CS0) /* default */
/* load address */
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2] BeagleBoard: Added userbutton command

2011-04-20 Thread Jason Kridner
Based on commit f1099c7c43caf5bac3bf6a65aa266fade4747072
Author: Greg Turner gregtur...@ti.com
Date:   Tue May 25 09:19:06 2010 -0500

New u-boot command for status of USER button on BeagleBoard-xM

 Modified bootcmd to check the staus at boot time and set
 filename of the boot script.

* Moved to a BeagleBoard specific file.
* Removed changes to default boot command from adding userbutton
  command.
* Made to handle pre-xM boards.
* Flipped polarity of the return value to avoid confusion.  Success (0)
  is when the button is pressed.  Failure (1) is when the button is NOT
  pressed.
* Used latest revision getting function.
* Used latest macros for board revision.
--
v2 update:
* Added xM-C revision definition (optional, since it was default)

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 board/ti/beagle/beagle.c |   56 ++
 1 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index 7768901..2e27aef 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -50,6 +50,7 @@ extern struct ehci_hccr *hccr;
 extern volatile struct ehci_hcor *hcor;
 #endif
 #include beagle.h
+#include command.h
 
 #define pr_debug(fmt, args...) debug(fmt, ##args)
 
@@ -440,3 +441,58 @@ int ehci_hcd_init(void)
 }
 
 #endif /* CONFIG_USB_EHCI */
+
+/*
+ * This command returns the status of the user button on beagle xM
+ * Input - none
+ * Returns -   1 if button is held down
+ * 0 if button is not held down
+ */
+int do_userbutton (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+{
+   int button = 0;
+   int gpio;
+
+   /*
+* pass address parameter as argv[0] (aka command name),
+* and all remaining args
+*/
+   switch (get_board_revision()) {
+   case REVISION_AXBX:
+   case REVISION_CX:
+   case REVISION_C4:
+   gpio = 7;
+   break;
+   case REVISION_XM_A:
+   case REVISION_XM_B:
+   case REVISION_XM_C:
+   default:
+   gpio = 4;
+   break;
+   }
+   omap_request_gpio(gpio);
+   omap_set_gpio_direction(gpio, 1);
+   printf(The user button is currently );
+   if(omap_get_gpio_datain(gpio))
+   {
+   button = 1;
+   printf(PRESSED.\n);
+   }
+   else
+   {
+   button = 0;
+   printf(NOT pressed.\n);
+   }
+
+   omap_free_gpio(gpio);
+
+   return !button;
+}
+
+/*  */
+
+U_BOOT_CMD(
+   userbutton, CONFIG_SYS_MAXARGS, 1,  do_userbutton,
+   Return the status of the BeagleBoard USER button,
+   
+);
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: Pin mux initialization glitch fix

2011-04-20 Thread Jason Kridner
From: Bob Feretich bob.feret...@rafresearch.com

The below patch reverses the order of two segments in the board file.
Output pins need to have their values initialized, before they are
exposed to the logic outside the chip.

Signed-off-by: Bob Feretich bob.feret...@rafresearch.com
Cc: Wolfgang Denk w...@denx.de
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
This patch isn't updated, it is just represented for inclusion on top
of u-boot-ti.
---
 board/ti/beagle/beagle.c |   12 ++--
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index c0cab9e..7768901 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -311,17 +311,17 @@ int misc_init_r(void)
twl4030_power_init();
twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON);
 
-   /* Configure GPIOs to output */
-   writel(~(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1), gpio6_base-oe);
-   writel(~(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 |
-   GPIO15 | GPIO14 | GPIO13 | GPIO12), gpio5_base-oe);
-
-   /* Set GPIOs */
+   /* Set GPIO states before they are made outputs */
writel(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1,
gpio6_base-setdataout);
writel(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 |
GPIO15 | GPIO14 | GPIO13 | GPIO12, gpio5_base-setdataout);
 
+   /* Configure GPIOs to output */
+   writel(~(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1), gpio6_base-oe);
+   writel(~(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 |
+   GPIO15 | GPIO14 | GPIO13 | GPIO12), gpio5_base-oe);
+
dieid_num_r();
 
return 0;
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: Configure DVI/S-video

2011-04-20 Thread Jason Kridner
Based on patches from Syed Mohammed Khasim (kha...@ti.com).

Configures the output of the BeagleBoard DVI to be orange.
Configures the output of the BeagleBoard S-Video to be a colorbar.
---
Updates for this version
* Rebased on u-boot-ti.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 board/ti/beagle/beagle.c |   24 +
 board/ti/beagle/beagle.h |   86 ++
 2 files changed, 110 insertions(+), 0 deletions(-)

diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index 2e27aef..69fe162 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -165,6 +165,28 @@ unsigned int get_expansion_id(void)
 }
 
 /*
+ * Configure DSS to display background color on DVID
+ * Configure VENC to display color bar on S-Video
+ */
+void display_init(void)
+{
+   omap3_dss_venc_config(venc_config_std_tv, VENC_HEIGHT, VENC_WIDTH);
+   switch (get_board_revision()) {
+   case REVISION_AXBX:
+   case REVISION_CX:
+   case REVISION_C4:
+   omap3_dss_panel_config(dvid_cfg);
+   break;
+   case REVISION_XM_A:
+   case REVISION_XM_B:
+   case REVISION_XM_C:
+   default:
+   omap3_dss_panel_config(dvid_cfg_xm);
+   break;
+   }
+}
+
+/*
  * Routine: misc_init_r
  * Description: Configure board specific parts
  */
@@ -311,6 +333,7 @@ int misc_init_r(void)
 
twl4030_power_init();
twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON);
+   display_init();
 
/* Set GPIO states before they are made outputs */
writel(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1,
@@ -324,6 +347,7 @@ int misc_init_r(void)
GPIO15 | GPIO14 | GPIO13 | GPIO12), gpio5_base-oe);
 
dieid_num_r();
+   omap3_dss_enable();
 
return 0;
 }
diff --git a/board/ti/beagle/beagle.h b/board/ti/beagle/beagle.h
index 04247cd..18bfaa8 100644
--- a/board/ti/beagle/beagle.h
+++ b/board/ti/beagle/beagle.h
@@ -23,6 +23,8 @@
 #ifndef _BEAGLE_H_
 #define _BEAGLE_H_
 
+#include asm/arch/dss.h
+
 const omap3_sysinfo sysinfo = {
DDR_STACKED,
OMAP3 Beagle board,
@@ -472,4 +474,88 @@ const omap3_sysinfo sysinfo = {
MUX_VAL(CP(MMC2_DAT6),  (IDIS | PTU | EN  | M4)) /*GPIO_138 BT_EN*/\
MUX_VAL(CP(MMC2_DAT7),  (IDIS | PTU | EN  | M4)) /*GPIO_139 
WLAN_EN*/
 
+/*
+ * Display Configuration
+ */
+
+#define DVI_BEAGLE_ORANGE_COL  0x00FF8000
+#define VENC_HEIGHT0x00ef
+#define VENC_WIDTH 0x027f
+
+/*
+ * Configure VENC in DSS for Beagle to generate Color Bar
+ *
+ * Kindly refer to OMAP TRM for definition of these values.
+ */
+static const struct venc_regs venc_config_std_tv = {
+   .status = 0x001B,
+   .f_control  = 0x0040,
+   .vidout_ctrl= 0x,
+   .sync_ctrl  = 0x8000,
+   .llen   = 0x8359,
+   .flens  = 0x020C,
+   .hfltr_ctrl = 0x,
+   .cc_carr_wss_carr   = 0x043F2631,
+   .c_phase= 0x0024,
+   .gain_u = 0x0130,
+   .gain_v = 0x0198,
+   .gain_y = 0x01C0,
+   .black_level= 0x006A,
+   .blank_level= 0x005C,
+   .x_color= 0x,
+   .m_control  = 0x0001,
+   .bstamp_wss_data= 0x003F,
+   .s_carr = 0x21F07C1F,
+   .line21 = 0x,
+   .ln_sel = 0x0015,
+   .l21__wc_ctl= 0x1400,
+   .htrigger_vtrigger  = 0x,
+   .savid__eavid   = 0x069300F4,
+   .flen__fal  = 0x0016020C,
+   .lal__phase_reset   = 0x00060107,
+   .hs_int_start_stop_x= 0x008D034E,
+   .hs_ext_start_stop_x= 0x000F0359,
+   .vs_int_start_x = 0x01A0,
+   .vs_int_stop_x__vs_int_start_y  = 0x020501A0,
+   .vs_int_stop_y__vs_ext_start_x  = 0x01AC0024,
+   .vs_ext_stop_x__vs_ext_start_y  = 0x020D01AC,
+   .vs_ext_stop_y  = 0x0006,
+   .avid_start_stop_x  = 0x03480079,
+   .avid_start_stop_y  = 0x02040024,
+   .fid_int_start_x__fid_int_start_y   = 0x0001008A,
+   .fid_int_offset_y__fid_ext_start_x  = 

[U-Boot] [PATCH] BeagleBoard: config: change default resolution to VGA

2011-04-20 Thread Jason Kridner
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 include/configs/omap3_beagle.h |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index 06c1ce3..9ee1664 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -211,7 +211,7 @@
console=ttyO2,115200n8\0 \
mpurate=auto\0 \
vram=12M\0 \
-   dvimode=1024x768MR-16@60\0 \
+   dvimode=640x480MR-16@60\0 \
defaultdisplay=dvi\0 \
mmcdev=0\0 \
mmcroot=/dev/mmcblk0p2 rw\0 \
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] led: remove trailing whitespace

2011-04-20 Thread Jason Kridner
Required to meet style requirements.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 common/cmd_led.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/cmd_led.c b/common/cmd_led.c
index ad0fd0f..90cf043 100644
--- a/common/cmd_led.c
+++ b/common/cmd_led.c
@@ -96,7 +96,7 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * 
const argv[])
}
 
for (i = 0; led_commands[i].string; i++) {
-   if ((strcmp(all, argv[1]) == 0) || 
+   if ((strcmp(all, argv[1]) == 0) ||
(strcmp(led_commands[i].string, argv[1]) == 0)) {
match = 1;
if (led_commands[i].on) {
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] led: added cmd_led to Makefile

2011-04-20 Thread Jason Kridner
Addition of cmd_led into the Makefile wasn't included in the patch
applied to u-boot-ti.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 common/Makefile |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/common/Makefile b/common/Makefile
index 4555716..1aaa5fa 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -106,6 +106,7 @@ COBJS-$(CONFIG_CMD_ITEST) += cmd_itest.o
 COBJS-$(CONFIG_CMD_JFFS2) += cmd_jffs2.o
 COBJS-$(CONFIG_CMD_CRAMFS) += cmd_cramfs.o
 COBJS-$(CONFIG_CMD_LDRINFO) += cmd_ldrinfo.o
+COBJS-$(CONFIG_CMD_LED) += cmd_led.o
 COBJS-$(CONFIG_CMD_LICENSE) += cmd_license.o
 COBJS-y += cmd_load.o
 COBJS-$(CONFIG_LOGBUFFER) += cmd_log.o
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: config: don't suck in blank line

2011-04-20 Thread Jason Kridner
To prevent a blank line from being critical.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 include/configs/omap3_beagle.h |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index 9ee1664..ade6225 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -258,7 +258,7 @@
run mmcboot; \
fi; \
fi; \
-   run nandboot; \
+   run nandboot;
 
 #define CONFIG_AUTO_COMPLETE   1
 /*
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard updates rebased on u-boot-ti and debugged

2011-04-20 Thread Jason Kridner
This brings in some fixes and some patches currently maintained out-of-tree for 
the
BeagleBoard.  It seems for some things, some old code got applied, so I've 
given updates
here.  I've broken up the patches into small bits to be accepted/rejected on 
the hopes of
trying to get as much in as possible.

The USB patches placed in u-boot-ti aren't working for me, but this brings in 
some known
required patches.

Alexander Holler (1):
  BeagleBoard: config: Switch default console from ttyS2 to ttyO2

Bob Feretich (1):
  BeagleBoard: Pin mux initialization glitch fix

Jason Kridner (24):
  BeagleBoard: add xM rev C to ID table
  BeagleBoard: Fixed typo in typecast
  Corrected LED name match finding avoiding extraneous Usage printouts
  BeagleBoard: fix LED 0/1 in driver
  led: added cmd_led to Makefile
  led: correct off/on locations in structure
  led: remove trailing whitespace
  led: loop through all leds
  led: fixup help/usage
  BeagleBoard: config: reduce BOOTDELAY to 3
  BeagleBoard: config: change default resolution to VGA
  BeagleBoard: config: don't suck in blank line
  BeagleBoard: config: make mtest run
  BeagleBoard: config: increase command-line functionality
  BeagleBoard: config: load kernel via MMC ext2
  BeagleBoard: config: add optargs/buddy/camera
  BeagleBoard: config: add ramboot
  BeagleBoard: Added userbutton command
  BeagleBoard: config: use the USERBUTTON command
  video: DSS makefile update
  BeagleBoard: config: enable DSS
  BeagleBoard: Configure DVI/S-video
  USB: Remove __attribute__ ((packed)) for struct ehci_hccr and
ehci_hcor
  TWL4030/BeagleBoard: Added hub power enable

Steve Sakoman (1):
  BeagleBoard: config: Remove omapfb.debug=y from Beagle and Overo env
settings

Syed Mohammed Khasim (1):
  OMAP3: Add DSS driver for OMAP3

 arch/arm/include/asm/arch-omap3/dss.h |  173 +
 board/ti/beagle/beagle.c  |  119 +--
 board/ti/beagle/beagle.h  |   87 +
 board/ti/beagle/led.c |4 +-
 common/Makefile   |1 +
 common/cmd_led.c  |   18 ++--
 drivers/misc/twl4030_led.c|6 +-
 drivers/usb/host/ehci.h   |4 +-
 drivers/video/Makefile|2 +
 drivers/video/omap3_dss.c |  130 +
 include/configs/omap3_beagle.h|   63 +---
 include/configs/omap3_overo.h |2 -
 include/twl4030.h |1 +
 13 files changed, 572 insertions(+), 38 deletions(-)
 create mode 100644 arch/arm/include/asm/arch-omap3/dss.h
 create mode 100644 drivers/video/omap3_dss.c

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] led: fixup help/usage

2011-04-20 Thread Jason Kridner
Placed a description inside the right field without usage information
and eliminated redundant usage information.

Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 common/cmd_led.c |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/cmd_led.c b/common/cmd_led.c
index ab85dc6..848d38d 100644
--- a/common/cmd_led.c
+++ b/common/cmd_led.c
@@ -121,7 +121,8 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * 
const argv[])
 
 U_BOOT_CMD(
led, 3, 1, do_led,
-   led\t- [
+   set or clear leds,
+   [
 #ifdef CONFIG_BOARD_SPECIFIC_LED
 #ifdef STATUS_LED_BIT
0|
@@ -148,6 +149,5 @@ U_BOOT_CMD(
 #ifdef STATUS_LED_BLUE
blue|
 #endif
-   all] [on|off]\n,
-   led [led_name] [on|off] sets or clears led(s)\n
+   all] [on|off] sets or clears led(s)
 );
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: config: Switch default console from ttyS2 to ttyO2

2011-04-20 Thread Jason Kridner
From: Alexander Holler hol...@ahsoftware.de

Linux kernels = 2.6.36 are using ttyOn instead ttySn for the
serials on OMAPs.

Signed-off-by: Alexander Holler hol...@ahsoftware.de
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
This patch isn't updated, it is just represented for inclusion on top of
u-boot-ti.
---
 include/configs/omap3_beagle.h |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index 5191d14..b4cbb06 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -208,7 +208,7 @@
 #define CONFIG_EXTRA_ENV_SETTINGS \
loadaddr=0x8200\0 \
usbtty=cdc_acm\0 \
-   console=ttyS2,115200n8\0 \
+   console=ttyO2,115200n8\0 \
mpurate=auto\0 \
vram=12M\0 \
dvimode=1024x768MR-16@60\0 \
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: config: add ramboot

2011-04-20 Thread Jason Kridner
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 include/configs/omap3_beagle.h |   19 ++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index 71e41f8..c29baf5 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -207,7 +207,8 @@
 #define CONFIG_BOOTDELAY   3
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
-   loadaddr=0x8200\0 \
+   loadaddr=0x8020\0 \
+   rdaddr=0x8100\0 \
usbtty=cdc_acm\0 \
console=ttyO2,115200n8\0 \
mpurate=auto\0 \
@@ -222,6 +223,8 @@
mmcrootfstype=ext3 rootwait\0 \
nandroot=/dev/mtdblock4 rw\0 \
nandrootfstype=jffs2\0 \
+   ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=0x8100,64M\0 \
+   ramrootfstype=ext2\0 \
mmcargs=setenv bootargs console=${console}  \
${optargs}  \
mpurate=${mpurate}  \
@@ -242,6 +245,17 @@
omapdss.def_disp=${defaultdisplay}  \
root=${nandroot}  \
rootfstype=${nandrootfstype}\0 \
+   ramargs=setenv bootargs console=${console}  \
+   ${optargs}  \
+   mpurate=${mpurate}  \
+   buddy=${buddy} \
+   camera=${camera} \
+   vram=${vram}  \
+   omapfb.mode=dvi:${dvimode}  \
+   omapdss.def_disp=${defaultdisplay}  \
+   root=${ramroot}  \
+   rootfstype=${ramrootfstype}\0 \
+   loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz\0 \
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt\0 \
importbootenv=echo Importing environment from mmc ...;  \
env import -t $loadaddr $filesize\0 \
@@ -254,6 +268,9 @@
run nandargs;  \
nand read ${loadaddr} 28 40;  \
bootm ${loadaddr}\0 \
+   ramboot=echo Booting from ramdisk ...;  \
+   run ramargs;  \
+   bootm ${loadaddr}\0 \
 
 #define CONFIG_BOOTCOMMAND \
if mmc rescan ${mmcdev}; then  \
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: config: load kernel via MMC ext2

2011-04-20 Thread Jason Kridner
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 include/configs/omap3_beagle.h |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index 49bfaa4..e2f7dd0 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -236,7 +236,8 @@
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt\0 \
importbootenv=echo Importing environment from mmc ...;  \
env import -t $loadaddr $filesize\0 \
-   loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0 \
+   loaduimagefat=fatload mmc ${mmcdev} ${loadaddr} uImage\0 \
+   loaduimage=ext2load mmc ${mmcdev}:2 ${loadaddr} /boot/uImage\0 \
mmcboot=echo Booting from mmc ...;  \
run mmcargs;  \
bootm ${loadaddr}\0 \
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] BeagleBoard: config: enable DSS

2011-04-20 Thread Jason Kridner
Signed-off-by: Jason Kridner jkrid...@beagleboard.org
---
 include/configs/omap3_beagle.h |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index a946b0e..6ece0fa 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -158,6 +158,7 @@
 #define CONFIG_CMD_NAND/* NAND support */
 #define CONFIG_CMD_LED /* LED support  */
 #define CONFIG_CMD_SETEXPR /* Evaluate expressions */
+#define CONFIG_VIDEO_OMAP3 /* DSS Support  */
 
 #undef CONFIG_CMD_FLASH/* flinfo, erase, protect   */
 #undef CONFIG_CMD_FPGA /* FPGA configuration Support   */
-- 
1.5.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Policy for checkpatch usage?

2011-04-20 Thread Graeme Russ
On Thu, Apr 21, 2011 at 2:51 AM, Scott Wood scottw...@freescale.com wrote:
 On Wed, 20 Apr 2011 20:15:40 +1000
 Graeme Russ graeme.r...@gmail.com wrote:

 On Wednesday, April 20, 2011, Detlev Zundel d...@denx.de wrote:
  Hi,
 

 
  As a base for discussion, what about this:
 
    Use common sense in interpreting the results of checkpatch. Warnings
    that clearly only make sense in the Linux kernel can be ignored.  Also
    warnings produced for _context lines_ rather than actual changes can
    also be ignored.

 One man's common sense is another's idiocy

 I vote for a zero warnings, zero errors U-Boot specific checkpatch

 I vote for checkpatch is a tool that can help you find some style problems,
 but is imperfect, and the things it complains about are of varying
 importance.  If you insist on zero warnings, what's the difference between
 a warning and an error?  And will there then be a U-Boot-specific coding
 style document to match?  Will anyone that wants to submit a patch that
 checkpatch erroneously complains about have to first submit a patch for
 checkpatch (first learning Perl if need be)?

 There's a lot more common sense that needs to be applied when writing
 software than where to stick what kind and amount of whitespace.
 Guidelines are good -- zero-tolerance obedience to a script, not so much.


Point taken.

What about my other suggestion - A checkpatch summary with an expalation
for any warnings or errors? See for example my heads-up for checkpatch
warnings - http://lists.denx.de/pipermail/u-boot/2011-April/090144.html

Regards,

Graeme
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


  1   2   >