Re: [U-Boot] [PATCH] board: ti: DRA7: Add DP83867 TI phy for rev c

2016-03-30 Thread Mugunthan V N
On Wednesday 30 March 2016 11:28 PM, Dan Murphy wrote: > Enable the TI DP83867 Giga bit phy on the > dra7 rev c board. The rx and tx internal > delays are need for this board so the usage > of RGMII_ID is required. > > Signed-off-by: Dan Murphy Acked-by: Mugunthan V N

Re: [U-Boot] [PATCH] dm: core: device: set pinctrl state for pinctrl device

2016-03-30 Thread Peng Fan
Hi Simon, On Sat, Mar 12, 2016 at 07:51:47PM -0700, Simon Glass wrote: >+Masahiro > >On 11 March 2016 at 22:17, Peng Fan wrote: >> We may have pinmux settings for pinctrl device, like the following >> example: >> " >> { >> pinctrl-names = "default"; >>

[U-Boot] [PATCH V2] common: env: support sata device

2016-03-30 Thread Peng Fan
Introduce env support for sata device. 1. Implement write_env/read_env/env_relocate_spec/saveenv/sata_get_env_dev 2. If want to enable this feature, define CONFIG_ENV_IS_IN_SATA, and define CONFIG_SYS_SATA_ENV_DEV or implement your own sata_get_ev_dev. Signed-off-by: Peng Fan

Re: [U-Boot] [PATCH] armv8/fsl-layerscape: add IFC fixup for LS1043A with QSPI enabled

2016-03-30 Thread Scott Wood
On Wed, 2016-03-30 at 06:20 +, Qianyu Gong wrote: > Hi Scott, > > > -Original Message- > > From: Scott Wood [mailto:o...@buserror.net] > > Sent: Wednesday, March 30, 2016 4:45 AM > > To: Qianyu Gong ; u-boot@lists.denx.de; york sun > > > > Cc:

Re: [U-Boot] [PATCH] sf: params: Add support for n25q016a

2016-03-30 Thread Moritz Fischer
Hi Marek, On Wed, Mar 30, 2016 at 5:34 PM, Marek Vasut wrote: > On 03/31/2016 12:23 AM, Moritz Fischer wrote: >> This commits adds support for the N25Q016A, a 16Mbit >> serial NOR flash from Micron. >> >> Signed-off-by: Moritz Fischer >> --- >>

Re: [U-Boot] [PATCH] sf: params: Add support for n25q016a

2016-03-30 Thread Marek Vasut
On 03/31/2016 12:23 AM, Moritz Fischer wrote: > This commits adds support for the N25Q016A, a 16Mbit > serial NOR flash from Micron. > > Signed-off-by: Moritz Fischer > --- > drivers/mtd/spi/sf_params.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

[U-Boot] [PATCH 10/11] arm: lib: Import Thumb1 functions

2016-03-30 Thread Marek Vasut
Import functions into lib1funcs.S which are required for Thumb1 build. These functions come from gcc 5.3.1 release. Signed-off-by: Marek Vasut Cc: Albert Aribaud Cc: Masahiro Yamada Cc: Simon Glass Cc:

[U-Boot] [PATCH 09/11] arm: lib: import muldi3.S from Linux

2016-03-30 Thread Marek Vasut
Import muldi3.S from Linux 4.4.6 , commit 0d1912303e54ed1b2a371be0bba51c384dd57326 on arm32. This file implements __aeabi_lmul and it's alias __muldi3, which is needed when doing Thumb1 builds. This patch also defines CONFIG_THUMB2_KERNEL and CONFIG_ARM_ASM_UNIFIED which is necessary for correct

[U-Boot] [PATCH 07/11] arm: lib: Import __do_div64 from Linux

2016-03-30 Thread Marek Vasut
Import __do_div64 from Linux 4.4.6 , commit 0d1912303e54ed1b2a371be0bba51c384dd57326 on arm32. This function is for some toolchains, which generate _udivmoddi4() for 64 bit division. Since we do not support stack unwinding, instead of importing the whole asm/unwind.h and all the baggage, this

[U-Boot] [PATCH 05/11] arm: lib: Sync libgcc 32b division/modulo operations

2016-03-30 Thread Marek Vasut
Sync the libgcc 32bit division and modulo operations with Linux 4.4.6 , commit 0d1912303e54ed1b2a371be0bba51c384dd57326 . The functions in these four files are present in lib1funcs.S in Linux, so replace these files with lib1funcs.S from Linux. Since we do not support stack unwinding, instead of

[U-Boot] [PATCH 08/11] arm: lib: Repair Warning: conditional infixes are deprecated in unified syntax

2016-03-30 Thread Marek Vasut
Fix the following warning when building for thumb2 target by tweaking the instruction syntax: Warning: conditional infixes are deprecated in unified syntax Signed-off-by: Marek Vasut Cc: Albert Aribaud Cc: Masahiro Yamada

[U-Boot] [PATCH 01/11] arm: config: Introduce CONFIG_SYS_ARM_ARCH

2016-03-30 Thread Marek Vasut
Introduce new helper Kconfig option, which is automatically set to the version of ARM architecture for which the U-Boot is built. This is useful when selecting tuning options in the libgcc imported from Linux kernel. Signed-off-by: Marek Vasut Cc: Albert Aribaud

[U-Boot] [PATCH 03/11] arm: lib: Drop underscore from private libgcc filenames

2016-03-30 Thread Marek Vasut
Drop the underscore from the filenames of files implementing libgcc routines. There is no functional change. This change is done to make sync with Linux kernel easier. Signed-off-by: Marek Vasut Cc: Albert Aribaud Cc: Masahiro Yamada

[U-Boot] [PATCH 02/11] arm: include: Import unified.h from Linux kernel

2016-03-30 Thread Marek Vasut
Import unified.h from Linux kernel 4.4.6 , commit 0d1912303e54ed1b2a371be0bba51c384dd57326 . This header file contains macros used in libgcc functions in Linux kernel on ARM and will be needed for the libgcc sync. Since unified.h defines the W(instr) macro, we must drop this from the macro from

[U-Boot] [PATCH 04/11] arm: lib: Sync libgcc shift operations

2016-03-30 Thread Marek Vasut
Sync the libgcc shift operations with Linux kernel 4.4.6 , commit 0d1912303e54ed1b2a371be0bba51c384dd57326 . Syncing these three files is easy, as there is almost no change in them, except the addition of Thumb support. This patch also defines CONFIG_THUMB2_KERNEL and CONFIG_ARM_ASM_UNIFIED which

[U-Boot] [PATCH 06/11] arm: lib: Fix uldivmod.S build on Thumb2

2016-03-30 Thread Marek Vasut
This assembler source won't build in Thumb2 mode, so fix it adding the necessary Thumb2 conditional macros from unified.h . This patch also defines CONFIG_THUMB2_KERNEL and CONFIG_ARM_ASM_UNIFIED which is necessary for correct build of these files both in ARM and Thumb mode, just like Linux does.

[U-Boot] [PATCH 11/11] lib: Enable private libgcc by default

2016-03-30 Thread Marek Vasut
This patch decouples U-Boot binary from the toolchain on systems where private libgcc is available. Instead of pulling in functions provided by the libgcc from the toolchain, U-Boot will use it's own set of libgcc functions. These functions are usually imported from Linux kernel, which also uses

[U-Boot] Tegra-specific header file location

2016-03-30 Thread Stephen Warren
Masahiro, I'm about to work on some refactoring of the Tegra-specific header files in U-Boot to enable support for another Tegra variant. I'd like to confirm where you think header files should be located before doing that. I believe you want Tegra-specific headers moved into

[U-Boot] [PATCH] sf: params: Add support for n25q016a

2016-03-30 Thread Moritz Fischer
This commits adds support for the N25Q016A, a 16Mbit serial NOR flash from Micron. Signed-off-by: Moritz Fischer --- 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

Re: [U-Boot] [PATCH 5/5] meson: odroid-c2: enable serial

2016-03-30 Thread Beniamino Galvani
On Tue, Mar 29, 2016 at 06:06:42PM -0400, Tom Rini wrote: > ... and do a 'make savedefconfig' and copy the defconfig file to > configs/odroid-c2_defconfig next time :) Good to know, thanks! Beniamino ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 5/5] meson: odroid-c2: enable serial

2016-03-30 Thread Beniamino Galvani
On Mon, Mar 28, 2016 at 10:58:34AM +0200, Carlo Caione wrote: > On Sun, Mar 27, 2016 at 10:22 PM, Beniamino Galvani > wrote: > > Enable serial support in the ODROID-C2 configuration. > > > > Signed-off-by: Beniamino Galvani > > --- > >

Re: [U-Boot] [PATCH V3 1/3] drivers: block: add block device cache

2016-03-30 Thread Stephen Warren
On 03/30/2016 11:34 AM, Eric Nelson wrote: Thanks again for the detailed review, Stephen. On 03/30/2016 07:36 AM, Stephen Warren wrote: On 03/28/2016 11:05 AM, Eric Nelson wrote: Add a block device cache to speed up repeated reads of block devices by various filesystems. diff --git

Re: [U-Boot] [PATCH 0/5] Basic support for Amlogic GXBaby and ODROID-C2

2016-03-30 Thread Beniamino Galvani
> Thank you Beniamino for this. Could you please keep > linux-me...@googlegroups.com in CC for the next submissions? I will surely do, thanks for testing. Beniamino ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH] board: ti: DRA7: Add DP83867 TI phy for rev c

2016-03-30 Thread Dan Murphy
Enable the TI DP83867 Giga bit phy on the dra7 rev c board. The rx and tx internal delays are need for this board so the usage of RGMII_ID is required. Signed-off-by: Dan Murphy --- board/ti/dra7xx/evm.c| 6 ++ include/configs/dra7xx_evm.h | 1 + 2 files changed, 7

Re: [U-Boot] [PATCH V3 1/3] drivers: block: add block device cache

2016-03-30 Thread Eric Nelson
Hi Tom, On 03/30/2016 08:19 AM, Tom Rini wrote: > On Wed, Mar 30, 2016 at 08:36:21AM -0600, Stephen Warren wrote: >> On 03/28/2016 11:05 AM, Eric Nelson wrote: >>> Add a block device cache to speed up repeated reads of block devices by >>> various filesystems. >>> [snip] >>> @@ -268,6 +268,8 @@

Re: [U-Boot] [PATCH V3 1/3] drivers: block: add block device cache

2016-03-30 Thread Eric Nelson
Thanks again for the detailed review, Stephen. On 03/30/2016 07:36 AM, Stephen Warren wrote: > On 03/28/2016 11:05 AM, Eric Nelson wrote: >> Add a block device cache to speed up repeated reads of block devices by >> various filesystems. >> >> + >> +printf("hits: %u\n" >> + "

[U-Boot] [PATCH 7/6] sunxi: Reserve ATF memory space on A64

2016-03-30 Thread Alexander Graf
On the A64 we usually boot with ATF running in EL3. ATF as it is available today resides in the first 16MB of RAM. So we should make sure we reserve that space in our memory maps. Signed-off-by: Alexander Graf --- board/sunxi/board.c | 9 + 1 file changed, 9 insertions(+)

Re: [U-Boot] [RFC v1 PATCH 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-03-30 Thread York Sun
On 03/29/2016 11:53 PM, Mario Six wrote: > To enable DM on MPC85xx, we need pre-relocation malloc, which is > implemented in this patch. > > Signed-off-by: Mario Six > Cc: York Sun > Cc: Simon Glass > --- >

Re: [U-Boot] [PATCH V3 1/3] drivers: block: add block device cache

2016-03-30 Thread Stephen Warren
On 03/30/2016 09:19 AM, Tom Rini wrote: On Wed, Mar 30, 2016 at 08:36:21AM -0600, Stephen Warren wrote: On 03/28/2016 11:05 AM, Eric Nelson wrote: Add a block device cache to speed up repeated reads of block devices by various filesystems. This small amount of cache can dramatically speed up

Re: [U-Boot] [PATCH V3 1/3] drivers: block: add block device cache

2016-03-30 Thread Tom Rini
On Wed, Mar 30, 2016 at 08:36:21AM -0600, Stephen Warren wrote: > On 03/28/2016 11:05 AM, Eric Nelson wrote: > >Add a block device cache to speed up repeated reads of block devices by > >various filesystems. > > > >This small amount of cache can dramatically speed up filesystem > >operations by

Re: [U-Boot] [PATCH V3 1/3] drivers: block: add block device cache

2016-03-30 Thread Stephen Warren
On 03/28/2016 11:05 AM, Eric Nelson wrote: Add a block device cache to speed up repeated reads of block devices by various filesystems. This small amount of cache can dramatically speed up filesystem operations by skipping repeated reads of common areas of a block device (typically directory

[U-Boot] [PATCH] efi_loader: Always allocate the highest available address

2016-03-30 Thread Alexander Graf
Some EFI applications (grub2) expect that an allocation always returns the highest available memory address for the given size. Without this, we may run into situations where the initrd gets allocated at a lower address than the kernel. This patch fixes booting in such situations for me.

Re: [U-Boot] Problem with sf write on Arria 5.

2016-03-30 Thread Chin Liang See
On Wed, 2016-03-30 at 13:46 +, Bakhvalov, Denis (Nokia - PL/Wroclaw) wrote: > Hi Marek, > > > Do "dcache off" and then update the flash again, it will work. > > That's > > the cache issue which we cannot track down. > > Thank you for you quick support! > > Maybe it's worth to invent a

[U-Boot] Custom configurations

2016-03-30 Thread Jan Danielsson
Hello, Is there a way to pass a custom out-of-tree configuration to the build system? This page seems to have an unofficial patch which outlines exactly what we'd like to do: https://boundarydevices.com/customizing-u-boot-on-i-mx/ We have a script which builds an embedded system; it's

Re: [U-Boot] Problem with sf write on Arria 5.

2016-03-30 Thread Marek Vasut
On 03/30/2016 03:46 PM, Bakhvalov, Denis (Nokia - PL/Wroclaw) wrote: > Hi Marek, > >> Do "dcache off" and then update the flash again, it will work. That's >> the cache issue which we cannot track down. > > Thank you for you quick support! > > Maybe it's worth to invent a temporary solution? >

Re: [U-Boot] Problem with sf write on Arria 5.

2016-03-30 Thread Bakhvalov, Denis (Nokia - PL/Wroclaw)
Hi Marek, > Do "dcache off" and then update the flash again, it will work. That's > the cache issue which we cannot track down. Thank you for you quick support! Maybe it's worth to invent a temporary solution? Because in other way users will face problems which are hard to find (I've been

Re: [U-Boot] Problem with sf write on Arria 5.

2016-03-30 Thread Marek Vasut
On 03/30/2016 01:14 PM, Bakhvalov, Denis (Nokia - PL/Wroclaw) wrote: > Dear U-Boot support, > > I’m migrating to new U-Boot version from 2013 and now have problem with > writing to the flash. > > I have custom board with Altera Arria 5 SocFpga. > U-Boot version: 2016.03-rc1 > My flash: > SF:

Re: [U-Boot] Issue with ALLOC_CACHE_ALIGN_BUFFER in env_relocate_spec and

2016-03-30 Thread Vincent
Hi, In the end, it seems that the issue is neither MMC nor Normal/Secure world related, but cache related. Between SPL and u-boot, I run a small piece of secure software, which turns on the ACTLR.SMP bit. According to cortex a7 TRM, this is mandatory to enable caching. Setting the MMU is not

[U-Boot] [PATCH] ARM: uniphier: remove CONFIG_ARP_TIMEOUT define

2016-03-30 Thread Masahiro Yamada
I no longer see the problem claimed in the comment block. Rather, the 0.5 msec timeout seems too short for some TFTP servers. Drop the CONFIG_ARM_TIMEOUT to fall back to the 5 sec timeout. Signed-off-by: Masahiro Yamada --- include/configs/uniphier.h | 8

[U-Boot] [PATCH v2 0/2] ARM: uniphier: add ARMv8 SoCs support

2016-03-30 Thread Masahiro Yamada
Masahiro Yamada (2): ARM: uniphier: add PH1-LD20 SoC support ARM: uniphier: add PH1-LD11 SoC support arch/arm/mach-uniphier/Kconfig| 10 +++ arch/arm/mach-uniphier/Makefile | 1 + arch/arm/mach-uniphier/arm64/Makefile | 8 +++

[U-Boot] [PATCH v2 2/2] ARM: uniphier: add PH1-LD11 SoC support

2016-03-30 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v2: - newly added arch/arm/mach-uniphier/Kconfig | 5 +++ arch/arm/mach-uniphier/board_late_init.c | 1 + arch/arm/mach-uniphier/boards.c | 20 arch/arm/mach-uniphier/cpu_info.c

[U-Boot] [PATCH v2 1/2] ARM: uniphier: add PH1-LD20 SoC support

2016-03-30 Thread Masahiro Yamada
This is the first ARMv8 SoC from Socionext Inc. Signed-off-by: Masahiro Yamada --- Changes in v2: - Enable booti command - add early_clk_init func() arch/arm/mach-uniphier/Kconfig| 5 ++ arch/arm/mach-uniphier/Makefile

[U-Boot] [PATCH] cosmetic: Fix typos "privide"

2016-03-30 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/clk/clk-ld4.c | 2 +- arch/arm/mach-uniphier/clk/clk-pro4.c | 2 +- arch/arm/mach-uniphier/clk/clk-pro5.c | 2 +- arch/arm/mach-uniphier/clk/clk-pxs2.c | 2

[U-Boot] [PATCH] ARM: uniphier: rename function names ph1_* to uniphier_*

2016-03-30 Thread Masahiro Yamada
Eliminate the "ph1"_ prefixes from function names because "uniphier_" describes the SoC familiy better. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm32/debug_ll.S| 28 +++ arch/arm/mach-uniphier/bcu/bcu-ld4.c | 2 +-

[U-Boot] Problem with sf write on Arria 5.

2016-03-30 Thread Bakhvalov, Denis (Nokia - PL/Wroclaw)
Dear U-Boot support, I'm migrating to new U-Boot version from 2013 and now have problem with writing to the flash. I have custom board with Altera Arria 5 SocFpga. U-Boot version: 2016.03-rc1 My flash: SF: Detected S25FL512S_256K with page size 512 Bytes, erase size 256 KiB, total 64 MiB I'm

[U-Boot] [PATCH v1] tpm: Fix uclass_first_device error handling

2016-03-30 Thread Mario Six
uclass_first_device might return NULL for the device despite a zero return code. Currently, this might lead to null pointer dereferencing, since the returned device is not properly checked. Hence, always check if the device returned from uclass_first_device is NULL and return -ENODEV if it is.

Re: [U-Boot] [PATCH 0/6] Add Pine64 support

2016-03-30 Thread Hans de Goede
Hi, On 29-03-16 18:08, Alexander Graf wrote: On 29.03.16 17:45, Hans de Goede wrote: Hi, On 03/29/2016 05:29 PM, Alexander Graf wrote: The Pine64 is a kickstarter backed SBC that runs on the Allwinner A64 SoC. This SoC can run AArch64 code, so this patch set lifts all arm version

[U-Boot] [RFC v1 PATCH 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-03-30 Thread Mario Six
To enable DM on MPC85xx, we need pre-relocation malloc, which is implemented in this patch. Signed-off-by: Mario Six Cc: York Sun Cc: Simon Glass --- arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 8

Re: [U-Boot] [PATCH] armv8/fsl-layerscape: add IFC fixup for LS1043A with QSPI enabled

2016-03-30 Thread Qianyu Gong
Hi Scott, > -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Wednesday, March 30, 2016 4:45 AM > To: Qianyu Gong ; u-boot@lists.denx.de; york sun > > Cc: Mingkai Hu > Subject: Re: [PATCH]