Re: [U-Boot] [PATCH 1/3] usb:g_dnl:f_thor: remove memset before memcpy

2014-06-09 Thread Lukasz Majewski
Hi Jeroen, > since ALLOC_CACHE_ALIGN_BUFFER defines a pointer and not a > buffer, the memset with sizeof(rqt) likely does something else > then intended. Since there is a memcpy directly after it with > the full size, drop the memset completely. Acked-by: Lukasz Majewski > > Cc: Lukasz Majewsk

Re: [U-Boot] [PATCH 2/3] usb:composite: clear the whole common buffer

2014-06-09 Thread Lukasz Majewski
Hi Jeroen, > Since the struct fsg_common is calloced, reset it completely > with zero's when reused. While at it, make checkpatch happy. > > cc: Lukasz Majewski > cc: Piotr Wilczek > cc: Kyungmin Park > cc: Marek Vasut > Signed-off-by: Jeroen Hofstee > --- > drivers/usb/gadget/f_mass_storage

[U-Boot] [PATCH] socfpga: Relocate arch common functions away from board

2014-06-09 Thread Chin Liang See
To move the arch common function away from board folder to arch/arm/cpu/armv7/socfpga folder. Signed-off-by: Chin Liang See Cc: Wolfgang Denk Cc: Detlev Zundel Cc: Pavel Machek Cc: Dinh Nguyen --- arch/arm/cpu/armv7/socfpga/misc.c | 24 board/altera/socfpga/s

Re: [U-Boot] [PATCH 2/5] sunxi: Add i2c support

2014-06-09 Thread Heiko Schocher
Hello Hans, Am 09.06.2014 17:15, schrieb Hans de Goede: Add support for the i2c controller found on all Allwinner sunxi SoCs, this is the same controller as found on the Marvell orion5x and kirkwood SoC families, with a slightly different register layout, so this patch uses the existing mvtwsi c

[U-Boot] [PATCH] mmc/dw_mmc: Fix clock divider calculation error for bypass mode

2014-06-09 Thread Chin Liang See
To fix the clock divider calculation error when the controller clock same as the operating frequency. This is known as bypass mode. In this mode, the divider should be 0. Signed-off-by: Chin Liang See Cc: Pantelis Antoniou Cc: Rajeshwari Shinde Cc: Jaehoon Chung Cc: Mischa Jonker --- drivers

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

2014-06-09 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 v8 - Updated to latest code branch Chang

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

2014-06-09 Thread Chin Liang See
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: Heiko Schocher Cc: Tom Rini --- Changes for v5 - Updated to latest code branch Changes for v4 - Updated to latest code branch Changes for v3 - Sp

Re: [U-Boot] [GIT] Pull request: u-boot-dfu

2014-06-09 Thread Lukasz Majewski
Hi Marek, > On Monday, June 09, 2014 at 12:51:43 PM, Lukasz Majewski wrote: > > Hi Marek, > > > > > Hi Marek, > > > > > > > On Monday, May 26, 2014 at 07:46:27 AM, Lukasz Majewski wrote: > > > > > Hi Marek > > > > > > > > > > The following changes since commit > > > > > > > > > > fc25fa27e5f43

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

2014-06-09 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 07/14] fdt: Add DEV_TREE_BIN option to specify a device tree binary file

2014-06-09 Thread Masahiro Yamada
Hi Simon, On Mon, 2 Jun 2014 22:04:50 -0600 Simon Glass wrote: > In some cases, an externally-built device tree binary is required to be > attached to U-Boot. An example is when using image signing, since in that > case the .dtb file must include the public keys. I do not want to expand this

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

2014-06-09 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 Cc: Masahiro Yamada -

Re: [U-Boot] [PATCH] arm: Allow u-boot to run from offset base address

2014-06-09 Thread Albert ARIBAUD
Hi Steve, (sorry for the duplicate) On Mon, 9 Jun 2014 13:45:50 -0700, Steve Rae wrote: > > > On 14-06-09 03:23 AM, Albert ARIBAUD wrote: > > Hi Darwin, > > > > On Mon, 2 Jun 2014 17:37:25 -0700, Darwin Rambo > > wrote: > > > >> > >> > >> On 14-06-02 12:26 AM, Albert ARIBAUD wrote: > >>> Hi

Re: [U-Boot] [PATCH 2/4] Add ctrlc_ignore environment variable to ignore Ctrl-C

2014-06-09 Thread Wolfgang Denk
Dear Simon, In message you wrote: > > > 1) Looking at sandbox only, we should provide an implementation of > >ctrlc() that does not consume characters from stdin - I thinkwe > >should rather be able to react on signals? > > Currently there is no signal handling, but we set up the termi

Re: [U-Boot] [PATCH 1/4] Reactivate the tracing feature

2014-06-09 Thread Masahiro Yamada
Hi Simon, On Thu, 5 Jun 2014 12:27:49 -0600 Simon Glass wrote: > This was lost sometime in the Kbuild conversion. Add it back. Not lost. It was moved to examples/Makefile. Prior to Kbuild conversion, config.mk was like this: -->8-- BCURDIR = $(subst $(S

[U-Boot] [U-boot] sandbox test script question

2014-06-09 Thread TigerLiu
Hi, Simon: I tried to run test/image scripts: test/image/test-imagetools.sh - multi-file images test/image/test-fit.py- FIT images 1. test-imagetools.sh need to copy u-boot/tools directory to sandbox dir manually, otherwise it would fail. 2. test-fit

[U-Boot] [PATCH v3 2/3] mx28evk: Add a target for SPI NOR boot

2014-06-09 Thread Fabio Estevam
From: Fabio Estevam Introduce 'mx28evk_spi' target which will store the environment variables into SPI NOR, which is useful when booting from SPI NOR. Signed-off-by: Fabio Estevam --- Changes since v2: - None boards.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/boards.cfg b/boards.c

[U-Boot] [PATCH v3 1/3] mx28evk: Fix warning when CONFIG_ENV_IS_IN_SPI_FLASH is selected

2014-06-09 Thread Fabio Estevam
From: Fabio Estevam When building a target with CONFIG_ENV_IS_IN_SPI_FLASH the following warning is seen: include/configs/mx28evk.h:73:0: warning: "CONFIG_ENV_SIZE" redefined [enabled by default] Protect the definition of CONFIG_ENV_SIZE to avoid the warning. Signed-off-by: Fabio Estevam --

[U-Boot] [PATCH v3 3/3] mx28evk: Add documentation on how to boot from SPI NOR

2014-06-09 Thread Fabio Estevam
From: Fabio Estevam Explain the necessary steps in order to boot from SPI NOR. Based on a earlier submission from Mårten Wikman. Signed-off-by: Mårten Wikman Signed-off-by: Fabio Estevam --- Changes since v2: - None board/freescale/mx28evk/README | 22 +++--- doc/README.mxs

[U-Boot] [PATCH] cosmetic: atmel: replace old style struct init

2014-06-09 Thread Jeroen Hofstee
This prevents some warnings when building with clang. cc:: andreas.de...@googlemail.com Signed-off-by: Jeroen Hofstee --- board/atmel/at91sam9261ek/at91sam9261ek.c | 28 - board/atmel/at91sam9263ek/at91sam9263ek.c | 28 - board/atmel/at9

[U-Boot] [PATCH] embestmx6boards: convert to generic board

2014-06-09 Thread Iain Paton
Enable CONFIG_SYS_GENERIC_BOARD to remove warning on boot. Signed-off-by: Iain Paton --- diff --git a/include/configs/embestmx6boards.h b/include/configs/embestmx6boards.h index fbf47a7..2d4332b 100644 --- a/include/configs/embestmx6boards.h +++ b/include/configs/embestmx6boards.h @@ -19,6 +19,8

[U-Boot] [PATCH] embest/mx6boards: only toggle eMMC usdhc3 RST line on MarSboard

2014-06-09 Thread Iain Paton
On MarS usdhc3 is eMMC, on RIoT usdhc3 is uSD and eMMC is usdhc4. Don't run the MarS specific eMMC reset code on usdhc3 when board_type == BOARD_IS_RIOTBOARD Signed-off-by: Iain Paton --- board/embest/mx6boards/mx6boards.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/embest/mx6boa

Re: [U-Boot] [PATCH] arm: Allow u-boot to run from offset base address

2014-06-09 Thread Jeroen Hofstee
On ma, 2014-06-09 at 13:45 -0700, Steve Rae wrote: > [snip] > Note that in scenario #2, after relocation, the vectors are not on a > 0x800 byte boundary anymore. > As long as the compiler emits adrp instructions, which it already does at -O0, it is not only limited to vectors. No code works as

[U-Boot] [PATCH] MX6: Correct calculation of PLL_SYS

2014-06-09 Thread Andre Renaud
DIV_SELECT is used as Fout = Fin * div_select / 2.0, so we should do the shift after the multiply to avoid rounding errors Signed-off-by: Andre Renaud --- arch/arm/cpu/armv7/mx6/clock.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/a

[U-Boot] [Patch v2] omap3: overo: Select fdtfile for expansion board

2014-06-09 Thread Ash Charles
The u-boot Overo board actually supports both Overo (OMAP35xx) and Overo Storm (AM/DM37xx) COMs with a range of different expansion boards. This provides a mechanism to select the an appropriate device tree file based on the processor version and, if available, the expansion board ID written on th

Re: [U-Boot] [PATCH] omap3: overo: Select fdtfile for expansion board

2014-06-09 Thread Ash Charles
On Sun, Jun 8, 2014 at 12:57 AM, Stefan Herbrechtsmeier wrote: > At the moment I use this functionality to set the environment variable > 'fdtfile'. Cool :) > Maybe you could set an environment variable 'boardname' to 'overo' or > 'overo-storm' and use something like the following environment

Re: [U-Boot] [PATCH] arm: Allow u-boot to run from offset base address

2014-06-09 Thread Steve Rae
On 14-06-09 03:23 AM, Albert ARIBAUD wrote: Hi Darwin, On Mon, 2 Jun 2014 17:37:25 -0700, Darwin Rambo wrote: On 14-06-02 12:26 AM, Albert ARIBAUD wrote: Hi Darwin, On Mon, 26 May 2014 09:11:35 -0700, Darwin Rambo wrote: Hi Albert, The previous stage bootloader (which I had no contr

Re: [U-Boot] [PATCH 2/3] usb:composite: clear the whole common buffer

2014-06-09 Thread Marek Vasut
On Monday, June 09, 2014 at 03:28:59 PM, Jeroen Hofstee wrote: > Since the struct fsg_common is calloced, reset it completely > with zero's when reused. While at it, make checkpatch happy. > > cc: Lukasz Majewski > cc: Piotr Wilczek > cc: Kyungmin Park > cc: Marek Vasut > Signed-off-by: Jeroen

Re: [U-Boot] [PATCH 3/3] ext4: correctly zero filename

2014-06-09 Thread Marek Vasut
On Monday, June 09, 2014 at 03:29:00 PM, Jeroen Hofstee wrote: > Since ALLOC_CACHE_ALIGN_BUFFER declares a char* for filename > sizeof(filename) is not the size of the buffer. Use the already > known length instead. > > cc: Uma Shankar > cc: Manjunatha C Achar > cc: Marek Vasut > Signed-off-by:

[U-Boot] [PATCH] arm: Fix armv8 compilation error

2014-06-09 Thread Darwin Rambo
From: "Shaibal.Dutta" Fix following compilation error when CONFIG_ARM64 is defined Error: unknown or missing system register name at operand 2 -- `mrs x0,daifmsr daifset,#3' Signed-off-by: Shaibal.Dutta Signed-off-by: Darwin Rambo Reviewed-by: Darwin Rambo --- arch/arm/include/asm/proc-arm

Re: [U-Boot] [PATCH v5] arm: Add support for semihosting for armv8 fastmodel targets.

2014-06-09 Thread Darwin Rambo
On 14-06-09 11:25 AM, Albert ARIBAUD wrote: Hi Darwin, On Mon, 9 Jun 2014 11:12:59 -0700, Darwin Rambo wrote: [...] Please refer to README.semihosting for a more detailed description of semihosting and how it is used with the armv8 virtual platforms. With your permission, will apply but

Re: [U-Boot] [PATCH v4 06/10] ARM: HYP/non-sec: allow relocation to secure RAM

2014-06-09 Thread Albert ARIBAUD
Hi Marc, On Sat, 26 Apr 2014 13:17:07 +0100, Marc Zyngier wrote: > The current non-sec switching code suffers from one major issue: > it cannot run in secure RAM, as a large part of u-boot still needs > to be run while we're switched to non-secure. > > This patch reworks the whole HYP/non-secur

Re: [U-Boot] [PATCH] arm: bcm281xx: Add CONFIG_SYS_GENERIC_BOARD

2014-06-09 Thread Albert ARIBAUD
Hi Steve, On Mon, 9 Jun 2014 09:17:35 -0700, Steve Rae wrote: > > > On 14-06-09 12:16 AM, Albert ARIBAUD wrote: > > Hi Steve, > > > > On Wed, 14 May 2014 14:18:09 -0700, Steve Rae wrote: > > > >> >convert to generic board > >> > > >> >Signed-off-by: Steve Rae > >> >--- > > Has this been teste

Re: [U-Boot] [PATCH] embestmx6boards: Fix the dtb file name for riotboard

2014-06-09 Thread Iain Paton
On 09/06/14 17:42, Fabio Estevam wrote: > The name of the dtb file used in the kernel is 'imx6dl-riotboard.dtb', so fix > it accordingly. > > Signed-off-by: Fabio Estevam > --- > include/configs/embestmx6boards.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/c

Re: [U-Boot] [PATCH] embestmx6boards: Fix CONFIG_CONSOLE_DEV

2014-06-09 Thread Iain Paton
On 09/06/14 17:35, Fabio Estevam wrote: > mars and riot boards use UART2 as console, so CONFIG_CONSOLE_DEV should point > to 'ttymxc1' instead. > > Signed-off-by: Fabio Estevam > --- > Untested as I don't have access to this board. > > include/configs/embestmx6boards.h | 2 +- > 1 file changed,

Re: [U-Boot] [PATCH v5] arm: Add support for semihosting for armv8 fastmodel targets.

2014-06-09 Thread Albert ARIBAUD
Hi Darwin, On Mon, 9 Jun 2014 11:12:59 -0700, Darwin Rambo wrote: [...] > Please refer to README.semihosting for a more detailed description of > semihosting and how it is used with the armv8 virtual platforms. With your permission, will apply but modify the above into... > Please refer to do

Re: [U-Boot] [PATCH 5/5] sunxi: Fix reset hang on sun5i

2014-06-09 Thread Ian Campbell
On Mon, 2014-06-09 at 17:15 +0200, Hans de Goede wrote: > Do the same as the Linux kernel does, this fixes the SoC hanging on reset > about 50% of the time. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell ___ U-Boot mailing list U-Boot@lists

Re: [U-Boot] [PATCH 4/5] sunxi: Add axp152 pmic support

2014-06-09 Thread Ian Campbell
On Mon, 2014-06-09 at 17:15 +0200, Hans de Goede wrote: > Add support for the x-powers axp152 pmic which is found on most A10s boards > and enable it for the r7-tv-dongle board. > > Signed-off-by: Henrik Nordstrom > Signed-off-by: Ian Campbell > Signed-off-by: Hans de Goede Looks good. Seems l

Re: [U-Boot] [PATCH 3/5] sunxi: Add axp209 pmic support

2014-06-09 Thread Ian Campbell
On Mon, 2014-06-09 at 17:15 +0200, Hans de Goede wrote: > From: Henrik Nordstrom > > Add support for the x-powers axp209 pmic which is found on most A10, A13 and > A20 boards. > > And enable AXP209 support for the Cubietruck and Cubieboard boards. > > While changing the boards.cfg lines for the

[U-Boot] [PATCH v5] arm: Add support for semihosting for armv8 fastmodel targets.

2014-06-09 Thread Darwin Rambo
The armv8 ARM Trusted Firmware (ATF) can be used to load various ATF images and u-boot, and does this for virtual platforms by using semihosting. This commit extends this idea by allowing u-boot to also use semihosting to load the kernel/ramdisk/dtb. This eliminates the need for a bootwrapper and p

Re: [U-Boot] u-boot: vexpressca9x4: hang(?) with qemu

2014-06-09 Thread Matwey V. Kornilov
09.06.2014 21:30, Matwey V. Kornilov пишет: > 09.06.2014 10:57, Matwey V. Kornilov пишет: >> Hi, >> >> I've build u-boot 2014.04 using >> >> make vexpress_ca9x4_config >> >> Now, I am trying to run it on qemu-system-arm 1.3.1 (as well as 1.7 >> gives same result) as the following: >> >> qemu-system

Re: [U-Boot] [GIT] Pull request: u-boot-dfu

2014-06-09 Thread Marek Vasut
On Monday, June 09, 2014 at 12:51:43 PM, Lukasz Majewski wrote: > Hi Marek, > > > Hi Marek, > > > > > On Monday, May 26, 2014 at 07:46:27 AM, Lukasz Majewski wrote: > > > > Hi Marek > > > > > > > > The following changes since commit > > > > > > > > fc25fa27e5f439705e9ca42182014e2d75d9f0ae: > >

Re: [U-Boot] u-boot: vexpressca9x4: hang(?) with qemu

2014-06-09 Thread Matwey V. Kornilov
09.06.2014 10:57, Matwey V. Kornilov пишет: > Hi, > > I've build u-boot 2014.04 using > > make vexpress_ca9x4_config > > Now, I am trying to run it on qemu-system-arm 1.3.1 (as well as 1.7 > gives same result) as the following: > > qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -m 1024 -kernel u

Re: [U-Boot] u-boot limitation if any.

2014-06-09 Thread Albert ARIBAUD
Hi mazen.e, On Mon, 9 Jun 2014 09:40:31 -0700 (PDT), "mazen.e" wrote: > Undoubtedly u-boot is very powerful and feature-rich bootloader. However, > does it have any limitation? In other words what features if included to > u-boot current functionality would result in a better efficiency in terms

Re: [U-Boot] [PATCH 2/5] sunxi: Add i2c support

2014-06-09 Thread Hans de Goede
Hi, On 06/09/2014 06:09 PM, Albert ARIBAUD wrote: Hi Hans, On Mon, 9 Jun 2014 17:15:27 +0200, Hans de Goede wrote: Add support for the i2c controller found on all Allwinner sunxi SoCs, this is the same controller as found on the Marvell orion5x and kirkwood SoC families, with a slightly dif

[U-Boot] [PATCH] Add support for DS1340 RTC

2014-06-09 Thread Darwin Dingel
Implementation is the same as with a DS1337 but with different register addresses. Signed-off-by: Darwin Dingel --- drivers/rtc/ds1337.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/ds1337.c b/drivers/rtc/ds1337.c index dae1b3c..0c1ba8c 100644 -

[U-Boot] u-boot: vexpressca9x4: hang(?) with qemu

2014-06-09 Thread Matwey V. Kornilov
Hi, I've build u-boot 2014.04 using make vexpress_ca9x4_config Now, I am trying to run it on qemu-system-arm 1.3.1 (as well as 1.7 gives same result) as the following: qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -m 1024 -kernel u-boot.bin -serial stdio I want to see u-boot banner and co

[U-Boot] u-boot limitation if any.

2014-06-09 Thread mazen.e
Undoubtedly u-boot is very powerful and feature-rich bootloader. However, does it have any limitation? In other words what features if included to u-boot current functionality would result in a better efficiency in terms of performance, power,security,portability, boot-time, or any other criteria.

[U-Boot] [PATCH] embestmx6boards: Fix the dtb file name for riotboard

2014-06-09 Thread Fabio Estevam
The name of the dtb file used in the kernel is 'imx6dl-riotboard.dtb', so fix it accordingly. Signed-off-by: Fabio Estevam --- include/configs/embestmx6boards.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/embestmx6boards.h b/include/configs/embestmx6board

[U-Boot] [PATCH] embestmx6boards: Fix CONFIG_CONSOLE_DEV

2014-06-09 Thread Fabio Estevam
mars and riot boards use UART2 as console, so CONFIG_CONSOLE_DEV should point to 'ttymxc1' instead. Signed-off-by: Fabio Estevam --- Untested as I don't have access to this board. include/configs/embestmx6boards.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/confi

Re: [U-Boot] [PATCH] arm: bcm281xx: Add CONFIG_SYS_GENERIC_BOARD

2014-06-09 Thread Steve Rae
On 14-06-09 12:16 AM, Albert ARIBAUD wrote: Hi Steve, On Wed, 14 May 2014 14:18:09 -0700, Steve Rae wrote: >convert to generic board > >Signed-off-by: Steve Rae >--- Has this been tested on hardware, or just build-tested? This generic board change has been tested on hardware. Thanks, Stev

Re: [U-Boot] [PATCH 2/5] sunxi: Add i2c support

2014-06-09 Thread Albert ARIBAUD
Hi Hans, On Mon, 9 Jun 2014 17:15:27 +0200, Hans de Goede wrote: > Add support for the i2c controller found on all Allwinner sunxi SoCs, > this is the same controller as found on the Marvell orion5x and kirkwood > SoC families, with a slightly different register layout, so this patch uses > the

Re: [U-Boot] [PATCH v2 0/2] ARM: bug fixes of commit 41623c91 (arch/arm/lib/vectors.S)

2014-06-09 Thread Albert ARIBAUD
Hi Masahiro, On Mon, 9 Jun 2014 20:16:52 +0900, Masahiro Yamada wrote: > > Masahiro Yamada (2): > arm: include config.h in arch/arm/lib/vectors.S > arm: fix a double-definition error of _start symbol > > arch/arm/lib/vectors.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)

[U-Boot] [PATCH 4/5] sunxi: Add axp152 pmic support

2014-06-09 Thread Hans de Goede
Add support for the x-powers axp152 pmic which is found on most A10s boards and enable it for the r7-tv-dongle board. Signed-off-by: Henrik Nordstrom Signed-off-by: Ian Campbell Signed-off-by: Hans de Goede --- board/sunxi/board.c| 10 ++ boards.cfg | 2 +- drivers/power/M

[U-Boot] [PATCH 3/5] sunxi: Add axp209 pmic support

2014-06-09 Thread Hans de Goede
From: Henrik Nordstrom Add support for the x-powers axp209 pmic which is found on most A10, A13 and A20 boards. And enable AXP209 support for the Cubietruck and Cubieboard boards. While changing the boards.cfg lines for the Cubietruck, add Ian and me as board maintainers for the Cubietruck. Si

[U-Boot] [PATCH 5/5] sunxi: Fix reset hang on sun5i

2014-06-09 Thread Hans de Goede
Do the same as the Linux kernel does, this fixes the SoC hanging on reset about 50% of the time. Signed-off-by: Hans de Goede --- arch/arm/cpu/armv7/sunxi/board.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/

[U-Boot] [PATCH 2/5] sunxi: Add i2c support

2014-06-09 Thread Hans de Goede
Add support for the i2c controller found on all Allwinner sunxi SoCs, this is the same controller as found on the Marvell orion5x and kirkwood SoC families, with a slightly different register layout, so this patch uses the existing mvtwsi code. Signed-off-by: Hans de Goede Acked-by: Ian Campbell

[U-Boot] [PATCH 0/5] sunxi: i2c and pmic support

2014-06-09 Thread Hans de Goede
Hi Albert, Heiko, Here is a new attempt at getting i2c and pmic support added to the sunxi u-boot support. Heiko, as you requested I've added a patch to convert the mvtwsi driver to CONFIG_SYS_I2C, can you please review this patch ? Once this patch has been reviewed, I think it would be best for

[U-Boot] [PATCH 1/5] mvtwsi: convert to CONFIG_SYS_I2C framework

2014-06-09 Thread Hans de Goede
Note this has only been tested on Allwinner sunxi devices (support for which gets introduced by a later patch). The kirkwood changes have been compile tested using the wireless_space board config, the orion5x changes have been compile tested using the edminiv2 board config. Signed-off-by: Hans de

Re: [U-Boot] U-Boot support for ODROID Board

2014-06-09 Thread Przemyslaw Marczak
Hi, On 06/09/2014 05:00 PM, Hannes Petermaier wrote: Hi Przemyslaw, sounds good. Do you have also experience running a current version of Linux Kernel on this board ? best regards, Hannes On 2014-06-09 16:29, Przemyslaw Marczak wrote: Hello Hannes, On 06/09/2014 02:39 PM, Hannes Petermaier

Re: [U-Boot] [PATCH v3 0/5] Fix SPI read and Enable required configs for Exynos5

2014-06-09 Thread Jagan Teki
Hi, On Mon, Jun 9, 2014 at 6:07 PM, Akshay Saraswat wrote: > Hi Jagan, > >>There is v3 for this series - Is that correct or this is the final >>version for this >>series? >> > > Yes, v3 is the final version. This is v3. > Please review and let me know your comments. This shows v2 - Can you pleas

Re: [U-Boot] U-Boot support for ODROID Board

2014-06-09 Thread Hannes Petermaier
Hi Przemyslaw, sounds good. Do you have also experience running a current version of Linux Kernel on this board ? best regards, Hannes On 2014-06-09 16:29, Przemyslaw Marczak wrote: Hello Hannes, On 06/09/2014 02:39 PM, Hannes Petermaier wrote: Hello, does anybody know if there is suppor

Re: [U-Boot] [PATCH v2 07/12] sunxi: Add i2c support

2014-06-09 Thread Hans de Goede
Hi, On 06/04/2014 06:34 AM, Heiko Schocher wrote: > Hello Hans, > > Am 03.06.2014 21:41, schrieb Hans de Goede: >> Add support for the i2c controller found on all Allwinner sunxi SoCs, >> this is the same controller as found on the Marvell orion5x and kirkwood >> SoC families, with a slightly dif

Re: [U-Boot] U-Boot support for ODROID Board

2014-06-09 Thread Przemyslaw Marczak
Hello Hannes, On 06/09/2014 02:39 PM, Hannes Petermaier wrote: Hello, does anybody know if there is support for the ODROID Board (http://hardkernel.com/main/products/prdt_info.php?g_code=G138745696275&tab_idx=2) with the Samsung exynos 4412 processor ? best regards, hannes I am working on i

Re: [U-Boot] error when building env

2014-06-09 Thread Masahiro Yamada
Hi Luka, Tom, On Thu, 5 Jun 2014 14:25:47 -0400 Tom Rini wrote: > On Mon, May 19, 2014 at 02:14:03PM +0200, Luka Perkov wrote: > > Hi Tom, > > > > On Fri, May 16, 2014 at 01:58:05PM -0400, Tom Rini wrote: > > > On Fri, May 16, 2014 at 07:26:51PM +0200, Luka Perkov wrote: > > > > when trying to

[U-Boot] [PATCH 3/3] ext4: correctly zero filename

2014-06-09 Thread Jeroen Hofstee
Since ALLOC_CACHE_ALIGN_BUFFER declares a char* for filename sizeof(filename) is not the size of the buffer. Use the already known length instead. cc: Uma Shankar cc: Manjunatha C Achar cc: Marek Vasut Signed-off-by: Jeroen Hofstee --- fs/ext4/ext4_write.c | 2 +- 1 file changed, 1 insertion(

[U-Boot] [PATCH 2/3] usb:composite: clear the whole common buffer

2014-06-09 Thread Jeroen Hofstee
Since the struct fsg_common is calloced, reset it completely with zero's when reused. While at it, make checkpatch happy. cc: Lukasz Majewski cc: Piotr Wilczek cc: Kyungmin Park cc: Marek Vasut Signed-off-by: Jeroen Hofstee --- drivers/usb/gadget/f_mass_storage.c:2470:28: warning: 'memset' ca

[U-Boot] [PATCH 0/3] fix clang warnings about sizeof usage

2014-06-09 Thread Jeroen Hofstee
The following patches prevent some warnings with clang in case a struct/buffer is not properly cleared by incorrect sizeof usage. For completeness, I have not tested it on hw! Jeroen Hofstee (3): usb:g_dnl:f_thor: remove memset before memcpy usb:composite: clear the whole common buffer ext4:

[U-Boot] [PATCH 1/3] usb:g_dnl:f_thor: remove memset before memcpy

2014-06-09 Thread Jeroen Hofstee
since ALLOC_CACHE_ALIGN_BUFFER defines a pointer and not a buffer, the memset with sizeof(rqt) likely does something else then intended. Since there is a memcpy directly after it with the full size, drop the memset completely. Cc: Lukasz Majewski Cc: Marek Vasut Signed-off-by: Jeroen Hofstee --

[U-Boot] U-Boot support for ODROID Board

2014-06-09 Thread Hannes Petermaier
Hello, does anybody know if there is support for the ODROID Board (http://hardkernel.com/main/products/prdt_info.php?g_code=G138745696275&tab_idx=2) with the Samsung exynos 4412 processor ? best regards, hannes ___ U-Boot mailing list U-Boot@lists.den

Re: [U-Boot] [PATCH v3 0/5] Fix SPI read and Enable required configs for Exynos5

2014-06-09 Thread Akshay Saraswat
Hi Jagan, >There is v3 for this series - Is that correct or this is the final >version for this >series? > Yes, v3 is the final version. This is v3. Please review and let me know your comments. >On Mon, Jun 9, 2014 at 3:55 PM, Akshay Saraswat wrote: >> Hi Minkyu, >> >> Please review this patch

Re: [U-Boot] [PATCH v3 0/5] Fix SPI read and Enable required configs for Exynos5

2014-06-09 Thread Jagan Teki
There is v3 for this series - Is that correct or this is the final version for this series? On Mon, Jun 9, 2014 at 3:55 PM, Akshay Saraswat wrote: > Hi Minkyu, > > Please review this patch set. > >>This patch set intends to - >>1. Fix SPI flash reading. >>2. Enable saving environment at the end o

[U-Boot] [PATCH] FIX: config: goni: Change goni configuration to use Tizen's THOR downlodader

2014-06-09 Thread Lukasz Majewski
Modify GONI's configuration to utilize THOR downloader. Signed-off-by: Lukasz Majewski --- include/configs/s5p_goni.h | 8 1 file changed, 8 insertions(+) diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h index 804f97f..6e795bf 100644 --- a/include/configs/s5p_goni.h

Re: [U-Boot] [PATCH] arm: fix a build error with CONFIG_USE_IRQ

2014-06-09 Thread Masahiro Yamada
Hi Albert, > Sorry, I though your patch was about CONFIG_USE_IRQ and its related > feature, as the subject and commit message both heavily refer to it > and mention CONFIG_SYS_DV_NOR_BOOT_CFG almost incidentally. > > Since the issue is that CONFIG_SYS_DV_NOR_BOOT_CFG definition is broken > for

Re: [U-Boot] [PATCH] arm: fix a build error with CONFIG_USE_IRQ

2014-06-09 Thread Masahiro Yamada
Hi Albert, On Mon, 9 Jun 2014 10:35:06 +0200 Albert ARIBAUD wrote: > Hi Masahiro, > > On Mon, 09 Jun 2014 16:36:56 +0900, Masahiro Yamada > wrote: > > > Hi Albert, > > > > On Mon, 9 Jun 2014 09:14:11 +0200 > > Albert ARIBAUD wrote: > > > > > Hi Masahiro, > > > > > > On Mon, 26 May 2014 19

[U-Boot] [PATCH v2 0/2] ARM: bug fixes of commit 41623c91 (arch/arm/lib/vectors.S)

2014-06-09 Thread Masahiro Yamada
Masahiro Yamada (2): arm: include config.h in arch/arm/lib/vectors.S arm: fix a double-definition error of _start symbol arch/arm/lib/vectors.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 ___ U-Boot mailing list U-Boot@lis

[U-Boot] [PATCH v2 1/2] arm: include config.h in arch/arm/lib/vectors.S

2014-06-09 Thread Masahiro Yamada
Commit 41623c91 moved exception handling to arch/arm/lib/vectors.S, but it missed to include . This mistake causes two problems. [1] "enbw_cmc", "da850evm_direct_nor", "calimain" boards are broken. They expect CONFIG_SYS_DV_NOR_BOOT_CFG (= 0x0011) at the beginning of the boot image. But it

[U-Boot] [PATCH v2 2/2] arm: fix a double-definition error of _start symbol

2014-06-09 Thread Masahiro Yamada
The symbol "_start" is defined twice in arch/arm/lib/vectors.S: around line 48 and line 54. If CONFIG_SYS_DV_NOR_BOOT_CFG is defined (as on calimain board), build fails: arch/arm/lib/vectors.S: Assembler messages: arch/arm/lib/vectors.S:54: Error: symbol `_start' is already defined make[1]:

Re: [U-Boot] [GIT] Pull request: u-boot-dfu

2014-06-09 Thread Lukasz Majewski
Hi Marek, > Hi Marek, > > > On Monday, May 26, 2014 at 07:46:27 AM, Lukasz Majewski wrote: > > > Hi Marek > > > > > > The following changes since commit > > > fc25fa27e5f439705e9ca42182014e2d75d9f0ae: > > > > > > dfu, nand: add medium specific polltimeout function (2014-05-08 > > > 10:38:30

Re: [U-Boot] [GIT] Pull request: u-boot-dfu

2014-06-09 Thread Lukasz Majewski
Hi Marek, > On Monday, May 26, 2014 at 07:46:27 AM, Lukasz Majewski wrote: > > Hi Marek > > > > The following changes since commit > > fc25fa27e5f439705e9ca42182014e2d75d9f0ae: > > > > dfu, nand: add medium specific polltimeout function (2014-05-08 > > 10:38:30 +0200) > > > > are available

Re: [U-Boot] [PATCH v2 0/4] Exynos5: Update dmc init

2014-06-09 Thread Akshay Saraswat
Hi Minkyu, Please review this patch set. >This patch series intends to add few changes with respect to >ddr3 init function definition and read leveling. > >Changes since v1: >- Added "Acked-by" in patches 1/4, 2/4 and 3/4. >- Removing only "mem_iv_size" argument now in patch 1

Re: [U-Boot] [PATCH v3 0/5] Fix SPI read and Enable required configs for Exynos5

2014-06-09 Thread Akshay Saraswat
Hi Minkyu, Please review this patch set. >This patch set intends to - >1. Fix SPI flash reading. >2. Enable saving environment at the end of flash. >3. Increase SPL size. >4. Enable USB booting for all Exynos5 Socs. > >Changes since v2: >- Added "Acked-by" & "Tested-by". >-

Re: [U-Boot] [PATCH v3 0/2] Introduction of new board Peach-Pit

2014-06-09 Thread Akshay Saraswat
Hi Minkyu, Please review this patch set. >This board is based on Exynos5420 and is similar to SMDK5420 board. >Adding new and refactoring existing DT and config files to support >both SMDK5420 and Peach-Pit. > >Changes since v1: >- Added "Acked-by". >Changes since v2: >- Ch

Re: [U-Boot] [PATCH] arm: Allow u-boot to run from offset base address

2014-06-09 Thread Albert ARIBAUD
Hi Darwin, On Mon, 2 Jun 2014 17:37:25 -0700, Darwin Rambo wrote: > > > On 14-06-02 12:26 AM, Albert ARIBAUD wrote: > > Hi Darwin, > > > > On Mon, 26 May 2014 09:11:35 -0700, Darwin Rambo > > wrote: > > > >> Hi Albert, > >> > >> The previous stage bootloader (which I had no control over) want

Re: [U-Boot] [PATCH v2 08/12] sunxi: Add axp209 pmic support

2014-06-09 Thread Ian Campbell
On Mon, 2014-06-09 at 10:59 +0200, Hans de Goede wrote: > > How would you feel about reordering things a bit to push the i2c/power > > and sun[45]i stuff to the end, most of the rest looks more or less > > trivial/uncontroversial to me and could potentially be applied sooner > > rather than later (

Re: [U-Boot] [PATCH] arm: fix a double-definition error of _start symbol

2014-06-09 Thread Albert ARIBAUD
Hi Masahiro, On Mon, 09 Jun 2014 18:44:08 +0900, Masahiro Yamada wrote: > Hi Albert, > > > > > > Apart from the shame of having written this double definition myself and > > missed it entirely, I am surprised because this error (obviously) does > > not occur on my setup. Which toolchain are y

Re: [U-Boot] [PATCH] arm: fix a double-definition error of _start symbol

2014-06-09 Thread Masahiro Yamada
Hi Albert, > > Apart from the shame of having written this double definition myself and > missed it entirely, I am surprised because this error (obviously) does > not occur on my setup. Which toolchain are you using? It is not because of the toolchain difference. You should understand the prob

Re: [U-Boot] [PATCH] arm: fix a build error with CONFIG_USE_IRQ

2014-06-09 Thread Albert ARIBAUD
Hi Masahiro, On Mon, 09 Jun 2014 18:29:26 +0900, Masahiro Yamada wrote: > Hi Albert, > > > On Mon, 9 Jun 2014 10:35:06 +0200 > Albert ARIBAUD wrote: > > > Hi Masahiro, > > > > On Mon, 09 Jun 2014 16:36:56 +0900, Masahiro Yamada > > wrote: > > > > > Hi Albert, > > > > > > On Mon, 9 Jun 20

[U-Boot] [PATCH v3 09/10] sunxi: Add support for using MII phy-s with the GMAC nic

2014-06-09 Thread Hans de Goede
From: Chen-Yu Tsai Many A20 boards (ie Cubieboard2, A20-OLinuXino_MICRO) use an 100 Mbit MII phy together with the GMAC nic found in the A20 SoC, add support for this (this will get used when we add these boards in a later patch). Signed-off-by: Chen-Yu Tsai Signed-off-by: Hans de Goede Acked-

[U-Boot] [PATCH v3 07/10] net: Rename and cleanup sunxi (Allwinner) emac driver

2014-06-09 Thread Hans de Goede
From: Stefan Roese There have been 3 versions of the sunxi_emac support patch during its development. Somehow version 2 ended up in upstream u-boot where as the u-boot-sunxi git repo got version 3. This bumps the version in upstream u-boot to version 3 of the patch: - Initialize MII clock earlie

[U-Boot] [PATCH v3 06/10] sunxi: Add sun5i support

2014-06-09 Thread Hans de Goede
Add support for the Allwinner A13 and A10s SoCs also know as the Allwinner sun5i family, and the A13-OLinuXinoM A13 based and r7-tv-dongle A10s based boards. The only differences compared to the already supported sun4i and sun7i families are all in the DRAM controller initialization: -Different h

[U-Boot] [PATCH v3 05/10] sunxi: Add sun4i support

2014-06-09 Thread Hans de Goede
Add support for the Allwinner A10 SoC also known as the Allwinner sun4i family, and add the Cubieboard board which uses the A10 SoC. Compared to sun7 only the DRAM controller is a bit different: -Controller reset bits are inverted, but only for Rev. A -Different hpcr values -No MBUS on sun4i -Vari

[U-Boot] [PATCH v3 10/10] sunxi: Add Ian Campbell and Hans de Goede as cubietruck board-maintainers

2014-06-09 Thread Hans de Goede
Signed-off-by: Hans de Goede Acked-by: Ian Campbell --- boards.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards.cfg b/boards.cfg index 1fe9f80..983189e 100644 --- a/boards.cfg +++ b/boards.cfg @@ -376,8 +376,8 @@ Active arm armv7 s5pc1xx sa

[U-Boot] [PATCH v3 08/10] sunxi: Add emac glue, enable emac on the cubieboard

2014-06-09 Thread Hans de Goede
Signed-off-by: Hans de Goede Acked-by: Ian Campbell --- arch/arm/cpu/armv7/sunxi/board.c | 8 boards.cfg | 2 +- include/configs/sunxi-common.h | 5 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/c

[U-Boot] [PATCH v3 03/10] sunxi: Remove mmc DMA support

2014-06-09 Thread Hans de Goede
The DMA code in sunxi_mmc.c is broken. mmc_trans_data_by_dma() allocates the dma descriptors on the stack, and then exits while the dma transfer is in progress, so the dma engine is reading stack memory which at that point may be re-used. So far we've gotten away with this by luck, but recent u-boo

[U-Boot] [PATCH v3 04/10] sunxi: Implement reset_cpu

2014-06-09 Thread Hans de Goede
There is no way to reset the cpu, so use the watchdog for this. Signed-off-by: Hans de Goede Acked-by: Ian Campbell --- arch/arm/cpu/armv7/sunxi/board.c| 7 +++ arch/arm/include/asm/arch-sunxi/timer.h | 5 + 2 files changed, 12 insertions(+) diff --git a/arch/arm/cpu/armv7/sunx

[U-Boot] [PATCH v3 02/10] sunxi: Fix u-boot-spl.lds to refer to .vectors

2014-06-09 Thread Hans de Goede
Adjust the u-boot-spl.lds linker script to match the changes made in the 41623c91b09a0c865fab41acdaff30f060f29ad6 "arm: move exception handling out of start.S files" commit. Signed-off-by: Hans de Goede Acked-by: Ian Campbell --- arch/arm/cpu/armv7/sunxi/u-boot-spl.lds | 1 + 1 file changed, 1

[U-Boot] [PATCH v3 01/10] sunxi: mksunxiboot: Fix loading of files with a size which is not a multiple of 4

2014-06-09 Thread Hans de Goede
We should not be aligning the amount of bytes which we try to read from the disk, this leads to trying to read more bytes then there are which fails. file_size is already aligned to BLOCK_SIZE before being stored in img.header.length, so there is no need for load_size at all. Signed-off-by: Hans

[U-Boot] [PATCH v3 00/10] sunxi: Bug fixes, sun4i and sun5i support and network improvements

2014-06-09 Thread Hans de Goede
Hi All, Here is v2 of my patch series to be applied on top of Ian's recently merged basic sun7i support. This patch series begins with a few bug fixes found while working on preparing the rest of the series, adds sun4i and sun5i support and rounds things of with some networking fixes / additions.

[U-Boot] [PATCH] FIX: config: goni: Change goni configuration to store envs at eMMC

2014-06-09 Thread Lukasz Majewski
Up till now goni's configuration has been stored at OneNAND. Since u-boot itself is now stored at eMMC it is more handy to store envs there as well. Signed-off-by: Lukasz Majewski --- include/configs/s5p_goni.h | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/

Re: [U-Boot] [PATCH v4 00/10] ARMv7: add PSCI support to U-Boot

2014-06-09 Thread Albert ARIBAUD
Hi Marc, On Mon, 09 Jun 2014 09:12:34 +0100, Marc Zyngier wrote: > On 08/06/14 08:57, Albert ARIBAUD wrote: > > On Sun, 25 May 2014 16:08:44 +0200, Albert ARIBAUD > > wrote: > > > >> Hi Marc, > >> > >> On Sat, 26 Apr 2014 13:17:01 +0100, Marc Zyngier > >> wrote: > >> > >>> PSCI is an ARM stan

  1   2   >