Re: [U-Boot] [PATCH v2 11/13] ns16550: zap CONFIG_NS16550_SERIAL

2015-11-18 Thread Bin Meng
Hi Thomas, On Wed, Nov 18, 2015 at 10:36 PM, Thomas Chou wrote: > Hi Bin, > > > On 2015年11月18日 22:09, Bin Meng wrote: >> >> Hi Thomas, >> >> On Wed, Nov 18, 2015 at 9:44 PM, Thomas Chou wrote: >>> >>> Zap CONFIG_NS16550_SERIAL, as the unification of ns16550 drivers >>> is completed. >>> >>> Sign

[U-Boot] [PATCH v3 15/16] arm: dts: am4372: add qspi register maps for memory map

2015-11-18 Thread Mugunthan V N
Add qspi memory map address to device tree. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass --- arch/arm/dts/am4372.dtsi | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts/am4372.dtsi index ade28c7..eb0995d 100644 --- a/arch/arm

[U-Boot] [PATCH v3 16/16] defconfig: am437x_sk_evm: enable spi driver model

2015-11-18 Thread Mugunthan V N
enable spi driver model for am437x_sk_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- configs/am437x_sk_evm_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am437x_sk_evm_defconfig b/configs/am437x_sk_

[U-Boot] [PATCH v3 13/16] defconfig: dra74_evm: enable spi driver model

2015-11-18 Thread Mugunthan V N
enable spi driver model for dra74_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- configs/dra74_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra74_evm_defconfig b/configs/dra74_evm_defconfig ind

[U-Boot] [PATCH v3 14/16] am43xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-11-18 Thread Mugunthan V N
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by: Mugunthan V N --- include/configs/am43xx_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h index b02abd3..ebade

[U-Boot] [PATCH v3 12/16] defconfig: dra72_evm: enable spi driver model

2015-11-18 Thread Mugunthan V N
enable mmc driver model for dra72_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- configs/dra72_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra72_evm_defconfig b/configs/dra72_evm_defconfig ind

[U-Boot] [PATCH v3 11/16] drivers: mtd: spi: sf_probe: add compatible for Macronix spi flash

2015-11-18 Thread Mugunthan V N
Add compatible for Macronix 64MiB spi flash mx66l51235l. Signed-off-by: Mugunthan V N --- drivers/mtd/spi/sf_probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index ffbce59..add6738 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/dr

[U-Boot] [PATCH v3 08/16] drivers: spi: ti_qspi: convert driver to adopt device driver model

2015-11-18 Thread Mugunthan V N
adopt ti_qspi driver to device driver model Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- drivers/spi/ti_qspi.c | 187 ++ 1 file changed, 187 insertions(+) diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qsp

[U-Boot] [PATCH v3 07/16] dts: dra7: add spi alias for qspi

2015-11-18 Thread Mugunthan V N
add spi alias for qspi so that spi probes the device and driver successfully. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass --- arch/arm/dts/dra7.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index 8f1e25b..3060e9a 100644 --- a/

[U-Boot] [PATCH v3 10/16] drivers: mtd: spi: sf_probe: add compatible for spansion spi flash

2015-11-18 Thread Mugunthan V N
Add compatible for spansion 32MiB spi flash s25fl256s1. Signed-off-by: Mugunthan V N --- drivers/mtd/spi/sf_probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index bc05d30..ffbce59 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/dri

[U-Boot] [PATCH v3 09/16] arm: dts: dra7: add qspi register maps for memory map and control module

2015-11-18 Thread Mugunthan V N
Add qspi memory map and control module register maps to device tree. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass --- arch/arm/dts/dra7.dtsi | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index 3060e9a..254c5e2

[U-Boot] [PATCH v3 04/16] dm: core: Add a new api to get indexed device address

2015-11-18 Thread Mugunthan V N
Add new api to get device address based on index. Signed-off-by: Mugunthan V N --- drivers/core/device.c | 31 +++ include/dm/device.h | 11 +++ 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/drivers/core/device.c b/drivers/core/device.c ind

[U-Boot] [PATCH v3 05/16] spi: Add support for dual and quad mode

2015-11-18 Thread Mugunthan V N
spi bus can support dual and quad wire data transfers for tx and rx. So defining dual and quad modes for both tx and rx. Also add support to parse bus width used for spi tx and rx transfers. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- drivers/spi/spi-uclass.

[U-Boot] [PATCH v3 06/16] dra7xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-11-18 Thread Mugunthan V N
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by: Mugunthan V N --- include/configs/dra7xx_evm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index cb9544b..63

[U-Boot] [PATCH v3 01/16] drivers: spi: ti_qspi: do not hard code chip select for memory map configuration

2015-11-18 Thread Mugunthan V N
To enable memory map in dra7xx, specific chip select must be written to control module register. But this hard coded to chip select 1, fixing it by writing the specific chip select value to control module register. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass Reviewed-by: Tom Rini Revi

[U-Boot] [PATCH v3 00/16] device model bring-up of ti-qspi on dra72, dra74 and am437x-sk evm

2015-11-18 Thread Mugunthan V N
This patch series enables ti_qspi to adopt driver model. This has been tested on dra72, dra74 and am437x-sk evms (logs [1]). Also pushed a branch for testing [2] [1]: http://pastebin.ubuntu.com/13341771/ [2]: git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git qspi-v3 Changes from v2->

[U-Boot] [PATCH v3 02/16] drivers: spi:ti_qspi: change ti_qspi_slave to ti_qspi_priv for driver model conversion

2015-11-18 Thread Mugunthan V N
Changing the ti_qspi_priv structure and its instance names from to priv for driver mode conversion. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass Reviewed-by: Tom Rini Reviewed-by: Jagan Teki --- drivers/spi/ti_qspi.c | 118 +- 1 file ch

[U-Boot] [PATCH v3 03/16] drivers: spi: ti_qspi: prepare driver for DM conversion

2015-11-18 Thread Mugunthan V N
Prepare driver for DM conversion. Signed-off-by: Mugunthan V N --- drivers/spi/ti_qspi.c | 276 +++--- 1 file changed, 151 insertions(+), 125 deletions(-) diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index 44c5762..a02cb25 100644 --- a/d

Re: [U-Boot] [PATCH v6 00/23] Bring up rk3036 uboot

2015-11-18 Thread hl
Hi Simon, On 19/11/15 12:44, Simon Glass wrote: Hi Lin, On 17 November 2015 at 18:19, hl wrote: Hi Simon, On 18/11/15 01:38, Simon Glass wrote: Hi Lin, On 16 November 2015 at 23:20, Lin Huang wrote: This series patch bring up rk3036 uboot, since rk3036 only 4K size SRAM for SPL, so i

Re: [U-Boot] [PATCH v2 03/13] ns16550: add generic binding to unify the drivers

2015-11-18 Thread Heiko Schocher
Hello Thomas, Am 18.11.2015 um 14:44 schrieb Thomas Chou: Add generic binding to unify ns16550 drivers. There are several drivers using almost the same code, such as serial_dw, serial_keystone, serial_omap, serial_ppc, serial_rockchip, serial_tegra.c, and serial_x86. But each is platform specifi

Re: [U-Boot] [PATCH v2 01/13] debug_uart: restore ns16550 as default

2015-11-18 Thread Heiko Schocher
Hello Thomas, Am 18.11.2015 um 14:44 schrieb Thomas Chou: Since commit 220e8021af96 ("nios2: convert altera_jtag_uart to driver model"), the default debug uart was changed. Most people use ns16550 UART, so restore it as default. Signed-off-by: Thomas Chou Reported-by: Ezequiel Garcia Reported

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

2015-11-18 Thread Heiko Schocher
Hello Tom, please pull from u-boot-ubi master The following changes since commit 736d1746fb7b8f7cd70657a4a72db2b6bd8de40e: itest: add missing break statements to evalexp() (2015-11-18 15:29:00 -0500) are available in the git repository at: git://git.denx.de/u-boot-ubi.git master for you

[U-Boot] [PATCH 1/5][v2] armv8: usec2ticks function defined

2015-11-18 Thread Aneesh Bansal
usec2ticks() function has been defined for ARMv8 which will be used by SEC Driver. Signed-off-by: Aneesh Bansal --- Changes in v2: New Patch Set created with an additional patch. arch/arm/cpu/armv8/generic_timer.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/cpu/arm

[U-Boot] [PATCH 4/5][v2] armv8/ls1043ardb: SECURE BOOT target added for NOR

2015-11-18 Thread Aneesh Bansal
LS1043ARDB Secure Boot Target from NOR has been added. - Configs defined to enable esbc_validate. - ESBC Address in header is made 64 bit. - SMMU is re-configured in Bypass mode. Signed-off-by: Aneesh Bansal --- Changes in v2: New Patch Set created with an additional patch. Pointers typecasted to

[U-Boot] [PATCH 2/5][v2] armv8: Make SEC read/write as snoopable for LS1043

2015-11-18 Thread Aneesh Bansal
For LS1043, SEC read/writes are made snoopable by setting the corresponding bits in SCFG to avoid coherency issues. Signed-off-by: Aneesh Bansal --- Changes in v2: New Patch Set created with an additional patch Commit Subject modified arch/arm/cpu/armv8/fsl-layerscape/soc.c | 5 + 1 file ch

[U-Boot] [PATCH 3/5] Data type defined for pointer addresses

2015-11-18 Thread Aneesh Bansal
A new data type uintptr_t has been defined for creating pointers (32 or 64 bit depending on Core) from 32 bit variables storing the address. If a 32 bit variable (u32) is typecasted to a pointer (void *), compiler gives a warning in case size of pointer on the core is 64 bit. Signed-off-by: Aneesh

[U-Boot] [PATCH 5/5][v2] drivers/crypto/fsl: fix endianness issue in RNG

2015-11-18 Thread Aneesh Bansal
For Setting and clearing the bits in SEC Block registers sec_clrbits32() and sec_setbits32() are used which work as per endianness of CAAM block. So these must be used with SEC register address as argument. If the value is read in a local variable, then the functions will not behave correctly where

[U-Boot] MicroBlaze target: Where should CONFIG_SPI_FLASH_BAR be defined?

2015-11-18 Thread Scott Welsh
Hello, I've got a 32MByte Micron SPI Flash and I am unable to access the upper half of the part due to CONFIG_SPI_FLASH_BAR not being defined when my u-boot.elf is built. I am using the Petalinux version 2013.10 toolset to build the u-boot.elf and image.elf artifacts and am still at a loss as to w

[U-Boot] [PATCH v8 19/23] rockchip: rk3036: Add core Soc start-up code

2015-11-18 Thread Simon Glass
From: huang lin rk3036 only 4K size SRAM for SPL, so only support timer, uart, sdram driver in SPL stage, when finish initial sdram, back to bootrom.And in rk3036 sdmmc and debug uart use same iomux, so if you want to boot from sdmmc, you must disable debug uart. Signed-off-by: Lin Huang Acked-

[U-Boot] [PATCH v8 21/23] rockchip: Add max spl size & spl header configs

2015-11-18 Thread Simon Glass
From: Jeffy Chen Our chips may have different max spl size and spl header, so we need to add configs for that. Signed-off-by: Jeffy Chen Acked-by: Simon Glass Dropped CONFIG_ROCKCHIP_MAX_SPL_SIZE from rk3288_common.h, Added $(if...) to tools/Makefile to fix widespread build breakage Signed-off

[U-Boot] [PATCH v8 20/23] rockchip: Add basic support for evb-rk3036 board

2015-11-18 Thread Simon Glass
From: huang lin This add some basic files required to allow the board to dispaly serial message and can run command(mmc info etc) Signed-off-by: Lin Huang Acked-by: Simon Glass Moved board Kconfig fragment from previous patch into this one to fix build error: Signed-off-by: Simon Glass ---

Re: [U-Boot] [PATCH v6 00/23] Bring up rk3036 uboot

2015-11-18 Thread Simon Glass
Hi Lin, On 17 November 2015 at 18:19, hl wrote: > > Hi Simon, > > > > On 18/11/15 01:38, Simon Glass wrote: >> >> Hi Lin, >> >> On 16 November 2015 at 23:20, Lin Huang wrote: >>> >>> This series patch bring up rk3036 uboot, since rk3036 only 4K size >>> SRAM for SPL, so in SPL stage only suppor

Re: [U-Boot] [PATCH] pci: fix address range check in __pci_hose_phys_to_bus()

2015-11-18 Thread Bin Meng
On Wed, Nov 18, 2015 at 10:05 PM, Marcel Ziswiler wrote: > The address range check may overflow if the memory region is located at > the top of the 32-bit address space. This can e.g. be seen on TK1 if > using the E1000 gigabit Ethernet driver where start and size are both > 0x8000 leading to

[U-Boot] [PATCH] Don't try to stat() a colon separated list of files in multi or script mode

2015-11-18 Thread Nye Liu
--- tools/mkimage.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/tools/mkimage.c b/tools/mkimage.c index 8af9d50..aa739b4 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -311,21 +311,27 @@ NXTARG: ; exit (ret

Re: [U-Boot] [PATCH v5] Fix board init code to respect the C runtime environment

2015-11-18 Thread Simon Glass
Hi Albert, On 17 November 2015 at 05:59, Albert ARIBAUD wrote: > Hello Simon, > > On Mon, 16 Nov 2015 21:11:38 -0700, Simon Glass > wrote: > >> > +++ b/arch/arm/lib/crt0.S >> > @@ -82,9 +82,11 @@ ENTRY(_main) >> > #else >> > bic sp, sp, #7 /* 8-byte alignment for ABI compliance

Re: [U-Boot] [PATCH 6/6] gpt: command: Extend gpt command to support GPT table verification

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 07:42:12AM +0100, Lukasz Majewski wrote: > This commit adds support for "gpt verify" command, which verifies > correctness of on-board stored GPT partition table. > As the optional parameter one can provide '$partitons' environment variable > to check if partition data (siz

Re: [U-Boot] [PATCH 5/6] gpt: part: Definition and declaration of GPT verification functions

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 07:42:11AM +0100, Lukasz Majewski wrote: > This commit provides definition and declaration of GPT verification > functions - namely gpt_verify_headers() and gpt_verify_partitions(). > The former is used to only check CRC32 of GPT's header and PTEs. > The latter examines eac

Re: [U-Boot] [PATCH 4/6] gpt: doc: Update gpt command's help description

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 07:42:10AM +0100, Lukasz Majewski wrote: > Signed-off-by: Lukasz Majewski Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/l

Re: [U-Boot] [PATCH 3/6] gpt: doc: README: Update README entry for gpt verify extension

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 07:42:09AM +0100, Lukasz Majewski wrote: > ./doc/README.gpt entry has been updated to explain usage of "gpt verify" > command. > > Signed-off-by: Lukasz Majewski Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [PATCH 1/6] gpt: command: Remove duplicated check for empty partition description

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 07:42:07AM +0100, Lukasz Majewski wrote: > Exactly the same check is performed in set_gpt_info() function executed > just after this check. > > Signed-off-by: Lukasz Majewski Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [PATCH 2/6] gpt: command: cosmetic: Replace printf with puts

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 07:42:08AM +0100, Lukasz Majewski wrote: > This code is not processing any data to serial console output and hence > can be replaced with puts. > > Signed-off-by: Lukasz Majewski No, printf is fine, always. We went over this before and it's not a win to change things.

Re: [U-Boot] [PATCH v2] armv8: fsl-layerscale: Rewrite reserving memory for MC and debug server

2015-11-18 Thread York Sun
On 11/18/2015 02:56 PM, Scott Wood wrote: > >>> I think it'd be a bit more straightforward for this to return the new >>> ram_top >>> rather than the size to be subtracted. >> >> That will be inaccurate. For layerscape SoCs, the gd->ram_size is known at >> this >> point, but the address is no

Re: [U-Boot] [PATCH v2] armv8: fsl-layerscale: Rewrite reserving memory for MC and debug server

2015-11-18 Thread Scott Wood
On Wed, 2015-11-18 at 14:48 -0800, York Sun wrote: > > On 11/18/2015 02:15 PM, Scott Wood wrote: > > On Wed, 2015-11-18 at 10:05 -0800, York Sun wrote: > > > MC and debug server are not board-specific. Instead of reserving > > > memory in each board file, a weak function is introduced in board_f.c

Re: [U-Boot] [PATCH v2] armv8: fsl-layerscale: Rewrite reserving memory for MC and debug server

2015-11-18 Thread York Sun
On 11/18/2015 02:15 PM, Scott Wood wrote: > On Wed, 2015-11-18 at 10:05 -0800, York Sun wrote: >> MC and debug server are not board-specific. Instead of reserving >> memory in each board file, a weak function is introduced in board_f.c >> to replace macro CONFIG_SYS_MEM_TOP_HIDE for more flexibil

Re: [U-Boot] [PATCH 14/25] dm: tegra: net: Convert tegra boards to driver model for Ethernet

2015-11-18 Thread Stephen Warren
On 11/18/2015 03:14 PM, Simon Glass wrote: Hi Stephen, On 18 November 2015 at 14:35, Stephen Warren wrote: On 11/16/2015 08:53 PM, Simon Glass wrote: Adjust all Tegra boards to use driver model for Ethernet, now that the required drivers are converted. diff --git a/arch/arm/mach-tegra/Kc

[U-Boot] [PATCH] ARM: tegra: refactor common Kconfig options

2015-11-18 Thread Stephen Warren
From: Stephen Warren This makes it easier to select common options in a single place, rather than having to add them separately for different SoCs or architectures. The lists of select statements are now also sorted for easy searching. Signed-off-by: Stephen Warren --- arch/arm/mach-tegra/Kco

Re: [U-Boot] [U-Boot, 1/2] test: fat: add error-checking to non-contig test

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:29:07AM -0700, Stephen Warren wrote: > From: Stephen Warren > > Check the result code of all command that are executed. Without this, > if the fallocate invocation fails (this feature is not supported on ext3 > filesystems for example) then a zero-length output file wi

Re: [U-Boot] [U-Boot, 2/2] itest: add missing break statements to evalexp()

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:29:08AM -0700, Stephen Warren wrote: > From: Stephen Warren > > The commit mentioned below replaced return statements inside a switch so > that other code could be called after the switch. However, it didn't add > any break statements, causing the cases to run together

Re: [U-Boot] [U-Boot, v2, 10/15] powerpc/km8360: fix the ODT parameters for CS0

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:33AM +0100, Valentin Longchamp wrote: > The ODT parameters for km8360 set the ODT_WR_ACS bit in u-boot KM-2011.09 > that is used in the release bootpackage for kmcoge5ne. During the > transition from the kmeter1 to km8360 this was changed to > ODT_RD_ONLY_CURRENT, whi

Re: [U-Boot] [U-Boot, v2, 14/15] powerpc/83xx: add support for kmtegr1 board

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:37AM +0100, Valentin Longchamp wrote: > This board uses the same CPU (8309) as VECT1. The memory however is > different since it has NAND Flash, the NOR Flash partitioning is > different and of course the FPGAs as well. > > Signed-off-by: Valentin Longchamp > Signed

Re: [U-Boot] [U-Boot, v2, 15/15] km/powerpc: fix ft_board_setup prototype for km82xx & km83xx

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:38AM +0100, Valentin Longchamp wrote: > Signed-off-by: Valentin Longchamp Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.

Re: [U-Boot] [U-Boot, v2, 13/15] km8309: change the default QE_FW address

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:36AM +0100, Valentin Longchamp wrote: > It should be after the u-boot reserved sectors and before the env > sectors, since the solution used for kmvect1 (tell the linker to put the > firmware into the u-boot produced binary, at the end of the area) should > be the exc

Re: [U-Boot] [U-Boot, v2, 12/15] km83xx: use CONFIG_ENV_ADDR for the newenv env command

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:35AM +0100, Valentin Longchamp wrote: > The hardcoded value are bad, since the address could change between > different boards. > > Furthermore, the relevant #defines are set only if #undefined here, so > that they can be changed by some boards if required. > > Sign

Re: [U-Boot] [U-Boot, v2, 08/15] powerpc/km8321: define CONFIG_SYS_DDRCDR

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:31AM +0100, Valentin Longchamp wrote: > On the km8321 boards is CONFIG_SYS_DDRCDR not defined, which leads to > the DDRCDR not being configured at startup and still containing the > reset value. > > The required settings for our km8321 hardware designs are different

Re: [U-Boot] [U-Boot, v2, 09/15] powerpc/km8309: define CONFIG_SYS_DDRCDR

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:32AM +0100, Valentin Longchamp wrote: > For consistency with all the other km83xx plaforms, this should also be > defined for km8309. The same settings as for km8321 are taken. > > Signed-off-by: Valentin Longchamp Applied to u-boot/master, thanks! -- Tom signa

Re: [U-Boot] [U-Boot, v2, 11/15] board/keymile/km82xx: setting dip_switch 3 and 4 will run bootloader

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:34AM +0100, Valentin Longchamp wrote: > From: Bagavathiannan Palanisamy > > Setting dip_switch 3 and 4 also will run bootloader in COGE3 and COGE6 > It is required remove local mgmt IP address, when DIP Switch PIN3 is > enabled. DIP Switch 4 also enabled to avoid u-

Re: [U-Boot] [U-Boot, v2, 07/15] km/powerpc82xx: remove unused function

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:30AM +0100, Valentin Longchamp wrote: > From: Holger Brunck > > commit 0a4f88b98 removed the usage of our setports function, but the > function itself were not removed. So toss it it's dead code. > > Signed-off-by: Holger Brunck > Signed-off-by: Valentin Longchamp

Re: [U-Boot] [U-Boot,v2,06/15] km/powerpc: remove unneeded defines

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:29AM +0100, Valentin Longchamp wrote: > From: Holger Brunck > > We use CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP on all our powerpc > targets, so there is no need to check these defines within our C code. > > Signed-off-by: Holger Brunck > Signed-off-by: Valentin

Re: [U-Boot] [U-Boot, v2, 05/15] km/powerpc: move open firmware defines to km-powerpc.h

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:28AM +0100, Valentin Longchamp wrote: > From: Holger Brunck > > We use the same settings for open firmware defines on all our powerpc > targets, so move them from the CPU specific headers to the common > powerpc header. > > Signed-off-by: Holger Brunck > Signed-of

Re: [U-Boot] [U-Boot, v2, 02/15] powerpc/82xx: make set/get_pin for km82xx more flexible

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:25AM +0100, Valentin Longchamp wrote: > From: Holger Brunck > > The get_pin and set_pin funciton was only used for pins on Port D and > therefore the value was hard coded in the function. Enhance this with a > parameter, that we are able to use this functions for ot

Re: [U-Boot] [U-Boot, v2, 04/15] km/powerpc: increase space for kernel imange and FDT blob

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:27AM +0100, Valentin Longchamp wrote: > From: Holger Brunck > > 128kByte and 3,986MB may be in the future too little for kernel the fdt > blob respectively the kernel image. So increase the reserved areas here, > we have the space for this. > > Signed-off-by: Holge

Re: [U-Boot] [U-Boot, v2, 03/15] powerpc/82xx/km: add testpin detection for mgcoge3ne

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:26AM +0100, Valentin Longchamp wrote: > From: Holger Brunck > > On mgcoge3ne we also want to start the test application if the testpin > is asserted. But we don't have a full POST test support yet. So simply > add a function to read the testpin value. > > Signed-of

Re: [U-Boot] [U-Boot, v2, 01/15] powerpc/83xx: add support for kmtepr2 board

2015-11-18 Thread Tom Rini
On Tue, Nov 17, 2015 at 10:53:24AM +0100, Valentin Longchamp wrote: > From: Christoph Dietrich > > This board is similar to TUXX1, but it has differend FPGAs. > > Signed-off-by: Christoph Dietrich > Signed-off-by: Andreas Huber > Signed-off-by: Valentin Longchamp Applied to u-boot/master, t

Re: [U-Boot] [U-Boot, 3/4] km/scripts: load fdt_bid_kwkey.dtb when working with tftp

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 04:15:21PM +0100, Valentin Longchamp wrote: > From: Holger Brunck > > When loading the dtb file via tftp we should load the one which matches > boardId and hwKey and not a common one for the boardname. We have boards > were different hwKeys are used and then we may load a

Re: [U-Boot] [U-Boot, 4/4] km/scripts: search for kernel/DTBs at serverip:/PRODUCTNAME via TFTP in develop mode

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 04:15:22PM +0100, Valentin Longchamp wrote: > From: Tobias Müller > > Search for the kernel and DTBs in a folder named PRODUCTNAME (found in the > IVM) > at the TFTP server instead of the u-boot boardname. > > Signed-off-by: Tobias Müller > Signed-off-by: Valentin Long

Re: [U-Boot] [U-Boot, 2/4] km: update the boot script to check for a DTB

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 04:15:20PM +0100, Valentin Longchamp wrote: > If a DTB is found with cramfsls, the bootscript continues as expected. > If none is found, the cramfsloadfdt and boot subbootcmds are updated to > not load the DTB from cramfs and not pass it to the kernel. The kernel > thus mus

Re: [U-Boot] Fix sandbox build on Ubuntu 10.04

2015-11-18 Thread Tom Rini
On Sat, Nov 14, 2015 at 11:53:49PM -0700, Stephen Warren wrote: > gcc 4.4.3 (which is the default native compiler on x86-64 Ubuntu 10.04) > doesn't seem to like initializers for sub-fields of anonymous unions. > Solve this by replacing the initialization with an assignment. This > fixes: > > lib/

Re: [U-Boot] [U-Boot, 4/4] arm/km_kirkwood: fix the #ifdef for KM_COGE5UN dip switch

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 03:01:17PM +0100, Valentin Longchamp wrote: > There was a small typo for KM_COGE5UN that resulted in the dip switch > not to behave as expected. > > Signed-off-by: Valentin Longchamp Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signatur

Re: [U-Boot] [U-Boot, 2/4] arm/km: Fix LED configuration for 88E1118R PHY (PIGGY3)

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 03:01:15PM +0100, Valentin Longchamp wrote: > From: Tobias Müller > > Configure PHY LED register for Marvell 88E1118R PHY used on PIGGY3 to > match with printed descriptions on PCB > > Signed-off-by: Tobias Müller > Signed-off-by: Valentin Longchamp Applied to u-boot/

Re: [U-Boot] [U-Boot, 1/4] km/common: stop u-boot only if someone press

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 04:15:19PM +0100, Valentin Longchamp wrote: > From: Holger Brunck > > To prevent u-boot to stop accidently e.g. due to line noise on the > serial line, we now use the option CONFIG_AUTOBOOT_KEYED. We choose the > key for this. > > Signed-off-by: Holger Brunck > Signed-

Re: [U-Boot] [U-Boot, 1/4] arm/km_kirkwood: remove KM_ENV_BUS and use CONFIG_I2C_ENV_EEPROM_BUS

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 03:01:14PM +0100, Valentin Longchamp wrote: > KM_ENV_BUS was used for nothing else than an direct assignment to > CONFIG_I2C_ENV_EEPROM_BUS. To avoid this, directly use > CONFIG_I2C_ENV_EEPROM_BUS instead. > > Patchwork: http://patchwork.ozlabs.org/patch/399411/ > Signed-o

Re: [U-Boot] [U-Boot, 3/4] arm/mgcoge3un: check dip_switch at startup

2015-11-18 Thread Tom Rini
On Fri, Nov 13, 2015 at 03:01:16PM +0100, Valentin Longchamp wrote: > From: Holger Brunck > > Similar to kmcoge5un we need to check the dip switch at startup > connected to the kirkwood at MPP43. If it's set we need to set the > actual_bank to zero to boot from SW bank zero. Additional to kmcoge

Re: [U-Boot] [U-Boot, v3] board_init: Change the logic to setup malloc_base

2015-11-18 Thread Tom Rini
On Thu, Nov 12, 2015 at 12:30:19PM -0200, Fabio Estevam wrote: > Prior to commit 5ba534d247d418 ("arm: Switch 32-bit ARM to using generic > global_data setup") we used to have assembly code that configured the > malloc_base address. > > Since this commit we use the board_init_f_mem() function in

Re: [U-Boot] [U-Boot,v2] common: add CMD_GPIO to Kconfig

2015-11-18 Thread Tom Rini
On Wed, Nov 11, 2015 at 09:39:33PM +0800, Thomas Chou wrote: > Add CMD_GPIO to Kconfig and run tools/moveconfig.py . > > Signed-off-by: Thomas Chou > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] git-mailrc: Add Bin as a maintainer of x86

2015-11-18 Thread Tom Rini
On Tue, Nov 10, 2015 at 06:13:34PM -0800, Bin Meng wrote: > This updates git-mailrc to add me as a maintainer of x86. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot, v2] omap3: cm-t3517: add board specific get_board_rev()

2015-11-18 Thread Tom Rini
On Tue, Nov 10, 2015 at 03:17:44PM +0200, Dmitry Lifshitz wrote: > CM-T3517 has several HW revisions. > Add board specific get_board_rev() callback to retrieve revision number. > > Signed-off-by: Dmitry Lifshitz > Reviewed-by: Igor Grinberg Applied to u-boot/master, thanks! -- Tom signatur

Re: [U-Boot] [U-Boot, V4, 12/13] arm: mx6: cm-fx6: define fallback boot devices for spl

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:53PM +0200, Nikita Kiryanov wrote: > Use spl alternate boot device feature to define fallback to > the main boot device as it is defined by hardware. > > Signed-off-by: Nikita Kiryanov > Cc: Igor Grinberg > Cc: Stefano Babic > Cc: Tom Rini > Reviewed-by: Tom Rini

Re: [U-Boot] board/ti/am335x: add support for BeagleBone Green

2015-11-18 Thread Tom Rini
On Wed, Nov 11, 2015 at 09:10:52AM -0600, robertcnel...@gmail.com wrote: > SeeedStudio BeagleBone Green (BBG) is clone of the BeagleBone Black (BBB) > minus > the HDMI port and addition of two Grove connectors (i2c2 and usart2). > > This board can be identified by the 1A value after A335BNLT (BB

Re: [U-Boot] [U-Boot, V4, 13/13] spl: mmc: add support for BOOT_DEVICE_MMC2

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:54PM +0200, Nikita Kiryanov wrote: > Currently the mmc device that SPL looks at is always mmc0, regardless > of the BOOT_DEVICE_MMCx value. This forces some boards to > implement hacks in order to boot from other mmc devices. > > Make SPL take into account the correc

Re: [U-Boot] [U-Boot, V4, 08/13] spl: change return values of spl_*_load_image()

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:49PM +0200, Nikita Kiryanov wrote: > Make spl_*_load_image() functions return a value instead of > hanging if a problem is encountered. This enables main spl code > to make the decision whether to hang or not, thus preparing > it to support alternative boot devices. >

Re: [U-Boot] [U-Boot,V4,11/13] spl: announce boot devices

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:52PM +0200, Nikita Kiryanov wrote: > Now that we support alternative boot devices, it can sometimes be > unclear which boot devices was actually used. Provide a function to > announce which boot devices are attempted during boot. > > Signed-off-by: Nikita Kiryanov >

Re: [U-Boot] [U-Boot, V4, 10/13] spl: add support for alternative boot device

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:51PM +0200, Nikita Kiryanov wrote: > Introduce spl_boot_list array, which defines a list of boot devices > that SPL will try before hanging. By default this list will consist > of only spl_boot_device(), but board_boot_order() can be overridden > by board code to popu

Re: [U-Boot] [U-Boot, V4, 07/13] spl: mmc: get rid of emmc boot code duplication

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:48PM +0200, Nikita Kiryanov wrote: > Get rid of emmc boot code duplication in spl_mmc_load_image() using a switch > case fallthrough into MMCSD_MODE_RAW. Since the #ifdef > CONFIG_SUPPORT_EMMC_BOOT > check is not really necessary, remove it in the process. > > No fu

Re: [U-Boot] [U-Boot, V4, 06/13] spl: mmc: move fs boot into its own function

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:47PM +0200, Nikita Kiryanov wrote: > Move the code that handles fs boot out of spl_mmc_load_image() and into its > own function to reduce the #ifdef complexity of spl_mmc_load_image(). > > No functional changes. > > Signed-off-by: Nikita Kiryanov > Cc: Igor Grinber

Re: [U-Boot] [U-Boot, V4, 09/13] common: spl: move image load to its own function

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:50PM +0200, Nikita Kiryanov wrote: > Refactor spl image load code out of board_init_r and into its own > function. This is a preparation for supporting alternative boot > devices. > > Signed-off-by: Nikita Kiryanov > Cc: Igor Grinberg > Cc: Tom Rini > Cc: Simon Gl

Re: [U-Boot] [U-Boot, V4, 05/13] spl: mmc: get rid of #ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION check

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:46PM +0200, Nikita Kiryanov wrote: > Implement defaults for the raw partition image loading so that the #ifdef > CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION in spl_mmc_load_image() will no > longer be necessary. > > This change makes it possible for mmc_load_image_raw

Re: [U-Boot] [U-Boot, V4, 03/13] spl: mmc: refactor device location code to its own function

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:44PM +0200, Nikita Kiryanov wrote: > Simplify spl_mmc_load_image() code by moving the part that finds the mmc > device > into its own function spl_mmc_find_device(), available in two flavors: DM and > non-DM. > > This refactor fixes a bug in which an error in the de

Re: [U-Boot] [U-Boot, V4, 04/13] spl: mmc: remove #ifdef CONFIG_SPL_OS_BOOT check

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:45PM +0200, Nikita Kiryanov wrote: > Implement default versions of falcon mode functions to make the > CONFIG_SPL_OS_BOOT check in spl_mmc_load_image() unnecessary, thus reducing > its #ifdef complexity. > > No functional changes. > > Signed-off-by: Nikita Kiryanov

Re: [U-Boot] Allow fw env tools to be available as library

2015-11-18 Thread Tom Rini
On Fri, Oct 30, 2015 at 02:57:04PM +0100, Stefano Babic wrote: > Sometimes it can be useful to link the fw_ tools instead > of having the fw_setenv/fw_printenv installed. > Patch exports the tool as library and allowes to link it > with own programs. > > Signed-off-by: Stefano Babic > CC: Tom Ri

Re: [U-Boot] [U-Boot, V4, 02/13] spl: mmc: add break statements in spl_mmc_load_image()

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:43PM +0200, Nikita Kiryanov wrote: > The original intention of the mmc load_image() function was to try multiple > boot modes before failing. This is evident by the lack of break statements > in the switch, and the following line in the default case: > puts("spl: mmc:

Re: [U-Boot] [U-Boot, v2] board: ti: beagle_x15: Rename to indicate support for TI am57xx evms

2015-11-18 Thread Tom Rini
On Thu, Oct 29, 2015 at 04:50:43PM -0500, Kipisz, Steven wrote: > BeagleBoard X15 (http://beagleboard.org/x15) support in u-boot does > actually support two different platform configuration offered by > TI. In addition to BeagleBoard X15, it also supports the TMDXEVM5728 > (or more commonly known

Re: [U-Boot] [U-Boot,V4,01/13] spl: nand: remove code duplication

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:42PM +0200, Nikita Kiryanov wrote: > Remove code duplication in spl_nand_load_image(). > > No functional changes. > > Signed-off-by: Nikita Kiryanov > Cc: Scott Wood > Cc: Igor Grinberg > Acked-by: Scott Wood > Reviewed-by: Simon Glass > Reviewed-by: Heiko Scho

Re: [U-Boot] tools/env: allow config filename to be passed via command line argument

2015-11-18 Thread Tom Rini
On Tue, Oct 27, 2015 at 10:34:49PM +0100, Michael Heimpold wrote: > When for example generating/manipulating SD card/eMMC images which > contain U-Boot and its environment(s), it is handy to use a given > configuration file instead of the compiled-in default one. > And since the default configurat

Re: [U-Boot] [U-Boot, V4, 10/13] spl: add support for alternative boot device

2015-11-18 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:51PM +0200, Nikita Kiryanov wrote: > Introduce spl_boot_list array, which defines a list of boot devices > that SPL will try before hanging. By default this list will consist > of only spl_boot_device(), but board_boot_order() can be overridden > by board code to popu

Re: [U-Boot] [PATCH v2] armv8: fsl-layerscale: Rewrite reserving memory for MC and debug server

2015-11-18 Thread Scott Wood
On Wed, 2015-11-18 at 10:05 -0800, York Sun wrote: > MC and debug server are not board-specific. Instead of reserving > memory in each board file, a weak function is introduced in board_f.c > to replace macro CONFIG_SYS_MEM_TOP_HIDE for more flexibility. > Legacy use of this macro is still supporte

Re: [U-Boot] [PATCH 14/25] dm: tegra: net: Convert tegra boards to driver model for Ethernet

2015-11-18 Thread Simon Glass
Hi Stephen, On 18 November 2015 at 14:35, Stephen Warren wrote: > On 11/16/2015 08:53 PM, Simon Glass wrote: >> >> Adjust all Tegra boards to use driver model for Ethernet, now that the >> required drivers are converted. > > >> diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfi

Re: [U-Boot] [PATCH 14/25] dm: tegra: net: Convert tegra boards to driver model for Ethernet

2015-11-18 Thread Stephen Warren
On 11/16/2015 08:53 PM, Simon Glass wrote: Adjust all Tegra boards to use driver model for Ethernet, now that the required drivers are converted. diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig @@ -14,6 +14,7 @@ config TEGRA_ARMV7_COMMON select DM_GPIO

Re: [U-Boot] [RESEND PATCH v5 1/6] cgtqmx6eval: Add SPI NOR flash support

2015-11-18 Thread Fabio Estevam
Hi Jagan, On Tue, Nov 17, 2015 at 4:07 AM, Jagan Teki wrote: > On 14 November 2015 at 00:19, Otavio Salvador wrote: >> Add SPI NOR support: >> >> => sf probe >> SF: Detected SST25VF032B with page size 256 Bytes, erase size 4 KiB, total 4 >> MiB >> >> Signed-off-by: Otavio Salvador > > I have a

[U-Boot] [PATCH v2] armv8: fsl-layerscale: Rewrite reserving memory for MC and debug server

2015-11-18 Thread York Sun
MC and debug server are not board-specific. Instead of reserving memory in each board file, a weak function is introduced in board_f.c to replace macro CONFIG_SYS_MEM_TOP_HIDE for more flexibility. Legacy use of this macro is still supported. Move the reservation calculation to SoC file. Reduce deb

[U-Boot] [PATCH v6 0/2] Make most DDR non-secure in MMU while keep a small block secure

2015-11-18 Thread York Sun
This set is to change MMU tables so DDR is in non-secure mode that non-secure master such as SDHC DMA can access the data. To mix secure and non-secure MMU entries, the MMU tables themselves have to be in secure memory. A small portion memory is reserved at the end of DDR (before debug server and M

  1   2   >