[U-Boot] [PATCH v3 04/26] fs: fat: assure iterator's ->dent belongs to ->clust

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In my attempt to re-work write operation, it was revealed that iterator's "clust" does not always point to a cluster to which a current directory entry ("dent") belongs. This patch assures that it is always true by adding "next_clust" which is used solely for dereferencing

[U-Boot] [PATCH v3 03/26] fs: fat: handle "." and ".." of root dir correctly with fat_itr_resolve()

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro FAT's root directory does not have "." nor ".." So care must be taken when scanning root directory with fat_itr_resolve(). Without this patch, any file path starting with "." or ".." will not be resolved at all. Signed-off-by: AKASHI Takahiro --- fs/fat/fat.c | 21

[U-Boot] [PATCH v3 11/26] cmd: fat: add offset parameter to fatwrite

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In this patch, fatwrite command is extended so as to accept an additional parameter of file offset. Signed-off-by: AKASHI Takahiro --- cmd/fat.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmd/fat.c b/cmd/fat.c index

[U-Boot] [PATCH v3 14/26] fs: fat: support mkdir

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In this patch, mkdir support is added to FAT file system. A newly created directory contains only "." and ".." entries. Signed-off-by: AKASHI Takahiro --- fs/fat/fat_write.c | 136 + fs/fs.c| 3 +- include/fat.h

[U-Boot] [PATCH v3 24/26] test/py: fs: add extended write operation test

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In this commit and the following, test scripts for new filesystem functionalities introduced by my patch set, "fs: fat: extend FAT write operations," are provided. In particular, this patch adds test cases for sub-directory write and write with non-zero offset.

[U-Boot] [PATCH v3 25/26] test/py: fs: add fstest/mkdir test

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In this commit, test cases for mkdir interfaces are added as part of "test_fs" test suite. Signed-off-by: AKASHI Takahiro --- test/py/tests/test_fs/conftest.py | 29 +++ test/py/tests/test_fs/test_mkdir.py | 112 2 files changed, 141

[U-Boot] [RFC PATCH v1 0/2] Fix to keystone2 uinitrd fixup logic

2018-09-11 Thread Nicholas Faustini
For ks2 devices with PAE enabled, the function ft_board_setup() (board/ti/ks2_evm/board.c) is supposed to update at runtime the /chosen fdt node by shifting the initrd start/end addresses into the 36b it address space. Unfortunately, this mechanism doesn't work since the /chosen node has not

[U-Boot] [RFC PATCH v1 1/2] fdt: add call to ft_board_setup_ex() for ks2 boards

2018-09-11 Thread Nicholas Faustini
When updating the board FDT, some of the operations are performed by ft_board_setup_ex() and should be executed also by the fdt command. Signed-off-by: Nicholas Faustini --- cmd/fdt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/fdt.c b/cmd/fdt.c index 28de467f96..8a19a3fdbf

Re: [U-Boot] [PATCH] socfpga: stratix10: fix sdram_calculate_size

2018-09-11 Thread Marek Vasut
On 09/10/2018 10:41 PM, Dalon Westergreen wrote: > Incorrect type of size variable results in 0 being > returned for sdram sizes greater than or equal to > 4GB. > > Signed-off-by: Dalon Westergreen > --- > drivers/ddr/altera/sdram_s10.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [U-Boot] [PATCH 2/3] arm: socfpga: stratix10: add CONFIG_SPL_TARGET

2018-09-11 Thread Marek Vasut
On 09/10/2018 07:28 PM, Dalon Westergreen wrote: > Stratix10 combines the u-boot-spl image into the fpga configuration > bitstream so that the SDM can load the processors memory. This > process requires a hex format of the u-boot-spl image. > CONFIG_SPL_TARGET is set to "spl/u-boot-spl.hex" > >

Re: [U-Boot] [PATCH 1/3] common: add spl/u-boot-spl.hex target

2018-09-11 Thread Marek Vasut
On 09/10/2018 07:28 PM, Dalon Westergreen wrote: > Some devices, namely Intel's stratix10 SoC, require u-boot-spl in > a hex format. This patch adds spl/u-boot-spl.hex as a possible > target. > > Signed-off-by: Dalon Westergreen > --- > Makefile | 5 + > 1 file changed, 5 insertions(+) >

Re: [U-Boot] [PATCH v3 01/26] fs: fat: guard the content of include/fat.h

2018-09-11 Thread Alexander Graf
On 11.09.18 08:58, Akashi, Takahiro wrote: > From: AKASHI Takahiro > > The whole content of include/fat.h is private to FAT implementation > and then should be guarded with CONFIG_FS_FAT. > > Signed-off-by: AKASHI Takahiro I thought we could drop this patch now? If you really need it,

[U-Boot] [PATCH v3 16/26] efi_loader: file: support creating a directory

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In efi world, there is no obvious "mkdir" interface, instead, Open() with EFI_FILE_MODE_CREATE in mode parameter and EFI_FILE_DIRECTORY in attributes parameter creates a directory. In this patch, efi_file_open() is extended so as to accept such a combination of parameters

[U-Boot] [PATCH v3 10/26] fs: fat: support write with non-zero offset

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In this patch, all the necessary code for allowing for a file offset at write is implemented. What plays a major roll here is get_set_cluster(), which, in contrast to its counterpart, set_cluster(), only operates on already-allocated clusters, overwriting with data. So,

[U-Boot] [PATCH v3 13/26] fs: fat: remember the starting cluster number of directory

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro The starting cluster number of directory is needed to initialize ".." (parent directory) entry when creating a new directory. Signed-off-by: AKASHI Takahiro --- fs/fat/fat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/fat/fat.c b/fs/fat/fat.c index

Re: [U-Boot] [PATCH v3 0/5] Add get_alt_function ops

2018-09-11 Thread Patrice CHOTARD
Hi Michal On 09/11/2018 07:51 AM, Michal Simek wrote: > On 10.9.2018 18:11, Patrice Chotard wrote: >> >> This series : >> - Add new gpio ops get_alt_function >> - Add get_function and get_alt_function support to stm32 gpio driver >> - Add get_alt_function test > > > I went quickly over

[U-Boot] [RFC PATCH v1 2/2] board: ks2: move uinitrd fixup logic inside ft_board_setup_ex

2018-09-11 Thread Nicholas Faustini
The uinitrd fixup logic should be executed after the FDT /chosen node has been properly populated by fdt_initrd() Signed-off-by: Nicholas Faustini --- board/ti/ks2_evm/board.c | 44 1 file changed, 22 insertions(+), 22 deletions(-) diff --git

[U-Boot] [PATCH v3 08/26] fs: fat: support write with sub-directory path

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In this patch, write implementation is overhauled and rewritten by making full use of directory iterator. The obvious bonus is that we are now able to write to a file with a directory path, like /A/B/C/FILE. Please note that, as there is no notion of "current directory" on

[U-Boot] [PATCH v3 07/26] fs: fat: write returns error code instead of -1

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro It would be good that FAT write function return error code instead of just returning -1 as fat_read_file() does. This patch attempts to address this issue although it is 'best effort (or estimate)' for now. Signed-off-by: AKASHI Takahiro --- fs/fat/fat_write.c | 19

Re: [U-Boot] [PATCH 1/3] aspeed: ast2500: Add AHB clock

2018-09-11 Thread Joel Stanley
On Mon, 10 Sep 2018 at 23:48, Cédric Le Goater wrote: > > The AHB clock is used by the FMC/SPI controllers. > > Signed-off-by: Cédric Le Goater > --- > arch/arm/include/asm/arch-aspeed/scu_ast2500.h | 2 ++ > include/dt-bindings/clock/ast2500-scu.h| 1 + >

[U-Boot] [PATCH v3 21/26] fs-test: fix false positive error at Test Case 12

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro The error message to be matched is wrong. Fix it. Signed-off-by: AKASHI Takahiro --- test/fs/fs-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fs/fs-test.sh b/test/fs/fs-test.sh index 9482239562ea..e002b9105131 100755 ---

[U-Boot] [PATCH v3 18/26] fs: fat: support unlink

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In this patch, unlink support is added to FAT file system. A directory can be deleted only if it is empty. In this implementation, only a directory entry for a short file name will be removed. So entries for a long file name can and should be reclaimed with fsck.

[U-Boot] [PATCH v3 19/26] cmd: fat: add fatrm command

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In this patch, a new command, fatrm, is added so as to delete a file or directory. Signed-off-by: AKASHI Takahiro --- cmd/fat.c | 12 1 file changed, 12 insertions(+) diff --git a/cmd/fat.c b/cmd/fat.c index b685bf70a2b3..4b9a7eaab054 100644 --- a/cmd/fat.c

Re: [U-Boot] [PATCH 1/3] spl: socfpga: remove sfp generation

2018-09-11 Thread Marek Vasut
On 09/10/2018 07:51 PM, Dalon Westergreen wrote: > In preparation to move to using CONFIG_SPL_TARGET, > remove sfp generation targets. > > Signed-off-by: Dalon Westergreen > --- > scripts/Makefile.spl | 12 > 1 file changed, 12 deletions(-) > > diff --git a/scripts/Makefile.spl

Re: [U-Boot] [PATCH] linux/compat.h: Add netdev_### log macros

2018-09-11 Thread Bin Meng
Hi Joe, On Fri, Jul 27, 2018 at 2:52 AM Joe Hershberger wrote: > > On Thu, Jul 26, 2018 at 5:15 AM, Bin Meng wrote: > > Currently there are two ethernet drivers (mvneta.c and mvpp2.c) that > > has netdev_### (eg: netdev_dbg) log macros defined in its own driver > > file. This adds these log

[U-Boot] [PATCH v3 06/26] fs: fat: check and normalize file name

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro FAT file system's long file name support is a bit complicated and has some restrictions on its naming. We should be careful about it especially for write as it may easily end up with wrong file system. normalize_longname() check for the rules and normalize a file name if

[U-Boot] [PATCH v3 09/26] fs: fat: refactor write interface for a file offset

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro The current write implementation is quite simple: remove existing clusters and then allocating new ones and filling them with data. This, inevitably, enforces always writing from the beginning of a file. As the first step to lift this restriction, fat_file_write() and

[U-Boot] [PATCH v3 05/26] Revert "fs: fat: cannot write to subdirectories"

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro This reverts commit 0dc1bfb7302d220a48364263d5632d6d572b069b. The succeeding patch series will supersede it. Signed-off-by: AKASHI Takahiro --- fs/fat/fat_write.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/fs/fat/fat_write.c

[U-Boot] [PATCH v3 12/26] fs: add mkdir interface

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro "mkdir" interface is added to file operations. This is a preparatory change as mkdir support for FAT file system will be added in next patch. Signed-off-by: AKASHI Takahiro --- fs/fs.c | 45 + include/fs.h | 10 ++

[U-Boot] [PATCH v3 23/26] test/py: convert fs-test.sh to pytest

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In this commit, the same set of test cases as in test/fs/fs-test.sh is provided using pytest framework. Actually, fs-test.sh provides three variants:"sb" (sb command), "nonfs" (fatxx and etc.) and "fs" (hostfs), and this patch currently supports only "nonfs" variant; So it

[U-Boot] [PATCH v3 26/26] test/py: fs: add fstest/unlink test

2018-09-11 Thread Akashi, Takahiro
In this commit, test cases for unlink interfaces are added as part of "test_fs" test suite. Signed-off-by: AKASHI Takahiro --- test/py/tests/test_fs/conftest.py| 62 +++ test/py/tests/test_fs/test_unlink.py | 109 +++ 2 files changed, 171 insertions(+)

[U-Boot] [PATCH v3 20/26] efi_loader: implement a file delete

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro 'Delete' will be implemented here by calling fs_unlink() which relies on underlying file system's implementation. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_file.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 00/26] subject: fs: fat: extend FAT write operations

2018-09-11 Thread Akashi, Takahiro
This patch series[1] is an attempt to address FAT write related issues in an effort of running UEFI SCT (Self-Certification Test) to verify UEFI support on u-boot. SCT is a test platform as well as an extensive collection of test cases for UEFI specification. It can run all the tests

[U-Boot] [PATCH v3 01/26] fs: fat: guard the content of include/fat.h

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro The whole content of include/fat.h is private to FAT implementation and then should be guarded with CONFIG_FS_FAT. Signed-off-by: AKASHI Takahiro --- include/fat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fat.h b/include/fat.h index

[U-Boot] [PATCH v3 02/26] fs: fat: extend get_fs_info() for write use

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro get_fs_info() was introduced in major re-work of read operation by Rob. We want to reuse this function in write operation by extending it with additional members in fsdata structure. Signed-off-by: AKASHI Takahiro --- fs/fat/fat.c | 7 +++ include/fat.h | 2 ++ 2

[U-Boot] [PATCH v3 15/26] cmd: fat: add fatmkdir command

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro In this patch, a new command, fatmkdir, is added. Please note that, as there is no notion of "current directory" on u-boot, a directory name specified must contains an absolute directory path as a parent directory. Otherwise, "/" (root directory) is assumed.

[U-Boot] [PATCH v3 22/26] fs-test: update the test result as of v2018.09

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro As far as this patch series has been applied, all the tests should pass. So update the test result summary. Signed-off-by: AKASHI Takahiro --- test/fs/fs-test.sh | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git

[U-Boot] [PATCH v3 17/26] fs: add unlink interface

2018-09-11 Thread Akashi, Takahiro
From: AKASHI Takahiro "unlink" interface is added to file operations. This is a preparatory change as unlink support for FAT file system will be added in next patch. Signed-off-by: AKASHI Takahiro --- fs/fs.c | 40 include/fs.h | 12

Re: [U-Boot] [PATCH v2 01/13] efi_loader: support Unicode text input

2018-09-11 Thread Alexander Graf
On 10.09.18 21:49, Heinrich Schuchardt wrote: > Up to now the EFI_TEXT_INPUT_PROTOCOL only supported ASCII characters. > With the patch it can consume UTF-8 from the console. > > Currently only the serial console and the console can deliver UTF-8. > Local consoles are restricted to ASCII. > >

[U-Boot] [PATCH] ARM: socfpga: Enable DCache on Arria10

2018-09-11 Thread Marek Vasut
Enable DCache, there is no reason for it to be disabled anymore. Signed-off-by: Marek Vasut --- include/configs/socfpga_arria10_socdk.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/socfpga_arria10_socdk.h b/include/configs/socfpga_arria10_socdk.h index

Re: [U-Boot] [U-Boot, 2/4] serial: protect access to serial rx buffer

2018-09-11 Thread Tom Rini
On Fri, Aug 03, 2018 at 01:38:43PM +0200, Patrick Delaunay wrote: > Add test to avoid access to rx buffer when this buffer is empty. > In this case directly call getc() function to avoid issue when tstc() > is not called. > > Signed-off-by: Patrick Delaunay > Reviewed-by: Simon Glass Applied

Re: [U-Boot] [U-Boot,1/4] stm32mp1: activate serial rx buffer

2018-09-11 Thread Tom Rini
On Fri, Aug 03, 2018 at 01:38:42PM +0200, Patrick Delaunay wrote: > Activate the serial rx buffer. > Prepare console MUX activation with vidconsole, and avoid console > performance issue (missing character for copy-paste). > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks!

Re: [U-Boot] [U-Boot,v3,4/4] sandbox: Add serial test

2018-09-11 Thread Tom Rini
On Fri, Aug 03, 2018 at 03:07:41PM +0200, Patrice Chotard wrote: > Signed-off-by: Patrice Chotard > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list

Re: [U-Boot] [U-Boot, v2, u-boot, 2/2] clk: clk_meson: Add mux and div support for reparent and rate setting

2018-09-11 Thread Tom Rini
On Mon, Aug 06, 2018 at 02:49:20PM +0200, Neil Armstrong wrote: > This patch adds support for : > - Rate calculation through muxes and generic dividers > - Basic gate setting propagation > - Reparenting for muxes > - Clock rate setting through generic dividers without reparenting > > Support is

[U-Boot] [PATCH v3 2/5] x86: tangier: pinmux: add API to configure protected pins

2018-09-11 Thread Georgii Staroselskii
This API is going to be used to configure some pins that are protected for simple modification. It's not a comprehensive pinctrl driver but can be turned into one when we need this in the future. Now it is planned to be used only in one place. So that's why I decided not to pollute the codebase

[U-Boot] [PATCH v3 0/5] Add a pinctrl driver for Merrifield to pinmux I2C#6

2018-09-11 Thread Georgii Staroselskii
We have lacked the support for any pinmuxing in U-Boot for Merrifield. A need for pinmuxing some pins has arisen from the fact the I2C#6 is shared with I2C#8 on Merrifield. The latter is not easily accessible because it's a part of a separate MCU we don't have easy access to. I2C#6 can be and

[U-Boot] [PATCH v3 3/5] x86: dts: edison: configure I2C#6 pins

2018-09-11 Thread Georgii Staroselskii
Now that we have the pinctrl driver for Merrifield in place we can make use of it and set I2C#6 pins appropriately. Initial configuration came from the firmware. Which quite likely has been used in the phones, where that is not part of Atom peripheral, is in use. Thus we need to override the

Re: [U-Boot] ARM: CPU: arm926ejs: Consolidate cache routines to common file

2018-09-11 Thread Tom Rini
On Thu, Aug 16, 2018 at 01:23:11PM -0500, Adam Ford wrote: > Four different boards had different options for enabling cache > that were virtually all the same. This consolidates these > common functions into arch/arm/cpu/arm926ejs/cache.c > > This also has the positive side-effect of enabling

Re: [U-Boot] arm: armv7m: remove un-necessary If then instruction

2018-09-11 Thread Tom Rini
On Fri, Aug 31, 2018 at 04:39:36PM -0700, Vikas Manocha wrote: > With gas option -mimplicit-it=always, IT block is inserted by the assembler > for thumb2. > > Signed-off-by: Vikas Manocha Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] cmd: part: use MAX_SEARCH_PARTITIONS for part search

2018-09-11 Thread Tom Rini
On Fri, Sep 07, 2018 at 05:37:36PM +0800, Kever Yang wrote: > Use Macro instead of hard code. > > Signed-off-by: Kever Yang > Reviewed-by: Philipp Tomsich Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [U-Boot, v2, 2/2] board: arm: Add support for Broadcom BCM7260

2018-09-11 Thread Tom Rini
On Wed, Aug 22, 2018 at 06:37:55PM -0400, Thomas Fitzsimmons wrote: > Add support for loading U-Boot on the Broadcom 7260 SoC. This port > assumes Broadcom's BOLT bootloader is acting as the second stage > bootloader, and U-Boot is acting as the third stage bootloader, loaded > as an ELF program

Re: [U-Boot] [U-Boot, 4/4] dm: omap-timer: Update clock rate only if not populated

2018-09-11 Thread Tom Rini
On Thu, Aug 16, 2018 at 06:26:55PM +0530, Lokesh Vutla wrote: > timer_pre_probe() tries to populate the clock rate from DT. omap > timer driver tries to overwrite this value irrespective of the value > populated fro DT. So update this value only when DT doesn't populate > the clock rate. > >

Re: [U-Boot] [Uboot-stm32] [PATCH v3 0/5] Add get_alt_function ops

2018-09-11 Thread Patrice CHOTARD
On 09/11/2018 02:17 PM, Michal Simek wrote: > On 11.9.2018 13:12, Patrice CHOTARD wrote: >> Hi, >> >> On 09/11/2018 12:24 PM, Michal Simek wrote: >>> Hi, >>> >>> On 11.9.2018 09:31, Patrice CHOTARD wrote: Hi Michal On 09/11/2018 07:51 AM, Michal Simek wrote: > On 10.9.2018

[U-Boot] [PATCH v3 4/5] x86: tangier: acpi: add I2C6 node

2018-09-11 Thread Georgii Staroselskii
Now that we have I2C#6 working, it's time to add a corresponsing ACPI binding. Signed-off-by: Georgii Staroselskii Reviewed-by: Andy Shevchenko Reviewed-by: Bin Meng --- arch/x86/include/asm/arch-tangier/acpi/southcluster.asl | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [U-Boot] [PATCH v3 0/5] Add get_alt_function ops

2018-09-11 Thread Patrice CHOTARD
Hi, On 09/11/2018 12:24 PM, Michal Simek wrote: > Hi, > > On 11.9.2018 09:31, Patrice CHOTARD wrote: >> Hi Michal >> >> On 09/11/2018 07:51 AM, Michal Simek wrote: >>> On 10.9.2018 18:11, Patrice Chotard wrote: This series : - Add new gpio ops get_alt_function - Add

Re: [U-Boot] [U-Boot, v3, 2/4] serial: stm32: Replace setparity by setconfig

2018-09-11 Thread Tom Rini
On Fri, Aug 03, 2018 at 03:07:39PM +0200, Patrice Chotard wrote: > Replace stm32_serial_setparity by stm32_serial_setconfig > which allows to set serial bits number, parity and stop > bits number. > Only parity setting is implemented. > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrice

Re: [U-Boot] [U-Boot, v3, 1/4] dm: serial: Replace setparity by setconfig

2018-09-11 Thread Tom Rini
On Fri, Aug 03, 2018 at 03:07:38PM +0200, Patrice Chotard wrote: > Replace setparity by more generic setconfig ops > to allow uart parity, bits word length and stop bits > number change. > > Adds SERIAL_GET_PARITY/BITS/STOP macros. > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrice

Re: [U-Boot] arm: armv7-a: Compile and tune for armv7-a instead of armv5

2018-09-11 Thread Tom Rini
On Sat, Aug 04, 2018 at 04:34:54PM -0500, Adam Ford wrote: > arch/arm/Makefile references armv5 for backwards compatibility with > older compilers. This patch removes those references to armv5, > since by now newer compilers are required which should have armv7 > support enabled. > > The

Re: [U-Boot] [U-Boot,V4,2/2] mmc: fsl_esdhc: enable HS400 feature

2018-09-11 Thread Tom Rini
On Fri, Aug 10, 2018 at 02:07:55PM +0800, Peng Fan wrote: > The strobe dll code is ported from Linux Kernel: > drivers/mmc/host/sdhci-esdhc-imx.c > The comments are from the above file, > "For HS400 eMMC, there is a data_strobe line. This signal is generated > by the device and used for data

Re: [U-Boot] pinctrl: Fix build warning with ARM64

2018-09-11 Thread Tom Rini
On Thu, Aug 16, 2018 at 06:41:49PM +0530, Lokesh Vutla wrote: > Following build warning appears when pinctrl-single is built for ARM64: > > In file included from drivers/pinctrl/pinctrl-single.c:10:0: > drivers/pinctrl/pinctrl-single.c: In function ‘single_configure_pins’: >

[U-Boot] [PATCH V3 1/2] pci: Support parsing PCI controller DT subnodes

2018-09-11 Thread Marek Vasut
The PCI controller can have DT subnodes describing extra properties of particular PCI devices, ie. a PHY attached to an EHCI controller on a PCI bus. This patch parses those DT subnodes and assigns a node to the PCI device instance, so that the driver can extract details from that node and ie.

Re: [U-Boot] PBIAS driver and MMC Interaction in U-Boot Question

2018-09-11 Thread Adam Ford
On Mon, Sep 10, 2018 at 6:40 AM Jean-Jacques Hiblot wrote: > > Hi Adam, > > > On 09/09/2018 14:19, Adam Ford wrote: > > I was having some issues with a DM3730 properly reading the card > > detect on GPIO 127 and attributed it to being related to the pbias > > register. I have since submitted a

[U-Boot] [GIT PULL] u-boot-uniphier/master

2018-09-11 Thread Masahiro Yamada
Hi Tom, Please pull UniPhier updates. Thanks! The following changes since commit f88b6facb87dc4a52f1630eb9d858c0f54c6628e: Prepare v2018.09 (2018-09-10 17:46:42 -0400) are available in the git repository at: git://git.denx.de/u-boot-uniphier.git master for you to fetch changes up to

Re: [U-Boot] include/version.h: workaround sysroot inc order

2018-09-11 Thread Tom Rini
On Thu, Jul 26, 2018 at 10:37:53PM -0500, Matt Weber wrote: > On some systems the host system or even the cross sysroot can > contain a version.h. This leads to the wrong file being picked > up and a PLAIN_VERSION undefined error. > > This workaround symlinks the version.h into the tool folder

Re: [U-Boot] [PATCH] socfpga: stratix10: fix sdram_calculate_size

2018-09-11 Thread Dalon L Westergreen
On Tue, 2018-09-11 at 11:31 +0200, Marek Vasut wrote: > On 09/10/2018 10:41 PM, Dalon Westergreen wrote: > Incorrect type of size variable results in 0 beingreturned for sdram sizes > greater than or equal to4GB. > Signed-off-by: Dalon Westergreen --- > drivers/ddr/altera/sdram_s10.c | 2 +- 1 file

Re: [U-Boot] [PATCH v3 0/5] Add get_alt_function ops

2018-09-11 Thread Michal Simek
On 11.9.2018 13:12, Patrice CHOTARD wrote: > Hi, > > On 09/11/2018 12:24 PM, Michal Simek wrote: >> Hi, >> >> On 11.9.2018 09:31, Patrice CHOTARD wrote: >>> Hi Michal >>> >>> On 09/11/2018 07:51 AM, Michal Simek wrote: On 10.9.2018 18:11, Patrice Chotard wrote: > > This series :

Re: [U-Boot] [U-Boot,v3,3/4] dm: serial: Remove setparity ops

2018-09-11 Thread Tom Rini
On Fri, Aug 03, 2018 at 03:07:40PM +0200, Patrice Chotard wrote: > setparity users has been updated to use new setconfig ops, > so we can safely remove setparity ops > > Signed-off-by: Patrice Chotard > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot, 3/3] Remove includes and PRI* usages in printf() entirely

2018-09-11 Thread Tom Rini
On Mon, Aug 06, 2018 at 08:47:40PM +0900, Masahiro Yamada wrote: > In int-ll64.h, we always use the following typedefs: > > typedef unsigned int u32; > typedef unsigned longuintptr_t; > typedef unsigned long long u64; > > This does not need to match to the compiler's . >

Re: [U-Boot] [U-Boot, 3/4] dm: omap-timer: Use 64bit for counter values

2018-09-11 Thread Tom Rini
On Thu, Aug 16, 2018 at 06:26:54PM +0530, Lokesh Vutla wrote: > In order to handle counter overflows use 64 bit values for counter. > Also load the initial value during probe. > > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] arm: spear: enable GPIO3 and 4 clocks when the GPIO controller driver is built

2018-09-11 Thread Tom Rini
On Fri, Aug 31, 2018 at 04:15:53PM +0200, Quentin Schulz wrote: > There are multiple GPIOs that can be used with the same driver depending > on the CONFIG_GPIO_BASE defined in the controller driver. > > GPIO3 and 4 require a clock to be enabled so let's enable them when the > driver is built. >

Re: [U-Boot] serial: arm_dcc: Add DCC support for V7R based cores

2018-09-11 Thread Tom Rini
On Thu, Aug 16, 2018 at 06:43:56PM +0530, Lokesh Vutla wrote: > DCC is supported on Cortex R series as well. Enable DCC support > for V7R. > > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] tools: mkimage: Ensure munmap unmaps the same length that was mapped

2018-09-11 Thread Tom Rini
On Wed, Aug 29, 2018 at 10:51:14AM +1200, Chris Packham wrote: > From: Mark Tomlinson > > The set_header call in kwbimage.c adds a checksum to the end of the > image in addition to setting up the header. It 'helpfully' updates the > st_size to match the fact that the file is now longer.

Re: [U-Boot] [PATCH v3 0/5] Add get_alt_function ops

2018-09-11 Thread Michal Simek
Hi, On 11.9.2018 09:31, Patrice CHOTARD wrote: > Hi Michal > > On 09/11/2018 07:51 AM, Michal Simek wrote: >> On 10.9.2018 18:11, Patrice Chotard wrote: >>> >>> This series : >>> - Add new gpio ops get_alt_function >>> - Add get_function and get_alt_function support to stm32 gpio driver >>>

Re: [U-Boot] [PATCH v3 10/26] fs: fat: support write with non-zero offset

2018-09-11 Thread Alexander Graf
On 11.09.18 08:59, Akashi, Takahiro wrote: > From: AKASHI Takahiro > > In this patch, all the necessary code for allowing for a file offset > at write is implemented. What plays a major roll here is get_set_cluster(), > which, in contrast to its counterpart, set_cluster(), only operates on >

Re: [U-Boot] [U-Boot, 3/4] console: unify fgetc function when console MUX is deactivated

2018-09-11 Thread Tom Rini
On Fri, Aug 03, 2018 at 01:38:44PM +0200, Patrick Delaunay wrote: > Unify the fgetc function when MUX is activated or not: > - always call tstc() : it is the normal behavior expected > by serial uclass (call tstc then getc) and that avoids > issue when SERIAL_RX_BUFFER is activated > - reload

Re: [U-Boot] [U-Boot,4/4] cli: handle getch error

2018-09-11 Thread Tom Rini
On Fri, Aug 03, 2018 at 01:38:45PM +0200, Patrick Delaunay wrote: > Handle getch error (when getch return 0x0) to avoid display issue > in the console. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,2/2] at91: fix devicetree warnings

2018-09-11 Thread Tom Rini
On Thu, Aug 09, 2018 at 02:12:01PM +0300, Eugen Hristev wrote: > This commit fixes various devicetree warnings in the at91 devicetrees > like: > arch/arm/dts/sama5d36ek_cmp.dtb: Warning (avoid_unnecessary_addr_size): > /gpio_keys: unnecessary #address-cells/#size-cells without "ranges" or child

Re: [U-Boot] gpio: stm32f7: replace ODR update by BSRR write

2018-09-11 Thread Tom Rini
On Thu, Aug 09, 2018 at 11:57:57AM +0200, Patrice Chotard wrote: > Replace clrsetbits on ODR register (2 operations: one read + one write) > by writing on the correct bit (SET or RESET) of the BSRR register > (only 1 write operation). > > Moreover this register if safe for simultaneous access by

Re: [U-Boot] [U-Boot, v2, u-boot, 1/2] power: domain: Add the VPU Power Domain driver

2018-09-11 Thread Tom Rini
On Mon, Aug 06, 2018 at 02:49:19PM +0200, Neil Armstrong wrote: > The Amlogic Meson SoCs embeds a specific Power Domain dedicated to the > Video Processing Unit. > This patch implements support for this power domain in preparation of the > future support for the Video display support in U-Boot. >

Re: [U-Boot] [U-Boot, v2, 1/2] arm: bcm7445: Change serial console index

2018-09-11 Thread Tom Rini
On Wed, Aug 22, 2018 at 06:37:54PM -0400, Thomas Fitzsimmons wrote: > Change the configured serial console index to reflect that it is the > first physical UART, reorder some defconfig lines and move some > environment configuration from bcmstb.h to bcm7445.h. > > Signed-off-by: Thomas

Re: [U-Boot] arm: armv7m: clean up armv7m unified code compilation

2018-09-11 Thread Tom Rini
On Fri, Aug 31, 2018 at 04:57:06PM -0700, Vikas Manocha wrote: > unified syntax should be selected by config ARM_ASM_UNIFIED > > Signed-off-by: Vikas Manocha Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [Uboot-stm32] [PATCH v3 0/5] Add get_alt_function ops

2018-09-11 Thread Michal Simek
On 11.9.2018 15:31, Patrice CHOTARD wrote: > On 09/11/2018 02:17 PM, Michal Simek wrote: >> On 11.9.2018 13:12, Patrice CHOTARD wrote: >>> Hi, >>> >>> On 09/11/2018 12:24 PM, Michal Simek wrote: Hi, On 11.9.2018 09:31, Patrice CHOTARD wrote: > Hi Michal > > On 09/11/2018

[U-Boot] [PATCH v3 1/5] x86: cpu: introduce scu_ipc_raw_command()

2018-09-11 Thread Georgii Staroselskii
This interface will be used to configure properly some pins on Merrifield that are shared with SCU. scu_ipc_raw_command() writes SPTR and DPTR registers before sending a command to SCU. This code has been ported from Linux work done by Andy Shevchenko. Signed-off-by: Georgii Staroselskii

[U-Boot] [PATCH v3 5/5] x86: cpu: add docstring to scu_ipc_command()

2018-09-11 Thread Georgii Staroselskii
These comments were copied from the Linux kernel driver in drivers/platform/x86/intel_scu_ipc.c Signed-off-by: Georgii Staroselskii --- arch/x86/lib/scu.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/x86/lib/scu.c b/arch/x86/lib/scu.c index 4054838..ab945d2 100644 ---

Re: [U-Boot] [U-Boot, 1/2] ARM: dts: Makefile: fix build for at91family

2018-09-11 Thread Tom Rini
On Thu, Aug 09, 2018 at 02:12:00PM +0300, Eugen Hristev wrote: > For at91family, makefile was building unwanted DTBs > Moved them under specific target configuration. > > Signed-off-by: Eugen Hristev Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,1/3] Remove CONFIG_USE_STDINT

2018-09-11 Thread Tom Rini
On Mon, Aug 06, 2018 at 08:47:38PM +0900, Masahiro Yamada wrote: > You do not need to use the typedefs provided by compiler. > > Our compilers are either IPL32 or LP64. Hence, U-Boot can/should > always use int-ll64.h typedefs like Linux kernel, whatever the > typedefs the compiler internally

Re: [U-Boot] [U-Boot, 2/3] arch: types.h: factor out fixed width typedefs to int-ll64.h

2018-09-11 Thread Tom Rini
On Mon, Aug 06, 2018 at 08:47:39PM +0900, Masahiro Yamada wrote: > All architectures have the same definition for s8/16/32/64 > and u8/16/32/64. > > Factor out the duplicated code into . > > BTW, Linux unified the kernel space definition into int-ll64.h > a few years ago as you see in Linux

Re: [U-Boot] arm: stm32: Remove redundant thumb build selection

2018-09-11 Thread Tom Rini
On Fri, Aug 31, 2018 at 04:15:14PM -0700, Vikas Manocha wrote: > All armv7m arch builds are thumb & SYS_THUMB_BUILD is already selected by > CPU_ARMV7M. > > Signed-off-by: Vikas Manocha Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v3] serial: omap: Introduce DM specific omap serial

2018-09-11 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:55:24PM +0530, Lokesh Vutla wrote: > Add driver model support for OMAP_SERIAL while reusing > the functions in ns16550.c > > Signed-off-by: Lokesh Vutla > Reviewed-by: Tom Rini > Tested-by: Derald D. Woods Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] omap3: pandora: Enable DM_SERIAL

2018-09-11 Thread Tom Rini
On Sat, Aug 25, 2018 at 10:40:08PM +0300, Grazvydas Ignotas wrote: > This patch enables DM_SERIAL for the pandora board. Verified that > the default kernel can still be booted with this. > > Signed-off-by: Grazvydas Ignotas Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot,V4,1/2] mmc: add HS400 support

2018-09-11 Thread Tom Rini
On Fri, Aug 10, 2018 at 02:07:54PM +0800, Peng Fan wrote: > Add HS400 support. > Selecting HS400 needs first select HS200 according to spec, so use > a dedicated function for HS400. > Add HS400 related macros. > Remove the restriction of only using the low 6 bits of > EXT_CSD_CARD_TYPE, using all

[U-Boot] [PATCH V3 2/2] pci: Update documentation to make 'compatible' string optional

2018-09-11 Thread Marek Vasut
Reword the documentation to make it clear the compatible string is now optional, yet still matching on it takes precedence over PCI IDs and PCI classes. Signed-off-by: Marek Vasut Cc: Simon Glass Cc: Tom Rini --- V3: No change V2: New patch --- doc/driver-model/pci-info.txt | 14

Re: [U-Boot] [PATCH 3/3] arm; socfpga: stratix10: Add CONFIG_OF_EMBED

2018-09-11 Thread Dalon L Westergreen
On Tue, 2018-09-11 at 23:55 +0200, Marek Vasut wrote: > On 09/10/2018 07:28 PM, Dalon Westergreen wrote: > The dtb should be embedded in the u-boot-spl image so thatthe > CONFIG_SPL_TARGET of spl/u-boot-spl.hex includes it. > This also affects the main u-boot image, so >

Re: [U-Boot] [U-Boot, v2, 4/8] arm: K3: am654: Add support for boot device detection

2018-09-11 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:11PM +0530, Lokesh Vutla wrote: > AM654 allows for booting from primary or backup boot media. > Both media can be chosen individually based on switch settings. > ROM looks for a valid image in primary boot media, if not found > then looks in backup boot media. In

Re: [U-Boot] [U-Boot,v2,3/8] arm: K3: Update _start instruction

2018-09-11 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:10PM +0530, Lokesh Vutla wrote: > On K3 family SoCs, once the ROM loads image on R5, M3 resets R5 and > expects to start executing from 0x0. In order to handle this ROM > updates the boot vector of R5 such that first 64 bytes of image load > address are mapped to

Re: [U-Boot] [GIT PULL] FPGA changes for v2018.11

2018-09-11 Thread Tom Rini
On Tue, Sep 11, 2018 at 12:18:35PM +0200, Michal Simek wrote: > Hi Tom, > > please pull these fpga changes to your tree. > I am not quite sure how to handle spl/bootm fpga code but please keep me > in a loop in connection to these changes. I think there's a bunch of stuff I assigned to you in

Re: [U-Boot] [U-Boot, v2, 1/8] arm: K3: Add initial support for TI's K3 generation of SoCs

2018-09-11 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:08PM +0530, Lokesh Vutla wrote: > Add support for Texas Instruments' K3 Generation Processor > families. > > Signed-off-by: Lokesh Vutla > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 2/8] arm: K3: Add support for AM654 SoC definition

2018-09-11 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:09PM +0530, Lokesh Vutla wrote: > The AM654 device is designed for industrial automation and PLC > controller class platforms among other applications. Introduce > base support for AM654 SoC. > > Signed-off-by: Lokesh Vutla > Reviewed-by: Tom Rini Applied to

Re: [U-Boot] [U-Boot, v2, 13/24] power domain: Add support for multiple powerdomains per device

2018-09-11 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:44PM +0530, Lokesh Vutla wrote: > There are cases where there are more than one power domain > attached to the device inorder to get the device functional. > So add support for enabling power domain based on the index. > > Reviewed-by: Tom Rini > Signed-off-by:

Re: [U-Boot] Fwd: Parallel build is broken

2018-09-11 Thread Max Filippov
On Mon, Sep 10, 2018 at 11:46 AM, Trent Piepho wrote: > On Wed, 2018-09-05 at 06:57 -0500, Adam Ford wrote: >> On Wed, Sep 5, 2018 at 3:46 AM Alex Kiernan wrote: >> > >> > On Tue, Sep 4, 2018 at 3:54 PM Andy Shevchenko >> > wrote: >> > > >> > > On Tue, Sep 4, 2018 at 5:50 PM Andy Shevchenko >>

  1   2   >