Re: [U-Boot] [PATCH] dfu: mmc: Replace calls to u-boot commands with native mmc API

2014-02-27 Thread Lukasz Majewski
Hi Pantelis, Hi Lukasz, Looks fine to me. Let me run a few tests over the weekend and I'll apply. Have the run test gone smoothly? Thanks -- Pantelis On Feb 21, 2014, at 9:23 AM, Lukasz Majewski wrote: For some time we have been using the run_command() with properly crafted

Re: [U-Boot] [PATCH] dfu: mmc: Replace calls to u-boot commands with native mmc API

2014-02-27 Thread Pantelis Antoniou
Hi Lukasz, On Feb 27, 2014, at 10:36 AM, Lukasz Majewski wrote: Hi Pantelis, Hi Lukasz, Looks fine to me. Let me run a few tests over the weekend and I'll apply. Have the run test gone smoothly? In the middle of reworking some core stuff in mmc, will test when that's done.

Re: [U-Boot] [PATCH] dfu: mmc: Replace calls to u-boot commands with native mmc API

2014-02-27 Thread Lukasz Majewski
Hi Pantelis, Hi Lukasz, On Feb 27, 2014, at 10:36 AM, Lukasz Majewski wrote: Hi Pantelis, Hi Lukasz, Looks fine to me. Let me run a few tests over the weekend and I'll apply. Have the run test gone smoothly? In the middle of reworking some core stuff in mmc, will

Re: [U-Boot] [PATCH] dfu: mmc: Replace calls to u-boot commands with native mmc API

2014-02-27 Thread Pantelis Antoniou
Hi Lukasz, On Feb 27, 2014, at 11:21 AM, Lukasz Majewski wrote: Hi Pantelis, Hi Lukasz, On Feb 27, 2014, at 10:36 AM, Lukasz Majewski wrote: Hi Pantelis, Hi Lukasz, Looks fine to me. Let me run a few tests over the weekend and I'll apply. Have the run test gone smoothly?

[U-Boot] U-Boot: could not cross-compile u-boot tools

2014-02-27 Thread Heiko Schocher
Hello all, just noticed, that it is not longer possible to cross-compile the u-boot tools: Older U-Boot (= before kbuild changes), could cross-compile the u-boot tools: $ git log commit 9137d19bdd321b810275f2e967e3a39165a4e8de Author: Heiko Schocher h...@denx.de Date: Thu Jan 30 11:02:13

Re: [U-Boot] [PATCH] hush: when a variable expansion is empty, don't drop the parameter

2014-02-27 Thread Russell King - ARM Linux
On Wed, Feb 26, 2014 at 11:55:06PM -0700, Stephen Warren wrote: The following shell command fails: if test -z $x; then echo zero; else echo non-zero; fi (assuming $x does not exist, it prints non-zero rather than zero). ... since $x expands to nothing, and the argument is completely

Re: [U-Boot] [PATCH] hush: when a variable expansion is empty, don't drop the parameter

2014-02-27 Thread Russell King - ARM Linux
On Thu, Feb 27, 2014 at 10:39:24AM +, Russell King - ARM Linux wrote: Standard shell will only drop an empty expansion if it's unquoted, so: a=1 2 3 b=4 c= echo $a $b $c ends up with arg1 = 1, arg2 = 2, arg3 = 3, arg4 = 4 and no arg5 echo $a $b $c

[U-Boot] start address loading initrd in ram on arm

2014-02-27 Thread Joren Bultheel
Which address should I give when loading an initrd into ram using U-boot on an arm-based architecture? How can I find out? I have found many google hits where people are loading initrd files in ram but they use always another target ram address. It is never explained why they use 0x7000 or

[U-Boot] [PATCH] kbuild: consolidate PLATFORM_LIBS

2014-02-27 Thread Masahiro Yamada
We had switched to Kbuild so now we can specify PLATFORM_LIBS/PLATFORM_LIBGCC with relative path. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com --- Makefile | 2 +- arch/arm/config.mk | 9 ++--- spl/Makefile | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-)

Re: [U-Boot] [RFC] mmc: Remove ops from struct mmc and put in mmc_ops

2014-02-27 Thread Tom Rini
On Wed, Feb 26, 2014 at 07:52:24PM +0200, Pantelis Antoniou wrote: Remove the in-structure ops and put them in mmc_ops with a constant pointer to it. This makes the mmc structure smaller as well as conserving code space (in theory). All in-tree drivers are converted as well; this is done

Re: [U-Boot] [RFC] mmc: Remove ops from struct mmc and put in mmc_ops

2014-02-27 Thread Tom Rini
On Thu, Feb 27, 2014 at 04:04:55AM +, Rommel G Custodio wrote: Dear Pantelis Antoniou Pantelis Antoniou panto at antoniou-consulting.com writes: Remove the in-structure ops and put them in mmc_ops with a constant pointer to it. This makes the mmc structure smaller as well as

Re: [U-Boot] [PATCH V3 03/12] video:exynos_fb:fdt: add additional fdt data

2014-02-27 Thread Ajay kumar
Piotr, Adding more comments. On Thu, Feb 27, 2014 at 10:50 PM, Ajay kumar ajayn...@gmail.com wrote: Hi Piotr, Find my comments inline. On Tue, Feb 25, 2014 at 11:33 PM, Piotr Wilczek p.wilc...@samsung.comwrote: This patch adds additional data parsing from DTB and adds the new

Re: [U-Boot] [PATCH V3 03/12] video:exynos_fb:fdt: add additional fdt data

2014-02-27 Thread Ajay kumar
Hi Piotr, Find my comments inline. On Tue, Feb 25, 2014 at 11:33 PM, Piotr Wilczek p.wilc...@samsung.comwrote: This patch adds additional data parsing from DTB and adds the new exynos_lcd_panel_init() function for panel specific initialisation from the board file. Signed-off-by: Piotr

[U-Boot] [PATCH 4/4] kbuild: improve Kbuild speed

2014-02-27 Thread Masahiro Yamada
Kbuild brought about many advantages for us but a significant performance regression was reported by Simon Glass. After some discussions and analysis, it turned out its main cause is in $(call cc-option,...). Historically, U-Boot parses all config.mk (arch/*/config.mk and board/*/config.mk)

[U-Boot] [PATCH 2/4] kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBS

2014-02-27 Thread Masahiro Yamada
Before this commit, USE_PRIVATE_LIBS is defined in arch-specific config.mk and referenced in arch/$(ARCH)/lib/Makefile. We are not happy about parsing config.mk again and again. We have to keep the same behavior with a different way. By adding CONFIG_ prefix, this macro appears in

[U-Boot] [PATCH 0/4] Big acceleration of Kbuild performance

2014-02-27 Thread Masahiro Yamada
Kbuild brought about many advantages for us but a significant performance regression was reported by Simon Glass. After some discussions and analysis, it turned out its main cause is in $(call cc-option,...). Historically, U-Boot parses all config.mk (arch/*/config.mk and board/*/config.mk)

[U-Boot] [PATCH 1/4] kbuild, blackfin: Add CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED

2014-02-27 Thread Masahiro Yamada
Many (but not all) of Blackfin boards give -O2 option to compile under lib/ directory. That means lib/ should be speed-optimized, whereas other parts should be size-optimized. We want to keep the same behavior, but do not want to parse board/*/config.mk again and again. We've got no choice but to

[U-Boot] [PATCH 3/4] config.mk: specify the exact path to standalone linker script

2014-02-27 Thread Masahiro Yamada
We want to change the build system to include config.mk only from ./Makefile and spl/Makefile. We must prepare for that in this commit. $(src) is a moving target and not handy for our purpose. We must replace it with a fixed path. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com ---

Re: [U-Boot] start address loading initrd in ram on arm

2014-02-27 Thread Tom Rini
On Thu, Feb 27, 2014 at 11:50:33AM +0100, Joren Bultheel wrote: Which address should I give when loading an initrd into ram using U-boot on an arm-based architecture? How can I find out? I have found many google hits where people are loading initrd files in ram but they use always another

Re: [U-Boot] [PATCH] kbuild: consolidate PLATFORM_LIBS

2014-02-27 Thread Tom Rini
On Thu, Feb 27, 2014 at 10:40:34PM +0900, Masahiro Yamada wrote: We had switched to Kbuild so now we can specify PLATFORM_LIBS/PLATFORM_LIBGCC with relative path. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Acked-by: Tom Rini tr...@ti.com -- Tom signature.asc Description:

Re: [U-Boot] [PATCH v2 1/2] nand/denali: Adding Denali NAND driver support

2014-02-27 Thread Masahiro Yamada
Hello Chin, + + nand-ecc.mode = NAND_ECC_HW; + nand-ecc.size = CONFIG_NAND_DENALI_ECC_SIZE; + nand-ecc.read_oob = denali_read_oob; + nand-ecc.write_oob = denali_write_oob; + nand-ecc.read_page = denali_read_page; + nand-ecc.read_page_raw = denali_read_page_raw; +

Re: [U-Boot] U-Boot: could not cross-compile u-boot tools

2014-02-27 Thread Tom Rini
On Thu, Feb 27, 2014 at 01:20:52PM +0100, Heiko Schocher wrote: Hello all, just noticed, that it is not longer possible to cross-compile the u-boot tools: Older U-Boot (= before kbuild changes), could cross-compile the u-boot tools: $ git log commit

Re: [U-Boot] [PATCH V3 02/12] video:mipidsim:fdt: Add DT support for mipi dsim driver

2014-02-27 Thread Ajay kumar
Piotr, DT bindings should usually be free of _ (underscore) Please use hyphen: - On Tue, Feb 25, 2014 at 11:33 PM, Piotr Wilczek p.wilc...@samsung.comwrote: This patch enables parsing mipi data from device tree. Non device tree case is still supported. Signed-off-by: Piotr Wilczek

Re: [U-Boot] [PATCH v5] socfpga: Adding Scan Manager driver

2014-02-27 Thread Chin Liang See
Dear Wolfgang, On Sat, 2014-02-22 at 09:42 +0100, ZY - wd wrote: Dear Chin Liang See, In message 1393022790-9296-1-git-send-email-cl...@altera.com you wrote: Scan Manager driver will be called to configure the IOCSR scan chain. This configuration will setup the IO buffer settings

[U-Boot] [PATCH v6] socfpga: Adding Scan Manager driver

2014-02-27 Thread Chin Liang See
Scan Manager driver will be called to configure the IOCSR scan chain. This configuration will setup the IO buffer settings Signed-off-by: Chin Liang See cl...@altera.com Cc: Dinh Nguyen dingu...@altera.com Cc: Wolfgang Denk w...@denx.de CC: Pavel Machek pa...@denx.de Cc: Tom Rini tr...@ti.com Cc:

Re: [U-Boot] [U-Boot PATCH v2 00/12] Add support for keystone2 SoC and K2HK EVM

2014-02-27 Thread Karicheri, Muralidharan
-Original Message- From: Tom Rini [mailto:tom.r...@gmail.com] On Behalf Of Rini, Tom Sent: Tuesday, February 25, 2014 5:11 PM To: Karicheri, Muralidharan Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] [U-Boot PATCH v2 00/12] Add support for keystone2 SoC and K2HK EVM On Thu, Feb 20, 2014

Re: [U-Boot] [U-Boot PATCH v2 05/12] NAND: DaVinci: allow forced disable of subpage writes

2014-02-27 Thread Murali Karicheri
On 2/25/2014 11:01 PM, Scott Wood wrote: On Thu, 2014-02-20 at 12:55 -0500, Murali Karicheri wrote: This patch introduces a configurable mechanism to disable subpage writes in the DaVinci NAND driver. Signed-off-by: Vitaly Andrianov vita...@ti.com Signed-off-by: Murali Karicheri

Re: [U-Boot] start address loading initrd in ram on arm

2014-02-27 Thread Joren Bultheel
Thank you! So in my situation; after loading the kernel in ram, I know where to load my initrd image: U-Boot printenv boot_dev boot_dev=mmc dev 2; ext2load mmc 2:1 0x1080 /boot/uImage U-Boot run boot_dev mmc2(part 0) is current device Loading file /boot/uImage from mmc device 2:1

Re: [U-Boot] [PATCH v2 1/2] nand/denali: Adding Denali NAND driver support

2014-02-27 Thread Chin Liang See
Hi Michal, On Mon, 2014-02-24 at 08:48 +0100, Michal Simek wrote: On 02/21/2014 09:51 PM, Chin Liang See wrote: To add the Denali NAND driver support into U-Boot. It required information such as register base address from configuration header file within include/configs folder.

[U-Boot] [PATCH v3] nand/denali: Adding Denali NAND driver support

2014-02-27 Thread Chin Liang See
To add the Denali NAND driver support into U-Boot. It required information such as register base address from configuration header file within include/configs folder. Signed-off-by: Chin Liang See cl...@altera.com Cc: Artem Bityutskiy artem.bityuts...@linux.intel.com Cc: David Woodhouse

Re: [U-Boot] start address loading initrd in ram on arm

2014-02-27 Thread Tom Rini
On Thu, Feb 27, 2014 at 05:49:47PM +0100, Joren Bultheel wrote: Thank you! So in my situation; after loading the kernel in ram, I know where to load my initrd image: U-Boot printenv boot_dev boot_dev=mmc dev 2; ext2load mmc 2:1 0x1080 /boot/uImage U-Boot run boot_dev

Re: [U-Boot] [PATCH 2/4] kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBS

2014-02-27 Thread Stephen Warren
On 02/27/2014 07:28 AM, Masahiro Yamada wrote: Before this commit, USE_PRIVATE_LIBS is defined in arch-specific config.mk and referenced in arch/$(ARCH)/lib/Makefile. I think you need to s/USE_PRIVATE_LIBS/USE_PRIVATE_LIBGCC/ throughout the patch subject and description. With that change,

Re: [U-Boot] [PATCH 4/4] ARM: tegra: simplify halt_avp()

2014-02-27 Thread Stephen Warren
On 02/03/2014 02:03 PM, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com In order to completely halt the AVP processor, we should simply write FLOW_MODE_STOP without any extra options that allow wakeup. Amend the code to do this. I believe that enabling FIQ_1 and IRQ_1 allow

Re: [U-Boot] [PATCH V4 1/3] ARM: tegra: convert tegra to use distro defaults

2014-02-27 Thread Stephen Warren
On 02/05/2014 09:24 AM, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com Modify all Tegra boards to include the distro defaults header, so that all the config options distros expect are enabled. Remove any #defines that enable the same options from the Tegra files. Tom, does

Re: [U-Boot] [PATCH] ARM: tegra: set CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS

2014-02-27 Thread Stephen Warren
On 02/10/2014 01:11 PM, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com Tegra's EHCI controllers only have a single PORTSC register. Configure U-Boot to know this. This prevents e.g. ehci_shutdown() from touching non-existent registers. Tom, does this patch look good? It's

Re: [U-Boot] [PATCH] ARM: tegra: set CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS

2014-02-27 Thread Tom Warren
I'll look at this (and the other two) this afternoon, other work permitting. -Original Message- From: Stephen Warren [mailto:swar...@wwwdotorg.org] Sent: Thursday, February 27, 2014 10:23 AM To: u-boot@lists.denx.de; Simon Glass; Tom Warren; Stephen Warren Subject: Re: [U-Boot]

Re: [U-Boot] [U-Boot PATCH v2 05/12] NAND: DaVinci: allow forced disable of subpage writes

2014-02-27 Thread Scott Wood
On Thu, 2014-02-27 at 16:14 +, Karicheri, Muralidharan wrote: -Original Message- From: Scott Wood [mailto:scottw...@freescale.com] Sent: Tuesday, February 25, 2014 11:01 PM To: Karicheri, Muralidharan Cc: u-boot@lists.denx.de; Rini, Tom Subject: Re: [U-Boot] [U-Boot PATCH v2

Re: [U-Boot] start address loading initrd in ram on arm

2014-02-27 Thread Joren Bultheel
Great. Exactly wat I needed to know. I'll read the documentation in the specified place. Op 27 feb. 2014 18:08 schreef Tom Rini tr...@ti.com: On Thu, Feb 27, 2014 at 05:49:47PM +0100, Joren Bultheel wrote: Thank you! So in my situation; after loading the kernel in ram, I know where to

Re: [U-Boot] [PATCH 0/4] Big acceleration of Kbuild performance

2014-02-27 Thread Tom Rini
On Thu, Feb 27, 2014 at 11:28:20PM +0900, Masahiro Yamada wrote: Kbuild brought about many advantages for us but a significant performance regression was reported by Simon Glass. After some discussions and analysis, it turned out its main cause is in $(call cc-option,...). Historically,

Re: [U-Boot] [PATCH v3 1/2] watchdog/denali: Adding DesignWare watchdog driver support

2014-02-27 Thread Chin Liang See
Hi Michal, On Mon, 2014-02-24 at 08:51 +0100, Michal Simek wrote: On 02/21/2014 09:57 PM, Chin Liang See wrote: To add the DesignWare watchdog driver support. It required information such as register base address and clock info from configuration header file within include/configs folder.

[U-Boot] [PATCH v4 1/2] watchdog/denali: Adding DesignWare watchdog driver support

2014-02-27 Thread Chin Liang See
To add the DesignWare watchdog driver support. It required information such as register base address and clock info from configuration header file within include/configs folder. Signed-off-by: Chin Liang See cl...@altera.com Cc: Anatolij Gustschin ag...@denx.de Cc: Albert Aribaud

Re: [U-Boot] [PATCH v3 2/2] socfpga: Adding DesignWare watchdog support

2014-02-27 Thread Chin Liang See
Hi Michal, On Mon, 2014-02-24 at 08:52 +0100, Michal Simek wrote: On 02/21/2014 09:57 PM, Chin Liang See wrote: To enable the DesignWare watchdog support at SOCFPGA Cyclone V dev kit. Signed-off-by: Chin Liang See cl...@altera.com Cc: Anatolij Gustschin ag...@denx.de Cc: Albert

[U-Boot] Ethernet persistence

2014-02-27 Thread Anthony Mahar
How can I make the ethernet connection persistent (after first use), rather than reconnecting/re initializing on each reuse? I'm working with a Xilinx Zynq zc706 board and am up and running u-boot quite successfully. My main use case is to store u-boot in on-board flash, and have u-boot tftp

[U-Boot] [PATCH v2 0/31] Add additional sandbox features and infrastructure

2014-02-27 Thread Simon Glass
At present sandbox only supports a basic set of features. To help address this, a recent series added SPI and SPI flash support; this series expands the coverage further. Firstly SDL is used to provide LCD and audio support. Sandbox gains its own LCD driver which can display images, host a

[U-Boot] [PATCH] net: asix: don't pad odd-length TX packets

2014-02-27 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com For Ethernet/USB RX packets, the ASIX HW pads odd-sized packets so that they have an even size. Currently, asix_recv() does remove this padding, and asic_send() adds equivalent padding in the TX path. However, the HW does not appear to need this packing for

[U-Boot] [PATCH v2 08/31] cros_ec: Move EC interface into common library

2014-02-27 Thread Simon Glass
From: Vadim Bendebury vben...@chromium.org Add a common library for obtaining access to the Chrome OS EC. This is used by boards which need to talk to the EC. Reviewed-by: Vadim Bendebury vben...@google.com Tested-by: Vadim Bendebury vben...@google.com Signed-off-by: Vadim Bendebury

[U-Boot] [PATCH v2 13/31] cros_ec: Sync up with latest Chrome OS EC version

2014-02-27 Thread Simon Glass
The EC messages have been expanded and some parts have been renamed. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to sync with latest Chrome OS EC version drivers/misc/cros_ec.c| 33 ++--- include/cros_ec.h | 4 +- include/cros_ec_message.h |

[U-Boot] [PATCH v2 18/31] cros_ec: sandbox: Add Chrome OS EC emulation

2014-02-27 Thread Simon Glass
Add a simple emulation of the Chrome OS EC for sandbox, so that it can perform various EC tasks such as keyboard handling. Reviewed-by: Vadim Bendebury vben...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/misc/Makefile | 1 +

[U-Boot] [PATCH v2 01/31] Use a const pointer for map_to_sysmem()

2014-02-27 Thread Simon Glass
This function does not actually change the pointer contents, so use const so that functions which have a const pointer do not need to cast. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/sandbox/cpu/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH v2 14/31] cros_ec: Clean up multiple EC protocol support

2014-02-27 Thread Simon Glass
From: Randall Spangler rspang...@chromium.org Version 1 protocols (without command version) were already no longer supported in cros_ec.c. This removes some dead code from the cros_ec_i2c driver. Version 2 protcols (with command version) are now called protocol_version=2, instead of

[U-Boot] [PATCH v2 06/31] cros_ec: Add an enum for the number of flash regions

2014-02-27 Thread Simon Glass
Add an enum for the number of flash regions so we can keep track of all the possible regions. Reviewed-by: Randall Spangler rspang...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None include/ec_commands.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[U-Boot] [PATCH v2 02/31] sandbox: Increase memory size to 32MB

2014-02-27 Thread Simon Glass
The current 4MB size is a little small for some tests, so increase it. Reviewed-by: Hung-ying Tyan ty...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None include/configs/sandbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 04/31] sandbox: Use os functions to read host device tree

2014-02-27 Thread Simon Glass
At present we use U-Boot's filesystem layer to read the sandbox device tree, but this is problematic since it relies on a temporary feauture added there. Since we plan to implement proper block layer support for sandbox, change this code to use the os layer functions instead. Also use the new

[U-Boot] [PATCH v2 09/31] cros_ec: Add a function for decoding the Chrome OS EC flashmap

2014-02-27 Thread Simon Glass
In order to talk to the EC properly we need to be able to understand the layout of its internal flash memory. This permits emulation of the EC for sandbox, and also software update in a system with a real EC. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

[U-Boot] [PATCH v2 05/31] sandbox: dts: Add display and keyboard to sandbox

2014-02-27 Thread Simon Glass
Add an LCD display and keyboard to the sandbox device tree so that these features can be used. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/sandbox/dts/sandbox.dts | 95 1 file changed, 95 insertions(+) diff --git

[U-Boot] [PATCH v2 03/31] sandbox: Build a device tree file for sandbox

2014-02-27 Thread Simon Glass
Add support for building a device tree for sandbox's CONFIG_OF_HOSTFILE option to make it easier to use device tree with sandbox. This adjusts the Makefile to build a u-boot.dtb file which can be passed to sandbox U-Boot with: ./u-boot -d u-boot.dtb Reviewed-by: Che-Liang Chiou

[U-Boot] [PATCH v2 12/31] cros_ec: Move #ifdef to permit flash region access

2014-02-27 Thread Simon Glass
Flash region access is not tied to having commands, so adjust the #ifdef to reflect this. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to adjust #ifdef position in cros_ec drivers/misc/cros_ec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH v2 10/31] cros_ec: Drop old EC version support from EC driver

2014-02-27 Thread Simon Glass
From: Vadim Bendebury vben...@chromium.org There is no need to support old style EC moving forward. Ultimately we should get rid of the check_version() API. For now just return error in case the EC does not seem to support the new API. Reviewed-by: Vadim Bendebury vben...@google.com Tested-by:

[U-Boot] [PATCH v2 17/31] cros_ec: Correct comparison between signed and unsigned numbers

2014-02-27 Thread Simon Glass
Due to signed/unsigned comparison, ' sizeof(struct)' does not do the right thing, since if ec_command() returns a -ve number we will consider this be success. Adjust all comparisons to avoid this problem. This error was found with sandbox, which gives a segfault in this case. On ARM we may

[U-Boot] [PATCH v2 07/31] cros_ec: Add a function for reading a flash map entry

2014-02-27 Thread Simon Glass
A flash map describes the layout of flash memory in terms of offsets and sizes for each region. Add a function to read a flash map entry from the device tree. Reviewed-by: Che-Liang Chiou clch...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None include/fdtdec.h

[U-Boot] [PATCH v2 15/31] cros_ec: Add base support for protocol v3

2014-02-27 Thread Simon Glass
Protocol v2 was shipped with snow, link and spring. Protocol v3 is for pit and is targetted at SPI operation. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patches to bring in protocol v3 support drivers/misc/cros_ec.c | 165

[U-Boot] [PATCH v2 19/31] sandbox: Plumb in Chrome OS EC emulation

2014-02-27 Thread Simon Glass
Add board code to set up the Chrome OS EC on startup. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None board/sandbox/sandbox/sandbox.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/board/sandbox/sandbox/sandbox.c

[U-Boot] [PATCH v2 28/31] sandbox: Allow Ctrl-C to work in sandbox

2014-02-27 Thread Simon Glass
It is useful for Cltl-C to be handled by U-Boot as it is on other boards. But it is also useful to be able to terminate U-Boot with Ctrl-C. Add an option to enable signals while in raw mode, and make this the default. Add an option to leave the terminal cooked, which is useful for redirecting

[U-Boot] [PATCH v2 21/31] sandbox: Add os_jump_to_image() to run another executable

2014-02-27 Thread Simon Glass
For some tests it is useful to be able to run U-Boot again but pass on the same memory contents. Add a function to achieve this. Reviewed-by: Simon Glass s...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/sandbox/cpu/os.c | 89

[U-Boot] [PATCH v2 31/31] sandbox: config: Enable cros_ec emulation and related items

2014-02-27 Thread Simon Glass
Enable the Chrome OS EC emulation for sandbox along with LCD, sound expanded GPIOs and a few other options to make this work correctly. Reviewed-by: Simon Glass s...@chromium.org Tested-by: Che-Liang Chiou clch...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: -

[U-Boot] [PATCH v2 30/31] sandbox: Add implementation of spi_setup_slave_fdt()

2014-02-27 Thread Simon Glass
This function is needed when CONFIG_OF_SPI is defined. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/spi/sandbox_spi.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c index 7895305..12e9bda

[U-Boot] [PATCH v2 27/31] sandbox: Deal with conflicting getenv() for SDL

2014-02-27 Thread Simon Glass
Unfortunately SDL requires getenv() to operate, since it wants to figure out the display type. U-Boot has its own getenv() and they conflict. As a work-around use #define to resolve the conflict. A better but more complex solution might be to rename some U-Boot symbols at link time. SDL audio is

[U-Boot] [PATCH v2 29/31] sandbox: Add options to clean up temporary files

2014-02-27 Thread Simon Glass
When jumping from one sandbox U-Boot to another in sandbox, the RAM buffer is preserved in the jump by using a temporary file. Add an option to tell the receiving U-Boot to remove this file when it is no longer needed. Similarly the old U-Boot image is left behind in this case. We cannot delete

[U-Boot] [PATCH v2 23/31] sandbox: Add SDL library for LCD, keyboard, audio

2014-02-27 Thread Simon Glass
SDL (Simple DirectMedia Layer - see www.libsdl.org) is a library which provides simple graphics and sound features. It works under X11 and also with a simple frame buffer interface. It is ideally suited to sandbox U-Boot since it fits nicely with the low-level feature set required by U-Boot. For

[U-Boot] [PATCH v2 11/31] cros_ec: Support systems with no EC interrupt

2014-02-27 Thread Simon Glass
Some systems do not have an EC interrupt. Rather than assuming that the interrupt is always present, and hanging forever waiting for more input, handle the missing interrupt. This works by reading key scans only until we get an identical one. This means the EC keyscan FIFO is empty. Tested-by:

[U-Boot] [PATCH v2 24/31] sandbox: Add a simple sound driver

2014-02-27 Thread Simon Glass
Add a sound driver for sandbox, which uses SDL. Tested-by: Che-Liang Chiou clch...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/sandbox/include/asm/arch-sandbox/sound.h | 14 ++ drivers/sound/Makefile| 2 ++

[U-Boot] [PATCH v2 22/31] sandbox: Add -j option to indicate a jump from a previous U-Boot

2014-02-27 Thread Simon Glass
In order to support the 'go' command we allow the jumping U-Boot to pass its filename to the new U-Boot image. This can then be used to delete that image if required. Reviewed-by: Simon Glass s...@chromium.org Tested-by: Che-Liang Chiou clch...@chromium.org Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 16/31] cros_ec: spi: Add support for EC protocol version 3

2014-02-27 Thread Simon Glass
From: Randall Spangler rspang...@chromium.org Protocol version 3 will be attempted first; if the EC doesn't support it, u-boot will fall back to the old protocol version (2). Reviewed-by: Simon Glass s...@chromium.org Signed-off-by: Randall Spangler rspang...@chromium.org Signed-off-by: Simon

[U-Boot] [PATCH v2 25/31] sandbox: Add LCD driver

2014-02-27 Thread Simon Glass
Add a simple LCD driver which uses SDL to display the image. We update the image regularly, while still providing for reasonable performance. Adjust the common lcd code to support sandbox. For command-line runs we do not want the LCD to be displayed, so add a --show_lcd option to enable it.

[U-Boot] [PATCH v2 20/31] cros_ec: Implement I2C pass-through

2014-02-27 Thread Simon Glass
The Chrome EC has a feature where you can access its I2C buses through a pass-through arrangement. Add a command to support this, and export the function for it also. Reviewed-by: Vadim Bendebury vben...@google.com Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

[U-Boot] [PATCH v2 26/31] sound: Move Samsung-specific code into its own file

2014-02-27 Thread Simon Glass
The i2s code is in fact Samsung-specific, but there might be other implementation. Move this code into its own file. This makes it slightly more obviously how to adjust the code to support another SoC, when someone takes this task on. Also drop non-FDT support, since it isn't used on Exynos 5.

Re: [U-Boot] [PATCH] net: asix: don't pad odd-length TX packets

2014-02-27 Thread Simon Glass
Hi Stephen, On 27 February 2014 13:27, Stephen Warren swar...@wwwdotorg.org wrote: From: Stephen Warren swar...@nvidia.com For Ethernet/USB RX packets, the ASIX HW pads odd-sized packets so that they have an even size. Currently, asix_recv() does remove this padding, and asic_send() adds

Re: [U-Boot] [PATCH 4/8] x86: Delete redundant compiler flags

2014-02-27 Thread Simon Glass
On 25 February 2014 22:51, Masahiro Yamada yamad...@jp.panasonic.comwrote: -Wstrict-prototypes, -ffreestanding, -fno-stack-protector are defined at the top Makefile for all architectures. Do not define them twice for x86. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Simon

Re: [U-Boot] [PATCH 4/4] kbuild: improve Kbuild speed

2014-02-27 Thread Simon Glass
Hi, On 27 February 2014 07:28, Masahiro Yamada yamad...@jp.panasonic.comwrote: Kbuild brought about many advantages for us but a significant performance regression was reported by Simon Glass. After some discussions and analysis, it turned out its main cause is in $(call cc-option,...).

Re: [U-Boot] [PATCH v2 1/2] nand/denali: Adding Denali NAND driver support

2014-02-27 Thread Chin Liang See
Hi Masahiro, On Thu, 2014-02-27 at 23:35 +0900, Masahiro Yamada wrote: Hello Chin, + + nand-ecc.mode = NAND_ECC_HW; + nand-ecc.size = CONFIG_NAND_DENALI_ECC_SIZE; + nand-ecc.read_oob = denali_read_oob; + nand-ecc.write_oob = denali_write_oob; + nand-ecc.read_page =

Re: [U-Boot] [PATCH 0/4] Big acceleration of Kbuild performance

2014-02-27 Thread Stephen Warren
On 02/27/2014 07:28 AM, Masahiro Yamada wrote: Kbuild brought about many advantages for us but a significant performance regression was reported by Simon Glass. After some discussions and analysis, it turned out its main cause is in $(call cc-option,...). ... Instead, you can also try my

Re: [U-Boot] [PATCH v4] socfpga: Add socfpga preloader signing to mkimage

2014-02-27 Thread Wolfgang Denk
Dear Charles, In message cae21aqp2gspedrdakio1wpa3vgtwjd-3d1wsqm0whg9r-8b...@mail.gmail.com you wrote: I asked before: Can we not use ALL-$(CONFIG_SOCFPGA) and avoid the ifdef ? ... I can certainly avoid the ifdef, but there is already another one three lines down for the SAMSUNG

Re: [U-Boot] [U-Boot PATCH v2 05/12] NAND: DaVinci: allow forced disable of subpage writes

2014-02-27 Thread Murali Karicheri
On 2/27/2014 2:21 PM, Scott Wood wrote: On Thu, 2014-02-27 at 16:14 +, Karicheri, Muralidharan wrote: -Original Message- From: Scott Wood [mailto:scottw...@freescale.com] Sent: Tuesday, February 25, 2014 11:01 PM To: Karicheri, Muralidharan Cc: u-boot@lists.denx.de; Rini, Tom

Re: [U-Boot] [PATCH v4] socfpga: Add socfpga preloader signing to mkimage

2014-02-27 Thread Wolfgang Denk
Dear Charles, sorry, I only send part of the message. Here is the rest. In message cae21aqp2gspedrdakio1wpa3vgtwjd-3d1wsqm0whg9r-8b...@mail.gmail.com you wrote: Both Gerhard and me asked before: Why exactly do we need another implementation of CRC32. We already have some - why cannot

Re: [U-Boot] [PATCH 5/8] sh: Do not define -ffreestanding twice

2014-02-27 Thread Nobuhiro Iwamatsu
Applied, thanks. Best regards, Nobuhiro 2014-02-26 14:51 GMT+09:00 Masahiro Yamada yamad...@jp.panasonic.com: -ffreestanding is defined at the top Makefile for all architectures. Do not define it twice for SH2A. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Nobuhiro

Re: [U-Boot] [PATCH 6/8] sh: merge compiler flag -ffixed-r13

2014-02-27 Thread Nobuhiro Iwamatsu
Applied, thanks. Best regards, Nobuhiro 2014-02-26 14:51 GMT+09:00 Masahiro Yamada yamad...@jp.panasonic.com: -ffixed-r13 is defined commonly for sh2, sh3, sh4. Move it to arch/sh/config.mk Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Nobuhiro Iwamatsu

Re: [U-Boot] [PATCH v4] socfpga: Add socfpga preloader signing to mkimage

2014-02-27 Thread Charles Manning
I can certainly avoid the ifdef, but there is already another one three lines down for the SAMSUNG case: ifdef CONFIG_SOCFPGA ALL-y += $(OBJTREE)/socfpga-signed-preloader.bin endif ifdef CONFIG_SAMSUNG ALL-y+= $(obj)/$(BOARD)-spl.bin endif It seems odd to me that

Re: [U-Boot] [PATCH v4] socfpga: Add socfpga preloader signing to mkimage

2014-02-27 Thread Charles Manning
On Friday 28 February 2014 10:23:11 Wolfgang Denk wrote: Dear Charles, sorry, I only send part of the message. Here is the rest. In message cae21aqp2gspedrdakio1wpa3vgtwjd-3d1wsqm0whg9r-8b...@mail.gmail.com you wrote: Both Gerhard and me asked before: Why exactly do we need another

Re: [U-Boot] [PATCH v6] socfpga: Add socfpga preloader signing to mkimage

2014-02-27 Thread Wolfgang Denk
Dear Charles, In message 1393472979-7522-1-git-send-email-cdhmann...@gmail.com you wrote: Like many platforms, the Altera socfpga platform requires that the preloader be signed in a certain way or the built-in boot ROM will not boot the code. ... diff --git a/include/crc32_alt.h

Re: [U-Boot] [PATCH v2 1/2] nand/denali: Adding Denali NAND driver support

2014-02-27 Thread Scott Wood
On Thu, 2014-02-27 at 15:02 -0600, Chin Liang See wrote: Hi Masahiro, On Thu, 2014-02-27 at 23:35 +0900, Masahiro Yamada wrote: Hello Chin, + + nand-ecc.mode = NAND_ECC_HW; + nand-ecc.size = CONFIG_NAND_DENALI_ECC_SIZE; + nand-ecc.read_oob = denali_read_oob; +

Re: [U-Boot] [PATCH v6] socfpga: Add socfpga preloader signing to mkimage

2014-02-27 Thread Chin Liang See
Hi Charles, I hit error when trying to apply the patch bash-3.2$ git apply signing.patch fatal: corrupt patch at line 205 On Thu, 2014-02-27 at 16:49 +1300, Charles Manning wrote: Like many platforms, the Altera socfpga platform requires that the preloader be signed in a certain way or the

Re: [U-Boot] [PATCH v6] socfpga: Add socfpga preloader signing to mkimage

2014-02-27 Thread Charles Manning
On Friday 28 February 2014 10:57:21 Wolfgang Denk wrote: Dear Charles, In message 1393472979-7522-1-git-send-email-cdhmann...@gmail.com you wrote: Like many platforms, the Altera socfpga platform requires that the preloader be signed in a certain way or the built-in boot ROM will not

Re: [U-Boot] [PATCH v2 1/2] nand/denali: Adding Denali NAND driver support

2014-02-27 Thread Chin Liang See
Hi Scott, On Thu, 2014-02-27 at 16:32 -0600, Scott Wood wrote: On Thu, 2014-02-27 at 15:02 -0600, Chin Liang See wrote: Hi Masahiro, On Thu, 2014-02-27 at 23:35 +0900, Masahiro Yamada wrote: Hello Chin, + + nand-ecc.mode = NAND_ECC_HW; + nand-ecc.size =

Re: [U-Boot] [PATCH v3 1/7] nand: Add zynq nand controller driver support

2014-02-27 Thread Scott Wood
On Mon, 2014-02-17 at 17:56 +0530, Siva Durga Prasad Paladugu wrote: +/* Generic flash bbt decriptors */ +static u8 bbt_pattern[] = {'B', 'b', 't', '0' }; +static u8 mirror_pattern[] = {'1', 't', 'b', 'B' }; + +static struct nand_bbt_descr bbt_main_descr = { + .options =

Re: [U-Boot] [PATCH 2/3] mtd: nand: atmel: prepare for nand spl boot support

2014-02-27 Thread Scott Wood
On Mon, 2013-12-02 at 11:24 +0800, Bo Shen wrote: Prepare for nand spl boot support. It supports nand software ECC and hardware PMECC. This patch is take drivers/mtd/nand/nand_spl_simple.c as reference. Signed-off-by: Bo Shen voice.s...@atmel.com --- drivers/mtd/nand/atmel_nand.c | 206

[U-Boot] [PATCH][v3] board/t104xrdb: Add support of CPLD

2014-02-27 Thread Prabhakar Kushwaha
T1040RDB and T1042RDB_PI has CPLD. Here CPLD controls board mux/features. This support of CPLD includes - files and register defintion - Commands to swtich alternate bank and default bank Signed-off-by: Prabhakar Kushwaha prabha...@freescale.com --- Changes for v2: - Updated the cpld

Re: [U-Boot] [PATCH 5/8] sh: Do not define -ffreestanding twice

2014-02-27 Thread Masahiro Yamada
Hello Nobihiro, Thanks. I want this and 6/8 on u-boot/master. Can you please send pull-request now? Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v2 0/4] Big acceleration of Kbuild performance

2014-02-27 Thread Masahiro Yamada
--- No code change in Version 2 Only commit log fixed --- Kbuild brought about many advantages for us but a significant performance regression was reported by Simon Glass. After some discussions and analysis, it turned out its main cause

[U-Boot] [PATCH v2 4/4] kbuild: improve Kbuild speed

2014-02-27 Thread Masahiro Yamada
Kbuild brought about many advantages for us but a significant performance regression was reported by Simon Glass. After some discussions and analysis, it turned out its main cause is in $(call cc-option,...). Historically, U-Boot parses all config.mk (arch/*/config.mk and board/*/config.mk)

[U-Boot] [PATCH v2 1/4] kbuild, blackfin: Add CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED

2014-02-27 Thread Masahiro Yamada
Many (but not all) of Blackfin boards give -O2 option to compile under lib/ directory. That means lib/ should be speed-optimized, whereas other parts should be size-optimized. We want to keep the same behavior, but do not want to parse board/*/config.mk again and again. We've got no choice but to

  1   2   >