Re: [U-Boot] [PATCH v2 1/4] ehci-omap: Clean up added ehci-omap.c

2012-01-22 Thread Igor Grinberg
On 01/19/12 10:15, Govindraj wrote: On Wed, Jan 18, 2012 at 11:21 PM, Igor Grinberg grinb...@compulab.co.il wrote: Hi Govindraj, On 01/17/12 08:10, Govindraj wrote: And just to clarify further there is no code duplication for ulpi read writes in ehci-omap.c done with this patch. This

[U-Boot] [GIT PULL] Pull request: u-boot-imx

2012-01-22 Thread Stefano Babic
Hi Albert, please pull from u-boot-imx, thanks. The following changes since commit 5d250e52ffd5554834a45ac8d53762fbbf36933c: tegra2: Enable data cache (2012-01-18 15:54:07 -0700) are available in the git repository at: git://www.denx.de/git/u-boot-imx.git master Dirk Behme (4):

Re: [U-Boot] [PATCH v2 3/7] tegra: fdt: Add extra I2C bindings for U-Boot

2012-01-22 Thread Simon Glass
Hi Stephen, On Thu, Jan 19, 2012 at 12:51 PM, Stephen Warren swar...@nvidia.com wrote: On 01/12/2012 12:00 PM, Simon Glass wrote: Add U-Boot's peripheral clock information to the Tegra20 device tree file. diff --git a/arch/arm/dts/tegra20.dtsi b/arch/arm/dts/tegra20.dtsi index

Re: [U-Boot] [PATCH] ARM: tegra: Define Tegra20 CAR binding

2012-01-22 Thread Simon Glass
Hi Stephen, On Wed, Jan 18, 2012 at 4:16 PM, Stephen Warren swar...@nvidia.com wrote: Document a binding for the Tegra20 CAR (Clock And Reset) Controller, add it to tegra20.dtsi, and configure it for the board in tegra- seaboard.dts. Signed-off-by: Stephen Warren swar...@nvidia.com ---

Re: [U-Boot] [PATCH v4 02/20] fdt: Add functions to access phandles, arrays and bools

2012-01-22 Thread Jerry Van Baren
On 01/11/2012 11:32 PM, Simon Glass wrote: Add a function to look up a property which is a phandle in a node, and another to read a fixed-length integer array from an fdt property. Also add a function to read boolean properties, although there is no actual boolean type in U-Boot.

Re: [U-Boot] [PATCH v4 01/20] fdt: Tidy up a few fdtdec problems

2012-01-22 Thread Jerry Van Baren
On 01/11/2012 11:32 PM, Simon Glass wrote: This fixes five trivial issues in fdtdec.c: 1. fdtdec_get_is_enabled() doesn't really need a default value 2. The fdt must be word-aligned, since otherwise it will fail on ARM 3. The compat_names[] array is missing its first element. This is needed

Re: [U-Boot] [PATCH v3 2/2] fdt: Add tests for fdtdec

2012-01-22 Thread Jerry Van Baren
On 01/17/2012 01:20 PM, Simon Glass wrote: The fdtdec_find_aliases_for_id() function is complicated enough that it really should have some tests. This does not necessarily need to be committed to U-Boot, but it might be useful. (note there are a few minor inconsistencies with this patch

Re: [U-Boot] [PATCH v3 1/2] fdt: Add fdtdec_find_aliases() to deal with alias nodes

2012-01-22 Thread Jerry Van Baren
On 01/17/2012 01:20 PM, Simon Glass wrote: Stephen Warren pointed out that we should use nodes whether or not they have an alias in the /aliases section. The aliases section specifies the order so far as it can, but is not essential. Operating without alisses Nitpick: aliases is useful when

Re: [U-Boot] fdt patches for Tegra

2012-01-22 Thread Jerry Van Baren
On 01/19/2012 06:40 PM, Tom Warren wrote: Folks, Simon and Stephen have been talking offline about Simon's fdt patches, to wit: U-Boot-v3-1-2-fdt-Add-fdtdec_find_aliases-to-deal-with-alias-nodes.patch U-Boot-v3-2-2-fdt-Add-tests-for-fdtdec.patch

[U-Boot] device tree compilation problems.

2012-01-22 Thread hanumant
Hi I am getting DTC when compiling dts file with CONFIG_OF_CONTROL. The message says that it cannot find skeleton.dtsi though its placed in the same directory as the dts file. I notice that if i remove this line from the dts Makefile, the error disappears $(DT_BIN):

[U-Boot] [PATCH] mx28: Show CPU frequency

2012-01-22 Thread Fabio Estevam
Showing CPU frequency during boot is useful information. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- arch/arm/cpu/arm926ejs/mx28/mx28.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/mx28/mx28.c

Re: [U-Boot] [PATCH v3 1/2] fdt: Add fdtdec_find_aliases() to deal with alias nodes

2012-01-22 Thread Simon Glass
Hi Jerry, On Sun, Jan 22, 2012 at 6:04 PM, Jerry Van Baren gvb.ub...@gmail.com wrote: On 01/17/2012 01:20 PM, Simon Glass wrote: Stephen Warren pointed out that we should use nodes whether or not they have an alias in the /aliases section. The aliases section specifies the order so far as it

Re: [U-Boot] [PATCH] mx28: Show CPU frequency

2012-01-22 Thread Marek Vasut
Showing CPU frequency during boot is useful information. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- arch/arm/cpu/arm926ejs/mx28/mx28.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/mx28/mx28.c

[U-Boot] [U-Boot-Users]

2012-01-22 Thread periyasamy samy
hi.. i am new to u-boot. can u help me where to start. -- *Thanks Regards** * *periyasamy.R* ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 1/8] sandbox: fdt: Add support for CONFIG_OF_CONTROL

2012-01-22 Thread Simon Glass
Hi Mike, On Fri, Jan 20, 2012 at 10:54 AM, Mike Frysinger vap...@gentoo.org wrote: On Tuesday 10 January 2012 19:45:45 Simon Glass wrote: This adds support for a controlling fdt, mirroring the ARM implementation. OK, but what's the point if we aren't doing FDT's ? Aren't we? I hope that

Re: [U-Boot] [PATCH v2 2/8] sandbox: config: Enable fdt and snprintf() options

2012-01-22 Thread Simon Glass
Hi Mike, On Fri, Jan 20, 2012 at 10:54 AM, Mike Frysinger vap...@gentoo.org wrote: On Tuesday 10 January 2012 19:45:46 Simon Glass wrote: +#define CONFIG_LMB do we need this ? Without it I think bootm fails to build with FDT enabled. Regards, Simon -mike

[U-Boot] uboot configuration for uImage

2012-01-22 Thread manish kanchan
hi, I am manish. I recently started working with beagleboard xm . I have a basic doubt.. The sd card is divided into fat32 and ext3 partition. All the neccesary files such as MLO, uboot.bin,uimage are put in the fat32 folder.I belive this is done so that the uboot will pick up uimage from this

Re: [U-Boot] [U-Boot-Users]

2012-01-22 Thread Prabhakar Lad
Hi Periyasamy, Probably you need to be more elaborate on what exactly you want. you might before go through this links before asking you queries. http://www.denx.de/wiki/DULG/Faq http://www.denx.de/wiki/U-Bootdoc/Presentation http://www.denx.de/wiki/U-Boot/WebHome WBR, --Prabhakar Lad On Mon,

Re: [U-Boot] [U-Boot-Users]

2012-01-22 Thread Wolfgang Denk
Dear periyasamy samy, In message cabftkv0_r+_wj_bakujkpcaxrk6qsicg9uhhaz+q2mpqe9q...@mail.gmail.com you wrote: hi.. i am new to u-boot. can u help me where to start. Start reading (in that order): http://www.catb.org/~esr/faqs/smart-questions.html

Re: [U-Boot] [PATCH v2 3/8] sandbox: gpio: Add basic driver for simulating GPIOs

2012-01-22 Thread Simon Glass
Hi Mike, On Fri, Jan 20, 2012 at 10:59 AM, Mike Frysinger vap...@gentoo.org wrote: On Tuesday 10 January 2012 19:45:47 Simon Glass wrote: This provides a way of simulating GPIOs by setting values which are seen by the normal gpio_get/set_value() calls. seems to be a desync in types ... all

Re: [U-Boot] [PATCH v2 4/8] sandbox: Enable GPIO driver

2012-01-22 Thread Simon Glass
Hi Mike, On Fri, Jan 20, 2012 at 10:59 AM, Mike Frysinger vap...@gentoo.org wrote: On Tuesday 10 January 2012 19:45:48 Simon Glass wrote: --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h +#define CONFIG_SANDBOX_GPIO_COUNT    224 do we really need 224 examples GPIOs ?  can't

Re: [U-Boot] [PATCH v2 6/8] sandbox: Allow processing instead of or before main loop

2012-01-22 Thread Simon Glass
Hi Mike, On Fri, Jan 20, 2012 at 11:00 AM, Mike Frysinger vap...@gentoo.org wrote: On Tuesday 10 January 2012 19:45:50 Simon Glass wrote: In order to pass command line arguments to sandbox we need to be able to act on them. So take control back at the end of board_init_r() from where we can

[U-Boot] [PATCH 0/6] sandbox: spi/sf emulation

2012-01-22 Thread Mike Frysinger
Finished this up while on a jet plane. Ignoring the getopt patch, this should be good to go. Mike Frysinger (6): sandbox: add lseek helper sandbox: add getopt support sandbox: SPI emulation bus sandbox: new SPI flash driver sandbox: enable new spi/sf layers sandbox: add getenv

[U-Boot] [PATCH 2/6] sandbox: add getopt support

2012-01-22 Thread Mike Frysinger
Note: just a PoC that the current SPI flash code is based on. Not meant to reject the getopt code Simon posted. Signed-off-by: Mike Frysinger vap...@gentoo.org --- arch/sandbox/cpu/os.c| 13 + arch/sandbox/cpu/start.c | 24 include/os.h |

[U-Boot] [PATCH 3/6] sandbox: SPI emulation bus

2012-01-22 Thread Mike Frysinger
This adds a SPI framework for people to hook up simulated SPI clients. Signed-off-by: Mike Frysinger vap...@gentoo.org --- arch/sandbox/include/asm/spi.h | 33 +++ drivers/spi/Makefile |1 + drivers/spi/sandbox_spi.c | 183 3

[U-Boot] [PATCH 1/6] sandbox: add lseek helper

2012-01-22 Thread Mike Frysinger
Follow up patches want to be able to seek fd's. Signed-off-by: Mike Frysinger vap...@gentoo.org --- arch/sandbox/cpu/os.c |5 + include/os.h | 10 ++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index

[U-Boot] [PATCH 4/6] sandbox: new SPI flash driver

2012-01-22 Thread Mike Frysinger
This adds a SPI flash driver which simulates SPI flash clients. Currently supports the bare min that U-Boot requires: you can probe, read, erase, and write. Should be easy to extend to make it behave more exactly like a real SPI flash, but this is good enough to merge now. Signed-off-by: Mike

[U-Boot] [PATCH 6/6] sandbox: add getenv support

2012-01-22 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- arch/sandbox/cpu/os.c | 13 + include/os.h |1 + 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index 1d3e54f..4428f57 100644 --- a/arch/sandbox/cpu/os.c

[U-Boot] [PATCH 5/6] sandbox: enable new spi/sf layers

2012-01-22 Thread Mike Frysinger
We want to test SPI flash code in the sandbox, so enable the new drivers. Signed-off-by: Mike Frysinger vap...@gentoo.org --- include/configs/sandbox.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index

Re: [U-Boot] [PATCH v2 8/8] sandbox: Add basic command line parsing

2012-01-22 Thread Simon Glass
Hi Mike, On Fri, Jan 20, 2012 at 11:05 AM, Mike Frysinger vap...@gentoo.org wrote: On Tuesday 10 January 2012 19:45:52 Simon Glass wrote: --- a/arch/sandbox/cpu/os.c +++ b/arch/sandbox/cpu/os.c +static struct option long_options[] = { constify Done +void os_usage(int err) +{ +     if

[U-Boot] [PATCH v3 1/8] sandbox: fdt: Add support for CONFIG_OF_CONTROL

2012-01-22 Thread Simon Glass
This adds support for a controlling fdt, mirroring the ARM implementation. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Use #if defined()..#elif defined, instead of #ifdef..#elif defined arch/sandbox/include/asm/global_data.h |1 + arch/sandbox/lib/board.c

[U-Boot] [PATCH v3 4/8] sandbox: Enable GPIO driver

2012-01-22 Thread Simon Glass
Enable the new GPIO driver for sandbox. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Reduce number of GPIOs from 224 to 20 include/configs/sandbox.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/configs/sandbox.h

[U-Boot] [PATCH v3 8/8] sandbox: Add basic command line parsing

2012-01-22 Thread Simon Glass
This adds simple command-line parsing to sandbox. The idea is that it sets up the state with options provided, and this state can then be queried later, as needed. For now we just allow it to run a command. Passing a command to U-Boot on stdin is not as convenient IMO. The parsing code is in

[U-Boot] [PATCH v3 3/8] sandbox: gpio: Add basic driver for simulating GPIOs

2012-01-22 Thread Simon Glass
This provides a way of simulating GPIOs by setting values which are seen by the normal gpio_get/set_value() calls. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Fix gpio_direction_output() to actually set the value - Use generic GPIO command and interface Changes in v3: -

[U-Boot] [PATCH v3 6/8] sandbox: Allow processing instead of or before main loop

2012-01-22 Thread Simon Glass
In order to pass command line arguments to sandbox we need to be able to act on them. So take control back at the end of board_init_r() from where we can call the main loop or do something else. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Call cpu_main_loop() from

[U-Boot] [PATCH v3 7/8] sandbox: Add flags for open() call

2012-01-22 Thread Simon Glass
This provides a way for callers to create files for writing. We define flags which mirror the POSIX values. Another approach would be to translate the flags at runtime. Perhaps we can leave to whoever wants to port this to another OS? Signed-off-by: Simon Glass s...@chromium.org --- Changes in

[U-Boot] [PATCH v3 2/8] sandbox: config: Enable fdt and snprintf() options

2012-01-22 Thread Simon Glass
Enable fdt code and safe snprintf() options for sandbox. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/sandbox.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 10565e6..6790216 100644

[U-Boot] [PATCH v3 5/8] sandbox: Add concept of sandbox state

2012-01-22 Thread Simon Glass
The state exists through the life of U-Boot. It can be adjusted by command line options and perhaps later through a config file. It is available to U-Boot through state_...() calls (within sandbox code). Signed-off-by: Simon Glass s...@chromium.org --- arch/sandbox/cpu/Makefile

Re: [U-Boot] [PATCH 1/6] sandbox: add lseek helper

2012-01-22 Thread Simon Glass
Hi Mike, On Sun, Jan 22, 2012 at 10:30 PM, Mike Frysinger vap...@gentoo.org wrote: Follow up patches want to be able to seek fd's. Signed-off-by: Mike Frysinger vap...@gentoo.org ---  arch/sandbox/cpu/os.c |    5 +  include/os.h          |   10 ++  2 files changed, 15

Re: [U-Boot] device tree compilation problems.

2012-01-22 Thread Simon Glass
Hi, On Sun, Jan 22, 2012 at 6:16 PM, hanumant hanuman...@gmail.com wrote: Hi   I am getting DTC when compiling dts file with CONFIG_OF_CONTROL. The message says that it cannot find skeleton.dtsi though its placed in the same directory as the dts file. I notice that if i remove this line

Re: [U-Boot] [PATCH v2] net/eth.c: fix eth_write_hwaddr() to use dev-enetaddr as fall back

2012-01-22 Thread Simon Glass
Hi, On Thu, Jan 19, 2012 at 12:56 AM, Dirk Behme dirk.be...@de.bosch.com wrote: From: Eric Miao eric.m...@linaro.org Ignore the return value of eth_getenv_enetaddr_by_index(), and if it fails, fall back to use dev-enetaddr, which could be filled up by the ethernet device driver: With the

Re: [U-Boot] [PATCH v2 1/8] sandbox: fdt: Add support for CONFIG_OF_CONTROL

2012-01-22 Thread Mike Frysinger
On Monday 23 January 2012 00:27:56 Simon Glass wrote: On Fri, Jan 20, 2012 at 10:54 AM, Mike Frysinger wrote: On Tuesday 10 January 2012 19:45:45 Simon Glass wrote: This adds support for a controlling fdt, mirroring the ARM implementation. OK, but what's the point if we aren't doing