[U-Boot] [PATCH v5 16/20] env: Add a command to display details about env flags

2012-12-11 Thread Joe Hershberger
Similar to the env callback command, this will show details about the options available, the static list, and the currently active variables. Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: - Add help text for env flags command Changes in v3: None Changes in v2: None READ

[U-Boot] [PATCH v5 20/20] env: Handle write-once ethaddr and serial# generically

2012-12-11 Thread Joe Hershberger
Use the variable access flags to implement the protection for ethaddr and serial# instead of hard-coding them. Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None common/env_flags.c | 19 --- include/env_flags.h | 2

[U-Boot] [PATCH v5 09/20] env: Add a bootfile env handler

2012-12-11 Thread Joe Hershberger
Remove the hard-coded bootfile handler and use a callback instead Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c| 9 - include/env_callback.h | 1 + net/net.c | 17

[U-Boot] [PATCH v5 06/20] env: Hide '.' variables in env print by default

2012-12-11 Thread Joe Hershberger
When printing all variables with env print, don't print variables that begin with '.'. If env print is called with a '-a' switch, then include variables that begin with '.' (just like the ls command). Variables printed explicitly will be printed even without the -a. Signed-off-by: Joe Hershberge

[U-Boot] [PATCH v5 12/20] env: Add a console env handler

2012-12-11 Thread Joe Hershberger
Remove the hard-coded console handler and use a callback instead Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c| 36 +++- common/console.c | 44 +

[U-Boot] [PATCH v5 08/20] env: Add a command to view callbacks

2012-12-11 Thread Joe Hershberger
The callbacks can be bound, but are otherwise invisible. Add a command to show what callbacks are available. Signed-off-by: Joe Hershberger !!! fix callback command --- Changes in v5: - Fixed callbacks command help - Compare current callback against pre-relocation address manually Changes in v

[U-Boot] [PATCH v5 0/20] Add environment call-back and flags capability

2012-12-11 Thread Joe Hershberger
When a variable with a registered callback is inserted, deleted, or overwritten the callback is called and gives the system an opportunity to do something in response to the change. It also has the opportunuty to reject the change by returning non-zero. The flags on variables can control their t

[U-Boot] [PATCH v5 05/20] env: Use getenv_yesno() more generally

2012-12-11 Thread Joe Hershberger
Move the getenv_yesno() to env_common.c and change most checks for 'y' or 'n' to use this helper. Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/lib/board.c| 4 +--- arch/m68k/lib/board.c | 3 +-

[U-Boot] [PATCH v5 19/20] env: Implement the env delete command

2012-12-11 Thread Joe Hershberger
Implement a way to delete more than one variable at a time. Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: - Implement delete Changes in v3: None Changes in v2: None common/cmd_nvedit.c | 35 --- 1 file changed, 32 insertions(+), 3 deletio

[U-Boot] [PATCH v5 18/20] env: Add setenv force support

2012-12-11 Thread Joe Hershberger
Now that we have support for permissions, add a way to override them. Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: - Add force support to setenv Changes in v3: None Changes in v2: None common/cmd_nvedit.c | 29 +++-- 1 file changed, 23 insertion

[U-Boot] [PATCH v5 11/20] env: Add a loadaddr env handler

2012-12-11 Thread Joe Hershberger
Remove the hard-coded loadaddr handler and use a callback instead Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_nvedit.c| 12 common/image.c | 21 + include/env_callback.

[U-Boot] [PATCH v5 02/20] env: Refactor do_apply to a flag

2012-12-11 Thread Joe Hershberger
Use a flag in hsearch_r for insert mode passed from import to allow the behavior be different based on use. Now that "do_check" is called for all imports, ensure console init is complete before updating the console on relocation import Signed-off-by: Joe Hershberger --- Changes in v5: None Chang

[U-Boot] [PATCH v5 07/20] env: Add support for callbacks to environment vars

2012-12-11 Thread Joe Hershberger
Add support for per-variable callbacks to the "hashtable" functions. Signed-off-by: Joe Hershberger !!!fix comment in callback --- Changes in v5: - Add support for CONFIG_NEEDS_MANUAL_RELOC boards - Fixed comment typo Changes in v4: None Changes in v3: - Use Marek's linker lists instead of impl

[U-Boot] [PATCH v5 01/20] Make linux kernel string funcs available to tools

2012-12-11 Thread Joe Hershberger
isspace() and strim() are not in the typical user-mode string.h, so put them in a separate compilation unit so that they can be built into tools that need them independent of the other common string functions. This allows code shared by u-boot and the linux user-mode tools to link. Signed-off-by:

[U-Boot] [PATCH v5 17/20] env: Add support for access control to .flags

2012-12-11 Thread Joe Hershberger
Add support for read-only, write-once, and change-default. Signed-off-by: Joe Hershberger --- Changes in v5: - Fixed out-of-bounds array access in env_flags_parse_varaccess() Changes in v4: None Changes in v3: None Changes in v2: None README| 13 - common/cmd_nvedit.c |

[U-Boot] [PATCH v5 15/20] tools/env: Add environment variable flags support

2012-12-11 Thread Joe Hershberger
Currently just validates variable types as decimal, hexidecimal, boolean, ip address, and mac address. Call env_acl_validate_setenv_params() from setenv() in fw_env.c. If the entry is not found in the env .flags, then look in the static one. This allows the env to override the static definitions,

[U-Boot] [PATCH v5 04/20] env: Refactor apply into change_ok

2012-12-11 Thread Joe Hershberger
Move the read of the old value to inside the check function. In some cases it can be avoided all together and at the least the code is only called from one place. Also name the function and the callback to more clearly describe what it does. Pass the ENTRY instead of just the name for direct acc

[U-Boot] [PATCH v5 03/20] env: Consolidate common code in hsearch_r()

2012-12-11 Thread Joe Hershberger
The same chunk of code was replicated in two places and the following changes will make that chunk grow a bit, so combine into a static func. Signed-off-by: Joe Hershberger --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None lib/hashtable.c | 71 +

[U-Boot] [PATCH v5 14/20] env: Add environment variable flags

2012-12-11 Thread Joe Hershberger
Currently just validates variable types as decimal, hexidecimal, boolean, ip address, and mac address. If the entry is not found in the env ".flags", then look in the static one. This allows the env to override the static definitions, but prevents the need to have every definition in the environme

Re: [U-Boot] [PATCH 1/4] sf: Enable prints on erase and write functions

2012-12-11 Thread Simon Glass
Hi Jagan, On Mon, Dec 10, 2012 at 10:37 PM, Jagan Teki wrote: > Hi Simon, > > I understand your concern. > > But currently there is no prints a/f reading/writing/erasing the SPI flash. > User's are unable to confirm whether that particular sf commands are > properly done/not. Well if there is no

Re: [U-Boot] [PATCH 2/4] sf: Add print message on flash read function

2012-12-11 Thread Simon Glass
Hi, On Mon, Dec 10, 2012 at 6:41 AM, Jagannadha Sutradharudu Teki wrote: > This patch adds a print message on spi_flash_cmd_read_fast() > to make sure that how many bytes read from flash device. > > Signed-off-by: Jagannadha Sutradharudu Teki I have the same verbosity comment on this patch, BTW

Re: [U-Boot] [PATCH 4/4] sf: Add Quad-input Page Program(32h) instruction support

2012-12-11 Thread Simon Glass
Hi, On Mon, Dec 10, 2012 at 6:42 AM, Jagannadha Sutradharudu Teki wrote: > This patch provides support to program a flash using > Quad-input Page Program(32h) instruction. > > This will effectively increases the data transfer rate > by up to four times, as compared to the Page Program(PP) instruc

Re: [U-Boot] [PATCH 3/4] sf: Add configuration register writing

2012-12-11 Thread Simon Glass
Hi, On Mon, Dec 10, 2012 at 6:42 AM, Jagannadha Sutradharudu Teki wrote: > This patch provides support to program a flash config register. > > Configuration register contains the control bits used to configure > the different configurations and security features of a device. > > User need to set

Re: [U-Boot] [PATCH] net: sh_eth: add support for SH7752

2012-12-11 Thread Nobuhiro Iwamatsu
Hi, Joe. Please pick this patch for your repository. Best regards, Nobuhiro On Mon, Nov 12, 2012 at 2:52 PM, Nobuhiro Iwamatsu wrote: > On Mon, Nov 5, 2012 at 10:54 AM, Shimoda, Yoshihiro > wrote: >> SH7752 has two fast ethernet controllers and two gigabit ethernet >> controllers. It is simi

Re: [U-Boot] [PATCH] net: sh_eth: add support for SH7752

2012-12-11 Thread Joe Hershberger
Hi On Wed, Dec 12, 2012 at 12:37 AM, Nobuhiro Iwamatsu wrote: > Hi, Joe. > > Please pick this patch for your repository. Sure thing. Did you recently assign it to me in patchwork? I don't remember seeing it when I pulled patches a few days back. -Joe > Best regards, > Nobuhiro > > On Mon,

[U-Boot] [PATCH 0/4] Add support for SAMSUNG Exynos4 SoCs and ORIGEN_QUAD board

2012-12-11 Thread Jeong Hyeon Kim
This patch series adds support for Exynos4 SoCs and ORIGEN_QUAD board. Exynos4212/4412 are SAMSUNG's ARM Cortex-A15 boased SoCs and Exynos4 series SoCs. ORIGEN_QUAD board is based on Exynos4212. [PATCH 1/4] EXYNOS4: Add pinmux support for UART [PATCH 2/4] EXYNOS4: Add pinmux support for I2C [PATC

[U-Boot] [PATCH 1/4] EXYNOS4: Add pinmux support for UART

2012-12-11 Thread Jeong Hyeon Kim
From: Jeong-Hyeon Kim This patch adds pinmux support for UART channels Signed-off-by: Jeong-Hyeon Kim --- arch/arm/cpu/armv7/exynos/pinmux.c | 41 1 file changed, 41 insertions(+) diff --git a/arch/arm/cpu/armv7/exynos/pinmux.c b/arch/arm/cpu/armv7/exyn

[U-Boot] [PATCH 2/4] EXYNOS4: Add pinmux support for I2C

2012-12-11 Thread Jeong Hyeon Kim
From: Jeong-Hyeon Kim This patch adds pinmux support for I2C channels Signed-off-by: Jeong-Hyeon Kim --- arch/arm/cpu/armv7/exynos/pinmux.c | 51 1 file changed, 51 insertions(+) diff --git a/arch/arm/cpu/armv7/exynos/pinmux.c b/arch/arm/cpu/armv7/exyno

[U-Boot] [PATCH 3/4] EXYNOS4: Add support for Exynos4x12 SoCs

2012-12-11 Thread Jeong Hyeon Kim
From: Jeong-Hyeon Kim This patch adds the support for Exynos4212/4412. Samsung's ARM Cortex-A9 based Exynos4x12 SoCs and Exynos4210 are similar. Address of a few registers are different in CMU part like MPLL. Signed-off-by: Jeong-Hyeon Kim --- arch/arm/cpu/armv7/exynos/clock.c|7 +

[U-Boot] [PATCH 4/4] EXYNOS4: Add ORIGEN_QUAD board support

2012-12-11 Thread Jeong Hyeon Kim
From: Jeong-Hyeon Kim ORIGEN_QUAD board is based on Samsung's Exynos4412 SoC. Signed-off-by: Jeong-Hyeon Kim --- Makefile |2 +- board/samsung/origen_quad/Makefile| 59 ++ board/samsung/origen_quad/boot.c | 72 +++ board/samsung

<    1   2