Re: [U-Boot] [PATCH v2 3/3] sunxi: add "fel" boot target

2015-09-15 Thread Siarhei Siamashka
On Mon, 14 Sep 2015 15:15:30 +0200 Bernhard Nortmann wrote: > This patch makes use of the previous changes to add a new "fel" boot > target for sunxi boards. > > When booting via FEL, it's often desirable to work around the absence > of other (usable) boot devices - or to be able to override the

Re: [U-Boot] [PATCH v2 1/3] sunxi: (mksunxiboot) signature to indicate "sunxi" SPL variant

2015-09-15 Thread Siarhei Siamashka
On Mon, 14 Sep 2015 15:15:28 +0200 Bernhard Nortmann wrote: > This patch follows up on a discussion of ways to improve support > for the sunxi FEL ("USB boot") mechanism, especially with regard > to boot scripts, see: > https://groups.google.com/d/msg/linux-sunxi/wBEGUoLNRro/rHGq6nSYCQAJ > > The

Re: [U-Boot] [PATCH v2 2/3] sunxi: retrieve FEL-provided values to environment variables

2015-09-15 Thread Siarhei Siamashka
On Mon, 14 Sep 2015 15:15:29 +0200 Bernhard Nortmann wrote: > This patch extends the misc_init_r() function on sunxi boards > to test for the presence of a suitable "sunxi" SPL header. If > found, and the loader ("fel" utility) provided a non-zero value > for the boot.scr address, then the corres

[U-Boot] [PATCH] ARM: at91: sama5: add support for CONFIG_ENV_IS_IN_MMC

2015-09-15 Thread Josh Wu
If defined CONFIG_ENV_IS_IN_MMC, then u-boot environment is saved in mmc's raw sectors. Otherwise, u-boot environment is saved as a file: uboot.env. Signed-off-by: Josh Wu --- include/configs/at91-sama5_common.h | 8 1 file changed, 8 insertions(+) diff --git a/include/configs/at91-sa

[U-Boot] [PATCH] tools: gen_eth_addr: remove getpid() operation for the random seed

2015-09-15 Thread Josh Wu
As 'time(0) | getpid()' sometimes get same value. That depends on the value of getpid(). So that is not a expected behavior. We expect different value for the seed when when run it in many times. So this patch remove the getpid(), just use the time(0) as the seed. Signed-off-by: Josh Wu --- to

Re: [U-Boot] [PATCH v2 0/3] sunxi: support FEL-provided environment vars and "fel" boot target

2015-09-15 Thread Siarhei Siamashka
On Mon, 14 Sep 2015 16:12:25 +0200 Hans de Goede wrote: > Hi, > > On 14-09-15 15:15, Bernhard Nortmann wrote: > > This patch series builds upon > > http://lists.denx.de/pipermail/u-boot/2015-September/226515.html > > http://lists.denx.de/pipermail/u-boot/2015-September/226688.html > > > > v2 com

Re: [U-Boot] [PATCH] ARM: socfpga: Enable saveenv for SD/MMC

2015-09-15 Thread Marek Vasut
On Tuesday, September 15, 2015 at 11:48:53 PM, Dinh Nguyen wrote: > On 09/15/2015 03:22 PM, Marek Vasut wrote: > > On Tuesday, September 15, 2015 at 09:47:23 PM, > > dingu...@opensource.altera.com > > > > wrote: > >> From: Dinh Nguyen > >> > >> Enable the able to save the environment variables w

[U-Boot] [PATCH v2 4/4] dm: tpm: Every TPM drivers should depends on DM_TPM

2015-09-15 Thread Christophe Ricard
Every TPM drivers should now depends on DM_TPM and not only TPM. Signed-off-by: Christophe Ricard --- Changes in v2: None drivers/tpm/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tpm/Kconfig b/drivers/tpm/Kconfig index ff2cdbe..3ab652c 100644 --- a/

[U-Boot] [PATCH v2 3/4] dm: tpm: Remove every compilation switch for TPM driver model

2015-09-15 Thread Christophe Ricard
As every TPM drivers support UCLASS_TPM, we can only rely on DM_TPM functions. This simplify a bit the code. Signed-off-by: Christophe Ricard --- Changes in v2: None common/cmd_tpm.c | 13 + drivers/tpm/tpm_tis_infineon.c | 1 - include/tis.h | 60 -

[U-Boot] [PATCH v2 2/4] dm: tpm: Add Driver Model support for tpm_atmel_twi driver

2015-09-15 Thread Christophe Ricard
tpm_atmel_twi can fit perfectly to the new UCLASS_TPM class. Signed-off-by: Christophe Ricard --- Changes in v2: None drivers/tpm/Kconfig | 2 +- drivers/tpm/tpm_atmel_twi.c | 74 - 2 files changed, 54 insertions(+), 22 deletions(-) diff --

[U-Boot] [PATCH v2 1/4] dm: tpm: Move tpm_tis_i2c to tpm_i2c_infineon

2015-09-15 Thread Christophe Ricard
As there is no TCG specification or recommendation for i2c TPM 1.2, move tpm_tis_i2c driver to tpm_i2c_infineon. Other tpm vendors like Atmel or STMicroelectronics may have a different transport protocol for i2c. Signed-off-by: Christophe Ricard --- Changes in v2: - Change existing users of conf

[U-Boot] [PATCH v2 0/4] Move tpm_tis_i2c to tpm_tis_infineon and convert last tpm driver to use DM_TPM

2015-09-15 Thread Christophe Ricard
Hi Simon, This patch serie move tpm_tis_i2c driver to tpm_tis_infineon. It also convert the latest tpm driver tpm_atmel_twi to DM_TPM. Apologies again for the delay :(. Best Regards Christophe Changes in v2: - Change existing users of config to use renamed Kconfig Christophe Ricard (4): dm:

Re: [U-Boot] [PATCH 09/14] armv8/ls1043ardb: Add nand boot support

2015-09-15 Thread Scott Wood
[Added York Sun -- please CC him on future patches] On Tue, 2015-09-15 at 06:47 -0500, Gong Qianyu-B52263 wrote: > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Tuesday, September 15, 2015 7:08 AM > > To: Gong Qianyu-B52263 > > Cc: u-boot@lists.denx.de; Xie Shaohui-B21989; Hou

[U-Boot] Trying to load old kernel with new u-boot

2015-09-15 Thread DaveKucharczyk
One of our mx51 based boards doesn't seem to like 2.6.35 kernel with 2014.07 u-boot. We've ported our boards for the new kernel and new u-boot, but we need the old kernel to also work with new u-boot. So here's what happens... U-Boot 2014.07-svn83200 (Sep 15 2015 - 15:57:02) CPU: Freescale i.M

Re: [U-Boot] [PATCH] ARM: socfpga: Enable saveenv for SD/MMC

2015-09-15 Thread Dinh Nguyen
On 09/15/2015 03:22 PM, Marek Vasut wrote: > On Tuesday, September 15, 2015 at 09:47:23 PM, dingu...@opensource.altera.com > wrote: >> From: Dinh Nguyen >> >> Enable the able to save the environment variables when SD/MMC is used. >> >> Signed-off-by: Dinh Nguyen > > Hi, > > this should be done

Re: [U-Boot] api_storage: Fix non-first storage device enumeration

2015-09-15 Thread Tom Rini
On Mon, Sep 14, 2015 at 12:21:34PM +0200, Andreas Färber wrote: > When enabling CONFIG_API and chain-loading GRUB2 on jetson-tk1, only the > eMMC would show up as (hd0), but not the SD card, leading to GRUB not > finding its configuration and modules, falling back to a rescue shell. > > This is b

Re: [U-Boot] arm: Remove unused reference to nomadik

2015-09-15 Thread Tom Rini
On Mon, Sep 14, 2015 at 09:32:55AM +0200, Stefan Roese wrote: > Commit 0abdd9d0 "arm: Remove nhk8815 boards and nomadik arch" missed one > reference to this arch. Lets remove this as well. > > Signed-off-by: Stefan Roese > Cc: Simon Glass > Cc: Tom Rini Applied to u-boot/master, thanks! --

Re: [U-Boot] arm: Remove unused ST-Ericsson u8500 arch

2015-09-15 Thread Tom Rini
On Mon, Sep 14, 2015 at 09:17:36AM +0200, Stefan Roese wrote: > This arch does not seem to be supported / used at all in the current > U-Boot mainline source tree any more. So lets remove the core u8500 code > and code that was only referenced by this platform. > > Please note that this patch als

Re: [U-Boot] mtd: nand: fsmc: Fixes and cleanup for fsmc_nand_switch_ecc()

2015-09-15 Thread Tom Rini
On Mon, Sep 14, 2015 at 08:47:47AM +0200, Stefan Roese wrote: > This patch addresses some comments raised by Scott in the last versions. > Here the changes in detail: > > - Removed __maybe_unused as its not needed > - Added check for strength == 4 and error out for the unsupported > ECC strengt

Re: [U-Boot] [U-Boot, 2/2] FIX: env: import: hashtable: Free memory allocated before exiting from himport_r()

2015-09-15 Thread Tom Rini
On Mon, Sep 14, 2015 at 12:57:04AM +0200, Lukasz Majewski wrote: > Without this patch memory is not released on early exit. > > Signed-off-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot, 1/2] FIX: env: import: hashtable: Prevent buffer overrun when importing environment from file

2015-09-15 Thread Tom Rini
On Mon, Sep 14, 2015 at 12:57:03AM +0200, Lukasz Majewski wrote: > Lets consider following scenario: > - One uses echo -n "key=value" to define environment variable in a file > (single variable) > - The file content is "key=value" without any terminating byte (e.g. 0x0a or > 0x0d). > - The file i

Re: [U-Boot] [U-Boot, v1, 1/1] fix: possible overflow when copying the string

2015-09-15 Thread Tom Rini
On Mon, Sep 07, 2015 at 11:24:08AM +0300, Imran Zaman wrote: > Bigger source buffer than dest buffer could > overflow when copying strings. > Source and destination buffer sizes are same now. > > Signed-off-by: Imran Zaman Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [U-Boot, 1/3] omap3_evm_common.h: Switch to SYS_GENERIC_BOARD

2015-09-15 Thread Tom Rini
On Thu, Sep 03, 2015 at 02:54:02PM -0400, Tom Rini wrote: > Tested on my OMAP3 uEVM. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass > Tested-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot,3/3] ti816x: Switch to SYS_GENERIC_BOARD

2015-09-15 Thread Tom Rini
On Thu, Sep 03, 2015 at 02:54:04PM -0400, Tom Rini wrote: > Tested on my TI186x rev E. (PG2.0) and take over maintainership. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass > Tested-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signatur

Re: [U-Boot] [U-Boot,2/3] ti814x_evm: Switch to SYS_GENERIC_BOARD

2015-09-15 Thread Tom Rini
On Thu, Sep 03, 2015 at 02:54:03PM -0400, Tom Rini wrote: > Take over maintainership as well. Not tested as PG2.0 (which I have) > needs additional work over PG1.0 (which Matt has). > > Cc: Matt Porter > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass > Tested-by: Simon Glass Applied to

[U-Boot] Please pull u-boot-fdt.git

2015-09-15 Thread Simon Glass
Hi Tom, The following changes since commit 850f788709cef8f7d53d571aec3bfb73b14c5531: Merge branch 'rmobile' of git://git.denx.de/u-boot-sh (2015-09-13 17:25:16 -0400) are available in the git repository at: git://git.denx.de/u-boot-fdt.git for you to fetch changes up to 02464e386bb5f0a022c

Re: [U-Boot] [PATCH] ARM: socfpga: Enable saveenv for SD/MMC

2015-09-15 Thread Marek Vasut
On Tuesday, September 15, 2015 at 09:47:23 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Enable the able to save the environment variables when SD/MMC is used. > > Signed-off-by: Dinh Nguyen Hi, this should be done per-board, so I'd suggest the following: 1) Rename includ

[U-Boot] [PATCH] ARM: socfpga: Enable saveenv for SD/MMC

2015-09-15 Thread dinguyen
From: Dinh Nguyen Enable the able to save the environment variables when SD/MMC is used. Signed-off-by: Dinh Nguyen --- include/configs/socfpga_common.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index 38ae763..f

Re: [U-Boot] [PATCH] fdt: add new fdt address parsing functions

2015-09-15 Thread Simon Glass
On 15 September 2015 at 01:55, Mugunthan V N wrote: > On Friday 11 September 2015 04:24 PM, Mugunthan V N wrote: >> On Wednesday 09 September 2015 11:38 PM, Simon Glass wrote: >>> Hi, >>> >>> On Monday, 7 September 2015, Mugunthan V N wrote: On Friday 07 August 2015 03:01 AM, Stephen Wa

Re: [U-Boot] [U-Boot, v5, 2/9] armv8: New MMU setup code allowing to use 48+ bits PA/VA

2015-09-15 Thread Tom Rini
On Mon, Sep 07, 2015 at 06:18:15PM +0300, Sergey Temerkhanov wrote: > This patch adds code which sets up 2-level page tables on ARM64 thus > extending available VA space. CPUs implementing 64k translation > granule are able to use direct PA-VA mapping of the whole 48 bit > address space. > It also

Re: [U-Boot] [PATCH 0/5] device model bringup of hsmmc on am335x bone black and gp evm

2015-09-15 Thread Tom Rini
On Tue, Sep 15, 2015 at 05:02:58PM +0100, Peter Robinson wrote: > On Tue, Sep 15, 2015 at 3:11 PM, Mugunthan V N wrote: > > This patch seires enables omap_hsmmc to adopt driver model. This > > has been tested on AM335x beagle bone black and GP EVM (logs [1]). > > Also pushed a branch for testing [

Re: [U-Boot] [PATCH] Revert "env_eeprom: Assign default environment during board_init_f"

2015-09-15 Thread Tom Rini
On Tue, Sep 15, 2015 at 11:35:35AM +0200, Ludger Dreier wrote: > This reverts commit ed6a5d4f880ac248530dbf64683b2257dbe54b64. > > The original patch uses ENV_IS_EMBEDDED to decide if the default > environment should be used or the one actually read from EEPROM. The > code in environment.h allows

Re: [U-Boot] [PATCH 0/5] device model bringup of hsmmc on am335x bone black and gp evm

2015-09-15 Thread Peter Robinson
On Tue, Sep 15, 2015 at 3:11 PM, Mugunthan V N wrote: > This patch seires enables omap_hsmmc to adopt driver model. This > has been tested on AM335x beagle bone black and GP EVM (logs [1]). > Also pushed a branch for testing [2] Are you going to migrate omap3/omap4/omap5 and any of the other TI d

Re: [U-Boot] [PATCH v2] malloc_simple: Add support for switching to DRAM heap

2015-09-15 Thread Tom Rini
On Mon, Sep 14, 2015 at 04:29:21PM +0200, Hans de Goede wrote: > malloc_simple uses a part of the stack as heap, initially it uses > SYS_MALLOC_F_LEN bytes which typically is quite small as the initial > stacks sits in SRAM and we do not have that much SRAM to work with. > > When DRAM becomes ava

Re: [U-Boot] [PATCH v2 1/2] sunxi: Enable CONFIG_SPL_STACK_R

2015-09-15 Thread Tom Rini
On Mon, Sep 14, 2015 at 07:04:50PM +0200, Hans de Goede wrote: > Select CONFIG_SPL_STACK_R for sunxi boards, this gives us much more > room on the stack once we've the DRAM running. > > Besides being a good change to have on itself, this also paves the > way for switching to using malloc_simple i

Re: [U-Boot] [PATCH v2 2/2] sunxi: Switch to using malloc_simple for the spl

2015-09-15 Thread Tom Rini
On Mon, Sep 14, 2015 at 07:04:51PM +0200, Hans de Goede wrote: > common/dlmalloc.c is quite big, both in .text and .data usage. E.g. for a > Mele_M9 sun6i board build this reduces .text from 0x4214 to 0x3b94 bytes, > and .data from 0x54c to 0x144 bytes. > > Signed-off-by: Hans de Goede Reviewed

Re: [U-Boot] [PATCH v5 2/4] net: designware: Add support to PCI designware devices

2015-09-15 Thread Bin Meng
Hi Simon, On Tue, Sep 15, 2015 at 9:51 PM, Simon Glass wrote: > On 11 September 2015 at 04:24, Bin Meng wrote: >> The Designware ethernet controller is also seen on PCI bus, e.g. >> on Intel Quark SoC. Add this support in the DM version driver. >> >> Signed-off-by: Bin Meng >> >> --- >> >> Chan

[U-Boot] [PATCH 5/5] defconfig: am335x: gp_evm: enable ethernet driver model

2015-09-15 Thread Mugunthan V N
enable mmc driver model for am335x gp_evm as omap_hsmmc supports driver model Signed-off-by: Mugunthan V N --- configs/am335x_gp_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_gp_evm_defconfig b/configs/am335x_gp_evm_defconfig index c87d7a9..50e7d3f 100644 --- a

[U-Boot] [PATCH 4/5] defconfig: am335x: bbb: enable ethernet driver model

2015-09-15 Thread Mugunthan V N
enable mmc driver model for am335x bbb as omap_hsmmc supports driver model Signed-off-by: Mugunthan V N --- configs/am335x_boneblack_vboot_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_boneblack_vboot_defconfig b/configs/am335x_boneblack_vboot_defconfig index 117a

[U-Boot] [PATCH 2/5] am335x_evm: mmc: do not define DM_MMC for spl

2015-09-15 Thread Mugunthan V N
Since spl doesn't support DM currently, do not define DM_MMC for spl build. Signed-off-by: Mugunthan V N --- include/configs/am335x_evm.h | 8 1 file changed, 8 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 56de3d4..6253037 100644 --- a/in

[U-Boot] [PATCH 3/5] drivers: mmc: omap_hsmmc: convert driver to adopt device driver model

2015-09-15 Thread Mugunthan V N
adopt omap_hsmmc driver to device driver model Signed-off-by: Mugunthan V N --- drivers/mmc/omap_hsmmc.c | 115 ++- 1 file changed, 114 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index d7b388f..d39230

[U-Boot] [PATCH 1/5] omap_hsmmc: update struct hsmmc to accomodate base address from DT

2015-09-15 Thread Mugunthan V N
Existing driver gets the actual omap hammc base address + 0x100 bytes as the first 0x100 bytes is not used by the driver. But with DM conversion the base address from DT is different, to accommodate the offset adding res0[0x100] to struct hsmmc. Signed-off-by: Mugunthan V N --- arch/arm/include/

[U-Boot] [PATCH 0/5] device model bringup of hsmmc on am335x bone black and gp evm

2015-09-15 Thread Mugunthan V N
This patch seires enables omap_hsmmc to adopt driver model. This has been tested on AM335x beagle bone black and GP EVM (logs [1]). Also pushed a branch for testing [2] [1]: http://pastebin.ubuntu.com/12417667/ [2]: git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git mmc-dm TODO: Gpio

Re: [U-Boot] [PATCH v5 2/4] net: designware: Add support to PCI designware devices

2015-09-15 Thread Simon Glass
On 11 September 2015 at 04:24, Bin Meng wrote: > The Designware ethernet controller is also seen on PCI bus, e.g. > on Intel Quark SoC. Add this support in the DM version driver. > > Signed-off-by: Bin Meng > > --- > > Changes in v5: > - Wrap PCI device support with CONFIG_DM_PCI > > Changes in v

Re: [U-Boot] [PATCH v5 1/4] dm: pci: Add an inline API to test if a device is on a PCI bus

2015-09-15 Thread Simon Glass
On 11 September 2015 at 04:24, Bin Meng wrote: > Introduce device_is_on_pci_bus() which can be utilized by driver > to test if a device is on a PCI bus. > > Signed-off-by: Bin Meng > > --- > > Changes in v5: > - Move the inline API from include/pci.h to include/dm/device.h to > resolve the cycl

Re: [U-Boot] Pull-request: u-boot-spi/master

2015-09-15 Thread Simon Glass
Hi Jagan, On 15 September 2015 at 02:13, Jagan Teki wrote: > Hi Tom, > > Zynq patches has SPL build dependency with Simon changes [1]. > > Simon, Any plan to send a PR for your changes. > > [1] > http://git.denx.de/?p=u-boot/u-boot-dm.git;a=shortlog;h=refs/heads/zynq-working These are for the z

Re: [U-Boot] using boot.scr or uEnv.txt with FIT images

2015-09-15 Thread Ramakrishnan Meenakshi Sundaram
Correcting Jagannadh's email id. thanks Ram On Tue, Sep 15, 2015 at 6:14 PM, Ramakrishnan Meenakshi Sundaram < ramki...@gmail.com> wrote: > Hi Jagannadh, > > I'm Ram from Symantec. I've been working on using u-boot secure booting > with RSA. > > As part of that - I was observing that once we def

[U-Boot] using boot.scr or uEnv.txt with FIT images

2015-09-15 Thread Ramakrishnan Meenakshi Sundaram
Hi Jagannadh, I'm Ram from Symantec. I've been working on using u-boot secure booting with RSA. As part of that - I was observing that once we define CONFIG_FIT_SIGNATURE - it disables the CONFIG_IMAGE_FORMAT_LEGACY. As a result - when the system detects a boot.scr in my sd card - it rejects tha

Re: [U-Boot] [PATCH 09/14] armv8/ls1043ardb: Add nand boot support

2015-09-15 Thread Gong Q . Y .
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, September 15, 2015 7:08 AM > To: Gong Qianyu-B52263 > Cc: u-boot@lists.denx.de; Xie Shaohui-B21989; Hou Zhiqiang-B48286; Hu > Mingkai-B21284; Song Wenbin-B53747 > Subject: Re: [U-Boot] [PATCH 09/14] armv8/ls1043ardb: Add nand b

[U-Boot] [PATCH] Revert "env_eeprom: Assign default environment during board_init_f"

2015-09-15 Thread Ludger Dreier
This reverts commit ed6a5d4f880ac248530dbf64683b2257dbe54b64. The original patch uses ENV_IS_EMBEDDED to decide if the default environment should be used or the one actually read from EEPROM. The code in environment.h allows setting of ENV_IS_EMBEDDED only for a subset of flash types. EEPROM is no

[U-Boot] [PATCH 3/3] configs: ls1021atwr: Enable DSPI for LS1021ATWR

2015-09-15 Thread Yuan Yao
DSPI2 can be verified when boot from QSPI now. Signed-off-by: Yuan Yao --- include/configs/ls1021atwr.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index 7dcb719..a14277e 100644 --- a/include/configs/ls1021a

[U-Boot] [PATCH 2/3] mtd: sf: Add support AT26DF081A chip

2015-09-15 Thread Yuan Yao
AT26DF081A is the spi flash type of TWR-MEM(SCH-26248) card. We can access the flash through DSPI2 on LS1021ATWR board. Signed-off-by: Yuan Yao --- drivers/mtd/spi/sf_params.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c index 4a4a

[U-Boot] [PATCH 1/3] dm: dts: ls1021a-twr: Enable DSPI2 on LS1021ATWR

2015-09-15 Thread Yuan Yao
Erratum A-008022 has been fixed on LS1021A Rev2.0. So we can use DSPI2 now, this patch enable DSPI2 in dts for LS1021ATWR. Signed-off-by: Yuan Yao --- arch/arm/dts/ls1021a-twr.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/ls1021a-twr.dts b/arch/arm/dts/ls

Re: [U-Boot] [PATCH 1/2] nios2: call board_init_f_mem

2015-09-15 Thread Thomas Chou
On 09/09/2015 04:03 PM, Thomas Chou wrote: We will need CONFIG_SYS_MALLOC_F_LEN to use serial uclass. So we shall undefine CONFIG_SYS_GENERIC_GLOBAL_DATA, and call board_init_f_mem() to allocates early malloc() memory with size of CONFIG_SYS_MALLOC_F_LEN in board_f.c. Signed-off-by: Thomas Cho

Re: [U-Boot] [PATCH 2/2] nios2: enable malloc() pool before relocation

2015-09-15 Thread Thomas Chou
On 09/09/2015 04:03 PM, Thomas Chou wrote: Enable malloc() pool before relocation, because this is needed to use serial uclass. Signed-off-by: Thomas Chou --- configs/nios2-generic_defconfig | 1 - 1 file changed, 1 deletion(-) Applied to u-boot-nios. ___

Re: [U-Boot] [PATCH] nios2: zap version_string

2015-09-15 Thread Thomas Chou
On 09/09/2015 01:42 PM, Thomas Chou wrote: There is a weak version_string[] at common/cmd_version.c . Remove the one in start.S. Signed-off-by: Thomas Chou --- arch/nios2/cpu/start.S | 6 -- 1 file changed, 6 deletions(-) Applied to u-boot-nios. __

Re: [U-Boot] [PATCH] nios2: zap dly_clks

2015-09-15 Thread Thomas Chou
On 09/09/2015 01:09 PM, Thomas Chou wrote: The dly_clks() in start.S is no use after switching to generic timer. Remove it. Signed-off-by: Thomas Chou --- arch/nios2/cpu/start.S | 33 - 1 file changed, 33 deletions(-) Applied to u-boot-nios. _

Re: [U-Boot] [PATCH] nios2: configure STATUS_LED_BOOT

2015-09-15 Thread Thomas Chou
On 09/05/2015 09:04 PM, Thomas Chou wrote: Define STATUS_LED_BOOT. So the boot LED will be initialized in board_init_r(), and show the boot progress. Though the boot LED is set to blinking in board_init_r(), only the powerpc and nios2 really support blinking. All other archs just turn the LED

[U-Boot] [PATCH] ls1021atwr: sdboot: change serdes 0x20 to 0x30

2015-09-15 Thread Yuan Yao
For LS1021ATWR board in order to support SATA(Gen 3), SerDes Lan B will be connect to SATA directly. So SerDes 0x20 can't support 2SGMII at the same time. In order to support two SGMII and one RGMII at the same time, we used 0x30 to replace 0x20. Signed-off-by: Yuan Yao --- board/freescale/ls10

Re: [U-Boot] [PATCH v3 13/13] sf: Rename read register functions

2015-09-15 Thread Bin Meng
Hi Jagan, On Wed, Sep 2, 2015 at 2:09 PM, Jagan Teki wrote: > spi_flash_cmd_read_status -> read_sr > spi_flash_cmd_read_config -> read_cr Can you elaborate why this rename is needed? To me, read_sr() and read_cr() are too generic names, and they are not static neither. > > Signed-off-by: Jagan

Re: [U-Boot] [PATCH v3 08/13] sf: Add flash_read_reg support

2015-09-15 Thread Bin Meng
Hi Jagan, On Wed, Sep 2, 2015 at 2:09 PM, Jagan Teki wrote: > Generic function for all spi-flash register reads. > > Signed-off-by: Jagan Teki > --- > Changes for v3: > - none > Changes for v2: > - none > > drivers/mtd/spi/sf.c | 23 +++ > drivers/mt

Re: [U-Boot] [PATCH v3 06/13] sf: Update status reg check in spi_flash_cmd_wait_ready

2015-09-15 Thread Bin Meng
On Wed, Sep 2, 2015 at 2:09 PM, Jagan Teki wrote: > Current flash wait_ready logic is not modular to add new > register status check, hence updated the status check for > adding few more register checks in future. > > Below are the sf speed runs with 'sf update' on whole flash, 16MiB. > > => sf up

Re: [U-Boot] [PATCH v3 07/13] sf: Add FSR support to spi_flash_cmd_wait_ready

2015-09-15 Thread Bin Meng
On Wed, Sep 2, 2015 at 2:09 PM, Jagan Teki wrote: > This patch adds flag status register reading support to > spi_flash_cmd_wait_ready. > > Signed-off-by: Jagan Teki > Cc: Simon Glass > Cc: Marek Vasut > Cc: Michal Simek > Cc: Siva Durga Prasad Paladugu > Cc: Stefan Roese > Cc: Tom Warren >

[U-Boot] Pull-request: u-boot-spi/master

2015-09-15 Thread Jagan Teki
Hi Tom, Zynq patches has SPL build dependency with Simon changes [1]. Simon, Any plan to send a PR for your changes. [1] http://git.denx.de/?p=u-boot/u-boot-dm.git;a=shortlog;h=refs/heads/zynq-working thanks! Jagan. The following changes since commit 850f788709cef8f7d53d571aec3bfb73b14c5531:

Re: [U-Boot] [PATCH] net: phy: on phy device create do not initialize link to 1

2015-09-15 Thread Mugunthan V N
On Friday 04 September 2015 09:01 PM, Joe Hershberger wrote: > On Thu, Sep 3, 2015 at 5:20 AM, Mugunthan V N wrote: >> Currently when phy device is created the link variable is >> initialized to 1 which denoted phy link is already up. On a power >> reset there is no issue as phy status register li

Re: [U-Boot] [PATCH] fdt: add new fdt address parsing functions

2015-09-15 Thread Mugunthan V N
On Friday 11 September 2015 04:24 PM, Mugunthan V N wrote: > On Wednesday 09 September 2015 11:38 PM, Simon Glass wrote: >> Hi, >> >> On Monday, 7 September 2015, Mugunthan V N wrote: >>> >>> On Friday 07 August 2015 03:01 AM, Stephen Warren wrote: From: Stephen Warren fdtdec_get_a

Re: [U-Boot] [PATCH v3 05/13] sf: Make flash->flags use for generic usage

2015-09-15 Thread Bin Meng
On Tue, Sep 15, 2015 at 2:32 PM, Bin Meng wrote: > Hi Jagan, > > On Wed, Sep 2, 2015 at 2:09 PM, Jagan Teki wrote: >> Use the flash->flags for generic usage, not only for dm-spi-flash, >> this will be used for future flag additions. >> >> Signed-off-by: Jagan Teki >> Cc: Bin Meng >> --- > > Thi

[U-Boot] [PATCH] sf: Make flash->flags use for generic usage

2015-09-15 Thread Bin Meng
From: Jagan Teki Use the flash->flags for generic usage, not only for dm-spi-flash, this will be used for future flag additions. Signed-off-by: Jagan Teki Cc: Bin Meng Correct the spi flash flags detect logic. Signed-off-by: Bin Meng Tested-by: Bin Meng --- drivers/mtd/spi/sf_internal.h |

Re: [U-Boot] [PATCH v2] dm: core: Enable optional use of fdt_translate_address()

2015-09-15 Thread Thomas Chou
Hi Stefan, On 09/04/2015 01:11 PM, Stefan Roese wrote: The current "simple" address translation simple_bus_translate() is not working on some platforms (e.g. MVEBU). As here more complex "ranges" properties are used in many nodes (multiple tuples etc). This patch enables the optional use of the

[U-Boot] [PATCH v3 0/2] nios2: convert altera_jtag_uart to driver model

2015-09-15 Thread Thomas Chou
Update the dts and convert altera_jtag_uart to driver model. v2 add ioremap. make the change to dts compatible with linux. v3 use fdt address translation patch from Stefan Roese. fix watchdog and loop as Marek suggested. Thomas Chou (2): nios2: map physical address to uncached virtual

[U-Boot] [PATCH v3 1/2] nios2: map physical address to uncached virtual address

2015-09-15 Thread Thomas Chou
Add ioremap() to map physical address to uncached virtual address. We need this to convert the reg address from the device tree. The order of headers inclusion in interrupts.c is changed because common.h will include board header that contains IO_REGION_BASE. In the future, the IO_REGION_BASE sho

[U-Boot] [PATCH v3 2/2] nios2: convert altera_jtag_uart to driver model

2015-09-15 Thread Thomas Chou
Convert altera_jtag_uart to driver model. Signed-off-by: Thomas Chou --- arch/nios2/dts/3c120_devboard.dts | 5 ++ configs/nios2-generic_defconfig | 3 + drivers/serial/Kconfig| 13 + drivers/serial/altera_jtag_uart.c | 112 ++ include/c