[U-Boot] [PATCH 3/3] MMC: atmel_mci: enable high speed mode support

2014-07-30 Thread Bo Shen
If the MCI IP version >= 0x300, it supports hight speed mode option, this patch enable it. Signed-off-by: Bo Shen --- drivers/mmc/gen_atmel_mci.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c index 8778a4d..45b

[U-Boot] [PATCH 2/3] MMC: atmel_mci: add configuration register definition

2014-07-30 Thread Bo Shen
Add configuration register definition, this register only exists on MCI IP version >= 0x300. Signed-off-by: Bo Shen --- include/atmel_mci.h | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/include/atmel_mci.h b/include/atmel_mci.h index 3d2870f..de24148 100644 -

[U-Boot] [PATCH 1/3] MMC: atmel_mci: refactor setting the mode register

2014-07-30 Thread Bo Shen
The mode register is different between MCI IP version. So, according to MCI IP version to set the mode register. Signed-off-by: Bo Shen --- drivers/mmc/gen_atmel_mci.c | 56 + include/atmel_mci.h | 4 2 files changed, 46 insertions(+), 14

[U-Boot] [PATCH 0/3] MMC: atmel: enable the features supported by MCI

2014-07-30 Thread Bo Shen
This patch series enable the features supported by the MCI which not enabled before. For example: high speed mode without this patch: U-Boot> fatload mmc 0 0x2000 uimage reading uimage 3973216 bytes read in 392 ms (9.7 MiB/s) with this patch U-Boot> fatload mmc 0 0x2000 uimage r

Re: [U-Boot] Quick guide to Kconfig

2014-07-30 Thread Masahiro Yamada
Hi Frank, On Thu, 31 Jul 2014 08:29:07 +0200 "Frank Ihle" wrote: > Hi everyone, > > can you please give me a hint how to run the menuconfig? > > I just downloaded the latest U-Boot from > ftp://ftp.denx.de/pub/u-boot/u-boot-latest.tar.bz2 (Version: 2014.07). When > entering the /u-boot-201

[U-Boot] [PATCH] ARM: DRA7: Enable software leveling for dra7

2014-07-30 Thread Lokesh Vutla
From: Sricharan R Currently hw leveling is enabled by default on DRA7/72. But the hardware team suggested to use sw leveling as hw leveling is not characterized and seen some test case failures. So enabling sw leveling on all DRA7 platforms. Signed-off-by: Sricharan R Signed-off-by: Lokesh Vutl

Re: [U-Boot] Quick guide to Kconfig

2014-07-30 Thread Frank Ihle
Hi everyone, can you please give me a hint how to run the menuconfig? I just downloaded the latest U-Boot from ftp://ftp.denx.de/pub/u-boot/u-boot-latest.tar.bz2 (Version: 2014.07). When entering the /u-boot-2014.07/ directory and hitting "make menuconfig" then, it just tells me that there's

[U-Boot] [PATCH] omap5912osk: change the status to Orphan

2014-07-30 Thread Masahiro Yamada
Emails to "Rishi Bhattacharya " have been bouncing. Signed-off-by: Masahiro Yamada Cc: Tom Rini --- This patch is here because Tom did not respond to my request: http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/190418/focus=191067 You can reject this patch and assign a new board maintain

[U-Boot] Quick guide to Kconfig

2014-07-30 Thread Masahiro Yamada
Hi all, The mainline has switched to Kconfig. Please make sure to use "make _defconfig" instead of "make _config". [1] Board Configuration make _defconfig [2] Modify configuration make config, make menuconfig, make nconfig, ... etc. For SPL, make spl/config, make spl/me

Re: [U-Boot] Please pull u-boot-sunxi.git/master

2014-07-30 Thread Masahiro Yamada
Hi Tom, Albert, Hans, I am afraid we are going to be in trouble with this pre-Kconfig based PR because it includes various new boards. (We can fix the merge conflict, but it is not trivial.) How this is going to work? Perhaps should we discard unmerged PRs and get all the subsystem repos sync

Re: [U-Boot] [PATCH v3 2/4] usb/gadget: fastboot: add eMMC support for flash command

2014-07-30 Thread Marek Vasut
On Thursday, June 26, 2014 at 10:13:22 PM, Steve Rae wrote: [...] > + > +#include > +#include > +#include > +#include > + > +/* The 64 defined bytes plus \0 */ > +#define RESPONSE_LEN (64 + 1) > + > +static char *response_str; I'd suggest to pass this "response_str" around instead of making it

Re: [U-Boot] [PATCH 1/3] config: introduce a generic $bootcmd

2014-07-30 Thread Marek Vasut
On Thursday, July 31, 2014 at 12:37:14 AM, Stephen Warren wrote: > From: Dennis Gilmore > > This generic $bootcmd, and associated support macros, automatically > searches a defined set of storage devices (or network protocols) for an > extlinux configuration file or U-Boot boot script in various

Re: [U-Boot] [PATCH v3 3/4] usb/gadget: fastboot: add support for flash command

2014-07-30 Thread Marek Vasut
On Thursday, June 26, 2014 at 10:13:23 PM, Steve Rae wrote: > - implement 'fastboot flash' for eMMC devices > > Signed-off-by: Steve Rae Reviewed-by: Marek Vasut Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx

Re: [U-Boot] [PATCH v3 0/4] Implement "fastboot flash" for eMMC

2014-07-30 Thread Marek Vasut
On Thursday, July 31, 2014 at 03:02:37 AM, Steve Rae wrote: > On 14-06-26 01:13 PM, Steve Rae wrote: > > This series implements the "fastboot flash" command for eMMC devices. > > It supports both raw and sparse images. > > > > NOTES: > > - the support for the "fastboot flash" command is enabled wi

Re: [U-Boot] [PATCH v3 1/4] usb/gadget: fastboot: add sparse image definitions

2014-07-30 Thread Marek Vasut
On Thursday, June 26, 2014 at 10:13:21 PM, Steve Rae wrote: > - to prepare for the support of fastboot sparse images > > Signed-off-by: Steve Rae > --- > This file is ASIS from: > > https://raw.githubusercontent.com/AOSB/android_system_core/master/libspars > e/sparse_format.h (commit 28fa5bc347

Re: [U-Boot] [PATCH v3 4/4] usb/gadget: fastboot: minor cleanup

2014-07-30 Thread Marek Vasut
On Thursday, June 26, 2014 at 10:13:24 PM, Steve Rae wrote: > - update static function > - additional debugging statements > > Signed-off-by: Steve Rae > --- > > Changes in v3: None > Changes in v2: > - new in v2 > > drivers/usb/gadget/f_fastboot.c | 10 +++--- > 1 file changed, 7 insertio

Re: [U-Boot] Please pick up the maintainership on orphan boards

2014-07-30 Thread Masahiro Yamada
Hi Tushar, (cc Minkyu Kang) Reminder. On Tue, 10 Jun 2014 14:54:20 +0530 Tushar Behera wrote: > On 29 May 2014 12:06, Tushar Behera wrote: > > On 29 May 2014 11:30, Minkyu Kang wrote: > >> Dear Tushar Behera, > >> > >> On 29/05/14 12:43, Masahiro Yamada wrote: > >>> Minkyu, > >>> Inderpal Si

Re: [U-Boot] [PATCH v8 07/13] tools: add genboardscfg.py

2014-07-30 Thread Masahiro Yamada
Hi Tom, On Wed, 30 Jul 2014 10:07:19 -0400 Tom Rini wrote: > On Wed, Jul 30, 2014 at 02:08:19PM +0900, Masahiro Yamada wrote: > > > Now the primary data for each board is in Kconfig, defconfig and > > MAINTAINERS. > > > > It is true boards.cfg is needed for MAKEALL and buildman and might be >

Re: [U-Boot] [PATCH v8 05/13] kconfig: switch to Kconfig

2014-07-30 Thread Stephen Warren
On 07/30/2014 07:56 PM, Masahiro Yamada wrote: > Hi Stephen, > > > On Wed, 30 Jul 2014 17:05:21 -0600 > Stephen Warren wrote: > >> On 07/29/2014 11:08 PM, Masahiro Yamada wrote: >>> This commit enables Kconfig. >>> Going forward, we use Kconfig for the board configuration. >>> mkconfig will nev

Re: [U-Boot] [PATCH v8 05/13] kconfig: switch to Kconfig

2014-07-30 Thread Masahiro Yamada
Hi Stephen, On Wed, 30 Jul 2014 17:05:21 -0600 Stephen Warren wrote: > On 07/29/2014 11:08 PM, Masahiro Yamada wrote: > > This commit enables Kconfig. > > Going forward, we use Kconfig for the board configuration. > > mkconfig will never be used. Nor will include/config.mk be generated. > > > >

Re: [U-Boot] [PATCH v3 0/4] Implement "fastboot flash" for eMMC

2014-07-30 Thread Steve Rae
On 14-06-26 01:13 PM, Steve Rae wrote: This series implements the "fastboot flash" command for eMMC devices. It supports both raw and sparse images. NOTES: - the support for the "fastboot flash" command is enabled with CONFIG_FASTBOOT_FLASH - the support for eMMC is enabled with CONFIG_FASTBO

Re: [U-Boot] [PATCH v2 0/4] Introducing the Broadcom Cygnus and NSP boards.

2014-07-30 Thread Steve Rae
On 14-07-22 03:41 PM, Steve Rae wrote: This series adds the bcm958300k and the bcm958622hr boards which share the iproc architecture code. Changes in v2: - remove unused include file - reformat multi-line comment(s) - remove deprecated "SZ_" definitions - remove misc_init_r() - update CONFIG_E

Re: [U-Boot] [PATCH v8 05/13] kconfig: switch to Kconfig

2014-07-30 Thread Stephen Warren
On 07/29/2014 11:08 PM, Masahiro Yamada wrote: This commit enables Kconfig. Going forward, we use Kconfig for the board configuration. mkconfig will never be used. Nor will include/config.mk be generated. Kconfig must be adjusted for U-Boot because our situation is a little more complicated than

[U-Boot] [PATCH] pxe: detect image format before calling bootm/bootz

2014-07-30 Thread Bryan Wu
Trying bootm for zImage will print out several error message which is not necessary for this case. So detect image format firstly, only try bootm for legacy and FIT format image then try bootz for others. Signed-off-by: Bryan Wu --- common/cmd_pxe.c | 10 +++--- 1 file changed, 7 insertions(

Re: [U-Boot] [PATCH 1/4] Add option -r to env import to allow import of text files with CRLF as line endings

2014-07-30 Thread Stephen Warren
On 07/14/2014 09:49 AM, Alexander Holler wrote: When this option is enabled, CRLF is treated like LF when importing environments from text files, which means CRs ('\r') in front of LFs ('\n') are just ignored. Drawback of enabling this option is that (maybe exported) variables which have a trail

[U-Boot] [PATCH 1/3] config: introduce a generic $bootcmd

2014-07-30 Thread Stephen Warren
From: Dennis Gilmore This generic $bootcmd, and associated support macros, automatically searches a defined set of storage devices (or network protocols) for an extlinux configuration file or U-Boot boot script in various standardized locations. Distros that install such a boot config file/script

[U-Boot] [PATCH 3/3] ARM: rpi_b: use new generic $bootcmd

2014-07-30 Thread Stephen Warren
From: Stephen Warren Replace the custom $bootcmd with that from . There should be no functional change, since the new generic $bootcmd was derived strongly from tegra-common-post.h, after which this part of rpi_b.h was modelled. The #defines to enable/disable U-Boot commands/features were moved

[U-Boot] [PATCH 2/3] ARM: tegra: use new generic $bootcmd

2014-07-30 Thread Stephen Warren
From: Stephen Warren Replace the custom $bootcmd with that from . There should be no functional change, since the new generic $bootcmd was derived strongly from tegra-common-post.h. Signed-off-by: Stephen Warren --- include/configs/tegra-common-post.h | 140 +++-

Re: [U-Boot] [RFC] Makefile: Add a message warning size change for mpc85xx boards

2014-07-30 Thread York Sun
On 07/29/2014 10:02 PM, Wolfgang Denk wrote: > Dear York Sun, > > In message <1406669019-31651-1-git-send-email-york...@freescale.com> you > wrote: >> Some mpc85xx boards are using 768KB size u-boot image while some >> legacy boards still use 512KB. To bring attention to users about >> the size c

Re: [U-Boot] [PATCH] rsa: Fix two errors in the implementation

2014-07-30 Thread Jeroen Hofstee
Hello Simon, { -uint32_t i; +int i; -for (i = key->len - 1; i >= 0; i--) { +for (i = (int)key->len - 1; i >= 0; i--) { if (num[i] < key->modulus[i]) return 0; if (num[i] > key->modulus[i]) I did indeed not post a patch, since I do not know

Re: [U-Boot] [PATCH] rsa: Fix two errors in the implementation

2014-07-30 Thread Jeroen Hofstee
Hello Simon, On 30-07-14 18:00, Simon Glass wrote: 1. Failure to set the return code correctly 2. Failure to detect the loop end condition when the value is equal to the modulus. Reported-by: Jeroen Hofstee Signed-off-by: Simon Glass --- lib/rsa/rsa-sign.c | 1 + lib/rsa/rsa-verify.c |

Re: [U-Boot] Driver Model and DTS Parsing

2014-07-30 Thread Stephen Warren
On 07/30/2014 10:09 AM, Simon Glass wrote: Hi Stephen, On 30 July 2014 16:47, Stephen Warren wrote: On 07/30/2014 09:26 AM, Simon Glass wrote: Hi Stephen, On 12 June 2014 23:31, Stephen Warren wrote: On 06/11/2014 10:55 PM, Simon Glass wrote: ... Tegra doesn't have much in the device t

[U-Boot] [PATCH v2 4/8] ARM: make gd a function for clang

2014-07-30 Thread Jeroen Hofstee
"clang does not support global register variables; this is unlikely to be implemented soon because it requires additional LLVM backend support" [1] Workaround it by obtaining the value of gd/r9 by an inline asm routine. Note there is no set routine added for ARM at the moment, since most if not al

[U-Boot] [PATCH v2 7/8] Makefile: default to cc for host compiler

2014-07-30 Thread Jeroen Hofstee
Since the host compiler might not be gcc but e.g. clang default to cc to invoke it. cc: Masahiro Yamada cc: Tom Rini Signed-off-by: Jeroen Hofstee --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 80eb239..c19f7d9 100644 --- a/Makefile +

[U-Boot] [PATCH v2 8/8] README.clang: build command with clang

2014-07-30 Thread Jeroen Hofstee
Signed-off-by: Jeroen Hofstee --- doc/README.clang | 56 1 file changed, 56 insertions(+) create mode 100644 doc/README.clang diff --git a/doc/README.clang b/doc/README.clang new file mode 100644 index 000..6d84f37 --- /dev/null +++ b

[U-Boot] [PATCH v2 6/8] clang: workaround for generated constants

2014-07-30 Thread Jeroen Hofstee
KBuild abuses the asm statement to write to a file and clang chokes about these invalid asm statements. Hack it even more by fooling this is actual valid asm code. cc: Masahiro Yamada cc: Tom Rini Signed-off-by: Jeroen Hofstee --- Kbuild | 3 ++- include/linux/kbuild.h | 6 +++-

[U-Boot] [PATCH v2 2/8] ARM: SPL: do not set gd again

2014-07-30 Thread Jeroen Hofstee
Just before calling board_init_f, crt0.S has already reserved space for the initial gd on the stack. There should be no need to allocate it again. cc: Albert ARIBAUD Signed-off-by: Jeroen Hofstee --- arch/arm/lib/spl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/lib/spl.c b/a

[U-Boot] [PATCH v2 5/8] eabi_compat: add __aeabi_memcpy __aeabi_memset

2014-07-30 Thread Jeroen Hofstee
cc: Albert ARIBAUD Signed-off-by: Jeroen Hofstee --- fixes this: common/libcommon.o: In function `env_callback_init': /home/jeroen/software/u-boot/common/env_callback.c:47: undefined reference to `__aeabi_memset' common/libcommon.o: In function `parse_stream_outer': /home/jeroen/software/u-boot

[U-Boot] [PATCH v2 1/8] board_r: ARM[64] do not set gd again

2014-07-30 Thread Jeroen Hofstee
For ARM / ARM64 the relocation routines already updated gd to the new value. Don't set it again. This allows compilation with clang as it cannot update gd directly. cc: Albert ARIBAUD Signed-off-by: Jeroen Hofstee --- common/board_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH v2 0/8] add clang support for some ARM boards

2014-07-30 Thread Jeroen Hofstee
Changes since v1 (RFC): - Update the commit message for -Werror when polling for cc-options. As pointed out by Masahiro this is not needed for all arguments, but only for warning options. - drop SOC specific patch from this patchset, I will post it seperately. - Do implement get_gd fo

[U-Boot] [PATCH v2 3/8] cc-option: also detect unsupported warnings options

2014-07-30 Thread Jeroen Hofstee
By default clang will echo a warning if a warning option is unknown. Turning warnings into errors when polling for options also catches such cases and prevents passing arguments to the compiler which cause warnings. cc: Masahiro Yamada cc: Tom Rini Signed-off-by: Jeroen Hofstee --- scripts/Kbu

Re: [U-Boot] [PATCH v8 13/13] include: remove CONFIG_SPL/CONFIG_TPL definition in config headers

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:25PM +0900, Masahiro Yamada wrote: > Now CONFIG_SPL and CONFIG_TPL are defined in Kconfig. > > Remove the redundant definition in config headers. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.

Re: [U-Boot] [PATCH v8 0/13] Kconfig for U-Boot

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:12PM +0900, Masahiro Yamada wrote: > This series introduces Kconfig. > > Besides Linux Kernel, Kconfig is used in some projects, > such as, BusyBox, Buildroot. > > But our situation is a little more complicated. > For one board, we need to generate 3 images at most:

Re: [U-Boot] [PATCH v8 11/13] kconfig: delete redundant CONFIG_${ARCH} definition

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:23PM +0900, Masahiro Yamada wrote: > CONFIG_${ARCH} is defined by Kconfig. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [PATCH v8 12/13] powerpc: remove redundant CPU definition

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:24PM +0900, Masahiro Yamada wrote: > CONFIG_${CPU} is defined by Kconfig. > > Signed-off-by: Masahiro Yamada > Acked-by: Stefan Roese > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [PATCH v8 09/13] MAKEALL: adjust for Kconfig

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:21PM +0900, Masahiro Yamada wrote: > - Use "make _defconfig" instead of "make _config". > > - Invoke tools/genboardscfg.py to generate boards.cfg when it is >missing. > > - Show "Building ${BOARD_NAME} board..." message. >(Prior to Kconfig, instead, mkcon

Re: [U-Boot] [PATCH v8 10/13] buildman: adjust for Kconfig

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:22PM +0900, Masahiro Yamada wrote: > Use "make _defconfig" instead of "make _config". > > Invoke tools/genboardscfg.py to generate boards.cfg when it is missing. > > Signed-off-by: Masahiro Yamada > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [PATCH v8 06/13] Add board MAINTAINERS files

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:18PM +0900, Masahiro Yamada wrote: > We have switched to Kconfig and the boards.cfg file is going to > be removed. We have to retrieve the board status and maintainers > information from it. > > The MAINTAINERS format as in Linux Kernel would be nice > because we can

Re: [U-Boot] [PATCH v8 08/13] kconfig: remove mkconfig and boards.cfg

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:20PM +0900, Masahiro Yamada wrote: > The old configuration script is no longer necessary. > Nor is boards.cfg a primary database. > We can generate it with the genboardscfg.py tool > based on the latest Kconfig, defconfig and MAINTAINERS. > > Signed-off-by: Masahiro

Re: [U-Boot] [PATCH v8 07/13] tools: add genboardscfg.py

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:19PM +0900, Masahiro Yamada wrote: > Now the primary data for each board is in Kconfig, defconfig and > MAINTAINERS. > > It is true boards.cfg is needed for MAKEALL and buildman and might be > useful to brouse all the supported boards in a single database. > But it w

Re: [U-Boot] [PATCH v8 05/13] kconfig: switch to Kconfig

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:17PM +0900, Masahiro Yamada wrote: > This commit enables Kconfig. > Going forward, we use Kconfig for the board configuration. > mkconfig will never be used. Nor will include/config.mk be generated. > > Kconfig must be adjusted for U-Boot because our situation is > a

Re: [U-Boot] [PATCH v8 04/13] include: define CONFIG_SPL and CONFIG_TPL as 1

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:16PM +0900, Masahiro Yamada wrote: > We are about to switch to Kconfig in the next commit. > But there are something to get done beforehand. > > In Kconfig, include/generated/autoconf.h defines boolean > CONFIG macros as 1. > > CONFIG_SPL and CONFIG_TPL, if defined,

Re: [U-Boot] [PATCH v8 03/13] kconfig: add basic Kconfig files

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:15PM +0900, Masahiro Yamada wrote: > This commit adds more Kconfig files, which were written by hand. > > Signed-off-by: Masahiro Yamada > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [PATCH v8 02/13] kconfig: add board Kconfig and defconfig files

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:14PM +0900, Masahiro Yamada wrote: > This commit adds: > - arch/${ARCH}/Kconfig > provide a menu to select target boards > - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig > set CONFIG macros to the appropriate values for each board > - configs/

Re: [U-Boot] [PATCH v8 01/13] kconfig: import Kconfig files from Linux 3.16-rc7

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:13PM +0900, Masahiro Yamada wrote: > Import > - scripts/kconfig/* > - include/linux/kconfig.h > from Linux 3.16-rc7. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital s

Re: [U-Boot] [PATCH] tools/genboardscfg.py: Don't rely on subprocess.check_output

2014-07-30 Thread Masahiro YAMADA
Hi Tom, 2014-07-31 3:04 GMT+09:00 Tom Rini : > Arg. Do you want me to fold / rework things like that or do you want to > post a v9 of just this patch, adapted as you've shown? Either is fine for me. If you were about to apply v8 (I saw you are doing one last build check now), could you rewo

Re: [U-Boot] [PATCH] tools/genboardscfg.py: Don't rely on subprocess.check_output

2014-07-30 Thread Masahiro YAMADA
Tom, > > Arg. Do you want me to fold / rework things like that or do you want to > post a v9 of just this patch, adapted as you've shown? > Either is fine for me. But if you were about to apply v8 (it looks like you are doing the final test), could you rework things, please? No more updates f

Re: [U-Boot] [PATCH] tools/genboardscfg.py: Don't rely on subprocess.check_output

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:04:50PM -0400, Tom Rini wrote: > On Thu, Jul 31, 2014 at 02:54:43AM +0900, Masahiro YAMADA wrote: > > Hi Tom, > > > > > > 2014-07-30 23:24 GMT+09:00 Tom Rini : > > > > > > The function subprocess.check_output() only exists in Python 2.7 and > > > later (and there are lo

Re: [U-Boot] [PATCH] tools/genboardscfg.py: Don't rely on subprocess.check_output

2014-07-30 Thread Tom Rini
On Thu, Jul 31, 2014 at 02:54:43AM +0900, Masahiro YAMADA wrote: > Hi Tom, > > > 2014-07-30 23:24 GMT+09:00 Tom Rini : > > > > The function subprocess.check_output() only exists in Python 2.7 and > > later (and there are long term supported distributions that ship with > > 2.6.x). Replace this w

Re: [U-Boot] [PATCH] tools/genboardscfg.py: Don't rely on subprocess.check_output

2014-07-30 Thread Masahiro YAMADA
Hi Tom, 2014-07-30 23:24 GMT+09:00 Tom Rini : > > The function subprocess.check_output() only exists in Python 2.7 and > later (and there are long term supported distributions that ship with > 2.6.x). Replace this with a call to subprocess.Popen() and then checking > output via communicate() Un

Re: [U-Boot] [PATCH] tools/genboardscfg.py: Don't rely on subprocess.check_output

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 04:46:32PM +0100, Simon Glass wrote: > Hi Tom, > > On 30 July 2014 15:24, Tom Rini wrote: > > The function subprocess.check_output() only exists in Python 2.7 and > > later (and there are long term supported distributions that ship with > > 2.6.x). Replace this with a ca

Re: [U-Boot] Driver Model and DTS Parsing

2014-07-30 Thread Simon Glass
Hi Stephen, On 30 July 2014 16:47, Stephen Warren wrote: > On 07/30/2014 09:26 AM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 12 June 2014 23:31, Stephen Warren wrote: >>> >>> On 06/11/2014 10:55 PM, Simon Glass wrote: >>> ... Tegra doesn't have much in the device tree for GPIOs - i

[U-Boot] [PATCH] rsa: Fix two errors in the implementation

2014-07-30 Thread Simon Glass
1. Failure to set the return code correctly 2. Failure to detect the loop end condition when the value is equal to the modulus. Reported-by: Jeroen Hofstee Signed-off-by: Simon Glass --- lib/rsa/rsa-sign.c | 1 + lib/rsa/rsa-verify.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)

Re: [U-Boot] clang sandbox warning

2014-07-30 Thread Simon Glass
Hi Jeroen, On 10 June 2014 19:38, Jeroen Hofstee wrote: > Hello Simon, > > While trying to find a u-boot make command which likely works with a > pre-build clang linux package I got the following warnings: > > `make CC="clang -no-integrated-as" HOSTCC="clang -no-integrated-as" > HOST_TOOLS_ALL=y

Re: [U-Boot] [PATCH] tools/genboardscfg.py: Don't rely on subprocess.check_output

2014-07-30 Thread Simon Glass
Hi Tom, On 30 July 2014 15:24, Tom Rini wrote: > The function subprocess.check_output() only exists in Python 2.7 and > later (and there are long term supported distributions that ship with > 2.6.x). Replace this with a call to subprocess.Popen() and then checking > output via communicate() > >

Re: [U-Boot] Driver Model and DTS Parsing

2014-07-30 Thread Stephen Warren
On 07/30/2014 09:26 AM, Simon Glass wrote: Hi Stephen, On 12 June 2014 23:31, Stephen Warren wrote: On 06/11/2014 10:55 PM, Simon Glass wrote: ... Tegra doesn't have much in the device tree for GPIOs - it seems to be all hard-coded in the software. So I ended up with the code you saw which ju

Re: [U-Boot] [PATCH v3 09/16] dm: exynos: Move serial to driver model

2014-07-30 Thread Simon Glass
Hi Tom, On 30 July 2014 16:38, Tom Rini wrote: > On Wed, Jul 30, 2014 at 03:49:46AM -0600, Simon Glass wrote: > >> Change the Exynos serial driver to work with driver model and switch over >> all Exynos5 boards to use it. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v3: >> - Avoid re

Re: [U-Boot] [PATCH v3 09/16] dm: exynos: Move serial to driver model

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 03:49:46AM -0600, Simon Glass wrote: > Change the Exynos serial driver to work with driver model and switch over > all Exynos5 boards to use it. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Avoid reordering functions Yay. > @@ -108,14 +91,11 @@ static in

Re: [U-Boot] [PATCH v8 07/13] tools: add genboardscfg.py

2014-07-30 Thread Simon Glass
Hi Tom, On 30 July 2014 16:22, Tom Rini wrote: > On Wed, Jul 30, 2014 at 04:12:09PM +0100, Simon Glass wrote: >> Hi Tom, >> >> On 30 July 2014 15:07, Tom Rini wrote: >> > On Wed, Jul 30, 2014 at 02:08:19PM +0900, Masahiro Yamada wrote: >> > >> >> Now the primary data for each board is in Kconfig

Re: [U-Boot] [PATCH v5 05/11] exynos: dts: Adjust device tree files for U-Boot

2014-07-30 Thread Simon Glass
Hi Tom, On 28 July 2014 21:27, Tom Rini wrote: > On Mon, Jul 28, 2014 at 06:11:32AM -0600, Simon Glass wrote: > >> The pinctrl bindings used by Linux are an incomplete description of the >> hardware. It is possible in most cases to determine the register address >> of each, but not in all cases.

[U-Boot] [PATCH] test mail

2014-07-30 Thread Masahiro Yamada
Sorry for noise. --- README | 1 + 1 file changed, 1 insertion(+) diff --git a/README b/README index f704eb3..b634ee0 100644 --- a/README +++ b/README @@ -6406,3 +6406,4 @@ Notes: u-boot mailing list. Bigger patches will be moderated. If they are reasonable and not too big, they will be ack

Re: [U-Boot] [PATCH v8 07/13] tools: add genboardscfg.py

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 04:12:09PM +0100, Simon Glass wrote: > Hi Tom, > > On 30 July 2014 15:07, Tom Rini wrote: > > On Wed, Jul 30, 2014 at 02:08:19PM +0900, Masahiro Yamada wrote: > > > >> Now the primary data for each board is in Kconfig, defconfig and > >> MAINTAINERS. > >> > >> It is true b

Re: [U-Boot] Driver Model and DTS Parsing

2014-07-30 Thread Simon Glass
Hi Stephen, On 12 June 2014 23:31, Stephen Warren wrote: > On 06/11/2014 10:55 PM, Simon Glass wrote: > ... >> Tegra doesn't have much in the device tree for GPIOs - it seems to be >> all hard-coded in the software. So I ended up with the code you saw >> which just iterates over a known number of

Re: [U-Boot] [PATCH v8 07/13] tools: add genboardscfg.py

2014-07-30 Thread Simon Glass
Hi Tom, On 30 July 2014 15:07, Tom Rini wrote: > On Wed, Jul 30, 2014 at 02:08:19PM +0900, Masahiro Yamada wrote: > >> Now the primary data for each board is in Kconfig, defconfig and >> MAINTAINERS. >> >> It is true boards.cfg is needed for MAKEALL and buildman and might be >> useful to brouse a

[U-Boot] [PATCH] tools/genboardscfg.py: Don't rely on subprocess.check_output

2014-07-30 Thread Tom Rini
The function subprocess.check_output() only exists in Python 2.7 and later (and there are long term supported distributions that ship with 2.6.x). Replace this with a call to subprocess.Popen() and then checking output via communicate() Signed-off-by: Tom Rini --- tools/genboardscfg.py |9 +

Re: [U-Boot] [PATCH v8 07/13] tools: add genboardscfg.py

2014-07-30 Thread Tom Rini
On Wed, Jul 30, 2014 at 02:08:19PM +0900, Masahiro Yamada wrote: > Now the primary data for each board is in Kconfig, defconfig and > MAINTAINERS. > > It is true boards.cfg is needed for MAKEALL and buildman and might be > useful to brouse all the supported boards in a single database. > But it w

Re: [U-Boot] Can not boot Linux with new FIT image on ARMv8

2014-07-30 Thread Simon Glass
Hi, On 29 July 2014 10:04, Duxiaoqiang wrote: > Hi All: > > I am trying to make use of verified Uboot on ARMv8 FVP platform. > I setup environment followed the below procedure, but failed after entered > Linux kernel. > There was nothing prompt information except "Starting kernel". > Operation p

Re: [U-Boot] [PATCH v1 3/4] get_maintainer.pl: adapt to U-Boot tree

2014-07-30 Thread Simon Glass
On 26 July 2014 19:54, Daniel Schwierzeck wrote: > Switch core maintainer to Tom Rini. Adapt directory layout for > git tree detection. > > Signed-off-by: Daniel Schwierzeck Tested with some local patches and patman. Acked-by: Simon Glass Tested-by: Simon Glass ___

Re: [U-Boot] [PATCH v1 2/4] get_maintainer.pl: import script from linux 3.15

2014-07-30 Thread Simon Glass
Hi Daniel, On 26 July 2014 19:54, Daniel Schwierzeck wrote: > Signed-off-by: Daniel Schwierzeck Can you please check this? I see differences between this script and the Linux v3.15 version (commit 1860e37). Regards, Simon ___ U-Boot mailing list U-Bo

Re: [U-Boot] [PATCH 3/3] test: ums: Add script for testing UMS gadget operation

2014-07-30 Thread Lukasz Majewski
Hi Stephen, > On 07/29/2014 07:45 AM, Lukasz Majewski wrote: > > This commit adds new test for UMS USB gadget to u-boot mainline > > tree. It it similar in operation to the one already available in > > test/dfu directory. > > Patches 1 and 2, > Acked-by: Stephen Warren > > For this patch, I won

[U-Boot] [U-boot] Origen board boot failed with 2014.07 source code

2014-07-30 Thread TigerLiu
Hi, singh: I have an Origen(Cortex-A9 Dual Core, Exynos 4210) development board.(InSignal produced) I followed below steps to verify the latest u-boot release code: 1. build uboot make origen_config make all then it will origen-spl.bin in spl dir. 2. run "dd" command to burn raw image

[U-Boot] [PATCH v7 02/12] exynos: pinmux: fix the gpio names for exynos4x12 mmc

2014-07-30 Thread Przemyslaw Marczak
This change fixes the bad gpio configuration for the exynos dwmmc. Signed-off-by: Przemyslaw Marczak Cc: Beomho Seo Cc: Minkyu Kang Cc: Jaehoon Chung --- arch/arm/cpu/armv7/exynos/pinmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/exynos/pinmux

[U-Boot] [PATCH v7 04/12] board:samsung: check the boot device and init the right mmc driver.

2014-07-30 Thread Przemyslaw Marczak
It is possible to boot device using a micro SD or eMMC slots. In this situation, boot device should be registered as a block device 0 in the MMC framework, because CONFIG_SYS_MMC_ENV_DEV is usually set to "0" in the most config cases. Signed-off-by: Przemyslaw Marczak --- Changes V3: - separate t

[U-Boot] [PATCH v7 11/12] odroid: add odroid U3/X2 device tree description

2014-07-30 Thread Przemyslaw Marczak
This is a standard description for Odroid boards. Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Tom Rini --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/exynos4412-odroid.dts | 70 ++ 2 files changed, 72 insertions(+), 1 deletion(-) cre

[U-Boot] [PATCH v7 10/12] odroid: add board file for Odroid X2/U3 based on Samsung Exynos4412

2014-07-30 Thread Przemyslaw Marczak
This board file supports standard features of Odroid X2 and U3 boards: - Exynos4412 core clock set to 1000MHz and MPLL peripherial clock set to 800MHz, - MAX77686 power regulator, - USB PHY, - enable XCL205 - power for board peripherials - check board type: U3 or X2. - enable Odroid U3 FAN cooler

[U-Boot] [PATCH v7 12/12] odroid: add odroid_config

2014-07-30 Thread Przemyslaw Marczak
This config is valid for two devices: - Odroid X2, - Odroid U3. Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Tom Rini --- Changes v2: - odroid config: add CONFIG_DFU_ALT_BOOTLOADER - odroid config: change name of CONFIG_DFU_BOOT_ALT_* to CONFIG_DFU_ALT_BOOT_* Changes v3: - odroid.h:

[U-Boot] [PATCH v7 08/12] samsung: board: enable support of multiple board types

2014-07-30 Thread Przemyslaw Marczak
This change adds declaration of functions: - set_board_type() - called at board_early_init_f() - get_board_type() - called at checkboard() For supporting multiple board types in a one config - it is welcome to display the current board model. This is what get_board_type() should return. Signed-of

[U-Boot] [PATCH v7 05/12] samsung: misc: add function for setting $dfu_alt_info

2014-07-30 Thread Przemyslaw Marczak
This change introduces new common function: - set_dfu_alt_info() - put dfu system and bootloader setting into $dfu_alt_info. functions declaration: - char *get_dfu_alt_system(void) - char *get_dfu_alt_boot(void) - void set_dfu_alt_info(void) and new config: - CONFIG_SET_DFU_A

[U-Boot] [PATCH v7 09/12] samsung: misc: use board specific functions to set env board info

2014-07-30 Thread Przemyslaw Marczak
This change adds setup of environmental board info using get_board_name() and get_board_type() functions for config CONFIG_BOARD_TYPES. This is useful in case of running many boards with just one config. Signed-off-by: Przemyslaw Marczak Cc: Piotr Wilczek Cc: Minkyu Kang --- Changes v2: - set

[U-Boot] [PATCH v7 07/12] arm:reset: call the reset_misc() before the cpu reset

2014-07-30 Thread Przemyslaw Marczak
On an Odroid U3 board, the SOC is unable to reset the eMMC card in the DWMMC mode by the cpu software reset. Manual reset of the card by switching proper gpio pin - fixes this issue. Such solution needs to add a call to pre reset function. This is done by the reset_misc() function, which is called

[U-Boot] [PATCH v7 06/12] samsung:board: misc_init_r: call set_dfu_alt_info()

2014-07-30 Thread Przemyslaw Marczak
This change enable automatic setting of dfu alt info on every boot. This is useful in case of booting one u-boot binary from multiple media. Signed-off-by: Przemyslaw Marczak --- board/samsung/common/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/samsung/common/board.c b/bo

[U-Boot] [PATCH v7 01/12] samsung: misc: fix soc revision setting in the set_board_info()

2014-07-30 Thread Przemyslaw Marczak
The byte order of soc revision was inverted, now it is fixed. Signed-off-by: Przemyslaw Marczak Cc: Piotr Wilczek Cc: Minkyu Kang --- board/samsung/common/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c in

[U-Boot] [PATCH v7 03/12] arch:exynos: boot mode: add get_boot_mode(), code cleanup

2014-07-30 Thread Przemyslaw Marczak
This patch introduces code clean-up for exynos boot mode check. It includes: - removal of typedef: boot_mode - move the boot mode enum to arch-exynos/power.h - add bootmode for sequence: eMMC 4.4 ch4 / SD ch2 - add new function: get_boot_mode() for OM[5:1] pin check - update spl boot code Signed-o

[U-Boot] [PATCH v7 00/12] Add support to Odroid U3/X2

2014-07-30 Thread Przemyslaw Marczak
This patch set introduces changes to common Samsung code as a preparation of new board support: - boot device check - code cleanup - automatic init order of mmc drivers - automatic setting of dfu entities which depends on boot device - pre reset function call for board own implementation - setting

Re: [U-Boot] Please fix warning of Exynos

2014-07-30 Thread Jaehoon Chung
Hi, Masahiro. Thanks for pointing out. I will check it. Best Regards, Jaehoon Chung On 07/30/2014 06:59 PM, Masahiro Yamada wrote: > Hi, Samsung developers, > > > I notice the following warning when building Exynos family: > > > > arch/arm/cpu/armv7/exynos/clock.c: In function 'clock_get_pe

[U-Boot] [PATCH] drivers: net: remove dead drivers

2014-07-30 Thread Masahiro Yamada
The following configs are not defined at all: - CONFIG_FTMAC110 - CONFIG_INCA_IP_SWITCH - CONFIG_PBL2800_ETHER - CONFIG_PHY_ICPLUS Signed-off-by: Masahiro Yamada --- drivers/net/Makefile | 3 - drivers/net/ftmac110.c| 480 -- drivers/n

[U-Boot] [PATCH] drivers: rtc: remove dead drivers

2014-07-30 Thread Masahiro Yamada
The following configs are not defined at all: - CONFIG_RTC_DS1388 - CONFIG_RTC_ISL1208 - CONFIG_RTC_MX27 - CONFIG_RTC_PL031 - CONFIG_RTC_RS5C372A - CONFIG_SYS_DS1388_TCR_VAL Signed-off-by: Masahiro Yamada --- README| 1 - drivers/rtc/Makefile | 5 - drivers/rtc/ds133

[U-Boot] [PATCH v2 2/2] env_mmc: support env partition setup in runtime

2014-07-30 Thread Dmitry Lifshitz
Add callback with __weak annotation to allow setup of environment partition number in runtime from a board file. Propagate mmc_switch_part() return value into init_mmc_for_env() instead of -1 in case of failure. Signed-off-by: Dmitry Lifshitz Signed-off-by: Igor Grinberg --- Changes in v2:

[U-Boot] [PATCH 1/2] env_mmc: add mmc_get_env_addr() prototype

2014-07-30 Thread Dmitry Lifshitz
Add missing mmc_get_env_addr() prototype in environment.h Signed-off-by: Dmitry Lifshitz --- include/environment.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/environment.h b/include/environment.h index 08679ae..d7a1adf 100644 --- a/include/environment.h

[U-Boot] [PATCH] omap: clean-up dead configs

2014-07-30 Thread Masahiro Yamada
The following configs are not defined at all. - CONFIG_OMAP1510 - CONFIG_OMAP_1510P1 - CONFIG_OMAP_SX1 - CONFIG_OMAP3_DMA - CONFIG_OMAP3_ZOOM2 - CONFIG_OMAP_INNOVATOR Signed-off-by: Masahiro Yamada Cc: Tom Rini --- drivers/dma/Makefile | 1 - drivers/dma/omap3_dma.c

  1   2   >