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

2008-08-06 Thread Becky Bruce
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. cpu/mpc86xx/start.S |4 ++-- include/c

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

2008-08-05 Thread Becky Bruce
On Aug 5, 2008, at 7:03 AM, Andy Fleming wrote: > On Mon, Aug 4, 2008 at 9:02 PM, Becky Bruce > <[EMAIL PROTECTED]> wrote: >> Currently, they use CONFIG_NUM_CPUS, which is different than >> 85xx for no good reason. >> > > >> --- a/include/conf

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

2008-08-04 Thread Becky Bruce
Currently, they use CONFIG_NUM_CPUS, which is different than 85xx for no good reason. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- cpu/mpc86xx/start.S |4 ++-- include/configs/MPC8610HPCD.h |2 +- include/configs/MPC8641HPCN.h |2 +- include/configs/sbc8

[U-Boot-Users] [PATCH] POWERPC 86xx: Move BAT setup code to C

2008-08-04 Thread Becky Bruce
This is needed because we will be possibly be locating devices at physical addresses above 32bits, and the asm preprocessing does not appear to deal with ULL constants properly. We now call write_bat in lib_ppc/bat_rw.c. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- cpu/mpc86xx/cpu_

[U-Boot-Users] [PATCH] POWERPC: Add synchronization to write_bat in lib_ppc/bat_rw.c

2008-08-04 Thread Becky Bruce
Perform sync/isync as required by the architecture. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- lib_ppc/bat_rw.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/lib_ppc/bat_rw.c b/lib_ppc/bat_rw.c index 8546333..a40b377 100644 --- a/lib_ppc/bat_rw.c

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

2008-08-04 Thread Becky Bruce
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/c

[U-Boot-Users] [PATCH] Allow print_size to print in GB

2008-07-09 Thread Becky Bruce
Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- This patch supersedes Stefan's recent patch to allow the printing of thousands of MB. We use GB instead. -Becky lib_generic/display_options.c | 32 1 files changed, 20 insertions(+), 12 deletio

Re: [U-Boot-Users] [PATCH] print_size: Enable printing of >= 4GB

2008-07-09 Thread Becky Bruce
Stefan, As we discussed on IRC, I'm about to push a patch that supersedes this one and allows printing to report "GB" instead of MB for large RAM sizes. Cheers, B On Jul 9, 2008, at 10:35 AM, Stefan Roese wrote: > Signed-off-by: Stefan Roese <[EMAIL PROTECTED]> > --- > lib_generic/display_o

Re: [U-Boot-Users] variable type issues in LMB code

2008-07-07 Thread Becky Bruce
On Jul 5, 2008, at 5:32 PM, Wolfgang Denk wrote: > Hello Andy & Becky & Kumar, > > there is a general problem of variable types with the LMB code; at > the moment, it uses some "u64" (and in lib_ppc/bootm.c actually a mix > of "u64" and "uint64_t") declarations where I think we should use >

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

2008-06-12 Thread Becky Bruce
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! -Becky On Jun 11, 2008, at 11:47 PM, Kumar Gala wrote: > > Since Becky's been under the weather today and I'm feeling generous > how about this version: > >

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

2008-06-10 Thread Becky Bruce
t;[EMAIL PROTECTED]> > --- > > Acked-by: Becky Bruce <[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

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

2008-06-09 Thread Becky Bruce
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 lo

[U-Boot-Users] [PATCH 3/4] Change print_size to take phys_size_t

2008-06-09 Thread Becky Bruce
Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- include/common.h |2 +- lib_generic/display_options.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/common.h b/include/common.h index 9193624..fd5adb3 100644 --- a/include/common.h

[U-Boot-Users] [PATCH 4/4] Change lmb to use phys_size_t/phys_addr_t

2008-06-09 Thread Becky Bruce
This updates the lmb code to use phys_size_t and phys_addr_t instead of unsigned long. Other code which interacts with this code, like getenv_bootm_size() is also updated. Booted on MPC8641HPCN, build-tested ppc, arm, mips. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- common/cmd_b

[U-Boot-Users] [PATCH 2/4] Change bd/gd memsize/ram_size to be phys_size_t.

2008-06-09 Thread Becky Bruce
Currently, both are defined as an unsigned long, but should be phys_size_t. This should result in no real change, since phys_size_t is currently an unsigned long for all the default configs. Also add print_lnum to cmd_bdinfo to deal with the potentially wider memsize. Signed-off-by: Becky Bruce

[U-Boot-Users] [PATCH 2/4 V4] PPC: Change lib_ppc/bat_rw.c to use high bats

2008-05-15 Thread becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> Currently, this code only deals with BATs 0-3, which makes it useless on systems that support BATs 4-7. Add the support for these registers. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- No, I'm not striving for a world record

Re: [U-Boot-Users] [PATCH] MPC85xx: Change traps.c to not reference non-addressable memory

2008-05-14 Thread Becky Bruce
On May 14, 2008, at 3:54 PM, Kim Phillips wrote: > On Wed, 14 May 2008 15:31:43 -0500 > Becky Bruce <[EMAIL PROTECTED]> wrote: > >> >> On May 14, 2008, at 1:57 PM, Kim Phillips wrote: >>> On Wed, 14 May 2008 13:10:04 -0500 >>> [EMAIL PROTECTED] wrote:

Re: [U-Boot-Users] [PATCH] MPC85xx: Change traps.c to not reference non-addressable memory

2008-05-14 Thread Becky Bruce
On May 14, 2008, at 1:57 PM, Kim Phillips wrote: > On Wed, 14 May 2008 13:10:04 -0500 > [EMAIL PROTECTED] wrote: > >> From: Becky Bruce <[EMAIL PROTECTED]> >> >> Currently, END_OF_RAM is used by the trap code to determine if >> we should attempt to access t

[U-Boot-Users] [PATCH] MPC85xx: Change traps.c to not reference non-addressable memory

2008-05-14 Thread becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> Currently, END_OF_RAM is used by the trap code to determine if we should attempt to access the stack pointer or not. However, on systems with a lot of RAM, only a subset of the RAM is guaranteed to be mapped in and accessible. Change END_OF_RAM

[U-Boot-Users] [PATCH] MPC86xx: Change traps.c to not reference non-addressable memory

2008-05-14 Thread becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> Currently, END_OF_RAM is used by the trap code to determine if we should attempt to access the stack pointer or not. However, on systems with a lot of RAM, only a subset of the RAM is guaranteed to be mapped in and accessible. Change END_OF_RAM

[U-Boot-Users] [PATCH] MPC512x: Change traps.c to not reference non-addressable memory

2008-05-14 Thread becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> Currently, END_OF_RAM is used by the trap code to determine if we should attempt to access the stack pointer or not. However, on systems with a lot of RAM, only a subset of the RAM is guaranteed to be mapped in and accessible. Change END_OF_RAM

Re: [U-Boot-Users] [PATCH 2/4 V3] PPC: Change lib_ppc/bat_rw.c to use high bats

2008-05-12 Thread Becky Bruce
On May 11, 2008, at 6:05 PM, Wolfgang Denk wrote: > In message <[EMAIL PROTECTED] > > you wrote: >> From: Becky Bruce <[EMAIL PROTECTED]> >> >> Currently, this code only deals with BATs 0-3, which makes >> it useless on systems that support BATs 4-

[U-Boot-Users] [PATCH 3/4 V3] PPC: Add print_bats() to lib_ppc/bat_rw.c

2008-05-09 Thread becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> This function prints the values of all the BAT register pairs - I needed this for debug earlier this week; adding it to lib_ppc so others can use it (and add it to reginfo commands if so desired). Signed-off-by: Becky Bruce <[EMAIL PROTECTED]>

[U-Boot-Users] [PATCH 2/4 V3] PPC: Change lib_ppc/bat_rw.c to use high bats

2008-05-09 Thread becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> Currently, this code only deals with BATs 0-3, which makes it useless on systems that support BATs 4-7. Add the support for these registers. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- resend, moving comma in enum as requested on list

Re: [U-Boot-Users] [PATCH 2/4 V2] PPC: Change lib_ppc/bat_rw.c to use high bats

2008-05-09 Thread Becky Bruce
On May 9, 2008, at 2:14 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 14:45 Fri 09 May , Jerry Van Baren wrote: >> Becky Bruce wrote: >>> On May 9, 2008, at 10:28 AM, Scott Wood wrote: >>>> On Thu, May 08, 2008 at 07:02:23PM -0500, [EMAIL PROTECTED] >>

Re: [U-Boot-Users] [PATCH 2/4 V2] PPC: Change lib_ppc/bat_rw.c to use high bats

2008-05-09 Thread Becky Bruce
On May 9, 2008, at 10:28 AM, Scott Wood wrote: > On Thu, May 08, 2008 at 07:02:23PM -0500, [EMAIL PROTECTED] > wrote: >> diff --git a/include/asm-ppc/mmu.h b/include/asm-ppc/mmu.h >> index 49d6860..f836270 100644 >> --- a/include/asm-ppc/mmu.h >> +++ b/include/asm-ppc/mmu.h >> @@ -141,6 +141,10

Re: [U-Boot-Users] [PATCH 3/4 V2] PPC: Add print_bats() to lib_ppc/bat_rw.c

2008-05-09 Thread Becky Bruce
Yeah, I noticed that this morning. I cut and pasted that particular block from another file, and somehow ended up with spaces. I'll respin this one. On May 9, 2008, at 10:29 AM, Scott Wood wrote: > On Thu, May 08, 2008 at 07:02:38PM -0500, [EMAIL PROTECTED] > wrote: >> +printf ("\t

[U-Boot-Users] Resent BAT patch series

2008-05-08 Thread Becky Bruce
Folks, I've resent the BAT patch series, as the first one never showed up (for me, at least), and I had sent out the wrong version of the third patch. Apologies for the noise if the first set if they actually showed up for anyone - my corporate mail server has a history of eating things s

[U-Boot-Users] [PATCH 4/4 V2] PPC: 86xx Add bat registers to reginfo command

2008-05-08 Thread Becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- cpu/mpc86xx/cpu.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/cpu/mpc86xx/cpu.c b/cpu/mpc86xx/cpu.c index 3c74764..e26bf36 100644 --- a/cpu/mpc86xx/cpu.c +++ b

[U-Boot-Users] [PATCH 3/4 V2] PPC: Add print_bats() to lib_ppc/bat_rw.c

2008-05-08 Thread Becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> This function prints the values of all the BAT register pairs - I needed this for debug earlier this week; adding it to lib_ppc so others can use it (and add it to reginfo commands if so desired). Signed-off-by: Becky Bruce <[EMAIL PROTECTED]>

[U-Boot-Users] [PATCH 2/4 V2] PPC: Change lib_ppc/bat_rw.c to use high bats

2008-05-08 Thread Becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> Currently, this code only deals with BATs 0-3, which makes it useless on systems that support BATs 4-7. Add the support for these registers. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- include/asm-ppc/mmu.h |4 ++ lib_ppc/bat_rw.c

[U-Boot-Users] [PATCH 1/4 V2] PPC: Create and use CONFIG_HIGH_BATS

2008-05-08 Thread Becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> Change all code that conditionally operates on high bat registers (that is, BATs 4-7) to look at CONFIG_HIGH_BATS instead of the myriad ways this is done now. Define the option for every config for which high bats are supported (and enabled by early bo

[U-Boot-Users] [PATCH 1/4] PPC: Create and use CONFIG_HIGH_BATS

2008-05-08 Thread becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> Change all code that conditionally operates on high bat registers (that is, BATs 4-7) to look at CONFIG_HIGH_BATS instead of the myriad ways this is done now. Define the option for every config for which high bats are supported (and enabled by early bo

[U-Boot-Users] [PATCH 4/4] MPC86xx: Add bat registers to reginfo command

2008-05-08 Thread becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> Signed-off-by: Becky Bruce --- cpu/mpc86xx/cpu.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/cpu/mpc86xx/cpu.c b/cpu/mpc86xx/cpu.c index 3c74764..e26bf36 100644 --- a/cpu/mpc86xx/cpu.c +++ b/cpu/mpc86xx/cpu.c @@ -26,6

[U-Boot-Users] [PATCH 3/4] PPC: Add print_bats() to lib_ppc/bat_rw.c

2008-05-08 Thread becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> This function prints the values of all the BAT register pairs - I needed this for debug earlier this week; adding it to lib_ppc so others can use it (and add it to reginfo commands if so desired). Signed-off-by: Becky Bruce <[EMAIL PROTECTED]>

[U-Boot-Users] [PATCH 2/4] PPC: Change lib_ppc/bat_rw.c to use high bats

2008-05-08 Thread becky . bruce
From: Becky Bruce <[EMAIL PROTECTED]> Currently, this code only deals with BATs 0-3, which makes it useless on systems that support BATs 4-7. Add the support for these registers. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- include/asm-ppc/mmu.h |4 ++ lib_ppc/bat_rw.c

[U-Boot-Users] [PATCH] PPC: fix map_physmem build warning

2008-05-07 Thread Becky Bruce
map_physmem currently generates a warning when CONFIG_PHYS_64BIT is enabled. This quiets the warning. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- include/asm-ppc/io.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/asm-ppc/io.h b/include/asm-pp

[U-Boot-Users] [PATCH] Update pci code to use phys_addr_t

2008-05-07 Thread Becky Bruce
Physical addrs need to be represented by phys_addr_t, not unsigned long. Otherwise, systems that use CONFIG_PHYS_64BIT are going to fail mightily. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- drivers/pci/pci.c |8 include/pci.h | 10 +- 2 files chan

Re: [U-Boot-Users] SYNC definition problem

2008-04-14 Thread Becky Bruce
On Apr 11, 2008, at 5:27 PM, Yang Ronda wrote: > Hi, > > I was trying to turn on I-Cache while u-boot is executing out of > Flash on MPC5121 ADS board, and just found the board refused to > boot. After debug and tried many different ways, we finally found > that the root of the problem is th

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

2008-02-18 Thread Becky Bruce
On Feb 18, 2008, at 11:32 AM, Jon Loeliger wrote: > 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

[U-Boot-Users] [PATCH 6/7] 86xx: Add print_laws function to fsl_law.c

2008-01-23 Thread Becky Bruce
This can be used for debug, and will be used by board code to help implement reginfo. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- drivers/misc/fsl_law.c| 19 +++ include/asm-ppc/fsl_law.h |1 + 2 files changed, 20 insertions(+), 0 deletions(-) diff -

[U-Boot-Users] [PATCH 4/7] 86xx: Convert sbc8641d to use new law setup code.

2008-01-23 Thread Becky Bruce
Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- board/sbc8641d/Makefile|2 +- board/sbc8641d/law.c | 58 include/configs/sbc8641d.h |1 + 3 files changed, 60 insertions(+), 1 deletions(-) create mode 100644 board/sbc8641d

[U-Boot-Users] [PATCH 3/7] 86xx: Convert mpc8610hpcd to new law setup method.

2008-01-23 Thread Becky Bruce
Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- board/freescale/mpc8610hpcd/Makefile |2 +- board/freescale/mpc8610hpcd/law.c| 44 ++ include/configs/MPC8610HPCD.h|1 + 3 files changed, 46 insertions(+), 1 deletions(-) create mode

[U-Boot-Users] [PATCH 2/7] 86xx: Support new law setup method and convert mpc8641

2008-01-23 Thread Becky Bruce
Adds the support code in cpu/mpc86xx for the new law setup code recently created fsl_law.c, and changes the MPC8641HPCN config to use this code. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- board/freescale/mpc8641hpcn/Makefile |2 +- board/freescale/mpc8641hpcn/law.c

[U-Boot-Users] [PATCH 5/7] 86xx: Remove old-style law setup code

2008-01-23 Thread Becky Bruce
This includes mpc8610hpcd, mpc8641hpcn, and sbc8641d. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- board/freescale/mpc8610hpcd/Makefile |2 - board/freescale/mpc8610hpcd/init.S | 147 board/freescale/mpc8610hpcd/u-boot.lds |1 - board/fre

[U-Boot-Users] [PATCH 7/7] 86xx: Add reginfo command

2008-01-23 Thread Becky Bruce
Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- common/cmd_reginfo.c | 10 -- cpu/mpc86xx/cpu.c | 24 +++- include/configs/MPC8610HPCD.h |1 + include/configs/MPC8641HPCN.h |1 + include/configs/sbc8641d.h|1 + 5

[U-Boot-Users] [PATCH 1/7] 86xx: Rearrange the sequence in start.S

2008-01-23 Thread Becky Bruce
law and BAT initialization to C code, and will aid with 36-bit physical addressing support. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- cpu/mpc86xx/start.S | 122 +-- 1 files changed, 69 insertions(+), 53 deletions(-) diff --git a/cpu/m

[U-Boot-Users] [PATCH 0/7] 86xx: New law setup and updated reginfo patchset

2008-01-23 Thread Becky Bruce
This patchset adds support for the new law setup method in fsl_law.c to 86xx. The existing platforms (mpc8641hpcn, mpc8610hpcd, and sbc8641d) are converted to use the new method. The old support is them removed. A print_laws() function is then added to fsl_law.c, and then used to implement a

[U-Boot-Users] [PATCH] mpc86xx: Convert to using new law setup code

2008-01-17 Thread Becky Bruce
This patch converts 86xx to the new law setup in C that Kumar posted recently. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- board/freescale/mpc8641hpcn/Makefile |2 +- board/freescale/mpc8641hpcn/law.c| 64 ++ cpu/mpc86xx/cpu_

[U-Boot-Users] [PATCH] mpc86xx: Rearrange start.S to allow use of new law code

2008-01-17 Thread Becky Bruce
will facilitate the moving of law and BAT initialization to C code, and will aid with 36-bit physical addressing support. Signed-off-by: Becky Bruce <[EMAIL PROTECTED]> --- cpu/mpc86xx/start.S | 122 +-- 1 files changed, 69 insertions(