Re: [U-Boot] [PATCH 3/4] sunxi: Add default partition scheme

2017-11-29 Thread Maxime Ripard
Hi, On Thu, Nov 30, 2017 at 12:23:06AM +, André Przywara wrote: > Hi Maxime, > > On 28/11/17 10:34, Maxime Ripard wrote: > > The partitions variable is especially useful to create a partition table > > from U-Boot, either directly from the U-Boot shell, or through flashing > > tools like

Re: [U-Boot] [PATCH] mtd: cfi: Fix checking status register feature

2017-11-29 Thread Stefan Roese
On 21.11.2017 10:54, Marek Vasut wrote: On 11/21/2017 03:52 AM, York Sun wrote: On 11/18/2017 11:09 AM, York Sun wrote: Commit 72443c7f7d21 ("mtd: cfi: Add support for status register polling") added a feature check to determine if status register is available for certain flash chips. The

[U-Boot] [PATCH 1/3] env: enable accessing the environment in an EXT4 partition

2017-11-29 Thread Jorge Ramirez-Ortiz
For example to store the environment in a file named "/uboot.env" in MMC "0", where partition "1" contains the EXT4 filesystem, the following configs should be added to the board's default config: CONFIG_ENV_IS_IN_EXT4=y CONFIG_ENV_EXT4_DEVICE_AND_PART="0:1"

[U-Boot] [PATCH 3/3] board: Add Qualcomm Dragonboard 820C support

2017-11-29 Thread Jorge Ramirez-Ortiz
This commit adds support for 96Boards Dragonboard820C. The board is based on APQ8086 Qualcomm Soc, complying with the 96Boards specification. Features - 4x Kyro CPU (64 bit) up to 2.15GHz - USB2.0 - USB3.0 - ISP - Qualcomm Hexagon DSP - SD 3.0 (UHS-I) - UFS 2.0 - Qualcomm Adreno 530 GPU

[U-Boot] [PATCH 2/3] arm: mach-snapdragon: refactor clock driver

2017-11-29 Thread Jorge Ramirez-Ortiz
In preparation to add support for the Dragonboard820c (APQ8096), refactor the current Snapdragon clock driver. No new functionality has been added. --- arch/arm/mach-snapdragon/Makefile | 6 +- arch/arm/mach-snapdragon/clock-apq8016.c | 181 ++---

[U-Boot] [PATCH V10 4/4] rockchip: rk3288: enable rockusb support on rk3288 based device

2017-11-29 Thread Eddie Cai
this patch enable rockusb support on rk3288 based device. Signed-off-by: Eddie Cai Reviewed-by: Simon Glass Changes in v10: -rebase to latest mainline U-Boot, add vyasa board support Changes in v9: -fix compile error Changes in v8: -fix compile

[U-Boot] [PATCH V10 3/4] rockchip:usb: add a simple readme for rockusb

2017-11-29 Thread Eddie Cai
add a simple readme to introduce rockusb and tell people how to use it Signed-off-by: Eddie Cai Reviewed-by: Simon Glass Changes in v10: -none Changes in v9: -none Changes in v8: -none Changes in v7: -none Changes in v6: -none Changes in v5:

[U-Boot] [PATCH V10 2/4] usb: rockchip: add rockusb command

2017-11-29 Thread Eddie Cai
this patch add rockusb command. the usage is rockusb e.g. rockusb 0 mmc 0 Signed-off-by: Eddie Cai Reviewed-by: Simon Glass Changes in v10: -fix build error Changes in v9: -none Changes in v8: -none Changes in v7: -none Changes

[U-Boot] [PATCH V10 1/4] usb: rockchip: add the rockusb gadget

2017-11-29 Thread Eddie Cai
this patch implement rockusb protocol on the device side. this is based on USB download gadget infrastructure. the rockusb function implements the rd, wl, rid commands. it can work with rkdeveloptool Signed-off-by: Eddie Cai Reviewed-by: Simon Glass

[U-Boot] [PATCH V10 0/4]introduce Rockchip rockusb

2017-11-29 Thread Eddie Cai
Changes in v10: -rebase to latest mainline U-Boot -fix build error Changes in v9: -rebase to the latest mainline -fix compile error Changes in v8: -rebase to v2017.09-rc2 -fix compile error Changes in v7: -use imply in the Kconfig to enable rockusb Changes in v6: -enable rockusb in defconfig

[U-Boot] [RESEND PATCH v7 07/10] ddr: fsl: set cdr1 first in case 0.9v VDD is enabled for some SoCs

2017-11-29 Thread Rajesh Bhagat
Sets DDR configuration parameter cdr1 before all other settings to support case 0.9v VDD is enabled for some SoCs Signed-off-by: Ashish Kumar Signed-off-by: Rajesh Bhagat --- drivers/ddr/fsl/fsl_ddr_gen4.c | 4 +++- 1 file changed, 3 insertions(+),

[U-Boot] [RESEND PATCH v7 08/10] ls1088a: ddr: configure DDR for 0.9v for VID support

2017-11-29 Thread Rajesh Bhagat
When VID feature is supported, check the contents of fuse register and configure DDR operate at 0.9v. Signed-off-by: Ashish Kumar Signed-off-by: Rajesh Bhagat --- board/freescale/ls1088a/ddr.c | 21 + 1 file changed, 21

[U-Boot] [RESEND PATCH v7 10/10] ls1088a: Add VID support for QDS and RDB platforms

2017-11-29 Thread Rajesh Bhagat
This patch adds the support for VID on LS1088AQDS and LS1088ARDB systems. It reads the fusesr register and changes the VDD accordingly by adjusting the voltage via LTC3882 regulator. This patch also takes care of the special case of 0.9V VDD is present in fusesr register. In that case,it also

[U-Boot] [RESEND PATCH v7 09/10] common: board_f: vid: Add VID specific API to adjust core voltage

2017-11-29 Thread Rajesh Bhagat
Adds a VID specific API in init_sequence_f and spl code flow namely init_func_vid which is required to adjust core voltage. VID specific code is required in spl, hence moving flag CONFIG_VID out of spl flags. Signed-off-by: Ashish Kumar Signed-off-by: Rajesh Bhagat

[U-Boot] [RESEND PATCH v7 02/10] board: common:vid: Add LS1088A VID Supported voltage values

2017-11-29 Thread Rajesh Bhagat
Adds below voltage values supported by LS1088A Soc: 1.025 V(default), 0.9875V, 0.9750 V, 0.9V, 1.0 V, 1.0125 V, 1.0250 V Signed-off-by: Ashish Kumar Signed-off-by: Rajesh Bhagat --- Changes in v7:

[U-Boot] [RESEND PATCH v7 06/10] board: common: vid: Add support for LTC3882 voltage regulator chip

2017-11-29 Thread Rajesh Bhagat
Restructures common driver to support LTC3882 voltage regulator chip. Signed-off-by: Ashish Kumar Signed-off-by: Rajesh Bhagat --- Changes in v7: None Changes in v6:

[U-Boot] [RESEND PATCH v7 05/10] Kconfig: Add LTC3882 voltage regulator config

2017-11-29 Thread Rajesh Bhagat
Adds below LTC3882 voltage regulator config: CONFIG_VOL_MONITOR_LTC3882_READ CONFIG_VOL_MONITOR_LTC3882_SET Signed-off-by: Ashish Kumar Signed-off-by: Rajesh Bhagat --- Changes in v7:

[U-Boot] [RESEND PATCH v7 04/10] board: common: vid: Move IR chip specific code in flag

2017-11-29 Thread Rajesh Bhagat
Moves IR chip (IR36021) specific code in flag to resolve compilation issue where it is not present. For example, LS1088A is having a new LTC3882 voltage chip. Signed-off-by: Ashish Kumar Signed-off-by: Rajesh Bhagat --- Changes in v7:

[U-Boot] [RESEND PATCH v7 01/10] armv8: lsch3: Add serdes and DDR voltage setup

2017-11-29 Thread Rajesh Bhagat
Adds SERDES voltage and reset SERDES lanes API and makes enable/disable DDR controller support 0.9V API common. Signed-off-by: Ashish Kumar Signed-off-by: Rajesh Bhagat --- Changes in v7:

[U-Boot] [RESEND PATCH v7 03/10] board: common: vid: Add board specific vdd adjust API

2017-11-29 Thread Rajesh Bhagat
Adds a board specific API namely board_adjust_vdd which is required to define the board VDD adjust settings. Signed-off-by: Ashish Kumar Signed-off-by: Rajesh Bhagat --- Changes in v7:

[U-Boot] [RESEND PATCH v7 00/10] Add VID support for QDS and RDB platforms

2017-11-29 Thread Rajesh Bhagat
Adds LTC3882 voltage regulator chip support in common VID driver. And adds VID support for LS1088A QDS and RDB platforms. Rajesh Bhagat (10): armv8: lsch3: Add serdes and DDR voltage setup board: common:vid: Add LS1088A VID Supported voltage values board: common: vid: Add board specific vdd

Re: [U-Boot] [PATCH] dm: blk: Use uclass_find_first/next_device() in blk_first/next_device()

2017-11-29 Thread Bin Meng
On Wed, Nov 29, 2017 at 11:46 PM, Stefan Roese wrote: > This patch changes the calls to uclass_first/next_device() in blk_first/ > next_device() to use uclass_find_first/next_device() instead. These functions > don't prepare the devices, which is correct in this case. > > With this

[U-Boot] Please pull u-boot-x86

2017-11-29 Thread Bin Meng
Hi Tom, The following changes since commit b06c46de632c55f4c39d404c6f0f65e414b31050: Merge tag 'xilinx-for-v2018.01' of git://www.denx.de/git/u-boot-microblaze (2017-11-29 08:26:07 -0500) are available in the git repository at: git://git.denx.de/u-boot-x86.git for you to fetch changes up

Re: [U-Boot] [PATCH v3] x86: lib: Implement standalone __udivdi3 etc instead of libgcc ones

2017-11-29 Thread Bin Meng
On Thu, Nov 30, 2017 at 1:31 PM, Bin Meng wrote: > On Wed, Nov 29, 2017 at 11:23 PM, Stefan Roese wrote: >> This patch removes the inclusion of the libgcc math functions and >> replaces them by functions coded in C, taken from the coreboot >> project. This makes

Re: [U-Boot] [PATCH 1/1] distro bootcmd: define bootloader name for x86

2017-11-29 Thread Bin Meng
On Thu, Nov 30, 2017 at 1:27 PM, Bin Meng wrote: > On Sat, Nov 25, 2017 at 5:32 AM, Heinrich Schuchardt > wrote: >> Currently X86 does not properly support distro defaults. >> This patch is only a partial fix. >> >> It provides the name of the bootloader

Re: [U-Boot] [Patch v2 1/2] driver: net: ldpaa_eth: Add PHY-less SGMII support

2017-11-29 Thread Ashish Kumar
Hello Joe, York, Any comments on V2 series? http://patchwork.ozlabs.org/project/uboot/list/?series=13261 Regards Ashish From: Ashish Kumar Sent: Monday, November 13, 2017 3:07 PM To: u-boot@lists.denx.de Cc: York Sun;

Re: [U-Boot] [PATCH v3] x86: lib: Implement standalone __udivdi3 etc instead of libgcc ones

2017-11-29 Thread Bin Meng
On Wed, Nov 29, 2017 at 11:23 PM, Stefan Roese wrote: > This patch removes the inclusion of the libgcc math functions and > replaces them by functions coded in C, taken from the coreboot > project. This makes U-Boot building more independent from the toolchain > installed /

Re: [U-Boot] [PATCH 1/1] distro bootcmd: define bootloader name for x86

2017-11-29 Thread Bin Meng
On Sat, Nov 25, 2017 at 5:32 AM, Heinrich Schuchardt wrote: > Currently X86 does not properly support distro defaults. > This patch is only a partial fix. > > It provides the name of the bootloader EFI application > for the X86 architecture. > > The architecture dependent file

Re: [U-Boot] [PATCH] arm: dts: exynos4: fix the device-tree compile warning

2017-11-29 Thread Jaehoon Chung
On 11/28/2017 11:10 PM, Tom Rini wrote: > On Tue, Nov 28, 2017 at 04:20:39PM +0900, Jaehoon Chung wrote: > >> After updating dtc-1.4.5 version, there are too many warning. >> This patch is to fix about exynos4 series. >> >> Signed-off-by: Jaehoon Chung > > Have these

Re: [U-Boot] [PATCH 2/2] armv8: ls1043a: Discard the needless cpu nodes

2017-11-29 Thread Prabhakar Kushwaha
> -Original Message- > From: Wenbin song [mailto:wenbin.s...@nxp.com] > Sent: Thursday, November 30, 2017 8:27 AM > To: York Sun ; Prabhakar Kushwaha > ; Ran Wang ; Mingkai > Hu ; u-boot@lists.denx.de >

[U-Boot] [PATCH 1/4] mtd: nand: Rename nand.h into rawnand.h

2017-11-29 Thread Masahiro Yamada
This header was renamed to rawnand.h in Linux. The following is the corresponding commit in Linux. commit d4092d76a4a4e57b65910899948a83cc8646c5a5 Author: Boris Brezillon Date: Fri Aug 4 17:29:10 2017 +0200 mtd: nand: Rename nand.h into

[U-Boot] [PATCH 3/4] mtd: nand: denali_dt: replace printf() with pr_err()

2017-11-29 Thread Masahiro Yamada
The Linux derived log functions can be used anywhere and easily turned on/off by CONFIG_LOGLEVEL. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali_dt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/denali_dt.c

[U-Boot] [PATCH 4/4] mtd: nand: denali: consolidate include directives

2017-11-29 Thread Masahiro Yamada
Include necessary headers explicitly without relying on indirect header inclusion. , are unneeded. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/denali.c

[U-Boot] [PATCH 2/4] mtd: nand: include from include/linux/mtd/rawnand.h

2017-11-29 Thread Masahiro Yamada
This is needed for ARCH_DMA_MINALIGN. Signed-off-by: Masahiro Yamada --- include/linux/mtd/rawnand.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index 192709b..6c3e838 100644 ---

Re: [U-Boot] [v2] armv8: ls1012a: enable/disable eSDHC1 through hwconfig for RDB

2017-11-29 Thread Y.b. Lu
Hi York, I copied hardware team Kinjalk's explain here. "Enabling SDHC2 on ‘00’ is not correct on revision D and later boards as the sd wifi is not on there on these revs. The IO expander was designed to override the dip switch values. So, the DIP switch values are driven through low strength

Re: [U-Boot] [PATCH] armv8: ls1088ardb: support force SDHC mode by hwconfig

2017-11-29 Thread Y.b. Lu
Hi York, See my comments inline. Thanks a lot. Best regards, Yangbo Lu > -Original Message- > From: York Sun > Sent: 2017年11月30日 3:43 > To: Y.b. Lu ; u-boot@lists.denx.de > Subject: Re: [PATCH] armv8: ls1088ardb: support force SDHC mode by > hwconfig > > On

Re: [U-Boot] [U-Boot,v3,10/14] log: Add a test command

2017-11-29 Thread Tom Rini
On Mon, Nov 20, 2017 at 03:33:31PM -0700, Simon Glass wrote: > Add a command which exercises the logging system. > > Signed-off-by: Simon Glass > Reviewed-by: Lukasz Majewski NAK. With clang-3.8 we see this (and many more): test/log/log_test.c:35:16:

[U-Boot] [PATCH 1/2] armv8: ls1043a: modify the detecting way to cover all variants

2017-11-29 Thread Wenbin song
There are many variants for ls1043a. Modify the detecting way to make that the below fixup apply to all variants of ls1043a. - Fix GIC offset for rev1.1 - Fix msi node for rev1.1 - erratum_a010151 Signed-off-by: Wenbin Song ---

[U-Boot] [PATCH 2/2] armv8: ls1043a: Discard the needless cpu nodes

2017-11-29 Thread Wenbin song
Using "cpu_pos_mask()" function to detect the real online cpus, and discard the needless cpu nodes on kernel dft. Signed-off-by: Wenbin Song --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 4 arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 32

[U-Boot] [PATCH] armv8: ls1046aqds: update IFC NOR timings

2017-11-29 Thread Wenbin song
Update IFC NOR timings to fix that the NOR flash can not be erased with V4 FPGA image on ls1046aqds. Signed-off-by: Wenbin Song --- include/configs/ls1046aqds.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/ls1046aqds.h

Re: [U-Boot] [PATCH 1/1] x86: enable DISTRO_DEFAULTS for qemu

2017-11-29 Thread Bin Meng
Hi Heinrich, On Thu, Nov 30, 2017 at 2:46 AM, Heinrich Schuchardt wrote: > > > On 11/29/2017 10:00 AM, Bin Meng wrote: >> >> Hi Heinrich, >> >> On Fri, Nov 24, 2017 at 4:12 PM, Bin Meng wrote: >>> >>> Hi Heinrich, >>> >>> On Mon, Nov 20, 2017 at 5:20 PM,

[U-Boot] Uboot send pull request

2017-11-29 Thread uboot
Hi Tom, Please pull the following patch from u-boot-nds32 into your tree. Thanks! The following changes since commit b06c46de632c55f4c39d404c6f0f65e414b31050: Merge tag 'xilinx-for-v2018.01' of git://www.denx.de/git/u-boot-microblaze (2017-11-29 08:26:07 -0500) are available in the git

Re: [U-Boot] [PATCH 00/23] imx: add i.MX8M support and i.MX8MQ EVK

2017-11-29 Thread Peng Fan
Hi Peter, > -Original Message- > From: Peter Robinson [mailto:pbrobin...@gmail.com] > Sent: Wednesday, November 29, 2017 5:27 PM > To: Peng Fan > Cc: sba...@denx.de; Fabio Estevam ; u- > b...@lists.denx.de > Subject: Re: [U-Boot] [PATCH 00/23]

[U-Boot] [PATCH] scripts: spl: fix typo

2017-11-29 Thread Peng Fan
Typo fix: CONIFG->CONFIG Signed-off-by: Peng Fan Cc: Tom Rini Cc: Simon Glass --- scripts/Makefile.uncmd_spl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.uncmd_spl b/scripts/Makefile.uncmd_spl

Re: [U-Boot] [GIT PULL] Please pull u-boot-mmc master

2017-11-29 Thread Jaehoon Chung
On 11/29/2017 01:22 AM, Jean-Jacques Hiblot wrote: > Hi all, > > > On 28/11/2017 13:15, Tom Rini wrote: >> On Tue, Nov 28, 2017 at 11:20:04AM +0900, Jaehoon Chung wrote: >> >>> Dear Tom, >>> >>> Could you pull these patches to u-boot/master? >>> After applied these patches, i will send the

Re: [U-Boot] [GIT PULL] Please pull u-boot-mmc master

2017-11-29 Thread Jaehoon Chung
On 11/28/2017 09:15 PM, Tom Rini wrote: > On Tue, Nov 28, 2017 at 11:20:04AM +0900, Jaehoon Chung wrote: > >> Dear Tom, >> >> Could you pull these patches to u-boot/master? >> After applied these patches, i will send the patches relevant to fixing >> patches. >> - I have tested the buildman,

[U-Boot] [RFC PATCH 08/13] arm: nexell: add ARM64 MMU regions

2017-11-29 Thread Andre Przywara
From: Amit Singh Tomar ARMv8 boards require a struct describing the memory regions for the mandatory MMU setup. Add the respective data for the Nexell S5P6818 SoC. Signed-off-by: Amit Singh Tomar Signed-off-by: Andre Przywara

[U-Boot] [RFC PATCH 09/13] arm: nexell: add UART support

2017-11-29 Thread Andre Przywara
The Nexell S5P6818 SoC uses a UART very similar to those used in the Samsung S5P SoCs. Enable the driver in the config and add the necessary glue headers and clock functions to make the S5P driver happy. Signed-off-by: Andre Przywara --- arch/arm/Kconfig

[U-Boot] [RFC PATCH 11/13] arm: nexell: add preliminary S5P6818 SoC device tree

2017-11-29 Thread Andre Przywara
The Nexell S5P6818 SoC is an octa-core SoC with ARM Cortex-A53 cores. The chip contains the usual peripherals for an smartphone/tablet/set-top box SoC. Add the .dtsi file describing the peripherals supported so far, but keep them still disabled. Signed-off-by: Andre Przywara

[U-Boot] [RFC PATCH 10/13] arm: nexell: add timer support

2017-11-29 Thread Andre Przywara
From: Amit Singh Tomar Nexell based SoCs (S5P4414 and S5P6818) contain the same timer block as present on Samsungs SoCs. Add this timer code when compiling for Nexell SoC and provide the necessary glue functions to make the Samsung timer driver happy. Signed-off-by: Amit

[U-Boot] [RFC PATCH 12/13] arm: add NanoPi M3 board support

2017-11-29 Thread Andre Przywara
The NanoPi M3 is a single board computer containing a Nexell S5P6818 SoC (with 8 ARMv8 Cortex-A53 cores). Add the respective defconfig and a (preliminary) device tree listing the devices that we support so far. Signed-off-by: Andre Przywara --- arch/arm/Kconfig

[U-Boot] [RFC PATCH 13/13] arm: nexell: switch to 32-bit

2017-11-29 Thread Andre Przywara
The vendor provided SPL blob (called "secondboot") runs completely in AArch32, so expects U-Boot to be AArch32 as well. Also the lack of a working arch timer limits Linux to 32-bits, as the mainline arm64 kernel heavily relies on the arch timer. This commit switches the NanoPiM3 board over to

[U-Boot] [RFC PATCH 07/13] arm: nexell: embed NSIH header

2017-11-29 Thread Andre Przywara
The primary boot loaders provided by the SoC vendor or derived from that use an image format called "NSIH" to learn the load address and size of the boot payload. This header occupies 512 bytes, but contains only a few essential words of information. Use the boot0 feature to prepend this header

[U-Boot] [RFC PATCH 06/13] arm: add basic framework for Nexell S5P6818 support

2017-11-29 Thread Andre Przywara
The Nexell S5P6818 is a typical SoC with ARM Cortex-A53 cores. It has many peripherals derived from Samsung SoCs (MMC, serial, I2C, Ethernet, ...). Add the required files to introduce this new SoC (family?) to U-Boot. Signed-off-by: Andre Przywara --- arch/arm/Kconfig

[U-Boot] [RFC PATCH 05/13] mmc: add MMC (glue) driver for Nexell SoCs

2017-11-29 Thread Andre Przywara
From: Amit Singh Tomar The Nexell SoCs contain multiple MMC devices, which can be driven by U-Boot's DesignWare MMC driver, if supported by the required glue driver file. Provide that file along with the Makefile/Kconfig changes. Signed-off-by: Amit Singh Tomar

[U-Boot] [RFC PATCH 03/13] arm: move SYS_ARCH_TIMER to KConfig

2017-11-29 Thread Andre Przywara
SYS_ARCH_TIMER guards the usage of the ARM Generic Timer (aka arch timer) in U-Boot. At the moment it is mandatory for ARMv8 and used by two ARMv7 boards. Add a proper Kconfig symbol to express this dependency properly, allowing certain board configuration to later disable arch timer in case there

[U-Boot] [RFC PATCH 04/13] reset: add driver for generic reset controllers

2017-11-29 Thread Andre Przywara
From: Amit Singh Tomar The simplest and most generic form of a reset controller just exposes multiple MMIO registers, where each bit toggles a separate reset line. Add a generic driver to describe this kind of reset controller. This is used on the Nexell S5P6818, for

[U-Boot] [RFC PATCH 01/13] serial: s5p: rework Samsung UART driver to get rid of uart.h

2017-11-29 Thread Andre Przywara
At the moment the serial_s5p driver takes care of both Exynos UARTs as well as those from older Samsung SoCs (s3c/s5p series). Looking more closely the only difference between those two groups is how the fractional baud rate is programmed: via a "divslot" (s3c) or as a proper fractional value

[U-Boot] [RFC PATCH 02/13] serial: S5P/Samsung: refactor and Kconfig-ize UART selection

2017-11-29 Thread Andre Przywara
Currently the UART used by some Samsung SoCs is selected by the generic CONFIG_S5P define. This makes it hard to re-use that UART without pulling in the whole of the S5P code. Also the Exynos SoCs use this driver, which is in fact a generic Samsung UART driver. So create a new Kconfig symbol

[U-Boot] [RFC PATCH 00/13] Nexell S5P6818 SoC support

2017-11-29 Thread Andre Przywara
Hi, this is a first draft of the things Amit and I have been working on in the last months. It introduces support for an SoC called "Nexell S5P6818". This is an Octa-core ARMv8 SoC with Cortex-A53 cores, which apparently is closely related to (older) Samsung SoCs. Many peripherals are compatible

Re: [U-Boot] [PATCH 2/2] i2c: at91_i2c: remove the .probe_chip function

2017-11-29 Thread Yang, Wenyou
On 2017/11/29 11:25, Alan Ott wrote: The .probe_chip function is supposed to probe an i2c device on the bus to determine whether a device is answering to a particular address. at91_i2c_probe_chip() did not do anything resembling this and always returned 0. It looks as though

Re: [U-Boot] [PATCH 1/2] i2c: at91_i2c: Wait for TXRDY after sending the first byte

2017-11-29 Thread Yang, Wenyou
On 2017/11/29 11:25, Alan Ott wrote: The driver must wait for TXRDY after each byte is pushed into the i2c FIFO before pushing the next byte. Previously this was not done for the first byte, causing a race condition with zeros sometimes being sent for the next byte (which is typically the

Re: [U-Boot] [PATCH 1/2] ARM: socfpga: remove unused CONFIG_NAND_DENALI_ECC_SIZE

2017-11-29 Thread Marek Vasut
On 11/29/2017 11:13 AM, Masahiro Yamada wrote: > This option is no longer used. > > Signed-off-by: Masahiro Yamada Applied both, thanks! > --- > > include/configs/socfpga_common.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git

Re: [U-Boot] [PATCH] usb: r8a66597: Add support for RZ/A series

2017-11-29 Thread Marek Vasut
On 11/29/2017 04:28 PM, Chris Brandt wrote: > On Tuesday, November 28, 2017, Marek Vasut wrote: > So, I can't use wait_for_bit() Can we somehow extend wait_for_bit() ? >>> >>> It's a nice function, so it would be good if it worked with more than >>> just 32-bit registers. >>> >>>

Re: [U-Boot] [PATCH v2] usb: r8a66597: convert wait loop to readw_poll_timeout

2017-11-29 Thread Marek Vasut
On 11/29/2017 08:49 PM, Chris Brandt wrote: > It is better to use an existing wait loop implementation. > > Signed-off-by: Chris Brandt Applied, thanks > --- > v2: > * return -ETIMEDOUT instead of -1 > --- > drivers/usb/host/r8a66597-hcd.c | 13 + > 1

Re: [U-Boot] [PATCH] i2c: rcar_iic: Add RCar IIC driver

2017-11-29 Thread Marek Vasut
On 11/29/2017 06:59 AM, Heiko Schocher wrote: > Hello Marek, > > Am 29.11.2017 um 03:48 schrieb Marek Vasut: >> Add driver for the RCar IIC or DVFS I2C controller. This driver is based >> on the SH I2C driver, but supports DM and DT probing as well as modern >> I2C framework API. >> >>

Re: [U-Boot] [PATCH 3/4] sunxi: Add default partition scheme

2017-11-29 Thread André Przywara
Hi Maxime, On 28/11/17 10:34, Maxime Ripard wrote: > The partitions variable is especially useful to create a partition table > from U-Boot, either directly from the U-Boot shell, or through flashing > tools like fastboot and its oem format command. > > This is especially useful on devices with

Re: [U-Boot] [PATCH 4/4] fastboot: Enable flashing by default on sunxi

2017-11-29 Thread André Przywara
On 28/11/17 10:34, Maxime Ripard wrote: > Now that more and more devices are built using eMMC, providing a way to > easily flash the system without too much hassle seems like a right thing to > do. > > Since fastboot is the most deployed tool to do that these days, we can just > rely on it to

Re: [U-Boot] [PATCH 2/4] part: efi: Add default number of partition entries for sunxi

2017-11-29 Thread André Przywara
On 28/11/17 10:34, Maxime Ripard wrote: > The SPL must be located at 8kB (16 sectors) offset. That's right in the > middle of the GPT, so we need to define a smaller amount of partitions to > accomodate for that location. > > Signed-off-by: Maxime Ripard The

Re: [U-Boot] [PATCH 1/4] part: efi: Add a Kconfig option for the number of partition entries

2017-11-29 Thread André Przywara
On 28/11/17 10:34, Maxime Ripard wrote: > On some SoCs, the SPL needs to be located right in the middle of the GPT > partition entries. > > One way to work around that is to create partition entries for a smaller > number of partitions to accomodate with where the SPL will be. Create a > Kconfig

Re: [U-Boot] u-boot hangs waiting for serial input

2017-11-29 Thread Dipanjan Das
Hi Wolfgang, > This is the correct, expected behaviour. "loads" starts an S-Revord > download over the serial line, so U-Boot is waiting for and readind > the input which it expects t be in SREC format. > > What did you think "loads" would do? > It was my fault, sorry for the noise. I was

Re: [U-Boot] [PATCH v2] usb: r8a66597: convert wait loop to readw_poll_timeout

2017-11-29 Thread Fabio Estevam
On Wed, Nov 29, 2017 at 5:49 PM, Chris Brandt wrote: > It is better to use an existing wait loop implementation. > > Signed-off-by: Chris Brandt > --- > v2: > * return -ETIMEDOUT instead of -1 Reviewed-by: Fabio Estevam

Re: [U-Boot] u-boot hangs waiting for serial input

2017-11-29 Thread Wolfgang Denk
Dear Dipanjan, In message you wrote: > I have compiled an older version of u-boot for ARM versatilepb board and > booted in qemu as: qemu-system-arm -M versatilepb -m 128M -nographic > -kernel flash.bin > > It boots fine,

[U-Boot] [PATCH v2] usb: r8a66597: convert wait loop to readw_poll_timeout

2017-11-29 Thread Chris Brandt
It is better to use an existing wait loop implementation. Signed-off-by: Chris Brandt --- v2: * return -ETIMEDOUT instead of -1 --- drivers/usb/host/r8a66597-hcd.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git

Re: [U-Boot] [PATCH] usb: r8a66597: convert wait loop to readw_poll_timeout

2017-11-29 Thread Chris Brandt
On Wednesday, November 29, 2017, Fabio Estevam wrote: > > + if (readw_poll_timeout(r8a66597->reg + DCPCTR, dcpctr, > > + dcpctr & BSTS, 1000) < 0) { > > + printf("DCPCTR BSTS timeout!\n"); > > + return

Re: [U-Boot] [v2] armv8: ls1012a: enable/disable eSDHC1 through hwconfig for RDB

2017-11-29 Thread York Sun
On 11/27/2017 12:58 AM, Yangbo Lu wrote: > For LS1012ARDB RevD and later versions, the I2C reading for DIP > switch setting had been no longer reliable since the board was > reworked. This patch is to add hwconfig support to enable/disable > eSDHC1 manually. What do you mean "no longer reliable"?

Re: [U-Boot] Has versatilepb board support permanently been dropped in latest u-boot?

2017-11-29 Thread Tuomas Tynkkynen
Hi, On Tue, 2017-11-28 at 22:32 -0800, Dipanjan Das wrote: > > The [official source](https://github.com/u-boot/u-boot) doesn't have > a > configs/versatilepb_defconfig, hence can't be built for versatilepb. > Has > versatilepb board support permanently been dropped in latest u-boot? > In case

Re: [U-Boot] [PATCH] armv8: ls1088ardb: support force SDHC mode by hwconfig

2017-11-29 Thread York Sun
On 11/26/2017 11:59 PM, Yangbo Lu wrote: > The BRDCFG5[SPISDHC] register field of Qixis device is used > to control SPI and SDHC signal routing. > > 10 = Force SDHC Mode > - SPI_CS[0] is routed to CPLD for SDHC_VS use. > - SPI_CS[1] is unused. > - SPI_CS[2:3] are routed to the TDMRiser

Re: [U-Boot] [PATCH] usb: r8a66597: convert wait loop to readw_poll_timeout

2017-11-29 Thread Fabio Estevam
On Wed, Nov 29, 2017 at 5:37 PM, Chris Brandt wrote: > @@ -308,13 +308,10 @@ static int send_setup_packet(struct r8a66597 *r8a66597, > struct usb_device *dev, > #if defined(CONFIG_RZA_USB) > dcpctr = r8a66597_read(r8a66597, DCPCTR); > if ((dcpctr & PID)

[U-Boot] [PATCH] usb: r8a66597: convert wait loop to readw_poll_timeout

2017-11-29 Thread Chris Brandt
It is better to use an existing wait loop implementation. Signed-off-by: Chris Brandt --- drivers/usb/host/r8a66597-hcd.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c

Re: [U-Boot] [PATCH 0/3][v3] Update MAC address in "ethernet" node of Linux device tree

2017-11-29 Thread York Sun
On 11/23/2017 03:22 AM, Prabhakar Kushwaha wrote: > The MAC addresses get fixed in the device tree for "ethernet" nodes > is by using trailing number behind "ethernet" found in "/aliases". > It may not be necessary for the "ethernet" nodes to be sequential. > There can be gaps in between or any

Re: [U-Boot] [PATCH 3/3] Powerpc: pcie: Make pcie link state judgement more specific

2017-11-29 Thread York Sun
On 11/08/2017 10:45 PM, Xiaowei Bao wrote: > > Hi York, > > For the general pcie devices, it will not bring delay, because the RC access > these > devices can get the link up state correctly, usually, if the slot have the > device, > return the L0 state, if the slot have not device, return

Re: [U-Boot] [PATCH 1/1] x86: enable DISTRO_DEFAULTS for qemu

2017-11-29 Thread Heinrich Schuchardt
On 11/29/2017 10:00 AM, Bin Meng wrote: Hi Heinrich, On Fri, Nov 24, 2017 at 4:12 PM, Bin Meng wrote: Hi Heinrich, On Mon, Nov 20, 2017 at 5:20 PM, Bin Meng wrote: On Mon, Nov 20, 2017 at 3:07 PM, Bin Meng wrote: On Mon, Nov

Re: [U-Boot] [PATCH v4 09/10] mmc: make optional the support for eMMMC hardware partitioning

2017-11-29 Thread Tom Rini
On Wed, Nov 29, 2017 at 03:29:54PM +0100, Jean-Jacques Hiblot wrote: > Not all boards have an eMMC and not all users have a need for this. > Allow to compile it out. By default it is still included. > > Signed-off-by: Jean-Jacques Hiblot Seems good, subject is "eMMMC" however,

Re: [U-Boot] Has versatilepb board support permanently been dropped in latest u-boot?

2017-11-29 Thread Tom Rini
On Tue, Nov 28, 2017 at 10:32:49PM -0800, Dipanjan Das wrote: > In order to compile u-boot for versatilepb, I had to use [this]( > https://github.com/toyoshim/u-boot) version of u-boot that contains a patch > for the board with this commit message.: > > "Restore ARM versatile platform only for

Re: [U-Boot] [PATCH v4 07/10] mmc: allow to compile out the error messages

2017-11-29 Thread Tom Rini
On Wed, Nov 29, 2017 at 03:29:52PM +0100, Jean-Jacques Hiblot wrote: > Error messages may not be as valued as code space. Allow to compile out > most of them to free space. > > Signed-off-by: Jean-Jacques Hiblot > --- > drivers/mmc/Kconfig | 1 + > drivers/mmc/mmc.c | 44

Re: [U-Boot] [PATCH v1 4/9] fsl: secure boot: Remove dependency of command line for fsl_validate.c

2017-11-29 Thread York Sun
On 05/15/2017 09:16 AM, york sun wrote: > From: Ruchika Gupta > > Make secure boot validation available without using command. > > Signed-off-by: Ruchika Gupta > Signed-off-by: York Sun > --- Due to SPL image size increase,

[U-Boot] [PATCH] mx6: Fix SPL boot device detection

2017-11-29 Thread Jiri Luznicky
The boot device is selected according to BOOT_CFG1[7:4] fuse. Any value equal or higher then 0x8 is used for nand. Currently, only values up to 0x8 are handled by the switch. Add rest of the values up to 0xf to cover all nand cases. Signed-off-by: Jiri Luznicky Cc: Stefano

Re: [U-Boot] [PATCH 1/3] armv8: fsl-layerscape: SPL size reduction

2017-11-29 Thread York Sun
On 10/05/2017 12:55 AM, Sumit Garg wrote: > > I will wait for SD boot patches to be accepted in upstream. As reducing SPL > size > for ls1088ardb in upstream does only makes sense once we have base platform > support merged in upstream. > Please rework this patch set. York

Re: [U-Boot] [GIT PULL] Xilinx changes for v2018.01

2017-11-29 Thread Tom Rini
On Wed, Nov 29, 2017 at 01:39:05PM +0100, Michal Simek wrote: > Hi Tom, > > please pull these changes to your tree. Travis is not showing any issue > https://travis-ci.org/michalsimek-test/u-boot/builds/308832565 > > Changes are described below. > > Thanks, > Michal > > > The following

Re: [U-Boot] "usb storage" command issues

2017-11-29 Thread Stefan Roese
Hi Simon, On 29.11.2017 14:08, Simon Glass wrote: Hi Stefan, On 28 November 2017 at 02:40, Stefan Roese wrote: Hi Bin, Hi Simon, On 20.11.2017 16:38, Simon Glass wrote: On 20 November 2017 at 00:07, Bin Meng wrote: Hi Stefan, On Wed, Sep 27, 2017 at

Re: [U-Boot] [PATCH v2] x86: lib: Implement standalone __udivdi3 etc instead of libgcc ones

2017-11-29 Thread Stefan Roese
Hi Bin, On 29.11.2017 13:31, Bin Meng wrote: Hi Stefan, On Wed, Nov 29, 2017 at 6:01 PM, Stefan Roese wrote: Hi Bin, On 29.11.2017 10:23, Bin Meng wrote: On Wed, Nov 29, 2017 at 4:42 PM, Stefan Roese wrote: Hi Bin, On 29.11.2017 09:30, Bin Meng wrote:

Re: [U-Boot] [PATCH 1/2] arm64: dts: sun50i: a64: Add USB host node for bananapi-m64

2017-11-29 Thread Maxime Ripard
On Wed, Nov 29, 2017 at 11:33:09PM +0800, Chen-Yu Tsai wrote: > On Wed, Nov 29, 2017 at 11:16 PM, Maxime Ripard > wrote: > > On Wed, Nov 29, 2017 at 01:14:22PM +0530, Jagan Teki wrote: > >> Add USB host node, ehci1 and usbphy for bananapi m64 > >> > >>

[U-Boot] [PATCH] dm: blk: Use uclass_find_first/next_device() in blk_first/next_device()

2017-11-29 Thread Stefan Roese
This patch changes the calls to uclass_first/next_device() in blk_first/ next_device() to use uclass_find_first/next_device() instead. These functions don't prepare the devices, which is correct in this case. With this patch applied, the "usb storage" command now works again as expected: => usb

Re: [U-Boot] [PATCH 1/2] arm64: dts: sun50i: a64: Add USB host node for bananapi-m64

2017-11-29 Thread Chen-Yu Tsai
On Wed, Nov 29, 2017 at 11:16 PM, Maxime Ripard wrote: > On Wed, Nov 29, 2017 at 01:14:22PM +0530, Jagan Teki wrote: >> Add USB host node, ehci1 and usbphy for bananapi m64 >> >> Signed-off-by: Jagan Teki > > Acked-by: Maxime Ripard

Re: [U-Boot] [PATCH] usb: r8a66597: Add support for RZ/A series

2017-11-29 Thread Chris Brandt
On Tuesday, November 28, 2017, Marek Vasut wrote: > >>> So, I can't use wait_for_bit() > >> > >> Can we somehow extend wait_for_bit() ? > > > > It's a nice function, so it would be good if it worked with more than > > just 32-bit registers. > > > > However, it's used in 98 places at the moment, so

[U-Boot] [PATCH v3] x86: lib: Implement standalone __udivdi3 etc instead of libgcc ones

2017-11-29 Thread Stefan Roese
This patch removes the inclusion of the libgcc math functions and replaces them by functions coded in C, taken from the coreboot project. This makes U-Boot building more independent from the toolchain installed / available on the build system. The code taken from coreboot is authored from Vadim

Re: [U-Boot] [PATCH 1/2] arm64: dts: sun50i: a64: Add USB host node for bananapi-m64

2017-11-29 Thread Maxime Ripard
On Wed, Nov 29, 2017 at 01:14:22PM +0530, Jagan Teki wrote: > Add USB host node, ehci1 and usbphy for bananapi m64 > > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Free Electrons Embedded Linux and

Re: [U-Boot] [PATCH 2/2] arm64: dts: sun50i: h5: Order nodes in alphabetic for orangepi-prime

2017-11-29 Thread Maxime Ripard
On Wed, Nov 29, 2017 at 01:14:23PM +0530, Jagan Teki wrote: > Order sun50i-h5-orangepi-prime.dts nodes in alphabetic > > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Free Electrons Embedded Linux and

Re: [U-Boot] [PATCH] arm64: dts: allwinner: a64: Add uart2-pins

2017-11-29 Thread Maxime Ripard
On Wed, Nov 29, 2017 at 07:13:37PM +0530, Jagan Teki wrote: > On Wed, Nov 29, 2017 at 7:00 PM, Maxime Ripard > wrote: > > Hi Jagan, > > > > On Wed, Nov 29, 2017 at 01:15:50PM +0530, Jagan Teki wrote: > >> Add uart2-pins for A64 SOC. > >> > >> Signed-off-by: Jagan

  1   2   >