[U-Boot] [GIT PULL V2] Please pull u-boot-mmc master

2017-07-31 Thread Jaehoon Chung
Dear Tom, Could you pull these patches into u-boot/master? (Have tested the buildman.) Changelog on V2: - Drop the Jean-Jacques's patches. After fixing it, will apply. The following changes since commit 6364a5d4bd55beeedc11171419acd0bdff17a599: Prepare v2017.09-rc1 (2017-07-31 20:37:25

Re: [U-Boot] [PATCH v2 07/40] dm: usb: Adjust the 'usb' command to use blk_common_cmd()

2017-07-31 Thread Bin Meng
On Sun, Jul 30, 2017 at 1:34 AM, Simon Glass wrote: > Instead of having separate code in the 'usb' command, adjust it to use > the common function. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > cmd/usb.c | 111 >

Re: [U-Boot] [PATCH v2 06/40] dm: ide: Adjust the 'ide' command to use blk_common_cmd()

2017-07-31 Thread Bin Meng
On Sun, Jul 30, 2017 at 1:34 AM, Simon Glass wrote: > Instead of having separate code in the 'ide' command, adjust it to use > the common function. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > cmd/ide.c | 107 >

Re: [U-Boot] [PATCH v2 05/40] dm: scsi: Adjust the 'scsi' command to use blk_common_cmd()

2017-07-31 Thread Bin Meng
On Sun, Jul 30, 2017 at 1:34 AM, Simon Glass wrote: > Instead of having separate code in the 'scsi' command, adjust it to use > the common function. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > cmd/scsi.c | 79 >

Re: [U-Boot] [PATCH v2 04/40] dm: sata: Adjust the 'sata' command to use blk_common_cmd()

2017-07-31 Thread Bin Meng
On Sun, Jul 30, 2017 at 1:34 AM, Simon Glass wrote: > Instead of having separate code in the 'sata' command, adjust it to use > the common function. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > cmd/sata.c | 83 >

Re: [U-Boot] [PATCH v2 03/40] dm: blk: Add a generic function for block device commands

2017-07-31 Thread Bin Meng
Hi Simon, On Sun, Jul 30, 2017 at 1:34 AM, Simon Glass wrote: > Most block devices provide a command (e.g. 'sata', 'scsi', 'ide') and > these commands generally do the same thing. This makes it harder to > maintain this code and keep it consistent. > > We now have a block

Re: [U-Boot] [PATCH v2 2/3] regulator: pbias: Add PBIAS regulator for proper voltage switching on MMC1

2017-07-31 Thread Jaehoon Chung
Dear JJ, On 07/19/2017 10:52 PM, Jean-Jacques Hiblot wrote: > In the TI SOCs a PBIAS cell exists to provide a bias voltage to the MMC1 > IO cells. Without this bias voltage these I/O cells can not function > properly. The PBIAS cell is controlled by software. > > Signed-off-by: Jean-Jacques

[U-Boot] [PATCH] mtd/spi: Add MT35XU512ABA1G12 NOR flash support

2017-07-31 Thread Yogesh Gaur
Add MT35XU512ABA1G12 parameters to NOR flash parameters array. Since the manufactory ID is changed to 0x2C, add it for micron and using it for relevant settings. The MT35XU512ABA1G12 only supports 1 bit mode and 8 bits. It can't support dual and quad. Supports subsector erase with 4KB

Re: [U-Boot] [GIT PULL] Please pull u-boot-mmc master

2017-07-31 Thread Jaehoon Chung
Dear Tom, On 07/31/2017 08:27 PM, Tom Rini wrote: > On Mon, Jul 31, 2017 at 11:59:07AM +0900, Jaehoon Chung wrote: > >> Dear Tom, >> >> Could you pull these patches into u-boot/master? >> >> The following changes since commit 55f228b07e2d84938a88737445441e736de41340: >> >> x86: minnowmax:

[U-Boot] [PATCH] rockchip: rk3399-firefly: update gmac parameter

2017-07-31 Thread Kever Yang
Update the tx_deday and rx_delay to match the timing for rk3399-firefly board to improve the stability of gmac data transfer. Signed-off-by: Kever Yang --- arch/arm/dts/rk3399-firefly.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [U-Boot, v2, 07/14] Convert CONFIG_CMD_REGINFO to Kconfig

2017-07-31 Thread Tom Rini
On Mon, Jul 31, 2017 at 06:13:03PM +0200, Christophe LEROY wrote: > > > Le 25/07/2017 à 02:44, Tom Rini a écrit : > >On Thu, Jul 13, 2017 at 03:09:56PM +0200, Christophe Leroy wrote: > > > >>This patch converts CONFIG_CMD_REGINFO to Kconfig > >> > >>Signed-off-by: Christophe Leroy

Re: [U-Boot] [PATCH v3 50/66] rockchip: rk3368: add DRAM controller driver with DRAM initialisation

2017-07-31 Thread Andy Yan
add Tony from our dram team, maybe he has some ideas for this patch. On 2017年07月29日 03:22, Philipp Tomsich wrote: This adds a DRAM controller driver for the RK3368 and places it in drivers/ram/rockchip (where the other DM-enabled DRAM controller drivers for rockchip devices should also be

Re: [U-Boot] [U-Boot, 2/3] console: Unify the check for a serial console

2017-07-31 Thread Tom Rini
On Thu, Jul 27, 2017 at 09:31:03AM -0600, Simon Glass wrote: > Put the check for whether a console is a serial device in a function so > that we can share the code in the two places that use it. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] env: Migrate CONFIG_ENV_IS_IN_FAT options to Kconfig

2017-07-31 Thread Tom Rini
On Wed, Jul 26, 2017 at 09:48:00PM -0400, Tom Rini wrote: > We rename the various FAT_ENV_xxx options to CONFIG_ENV_FAT_xxx so that > they can be modified via Kconfig. Migrate all existing users to the new > values. > > Signed-off-by: Tom Rini Applied to u-boot/master,

Re: [U-Boot] [U-Boot, 3/3] dm: console: Check for serial devices properly

2017-07-31 Thread Tom Rini
On Thu, Jul 27, 2017 at 09:31:04AM -0600, Simon Glass wrote: > With driver model the serial device is often not called "serial". Mark > driver-model stdio devices so that they can be detected and we can look up > the uclass. This is a more reliable way of finding out whether the console > is

[U-Boot] [ANN] U-Boot v2017.09-rc1 released

2017-07-31 Thread Tom Rini
Hey all, So it's release day and I've put up v2017.09-rc1. The merge window is now closed and I've updated git and the tarballs are also up now. I think my patch queue is in reasonable shape currently, but I need to pick up some of the environment stuff Simon has been doing after it's reviewed

Re: [U-Boot] [U-Boot,PATCHv2] configs: Migrate CMD_NAND*

2017-07-31 Thread Tom Rini
On Fri, Jul 28, 2017 at 09:31:42PM -0400, Tom Rini wrote: > Migrate all remaining instances of CMD_NAND, CMD_NAND_TRIMFFS > CMD_NAND_LOCK_UNLOCK and CMD_NAND_TORTURE from the headers into the > defconfig files. > > Tested-by: Adam Ford > Signed-off-by: Tom Rini

Re: [U-Boot] arm: mach-omap2: Align image address before cache operations

2017-07-31 Thread Tom Rini
On Wed, Jul 26, 2017 at 02:53:19PM -0500, Andrew F. Davis wrote: > The image address passed to secure_boot_verify_image() may not be > cacheline aligned, round the address down to the nearest cacheline. > > Signed-off-by: Andrew F. Davis > Reviewed-by: Lokesh Vutla

Re: [U-Boot] [U-Boot, 2/3] am335x_hs_evm: Disable CONFIG_SPL_ENV_SUPPORT

2017-07-31 Thread Tom Rini
On Wed, Jul 26, 2017 at 01:11:36PM -0400, Tom Rini wrote: > The main uses of CONFIG_SPL_ENV_SUPPORT are for network support and for > disabling "Falcon Mode" support at run-time. As this build enables > neither, remove this feature. > > Cc: Andrew F. Davis > Signed-off-by: Tom

Re: [U-Boot] [U-Boot, 3/3] ti: Default to ENV_IS_IN_FAT if MMC_OMAP_HS

2017-07-31 Thread Tom Rini
On Wed, Jul 26, 2017 at 01:11:37PM -0400, Tom Rini wrote: > When we have MMC available we assume that we want to put the env as a > file on FAT. > > Cc: Lokesh Vutla > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] Remove unused CONFIG_TWL4030_PWM

2017-07-31 Thread Tom Rini
On Wed, Jul 26, 2017 at 10:04:40AM -0500, Adam Ford wrote: > CONFIG_TWL4030_PWM is not being used by any source, so let's remove the > #define > and the whitelist entry > > Signed-off-by: Adam Ford > Reviewed-by: Tom Rini > > diff --git

Re: [U-Boot] [U-Boot, 1/1] serial: stm32x7: Convert CONFIG_STM32X7_SERIAL to Kconfig

2017-07-31 Thread Tom Rini
On Wed, Jul 26, 2017 at 03:48:39PM +0200, Patrice Chotard wrote: > From: Patrice Chotard > > Add CONFIG_STM32X7_SERIAL as a Kconfig option. > > Signed-off-by: Patrice Chotard > Reviewed-by: Vikas Manocha Applied to

Re: [U-Boot] dm: Kconfig: fix typo in help for SPL_PINCTRL

2017-07-31 Thread Tom Rini
On Wed, Jul 26, 2017 at 12:27:42PM +0200, Philipp Tomsich wrote: > Changes 'controlloers' to 'controllers' in the help-text for > SPL_PINCTRL. > > Signed-off-by: Philipp Tomsich Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [PATCH] mkimage: check environment for dtc binary location

2017-07-31 Thread Hauke Mehrtens
On 07/31/2017 04:45 PM, Simon Glass wrote: > Hi, > > On 19 July 2017 at 14:30, Hauke Mehrtens wrote: >> Currently mkimage assumes the dtc binary is in the path and fails >> otherwise. This patch makes it check the DTC environment variable first >> for the dtc binary and then

Re: [U-Boot] [PATCH 1/1] armv7m: mpu_config add missing break

2017-07-31 Thread Vikas Manocha
Hi, On 07/30/2017 11:34 AM, Heinrich Schuchardt wrote: > For DEVICE_NON_SHARED the newly assigned value of attr > is overwritten due to a missing break. > > The problem was indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt reviewed-by : Vikas Manocha

Re: [U-Boot] compilation failure on Powerpc with SPL

2017-07-31 Thread York Sun
On 07/26/2017 12:45 AM, Ashish Kumar wrote: > Hello York, > > Thanks for the help. Issue is not observed with toolchain gcc-4.9, > > Could you please help understand why this is compiler dependent? > Ashish, To understand your issue, please post the complete log for the error. We need to see

Re: [U-Boot] [PATCH v3 2/2] MIPS: Stop building position independent code

2017-07-31 Thread Paul Burton
On Monday, 31 July 2017 03:52:57 PDT Daniel Schwierzeck wrote: > 2017-07-30 18:04 GMT+02:00 Álvaro Fernández Rojas : > > El 30/07/2017 a las 16:05, Daniel Schwierzeck escribió: > >> Am 30.07.2017 um 14:27 schrieb Álvaro Fernández Rojas: > >>> I've been a bit busy lately and I

Re: [U-Boot] [PATCH] board/freescale: Share qbman init between archs

2017-07-31 Thread York Sun
On 05/12/2017 01:30 PM, Roy Pledge wrote: > From: Ahmed Mansour > > This patch adds changes necessary to move functionality present in > PowerPC folders with ARM architectures that have DPAA1 QBMan hardware > > - Created new board/freescale/common/portals.c to house

Re: [U-Boot] [U-Boot, v2, 07/14] Convert CONFIG_CMD_REGINFO to Kconfig

2017-07-31 Thread Christophe LEROY
Le 25/07/2017 à 02:44, Tom Rini a écrit : On Thu, Jul 13, 2017 at 03:09:56PM +0200, Christophe Leroy wrote: This patch converts CONFIG_CMD_REGINFO to Kconfig Signed-off-by: Christophe Leroy Applied to u-boot/master, thanks! Hi Tom, It looks like this patch

[U-Boot] [PATCH 2/3] ARM: k2g: Add FIT image handler for PMMC firmware

2017-07-31 Thread Andrew F. Davis
The PMMC firmware should be bundled into a FIT image on HS devices to allow authentication/decryption, add a handler to process this PMMC firmware. Signed-off-by: Andrew F. Davis --- board/ti/ks2_evm/board_k2g.c | 21 + 1 file changed, 21 insertions(+) diff

[U-Boot] [PATCH 3/3] configs: k2g_evm: Remove PMMC loading environment commands

2017-07-31 Thread Andrew F. Davis
The PMMC firmware should be bundled with the FIT image for HS devices, remove the steps that load and install this firmware outside of FIT. Signed-off-by: Andrew F. Davis --- include/configs/k2g_evm.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/k2g_evm.h

[U-Boot] [PATCH 1/3] image: Add TI PMMC image type

2017-07-31 Thread Andrew F. Davis
Add a new image type representing TI Power Management Micro-Controller (PMMC) Firmware image type. Signed-off-by: Andrew F. Davis --- common/image.c | 1 + include/image.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/image.c b/common/image.c index

Re: [U-Boot] [PATCH 1/3] test/py: Handle the banner being printed after relocation

2017-07-31 Thread Stephen Warren
On 07/28/2017 09:57 PM, Simon Glass wrote: Hi Stephen, On 27 July 2017 at 15:27, Stephen Warren wrote: On 07/27/2017 09:31 AM, Simon Glass wrote: If CONFIG_DISPLAY_BOARDINFO_LATE is enabled, U-Boot displays the banner again after relocation so that it is visible on

Re: [U-Boot] [PULL] efi patch queue 2017-07-29

2017-07-31 Thread Tom Rini
On Sat, Jul 29, 2017 at 12:31:02AM +0200, Alexander Graf wrote: > Hi Tom, > > This is my current patch queue for efi. Please pull. > > Alex > > > The following changes since commit 8d3a25685e4aac7070365a2b3c53c2c81b27930f: > > Merge git://git.denx.de/u-boot-dm (2017-07-11 20:28:46 -0400)

Re: [U-Boot] [PATCH] efi_loader: Fix warning in efi_gop

2017-07-31 Thread Tom Rini
On Mon, Jul 31, 2017 at 09:15:57AM +0200, Alexander Graf wrote: > Commit ca9193d2b16 ("efi_loader: gop: fixes for CONFIG_DM_VIDEO without > CONFIG_LCD") dropped the explicit (void*) cast for fb_base in efi gop support > for CONFIG_LCD without DM. This patch adds it back, eliminating the now >

Re: [U-Boot] [RFC 1/1] m68k: mfc5227x: do not rely on uninitialized stack values

2017-07-31 Thread Angelo Dureghello
Hi Heinrich, thanks for the patch On 30/07/2017 20:59, Heinrich Schuchardt wrote: The behavior get_clocks depends on the unitialized value of bootmode. By setting it to zero we get a defined behavior and can get rid of superfluos coding. The problem was indicated by cppcheck. Signed-off-by:

[U-Boot] [RFC PATCH 1/1] dm: core: add clocks node scan

2017-07-31 Thread patrice.chotard
From: Patrice Chotard Currently, all fixed-clock declared in "clocks" node in device tree can be binded by clk_fixed_rate.c driver only if the "simple-bus" compatible string is set inside "clocks" node. This constraint has been invoked here [1]. This patch offers a

[U-Boot] [PATCH v4 23/29] env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr()

2017-07-31 Thread Simon Glass
Rename this function for consistency with env_set(). Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to rename eth_setenv_enetaddr() Changes in v3: None Changes in v2: None arch/arm/mach-davinci/misc.c | 2 +- arch/arm/mach-omap2/utils.c

[U-Boot] [PATCH v4 20/29] env: Drop saveenv() in favour of env_save()

2017-07-31 Thread Simon Glass
Use the env_save() function directly now that there is only one implementation of saveenv(). Signed-off-by: Simon Glass Reviewed-by: Wolfgang Denk Reviewed-by: Tom Rini --- Changes in v4: - Add changes for edison also Changes in v3: None

[U-Boot] [PATCH v4 13/29] env: Switch over to use environment location drivers

2017-07-31 Thread Simon Glass
Move over to use a the master implementation of the location drivers, with each method calling out to the appropriate driver. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: - Adjust implementation of env_get_char_spec() to avoid

[U-Boot] [PATCH v4 09/29] env: Add an enum for environment state

2017-07-31 Thread Simon Glass
At present we have three states for the environment, numbered 0, 1 and 2. Add an enum to record this to avoid open-coded values. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 07/29] env: common: Drop env_get_char_init()

2017-07-31 Thread Simon Glass
This function does nothing but call env_get_char_spec(). Drop it and adjust its only caller. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None env/common.c | 7 +-- 1 file changed, 1

[U-Boot] [PATCH v4 11/29] env: Create a location driver for each location

2017-07-31 Thread Simon Glass
Set up a location driver for each supported environment location. At present this just points to the global functions and is not used. A later patch will switch this over to use private functions in each driver. There are several special cases here in various drivers to handle peculiarities of

[U-Boot] [PATCH v4 16/29] env: Drop unused env_ptr variables

2017-07-31 Thread Simon Glass
This variable is declared as a global in most environment location drivers. But it is not used outside the drivers and most of the declarations are unnecessary. Also some drivers call free() on env_ptr which seems wrong since it is not in the heap. Drop the variable where possible, and all calls

[U-Boot] [PATCH v4 18/29] env: Drop env_get_char_spec()

2017-07-31 Thread Simon Glass
We only have a single implementation of this function now and it is called env_get_char(). Drop the old function and the weak version. Reviewed-by: Tom Rini Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 04/29] env: common: Make env_get_addr/get_char_memory() static

2017-07-31 Thread Simon Glass
These functions are not used outside this file. Make them static and order them to avoid forward declarations. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None env/common.c | 18

[U-Boot] [PATCH v4 27/29] env: Rename some other getenv()-related functions

2017-07-31 Thread Simon Glass
We are now using an env_ prefix for environment functions. Rename these other functions as well, for consistency: getenv_vlan() getenv_bootm_size() getenv_bootm_low() getenv_bootm_mapsize() env_get_default() Suggested-by: Wolfgang Denk Signed-off-by: Simon Glass

[U-Boot] [PATCH v4 10/29] env: Rename nand env_location to nand_env_location

2017-07-31 Thread Simon Glass
We want to use this name for all environment drivers. Update the nand driver to use a more specific name. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None env/nand.c | 6 +++--- 1 file

[U-Boot] [PATCH v4 06/29] env: common: Factor out the common env_valid check

2017-07-31 Thread Simon Glass
The check for gd->env_valid is used in both the 'if' and 'else' part of env_get_char(). Move it into that function instead for simplicity. Drop that code from the two leaf functions. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None

[U-Boot] [PATCH v4 01/29] Makefile: Rename 'env' target to 'environ'

2017-07-31 Thread Simon Glass
This target stops us using 'env' as a subdirectory. It is not mentioned in the help so seems to be an internal target. Rename it. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None Makefile |

[U-Boot] [PATCH v4 26/29] env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr()

2017-07-31 Thread Simon Glass
Rename this function for consistency with env_get(). Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to rename eth_getenv_enetaddr() Changes in v3: None Changes in v2: None arch/arm/mach-davinci/misc.c| 2 +- arch/powerpc/cpu/mpc85xx/fdt.c | 2

[U-Boot] [PATCH v4 19/29] env: Drop env_relocate_spec() in favour of env_load()

2017-07-31 Thread Simon Glass
This is a strange name for a function that loads the environment. There is now only one implementation of this function, so use the new env_load() function directly instead. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes

[U-Boot] [PATCH v4 29/29] env: Adjust the load() method to return an error

2017-07-31 Thread Simon Glass
The load() methods have inconsistent behaviour on error. Some of them load an empty default environment. Some load an environment containing an error message. Others do nothing. As a step in the right direction, have the method return an error code. Then the caller could handle this itself in a

[U-Boot] [PATCH v4 25/29] env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()

2017-07-31 Thread Simon Glass
We are now using an env_ prefix for environment functions. Rename these for consistency. Also add function comments in common.h. Suggested-by: Wolfgang Denk Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: - Add new patch to

[U-Boot] [PATCH v4 15/29] env: Drop the env_name_spec global

2017-07-31 Thread Simon Glass
Add a name to the driver and use that instead of the global variable declared by each driver. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None cmd/nvedit.c | 4 +++-

[U-Boot] [PATCH v4 03/29] env: Move help from README to Kconfig

2017-07-31 Thread Simon Glass
The CONFIG_ENV_IS_IN_... options which have already been converted to Kconfig only have a small amount of help. Move the rest of it over from the README. (The v1 patch of this was nak'ed[1]. Please ignore this patch if not wanted) [1] http://patchwork.ozlabs.org/patch/794040/ Signed-off-by:

[U-Boot] [PATCH v4 08/29] env: common: Drop env_get_char_memory()

2017-07-31 Thread Simon Glass
This function is the same as env_get_char_spec() apart from dropping the brackets. Drop the brackets from env_get_char_spec() and use that instead of env_get_char_memory(). Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes

[U-Boot] [PATCH v4 17/29] env: Drop env_init_new()

2017-07-31 Thread Simon Glass
Now that env_init() is only defined once we can drop the env_init_new() name and just use env_init(). Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None env/env.c | 6 +- 1 file changed,

[U-Boot] [PATCH v4 14/29] env: Drop common init() functions

2017-07-31 Thread Simon Glass
Most of the init() implementations just use the default environment. Adjust env_init_new() to do this automatically, and drop the redundant code. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: - Fix incorrect setting of env_valid in

[U-Boot] [PATCH v4 00/29] env: Move environment code to use location drivers

2017-07-31 Thread Simon Glass
The environment code is ripe for improvement in various ways. It has lots of duplication and inconsistencies between how things work with different environment locations. It does not properly use Kconfig. Error checking and handling is patchy. This series makes a start at improving things: -

[U-Boot] [PATCH v4 05/29] env: common: Drop env_get_addr()

2017-07-31 Thread Simon Glass
This function is not used anywhere other than env_get_char(). Move the code into that function. Reviewed-by: Tom Rini Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None env/common.c | 11 +++ 1 file

[U-Boot] [PATCH v4 28/29] env: Adjust the get_char() method to return an int

2017-07-31 Thread Simon Glass
In principle this can fail, e.g. if the index is out of range. Adjust the driver signature to allow returning an error code. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None env/dataflash.c

[U-Boot] [PATCH v4 22/29] env: Rename common functions related to setenv()

2017-07-31 Thread Simon Glass
We are now using an env_ prefix for environment functions. Rename these commonly used functions, for consistency. Also add function comments in common.h. Suggested-by: Wolfgang Denk Signed-off-by: Simon Glass --- Changes in v4: - Split out changes to

[U-Boot] [PATCH v4 12/29] env: Add a new implementation of environment access

2017-07-31 Thread Simon Glass
We plan to move to a environment access via drivers for each location where the environment can be stored. Add an implementation for this. So far it is not used, but will be pressed into service in a future patch. Signed-off-by: Simon Glass --- Changes in v4: None Changes in

Re: [U-Boot] [PATCH 3/3] clk: zynqmp: Remove unused macros/variables

2017-07-31 Thread Simon Glass
On 20 July 2017 at 03:03, Michal Simek wrote: > These macros and one variable is not used anywhere that's why > it should be removed. they > > Signed-off-by: Michal Simek > --- > > drivers/clk/clk_zynqmp.c | 4 > 1 file changed, 4

[U-Boot] [PATCH v4 02/29] Move environment files from common/ to env/

2017-07-31 Thread Simon Glass
About a quarter of the files in common/ relate to the environment. It seems better to put these into their own subdirectory and remove the prefix. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2:

Re: [U-Boot] [PATCH 2/3] clk: zynqmp: Dont panic incase of mmio write/read failures

2017-07-31 Thread Simon Glass
On 20 July 2017 at 03:03, Michal Simek wrote: > From: Siva Durga Prasad Paladugu > > Dont panic incase of mmio write/read failures instead return > error and let the peripheral driver take care of clock get > and set failures. > >

Re: [U-Boot] [PATCH 10/14] dm: mmc: sunxi: Add support for driver model

2017-07-31 Thread Simon Glass
Hi Suneel, On 28 July 2017 at 15:34, Suneel Garapati wrote: > Hi Simon, > > > On Fri, Jul 28, 2017 at 11:44 AM, Simon Glass wrote: >> Hi Suneel, >> >> On 27 July 2017 at 23:03, Suneel Garapati wrote: >>> Hi Simon, >>> >>> I

Re: [U-Boot] [PATCH] arm64: zynqmp: Move dts zcu102 to zcu102-revA

2017-07-31 Thread Simon Glass
On 20 July 2017 at 04:42, Michal Simek wrote: > Not using board revision is causing confusion about which board is > supported and tested. Mark dts files exactly with board revision which > was tested. When new board revision arives it can be symlink if SW view > is the

Re: [U-Boot] [PATCH 1/3] clk: zynqmp: Add support for CCF driver

2017-07-31 Thread Simon Glass
Hi Michal, On 20 July 2017 at 03:03, Michal Simek wrote: > From: Siva Durga Prasad Paladugu > > Add support for CCF, this CCF reads the ref clocks > from dt and checks all the required clock control > registers for its source , divisors

Re: [U-Boot] [PATCH] mkimage: check environment for dtc binary location

2017-07-31 Thread Simon Glass
Hi, On 19 July 2017 at 14:30, Hauke Mehrtens wrote: > Currently mkimage assumes the dtc binary is in the path and fails > otherwise. This patch makes it check the DTC environment variable first > for the dtc binary and then fall back to the default path. This makes > it

Re: [U-Boot] [PATCH 2/3] am335x_hs_evm: Disable CONFIG_SPL_ENV_SUPPORT

2017-07-31 Thread Simon Glass
On 26 July 2017 at 20:46, Lokesh Vutla wrote: > > > On 7/26/2017 10:41 PM, Tom Rini wrote: >> The main uses of CONFIG_SPL_ENV_SUPPORT are for network support and for >> disabling "Falcon Mode" support at run-time. As this build enables >> neither, remove this feature. >> >>

Re: [U-Boot] [PATCH 4/5] arm: socfpga: Add intermediate driver between flash and FPGA manager

2017-07-31 Thread Marek Vasut
On 07/31/2017 12:50 PM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Configuration flip-flop driver is mainly used for handling the FPGA program > operation where the FPGA image loading from the flash into FPGA manager. > > Signed-off-by: Tien Fong Chee

Re: [U-Boot] [PATCH 3/5] configs: socfpga: Add config for RBF loading from FAT fs

2017-07-31 Thread Marek Vasut
On 07/31/2017 12:50 PM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > This config enable the mechanism for loading RBF file from FAT fs into > FPGA manager. > > Signed-off-by: Tien Fong Chee > --- > arch/arm/mach-socfpga/Kconfig

Re: [U-Boot] [PATCH 1/5] arm: socfpga: Add checking function on searching boot device

2017-07-31 Thread Marek Vasut
On 07/31/2017 12:50 PM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Function for checking boot device type, which is required for locating > flash where U-boot image, FPGA design are stored. > > Signed-off-by: Tien Fong Chee >

Re: [U-Boot] [PATCH 0/2] misc: i2c_eeprom: Add compatibles

2017-07-31 Thread Tom Rini
On Mon, Jul 31, 2017 at 11:25:29AM +0800, Wenyou Yang wrote: > Add the compatibles to support the I2C EEPROM 24AA02E48 and AT24MAC402 > respectively. > - microchip,24aa02e48 > - atmel,24mac402 > > > Wenyou Yang (2): > misc: i2c_eeprom: Add compatible for 24AA02E48 > misc: i2c_eeprom: Add

[U-Boot] [PATCH] vsprintf.c: add wide string (%ls) support

2017-07-31 Thread Rob Clark
This is convenient for efi_loader which deals a lot with utf16. Signed-off-by: Rob Clark --- lib/vsprintf.c | 39 +-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index

Re: [U-Boot] [PATCH 1/2] sf: Add Macronix MX25U6435F device parameters

2017-07-31 Thread Bin Meng
Hi Jagan, On Mon, Jul 31, 2017 at 5:33 PM, Jagan Teki wrote: > On Sun, Jul 23, 2017 at 8:14 PM, Bin Meng wrote: >> This adds support for Macronix flash MX25U6435F (device ID 0xc22537). >> >> Signed-off-by: Bin Meng >> --- >> >>

Re: [U-Boot] [PATCH v3 2/2] MIPS: Stop building position independent code

2017-07-31 Thread Daniel Schwierzeck
2017-07-30 18:04 GMT+02:00 Álvaro Fernández Rojas : > > > El 30/07/2017 a las 16:05, Daniel Schwierzeck escribió: >> >> >> Am 30.07.2017 um 14:27 schrieb Álvaro Fernández Rojas: >>> I've been a bit busy lately and I couldn't test this until now, but I have >>> to say that this

[U-Boot] [PATCH 1/5] arm: socfpga: Add checking function on searching boot device

2017-07-31 Thread tien . fong . chee
From: Tien Fong Chee Function for checking boot device type, which is required for locating flash where U-boot image, FPGA design are stored. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/include/mach/misc.h | 19

[U-Boot] [PATCH 0/5] Add intermediate driver(cff driver) between flash & FPGA

2017-07-31 Thread tien . fong . chee
From: Tien Fong Chee This patchset adding intermediate driver called cff driver to support all the FPGA program operations between FPGA manager and flash. Tien Fong Chee (5): arm: socfpga: Add checking function on searching boot device arm: socfpga: Add checking

Re: [U-Boot] [PATCH 1/3] arm: socfpga: Remove unused FPGA feature from gen5 SPL

2017-07-31 Thread Chee, Tien Fong
On Jum, 2017-07-28 at 13:40 +0200, Marek Vasut wrote: > On 07/28/2017 01:35 PM, Chee, Tien Fong wrote: > > > > On Jum, 2017-07-28 at 09:52 +0200, Marek Vasut wrote: > > > > > > On 07/28/2017 07:16 AM, Chee, Tien Fong wrote: > > > > > > > > > > > > On Kha, 2017-07-27 at 11:37 +0200, Marek Vasut

Re: [U-Boot] [PATCH 1/2] sf: Add Macronix MX25U6435F device parameters

2017-07-31 Thread Jagan Teki
On Sun, Jul 23, 2017 at 8:14 PM, Bin Meng wrote: > This adds support for Macronix flash MX25U6435F (device ID 0xc22537). > > Signed-off-by: Bin Meng > --- > > drivers/mtd/spi/spi_flash_ids.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [U-Boot] [PATCH] usb: dwc2: Align size of invalidating dcache before starting DMA

2017-07-31 Thread Łukasz Majewski
Hi Seung-Woo, During using dwc2 usb gadget, if usb message size is too small, following cache misaligned warning is shown: CACHE: Misaligned operation at range [bfdbcb00, bfdbcb04] Align size of invalidating dcache before starting DMA to remove the warning. Signed-off-by: Seung-Woo Kim

Re: [U-Boot] [PATCH 1/1] ARM64: zynqmp: avoid out of buffer access

2017-07-31 Thread Michal Simek
On 30.7.2017 22:18, Heinrich Schuchardt wrote: > strncat(a, b, c) appends a maximum of c characters plus the 0 byte > to a. > > In board_init we first write 4 characters plus 0 byte to version. > So only ZYNQMP_VERSION_SIZE - 5 additional characters fit into > version. > > The problem was

Re: [U-Boot] [PATCH 1/1] ARM64: zynqmp: avoid out of buffer access

2017-07-31 Thread Michal Simek
On 30.7.2017 22:18, Heinrich Schuchardt wrote: > strncat(a, b, c) appends a maximum of c characters plus the 0 byte > to a. > > In board_init we first write 4 characters plus 0 byte to version. > So only ZYNQMP_VERSION_SIZE - 5 additional characters fit into > version. > > The problem was

[U-Boot] [PATCH] usb: dwc2: Align size of invalidating dcache before starting DMA

2017-07-31 Thread Seung-Woo Kim
During using dwc2 usb gadget, if usb message size is too small, following cache misaligned warning is shown: CACHE: Misaligned operation at range [bfdbcb00, bfdbcb04] Align size of invalidating dcache before starting DMA to remove the warning. Signed-off-by: Seung-Woo Kim

Re: [U-Boot] [PATCH 1/1] ARM64: zynqmp: avoid out of buffer access

2017-07-31 Thread Michal Simek
On 30.7.2017 22:18, Heinrich Schuchardt wrote: > strncat(a, b, c) appends a maximum of c characters plus the 0 byte > to a. > > In board_init we first write 4 characters plus 0 byte to version. > So only ZYNQMP_VERSION_SIZE - 5 additional characters fit into > version. > > The problem was

Re: [U-Boot] [PATCH 1/2] sf: Add Macronix MX25U6435F device parameters

2017-07-31 Thread Bin Meng
Hi Jagan, On Sun, Jul 23, 2017 at 10:44 PM, Bin Meng wrote: > This adds support for Macronix flash MX25U6435F (device ID 0xc22537). > > Signed-off-by: Bin Meng > --- > > drivers/mtd/spi/spi_flash_ids.c | 1 + > 1 file changed, 1 insertion(+) > > diff

Re: [U-Boot] [PATCH v3 0/8] sf: improve support of (Q)SPI flash memories

2017-07-31 Thread Yang, Wenyou
Hi, Do you have comments? Best Regards, Wenyou Yang On 2017/7/25 15:00, Wenyou Yang wrote: This series of patches are based and have been tested on the 'master' branch of the u-boot.git tree. Tests were passed with a sama5d2 xplained board which embeds both SPI and QSPI controllers. The

[U-Boot] [PATCH v2] clk: Kconfig: Add dependences of SPL_CLK

2017-07-31 Thread Wenyou Yang
The SPL_CLK config should depend on SPL && SPL_DM. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v2: - Add the Reviewed-by tag. drivers/clk/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH] efi_loader: Fix warning in efi_gop

2017-07-31 Thread Alexander Graf
Commit ca9193d2b16 ("efi_loader: gop: fixes for CONFIG_DM_VIDEO without CONFIG_LCD") dropped the explicit (void*) cast for fb_base in efi gop support for CONFIG_LCD without DM. This patch adds it back, eliminating the now occuring warning again Fixes: ca9193d2b16 ("efi_loader: gop: fixes for

[U-Boot] [PATCH v2 5/6] ARM: at91: Get the Chip ID of SAMA5D2 SiP

2017-07-31 Thread Wenyou Yang
From: Wenyou Yang The SAMA5D2 SiP(System in Package) has different Chip IDs in the CHIPID and CHIP_EXID registers. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 6/6] board: atmel: Add SAMA5D27 SOM1 EK board

2017-07-31 Thread Wenyou Yang
From: Wenyou Yang The SAMA5D27-SiP (System in Package) integrates the SAMA5D2 with 1Gbit DDR2-SDRAM in a single package. The SAMA5D27 SOM1 embeds a 64Mbit QSPI flash, KSZ8081 Phy and Mac-address EEPROM. Signed-off-by: Wenyou Yang --- Changes

[U-Boot] [PATCH v2 4/6] ARM: at91: mach: Add missing defines of MPDDRC

2017-07-31 Thread Wenyou Yang
Add missing defines of Multiport DDR-SDRAM Controller (MPDDRC). Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v2: None arch/arm/mach-at91/include/mach/atmel_mpddrc.h | 4 1 file changed, 4 insertions(+) diff --git

[U-Boot] [PATCH v2 2/6] ARM: at91: spl: Add mck function to lower rate while switching

2017-07-31 Thread Wenyou Yang
Refer to the commit 70f8c8316ad(PMC: add new mck function to lower rate while switching) from AT91Bootstrap. While switching to a lower clock source, we must switch the clock source first instead of last. Otherwise, we could end up with too high frequency on internal bus and peripherals. This

[U-Boot] [PATCH v2 1/6] ARM: at91: spl: Adjust switching to oscillator for SAMA5D2

2017-07-31 Thread Wenyou Yang
As said in 29.5.7 section of SAMA5D2 datasheet, before switching to the crystal oscillator, a check must be carried out to ensure that the oscillator is present and that its freqency is valid. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass ---

[U-Boot] [PATCH v2 3/6] ARM: at91: spl: Add boot device for boot from QSPI

2017-07-31 Thread Wenyou Yang
Add the boot device for booting from the QSPI flash. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v2: None arch/arm/mach-at91/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-at91/spl.c

[U-Boot] [PATCH v2 0/6] board: atmel: Add new board SAMA5D27-SOM1-EK board.

2017-07-31 Thread Wenyou Yang
The SAMA5D27-SOM1-EK board embeds a SAMA5D27 SOM1 module, which includes a SAMA5D27-SiP chip and QSPI flash, Phy and MAC EEPROM. The SAMA5D27 SiP integrates the SAMA5D2 with 1Gbit DDR2-SDRAM in a single package. It is based on 1./ [PATCH v2 0/8] sf: improve support of (Q)SPI flash memories

[U-Boot] [PATCH 4/7] board: sama5d3xek: Convert to support DM_VIDEO

2017-07-31 Thread Wenyou Yang
From: Wenyou Yang Convert the board to enable the driver model support for LCD/video. Signed-off-by: Wenyou Yang --- arch/arm/dts/sama5d36ek_cmp.dts| 1 + arch/arm/dts/sama5d3_lcd.dtsi | 21 +--

  1   2   >