[U-Boot] [PATCH v3 5/7] mtd: Make mtdparts work with pre-reloc env

2013-04-08 Thread Joe Hershberger
nv to not allow sets before the env is relocated. Signed-off-by: Joe Hershberger --- Changes in v3: None Changes in v2: None common/cmd_mtdparts.c | 23 +-- common/cmd_nvedit.c | 4 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/common/cmd_mtdpart

[U-Boot] [PATCH v3 2/7] ubi: Expose a few simple functions from the cmd_ubi

2013-04-08 Thread Joe Hershberger
Part, Read, and Write functionality that will be used by env_ubi. Signed-off-by: Joe Hershberger --- Changes in v3: None Changes in v2: - Added curly braces on "multi-line" statements - Added extern consistently in header common/cmd_ubi.

[U-Boot] [PATCH v3 4/7] ubi: ubifs: Turn off verbose prints

2013-04-08 Thread Joe Hershberger
The prints are out of control. SILENCE! Signed-off-by: Joe Hershberger --- Changes in v3: - Changed the silence to opt-in and added the options to README Changes in v2: - Cleaned up the msg print silencing README| 10 ++ common/cmd_ubi.c | 3 +++ drivers/mtd

Re: [U-Boot] bootm does not work if netconsole is enabled

2013-04-09 Thread Joe Hershberger
Hi Michael, I just tested this on my Zynq target and it worked. However, you make a good point that it is possible for there to be more traces after the eth_halt call. I can't imagine the stack would like that in all situations (since eth_init() will not be called again by netconsole). I think t

Re: [U-Boot] bootm does not work if netconsole is enabled

2013-04-10 Thread Joe Hershberger
Hi Michael, On Wed, Apr 10, 2013 at 5:07 AM, Michael Walle wrote: > On Wed, April 10, 2013 03:51, Joe Hershberger wrote: >> Hi Michael, >> >> I just tested this on my Zynq target and it worked. However, you make >> a good point that it is possible for there

[U-Boot] [PATCH 1/2] mpc83xx: Add a GPIO driver for the MPC83XX family

2011-08-09 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 37 + arch/powerpc/include/asm/gpio.h | 38 + board/freescale/mpc8313erdb/mpc8313erdb.c|9 + drivers/gpio/Makefile

[U-Boot] [PATCH 2/2] mpc8313erdb: Enable GPIO support on the MPC8313E RDB

2011-08-09 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- include/configs/MPC8313ERDB.h |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/include/configs/MPC8313ERDB.h b/include/configs/MPC8313ERDB.h index 92c54d0..9bf38df 100644 --- a/include/configs

[U-Boot] [PATCH v2 2/2] mpc8313erdb: Enable GPIO support on the MPC8313E RDB

2011-08-09 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c from patch 1/2 board/freescale/mpc8313erdb/mpc8313erdb.c |9 + include/configs/MPC8313ERDB.h |5 - 2 files

[U-Boot] [PATCH v2 1/2] mpc83xx: Add a GPIO driver for the MPC83XX family

2011-08-09 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Improved names of INIT constants (to include "CONFIG_") - Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c to patch 2/2 arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 37 +

Re: [U-Boot] [PATCH 1/2] mpc83xx: Add a GPIO driver for the MPC83XX family

2011-08-09 Thread Joe Hershberger
On Tue, Aug 9, 2011 at 5:15 PM, Scott Wood wrote: > On 08/09/2011 05:31 PM, Joe Hershberger wrote: >> diff --git a/arch/powerpc/include/asm/arch-mpc83xx/gpio.h >> b/arch/powerpc/include/asm/arch-mpc83xx/gpio.h >> new file mode 100644 >> index 000..4319d07 >

[U-Boot] [PATCH v3 2/2] mpc8313erdb: Enable GPIO support on the MPC8313E RDB

2011-08-09 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c from patch 1/2 Changes for v3: - Renamed gpio_init_* to mpc83xx_gpio_init_* - Added board_early_init_r support to MPC8313ERDB targets

[U-Boot] [PATCH v3 1/2] mpc83xx: Add a GPIO driver for the MPC83XX family

2011-08-09 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Improved names of INIT constants (to include "CONFIG_") - Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c to patch 2/2 Changes for v3: - gpio_init_* is now mpc83xx_gpio_ini

Re: [U-Boot] [PATCH 1/2] mpc83xx: Add a GPIO driver for the MPC83XX family

2011-08-09 Thread Joe Hershberger
On Tue, Aug 9, 2011 at 5:54 PM, Kim Phillips wrote: > On Tue, 9 Aug 2011 17:31:29 -0500 Joe Hershberger > wrote: > >> +     /* Update the local output buffer soft copy */ >> +     gpio_output_value[ctrlr] = >> +             (gpio_output_value[ctrlr] & ~lineMa

[U-Boot] [PATCH v4 3/3] mpc8313erdb: Enable GPIO support on the MPC8313E RDB

2011-08-09 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c from patch 1/2 Changes for v3: - Renamed gpio_init_* to mpc83xx_gpio_init_* - Added board_early_init_r support to MPC8313ERDB targets

[U-Boot] [PATCH v4 2/3] mpc83xx: Add a GPIO driver for the MPC83XX family

2011-08-09 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Improved names of INIT constants (to include "CONFIG_") - Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c to patch 2/2 Changes for v3: - gpio_init_* is now mpc83xx_gpio_init_* C

[U-Boot] [PATCH v4 1/3] gpio: Move common gpio.h to include/asm-generic

2011-08-09 Thread Joe Hershberger
Common GPIO API used by cmd_gpio should be available to any arch Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v4: - Split out of patch 1/2 arch/arm/include/asm/gpio.h | 39 +-- arch/powerpc/include/asm/gpio.h

[U-Boot] [PATCH 2/2] omap4_panda: Build in cmd_gpio support on panda

2011-08-09 Thread Joe Hershberger
Enable the command and the shim driver Configure the pads to allow access to the button on GPIO_121 and the 2 LEDS on GPIO_7 and GPIO_8 Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Sandeep Paulraj --- board/ti/panda/panda_mux_data.h |6 +++--- include/configs/omap4_panda.h

[U-Boot] [PATCH 1/2] omap3+: Add OMAP support for cmd_gpio

2011-08-09 Thread Joe Hershberger
Add a shim driver to drivers/gpio that maps the standard GPIO API to the OMAP GPIO API Empty gpio.h is needed in the asm/arch dirs for omap3 and omap4 due to include in asm/gpio.h Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Sandeep Paulraj --- arch/arm/include/asm/arch-omap3

[U-Boot] [PATCH] omap4_panda: Ignore omap4 SPL called MLO

2011-08-09 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Sandeep Paulraj --- .gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index dbf545f..f86ec35 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ # Top-level generic files

[U-Boot] [PATCH] omap4_panda: Enable command-line editing and hush shell by default on panda board

2011-08-09 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Sandeep Paulraj --- include/configs/omap4_panda.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/configs/omap4_panda.h b/include/configs/omap4_panda.h index e313231..a3f13e5 100644 --- a/include

[U-Boot] [PATCH] gpio: Expand cmd_gpio functionality and script friendliness

2011-08-09 Thread Joe Hershberger
Add quiet parameter to cmd_gpio for use when part of a script Enable repeat... especially useful when used with input and toggle Add "outstate" command that will return and print the state of an output Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Mike Frysinger --- common/

[U-Boot] [PATCH] tsec: Configure the buffer descriptor bases to always include all of the descriptors

2011-08-09 Thread Joe Hershberger
Previously only the last N were included based on the current one in use. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Mingkai Hu Cc: Andy Fleming Cc: Kumar Gala Cc: Detlev Zundel --- drivers/net/tsec.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a

Re: [U-Boot] [PATCH] tsec: Configure the buffer descriptor bases to always include all of the descriptors

2011-08-10 Thread Joe Hershberger
On Wed, Aug 10, 2011 at 7:29 AM, Detlev Zundel wrote: >> diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c >> index 78ffc95..1805ca0 100644 >> --- a/drivers/net/tsec.c >> +++ b/drivers/net/tsec.c >> @@ -250,8 +250,8 @@ static void startup_tsec(struct eth_device *dev) >>       txIdx = 0; >> >>  

Re: [U-Boot] [PATCH] tsec: Configure the buffer descriptor bases to always include all of the descriptors

2011-08-10 Thread Joe Hershberger
On Wed, Aug 10, 2011 at 9:10 AM, Andy Fleming wrote: > > On Aug 10, 2011, at 2:12 AM, Joe Hershberger wrote: > >> Previously only the last N were included based on the current one in use. >> >> Signed-off-by: Joe Hershberger >> Cc: Joe Hershberger >> Cc:

Re: [U-Boot] [PATCH] omap4_panda: Ignore omap4 SPL called MLO

2011-08-10 Thread Joe Hershberger
Hi Albert, On Wed, Aug 10, 2011 at 12:54 AM, Albert ARIBAUD wrote: > Hi Joe, > > Le 10/08/2011 07:21, Joe Hershberger a écrit : >> Signed-off-by: Joe Hershberger >> Cc: Joe Hershberger >> Cc: Sandeep Paulraj >> --- >>   .gitignore |    1 + >>  

Re: [U-Boot] [PATCH] gpio: Expand cmd_gpio functionality and script friendliness

2011-08-10 Thread Joe Hershberger
Hi Mike, On Wed, Aug 10, 2011 at 8:33 PM, Mike Frysinger wrote: > On Wednesday, August 10, 2011 02:27:42 Joe Hershberger wrote: >> Add quiet parameter to cmd_gpio for use when part of a script >> Enable repeat... especially useful when used with input and toggle >> Add &q

[U-Boot] [PATCH] powerpc/mpc83xx: Rename CONFIG_SYS_DDR_CONFIG to CONFIG_SYS_DDR_CS_CONFIG

2011-08-10 Thread Joe Hershberger
The register this is written to is named ddr.cs_config, so name the #define similarly to reduce confusion Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- board/freescale/mpc8313erdb/sdram.c |2 +- board/freescale/mpc8349emds/mpc8349emds.c |2 +- board

[U-Boot] [PATCH v5 3/3] mpc8313erdb: Enable GPIO support on the MPC8313E RDB

2011-08-11 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c from patch 1/2 Changes for v3: - Renamed gpio_init_* to mpc83xx_gpio_init_* - Added board_early_init_r support to MPC8313ERDB targets Changes

[U-Boot] [PATCH v5 2/3] mpc83xx: Add a GPIO driver for the MPC83XX family

2011-08-11 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Improved names of INIT constants (to include "CONFIG_") - Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c to patch 2/2 Changes for v3: - gpio_init_* is now mpc83xx_gpio_init_* Chan

[U-Boot] [PATCH v5 1/3] gpio: Move common gpio.h to include/asm-generic

2011-08-11 Thread Joe Hershberger
Common GPIO API used by cmd_gpio should be available to any arch Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips Cc: Mike Frysinger --- Changes for v4: - Split out of patch 1/2 Changes for v5: - Moved asm/arch/gpio.h include to asm/gpio.h arch/arm/include/asm/gpio.h

Re: [U-Boot] [PATCH] powerpc/mpc83xx: Cleanup usage of LBC and DDR constants

2011-08-12 Thread Joe Hershberger
On Fri, Aug 12, 2011 at 1:38 AM, Joe Hershberger wrote: > Attempt to make 83xx use constants consistently. > In the course of switching from numerics to field constants, a number of > reserved fields being assigned were found. > Those places that seemed broken I marked with [RF

[U-Boot] [PATCH v2 0/4] powerpc/mpc83xx: Cleanup usage of LBC and DDR constants

2011-08-12 Thread Joe Hershberger
Hershberger Cc: Kim Phillips Joe Hershberger (4): powerpc/mpc83xx: Whitespace changes powerpc/mpx83xx: Cleanup usage of BAT constants powerpc/mpc83xx: Cleanup usage of DDR constants powerpc/mpc83xx: Cleanup usage of LBC constants arch/powerpc/cpu/mpc83xx/spd_sdram.c |9 ++ arch/powerpc

[U-Boot] [PATCH v2 1/4] powerpc/mpc83xx: Whitespace changes

2011-08-12 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Split include/configs/MPC8315ERDB.h | 13 +++-- include/configs/MPC8323ERDB.h |6 +++--- include/configs/MPC832XEMDS.h |6 +++--- include/configs/MPC8349EMDS.h | 36

[U-Boot] [PATCH v2 3/4] powerpc/mpc83xx: Cleanup usage of DDR constants

2011-08-12 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Split arch/powerpc/cpu/mpc83xx/spd_sdram.c |9 + include/configs/MPC8308RDB.h |5 ++- include/configs/MPC8313ERDB.h| 10 -- include/configs/MPC8315ERDB.h|5

[U-Boot] [PATCH v6 4/4] mpc8313erdb: Enable GPIO support on the MPC8313E RDB

2011-08-12 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c from patch 1/2 Changes for v3: - Renamed gpio_init_* to mpc83xx_gpio_init_* - Added board_early_init_r support to MPC8313ERDB targets Changes

[U-Boot] [PATCH v6 1/4] gpio: Move common gpio.h to include/asm-generic

2011-08-12 Thread Joe Hershberger
Common GPIO API used by cmd_gpio should be available to any arch Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Mike Frysinger --- Changes for v4: - Split out of patch 1/2 Changes for v5: - Moved asm/arch/gpio.h include to asm/gpio.h Changes for v6: arch/arm/include/asm/gpio.h

[U-Boot] [PATCH v6 3/4] mpc83xx: Add a GPIO driver for the MPC83XX family

2011-08-12 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Kim Phillips --- Changes for v2: - Improved names of INIT constants (to include "CONFIG_") - Moved changes to board/freescale/mpc8313erdb/mpc8313erdb.c to patch 2/2 Changes for v3: - gpio_init_* is now mpc83xx_gpio_init_* Chan

[U-Boot] [PATCH v6 2/4] gpio: Modify common gpio.h to more closely match Linux

2011-08-12 Thread Joe Hershberger
Change "int gp" to "unsigned gpio" Update the 2 existing arm implementations to match the new API Remove the gpio_toggle() implementation (never used) Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Mike Frysinger --- Changes for v6: - Linuxize gpio API drive

Re: [U-Boot] [PATCH] mpc83xx: fix global timer structure definition

2011-08-15 Thread Joe Hershberger
Acked-by: Joe Hershberger On Sun, Aug 14, 2011 at 11:09 PM, Kim Phillips wrote: > On Mon, 15 Aug 2011 02:20:18 + > shawn Bai wrote: > >> In my opinion,the third member in struct gtm83xx if numbered from zero >> should be defined as u8 res1[11] not u8 res1[10]. >&g

[U-Boot] Patch submission process question

2011-08-15 Thread Joe Hershberger
Hi u-boot, What is the recommended way to handle a patch series that depends on another patch series (already sent but not integrated)? How about a patch that was sent, that at the time didn't depend on another series, but after review and changes, now depends on those changes? Even a bit more g

[U-Boot] [PATCH v2 2/2] omap4_panda: Build in cmd_gpio support on panda

2011-08-16 Thread Joe Hershberger
Enable the command and the shim driver Configure the pads to allow access to the button on GPIO_121 and the 2 LEDS on GPIO_7 and GPIO_8 Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Sandeep Paulraj --- Changes for v2: board/ti/panda/panda_mux_data.h |6 +++--- include/configs

[U-Boot] [PATCH v2 1/2] omap3+: Add OMAP support for cmd_gpio

2011-08-16 Thread Joe Hershberger
Add a shim driver to drivers/gpio that maps the standard GPIO API to the OMAP GPIO API Empty gpio.h is needed in the asm/arch dirs for omap3 and omap4 due to include in asm/gpio.h Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Sandeep Paulraj --- Changes for v2: - Changed API to

Re: [U-Boot] Patch submission process question

2011-08-16 Thread Joe Hershberger
On Tue, Aug 16, 2011 at 11:56 AM, Scott Wood wrote: > On 08/16/2011 02:06 AM, Simon Schwarz wrote: >> On 08/16/2011 03:20 AM, Joe Hershberger wrote: >>> Even a bit more generally, some of the series are getting quite long >>> due to small dependencies. This ten

[U-Boot] [PATCH v2] powerpc/mpc83xx: Rename CONFIG_SYS_DDR_CONFIG and cleanup DDR csbnds code

2011-08-16 Thread Joe Hershberger
Rename CONFIG_SYS_DDR_CONFIG to include which CS it is configuring Cleanup the setting of the csnbds to respect the setting of CONFIG_SYS_DDR_SDRAM_BASE Use __ilog2 instead of writing the code to compute it Disable unused CS configs Ensure ddrlaw.bar is configured Signed-off-by: Joe Hershberger

Re: [U-Boot] [PATCH] tsec: Configure the buffer descriptor bases to always include all of the descriptors

2011-08-24 Thread Joe Hershberger
On Wed, Aug 24, 2011 at 5:46 PM, Wolfgang Denk wrote: > Dear Joe Hershberger, > > In message > you > wrote: >> >> It fixes something that was wrong before you committed >> 063c12633d5ad74d52152d9c358e715475e17629, but at this point, it's just >>

Re: [U-Boot] [PATCH v2 1/2] omap3+: Add OMAP support for cmd_gpio

2011-09-14 Thread Joe Hershberger
On Tue, Aug 16, 2011 at 5:17 PM, Joe Hershberger wrote: > Add a shim driver to drivers/gpio that maps the standard GPIO API to the OMAP > GPIO API > Empty gpio.h is needed in the asm/arch dirs for omap3 and omap4 due to > include in asm/gpio.h > > Signed-off-by: Joe Hers

Re: [U-Boot] [PATCH v2 1/2] omap3+: Add OMAP support for cmd_gpio

2011-09-14 Thread Joe Hershberger
On Wed, Sep 14, 2011 at 2:52 PM, Paulraj, Sandeep wrote: > > >> On Tue, Aug 16, 2011 at 5:17 PM, Joe Hershberger >> wrote: >> > Add a shim driver to drivers/gpio that maps the standard GPIO API to the >> OMAP GPIO API >> > Empty gpio.h is needed in th

Re: [U-Boot] [PATCH v2] net: Improve the speed of netconsole

2012-08-10 Thread Joe Hershberger
Hi Mike, On Fri, Aug 3, 2012 at 3:59 PM, Joe Hershberger wrote: > Previously u-boot would initialize the network interface for every > network operation and then shut it down again. This makes sense for > most operations where the network in not known to be needed soon after > the

Re: [U-Boot] [PATCH 1/4] serial: Add Dragonfire serial driver

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote: > The driver is used on Xilinx Zynq platform. > > Signed-off-by: Michal Simek > --- > drivers/serial/Makefile |1 + > drivers/serial/serial_xpssuart.c | 218 > ++ > 2 files changed

Re: [U-Boot] [PATCH 2/4] net: Add driver for Zynq Gem IP

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote: > Device driver for Zynq Gem IP. > > Signed-off-by: Michal Simek > CC: Joe Hershberger > --- > drivers/net/Makefile |1 + > drivers/net/xilinx_gem.c | 514 > +

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote: > Add timer driver. > > Signed-off-by: Michal Simek > --- > arch/arm/cpu/armv7/zynq/Makefile | 48 > arch/arm/cpu/armv7/zynq/timer.c | 151 > ++ > 2 files changed, 199 insertion

Re: [U-Boot] [PATCH 4/4 v2] xilinx: Add new Zynq board

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 7:15 AM, Michal Simek wrote: > Add support for Xilinx Zynq board. > > Signed-off-by: Michal Simek > > --- > v2: Forget to also add config file > --- > board/xilinx/zynq/Makefile| 57 + > board/xilinx/zynq/board.c | 64 ++

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 11:28 AM, Michal Simek wrote: > On 08/14/2012 05:36 PM, Joe Hershberger wrote: >> >> Hi Michal, >> >> On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote: >>> >>> Add timer driver. >>> >>> Sig

Re: [U-Boot] [PATCH 1/4] serial: Add Dragonfire serial driver

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 11:38 AM, Michal Simek wrote: > On 08/14/2012 04:09 PM, Joe Hershberger wrote: >> >> Hi Michal, >> >> On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote: >>> >>> The driver is used on Xilinx Zynq

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 12:11 PM, Michal Simek wrote: > On 08/14/2012 06:41 PM, Joe Hershberger wrote: >> >> Hi Michal, >> >> On Tue, Aug 14, 2012 at 11:28 AM, Michal Simek wrote: >>> >>> On 08/14/2012 05:36 PM, Joe Hershberger wrote: &g

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 12:39 PM, Michal Simek wrote: > On 08/14/2012 07:15 PM, Joe Hershberger wrote: >> >> Hi Michal, >> >> On Tue, Aug 14, 2012 at 12:11 PM, Michal Simek wrote: >>> >>> On 08/14/2012 06:41 PM, Joe Hershberger wrote: &g

Re: [U-Boot] [PATCH 4/4 v2] xilinx: Add new Zynq board

2012-08-15 Thread Joe Hershberger
Hi Michal, On Wed, Aug 15, 2012 at 3:49 AM, Michal Simek wrote: > Hi Joe, > > sorry missed this one. > > > On 08/14/2012 05:48 PM, Joe Hershberger wrote: >> >> Are you thinking that this will be the one and only Zynq board? >> Perhaps a layout like wha

Re: [U-Boot] [PATCH 4/4 v2] xilinx: Add new Zynq board

2012-08-16 Thread Joe Hershberger
Hi Michal, On Thu, Aug 16, 2012 at 1:12 AM, Michal Simek wrote: > Hi Joe, > > > On 08/15/2012 07:31 PM, Joe Hershberger wrote: >> >> Hi Michal, >> >> I believe this is a fundamental misunderstanding of the Zynq architecture. > > > I don't thin

[U-Boot] [PATCH 0/2] net: Netconsole port configuration and filtering

2012-08-17 Thread Joe Hershberger
This series depends on this patch: http://patchwork.ozlabs.org/patch/174282/ Joe Hershberger (2): net: Allow netconsole settings to change after nc_start net: Filter incoming netconsole packets by IP drivers/net/netconsole.c | 104 --- include

[U-Boot] [PATCH 2/2] net: Filter incoming netconsole packets by IP

2012-08-17 Thread Joe Hershberger
Check the incoming packets' source IP address... if ncip isn't set to a broadcast address, only listen to the client at ncip. Signed-off-by: Joe Hershberger --- drivers/net/netconsole.c | 8 ++-- include/net.h| 3 ++- net/net.c| 1 + 3 files

[U-Boot] [PATCH 1/2] net: Allow netconsole settings to change after nc_start

2012-08-17 Thread Joe Hershberger
Refresh the netconsole settings from the env before each packet instead of only on netconsole init. Signed-off-by: Joe Hershberger --- drivers/net/netconsole.c | 96 1 file changed, 65 insertions(+), 31 deletions(-) diff --git a/drivers/net

[U-Boot] [PATCH 1/2] mmc: Fix version check for clock API in sdhci driver

2012-08-17 Thread Joe Hershberger
When setting up the clocks in the sdhci driver, the "spec version" must be masked off. Otherwise any time the vendor version is not 0, the check will allways assume the interface is version 3. This breaks when the interface is actually version 1 or 2. Signed-off-by: Joe H

[U-Boot] [PATCH 2/2] mmc: Add a SDHCI quirk for boards that have no CD

2012-08-17 Thread Joe Hershberger
Some boards have no Card Detect wired. In that case, set the CD test bits in the standard interface. Signed-off-by: Joe Hershberger --- drivers/mmc/sdhci.c | 17 +++-- include/sdhci.h | 7 ++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers/mmc

[U-Boot] [PATCH 1/3] hush: Add default value substitution support

2012-08-17 Thread Joe Hershberger
default. ${VAR:+default} If VAR is set and non-null, expands to the empty string. Otherwise, expands to default. Signed-off-by: Joe Hershberger --- common/hush.c | 43 --- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/common

[U-Boot] [PATCH 2/3] hush: Don't parse the contents of a dereferenced var

2012-08-17 Thread Joe Hershberger
set my_user_string Bob\'s favorite device Panda # print my_user_string my_user_string=Bob's favorite device Panda # echo $my_user_string Bob's favorite device Signed-off-by: Joe Hershberger --- common/hush.c | 64 +++

[U-Boot] [PATCH 3/3] hush: Include file and line number when reporting syntax errors

2012-08-17 Thread Joe Hershberger
Make debugging script problems easier just like non-u-boot. Signed-off-by: Joe Hershberger --- common/hush.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/hush.c b/common/hush.c index 4c84c2f..1db8a53 100644 --- a/common/hush.c +++ b/common/hush.c @@ -383,9

[U-Boot] [PATCH] arm: Add CONFIG_OF_BOARD_SETUP support to bootm

2012-08-17 Thread Joe Hershberger
ARM boards need to change device tree settings as well Signed-off-by: Joe Hershberger --- arch/arm/lib/bootm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 599547d..2e0b0c1 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c

[U-Boot] [PATCH 3/3] nand: Make NAND lock status compatible with Micron

2012-08-17 Thread Joe Hershberger
Micron NAND flash (e.g. MT29F4G08ABADAH4) BLOCK LOCK READ STATUS is not the same as others. Instead of bit 1 being lock, it is #lock_tight. To make the driver support either format, ignore bit 1 and use only bit 0 and bit 2. Signed-off-by: Joe Hershberger --- common/cmd_nand.c| 2

[U-Boot] [PATCH 2/3] nand: consolidate duplicated constants

2012-08-17 Thread Joe Hershberger
NAND_CMD_ constants for lock/unlock should be in the header Signed-off-by: Joe Hershberger --- drivers/mtd/nand/nand_util.c | 6 -- include/linux/mtd/nand.h | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand/nand_util.c b/drivers/mtd/nand/nand_util.c

[U-Boot] [PATCH 1/3] nand: Add support for unlock.invert

2012-08-17 Thread Joe Hershberger
NAND unlock command allows an invert bit to be set to unlock all but the selected page range. Signed-off-by: Joe Hershberger --- common/cmd_nand.c| 13 ++--- drivers/mtd/nand/nand_util.c | 9 ++--- include/nand.h | 4 ++-- 3 files changed, 18 insertions

[U-Boot] [PATCH 1/6] fdt: Check error codes returned from fdtlib when loading ITB

2012-08-17 Thread Joe Hershberger
Before this patch, error codes returned from fdtlib were ignored and continued access would cause a crash. Now just check if the image is truncated and error if so. Signed-off-by: Joe Hershberger --- common/image.c | 5 + 1 file changed, 5 insertions(+) diff --git a/common/image.c b/common

[U-Boot] [PATCH 5/6] fdt: Check for a token to skip auto-hash validation

2012-08-17 Thread Joe Hershberger
). Signed-off-by: Joe Hershberger --- common/image.c | 41 + include/image.h | 4 2 files changed, 45 insertions(+) diff --git a/common/image.c b/common/image.c index 4252e63..948ce0d 100644 --- a/common/image.c +++ b/common/image.c @@ -2494,6 +2494,36

[U-Boot] [PATCH 4/6] fdt: Identify scripts in ITBs as printable strings

2012-08-17 Thread Joe Hershberger
Scripts in the ITB format will have spaces in them and will end in a newline charachter. Make sure that these are considered printable. Signed-off-by: Joe Hershberger --- common/cmd_fdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/cmd_fdt.c b/common

[U-Boot] [PATCH 6/6] fdt: Add a Linux tool for reading values from FDT files

2012-08-17 Thread Joe Hershberger
Designed to be able to access itb files on a filesystem or an mtd partition. Supports print and list (like the fdt command) and also offset for finding the offset and size of a given property in an FDT file. This is especially helpful when reading properties from an ITB file. Signed-off-by: Joe

[U-Boot] [PATCH 3/6] fdt: Add get commands to fdt

2012-08-17 Thread Joe Hershberger
Add commands to access data in the fdt. This allows data from a dtb or itb to be accessed from the shell scripts. Signed-off-by: Joe Hershberger --- common/cmd_fdt.c | 144 +++ 1 file changed, 144 insertions(+) diff --git a/common/cmd_fdt.c

[U-Boot] [PATCH 2/6] fdt: Limit printed hex in fdt print and list commands

2012-08-17 Thread Joe Hershberger
Prevent printing the entire image in a itb. It is most likely unhelpful to have the hex of the entire image scroll for minutes on your slow serial console. Signed-off-by: Joe Hershberger --- common/cmd_fdt.c | 36 1 file changed, 24 insertions(+), 12

[U-Boot] [PATCH 1/2] cfi: Check for blank before erase

2012-08-17 Thread Joe Hershberger
Added an optional check in the CFI driver to evaluate if the sector is already blank before issuing an erase command. Improves erase time by over a factor of 10 if already blank. Signed-off-by: Joe Hershberger --- drivers/mtd/cfi_flash.c | 26 ++ 1 file changed, 26

[U-Boot] [PATCH 2/2] cfi: Make the flash erase and write operations abortable

2012-08-17 Thread Joe Hershberger
Check for ctrlc() in operations that take time and loop over the flash addresses. In netconsole, tstc() is expensive. Only check once in a while to not slow down the operation significantly. Signed-off-by: Joe Hershberger --- common/cmd_flash.c | 3 ++- common/flash.c | 3

[U-Boot] [PATCH 07/12] env: Update serial baudrate in env_relocate()

2012-08-17 Thread Joe Hershberger
After the env is relocated, make sure that the serial baudrate is applied in case it's different (such as the env_nand case). Signed-off-by: Joe Hershberger --- common/env_common.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/common/env_common.c b/common/env_com

[U-Boot] [PATCH 0/12] Add environment type checking and access control

2012-08-17 Thread Joe Hershberger
e same variable name to the "acl" variable. Joe Hershberger (12): tools/env: Use a board-specific default env tools/env: Remove unneeded complexity tools/env: Don't call env_init() in fw_getenv() tools/env: Reduce the impact on real-time processes tools/env: Ser

[U-Boot] [PATCH 02/12] tools/env: Remove unneeded complexity

2012-08-17 Thread Joe Hershberger
The length included the name length, and then it was subtracted back out on each use. Now we don't include it in the first place. Signed-off-by: Joe Hershberger --- tools/env/fw_env.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/env/fw_env.c b/tool

[U-Boot] [PATCH 01/12] tools/env: Use a board-specific default env

2012-08-17 Thread Joe Hershberger
config.h Need to define "TEXT_BASE" when building the fw_env tool so that the default env will be correct for environments which use it. Define __ASSEMBLY__ when calling #include so that we only get #defines (all we're interested in). Signed-off-by: Joe Hershberger --- tools/en

[U-Boot] [PATCH 08/12] env: Check for NULL pointer in envmatch()

2012-08-17 Thread Joe Hershberger
If the pointer passed into envmatch() is NULL, return -1 instead of crashing. Signed-off-by: Joe Hershberger --- common/cmd_nvedit.c | 3 +++ tools/env/fw_env.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index bd52fa4..76cdd87 100644 --- a

[U-Boot] [PATCH 03/12] tools/env: Don't call env_init() in fw_getenv()

2012-08-17 Thread Joe Hershberger
We will only call fw_getenv when the env has already been initialized. Signed-off-by: Joe Hershberger --- tools/env/fw_env.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index a461dbd..8bb7f9a 100644 --- a/tools/env/fw_env.c +++ b/tools/env

[U-Boot] [PATCH 05/12] tools/env: Serialize calls to fw_*env

2012-08-17 Thread Joe Hershberger
Use a lock file at /var/lock/fw_printenv.lock. Avoids seriously confusing the MTD driver. Signed-off-by: Joe Hershberger --- tools/env/fw_env_main.c | 59 +++-- 1 file changed, 37 insertions(+), 22 deletions(-) diff --git a/tools/env/fw_env_main.c b

[U-Boot] [PATCH 06/12] env: Make the "silent" env var take effect immediately

2012-08-17 Thread Joe Hershberger
The silent variable now updates the global data flag anytime it is changed as well as after the env relocation (in case its value is different from the default env in such cases as NAND env) Signed-off-by: Joe Hershberger --- common/cmd_nvedit.c | 16 common/env_common.c | 8

[U-Boot] [PATCH 11/12] env: acl: Add support for access control to env ACL

2012-08-17 Thread Joe Hershberger
Add support for read-only and write-once. Signed-off-by: Joe Hershberger --- README | 13 +++- common/cmd_nvedit.c | 51 common/env_acl.c| 38 + include/env_acl.h | 14 tools/env

[U-Boot] [PATCH 09/12] env: Clarify the cases for env set

2012-08-17 Thread Joe Hershberger
Use variables that define the access type to the env. This will simplify validation of access with the ACL. If deleting a variable that doesn't exist, do nothing Signed-off-by: Joe Hershberger --- common/cmd_nvedit.c | 101 +++- tool

[U-Boot] [PATCH 12/12] env: cosmetic: Consilidate the default env definition

2012-08-17 Thread Joe Hershberger
There used to be a huge structure duplicated 3 times in the source. Signed-off-by: Joe Hershberger --- common/env_common.c | 99 +-- common/env_embedded.c | 114 ++-- include/env_default.h | 142

[U-Boot] [PATCH 04/12] tools/env: Reduce the impact on real-time processes

2012-08-17 Thread Joe Hershberger
Modify fw_printenv to read in chunks of 0x20 at a time. Signed-off-by: Joe Hershberger --- tools/env/fw_env.c | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 8bb7f9a..9ecc22a 100644 --- a/tools/env

[U-Boot] [PATCH 10/12] env: acl: Add environment variable access control list

2012-08-17 Thread Joe Hershberger
static definitions, but prevents the need to have every definition in the environment distracting you. Move min macro from fw_env.c to fw_env.h... it is needed by env_acl.c when building for Linux. Need to build in _ctype for isdigit for Linux. Signed-off-by: Joe Hershberger --- README

[U-Boot] [PATCH] Allow runtime configuration of "zero-delay" check

2012-08-17 Thread Joe Hershberger
Define the new "-2" value for bootdelay to mean autoboot with no delay and don't check for an abort key (while "0" value means do check). Signed-off-by: Joe Hershberger --- README| 2 ++ common/main.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(

[U-Boot] [PATCH] Cleanup cache command prints

2012-08-17 Thread Joe Hershberger
Only print when queried, not every time the setting is changed. Signed-off-by: Joe Hershberger --- common/cmd_cache.c | 49 +++-- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/common/cmd_cache.c b/common/cmd_cache.c index 9c228e2

[U-Boot] [PATCH] Output strings from echo with puts where easy

2012-08-17 Thread Joe Hershberger
Change echo to puts charachters together where it knows about them together. This improves netconsole performance by greatly reducing the number of packets that are sent. Signed-off-by: Joe Hershberger --- common/cmd_echo.c | 20 1 file changed, 12 insertions(+), 8

[U-Boot] [PATCH] Change dead code in "test" cmd to debug output

2012-08-17 Thread Joe Hershberger
Improve debug output for test by indicating the number of parameters and quoting the parameters to make it clear exactly what each contains Signed-off-by: Joe Hershberger --- common/cmd_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/cmd_test.c b/common

[U-Boot] [PATCH] Add a new "ini" command

2012-08-17 Thread Joe Hershberger
This allows you to read ini-formatted data from anywhere and then import one of the sections into the environment This is based on rev 16 at http://code.google.com/p/inih/ Signed-off-by: Joe Hershberger --- common/Makefile | 1 + common/cmd_ini.c | 256

[U-Boot] [PATCH] Add a command to access the system timer

2012-08-17 Thread Joe Hershberger
Two sub-commands... start and get. * start sets the reference. * get prints out the time since the last start (in "." format). If get is called without start, returns time since boot. Simple way to benchmark an operation: "timer start;;timer get" Signed-off-by: Joe Hers

[U-Boot] [PATCH] Add a memory get command

2012-08-17 Thread Joe Hershberger
This command allows you to read the value of a memory address and store it in an environment variable. Signed-off-by: Joe Hershberger --- common/cmd_mem.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/common/cmd_mem.c b/common/cmd_mem.c

[U-Boot] [PATCH 2/2] Add unlzo command

2012-08-17 Thread Joe Hershberger
Provide access to the lzo decompressor from the command line. Signed-off-by: Joe Hershberger --- common/Makefile| 3 +++ common/cmd_unlzo.c | 65 ++ 2 files changed, 68 insertions(+) create mode 100644 common/cmd_unlzo.c diff --git a

[U-Boot] [PATCH 1/2] Add unlzma command

2012-08-17 Thread Joe Hershberger
Provide access to the lzma decompressor from the command line. Signed-off-by: Joe Hershberger --- common/Makefile | 3 +++ common/cmd_unlzma.c | 69 + 2 files changed, 72 insertions(+) create mode 100644 common/cmd_unlzma.c diff --git a

<    2   3   4   5   6   7   8   9   10   11   >