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

2014-02-27 Thread Piotr Wilczek
Hi Ajay, On 02/27/2014 03:59 PM, Ajay kumar wrote: Piotr, DT bindings should usually be free of "_" (underscore) Please use hyphen: "-" I will use hypen. On Tue, Feb 25, 2014 at 11:33 PM, Piotr Wilczek wrote: This patch enables parsing mipi data from device tree. Non device tree case is st

[U-Boot] [PATCH] video: ipu_disp: wait for DP SF end irq when disabling sync BG flows

2014-02-27 Thread Liu Ying
Instead of waiting for DC triple buffer to be cleared, this patch changes to wait for a relevant DP sync flow end interrupt to come when disabling sync BG flows. In this way, we align the implement to the freescale internal IPUv3 driver. After applying this patch, an uboot hang up issue at the ar

[U-Boot] Secure booting

2014-02-27 Thread JYOTI DUBEY
Can I obtain information regarding what hab_status command will return if i.mx board is not fused i.e security in not enabled and also the board is in open configuration. Thanks in Advance! ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.

[U-Boot] [PATCH] kbuild: fix CROSS_COMPILE settings in config.mk

2014-02-27 Thread Masahiro Yamada
The syntax CROSS_COMIPLE ?= does not work because config.mk is parsed after exporting CROSS_COMPILE. Like Linux Kernel's arch/$(ARCH)/Makefile, we must write as follows: ifeq ($(CROSS_COMPILE),) CROSS_COMPILE := endif Signed-off-by: Masahiro Yamada --- arch/arc/config.mk| 8 +

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

2014-02-27 Thread Heiko Schocher
Hello Tom, Am 27.02.2014 15:30, schrieb 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: [...] With current mainline: $ git checkout master Gewechselt zu Zweig 'master' $ mak

[U-Boot] [PATCH V2] hush: fix some quoted variable expansion issues

2014-02-27 Thread Stephen Warren
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 dropped, causing too few to be passed to -z, causing cmd_test()

[U-Boot] [PATCH] unit-test: clean up evironment after Hush tests

2014-02-27 Thread Stephen Warren
Delete the temporary variables that are used to save unit-test results from the environment after running the test. This prevents polluting the environment, or growing it too much. Signed-off-by: Stephen Warren --- test/command_ut.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -

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

2014-02-27 Thread Masahiro Yamada
Hello Stephen, > > (1) git clone git://github.com/masahir0y/u-boot-kbuild.git > > (2) cd u-boot-kbuild > > (3) git checkout optimize_v1 > > I tried that since it was easier than applying all the patches. It built > and ran on real HW OK, although the U-Boot banner is a bit broken: > > U-Boot

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

2014-02-27 Thread Masahiro Yamada
Hello Stephen, > I think you need to s/USE_PRIVATE_LIBS/USE_PRIVATE_LIBGCC/ throughout > the patch subject and description. With that change, Oops. Good catch! Fixed in v2. > Here, it seems that CONFIG_USE_PRIVATE_LIBGCC can be (a) unset (b) set > to y, (c) set to a specific library path name

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

2014-02-27 Thread Masahiro Yamada
> Signed-off-by: Masahiro Yamada > Cc: Tom Warren > Cc: Simon Glass > > Signed-off-by: Masahiro Yamada > Acked-by: Stephen Warren I used patman for sending this series. Signed-off-by credit was doubled somehow. Please keep RESEND version. Sorry for noise. Best Regards Masahiro Yamada __

[U-Boot] [RESEND 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 is

[U-Boot] [RESEND PATCH v2 2/4] kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBGCC

2014-02-27 Thread Masahiro Yamada
Before this commit, USE_PRIVATE_LIBGCC was 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 include/au

[U-Boot] [RESEND PATCH v2 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 --- Changes in v2: None arch/mi

[U-Boot] [RESEND 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

[U-Boot] [RESEND 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) every

[U-Boot] [PATCH v2 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 --- Changes in v2: None arch/mi

[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 is

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

2014-02-27 Thread Masahiro Yamada
Before this commit, USE_PRIVATE_LIBGCC was 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 include/au

[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) every

[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

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][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 --- Changes for v2: - Updated the cpld command Changes for v3:

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 as reference. > > Signed-off-by: Bo Shen > --- > drivers/mtd/nand/atmel_nand.c | 206 > + > i

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 = NAND_BBT_LA

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; > >

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

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 t

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_re

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 b/inc

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 you wrote: > > > > Both Gerhard and me asked before: Why exactly do we need another > > > > implementation of CRC32. We already have some - why c

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 > > > > I

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 : > -ffixed-r13 is defined commonly for sh2, sh3, sh4. > Move it to arch/sh/config.mk > > Signed-off-by: Masahiro Yamada > Cc: Nobuhiro Iwamatsu > --- > > arch/sh/config.mk | 1 + > arch/sh/cpu/sh2/con

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 : > -ffreestanding is defined at the top Makefile for all architectures. > Do not define it twice for SH2A. > > Signed-off-by: Masahiro Yamada > Cc: Nobuhiro Iwamatsu > --- > > arch/sh/cpu/sh2/config.mk | 2 +-

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 you wrote: > > > > Both Gerhard and me asked before: Why exactly do we need another > > > implementation of CRC32. We already have some - why cannot we use > > > these? ... > The actual table values I am using

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 Subject

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

2014-02-27 Thread Wolfgang Denk
Dear Charles, In message 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 case: > > ifdef CONFIG_SOCFPGA > ALL-y += $(OBJTREE)/socf

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 tr

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->e

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 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,...). > > This significantly

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 wrote: > -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 > Cc: Simon Glass > Acked-by: Simon Glass

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 wrote: > From: Stephen Warren > > 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. Ho

[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. Te

[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 Signed-off-by: Simon Glass --- Changes in v2: None drivers/misc/cros_ec.c | 270 +

[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. Test

[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 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 Signed-off-by: Randall Spangler Signed-off-by: Simon Glass --- Changes in v2: None drivers/misc/cros_ec.c | 1

[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 Tested-by: Che-Liang Chiou Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/start

[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: Che

[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 Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/include/asm/arch-sandbox/sound.h | 14 ++ drivers/sound/Makefile| 2 ++ drivers/sound/sandbox.c

[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 ex

[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 it

[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 n

[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 Tested-by: Che-Liang Chiou Signed-off-by: Simon Glass --- Changes in v2: - Rebase to master - Update series to take account of patche

[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 --- 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 100644 --- a/drive

[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 Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/os.c | 89 +++ include/

[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 outp

[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 --- Changes in v2: - Add new patches to bring in protocol v3 support drivers/misc/cros_ec.c | 165 - 1 file c

[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 --- 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 b/board/sandbox/sandbox/s

[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 inste

[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 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 Tested-by: Vadim Bendebury Signed-off-by: Vadim Be

[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 Signed-off-by: Simon Glass --- Changes in v2: None include/fdtdec.h | 18 ++ lib/fdtdec.c

[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 --- 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 --git a/drivers/misc

[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 Reviewed-by:

[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 --- Changes in v2: None arch/sandbox/dts/sandbox.dts | 95 1 file changed, 95 insertions(+) diff --git a/arch/sandbox/dts/sand

[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 --- Changes in v2: None drivers/misc/cros_ec.c | 50 ++

[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 Signed-off-by: Simon Glass --- Changes in v2: None include/configs/sandbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/sandbox.h b/include/configs/sandb

[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 fdt_c

[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 Signed-off-by: Simon Glass --- Changes in v2: None include/ec_commands.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/ec_commands.h b/i

[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 --- Changes in v2: None arch/sandbox/cpu/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox

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

2014-02-27 Thread Simon Glass
From: Randall Spangler 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 cmd_version_is_supported=1. A sub

[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 Signed-off-by: Simon Glass --- Changes in v2: None drivers/misc/Makefile | 1 + drivers/misc/cros_ec.c | 16 ++ drivers/m

[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 --- 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 | 2 +- include/ec_

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

2014-02-27 Thread Simon Glass
From: Vadim Bendebury 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 Tested-by: Vadim Bendebury Signed-off-by: Vadim Bendebury Signed-off-by: Simon Glass --- Changes in v2: None board/samsung

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

2014-02-27 Thread Stephen Warren
From: Stephen Warren 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 TX packets in prac

[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 command

[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 get

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 > > Cc: Anatolij Gustschin > > Cc: Albert Aribaud > > Cc: Heik

[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 Cc: Anatolij Gustschin Cc: Albert Aribaud Cc: Heiko Schocher Cc: Tom Rini --- Change

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 f

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,...). > > Histor

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" : > 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 >

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 PA

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] [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 > > 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 also needed so th

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 > > 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 this series lo

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 > > 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 the CPU to b

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, A

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_

[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 Cc: Artem Bityutskiy Cc: David Woodhouse Cc: Brian Norris Cc: Scott Wood --- Changes for v3 - F

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. > >

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] [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 Signed-off-by: Murali Karicheri --- - Added README READM

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

[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 Cc: Dinh Nguyen Cc: Wolfgang Denk CC: Pavel Machek Cc: Tom Rini Cc: Albert Aribaud --- Changes for v6 - Fixed various coding style issue Ch

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

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 wrote: > This patch enables parsing mipi data from device tree. > Non device tree case is still supported. > > Signed-off-by: Piotr Wilczek > Signed-off-by: Kyungm

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 9137d19bdd321b810275f2e

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_p

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 ano

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 Acked-by: Tom Rini -- Tom signature.asc Description: Digital signature _

[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 --- arch/mips/cpu/mips32/config.

  1   2   >