Re: [U-Boot-Users] FIT-image with fdt doesn't work

2008-09-30 Thread Jon Loeliger
On Tue, 2008-09-30 at 14:06 +0200, Simon Pasch wrote:

 3.) create a flat device tree blob (using dtc 1.2.0):
 dtc -b 0 -V 17 -R 4 -S 0x3000 -I dts -O dtb -f devicetree.dts  target.dtb

The -V 17 is the current default, so the option isn't needed.
The -S 0x3000 may not be enough, and is really obsoleted
but the -p pad-value option too.  Try, oh, -p 0x1000 instead.

If you have a large DTS or resulting DTB file, it might
lead to problems like this:

 7.) try to boot it:
 = bootm
 ## Booting kernel from FIT Image at 0070 ...
Using '[EMAIL PROTECTED]' configuration
Trying '[EMAIL PROTECTED]' kernel subimage
  Description:  Vanilla Linux kernel
  Type: Kernel Image
  Compression:  gzip compressed
  Data Start:   0x007000ec
  Data Size:4052683 Bytes =  3.9 MB
  Architecture: PowerPC
  OS:   Linux
  Load Address: 0x
  Entry Point:  0x
  Hash algo:crc32
  Hash value:   d4c2683b
  Hash algo:sha1
  Hash value:   0f3c591c4f201d8cc1020725da0639d0b04d065a
Verifying Hash Integrity ... crc32+ sha1+ OK
Uncompressing Kernel Image ... OK
 ## Flattened Device Tree from FIT Image at 0070
Using '[EMAIL PROTECTED]' configuration
Trying '[EMAIL PROTECTED]' FDT blob subimage
  Description:  Flattened Device Tree blob
  Type: Unknown Image
  Compression:  Unknown Compression
  Data Start:   0x00add8e4
  Data Size:12288 Bytes = 12 kB
  Hash algo:crc32
  Hash value:   e07e11d2
  Hash algo:sha1
  Hash value:   8ee8e8ce07508c534666f6d79fe89e46b8a7ae7a
Verifying Hash Integrity ... crc32+ sha1+ OK
 ERROR: Not a FDT image - must RESET the board to recover.
 
 
 As you can see the image-type of the fdt changed from Flat Device
 Tree to Unknown Image after decompressing the kernel, but the hash
 integrity seems to be fine (?!)
 
 What am I doing wrong? What's missing?


Do some length analysis and make sure you are not stomping
on any images in memory too, especially after uncompressing.

jdl



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] POWERPC: 86xx - add missing CONFIG_HIGH_BATS to sbc8641d config

2008-08-11 Thread Jon Loeliger
On Mon, 2008-08-04 at 14:01 -0500, Becky Bruce wrote:
 Signed-off-by: Becky Bruce [EMAIL PROTECTED]
 ---
  include/configs/sbc8641d.h |2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)
 
 diff --git a/include/configs/sbc8641d.h b/include/configs/sbc8641d.h
 index 76712fd..e075a10 100644
 --- a/include/configs/sbc8641d.h
 +++ b/include/configs/sbc8641d.h
 @@ -58,6 +58,8 @@
  #define CONFIG_TSEC_ENET /* tsec ethernet support */
  #define CONFIG_ENV_OVERWRITE
  
 +#define CONFIG_HIGH_BATS 1   /* High BATs supported and enabled */
 +
  #undef CONFIG_SPD_EEPROM /* Do not use SPD EEPROM for DDR setup*/
  #undef CONFIG_DDR_DLL/* possible DLL fix needed */
  #define CONFIG_DDR_2T_TIMING /* Sets the 2T timing bit */

Acked-by: Jon Loeliger [EMAIL PROTECTED]

Thanks,
jdl



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] [UPDATED] POWERPC: Change 86xx platforms to use CONFIG_NR_CPUS

2008-08-11 Thread Jon Loeliger
On Wed, 2008-08-06 at 16:48 -0500, Becky Bruce wrote:
 Currently, they use CONFIG_NUM_CPUS, which is different than
 85xx for no good reason.
 
 Signed-off-by: Becky Bruce [EMAIL PROTECTED]
 ---
 Note: This is a resend; the first version accidentally changed the NR_CPUs
 on 8610 to 2.


I have ACKed Kumar's version of this patch!

jdl



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] RFC: mailing list transfer

2008-08-01 Thread Jon Loeliger
On Fri, 2008-08-01 at 17:17 +0200, Wolfgang Denk wrote:
 Hello,
 
 I would like to get your general opinion about moving the
 u-boot-users mailing list away from SourceForge and host it on
 lists.denx.de instead.

This sounds like a great idea to me!

jdl



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] using a flat device tree to drive u-boot config

2008-07-29 Thread Jon Loeliger
Kumar Gala wrote:
 Our main interest in using FDT for U-Boot is to make it dynamically  
 configurable having just one image for various variants of the  
 hardware. Replacing config.h completely seems overkill to me (and  
 will not even be possible).
 
 Agreed.  I'm not suggesting replacing config.h, but removing bits and  
 pieces of it.
 
 - k

I think we should first spend more serious effort towards
installing Konfig structure and building into the config mix.

jdl


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Changing u-boot relocation scheme

2008-07-24 Thread Jon Loeliger
vb wrote:

 What Grant suggests is the way to go. I do not think your approach has
 chances for mainline.

 
 I am sorry to hear this, especially since what I suggest would be
 completely compiler agnostic and would allow to avoid some of the
 limitations one must follow today while adding stuff to u-boot.
 
 cheers,
 /vb

As an alternate approach, perhaps this is something
that might be explored in the framework of the so-called
U-Boot V2 effort?  Specifically, if you can demonstrate
it working, that would hold much more weight.  You know,
Show me the code.! :-)

jdl


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] ppc4xx: [PATCH] CPU PPC440x5 on Virtex5 FX (new version)

2008-07-16 Thread Jon Loeliger
Ricardo Ribalda Delgado wrote:
 Previous patch did not compile on some boards
 
 
 Signed-off-by: Ricardo Ribalda Delgado [EMAIL PROTECTED]
 ---
 -This patchs gives support for the embbedded ppc440
 on the Virtex5 FPGAs
 
 -interrupts.c divided in uic.c and interrupts.c
 
 -xilinx_irq.c for xilinx interrupt controller

Hmmm.  My feeling here is that you have the stuff
above the triple-dash and the stuff below the triple-dash
swapped.

Stuff above is official Log Message.
Stuff below is commentary.

jdl


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Pull Request for u-boot-mpc86xx.git

2008-07-15 Thread Jon Loeliger
Wolfgang,

Sorry I missed this outstanding patch from Timur earlier.
If you could, please pull this one 86xx patch.

Thanks,
jdl


The following changes since commit 348753d416cd2c9e7ec6520a544c8f33cf02a560:
  Kumar Gala (1):
Fix some more printf() format problems.

are available in the git repository at:

  git://www.denx.de/git/u-boot-mpc86xx.git master

Timur Tabi (1):
  Update Freescale sys_eeprom.c to handle CCID formats

 board/freescale/common/sys_eeprom.c |  598 +++
 include/configs/MPC8610HPCD.h   |8 +-
 include/configs/MPC8641HPCN.h   |8 +-
 3 files changed, 400 insertions(+), 214 deletions(-)



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Pull Request: Please pull u-boot-mpc86xx.git

2008-07-10 Thread Jon Loeliger
Wolfgang,

The following changes are available in the git repository at:

  git://www.denx.de/git/u-boot-mpc86xx.git master


Jason Jin (1):
  Feed the watchdog in u-boot for 8610 board.

Kumar Gala (2):
  MPC8641HPCN: Report board id, board version and fpga version.
  MPC8610HPCD: Report board id, board version and fpga version.

Thanks,
jdl

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [RFC][FSL DDR 0/8] Freescale DDR rewrite

2008-07-07 Thread Jon Loeliger
On Sun, 2008-07-06 at 00:32 +0200, Wolfgang Denk wrote:
 Dear Kumar,
 
 in message [EMAIL PROTECTED] you wrote:
  This is a series of patches that are a work-in-progress towards a new
  DDR initialization for the Freescale 8{3,5,6}xxx devices that have a
  common DDR controller.
 
 Just to avoid misunderstandings: I understand these patches as RFC
 only (as the subject says), i. e. this is not an attempt yet to get
 this included in the upcoming release. Please confirm.


That is correct.  In the meantime, there has been some
further development on this code base as well.

jdl



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] DTC and Binary Includes

2008-07-07 Thread Jon Loeliger
On Sat, 2008-07-05 at 09:17 +0200, Michal Simek wrote:
 Hi Jon and Detlev,
 
 I sent the similar patch to Jon yesterday.

Hmmm...  I see mail from you, but I don't see a patch.
Where did you send the patch?  Or can you re-send it, please?

Thanks,
jdl



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] Feed the watchdog in u-boot for 8610 board.

2008-07-07 Thread Jon Loeliger
On Tue, 2008-05-13 at 11:50 +0800, Jason Jin wrote:
 The watchdog on 8610 board is enabled by setting sw[6]
 to on. Once enabled, the watchdog can not be disabled
 by software. So feed the dog in u-boot is necessary for
 normal operation.
 
 Signed-off-by: Jason Jin [EMAIL PROTECTED]
 ---

Applied to -mpc86xx repo with some white-space cleanup.


 diff --git a/cpu/mpc86xx/cpu.c b/cpu/mpc86xx/cpu.c
 index bf4e651..6dd0655 100644
 --- a/cpu/mpc86xx/cpu.c
 +++ b/cpu/mpc86xx/cpu.c
 @@ -213,6 +213,20 @@ get_tbclk(void)
  void
  watchdog_reset(void)
  {

 + if(tmp  0x4000) {
 + wdt-swsrr = 0x556c;
 + wdt-swsrr = 0xaa39;


Also, if we had a patch that documented those
magic numbers, that would be good.

Thanks,
jdl



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] (no subject)

2008-07-07 Thread Jon Loeliger
On Sun, 2008-07-06 at 10:11 +0300, David Saada wrote:

 Kumar,
 
 Does this RFC also include support for identifying and initializing
 more than one DDR module?
 
 David.

Yes, it should.

jdl



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] DTC and Binary Includes

2008-07-07 Thread Jon Loeliger
On Tue, 2008-07-01 at 11:59 +0200, Detlev Zundel wrote:
 Hi Jon,
 
  I seem to recall that those working on the either
  the next U-Boot V2 or the next version of the FDT
  image structure were planning on using the binary
  include mechanism of the DTC.
 
  Several days ago I added the Binary Include patch
  to DTC and tagged a candidate release.  Could you
  verify that this version satisfies your needs and
  works for you?
 
 Hm, you mean the tag v1.2.0-rc1?  I couldn't compile nor install that
 version on my system without the attached patch.

Why is the install lined commented out?

And can I get a clean, signed-off Git patch?
Please also CC: [EMAIL PROTECTED]

Thanks,
jdl



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Release status - things to be done

2008-07-07 Thread Jon Loeliger
On Sun, 2008-07-06 at 01:05 +0200, Wolfgang Denk wrote:
 
  2147  05/13 Jason Jin  [PATCH] Feed the watchdog in u-boot for 8610 
 board.
   - for 86xx custodian

I picked this up.

  4011  06/19 Kumar Gala [U-Boot-Users] [PATCH] MPC8641HPCN: Report 
 board id, board version and fpga version.
  4025  06/19 Jon Loeliger   Re: [U-Boot-Users] [PATCH] MPC8641HPCN: 
 Report board id, board version and fpga version.
  4012  06/19 Kumar Gala [U-Boot-Users] [PATCH] MPC8610HPCD: Report 
 board id, board version and fpga version.
   - already taken care of by 86xx custodian

I'll follow up with a Pull Request!

Thanks,
jdl






-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] DTC and Binary Includes

2008-06-29 Thread Jon Loeliger
Sascha(?) and/or others,

I seem to recall that those working on the either
the next U-Boot V2 or the next version of the FDT
image structure were planning on using the binary
include mechanism of the DTC.

Several days ago I added the Binary Include patch
to DTC and tagged a candidate release.  Could you
verify that this version satisfies your needs and
works for you?

Thanks,
jdl

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [Patch] U-Boot-v2: general replace __KERNEL__ with __UBOOT__

2008-06-19 Thread Jon Loeliger
Menon, Nishanth wrote:
 Robert,
 -Original Message-
 From: Robert Schwebel [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 18, 2008 2:02 PM
 To: Menon, Nishanth
 Cc: Sascha Hauer; Laurent Desnogues; Kamat, Nishant; [EMAIL PROTECTED]; 
 u-boot-
 [EMAIL PROTECTED]
 Subject: Re: [U-Boot-Users] [Patch 1/9] U-boot-V2:ID: Sync mod_devicetable

 +
 +#ifndef LINUX_MOD_DEVICETABLE_H
 +#define LINUX_MOD_DEVICETABLE_H
 +
 +#ifdef __KERNEL__
 +#include linux/types.h
 +typedef unsigned long kernel_ulong_t;
 +#endif
 No Linux, no __KERNEL__.


All the above crap should appear below the following --- line.

 Here is a patch to cleanup all other occurrences currently in u-boot v2. This 
 is a blind replacement throughout. Do we want to consider replacing 
 include/linux with include/u-boot?

That should be line-length-limited to about 70 characters.
The question should appear below the --- line too.

And I'd suggest that, if we go this route as a whole, then
then the include directory should be renamed as well.

 Signed-off-by: Nishanth Menon [EMAIL PROTECTED]
 
 ---

Here.

jdl

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [Patch 1/3] U-Boot-V2: Bitops cleanup: introduce asm-generic bitops

2008-06-19 Thread Jon Loeliger
Menon, Nishanth wrote:
 Sascha,
 The following 3 patches are for cleaning up the bitops
 -Original Message-
 From: Sascha Hauer [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 18, 2008 10:51 AM
 To: Menon, Nishanth
 Cc: Kamat, Nishant; u-boot-users@lists.sourceforge.net; Laurent Desnogues; 
 [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Subject: Re: [Patch 2/9] U-boot-V2:ARM: Introduce additional bitops


 In the kernel are generic bitops, #ifdefed with CONFIG_GENERIC_XXX

Again, either leave the above crap out entirely or place it
below the triple-dash line.

 This introduces selected generic bitop files from kernel. We don't need 
 minix, ext2, sched or lock based bitops. Those have been dropped.

Line wrap the log message at 70 or 72.

 Signed-off-by: Nishanth Menon [EMAIL PROTECTED]
 
 ---
  include/asm-generic/bitops/__ffs.h   |   43 
  include/asm-generic/bitops/__fls.h   |   43 


Thanks,
jdl


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] MPC8610HPCD: Report board id, board version and fpga version.

2008-06-19 Thread Jon Loeliger
Kumar Gala wrote:
 Signed-off-by: Kumar Gala [EMAIL PROTECTED]
 ---
  board/freescale/mpc8610hpcd/mpc8610hpcd.c |5 -
  1 files changed, 4 insertions(+), 1 deletions(-)

Applied to -mpc86xx repo.

Thanks,
jdl


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] MPC8641HPCN: Report board id, board version and fpga version.

2008-06-19 Thread Jon Loeliger
Kumar Gala wrote:
 Signed-off-by: Kumar Gala [EMAIL PROTECTED]
 ---
  board/freescale/mpc8641hpcn/mpc8641hpcn.c |6 --
  1 files changed, 4 insertions(+), 2 deletions(-)
 

Applied to -mpc86xx repo.

Thanks,
jdl

 

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] DTC 1.2.0-rc1 Tagged

2008-06-19 Thread Jon Loeliger

Folks,

I've pushed out a freshly tagged DTC 1.2.0-rc1 to jdl.com.

Please feel free to test it!

Thanks,
jdl



David Gibson (34):
  libfdt: Add and use a node iteration helper function.
  libfdt: Fix NOP handling bug in fdt_add_subnode_namelen()
  dtc: Fold comment handling test into testsuite
  libfdt: More tests of NOP handling behaviour
  libfdt: Trivial cleanup for CHECK_HEADER)
  libfdt: Remove no longer used code from fdt_node_offset_by_compatible()
  dtc: Fix error reporting in push_input_file()
  dtc: Implement checks for the format of node and property names
  dtc: Fix indentation of fixup_phandle_references
  dtc: Strip redundant name properties
  dtc: Test and fix conversion to/from old dtb versions
  dtc: Use for_each_marker_of_type in asm_emit_data()
  dtc: Make -I dtb mode use fill_fullpaths()
  dtc: Make eval_literal() static
  dtc: Assorted improvements to test harness
  dtc: Testcases for input handling
  dtc: Make dtc_open_file() die() if unable to open requested file
  dtc: Remove ugly include stack abuse
  dtc: Abolish asize field of struct data
  dtc: Add some documentation for the dts formta
  dtc: Cleanup \nnn and \xNN string escape handling
  dtc: Change exit code for usage message
  dtc: Simplify error handling for unparseable input
  dtc: Clean up included Makefile fragments
  dtc: Trivial formatting fixes
  dtc: Make dt_from_blob() open its own input file, like the other input 
formats
  dtc: Rework handling of boot_cpuid_phys
  dtc: Add program to convert dts files from v0 to v1
  dtc: Remove reference to dead Makefile variables
  libfdt: Several cleanups to parameter checking
  dtc: Remove some small bashisms from test scripts
  dtc: Fix some printf() format warnings when compiling 64-bit
  dtc: Add a testcase for 'reg' or 'ranges' in /
  dtc: Add support for binary includes.

Jon Loeliger (1):
  Tag Version 1.2.0-rc1

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] U-Boot and Linux on Walnut based board

2008-06-14 Thread Jon Loeliger
Brian S. Park wrote:
 Wolfgang,
 I tried the following versions on our old board and found that 
 booting linux stops working from 1.3.2-rc1. So, some change between 
 1.3.1 and 1.3.2-rc1 is causing my problem. Can you give me any 
 pointers as to where to look?
 
 1.0.0: works
 1.2.0: works
 1.3.0: works
 1.3.1: works
 1.3.2-rc1: does not work
 1.3.2: does not work
 1.3.3: does not work
 
 Brian
 

Brian,

You are in an excellent position to use git bisect now!
Do this, roughly:

$ git checkout master
$ git bisect start
$ git bisect bad
$ git bisect good v1.3.1

Compile and test the versions as indicated.
Then use either

$ git bisect good
or
$ git bisect bad

as appropriate.

Repeat until you have narrowed the search
down to just one suspect commit!

jdl

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH 1/4] Change initdram() return type to phys_size_t

2008-06-12 Thread Jon Loeliger
On Thu, 2008-06-12 at 11:36 -0500, Andy Fleming wrote:
 On Thu, Jun 12, 2008 at 11:00 AM, Becky Bruce [EMAIL PROTECTED] wrote:
  Bah - I thought I had updated my tree right before I sent that out.
  Not sure what happened here.  Sorry about that, and thanks, Kumar!
 
 Your patch was applied after he pulled all the custodian trees.  So
 the patch probably conflicted with one (or more) of them.
 
 Andy

While I do not know how Wolfgang is applying patches,
I might inject that adding a -3 flag to a git am
command might help as it will figure out some of these
more complicated merges slightly better sometimes.
(Wolfgang might already have done that and it still
failed with conflicts, of course; I just don't know.)

HTH,
jdl



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Pull Request for mpc86xx repository

2008-06-11 Thread Jon Loeliger
Wolfgang Denk wrote:

 Becky Bruce (1):
   MPC86xx: Change traps.c to not reference non-addressable memory

 Jon Loeliger (1):
   mpc86xx: Removed unused and unconfigured memory test code.

  board/freescale/mpc8610hpcd/mpc8610hpcd.c |   36 
 -
  board/freescale/mpc8641hpcn/mpc8641hpcn.c |   36 
 -
  cpu/mpc86xx/traps.c   |8 +-
  include/configs/MPC8610HPCD.h |2 -
  include/configs/MPC8641HPCN.h |1 -
  5 files changed, 7 insertions(+), 76 deletions(-)

 The added patch from Becky was already posted to the list on May 14.
 
 Applied.

Thanks!

jdl


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] 85xx/86xx: Move to dynamic mgmt of LAWs

2008-06-10 Thread Jon Loeliger
 With the new LAW interface (set_next_law) we can move to letting the
 system allocate which LAWs are used for what purpose.  This makes life
 a bit easier going forward with the new DDR code.
 
 Signed-off-by: Kumar Gala [EMAIL PROTECTED]
 ---
 
 Andy, I know this touches a few 86xx boards, but I'm 99.9% sure jdl will
 just ack it so please pick this up.
 
 - k

Acked-by: Jon Loeliger [EMAIL PROTECTED]

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH 1/4] Change initdram() return type to phys_size_t

2008-06-10 Thread Jon Loeliger
On Mon, 2008-06-09 at 20:37 -0500, Becky Bruce wrote:
 This patch changes the return type of initdram() from long int to phys_size_t.
 This is required for a couple of reasons: long int limits the amount of dram
 to 2GB, and u-boot in general is moving over to phys_size_t to represent the
 size of physical memory.  phys_size_t is defined as an unsigned long on almost
 all current platforms.
 
 This patch *only* changes the return type of the initdram function (in
 include/common.h, as well as in each board's implementation of initdram).  It
 does not actually modify the code inside the function on any of the platforms;
 platforms which wish to support more than 2GB of DRAM will need to modify
 their initdram() function code.
 
 Build tested with MAKEALL for ppc, arm, mips, mips-el. Booted on powerpc
 MPC8641HPCN.
 
 Patch is too large for the list, and is located at:
 http://gate.crashing.org/~galak/0001-Change-initdram-return-type-to-phys_size_t.patch

The whole 4-part series:

Acked-by: Jon Loeliger [EMAIL PROTECTED]

jdl



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH v2] Add mechanisms for CPU and board-specific Ethernet initialization

2008-06-10 Thread Jon Loeliger
On Tue, 2008-06-10 at 07:03 -0700, Ben Warren wrote:
 +#if defined(CONFIG_TSEC1)
 +   tsec_initialize(bis, 0, CONFIG_TSEC1_NAME);
 +#endif
 +#if defined(CONFIG_TSEC2)
 +   tsec_initialize(bis, 1, CONFIG_TSEC2_NAME);
 +#endif
 +#if defined(CONFIG_MPC85XX_FEC)
 +   tsec_initialize(bis, 2, CONFIG_MPC85XX_FEC_NAME);
 +#else
 +#if defined(CONFIG_TSEC3)
 +   tsec_initialize(bis, 2, CONFIG_TSEC3_NAME);
 +#endif
 +#if defined(CONFIG_TSEC4)
 +   tsec_initialize(bis, 3, CONFIG_TSEC4_NAME);
 +#endif
 +#endif
 +   return 0;
 +}

So, why not make a new function in tsec.c called something
like tsec_initialize_all(bis) with essentially the above
#ifdef-series and make all of the individual board functions
just be like:

+int board_eth_init(bd_t *bis)
+{
+   tsec_initialize_all(bis);
+   return 0;
+}

Just a notion.  Haven't actually thought about it...

jdl




-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [RFC][FSL DDR 1/8] Add proper SPD definitions for DDR1/2/3

2008-06-09 Thread Jon Loeliger
On Mon, 2008-06-09 at 17:03 -0400, Jerry Van Baren wrote:

   Is your SPD dump going to supersede it?

In spades.

jdl



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Pull Request for mpc86xx repository

2008-06-06 Thread Jon Loeliger
On Mon, 2008-06-02 at 11:38 -0500, Jon Loeliger wrote:
 On Mon, 2008-05-19 at 11:06 -0500, Jon Loeliger wrote:
  The following changes since commit 180a90abdae72587c0f679edf8991455e559440d:
Wolfgang Denk (1):
  Release v1.3.3
  
  are available in the git repository at:
  
git://www.denx.de/git/u-boot-mpc86xx.git master
  
  Jon Loeliger (1):
mpc86xx: Removed unused and unconfigured memory test code.
  
   board/freescale/mpc8610hpcd/mpc8610hpcd.c |   36 
  -
   board/freescale/mpc8641hpcn/mpc8641hpcn.c |   36 
  -
   include/configs/MPC8610HPCD.h |2 -
   include/configs/MPC8641HPCN.h |1 -
   4 files changed, 0 insertions(+), 75 deletions(-)
 
 
 Wolfgang,
 
 Wasn't sure if this was still on your radar or not.
 Just wanted to make sure it hit this merge window.
 
 Thanks,
 jdl


Wolfgang,

This pull request has had one more commit added to it,
so now it has:

Becky Bruce (1):
  MPC86xx: Change traps.c to not reference non-addressable memory

Jon Loeliger (1):
  mpc86xx: Removed unused and unconfigured memory test code.

 board/freescale/mpc8610hpcd/mpc8610hpcd.c |   36 -
 board/freescale/mpc8641hpcn/mpc8641hpcn.c |   36 -
 cpu/mpc86xx/traps.c   |8 +-
 include/configs/MPC8610HPCD.h |2 -
 include/configs/MPC8641HPCN.h |1 -
 5 files changed, 7 insertions(+), 76 deletions(-)

The added patch from Becky was already posted to the list on May 14.

Thanks,
jdl



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Pull Request for mpc86xx repository

2008-06-02 Thread Jon Loeliger
On Mon, 2008-05-19 at 11:06 -0500, Jon Loeliger wrote:
 The following changes since commit 180a90abdae72587c0f679edf8991455e559440d:
   Wolfgang Denk (1):
 Release v1.3.3
 
 are available in the git repository at:
 
   git://www.denx.de/git/u-boot-mpc86xx.git master
 
 Jon Loeliger (1):
   mpc86xx: Removed unused and unconfigured memory test code.
 
  board/freescale/mpc8610hpcd/mpc8610hpcd.c |   36 
 -
  board/freescale/mpc8641hpcn/mpc8641hpcn.c |   36 
 -
  include/configs/MPC8610HPCD.h |2 -
  include/configs/MPC8641HPCN.h |1 -
  4 files changed, 0 insertions(+), 75 deletions(-)


Wolfgang,

Wasn't sure if this was still on your radar or not.
Just wanted to make sure it hit this merge window.

Thanks,
jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] 86xx: mpc8610_hpcd: add support for NAND

2008-05-28 Thread Jon Loeliger
On Wed, 2008-05-28 at 09:52 -0500, Kumar Gala wrote:
 On May 28, 2008, at 9:19 AM, Anton Vorontsov wrote:
 
  On Tue, May 27, 2008 at 02:54:19PM -0500, Kumar Gala wrote:
 
  On May 27, 2008, at 1:24 PM, Anton Vorontsov wrote:
 
  This patch adds support for NAND on MPC8610HPCD target. We're using
  BAT7
  and LAW4 entries for 4MB NAND mapping.
 
  MPC8610HPCD has four NAND chips in one package, bases as follows:
  - 0xe840
  - 0xe844
  - 0xe848
  - 0xe84c
 
  Also, this patch adds some localbus definitions to mpc86xx.h  
  (straight
  copy from mpc83xx.h).
 
  can we pull them out into a common fsl_lbc.h or something?  (since  
  I'm
  sure 85xx will need them as well).
 
  Yup, how about this? (patches on the way)
 
 thanks. looks good to me.
 
 - k

So, I'll through an

Acked-by: Jon Loeliger [EMAIL PROTECTED]

out there for the 86xx camp and let, uh,
someone pick 'em both up?

jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] 86xx: mpc8610_hpcd: add support for NAND

2008-05-28 Thread Jon Loeliger
On Wed, 2008-05-28 at 11:31 -0500, Jon Loeliger wrote:

 So, I'll through an

s/through/throw/

Bah.

jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH 18/18] avr32: Compile atmel_mci.oconditionally

2008-05-23 Thread Jon Loeliger
[EMAIL PROTECTED] wrote:
 Haavard Skinnemoen wrote:
 
 Remove #ifdef CONFIG_MMC from the source file and use conditional
 compilation in the Makefile instead.
 
 What's wrong with the current code?  Why are you doing this?
  

Because it is the right thing to do. :-)

So that we don't gratuitously compile files that
aren't even necessarily involved in the build
as per configuration selections.  This is all
part of the longer term goal of moving to a
Kconfig/Kbuild mechanism.

jdl

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] Setting processor endianess for USB modules

2008-05-22 Thread Jon Loeliger
On Wed, 2008-05-21 at 22:40 +0200, Wolfgang Denk wrote:
 In message [EMAIL PROTECTED] you wrote:
   Unfortunately it's unusable as your mailer wrapped long lines:
   [...]
   Please fix your mailer (or even better use git-send-email)
  
  Unfortunately I don't have this command (perhaps my git is too old).

 How did you install git? If in doubt, clone  the  original  repo  and
 install  (if  necessary  locally  in  your  $HOME)  from the original
 sources.

Some distro packaging separated the git mail commands
into a separate package.  Perhaps you need to install
more than just 'git-core'?  Like, 'git-[e]mail' too?

jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Proposal for u-boot-nand-flash custodian change

2008-05-19 Thread Jon Loeliger
Stefan Roese wrote:

 Some time passed now, and we have only positive feedback to my suggestion. So 
 I think we should move on and really switch this custodianship.
 
 Wolfgang, could you please arrange that Scott has access to the repo and list 
 him as Custodian?
 
 Thanks.
 
 Scott, welcome aboard! :)
 
 Best regards,
 Stefan

Soon, the Freescale Takes Over The World plot will be complete.
Already, Warren Buffet has willed all of his stock holdings to me.

jdl


-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] mpc86xx: Removed unused and unconfigured memory test code.

2008-05-19 Thread Jon Loeliger
Besides, other common code exists.

Signed-off-by: Jon Loeliger [EMAIL PROTECTED]
---

As per Wolfgang's request.

 board/freescale/mpc8610hpcd/mpc8610hpcd.c |   36 -
 board/freescale/mpc8641hpcn/mpc8641hpcn.c |   36 -
 include/configs/MPC8610HPCD.h |2 -
 include/configs/MPC8641HPCN.h |1 -
 4 files changed, 0 insertions(+), 75 deletions(-)

diff --git a/board/freescale/mpc8610hpcd/mpc8610hpcd.c 
b/board/freescale/mpc8610hpcd/mpc8610hpcd.c
index 3a855b5..ce563dc 100644
--- a/board/freescale/mpc8610hpcd/mpc8610hpcd.c
+++ b/board/freescale/mpc8610hpcd/mpc8610hpcd.c
@@ -141,42 +141,6 @@ initdram(int board_type)
 }
 
 
-#if defined(CFG_DRAM_TEST)
-int
-testdram(void)
-{
-   uint *pstart = (uint *) CFG_MEMTEST_START;
-   uint *pend = (uint *) CFG_MEMTEST_END;
-   uint *p;
-
-   puts(SDRAM test phase 1:\n);
-   for (p = pstart; p  pend; p++)
-   *p = 0x;
-
-   for (p = pstart; p  pend; p++) {
-   if (*p != 0x) {
-   printf(SDRAM test fails at: %08x\n, (uint) p);
-   return 1;
-   }
-   }
-
-   puts(SDRAM test phase 2:\n);
-   for (p = pstart; p  pend; p++)
-   *p = 0x;
-
-   for (p = pstart; p  pend; p++) {
-   if (*p != 0x) {
-   printf(SDRAM test fails at: %08x\n, (uint) p);
-   return 1;
-   }
-   }
-
-   puts(SDRAM test passed.\n);
-   return 0;
-}
-#endif
-
-
 #if !defined(CONFIG_SPD_EEPROM)
 /*
  * Fixed sdram init -- doesn't use serial presence detect.
diff --git a/board/freescale/mpc8641hpcn/mpc8641hpcn.c 
b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
index bb1f927..915fb58 100644
--- a/board/freescale/mpc8641hpcn/mpc8641hpcn.c
+++ b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
@@ -81,42 +81,6 @@ initdram(int board_type)
 }
 
 
-#if defined(CFG_DRAM_TEST)
-int
-testdram(void)
-{
-   uint *pstart = (uint *) CFG_MEMTEST_START;
-   uint *pend = (uint *) CFG_MEMTEST_END;
-   uint *p;
-
-   puts(SDRAM test phase 1:\n);
-   for (p = pstart; p  pend; p++)
-   *p = 0x;
-
-   for (p = pstart; p  pend; p++) {
-   if (*p != 0x) {
-   printf(SDRAM test fails at: %08x\n, (uint) p);
-   return 1;
-   }
-   }
-
-   puts(SDRAM test phase 2:\n);
-   for (p = pstart; p  pend; p++)
-   *p = 0x;
-
-   for (p = pstart; p  pend; p++) {
-   if (*p != 0x) {
-   printf(SDRAM test fails at: %08x\n, (uint) p);
-   return 1;
-   }
-   }
-
-   puts(SDRAM test passed.\n);
-   return 0;
-}
-#endif
-
-
 #if !defined(CONFIG_SPD_EEPROM)
 /*
  * Fixed sdram init -- doesn't use serial presence detect.
diff --git a/include/configs/MPC8610HPCD.h b/include/configs/MPC8610HPCD.h
index 585411c..ed75357 100644
--- a/include/configs/MPC8610HPCD.h
+++ b/include/configs/MPC8610HPCD.h
@@ -71,10 +71,8 @@
 #define CONFIG_BOARD_EARLY_INIT_F  1   /* Call board_pre_init */
 #define CONFIG_MISC_INIT_R 1
 
-#undef CFG_DRAM_TEST   /* memory test, takes time */
 #define CFG_MEMTEST_START  0x0020  /* memtest region */
 #define CFG_MEMTEST_END0x0040
-#define CFG_ALT_MEMTEST
 
 /*
  * Base addresses -- Note these are effective addresses where the
diff --git a/include/configs/MPC8641HPCN.h b/include/configs/MPC8641HPCN.h
index a8d0077..d7a7f90 100644
--- a/include/configs/MPC8641HPCN.h
+++ b/include/configs/MPC8641HPCN.h
@@ -86,7 +86,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 
 #define CONFIG_BOARD_EARLY_INIT_F  1   /* Call board_pre_init */
 
-#undef CFG_DRAM_TEST   /* memory test, takes time */
 #define CFG_MEMTEST_START  0x0020  /* memtest region */
 #define CFG_MEMTEST_END0x0040
 
-- 
1.5.5.1.147.g867f


-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Pull Request for mpc86xx repository

2008-05-19 Thread Jon Loeliger
The following changes since commit 180a90abdae72587c0f679edf8991455e559440d:
  Wolfgang Denk (1):
Release v1.3.3

are available in the git repository at:

  git://www.denx.de/git/u-boot-mpc86xx.git master

Jon Loeliger (1):
  mpc86xx: Removed unused and unconfigured memory test code.

 board/freescale/mpc8610hpcd/mpc8610hpcd.c |   36 -
 board/freescale/mpc8641hpcn/mpc8641hpcn.c |   36 -
 include/configs/MPC8610HPCD.h |2 -
 include/configs/MPC8641HPCN.h |1 -
 4 files changed, 0 insertions(+), 75 deletions(-)

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] 1.3.3-rc3 - release status

2008-05-06 Thread Jon Loeliger
Stelian Pop wrote:
 Le mardi 06 mai 2008 à 19:48 +0200, Wolfgang Denk a écrit :
 In message [EMAIL PROTECTED] you wrote:
 I'm just waiting for the merge window to open and I'll post them all.
 Meanwhile, if you wish, I can send you the patches privately.
 You could send it even if the merge window is not open
 Speaking for me only - doing so singnificantly increases  the  chance
 that the patch gets lost. I'd rather see such stuff on the list when
 the merge window is open only.
 
 That's why I was holding up on them.
 
 But since Jean-Christophe wanted to see them, I posted them. So it's up
 to him now: either he integrates them into his tree and waits for the
 merge window to push them to you, or I'll post them again in a few days
 when the merge window opens.
 
 Stelian.

Also, don't forget that by posting them Early and Often (tm),
you give others a chance to review them.  It's the Open Source Way (tm)!

Thanks,
jdl


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] 7450 and 86xx L2 cache invalidate bug corrections

2008-05-05 Thread Jon Loeliger
On Fri, 2008-05-02 at 13:35 -0700, Wheatley Travis wrote:
  
 The 7610 and related parts have an L2IP bit in the L2CR that is
 monitored to signal when the L2 cache invalidate is complete whereas the
 7450 and related parts utilize L2I for this purpose. However, the
 current code does not account for this difference. Additionally the 86xx
 L2 cache invalidate code used an andi instruction where an andis
 instruction should have been used.
 
 This patch addresses both of these bugs.
 
 
 Signed-off-by: Travis Wheatley [EMAIL PROTECTED]
 ---
  cpu/74xx_7xx/cache.S |   21 -
  cpu/mpc86xx/cache.S  |2 +-
  2 files changed, 21 insertions(+), 2 deletions(-)


Acked-By: Jon Loeliger [EMAIL PROTECTED]



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] Fix warnings while compiling net/net.c for MPC8610HPCD board

2008-04-30 Thread Jon Loeliger
Timur Tabi wrote:
 Kumar Gala wrote:
 
 nothing against this patch, but should we change MPC8610HPCD to use - 
 Os like everyone else?
 
 Beats me.  git-blame points to Jon, so he'll have to tell you where the 
 original
 config.mk came from.

Bah.  There is, let's see exactly one commit for that file:

% git log board/freescale/mpc8610hpcd/config.mk
commit 3dd2db53ceb0dff80f25c2a07f83f29b907b403e
Author: Jon Loeliger [EMAIL PROTECTED]
Date:   Tue Oct 16 13:54:01 2007 -0500

Initial mpc8610hpcd board files.

Signed-off-by: Ed Swarthout [EMAIL PROTECTED]
Signed-off-by: Mahesh Jade [EMAIL PROTECTED]
Signed-off-by: Jason Jin [EMAIL PROTECTED]
Signed-off-by: Jon Loeliger [EMAIL PROTECTED]

So, I'm guessing, it came from the Ed.  That is, it came that way
from the Day One.  So there.

jdl

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] 85xx/86xx: Rename ext_refrec to timing_cfg_3 to match docs

2008-04-29 Thread Jon Loeliger
Kumar Gala wrote:
 All the 85xx and 86xx UM describe the register as timing_cfg_3
 not as ext_refrec.
 
 Signed-off-by: Kumar Gala [EMAIL PROTECTED]
 ---
 
 Can you guys ack and decide who will actually apply this.
 
 - k
 
  board/freescale/mpc8610hpcd/mpc8610hpcd.c |2 +-
  board/freescale/mpc8641hpcn/mpc8641hpcn.c |2 +-
  board/sbc8548/sbc8548.c   |2 +-
  board/sbc8641d/sbc8641d.c |4 ++--
  cpu/mpc85xx/spd_sdram.c   |4 ++--
  cpu/mpc86xx/spd_sdram.c   |4 ++--
  include/asm-ppc/immap_85xx.h  |2 +-
  include/asm-ppc/immap_86xx.h  |2 +-
  include/configs/MPC8610HPCD.h |2 +-
  include/configs/sbc8641d.h|2 +-
  10 files changed, 13 insertions(+), 13 deletions(-)
 

Ack.  Andy, Please pick this up!

Thanks,
jdl

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] 85xx/86xx: Rename DDR init address and init extended address register

2008-04-29 Thread Jon Loeliger
Kumar Gala wrote:
 Rename init_addr and init_ext_addr to match the docs between
 85xx and 86xx.  Both now use 'init_addr' and 'init_ext_addr'.
 
 Signed-off-by: Kumar Gala [EMAIL PROTECTED]
 ---
 
 Can you guys ack and decide who will actually apply this.
 
 - k
 
  include/asm-ppc/immap_85xx.h |4 ++--
  include/asm-ppc/immap_86xx.h |2 +-
  2 files changed, 3 insertions(+), 3 deletions(-)
 

Ack.

Andy, you've got me two-to-one on this,
so if you would, please pick this up!

Thanks,
jdl

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] FIS DTC

2008-04-09 Thread Jon Loeliger
On Wed, 2008-04-09 at 10:41 +1000, David Gibson wrote:
 On Tue, Apr 08, 2008 at 07:37:35AM +0200, Michal Simek wrote:
  Hi David,
  
  The /incbin/ is probably the problem.  Support for binary includes has
  been suggested, and patches have floated around, but it hasn't yet
  been merged into dtc mainline.
  
  :-( Do you have any floated version?
 
 I don't have the patches ready to hand, I'm afraid.  I do mean to get
 the feature merged, but I'm not happy with how it's implemented right
 now, and have only been slowly getting to the pieces we need for a
 version I'd be happy with. 

Which is why it hasn't gone in yet.

  Plus jdl appears not to have had a lot of
 time to spend on dtc lately.

Also true.

jdl



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH 1/2] mpc83xx: Add MPC837x PCIE controller RC mode

2008-03-25 Thread Jon Loeliger
Markus Klotzbücher wrote:
 Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED] writes:
 
 +
 +   reg16 = in_le16(hose_cfg_base + PEX_LTSSM_STAT);
 +   if (reg16  0x16) {
 +   printf(No link\n);
 +   hose-indirect_type = INDIRECT_TYPE_NO_PCIE_LINK;
 +   } else {
 +   printf(link\n);
 +   }
 please remove the bracket on the else
 
 Come on, this is being ridiculously pedantic.

Absolutely agree.

In my opinion, extra braces should just acceptable
and even encouraged.

jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] USB Storage, add meaningful return value

2008-03-25 Thread Jon Loeliger
Scott Wood wrote:
 On Tue, Mar 25, 2008 at 09:23:43AM -0500, Jon Loeliger wrote:
 What do you think?  Wouldn't a policy of _always_ using
 braces even for single sub-statements have just made this
 a _correct_ no-brainer from the onset? :-)
 
 Yeah, but it'd be ugly. :-)

Luckily, everyone is entitled to their own wrong opinion. :-)

jdl


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Pull Request mpc86xx repository

2008-03-25 Thread Jon Loeliger
Wolfgang,

I have three outstanding patches to move a few Freescale
boards from board/* to board/freescale/*.  I wasn't sure
if you would apply them directly or not, and didn't get
any response from you when I asked.  (No problem.)

So I decided to make it easier for you and just placed
them in my -mpc86xx tree for you to pull directly.
They have been rebased to the current top of tree.

If you would, please pick these up!

Thanks,
jdl



The following changes since commit 0d48926c87ec96f974a6ac4034f4a2f2eab3255f:
  Yuri Tikhonov (1):
lwmon5 SYSMON POST: fix backlight control

are available in the git repository at:

  git://www.denx.de/git/u-boot-mpc86xx.git master

Jon Loeliger (3):
  FSL: Move board/mpc8260ads under board/freescale
  FSL: Move board/mpc8266ads under board/freescale
  FSL: Move board/mpc7448hpc2 under board/freescale

 Makefile|   10 +-
 board/{ = freescale}/mpc7448hpc2/Makefile  |0
 board/{ = freescale}/mpc7448hpc2/asm_init.S|0
 board/{ = freescale}/mpc7448hpc2/config.mk |0
 board/{ = freescale}/mpc7448hpc2/mpc7448hpc2.c |0
 board/{ = freescale}/mpc7448hpc2/tsi108_init.c |0
 board/{ = freescale}/mpc7448hpc2/u-boot.lds|0
 board/{ = freescale}/mpc8260ads/Makefile   |0
 board/{ = freescale}/mpc8260ads/config.mk  |0
 board/{ = freescale}/mpc8260ads/flash.c|0
 board/{ = freescale}/mpc8260ads/mpc8260ads.c   |0
 board/{ = freescale}/mpc8266ads/Makefile   |0
 board/{ = freescale}/mpc8266ads/config.mk  |0
 board/{ = freescale}/mpc8266ads/flash.c|0
 board/{ = freescale}/mpc8266ads/mpc8266ads.c   |0
 15 files changed, 5 insertions(+), 5 deletions(-)
 rename board/{ = freescale}/mpc7448hpc2/Makefile (100%)
 rename board/{ = freescale}/mpc7448hpc2/asm_init.S (100%)
 rename board/{ = freescale}/mpc7448hpc2/config.mk (100%)
 rename board/{ = freescale}/mpc7448hpc2/mpc7448hpc2.c (100%)
 rename board/{ = freescale}/mpc7448hpc2/tsi108_init.c (100%)
 rename board/{ = freescale}/mpc7448hpc2/u-boot.lds (100%)
 rename board/{ = freescale}/mpc8260ads/Makefile (100%)
 rename board/{ = freescale}/mpc8260ads/config.mk (100%)
 rename board/{ = freescale}/mpc8260ads/flash.c (100%)
 rename board/{ = freescale}/mpc8260ads/mpc8260ads.c (100%)
 rename board/{ = freescale}/mpc8266ads/Makefile (100%)
 rename board/{ = freescale}/mpc8266ads/config.mk (100%)
 rename board/{ = freescale}/mpc8266ads/flash.c (100%)
 rename board/{ = freescale}/mpc8266ads/mpc8266ads.c (100%)

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] [ARM] [RESUBMIT] Move ARM supplied dev boards to new board/arm directory

2008-03-20 Thread Jon Loeliger
On Thu, 2008-03-20 at 03:57, Peter Pearse wrote:

 Here git -M has decided that a new file 
 
 board/arm/arm.S 
 
 is actually a modified old file
 
 cpu/arm926ejs/versatile/reset.S

Eh, don't worry about that.  Git is just using
a heuristic to guess where that file might have
come from, as enabled by the -M flag.  There's
no problem if git gets it wrong, as the important
fact is that the _content_ of the files are still
intact and correct.  Identifying a copy or a move
is purely a secondary side effect for the purpose
of exposing smaller change-sets to the users here.

jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] include/autoconf.mk issue

2008-03-20 Thread Jon Loeliger
On Thu, 2008-03-20 at 10:32, Wolfgang Denk wrote:

 Um... that would fix this specific situation - but we might still run
 into the same problem with the next attempt to convert  code  to  the
 new config style.

Yeah, we just need to pick 'em off one-by-one... :-)

 For example, there might be code which might be compiled depending on
 CONFIG_PREBOOT.

Ah, as I understand that one, I think it gets solved in
a slightly different manner.  The kernel introduces a HAS
variant that indicates if the feature is enabled and
then uses something like CONFIG_HAS_PREBOOT to indicate
and test for its presence.  The actual _value_ remains
the CONFIG_PREBOOT symbol.

jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] FSL: Move board/mpc8260ads under board/freescale

2008-03-19 Thread Jon Loeliger
On Wed, 2008-03-05 at 18:05, Jon Loeliger wrote:
 Signed-off-by: Jon Loeliger [EMAIL PROTECTED]
 ---
  Makefile  |6 +++---
  board/{ = freescale}/mpc8260ads/Makefile |0 
  board/{ = freescale}/mpc8260ads/config.mk|0 
  board/{ = freescale}/mpc8260ads/flash.c  |0 
  board/{ = freescale}/mpc8260ads/mpc8260ads.c |0 
  5 files changed, 3 insertions(+), 3 deletions(-)
  rename board/{ = freescale}/mpc8260ads/Makefile (100%)
  rename board/{ = freescale}/mpc8260ads/config.mk (100%)
  rename board/{ = freescale}/mpc8260ads/flash.c (100%)
  rename board/{ = freescale}/mpc8260ads/mpc8260ads.c (100%)

Hi Wolfgang,

I was just wondering if you had decided on how to handle
this patch and the two following patches:

[PATCH] FSL: Move board/mpc8266ads under board/freescale
[PATCH] FSL: Move board/mpc7448hpc2 under board/freescale

Will you pick these up directly, or would you like me to
apply them to my mpc86xx repository for a pull request?

Thanks,
jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [RFC/PATCH] fix initdram / use of phys_addr_t

2008-03-12 Thread Jon Loeliger
Kumar Gala wrote:
 Wolfgang,
 
 Before I went and looked at every board that uses initdram I wanted to get
 some feedback of such a patch (for a wide majority of boards) would be
 acceptable.
 
 The idea is that initdram() should really have returned a 'unsigned long'.
 However if we are going to change everyone that has initdram I figure we
 should make it return a phys_addr_t.
 
 I believe you've had some discussions with Jon on the subject and I wanted
 to know if using 'phys_addr_t' here would be acceptable (before I looked
 at trying to fix up ~200 boards).
 
 The patch gives an example of what I'm looking at changing.
 
 - k

Just FYI, I am in full support of this proposed change to
use phys_addr_t.


 index cd8aad0..229d15a 100644
 --- a/include/common.h
 +++ b/include/common.h
 @@ -107,6 +107,8 @@ typedef volatile unsigned charvu_char;
  #include asm/blackfin.h
  #endif
 
 +#include asm/io.h
 +

I don't think asm/io.h is the right place for phys_addr_t.
However, adding it to asm/types.h might me.  That is where
Becky and I have been headed...

jdl

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] Add flash programming counter]

2008-03-07 Thread Jon Loeliger
On Fri, 2008-03-07 at 00:38, Stefan Roese wrote:

 I insist on nothing. I'm just pointing out, that the current implementation 
 can be enhanced.

How about adding a CONFIG_CFI_SHOW_PROGRESS option
that enable/disables this feature as well?

jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] FSL: Move board/mpc8260ads under board/freescale

2008-03-05 Thread Jon Loeliger
Signed-off-by: Jon Loeliger [EMAIL PROTECTED]
---
 Makefile  |6 +++---
 board/{ = freescale}/mpc8260ads/Makefile |0 
 board/{ = freescale}/mpc8260ads/config.mk|0 
 board/{ = freescale}/mpc8260ads/flash.c  |0 
 board/{ = freescale}/mpc8260ads/mpc8260ads.c |0 
 5 files changed, 3 insertions(+), 3 deletions(-)
 rename board/{ = freescale}/mpc8260ads/Makefile (100%)
 rename board/{ = freescale}/mpc8260ads/config.mk (100%)
 rename board/{ = freescale}/mpc8260ads/flash.c (100%)
 rename board/{ = freescale}/mpc8260ads/mpc8260ads.c (100%)

diff --git a/Makefile b/Makefile
index 5198e12..c4f6400 100644
--- a/Makefile
+++ b/Makefile
@@ -1612,7 +1612,7 @@ PQ2FADS-ZU_66MHz_config   \
 PQ2FADS-ZU_66MHz_lowboot_config\
:   unconfig
@mkdir -p $(obj)include
-   @mkdir -p $(obj)board/mpc8260ads
+   @mkdir -p $(obj)board/freescale/mpc8260ads
$(if $(findstring PQ2FADS,$@), \
@echo #define CONFIG_ADSTYPE CFG_PQ2FADS  $(obj)include/config.h, \
@echo #define CONFIG_ADSTYPE CFG_$(subst MPC,,$(word 1,$(subst _, 
,$@)))  $(obj)include/config.h)
@@ -1621,10 +1621,10 @@ PQ2FADS-ZU_66MHz_lowboot_config \
$(if $(findstring VR,$@), \
@echo #define CONFIG_8260_CLKIN 6600  $(obj)include/config.h))
@[ -z $(findstring lowboot_,$@) ] || \
-   { echo TEXT_BASE = 0xFF80 
$(obj)board/mpc8260ads/config.tmp ; \
+   { echo TEXT_BASE = 0xFF80 
$(obj)board/freescale/mpc8260ads/config.tmp ; \
  $(XECHO) ... with lowboot configuration ; \
}
-   @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
+   @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
 
 MPC8266ADS_config: unconfig
@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
diff --git a/board/mpc8260ads/Makefile b/board/freescale/mpc8260ads/Makefile
similarity index 100%
rename from board/mpc8260ads/Makefile
rename to board/freescale/mpc8260ads/Makefile
diff --git a/board/mpc8260ads/config.mk b/board/freescale/mpc8260ads/config.mk
similarity index 100%
rename from board/mpc8260ads/config.mk
rename to board/freescale/mpc8260ads/config.mk
diff --git a/board/mpc8260ads/flash.c b/board/freescale/mpc8260ads/flash.c
similarity index 100%
rename from board/mpc8260ads/flash.c
rename to board/freescale/mpc8260ads/flash.c
diff --git a/board/mpc8260ads/mpc8260ads.c 
b/board/freescale/mpc8260ads/mpc8260ads.c
similarity index 100%
rename from board/mpc8260ads/mpc8260ads.c
rename to board/freescale/mpc8260ads/mpc8260ads.c
-- 
1.5.4.3.340.g97b97


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] FSL: Move board/mpc7448hpc2 under board/freescale

2008-03-05 Thread Jon Loeliger
Signed-off-by: Jon Loeliger [EMAIL PROTECTED]
---
 Makefile|2 +-
 board/{ = freescale}/mpc7448hpc2/Makefile  |0 
 board/{ = freescale}/mpc7448hpc2/asm_init.S|0 
 board/{ = freescale}/mpc7448hpc2/config.mk |0 
 board/{ = freescale}/mpc7448hpc2/mpc7448hpc2.c |0 
 board/{ = freescale}/mpc7448hpc2/tsi108_init.c |0 
 board/{ = freescale}/mpc7448hpc2/u-boot.lds|0 
 7 files changed, 1 insertions(+), 1 deletions(-)
 rename board/{ = freescale}/mpc7448hpc2/Makefile (100%)
 rename board/{ = freescale}/mpc7448hpc2/asm_init.S (100%)
 rename board/{ = freescale}/mpc7448hpc2/config.mk (100%)
 rename board/{ = freescale}/mpc7448hpc2/mpc7448hpc2.c (100%)
 rename board/{ = freescale}/mpc7448hpc2/tsi108_init.c (100%)
 rename board/{ = freescale}/mpc7448hpc2/u-boot.lds (100%)

diff --git a/Makefile b/Makefile
index 66cb19a..0928677 100644
--- a/Makefile
+++ b/Makefile
@@ -2271,7 +2271,7 @@ EVB64260_750CX_config:unconfig
@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
 
 mpc7448hpc2_config:  unconfig
-   @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
+   @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
 
 P3G4_config: unconfig
@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
diff --git a/board/mpc7448hpc2/Makefile b/board/freescale/mpc7448hpc2/Makefile
similarity index 100%
rename from board/mpc7448hpc2/Makefile
rename to board/freescale/mpc7448hpc2/Makefile
diff --git a/board/mpc7448hpc2/asm_init.S 
b/board/freescale/mpc7448hpc2/asm_init.S
similarity index 100%
rename from board/mpc7448hpc2/asm_init.S
rename to board/freescale/mpc7448hpc2/asm_init.S
diff --git a/board/mpc7448hpc2/config.mk b/board/freescale/mpc7448hpc2/config.mk
similarity index 100%
rename from board/mpc7448hpc2/config.mk
rename to board/freescale/mpc7448hpc2/config.mk
diff --git a/board/mpc7448hpc2/mpc7448hpc2.c 
b/board/freescale/mpc7448hpc2/mpc7448hpc2.c
similarity index 100%
rename from board/mpc7448hpc2/mpc7448hpc2.c
rename to board/freescale/mpc7448hpc2/mpc7448hpc2.c
diff --git a/board/mpc7448hpc2/tsi108_init.c 
b/board/freescale/mpc7448hpc2/tsi108_init.c
similarity index 100%
rename from board/mpc7448hpc2/tsi108_init.c
rename to board/freescale/mpc7448hpc2/tsi108_init.c
diff --git a/board/mpc7448hpc2/u-boot.lds 
b/board/freescale/mpc7448hpc2/u-boot.lds
similarity index 100%
rename from board/mpc7448hpc2/u-boot.lds
rename to board/freescale/mpc7448hpc2/u-boot.lds
-- 
1.5.4.3.340.g97b97


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] FSL: Move board/mpc8266ads under board/freescale

2008-03-05 Thread Jon Loeliger
Signed-off-by: Jon Loeliger [EMAIL PROTECTED]
---
 Makefile  |2 +-
 board/{ = freescale}/mpc8266ads/Makefile |0 
 board/{ = freescale}/mpc8266ads/config.mk|0 
 board/{ = freescale}/mpc8266ads/flash.c  |0 
 board/{ = freescale}/mpc8266ads/mpc8266ads.c |0 
 5 files changed, 1 insertions(+), 1 deletions(-)
 rename board/{ = freescale}/mpc8266ads/Makefile (100%)
 rename board/{ = freescale}/mpc8266ads/config.mk (100%)
 rename board/{ = freescale}/mpc8266ads/flash.c (100%)
 rename board/{ = freescale}/mpc8266ads/mpc8266ads.c (100%)

diff --git a/Makefile b/Makefile
index c4f6400..66cb19a 100644
--- a/Makefile
+++ b/Makefile
@@ -1627,7 +1627,7 @@ PQ2FADS-ZU_66MHz_lowboot_config   \
@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
 
 MPC8266ADS_config: unconfig
-   @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
+   @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
 
 # PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit 
flash
 PM825_config   \
diff --git a/board/mpc8266ads/Makefile b/board/freescale/mpc8266ads/Makefile
similarity index 100%
rename from board/mpc8266ads/Makefile
rename to board/freescale/mpc8266ads/Makefile
diff --git a/board/mpc8266ads/config.mk b/board/freescale/mpc8266ads/config.mk
similarity index 100%
rename from board/mpc8266ads/config.mk
rename to board/freescale/mpc8266ads/config.mk
diff --git a/board/mpc8266ads/flash.c b/board/freescale/mpc8266ads/flash.c
similarity index 100%
rename from board/mpc8266ads/flash.c
rename to board/freescale/mpc8266ads/flash.c
diff --git a/board/mpc8266ads/mpc8266ads.c 
b/board/freescale/mpc8266ads/mpc8266ads.c
similarity index 100%
rename from board/mpc8266ads/mpc8266ads.c
rename to board/freescale/mpc8266ads/mpc8266ads.c
-- 
1.5.4.3.340.g97b97


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] Remove erroneous or extra spd.h #includers.

2008-03-04 Thread Jon Loeliger
Many of the spd.h #includers don't need it,
and wanted to have spd_sdram() declared instead.
Since they didn't get that, some also had open
coded extern declarations of it instead or as well.
Fix it all up by using spd_sdram.h where needed.

Signed-off-by: Jon Loeliger [EMAIL PROTECTED]
---

Wolfgang,

As discussed on IRC!

Built on all 85xx and 86xx boards.
Booted on a couple of each.

Thanks,
jdl


 board/atum8548/atum8548.c |3 +--
 board/freescale/mpc8323erdb/mpc8323erdb.c |5 -
 board/freescale/mpc832xemds/mpc832xemds.c |5 -
 board/freescale/mpc8349emds/mpc8349emds.c |4 +---
 board/freescale/mpc8349itx/mpc8349itx.c   |6 --
 board/freescale/mpc8360emds/mpc8360emds.c |4 
 board/freescale/mpc8360erdk/mpc8360erdk.c |1 -
 board/freescale/mpc837xemds/mpc837xemds.c |3 ---
 board/freescale/mpc837xerdb/mpc837xerdb.c |3 ---
 board/freescale/mpc8540ads/mpc8540ads.c   |5 +
 board/freescale/mpc8541cds/mpc8541cds.c   |4 +---
 board/freescale/mpc8544ds/mpc8544ds.c |4 +---
 board/freescale/mpc8548cds/mpc8548cds.c   |4 +---
 board/freescale/mpc8555cds/mpc8555cds.c   |4 +---
 board/freescale/mpc8560ads/mpc8560ads.c   |4 +---
 board/freescale/mpc8568mds/mpc8568mds.c   |4 +---
 board/freescale/mpc8610hpcd/mpc8610hpcd.c |6 +-
 board/freescale/mpc8641hpcn/mpc8641hpcn.c |6 +-
 board/mpc8540eval/mpc8540eval.c   |6 ++
 board/pm854/pm854.c   |5 +
 board/pm856/pm856.c   |6 ++
 board/sbc8349/sbc8349.c   |5 +
 board/sbc8548/sbc8548.c   |4 +---
 board/sbc8560/sbc8560.c   |6 ++
 board/sbc8641d/sbc8641d.c |6 +-
 board/stxgp3/stxgp3.c |5 +
 board/stxssa/stxssa.c |5 +
 board/tqm834x/tqm834x.c   |2 --
 board/tqm85xx/sdram.c |1 -
 board/tqm85xx/tqm85xx.c   |2 --
 30 files changed, 23 insertions(+), 105 deletions(-)

diff --git a/board/atum8548/atum8548.c b/board/atum8548/atum8548.c
index f11abd8..2f6ae29 100644
--- a/board/atum8548/atum8548.c
+++ b/board/atum8548/atum8548.c
@@ -30,7 +30,7 @@
 #include asm/immap_85xx.h
 #include asm/immap_fsl_pci.h
 #include asm/io.h
-#include spd.h
+#include spd_sdram.h
 #include miiphy.h
 #include libfdt.h
 #include fdt_support.h
@@ -39,7 +39,6 @@
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 
-extern long int spd_sdram(void);
 long int fixed_sdram(void);
 
 int board_early_init_f (void)
diff --git a/board/freescale/mpc8323erdb/mpc8323erdb.c 
b/board/freescale/mpc8323erdb/mpc8323erdb.c
index 2fc4fd6..88d5e8f 100644
--- a/board/freescale/mpc8323erdb/mpc8323erdb.c
+++ b/board/freescale/mpc8323erdb/mpc8323erdb.c
@@ -13,18 +13,13 @@
 #include ioports.h
 #include mpc83xx.h
 #include i2c.h
-#include spd.h
 #include miiphy.h
 #include command.h
 #include libfdt.h
 #if defined(CONFIG_PCI)
 #include pci.h
 #endif
-#if defined(CONFIG_SPD_EEPROM)
-#include spd_sdram.h
-#else
 #include asm/mmu.h
-#endif
 
 const qe_iop_conf_t qe_iop_conf_tab[] = {
/* UCC3 */
diff --git a/board/freescale/mpc832xemds/mpc832xemds.c 
b/board/freescale/mpc832xemds/mpc832xemds.c
index 6adf7e7..c10b30f 100644
--- a/board/freescale/mpc832xemds/mpc832xemds.c
+++ b/board/freescale/mpc832xemds/mpc832xemds.c
@@ -16,17 +16,12 @@
 #include ioports.h
 #include mpc83xx.h
 #include i2c.h
-#include spd.h
 #include miiphy.h
 #include command.h
 #if defined(CONFIG_PCI)
 #include pci.h
 #endif
-#if defined(CONFIG_SPD_EEPROM)
-#include spd_sdram.h
-#else
 #include asm/mmu.h
-#endif
 #if defined(CONFIG_OF_LIBFDT)
 #include libfdt.h
 #endif
diff --git a/board/freescale/mpc8349emds/mpc8349emds.c 
b/board/freescale/mpc8349emds/mpc8349emds.c
index 9f4ac8e..6c82596 100644
--- a/board/freescale/mpc8349emds/mpc8349emds.c
+++ b/board/freescale/mpc8349emds/mpc8349emds.c
@@ -28,11 +28,9 @@
 #include asm/mpc8349_pci.h
 #include i2c.h
 #include spi.h
-#include spd.h
 #include miiphy.h
-#if defined(CONFIG_SPD_EEPROM)
 #include spd_sdram.h
-#endif
+
 #if defined(CONFIG_OF_LIBFDT)
 #include libfdt.h
 #endif
diff --git a/board/freescale/mpc8349itx/mpc8349itx.c 
b/board/freescale/mpc8349itx/mpc8349itx.c
index 8c19ad6..972361f 100644
--- a/board/freescale/mpc8349itx/mpc8349itx.c
+++ b/board/freescale/mpc8349itx/mpc8349itx.c
@@ -24,19 +24,13 @@
 #include ioports.h
 #include mpc83xx.h
 #include i2c.h
-#include spd.h
 #include miiphy.h
-
 #ifdef CONFIG_PCI
 #include asm/mpc8349_pci.h
 #include pci.h
 #endif
-
-#ifdef CONFIG_SPD_EEPROM
 #include spd_sdram.h
-#else
 #include asm/mmu.h
-#endif
 #if defined(CONFIG_OF_LIBFDT)
 #include libfdt.h
 #endif
diff --git a/board/freescale/mpc8360emds/mpc8360emds.c 
b/board/freescale/mpc8360emds/mpc8360emds.c
index f909a33..d90cdb3 100644
--- a/board/freescale/mpc8360emds/mpc8360emds.c
+++ b/board/freescale/mpc8360emds

Re: [U-Boot-Users] [PATCH 5/8] [new uImage] Add libfdt support to mkimage

2008-03-03 Thread Jon Loeliger
Jerry Van Baren wrote:
 Marian Balakowicz wrote:
 From: Bartlomiej Sieka [EMAIL PROTECTED]

 Signed-off-by: Bartlomiej Sieka [EMAIL PROTECTED]
 ---

  Makefile  |3 +++
  include/libfdt_env.h  |4 
  libfdt/fdt.c  |4 
  libfdt/fdt_ro.c   |4 
  libfdt/fdt_rw.c   |4 
  libfdt/fdt_strerror.c |4 
  libfdt/fdt_wip.c  |4 
  tools/.gitignore  |7 +++
  tools/Makefile|   51 
 ++---
  tools/fdt_host.h  |   28 +++
  tools/mkimage.h   |1 +
  11 files changed, 111 insertions(+), 3 deletions(-)
  create mode 100644 tools/fdt_host.h
 
 A, I'm not wild about this, but I cannot suggest a better way. :-(
 
 All these (trivial) touches to libfdt/* are annoying and could cause 
 patch tracking of the dtc/libfdt source to break.  I guess that is the 
 risk we live with unless or until someone comes up with a better way.  :-(
 
 Best regards,
 gvb
 

Well, the obvious approach would be to format up the
patches and submit them to the [EMAIL PROTECTED]
list along with an explanation as to why the libfdt
changes are needed, make sure they are compatible with
the kernel code as well.  We'll see how badly Gibson
chokes, and if the libfdt maintainer takes 'em. :-)

jdl

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH 0/2] LIBFDT: Two more Gibson patches

2008-03-03 Thread Jon Loeliger
Jerry Van Baren wrote:
 For the record, publishing two more patches of libfdt from the dtc
 master repository.  I will apply them to the u-boot-fdt repository in
 preparation for the next merge window.
 
 Best regards,
 gvb

Double for the record, I have a backlog of
another half dozen from Gibson that I need
to apply still as well.

jdl


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] 86xx: Fix renamed GUR symbols in sbc8641d board.

2008-02-25 Thread Jon Loeliger
Back in commit a551cee99ad1d1da20fd23ad265de47448852f56
(86xx: Fix GUR PCI config registers properly), we should have
changed the MPC86xx_PORBMSR_HA and MPC86xx_PORDEVSR_IO_SEL
symbols in the sbc8641d board as well.  Fix this oversight.

Signed-off-by: Jon Loeliger [EMAIL PROTECTED]
---

Wolfgang,

Argh.  This fixes the sbc8641d build problem.

I am dumb.

Thanks,
jdl

 board/sbc8641d/sbc8641d.c |6 --
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/board/sbc8641d/sbc8641d.c b/board/sbc8641d/sbc8641d.c
index 78656e9..e7334ef 100644
--- a/board/sbc8641d/sbc8641d.c
+++ b/board/sbc8641d/sbc8641d.c
@@ -230,7 +230,8 @@ void pci_init_board(void)
volatile immap_t *immap = (immap_t *) CFG_CCSRBAR;
volatile ccsr_gur_t *gur = immap-im_gur;
uint devdisr = gur-devdisr;
-   uint io_sel = (gur-pordevsr  MPC86xx_PORDEVSR_IO_SEL)  16;
+   uint io_sel = (gur-pordevsr  MPC8641_PORDEVSR_IO_SEL)
+MPC8641_PORDEVSR_IO_SEL_SHIFT;
 
 #ifdef CONFIG_PCI1
 {
@@ -238,7 +239,8 @@ void pci_init_board(void)
extern void fsl_pci_init(struct pci_controller *hose);
struct pci_controller *hose = pci1_hose;
 #ifdef DEBUG
-   uint host1_agent = (gur-porbmsr  MPC86xx_PORBMSR_HA)  17;
+   uint host1_agent = (gur-porbmsr  MPC8641_PORBMSR_HA)
+MPC8641_PORBMSR_HA_SHIFT;
uint pex1_agent = (host1_agent == 0) || (host1_agent == 1);
 #endif
if ((io_sel == 2 || io_sel == 3 || io_sel == 5
-- 
1.5.4.rc5.19.g0509eb




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Pull Request for u-boot-mpc86xx.git

2008-02-21 Thread Jon Loeliger
Wolfgang,

I have now built, tested, debugged, and fixed a couple
problems that were present in the v1.3.2-rc1 candidate
for the MPC8610HPCD board.  With these patchs below, both
the MPC8610HPCD and MPC8641HPCN boards build and boot,
and the sbc8641d builds (I can't test it).

Please pick these up for the v1.3.2 release.

Thanks,
jdl


The following changes since commit b6f29c84c208a091f95a10cbc9852d729659ba20:
  Jean-Christophe PLAGNIOL-VILLARD (1):
s3c24x0: Fix unused variable 'i' in function 'serial_init_dev'

are available in the git repository at:

  git://www.denx.de/git/u-boot-mpc86xx.git master

Jean-Christophe PLAGNIOL-VILLARD (2):
  mpc86xx: Fix implicit declaration of functions 'init_laws' and 'disable_l\
aw'
  mpc86xx: Fix unused variable 'config' and 'immap'

Jon Loeliger (5):
  86xx: Convert sbc8641d to use libfdt.
  8610HPCD: Fix typos in two PCI setup registers.
  8610HPCD: Don't use VIDEO/CFB_CONSOLE by default.
  86xx: Fix GUR PCI config registers properly.
  8610HPCD: Document the flashbank selection switches.

 board/freescale/mpc8610hpcd/mpc8610hpcd.c |7 ++-
 board/freescale/mpc8641hpcn/mpc8641hpcn.c |   24 +++
 board/sbc8641d/sbc8641d.c |   41 +---
 cpu/mpc86xx/Makefile  |   17 ++--
 cpu/mpc86xx/cpu.c |   61 -
 cpu/mpc86xx/cpu_init.c|1 +
 cpu/mpc86xx/fdt.c |   35 
 cpu/mpc86xx/spd_sdram.c   |   10 +++--
 doc/README.mpc8610hpcd|6 +++
 include/asm-ppc/immap_86xx.h  |   12 --
 include/configs/MPC8610HPCD.h |2 +-
 include/configs/sbc8641d.h|   10 +---
 12 files changed, 110 insertions(+), 116 deletions(-)
 create mode 100644 cpu/mpc86xx/fdt.c

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] 8610HPCD: Don't use VIDEO/CFB_CONSOLE by default.

2008-02-20 Thread Jon Loeliger
Without an actual supported video card hooked up, enabling
the CONFIG_VIDEO by default just makes it look broken by
routing all console output to the video card.   Don't.

Signed-off-by: Jon Loeliger [EMAIL PROTECTED]
---

Wolfgang,

I'll drop this in my -mpc86xx tree for a -rc2 pickup!

Thanks,
jdl


 include/configs/MPC8610HPCD.h |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/configs/MPC8610HPCD.h b/include/configs/MPC8610HPCD.h
index 3920147..9e70198 100644
--- a/include/configs/MPC8610HPCD.h
+++ b/include/configs/MPC8610HPCD.h
@@ -24,7 +24,7 @@
 #define CONFIG_FSL_DIU_FB  1   /* FSL DIU */
 
 /* video */
-#define CONFIG_VIDEO
+#undef CONFIG_VIDEO
 
 #if defined(CONFIG_VIDEO)
 #define CONFIG_CFB_CONSOLE
-- 
1.5.4.rc5.19.g0509eb


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] 86xx: Fix GUR PCI config registers properly.

2008-02-20 Thread Jon Loeliger
Back in commit 975a083a5ef785c414b35f9c5b8ae25b26b41524 where
I tried to 8610HPCD: Fix typos in two PCI setup registers, I
botched it due to not realizing that 8610 and 8641 had different
Global Utility Register defintions, one of which was like 85xx,
and the other wasn't.  Correct this problem by introducing two
symbols, one for each 86xx SoC, but neither of which is named
anything like 85xx.

My bad.  Lovely Wednesday with git bisect.  You know.

Signed-off-by: Jon Loeliger [EMAIL PROTECTED]
---

Wolfgang,

I'll drop this in my -mpc86xx tree for a -rc2 pickup!

Thanks,
jdl


 board/freescale/mpc8610hpcd/mpc8610hpcd.c |6 --
 board/freescale/mpc8641hpcn/mpc8641hpcn.c |6 --
 include/asm-ppc/immap_86xx.h  |   10 --
 3 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/board/freescale/mpc8610hpcd/mpc8610hpcd.c 
b/board/freescale/mpc8610hpcd/mpc8610hpcd.c
index d5a4f0e..16acbbe 100644
--- a/board/freescale/mpc8610hpcd/mpc8610hpcd.c
+++ b/board/freescale/mpc8610hpcd/mpc8610hpcd.c
@@ -280,8 +280,10 @@ void pci_init_board(void)
volatile immap_t *immap = (immap_t *) CFG_CCSRBAR;
volatile ccsr_gur_t *gur = immap-im_gur;
uint devdisr = gur-devdisr;
-   uint io_sel = (gur-pordevsr  MPC86xx_PORDEVSR_IO_SEL)  19;
-   uint host_agent = (gur-porbmsr  MPC86xx_PORBMSR_HA)  16;
+   uint io_sel = (gur-pordevsr  MPC8610_PORDEVSR_IO_SEL)
+MPC8610_PORDEVSR_IO_SEL_SHIFT;
+   uint host_agent = (gur-porbmsr  MPC8610_PORBMSR_HA)
+MPC8610_PORBMSR_HA_SHIFT;
 
printf(  pci_init_board: devdisr=%x, io_sel=%x, host_agent=%x\n,
devdisr, io_sel, host_agent);
diff --git a/board/freescale/mpc8641hpcn/mpc8641hpcn.c 
b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
index ae79143..0e451dc 100644
--- a/board/freescale/mpc8641hpcn/mpc8641hpcn.c
+++ b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
@@ -206,7 +206,8 @@ void pci_init_board(void)
volatile immap_t *immap = (immap_t *) CFG_CCSRBAR;
volatile ccsr_gur_t *gur = immap-im_gur;
uint devdisr = gur-devdisr;
-   uint io_sel = (gur-pordevsr  MPC86xx_PORDEVSR_IO_SEL)  16;
+   uint io_sel = (gur-pordevsr  MPC8641_PORDEVSR_IO_SEL)
+MPC8641_PORDEVSR_IO_SEL_SHIFT;
 
 #ifdef CONFIG_PCI1
 {
@@ -214,7 +215,8 @@ void pci_init_board(void)
extern void fsl_pci_init(struct pci_controller *hose);
struct pci_controller *hose = pci1_hose;
 #ifdef DEBUG
-   uint host1_agent = (gur-porbmsr  MPC86xx_PORBMSR_HA)  17;
+   uint host1_agent = (gur-porbmsr  MPC8641_PORBMSR_HA)
+MPC8641_PORBMSR_HA_SHIFT;
uint pex1_agent = (host1_agent == 0) || (host1_agent == 1);
 #endif
if ((io_sel == 2 || io_sel == 3 || io_sel == 5
diff --git a/include/asm-ppc/immap_86xx.h b/include/asm-ppc/immap_86xx.h
index 6143062..7526061 100644
--- a/include/asm-ppc/immap_86xx.h
+++ b/include/asm-ppc/immap_86xx.h
@@ -1256,10 +1256,16 @@ typedef struct ccsr_rio {
 typedef struct ccsr_gur {
uintporpllsr;   /* 0xe - POR PLL ratio status register */
uintporbmsr;/* 0xe0004 - POR boot mode status register */
-#define MPC86xx_PORBMSR_HA  0x0006
+#define MPC8610_PORBMSR_HA  0x0007
+#define MPC8610_PORBMSR_HA_SHIFT   16
+#define MPC8641_PORBMSR_HA  0x0006
+#define MPC8641_PORBMSR_HA_SHIFT   17
uintporimpscr;  /* 0xe0008 - POR I/O impedance status and 
control register */
uintpordevsr;   /* 0xe000c - POR I/O device status regsiter */
-#define MPC86xx_PORDEVSR_IO_SEL0x000F
+#define MPC8610_PORDEVSR_IO_SEL0x0038
+#define MPC8610_PORDEVSR_IO_SEL_SHIFT  19
+#define MPC8641_PORDEVSR_IO_SEL0x000F
+#define MPC8641_PORDEVSR_IO_SEL_SHIFT  16
 #define MPC86xx_PORDEVSR_CORE1TE   0x0080 /* ASMP (Core1 addr trans) */
uintpordbgmsr;  /* 0xe0010 - POR debug mode status register */
charres1[12];
-- 
1.5.4.rc5.19.g0509eb


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] mpc86xx: Fix implicit declaration of functions 'init_laws' and 'disable_law'

2008-02-18 Thread Jon Loeliger
Jean-Christophe PLAGNIOL-VILLARD wrote:
 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED]
 
 diff --git a/cpu/mpc86xx/cpu_init.c b/cpu/mpc86xx/cpu_init.c
 index ab5906d..0efd855 100644
 --- a/cpu/mpc86xx/cpu_init.c
 +++ b/cpu/mpc86xx/cpu_init.c
 @@ -28,6 +28,7 @@
  
  #include common.h
  #include mpc86xx.h
 +#include asm/fsl_law.h
  
  DECLARE_GLOBAL_DATA_PTR;
  

*sigh*  That I'll take and apply.

Thanks,
jdl


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] mpc86xx: Fix unused variable 'config' and 'immap'

2008-02-18 Thread Jon Loeliger
Jean-Christophe PLAGNIOL-VILLARD wrote:
 and remove useless CONFIG_DDR_INTERLEAVE
 
 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED]
 

Hmmm...  While I'll take this for this release, be aware
that all this DDR setup code is actively being rewritten.
It will be totally different soon.

Thanks,
jdl


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] 86xx: Convert sbc8641d to use libfdt.

2008-02-18 Thread Jon Loeliger
Jon Loeliger wrote:

 Wolfgang,
 
 Although the sbc8641d isn't really a FSL board, I'm
 going to include this patch in my -mpc86xx repository
 as this board will need to be brought up-to-date to
 fix the rest of the 86xx board builds now too.
 
 Built on all 86xx boards, booted and tested on 8641HPCN.
 Can someone who has an sbc8641d please verify this?
 
 Thanks,
 jdl

I've pushed these patches to the u-boot-mpc86xx.git repo
on denx.de to expedite the testing of the sbc8641d!

Enjoy,
jdl


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] 86xx: Convert sbc8641d to use libfdt.

2008-02-18 Thread Jon Loeliger
This is the proper fix for a missing closing brace in the function
ft_cpu_setup() noticed by joe.hamman at embeddedspecialties.com.
The ft_cpu_setup() function in mpc8641hpcn.c should have been
removed earlier as it was under the obsolete CONFIG_OF_FLAT_TREE,
but was missed.  Only, the sbc8641d was nominally still using it.
It all got ripped out, and the funcality that was in ft_board_setup()
was refactored to remove the CPU portions into the new file
cpu/mpc86xx/fdt.c instead.  Make sbc8641d use this now.

Based loosely on an original patch from [EMAIL PROTECTED]

Signed-off-by: Jon Loeliger [EMAIL PROTECTED]
---

Wolfgang,

Although the sbc8641d isn't really a FSL board, I'm
going to include this patch in my -mpc86xx repository
as this board will need to be brought up-to-date to
fix the rest of the 86xx board builds now too.

Built on all 86xx boards, booted and tested on 8641HPCN.
Can someone who has an sbc8641d please verify this?

Thanks,
jdl


 board/freescale/mpc8641hpcn/mpc8641hpcn.c |   18 +---
 board/sbc8641d/sbc8641d.c |   41 +---
 cpu/mpc86xx/Makefile  |   17 ++--
 cpu/mpc86xx/cpu.c |   61 -
 cpu/mpc86xx/fdt.c |   35 
 include/configs/sbc8641d.h|   10 +---
 6 files changed, 80 insertions(+), 102 deletions(-)
 create mode 100644 cpu/mpc86xx/fdt.c

diff --git a/board/freescale/mpc8641hpcn/mpc8641hpcn.c 
b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
index 8278789..ae79143 100644
--- a/board/freescale/mpc8641hpcn/mpc8641hpcn.c
+++ b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
@@ -321,28 +321,16 @@ void pci_init_board(void)
 
 }
 
+
 #if defined(CONFIG_OF_BOARD_SETUP)
+
 void
 ft_board_setup(void *blob, bd_t *bd)
 {
int node, tmp[2];
const char *path;
 
-   fdt_fixup_ethernet(blob, bd);
-
-   do_fixup_by_prop_u32(blob, device_type, cpu, 4,
-timebase-frequency, bd-bi_busfreq / 4, 1);
-   do_fixup_by_prop_u32(blob, device_type, cpu, 4,
-bus-frequency, bd-bi_busfreq, 1);
-   do_fixup_by_prop_u32(blob, device_type, cpu, 4,
-clock-frequency, bd-bi_intfreq, 1);
-   do_fixup_by_prop_u32(blob, device_type, soc, 4,
-bus-frequency, bd-bi_busfreq, 1);
-
-   do_fixup_by_compat_u32(blob, ns16550,
-  clock-frequency, bd-bi_busfreq, 1);
-
-   fdt_fixup_memory(blob, bd-bi_memstart, bd-bi_memsize);
+   ft_cpu_setup(blob, bd);
 
node = fdt_path_offset(blob, /aliases);
tmp[0] = 0;
diff --git a/board/sbc8641d/sbc8641d.c b/board/sbc8641d/sbc8641d.c
index 7adc42f..78656e9 100644
--- a/board/sbc8641d/sbc8641d.c
+++ b/board/sbc8641d/sbc8641d.c
@@ -35,11 +35,8 @@
 #include asm/immap_86xx.h
 #include asm/immap_fsl_pci.h
 #include spd.h
-
-#if defined(CONFIG_OF_FLAT_TREE)
-#include ft_build.h
-extern void ft_cpu_setup (void *blob, bd_t * bd);
-#endif
+#include libfdt.h
+#include fdt_support.h
 
 #if defined(CONFIG_DDR_ECC)  !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
 extern void ddr_enable_ecc (unsigned int dram_size);
@@ -341,18 +338,34 @@ void pci_init_board(void)
 
 }
 
-#if defined(CONFIG_OF_FLAT_TREE)  defined(CONFIG_OF_BOARD_SETUP)
-void ft_board_setup (void *blob, bd_t * bd)
+
+#if defined(CONFIG_OF_BOARD_SETUP)
+
+void
+ft_board_setup (void *blob, bd_t *bd)
 {
-   u32 *p;
-   int len;
+   int node, tmp[2];
+   const char *path;
 
-   ft_cpu_setup (blob, bd);
+   ft_cpu_setup(blob, bd);
 
-   p = ft_get_prop (blob, /memory/reg, len);
-   if (p != NULL) {
-   *p++ = cpu_to_be32 (bd-bi_memstart);
-   *p = cpu_to_be32 (bd-bi_memsize);
+   node = fdt_path_offset(blob, /aliases);
+   tmp[0] = 0;
+   if (node = 0) {
+#ifdef CONFIG_PCI1
+   path = fdt_getprop(blob, node, pci0, NULL);
+   if (path) {
+   tmp[1] = pci1_hose.last_busno - pci1_hose.first_busno;
+   do_fixup_by_path(blob, path, bus-range, tmp, 8, 1);
+   }
+#endif
+#ifdef CONFIG_PCI2
+   path = fdt_getprop(blob, node, pci1, NULL);
+   if (path) {
+   tmp[1] = pci2_hose.last_busno - pci2_hose.first_busno;
+   do_fixup_by_path(blob, path, bus-range, tmp, 8, 1);
+   }
+#endif
}
 }
 #endif
diff --git a/cpu/mpc86xx/Makefile b/cpu/mpc86xx/Makefile
index 6d9300e..537f62a 100644
--- a/cpu/mpc86xx/Makefile
+++ b/cpu/mpc86xx/Makefile
@@ -28,13 +28,20 @@ include $(TOPDIR)/config.mk
 
 LIB= $(obj)lib$(CPU).a
 
-START  = start.o #resetvec.o
+START  = start.o
 SOBJS  = cache.o
-COBJS  = traps.o cpu.o cpu_init.o speed.o interrupts.o \
- spd_sdram.o
 
-SRCS   := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
+COBJS-y+= traps.o

Re: [U-Boot-Users] [PATCH] Fix return value of mtest when CFG_ALT_MEMTEST set

2008-02-15 Thread Jon Loeliger
Guennadi Liakhovetski wrote:
 On Thu, 14 Feb 2008, Wolfgang Denk wrote:
 
 In message [EMAIL PROTECTED] you wrote:
 Fix a missing return statement from a non-void function.

 Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
 Applied, thanks.

 Ummm... I had to apply this manually:

 error: patch failed: common/cmd_mem.c:695
 error: common/cmd_mem.c: patch does not apply
 fatal: sha1 information is lacking or useless (common/cmd_mem.c).
 Repository lacks necessary blobs to fall back on 3-way merge.
 Cannot fall back to three-way merge.
 Patch failed at 0001.

 How old is your source tree?
 
 I produced the patch against 1.2.0, but before that I've verified, that 
 the file, or at least the affected function hasn't changed, so, thought it 
 would be ok. Sorry. But what does the error message actually mean? Is it 
 just because I referenced some way too old commit?
 

No.  Way too old is not the issue with the error message.

First off, the patch didn't apply directly to the file.
That's our key that the patch isn't up-to-date with the
current tree, as that file has changed significantly enough
that your changes are no longer applicable.

In that situation, git tries to do a clever trick by backing
off to a common ancestor where the patch was originally created.
That is the first SHA1 in the diff header, assuming the patch
was generated by git.  If it can find this commit, git knows that
the patch will apply at that point as that is what your presumably
started with for your patch creation.  Git will apply the patch
there, and try to follow the changes forward in an attempt to
bring the changes up to date itself.

However, in this case, the SHA1 was only in your repository, and
not a common commit that was also in the public repository.  Thus,
git couldn't fall back on the three-way merge trick, and ultimately
was not able to apply your patch.

The remedy is to rebase your patch to a current repository and
resubmit it! :-)  Chance are it will require some conflict resolution.

jdl

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] 85xx, 86xx: Determine I2C clock frequencies and store in global_data

2008-02-04 Thread Jon Loeliger
Wolfgang Denk wrote:
 Hello Andy  Jon,
 
 in message [EMAIL PROTECTED] Jon wrote:
 Andy Fleming wrote:
 On Jan 9, 2008 2:35 PM, Timur Tabi [EMAIL PROTECTED] wrote:
 Update global_data to define i2c1_clk and i2c2_clk to 85xx and 86xx.

 Update the get_clocks() function in 85xx and 86xx to determine the I2C
 clock frequency and store it in gd-i2c1_clk and gd-i2c2_clk.

 Signed-off-by: Timur Tabi [EMAIL PROTECTED]
 Acked-by: Andy Fleming [EMAIL PROTECTED]
 Acked-by: Jon Loeliger [EMAIL PROTECTED]
 
 I rely on either of you picking this up and applying it to his
 custodian repo. Please confirm.
 
 Best regards,
 
 Wolfgang Denk
 

Andy, Can you get this one please?

Thanks,
jdl


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] mpc8544 u-boot support

2008-02-01 Thread Jon Loeliger
Kumar Gala wrote:
 On Feb 1, 2008, at 7:24 AM, Clemens Koller wrote:
 
 Leonid schrieb:
 Hi:

 I am not new in u-boot, but this is the first time I must deal with
 Freescale CPU, namely mpc8544 (I have been working so far with
 Microblaze, ARM9, ppc440 and ppc405). My board is going to be very  
 close to Interpid reference design.


 I agree with the guys that using the latest u-boot/kernel from git is  
 your best choice.  We've been making a lot of changes to 85xx support  
 recently and if you intend for your board port to get back into the  
 community it will be easier to start from something current.
 

I might also point out that there is also a specific custodian
repository on denx.de for 85xx.

jdl

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] mpc8544 u-boot support

2008-02-01 Thread Jon Loeliger
On Fri, 2008-02-01 at 10:35, Leonid wrote:
 Yes, I saw in u-boot depot though didn't try to run it yet (didn't get
 reference design). Is it the same called Interpid?
 
 Leonid.

Yes.

jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH 1/3 RESEND] ppc4xx: Add initial esd PMC440 board files

2008-01-30 Thread Jon Loeliger
Detlev Zundel wrote:
 Hi Stefan,
 
 Hi Matthias,

 On Friday 28 December 2007, Matthias Fuchs wrote:
 This patch adds the first files for the new esd PMC440 boards.
 The next two patches will complete the PMC440 board support.

 Signed-off-by: Matthias Fuchs [EMAIL PROTECTED]
 ---
  board/{amcc/sequoia = esd/pmc440}/Makefile|4 +-
  board/{amcc/sequoia = esd/pmc440}/config.mk   |0
  board/{amcc/sequoia = esd/pmc440}/init.S  |   64 +--
  .../sequoia/sequoia.c = esd/pmc440/pmc440.c}  |  564
 +++- board/esd/pmc440/pmc440.h  | 
 154 ++
  board/{amcc/sequoia = esd/pmc440}/sdram.c |0
  board/{amcc/sequoia = esd/pmc440}/sdram.h |0
  board/{amcc/sequoia = esd/pmc440}/u-boot-nand.lds |0
  board/{amcc/sequoia = esd/pmc440}/u-boot.lds  |0
  9 files changed, 595 insertions(+), 191 deletions(-)
  copy board/{amcc/sequoia = esd/pmc440}/Makefile (95%)
  copy board/{amcc/sequoia = esd/pmc440}/config.mk (100%)
  copy board/{amcc/sequoia = esd/pmc440}/init.S (71%)
  copy board/{amcc/sequoia/sequoia.c = esd/pmc440/pmc440.c} (57%)
  create mode 100644 board/esd/pmc440/pmc440.h
  copy board/{amcc/sequoia = esd/pmc440}/sdram.c (100%)
  copy board/{amcc/sequoia = esd/pmc440}/sdram.h (100%)
  copy board/{amcc/sequoia = esd/pmc440}/u-boot-nand.lds (100%)
  copy board/{amcc/sequoia = esd/pmc440}/u-boot.lds (100%)
 This option you used to make the patches smaller (find-copies or something 
 like this) really makes reviewing not easy. And additionally the patch 
 doesn't apply anymore, since the reference (sequoia) has changed in my non 
 publiched branch already. Another reason why I would like to see a 100k size 
 limit on this list.

 So Matthias, could you please resend these 3 patches without this option to 
 me 
 directly?
 
 This failure mode of git is so annoying, effectively rendering the nice
 patch format useless, that we researched a little bit deeper.

Which failure mode?  I missed the description of a failure
anywhere in this discussion.  Is there a repeatable bug setup
that duplicates this failure?

Are you just referring to it not finding copies in patches
by default?  And that in this case someone used them to 
make the patch smaller?  I mean, if it says 100% copy, then
it is a literal move, and if it is fractional, the relevant
diffs should be present in the patch still anyway.

 Am I correct to assume that you tried to apply the patch with plain
 git-am only, i.e. without using -3?
 
 Because by now I am pretty much convinced that you should have been able
 to successfully use it with a git-am -3 as this invokation really
 tries to do a merge of the recorded identities of the relevant blobs
 instead of only applying diffs.

Right.  As long as the SHA1 in the patch are present in
the repository to which the patch is being applied, it will
attempt to revert to a 3-way merge based on that ancestor.

 For the git savvy among the readers on a lower level this uses
 --build-fake-ancestor from git-apply although this option does not
 lend itself to easy usage from a command line.

Uh, -3 on a git am command is pretty easy, isn't it? :-)

Which might be a subtle way of saying that I missed
your point, perhaps?

jdl

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] latest (1.3.1) doesn't compile: Makefile issue

2008-01-23 Thread Jon Loeliger
Tales Toledo wrote:
 Hi
 
 I saw a previous discussion but I think main reason why 1.3.1 doesn't
 compile is different from mentioned there.
 I had the same error trying to compile to EP88x with eldk 3.1 toolchains.
 
 It seems that /common/Makefile conditional CONFIG_CMD_FLASH isn't working 
 fine.
 It should be set at previous configuration files like config.mk but it
 is just set at header files.
 
 I just change the line as follow I got it work.
 
 #COBJS-$(CONFIG_CMD_FLASH) += cmd_flash.o
 COBJS-y += cmd_flash.o
 
 I'm not familiar with this new Makefile style since I have used old
 u-boot versions.
 Any help to make this work properly is appreciated.
 

The line you commented-out is the _new_ U-Boot
Makefile style.  Expect much, much more of it!

If your port needs the cmd_flash file, then you
need to ensure that CONFIG_CMD_FLASH is #define'd
in your port config .h file.  Then, ensure that it
is also appearing in the autoconf.mk file after it
is generated too.

jdl

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] 86xx: Fix compilation warning in sys_eprom.c

2008-01-23 Thread Jon Loeliger

sys_eeprom.c:82:9: warning: unknown escape sequence '\/'

Signed-off-by: Jon Loeliger [EMAIL PROTECTED]
---

Wolfgang,

Could you please apply this bugfix directly?

Thanks,
jdl


 board/freescale/common/sys_eeprom.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/freescale/common/sys_eeprom.c 
b/board/freescale/common/sys_eeprom.c
index 44c0978..c8e17d0 100644
--- a/board/freescale/common/sys_eeprom.c
+++ b/board/freescale/common/sys_eeprom.c
@@ -79,7 +79,7 @@ int mac_show(void)
/* Show Build Date,
 * BCD date values, as YYMMDDhhmmss.
 */
-   printf(Date 20%02x\/%02x\/%02x %02x:%02x:%02x\n,
+   printf(Date 20%02x/%02x/%02x %02x:%02x:%02x\n,
   mac_data.date[0],
   mac_data.date[1],
   mac_data.date[2],
-- 
1.5.4.rc0


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] ppc4xx: Fix remaining CONFIG_COMMANDS in 4xx files

2008-01-17 Thread Jon Loeliger
Stefan Roese wrote:
 Signed-off-by: Stefan Roese [EMAIL PROTECTED]
 ---
  board/amcc/kilauea/cmd_pll.c |2 +-
  board/amcc/makalu/cmd_pll.c  |2 +-
  include/configs/PMC440.h |4 ++--
  include/configs/kilauea.h|2 +-
  include/configs/makalu.h |2 +-
  5 files changed, 6 insertions(+), 6 deletions(-)
 

Acked-by: Jon Loelier [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] pcmcia: Remove CONFIG_COMMANDS from marubun pcmcia driver

2008-01-17 Thread Jon Loeliger
Nobuhiro Iwamatsu wrote:
 2008/1/16, Jon Loeliger [EMAIL PROTECTED]:
 On Tue, 2008-01-15 at 11:46, Nobuhiro Iwamatsu wrote:
 Signed-off-by: Nobuhiro Iwamatsu [EMAIL PROTECTED]
 ---
  drivers/pcmcia/marubun_pcmcia.c |6 --
  1 files changed, 4 insertions(+), 2 deletions(-)

 diff --git a/drivers/pcmcia/marubun_pcmcia.c 
 b/drivers/pcmcia/marubun_pcmcia.c
 index 7b112af..2479a66 100644


 Amen-brother-by: Jon Loeliger [EMAIL PROTECTED]


 Oh, and, a git grep CONFIG_COMMANDS reveals that there
 are a few other lingering instances of this bug around.

 Thank you for your comment.
 # I have not understood Amen-brother-by first.

Sorry.  It means I _totally_ agree with this patch.
The religious word Amen means Let it be or So be it.
By adding Brother to it, it makes it familiar, and
connotes charismatic religious fervor.  We should _all_
violently agree with this patch. :-)

 I found an mistake in my tree based on your point.

Atarashi pachi hoshii!

Fair is fair :-)

 Thanks
  Nobuhiro

Thanks,
jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] FSL: Convert board/freescale/common/Makefile to use CONFIG_

2008-01-16 Thread Jon Loeliger
On Tue, 2008-01-15 at 16:59, Grant Likely wrote:

 Nit: Don't do it this way; do this instead (to match the style used in
 other Makefiles):
 
 +COBJS-y:= pq-mds-pib.o
 +COBJS-${CONFIG_ID_EEPROM}+= sys_eeprom.o
 +COBJS-${CONFIG_FSL_DIU_FB}   += fsl_diu_fb.o fsl_logo_bmp.o
 +COBJS-${CONFIG_FSL_PIXIS}+= pixis.o
 
 -SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 +SRCS   := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)

So, are you going to submit a patch to convert
them all to be like that then?

I looked at this one in drivers/net:

COBJS-y += tsec.o
COBJS-y += tsi108_eth.o
COBJS-y += uli526x.o
 
COBJS   := $(COBJS-y)
SRCS:= $(COBJS:.o=.c)
OBJS:= $(addprefix $(obj),$(COBJS))
 
which clearly left COBJS around and set it up
based on COBJS-y contents.  So I guess my question
boils down to future intent here.  Should all
the files end up on COBJS or on COBJS-y really?

Thanks,
jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] FSL: Convert board/freescale/common/Makefile to use CONFIG_

2008-01-16 Thread Jon Loeliger
On Tue, 2008-01-15 at 16:41, Kim Phillips wrote:
 On Tue, 15 Jan 2008 15:21:09 -0600
 Jon Loeliger [EMAIL PROTECTED] wrote:
 
 snip
  -COBJS  := sys_eeprom.o \
  -  pixis.o  \
  -  pq-mds-pib.o \
  -  fsl_logo_bmp.o \
  -  fsl_diu_fb.o
  +COBJS  := pq-mds-pib.o
  +
  +COBJS-${CONFIG_ID_EEPROM}  += sys_eeprom.o
  +COBJS-${CONFIG_FSL_DIU_FB} += fsl_diu_fb.o fsl_logo_bmp.o
  +COBJS-${CONFIG_FSL_PIXIS}  += pixis.o
  +
  +COBJS  += ${COBJS-y}
   
 
 what, no love for pq-mds-pib.o (CONFIG_PQ_MDS_PIB)?
 
 Kim

Well, I was hitting the stuff that I nominally had
some degree of Custodian-ship over directly.

I will take this as direct permission that I'll
be submitting non-86xx stuff through my repository.

New patch coming!

jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] FSL: Convert board/freescale/common/Makefile to use CONFIG_

2008-01-16 Thread Jon Loeliger
On Tue, 2008-01-15 at 16:59, Grant Likely wrote:

 Nit: Don't do it this way; do this instead (to match the style used in
 other Makefiles):
 
 -SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 +SRCS   := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)

Double nit-nit: You actually have to cover OBJS
as well as SRCS here. :-)

SRCS:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
OBJS:= $(addprefix $(obj),$(COBJS-y))

otherwise nothing gets built at all...

[singing]
O-ho, the swell shiny new patch
Is a-coming' down the 'net,
Oh please let be for me!
[nuff]

jdl



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] FSL: Generalize PIXIS reset command parsing.

2008-01-16 Thread Jon Loeliger
From: James Yang [EMAIL PROTECTED]

Before, the order of arguments to the pixis_reset
command needed to be supplied in a hard-coded order.
Generalize the command parsing to allow any order.

Signed-off-by: James Yang [EMAIL PROTECTED]
Acked-by: Jon Loeliger [EMAIL PROTECTED]
---
 board/freescale/common/pixis.c |  214 
 1 files changed, 106 insertions(+), 108 deletions(-)

diff --git a/board/freescale/common/pixis.c b/board/freescale/common/pixis.c
index 00eb4a0..bff6a82 100644
--- a/board/freescale/common/pixis.c
+++ b/board/freescale/common/pixis.c
@@ -183,7 +183,7 @@ int set_px_corepll(ulong corepll)
 
 void read_from_px_regs(int set)
 {
-   u8 mask = 0x1C;
+   u8 mask = 0x1C; /* COREPLL, MPXPLL, SYSCLK controlled by PIXIS */
u8 tmp = in8(PIXIS_BASE + PIXIS_VCFGEN0);
 
if (set)
@@ -196,7 +196,7 @@ void read_from_px_regs(int set)
 
 void read_from_px_regs_altbank(int set)
 {
-   u8 mask = 0x04;
+   u8 mask = 0x04; /* FLASHBANK and FLASHMAP controlled by PIXIS */
u8 tmp = in8(PIXIS_BASE + PIXIS_VCFGEN1);
 
if (set)
@@ -207,15 +207,26 @@ void read_from_px_regs_altbank(int set)
 }
 
 #ifndef CFG_PIXIS_VBOOT_MASK
-#define CFG_PIXIS_VBOOT_MASK   0x40
+#define CFG_PIXIS_VBOOT_MASK   (0x40)
 #endif
 
+void clear_altbank(void)
+{
+   u8 tmp;
+
+   tmp = in8(PIXIS_BASE + PIXIS_VBOOT);
+   tmp = ~CFG_PIXIS_VBOOT_MASK;
+
+   out8(PIXIS_BASE + PIXIS_VBOOT, tmp);
+}
+
+
 void set_altbank(void)
 {
u8 tmp;
 
tmp = in8(PIXIS_BASE + PIXIS_VBOOT);
-   tmp ^= CFG_PIXIS_VBOOT_MASK;
+   tmp |= CFG_PIXIS_VBOOT_MASK;
 
out8(PIXIS_BASE + PIXIS_VBOOT, tmp);
 }
@@ -226,11 +237,11 @@ void set_px_go(void)
u8 tmp;
 
tmp = in8(PIXIS_BASE + PIXIS_VCTL);
-   tmp = tmp  0x1E;
+   tmp = tmp  0x1E;   /* clear GO bit */
out8(PIXIS_BASE + PIXIS_VCTL, tmp);
 
tmp = in8(PIXIS_BASE + PIXIS_VCTL);
-   tmp = tmp | 0x01;
+   tmp = tmp | 0x01;   /* set GO bit - start reset sequencer */
out8(PIXIS_BASE + PIXIS_VCTL, tmp);
 }
 
@@ -292,7 +303,7 @@ static ulong strfractoint(uchar *strptr)
 * simply create the intarr.
 */
i = 0;
-   while (strptr[i] != 46) {
+   while (strptr[i] != '.') {
if (strptr[i] == 0) {
no_dec = 1;
break;
@@ -312,7 +323,7 @@ static ulong strfractoint(uchar *strptr)
} else {
j = 0;
i++;/* Skipping the decimal point */
-   while ((strptr[i]  47)  (strptr[i]  58)) {
+   while ((strptr[i] = '0')  (strptr[i] = '9')) {
decarr[j] = strptr[i];
i++;
j++;
@@ -339,8 +350,14 @@ static ulong strfractoint(uchar *strptr)
 int
 pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-   ulong val;
-   ulong corepll;
+   unsigned int i;
+   char *p_cf = NULL;
+   char *p_cf_sysclk = NULL;
+   char *p_cf_corepll = NULL;
+   char *p_cf_mpxpll = NULL;
+   char *p_altbank = NULL;
+   char *p_wd = NULL;
+   unsigned int unknown_param = 0;
 
/*
 * No args is a simple reset request.
@@ -350,116 +367,97 @@ pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, 
char *argv[])
/* not reached */
}
 
-   if (strcmp(argv[1], cf) == 0) {
+   for (i = 1; i  argc; i++) {
+   if (strcmp(argv[i], cf) == 0) {
+   p_cf = argv[i];
+   if (i + 3 = argc) {
+   break;
+   }
+   p_cf_sysclk = argv[i+1];
+   p_cf_corepll = argv[i+2];
+   p_cf_mpxpll = argv[i+3];
+   i += 3;
+   continue;
+   }
 
-   /*
-* Reset with frequency changed:
-*cf SYSCLK freq COREPLL ratio MPXPLL ratio
-*/
-   if (argc  5) {
-   puts(cmdtp-usage);
-   return 1;
+   if (strcmp(argv[i], altbank) == 0) {
+   p_altbank = argv[i];
+   continue;
}
 
-   read_from_px_regs(0);
-
-   val = set_px_sysclk(simple_strtoul(argv[2], NULL, 10));
-
-   corepll = strfractoint((uchar *)argv[3]);
-   val = val + set_px_corepll(corepll);
-   val = val + set_px_mpxpll(simple_strtoul(argv[4], NULL, 10));
-   if (val == 3) {
-   puts(Setting registers VCFGEN0 and VCTL\n);
-   read_from_px_regs(1);
-   puts(Resetting board with values from );
-   puts(VSPEED0, VSPEED1, VCLKH, and VCLKL \n);
-   set_px_go