Re: [U-Boot] [PATCH v3 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-11-02 Thread Simon Glass
On 2 November 2018 at 09:15, Ryder Lee wrote: > This patch adds support for MTK boot image generation. > > Signed-off-by: Weijie Gao > Signed-off-by: Ryder Lee > --- > Makefile | 20 ++ > common/image.c | 1 + > include/image.h | 1 + > scripts/Makefile.spl | 11 + >

Re: [U-Boot] [PATCH v3 04/18] arm: MediaTek: add basic support for MT7629 boards

2018-11-02 Thread Simon Glass
On 2 November 2018 at 09:15, Ryder Lee wrote: > This adds a general board file based on MT7629 SoCs from MediaTek. > > Apart from the generic parts (cpu) we add some low level init codes > and initialize the early clocks. > > Signed-off-by: Ryder Lee > Signed-off-by: Weijie Gao > --- > arch/arm

Re: [U-Boot] Feedback: Device probe during boot

2018-11-02 Thread Simon Glass
Hi Vabhav, On 2 November 2018 at 02:28, Vabhav Sharma wrote: > Hello Maintainer/Owners, > > Please provide your valuable input > > > > Referring ‘[PATCH] drivers: serial: probe all serial devices’ email > regarding unified way to probe device during boot using DM model > > I would like to take th

Re: [U-Boot] [PATCH 00/13] dm: DM_FLAG_PRE_RELOC flag clean up

2018-11-02 Thread Simon Glass
Hi Bin, On 1 November 2018 at 20:25, Bin Meng wrote: > On Sun, Oct 28, 2018 at 9:31 PM Adam Ford wrote: >> >> On Wed, Oct 24, 2018 at 8:32 AM Bin Meng wrote: >> > >> > When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be >> > bound before relocation. However due to a bug in the DM cor

Re: [U-Boot] [PATCH v4 10/11] pinctrl: sandbox: Add get_pin_muxing ops support

2018-11-02 Thread Simon Glass
On 24 October 2018 at 06:10, Patrice Chotard wrote: > Add get_pin_mux ops support to display the pin muxing > description of the sandbox_pins[] > > Signed-off-by: Patrice Chotard > --- > > Changes in v4: None > Changes in v3: None > Changes in v2: None > > drivers/pinctrl/pinctrl-sandbox.c | 18

Re: [U-Boot] [RFC PATCH v3 2/3] tools: Add a tool to get a list of defconfigs based on filters

2018-11-02 Thread Simon Glass
On 26 October 2018 at 05:14, Jean-Jacques Hiblot wrote: > The possible filters are "arch", "vendor", "soc", "cpu" and "arch". > > The list of all the defconfigs is read from boards.cfg. If this file > doesn't exist, then tools/genboardscfg.py is called to generate it. > > Signed-off-by: Jean-Jacqu

Re: [U-Boot] [PATCH v2 27/29] dm: core: add missing prototype for ofnode_read_u64

2018-11-02 Thread Simon Glass
On 30 October 2018 at 06:55, Lukas Auer wrote: > Signed-off-by: Lukas Auer > --- > > Changes in v2: > - Move prototype location to match the location of the function in > ofnode.c > > include/dm/ofnode.h | 10 ++ > 1 file changed, 10 insertions(+) > Reviewed-by: Simon Glass Thanks. __

Re: [U-Boot] [PATCH] serial: ns16550: add setconfig support

2018-11-02 Thread Simon Glass
On 2 November 2018 at 14:28, Simon Goldschmidt wrote: > Add possibility to update the serial parity used. > > Signed-off-by: Simon Goldschmidt > --- > > drivers/serial/ns16550.c | 43 ++-- > 1 file changed, 41 insertions(+), 2 deletions(-) > Reviewed-by: Simo

Re: [U-Boot] [PATCH v3 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-11-02 Thread Simon Glass
On 2 November 2018 at 09:15, Ryder Lee wrote: > This patch adds pinctrl support for MT7629 SoC. The IO core found on > the SoC has the registers for pinctrl, pinconf and gpio mixed up in > the same register range. Hence the driver also implements the gpio > functionality through UCLASS_GPIO. > >

Re: [U-Boot] [RFC PATCH v3 3/3] tools: Add a tool to get an overview of the usage of CONFIG options

2018-11-02 Thread Simon Glass
On 26 October 2018 at 05:14, Jean-Jacques Hiblot wrote: > configs2csv.py is tool that allow to check how some options are used for a > particular subset of platforms. > The purpose is to identify the targets that are actually using one or more > options of interest. > For example, it can tell what

Re: [U-Boot] [PATCH] dm: serial: fix comment on dm_serial_ops setconfig

2018-11-02 Thread Simon Glass
On 2 November 2018 at 14:08, Simon Goldschmidt wrote: > The comment on this function prototype describes nonexistent > parameters. It seems to be copied from 'setparity'. > > Update it to match its the parameter list. > > Signed-off-by: Simon Goldschmidt > --- > > include/serial.h | 4 +--- > 1

Re: [U-Boot] [PATCH v2 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-11-02 Thread Simon Glass
Hi Ryder, On 25 October 2018 at 00:08, Ryder Lee wrote: > Hi Simon, > > On Wed, 2018-10-24 at 21:29 -0600, Simon Glass wrote: >> Hi Ryder, >> >> On 12 October 2018 at 01:00, Ryder Lee wrote: >> > This patch adds pinctrl support for MT7629 SoC. The IO core found on >> > the SoC has the registers

Re: [U-Boot] [RFC PATCH v3 1/3] tools: moveconfig: Add an option to build a fuller database of options

2018-11-02 Thread Simon Glass
On 26 October 2018 at 05:14, Jean-Jacques Hiblot wrote: > "moveconfig -b" will build a database of config options based on the > content of include/config/auto.conf that reflects the .config > > Add a new option '-B' that does essentially the same, except that it uses > the content of u-boot.cfg,

Re: [U-Boot] [PATCH v3 06/18] clk: MediaTek: add clock driver for MT7629 SoC.

2018-11-02 Thread Simon Glass
Hi Ryder, On 2 November 2018 at 09:15, Ryder Lee wrote: > This patch adds clock modules for MediaTek SoCs: > - Shared part: a common driver which contains the general operations > for plls, muxes, dividers and gates so that we can reuse it in future. > > - Specific SoC part: the group of structur

Re: [U-Boot] [PATCH v4 04/11] dm: uclass: Add uclass_foreach_dev_probe

2018-11-02 Thread Simon Glass
On 24 October 2018 at 06:10, Patrice Chotard wrote: > Add uclass_foreach_dev_probe() which iterates through > devices of a given uclass. Devices are probed if necessary > and are ready to use. > > Signed-off-by: Patrice Chotard > --- > > Changes in v4: > - Replace respectively uclass_first_devic

Re: [U-Boot] [PATCH v2 06/18] clk: MediaTek: add clock driver for MT7629 SoC.

2018-11-02 Thread Simon Glass
Hi Ryder, On 25 October 2018 at 00:37, Ryder Lee wrote: > On Wed, 2018-10-24 at 21:29 -0600, Simon Glass wrote: >> Hi Ryder, >> >> On 12 October 2018 at 01:00, Ryder Lee wrote: >> > This patch adds clock modules for MediaTek SoCs: >> > - Shared part: a common driver which contains the general op

Re: [U-Boot] [PATCH v3 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-02 Thread Simon Glass
Hi Ryder, On 2 November 2018 at 09:15, Ryder Lee wrote: > This patch adds an extra operation in ns16550.c to suuport MediaTek > SoCs as we have a highspeed register which influences the calcualtion > of the divisor. > > Note that we don't support the baudrate greater than 115200 currently. > > Si

Re: [U-Boot] [PATCH] spl: fix debug prints for tiny printf

2018-11-02 Thread Simon Glass
On 2 November 2018 at 14:49, Simon Goldschmidt wrote: > Tiny printf does not support %.*s and %lX. Since tiny printf should > be very common in SPL, replace these by %32s (for printing image > name) and %lx. > > Signed-off-by: Simon Goldschmidt > --- > > common/spl/spl.c | 14 ++ > 1

Re: [U-Boot] [PATCH v4 11/11] test/py: test pinmux command

2018-11-02 Thread Simon Glass
On 24 October 2018 at 06:10, Patrice Chotard wrote: > Add pinmux test which test the following commands: > - pinmux list > - pinmux dev > - pinmux status > > Signed-off-by: Patrice Chotard > --- > > Changes in v4: > - Update sandbox_get_pin_muxing() due to get_pin_muxing() >prototype c

Re: [U-Boot] [PATCH v2 11/18] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-11-02 Thread Simon Glass
Hi Ryder, On 25 October 2018 at 00:13, Ryder Lee wrote: > On Wed, 2018-10-24 at 21:29 -0600, Simon Glass wrote: >> Hi Ryder, >> >> On 12 October 2018 at 01:01, Ryder Lee wrote: >> > This patch adds pinctrl support for MT7623 SoC. And most of the >> > structures are used to hold the hardware conf

Re: [U-Boot] [PATCH V2 5/6] configs: sandbox: enable padding pss for rsa signature

2018-11-02 Thread Simon Glass
On 25 October 2018 at 03:29, Philippe Reynes wrote: > Signed-off-by: Philippe Reynes > --- > configs/sandbox_defconfig | 1 + > 1 file changed, 1 insertion(+) > > Changelog: > v2: > - new patch in the serie Reviewed-by: Simon Glass ___ U-Boot mailing

Re: [U-Boot] [PATCH V2 6/6] test: vboot: add padding pss for rsa signature

2018-11-02 Thread Simon Glass
On 25 October 2018 at 03:29, Philippe Reynes wrote: > The padding pss is now supported for rsa signature. > This add test with padding pss on vboot test. > > Signed-off-by: Philippe Reynes > --- > test/py/tests/test_vboot.py | 10 +++--- > test/py/tests/vboot/sign-configs-sha

Re: [U-Boot] [PATCH V2 3/6] rsa: add support of padding pss

2018-11-02 Thread Simon Glass
On 25 October 2018 at 03:29, Philippe Reynes wrote: > We add the support of the padding pss for rsa signature. > This new padding is often recommended instead of pkcs-1.5. > > Signed-off-by: Philippe Reynes > --- > Kconfig | 8 +++ > common/image-sig.c | 6 ++ > include/image.

Re: [U-Boot] [PATCH 3/3] arm64: ls2080a: enable DM support for sata

2018-11-02 Thread Simon Glass
On 21 October 2018 at 20:43, Peng Ma wrote: > Enable related configs to support sata DM feature. > > Signed-off-by: Peng Ma > --- > configs/ls2080aqds_defconfig |5 + > configs/ls2080ardb_defconfig |5 + > 2 files changed, 10 insertions(+), 0 deletions(-) Reviewed-by: Simon Glas

Re: [U-Boot] [PATCH v3 17/18] doc: README.mediatek: Add a simple README for MediaTek

2018-11-02 Thread Simon Glass
Hi Ryder, On 2 November 2018 at 09:15, Ryder Lee wrote: > Add a few notes on how to try out the MediaTek support so far. > > Signed-off-by: Ryder Lee > --- > doc/README.mediatek | 54 > + > 1 file changed, 54 insertions(+) > create mode 1006

Re: [U-Boot] [PATCH v4 01/11] dm: pinctrl: Add get_pin_muxing() ops

2018-11-02 Thread Simon Glass
On 24 October 2018 at 06:10, Patrice Chotard wrote: > Add get_pin_muxing() which allows to display the muxing > of a given pin belonging to a pin-controller. > > Signed-off-by: Patrice Chotard > --- > > Changes in v4: > - Update get_pin_muxing() prototype by adding buffer and buffer's size >

Re: [U-Boot] [PATCH v3 11/18] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-11-02 Thread Simon Glass
On 2 November 2018 at 09:15, Ryder Lee wrote: > This patch adds pinctrl support for MT7623 SoC. And most of the > structures are used to hold the hardware configuration for each > pin. > > Signed-off-by: Ryder Lee > Tested-by: Matthias Brugger > --- > drivers/pinctrl/mediatek/Kconfig

Re: [U-Boot] [PATCH v4 06/11] pinctrl: stm32: Add get_pins_count() ops

2018-11-02 Thread Simon Glass
On 24 October 2018 at 06:10, Patrice Chotard wrote: > Add get_pins_count ops to obtain the number of pins > owns by a pin-controller. > On STM32 SoCs bindings, each pin-controller owns > several gpio banks. Each GPIO bank can own up to 16 pins. > > To obtain the total pins count, walk through each

Re: [U-Boot] [PATCH v4 05/11] cmd: pinmux: Add pinmux command

2018-11-02 Thread Simon Glass
On 24 October 2018 at 06:10, Patrice Chotard wrote: > pinmux command allows to : > - list all pin-controllers available on platforms > - select a pin-controller > - display the muxing of all pins of the current pin-controller >or all pin-controllers depending of given options > > Signed-off

Re: [U-Boot] [PATCH v4 03/11] dm: uclass: Add uclass_next_device_err() to return a valid device

2018-11-02 Thread Simon Glass
On 24 October 2018 at 06:10, Patrice Chotard wrote: > Similarly to uclass_first_device_err(), add uclass_next_device_err() > which returns an error if there are no next devices in that uclass. > > Signed-off-by: Patrice Chotard > --- > > Changes in v4: None > Changes in v3: None > Changes in v2:

Re: [U-Boot] [PATCH v4 07/11] pinctrl: stm32: Add get_pin_name() ops

2018-11-02 Thread Simon Glass
On 24 October 2018 at 06:10, Patrice Chotard wrote: > Add get_pin_name ops to obtain a pin name given a > pin index of a specified pin-controller. > > Signed-off-by: Patrice Chotard > --- > > Changes in v4: > - Use define PINNAME_SIZE from include/dm/pinctrl.h instead of >driver's local one

Re: [U-Boot] [PATCH v4 08/11] pinctrl: stm32: Add get_pin_muxing() ops

2018-11-02 Thread Simon Glass
On 24 October 2018 at 06:10, Patrice Chotard wrote: > Add get_pin_muxing() ops to obtain the pin muxing description > a given pin index. > > Signed-off-by: Patrice Chotard > --- > > Changes in v4: > - Update get_pin_muxing() prototype by adding buffer and buffer's size as >parameters > > Cha

Re: [U-Boot] [PATCH 3/3] arm64: ls1088a: enable DM support for sata

2018-11-02 Thread Simon Glass
On 21 October 2018 at 20:39, Peng Ma wrote: > Enable related configs to support sata DM feature. > > Signed-off-by: Peng Ma > --- > configs/ls1088aqds_defconfig |5 + > configs/ls1088ardb_qspi_defconfig |5 + > 2 files changed, 10 insertions(+), 0 deletions(-) Reviewed-by:

Re: [U-Boot] [PATCH v3 02/19] dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not detected

2018-11-02 Thread Simon Glass
Hi Jean-Jacques, On 22 October 2018 at 08:12, Jean-Jacques Hiblot wrote: > i2c_get_chip_for_busnum() really should check the presence of the chip on > the bus. Most of the users of this function assume that this is done. > > Signed-off-by: Jean-Jacques Hiblot > > --- > > Changes in v3: > - remov

Re: [U-Boot] [PATCH v3 16/19] lib: fdtdec: Add function re-setup the fdt more effeciently

2018-11-02 Thread Simon Glass
On 22 October 2018 at 08:12, Jean-Jacques Hiblot wrote: > In some cases it may be useful to be able to change the fdt we have been > using and use another one instead. For example, the TI platforms uses an > EEPROM to store board information and, based on the type of board, > different dtbs are us

Re: [U-Boot] [PATCH 2/3] armv8: dts: fsl-ls2080a: add sata node support

2018-11-02 Thread Simon Glass
On 21 October 2018 at 20:43, Peng Ma wrote: > One ls2080a, there is one SATA 3.0 advanced host controller interface > which is a high-performance SATA solution that delivers comprehensive > and fully-compliant generation 3 (1.5 Gb/s - 6.0 Gb/s) serial ATA > capabilities, in accordance with the ser

Re: [U-Boot] [PATCH 2/3] armv8: dts: fsl-ls1088a: add sata node support

2018-11-02 Thread Simon Glass
On 21 October 2018 at 20:39, Peng Ma wrote: > One ls1088a, there is one SATA 3.0 advanced host controller interface > which is a high-performance SATA solution that delivers comprehensive > and fully-compliant generation 3 (1.5 Gb/s - 6.0 Gb/s) serial ATA > capabilities, in accordance with the ser

Re: [U-Boot] [PATCH 1/3] scsi: ceva: add ls1088a soc support

2018-11-02 Thread Simon Glass
On 21 October 2018 at 20:39, Peng Ma wrote: > > Add ahci compatible support for ls1088a soc. > > Signed-off-by: Peng Ma > --- > depend on: > - https://patchwork.ozlabs.org/patch/982386/ > > drivers/ata/sata_ceva.c | 22 ++ > 1 files changed, 18 insertions(+), 4 dele

Re: [U-Boot] [PATCH 3/3] MIPS: fix linking of standalone programs

2018-11-02 Thread Daniel Schwierzeck
Am 23.09.18 um 19:15 schrieb Daniel Schwierzeck: > Use the global MIPS specific u-boot.lds for linking standalone programs > instead of the outdated ones in examples/standalone/. Also pass --gc-sections > in LDFLAGS_STANDALONE to optimize the size of standalone programs. > Finally remove the depr

Re: [U-Boot] [PATCH 2/3] Kbuild: standalone: do not ignore platform-specific OBJCOPYFLAGS

2018-11-02 Thread Daniel Schwierzeck
Am 23.09.18 um 19:15 schrieb Daniel Schwierzeck: > Currently the OBJCOPYFLAGS are cleared when assigning "-O srec" > or "-O binary" for standalone programs. All flags set by arch-specific > Makefiles are lost. This is bad if an arch demands arch-specific > flags for the objcopy step. > > Signed-

Re: [U-Boot] [PATCH 1/3] Kbuild: add LDFLAGS_STANDALONE

2018-11-02 Thread Daniel Schwierzeck
Am 23.09.18 um 19:15 schrieb Daniel Schwierzeck: > Introduce a new Makefile variable for passing LDFLAGS to standalone > programs. Currently the variable CONFIG_STANDALONE_LOAD_ADDR is > misued on some archs to pass a specific linker script. > > Signed-off-by: Daniel Schwierzeck > --- > > arc

[U-Boot] [PATCH] doc: imx: fix typos in mxsimage.txt

2018-11-02 Thread Michael Heimpold
This fixes two small typos in mxsimage.txt. Signed-off-by: Michael Heimpold --- doc/imx/mkimage/mxsimage.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/imx/mkimage/mxsimage.txt b/doc/imx/mkimage/mxsimage.txt index c3975ee5e6..9159f93a97 100644 --- a/doc/imx/mkima

[U-Boot] [PATCH] doc: imx: fix typo in imximage.txt

2018-11-02 Thread Michael Heimpold
Signed-off-by: Michael Heimpold --- doc/imx/mkimage/imximage.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/imx/mkimage/imximage.txt b/doc/imx/mkimage/imximage.txt index 803682f558..f2cf23c5da 100644 --- a/doc/imx/mkimage/imximage.txt +++ b/doc/imx/mkimage/imximage.tx

Re: [U-Boot] [PATCH 1/3] configs: drop CMD_CACHE from mx23_olinuxino_defconfig

2018-11-02 Thread Michael Heimpold
Am Dienstag, 30. Oktober 2018, 11:35:25 CET schrieb Marek Vasut: > On 10/29/2018 08:21 PM, Michael Heimpold wrote: > > This prevents the warning message > > "No arch specific invalidate_icache_all available!" > > during boot. > > Can you implement it ? The cache support worked on MX23. Hm, I had

Re: [U-Boot] [PATCH] arm: socfpga: check total size of SPL

2018-11-02 Thread Simon Goldschmidt
Am Fr., 2. Nov. 2018, 01:08 hat Marek Vasut geschrieben: > On 11/01/2018 08:26 PM, Simon Goldschmidt wrote: > > On 31.10.2018 11:00, Marek Vasut wrote: > >> On 10/31/2018 06:44 AM, Simon Goldschmidt wrote: > >>> On Tue, Oct 30, 2018 at 11:02 PM Marek Vasut > >>> wrote: > On 10/30/2018 10:30

Re: [U-Boot] [PATCH v3 2/7] configs: net: convert DRIVER_TI_KEYSTONE_NET kconfig

2018-11-02 Thread Joe Hershberger
On Wed, Oct 31, 2018 at 4:26 PM Grygorii Strashko wrote: > > Convert DRIVER_TI_KEYSTONE_NET to Kconfig. > > Reviewed-by: Tom Rini > Acked-by: Joe Hershberger > Signed-off-by: Grygorii Strashko [ ... ] > diff --git a/drivers/net/ti/Kconfig b/drivers/net/ti/Kconfig > index 35a6b5d..c38e273 1006

[U-Boot] [PATCH] spl: fix debug prints for tiny printf

2018-11-02 Thread Simon Goldschmidt
Tiny printf does not support %.*s and %lX. Since tiny printf should be very common in SPL, replace these by %32s (for printing image name) and %lx. Signed-off-by: Simon Goldschmidt --- common/spl/spl.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/common/spl

Re: [U-Boot] [PATCH v4 08/10] armv7r: dts: am654: Add initial support

2018-11-02 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:09PM +0530, Lokesh Vutla wrote: > Add R5 specific dts for am654-evm. > > Signed-off-by: Lokesh Vutla > Signed-off-by: Andreas Dannenberg > Signed-off-by: Keerthy > Signed-off-by: Schuyler Patton > Signed-off-by: James Doublesin Reviewed-by: Tom Rini -- Tom

Re: [U-Boot] test: tee: fix resource leak in dm_test_tee()

2018-11-02 Thread Tom Rini
On Mon, Oct 29, 2018 at 11:41:35AM +0100, Jens Wiklander wrote: > Fixes possible resource leak in dm_test_tee() reported by Coverity. > > Reported-by: Coverity (CID: 184175) > Signed-off-by: Jens Wiklander Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] w1-eeprom: ds24xxx: fix data abort in ds24xxx_probe()

2018-11-02 Thread Tom Rini
On Mon, Oct 22, 2018 at 06:31:07PM +0200, Martin Fuzzey wrote: > Data abort was occurring when using "w1 bus" with a DS24B33 present. > > The abort occurred in the ds24xxx_probe() because the struct w1_device > pointer was NULL. This is because that structure is allocated by > the parent device

Re: [U-Boot] cmd: remove CONFIG_SOURCE support in Makefile

2018-11-02 Thread Tom Rini
On Thu, Oct 25, 2018 at 04:54:42PM +0200, Patrick Delaunay wrote: > This line is no more needed and can be removed. > > Only CONFIG_CMD_SOURCE is defined in Kconfig and > used in defconfig files. > > CONFIG_SOURCE if not defined in source code and > "config SOURCE" is not present in any Kconfig.

Re: [U-Boot] configs: at91: at91sam9x5ek: fix bootcmd for NAND flash

2018-11-02 Thread Tom Rini
On Tue, Oct 23, 2018 at 07:41:33AM +, eugen.hris...@microchip.com wrote: > The default bootcommand needs to be accurate w.r.t the nand memory map > at > http://www.at91.com/linux4sam/bin/view/Linux4SAM/AT91sam9x5ekMainPage#NAND_Flash_demo_Memory_map > > Updated to load kernel + dtb at right

Re: [U-Boot] Please pull ARC changes

2018-11-02 Thread Tom Rini
On Thu, Nov 01, 2018 at 08:41:46PM +, Alexey Brodkin wrote: > Hi Tom, > > The following changes since commit fdaccfeb5e03e18c05be386b8a7c6be02be2cf15: > > Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2018-10-31 > 17:15:55 -0400) > > are available in the Git repository at: >

Re: [U-Boot] [PATCH v6 3/5] sandbox: dma: add dma-uclass test

2018-11-02 Thread Tom Rini
On Mon, Oct 22, 2018 at 04:24:58PM -0500, Grygorii Strashko wrote: > Add a sandbox DMA driver implementation (provider) and corresponding DM > test. > > Signed-off-by: Grygorii Strashko Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] cmd: remoteproc: Fix the base of strtoul for ID conversion from 3 to 10

2018-11-02 Thread Tom Rini
On Wed, Oct 24, 2018 at 11:47:14AM +0530, Keerthy wrote: > Currently the base is 3 fix it 10 so that IDs follow decimal system. > > Signed-off-by: Keerthy > Reviewed-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] power: spl: add SPL_DM_REGULATOR_GPIO in Kconfig

2018-11-02 Thread Tom Rini
On Wed, Oct 24, 2018 at 09:06:50PM +0530, Lokesh Vutla wrote: > The Makefile already tests for SPL_DM_REGULATOR_GPIO, but Kconfig > does not provide it. This adds SPL_DM_REGULATOR_GPIO to Kconfig. > > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Descrip

Re: [U-Boot] arm: ti: boot: Don't read environment partition

2018-11-02 Thread Tom Rini
On Tue, Oct 30, 2018 at 07:57:48PM +0200, Sam Protsenko wrote: > This part should've been remove in commit 88d60db01168 ("arm: ti: boot: > Remove environment partition"), but I missed it somehow. Remove reading > dtb file from environment partition on eMMC, as we don't have it > anymore. > > Sign

Re: [U-Boot] w1: fix data abort if no one wire bus master present

2018-11-02 Thread Tom Rini
On Mon, Oct 22, 2018 at 06:31:08PM +0200, Martin Fuzzey wrote: > When the "w1 bus" command is used with no bus master present > a data abort may occur. > > This is because uclass_first_device() returns zero, but sets the output > struct udevice pointer to NULL in the no device found case. > > Fi

Re: [U-Boot] configs: sama5d2_ptc_ek: read environment from FAT

2018-11-02 Thread Tom Rini
On Tue, Oct 23, 2018 at 08:13:35AM +, andrei.stefane...@microchip.com wrote: > On our demo setup for SD card boot, the u-boot environment > is in a FAT partition. > > This patch changes the default configuration, specifing that > the u-boot environment is in a FAT partition instead of raw MMC

Re: [U-Boot] [PATCH v6 2/5] dma: add channels support

2018-11-02 Thread Tom Rini
On Mon, Oct 22, 2018 at 04:24:57PM -0500, Grygorii Strashko wrote: > From: Álvaro Fernández Rojas > > This adds channels support for dma controllers that have multiple channels > which can transfer data to/from different devices (enet, usb...). > > DMA channel API: > dma_get_by_index() > dma_

Re: [U-Boot] [PATCH v6 1/5] dma: move dma_ops to dma-uclass.h

2018-11-02 Thread Tom Rini
On Mon, Oct 22, 2018 at 04:24:56PM -0500, Grygorii Strashko wrote: > From: Álvaro Fernández Rojas > > Move dma_ops to a separate header file, following other uclass > implementations. While doing so, this patch also improves dma_ops > documentation. > > Reviewed-by: Simon Glass > Signed-off-by

[U-Boot] [PATCH] serial: ns16550: add setconfig support

2018-11-02 Thread Simon Goldschmidt
Add possibility to update the serial parity used. Signed-off-by: Simon Goldschmidt --- drivers/serial/ns16550.c | 43 ++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index f9041aa626..88b

[U-Boot] [PATCH] dm: serial: fix comment on dm_serial_ops setconfig

2018-11-02 Thread Simon Goldschmidt
The comment on this function prototype describes nonexistent parameters. It seems to be copied from 'setparity'. Update it to match its the parameter list. Signed-off-by: Simon Goldschmidt --- include/serial.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/seria

Re: [U-Boot] [PATCH v2] fsl-lsch3: soc: Enable AHB read support for Flexspi controller

2018-11-02 Thread York Sun
On 9/26/18 4:10 AM, Ashish Kumar wrote: > Enable AHB support for Flexspi controller interface meaning > memory can be accessed via md command using absolute addresses > > Signed-off-by: Yogesh Gaur > Signed-off-by: Rajat Srivastava > Signed-off-by: Ashish Kumar > --- > v2: > 1. Rename FSPI to

[U-Boot] [PATCH v3 15/18] ram: MediaTek: add DDR3 driver for MT7629 SoC

2018-11-02 Thread Ryder Lee
This patch adds a DDR3 driver for MT7629 SoC. Signed-off-by: Wu Zou Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- drivers/ram/Makefile | 1 + drivers/ram/mediatek/Makefile | 7 + drivers/ram/mediatek/ddr3-mt7629.c | 766 + 3 fi

[U-Boot] [PATCH v3 17/18] doc: README.mediatek: Add a simple README for MediaTek

2018-11-02 Thread Ryder Lee
Add a few notes on how to try out the MediaTek support so far. Signed-off-by: Ryder Lee --- doc/README.mediatek | 54 + 1 file changed, 54 insertions(+) create mode 100644 doc/README.mediatek diff --git a/doc/README.mediatek b/doc/README.medi

[U-Boot] [PATCH v3 16/18] mmc: mtk-sd: add SD/MMC host controller driver for MT7623 SoC

2018-11-02 Thread Ryder Lee
From: Weijie Gao This patch adds MT7623 host controller driver for accessing SD/MMC. Cc: Jaehoon Chung Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/mmc/Kconfig | 11 + drivers/mmc/Makefile |1 + drivers/mmc/mtk-s

[U-Boot] [PATCH v3 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-11-02 Thread Ryder Lee
This patch adds support for MTK boot image generation. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee --- Makefile | 20 ++ common/image.c | 1 + include/image.h | 1 + scripts/Makefile.spl | 11 + tools/Makefile | 1 + tools/mtk_image.c| 749 +++

[U-Boot] [PATCH v3 04/18] arm: MediaTek: add basic support for MT7629 boards

2018-11-02 Thread Ryder Lee
This adds a general board file based on MT7629 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. Signed-off-by: Ryder Lee Signed-off-by: Weijie Gao --- arch/arm/Kconfig | 16 arch/arm/Make

[U-Boot] [PATCH v3 02/18] arm: dts: MediaTek: add device tree for MT7629

2018-11-02 Thread Ryder Lee
This patch adds MT7629 device tree and the includes it needs. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- arch/arm/dts/Makefile| 3 + arch/arm/dts/mt7629-rfb-u-boot.dtsi | 24 +++ arch/arm/dts/mt7629-rfb.dts | 70 + arch/arm/dts/mt7629

[U-Boot] [PATCH v3 03/18] arm: dts: MediaTek: add device tree for MT7623

2018-11-02 Thread Ryder Lee
This adds device tree for MT7623 development board - Bananapi R2 Detailed hardware information for BPI-R2 which could be found on http://wiki.banana-pi.org/Banana_Pi_BPI-R2. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- arch/arm/dts/Makefile

[U-Boot] [PATCH v3 07/18] clk: MediaTek: add clock driver for MT7623 SoC.

2018-11-02 Thread Ryder Lee
This patch adds a driver for MT7623 clock blocks. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7623.c | 870 ++ 2 files changed, 871 insertions(+) cre

[U-Boot] [PATCH v3 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629

2018-11-02 Thread Ryder Lee
Hello, This is the new round to add U-Boot support for MediaTek SoCs - MT7623n & MT7629, and the most of the drivers are based on mainline Linux, such as clock, timer, mmc, pinctrl, watchdog, power domain and device tree. Current implementation was validated via the FIT image. Thanks, Ryder R

[U-Boot] [PATCH v3 09/18] watchdog: MediaTek: add watchdog driver for MediaTek SoCs

2018-11-02 Thread Ryder Lee
This patch adds a common driver for the Mediatek SoC integrated watchdog. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/mtk_wdt.c | 135 +++

[U-Boot] [PATCH v3 18/18] MAINTAINERS: add an entry for MediaTek

2018-11-02 Thread Ryder Lee
This patch adds an entry for MediaTek. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- MAINTAINERS | 20 1 file changed, 20 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index cf8f73f..9940200 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -157,6 +157,26 @@ T:

[U-Boot] [PATCH v3 13/18] power domain: MediaTek: add power domain driver for MT7623 SoC

2018-11-02 Thread Ryder Lee
This adds power domain (scpsys) support for MT7623 SoC. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- drivers/power/domain/mtk-power-domain.c | 80 + 1 file changed, 80 insertions(+) diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/d

[U-Boot] [PATCH v3 08/18] timer: MediaTek: add timer driver for MediaTek SoCs

2018-11-02 Thread Ryder Lee
This patch adds clock source and clock event for the timer found on the Mediatek SoCs. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/timer/Kconfig | 7 drivers/timer/Makefile| 1 + drivers/timer/mtk_timer.c | 85 +++

[U-Boot] [PATCH v3 11/18] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-11-02 Thread Ryder Lee
This patch adds pinctrl support for MT7623 SoC. And most of the structures are used to hold the hardware configuration for each pin. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/pinctrl/mediatek/Kconfig |4 + drivers/pinctrl/mediatek/Makefile |

[U-Boot] [PATCH v3 06/18] clk: MediaTek: add clock driver for MT7629 SoC.

2018-11-02 Thread Ryder Lee
This patch adds clock modules for MediaTek SoCs: - Shared part: a common driver which contains the general operations for plls, muxes, dividers and gates so that we can reuse it in future. - Specific SoC part: the group of structures used to hold the hardware configuration for each SoC. We take M

[U-Boot] [PATCH v3 05/18] arm: MediaTek: add basic support for MT7623 boards

2018-11-02 Thread Ryder Lee
From: Weijie Gao This adds a general board file based on MT7623 SoCs from MediaTek. As this u-boot is loaded by MTK proprietary preloader, there is no low level initializtion codes. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- arch/arm/mach-mediatek/Kco

[U-Boot] [PATCH v3 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-11-02 Thread Ryder Lee
This patch adds pinctrl support for MT7629 SoC. The IO core found on the SoC has the registers for pinctrl, pinconf and gpio mixed up in the same register range. Hence the driver also implements the gpio functionality through UCLASS_GPIO. This also creates a common file as there might be other ch

[U-Boot] [PATCH v3 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-02 Thread Ryder Lee
This patch adds an extra operation in ns16550.c to suuport MediaTek SoCs as we have a highspeed register which influences the calcualtion of the divisor. Note that we don't support the baudrate greater than 115200 currently. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simo

[U-Boot] [PATCH v3 12/18] power domain: MediaTek: add power domain driver for MT7629 SoC

2018-11-02 Thread Ryder Lee
This adds a power domain driver for the Mediatek SCPSYS unit. The System Control Processor System (SCPSYS) has several power management related tasks in the system. The tasks include thermal measurement, dynamic voltage frequency scaling (DVFS), interrupt filter and lowlevel sleep control. The Sys

[U-Boot] [PATCH V3 11/13] mmc: tmio: sdhi: Implement waiting for DAT0 line state

2018-11-02 Thread Marek Vasut
When the bus switches to 1.8V mode of operation, it is necessary to verify that the card correctly initiated and completed the voltage switch. This is done by reading out the state of DATA0 line. This patch implement support for reading out the state of the DATA0 line, so the MMC core code can cor

[U-Boot] [PATCH V3 06/13] mmc: tmio: Switch to clock framework

2018-11-02 Thread Marek Vasut
Switch the driver to using clk_get_rate()/clk_set_rate() instead of caching the mclk frequency in it's private data. This is required on the SDHI variant of the controller, where the upstream mclk need to be adjusted when using UHS modes. Platforms which do not support clock framework or do not su

[U-Boot] [PATCH V3 07/13] mmc: tmio: Do not set divider to 1 in DDR mode

2018-11-02 Thread Marek Vasut
The TMIO core has a quirk where divider == 1 must not be set in DDR modes. Handle this by setting divider to 2, as suggested in the documentation. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/tmio-common.c | 4 1 file changed, 4 insertions(

[U-Boot] [PATCH V3 13/13] mmc: tmio: sdhi: Merge DTCNTL access into single register write

2018-11-02 Thread Marek Vasut
It is perfectly fine to write th DTCNTL TAP count and enable the SCC sampling clock operation in the same write. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/renesas-sdhi.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --g

[U-Boot] [PATCH V3 08/13] mmc: tmio: Keep generating clock when clock are enabled

2018-11-02 Thread Marek Vasut
The TMIO core has a feature where it can automatically disable clock output when the bus is not in use. While this is useful, it also interferes with switching the bus to 1.8V and other background tasks of the SD/MMC cards, which require clock to be enabled. This patch respects the mmc->clk_disabl

[U-Boot] [PATCH V3 05/13] mmc: tmio: Preinitialize regulator to 3.3V

2018-11-02 Thread Marek Vasut
Preinitialize the SD card signals regulator to 3.3V, which is the default post-reset setting, to be sure the regulator is set to a valid value. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/tmio-common.c | 2 ++ 1 file changed, 2 insertions(+) d

[U-Boot] [PATCH V3 09/13] mmc: tmio: sdhi: Touch SCC only when UHS capable

2018-11-02 Thread Marek Vasut
Add check to avoid touching the SCC tuning registers in case the IP doesn't support them or if the support isn't in place yet. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/renesas-sdhi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

[U-Boot] [PATCH V3 10/13] mmc: tmio: sdhi: Clear HS400 settings when resetting SCC

2018-11-02 Thread Marek Vasut
Make sure to clear HS400 configuration when resetting the SCC block. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/renesas-sdhi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c i

[U-Boot] [PATCH V3 12/13] mmc: tmio: sdhi: Switch CPG settings in UHS modes

2018-11-02 Thread Marek Vasut
Switch CPG settings when transitioning between HS200/HS400/SDR104 and regular modes. This is required for the SCC block to operate correctly. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/renesas-sdhi.c | 28 +++- 1 file c

[U-Boot] [PATCH V3 04/13] mmc: tmio: Configure clock before any other IOS

2018-11-02 Thread Marek Vasut
Configure the clock settings before reconfiguring any other IO settings. This is required when the clock must be stopped before changing eg. the pin configuration or any of the other properties of the bus. Running the clock configuration first allows the MMC core to do just that. Signed-off-by: Ma

[U-Boot] [PATCH V3 02/13] mmc: tmio: Improve error handling

2018-11-02 Thread Marek Vasut
Properly handle return values and abort operations when they are non-zero. This is a minor improvement, which fixes two remaining unchecked return values. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/tmio-common.c | 7 --- 1 file changed, 4

[U-Boot] [PATCH V3 03/13] mmc: tmio: Silence transfer errors when tuning

2018-11-02 Thread Marek Vasut
In case the controller performs card tuning, that is, sends MMC command 19 or 21, silence possible CRC error warning prints. The warnings are bound to happen, since the tuning will fail for some settings while searching for the optimal configuration of the bus and that is perfectly OK. This patch

Re: [U-Boot] [PATCH] armv8: ls1012afrwy: update of env board variables

2018-11-02 Thread York Sun
On 10/12/18 4:01 AM, Pramod Kumar wrote: > ls1012afrwy and ls1012afrdm both boards are variant > of ls1012a based SoC, by default board and board_name > uboot env variables are set as ls1012afrdm. whenever board > is detected as ls1012afrwy, uboot env variables are updated to > ls1012afrwy if it se

[U-Boot] [PATCH V3 01/13] mmc: tmio: Simplify pinmux handling

2018-11-02 Thread Marek Vasut
The SD UHS SDR12, SDR25, SDR50, SDR104, DDR50 and MMC HS200, HS400 modes all use 1.8V signaling, while all the legacy modes use 3.3V signaling. While there are extra modes which use 1.2V signaling, the existing hardware does not support those. Simplify the pinmux such that 3.3V signaling implies l

Re: [U-Boot] [PATCH V2 02/13] mmc: tmio: Switch to clock framework

2018-11-02 Thread Marek Vasut
On 11/02/2018 03:24 AM, Masahiro Yamada wrote: > On Thu, Nov 1, 2018 at 6:39 PM Marek Vasut wrote: >> >> Switch the driver to using clk_get_rate()/clk_set_rate() instead of >> caching the mclk frequency in it's private data. This is required on >> the SDHI variant of the controller, where the upst

Re: [U-Boot] [PATCH V2 02/13] mmc: tmio: Switch to clock framework

2018-11-02 Thread Marek Vasut
On 11/02/2018 03:19 AM, Masahiro Yamada wrote: > On Thu, Nov 1, 2018 at 8:38 PM Masahiro Yamada > wrote: >> >> On Thu, Nov 1, 2018 at 6:39 PM Marek Vasut wrote: >>> >>> Switch the driver to using clk_get_rate()/clk_set_rate() instead of >>> caching the mclk frequency in it's private data. This is

Re: [U-Boot] [PATCH 3/3] pci: layerscape: Add the dts fixup for EP and RC

2018-11-02 Thread York Sun
On 10/25/18 7:01 PM, Xiaowei Bao wrote: > Add the dts fixup when PCI controller work diffferent mode. > > Signed-off-by: Xiaowei Bao > --- > drivers/pci/pcie_layerscape_fixup.c | 25 +++-- > 1 files changed, 23 insertions(+), 2 deletions(-) > > diff --git a/drivers/pci/pci

  1   2   >