Re: [U-Boot] [PATCH 1/5] mmc: uniphier-sd: Factor out register IO

2017-08-17 Thread Masahiro Yamada
2017-08-17 15:39 GMT+09:00 Jaehoon Chung : > On 08/13/2017 01:55 AM, Marek Vasut wrote: >> On 08/10/2017 09:49 AM, Masahiro Yamada wrote: >>> Hi. >>> >>> >>> 2017-08-07 17:30 GMT+09:00 Marek Vasut : On 08/07/2017 04:30 AM, Masahiro Yamada wrote: > Hi Marek, Hi Masahiro,

Re: [U-Boot] [PATCH 1/4] Revert "serial: ns16550: Add RX interrupt buffer support"

2017-08-17 Thread Bin Meng
On Wed, Aug 16, 2017 at 11:37 PM, Stefan Roese wrote: > This reverts commit 6822cf3ec7c8768b8727573b8f4b2cb3d870b881. > > As Bin Meng has tested and pointed out, we don't need the RX interrupt > for the RX buffer support at all. Just reading all available characters > into a buffer is sufficient t

Re: [U-Boot] [PATCH 3/4] x86: conga-qeval20-qa3-e3845: Select SERIAL_RX_BUFFER via Kconfig

2017-08-17 Thread Bin Meng
On Wed, Aug 16, 2017 at 11:37 PM, Stefan Roese wrote: > To support more input characters (longer stings pasted into the U-Boot > prompt) without dropping, lets selects the recently added UART RX > buffer for these boards. > > Signed-off-by: Stefan Roese > Cc: Simon Glass > Cc: Bin Meng > --- >

Re: [U-Boot] [PATCH 4/4] x86: dfi-bt700: Select SERIAL_RX_BUFFER via Kconfig

2017-08-17 Thread Bin Meng
On Wed, Aug 16, 2017 at 11:37 PM, Stefan Roese wrote: > To support more input characters (longer stings pasted into the U-Boot > prompt) without dropping, lets selects the recently added UART RX > buffer for these boards. > > Signed-off-by: Stefan Roese > Cc: Simon Glass > Cc: Bin Meng > --- >

Re: [U-Boot] [PATCH 2/4] serial: serial-uclass: Add generic serial RX buffer support

2017-08-17 Thread Bin Meng
On Wed, Aug 16, 2017 at 11:37 PM, Stefan Roese wrote: > Pasting longer lines into the U-Boot console prompt sometimes leads to > characters missing. One problem here is the small 16-byte FIFO of the > legacy NS16550 UART, e.g. on x86 platforms. > > This patch now introduces a Kconfig option to ena

[U-Boot] [PATCH v2 0/5] rockchip: rk3229: add sdram and sd support

2017-08-17 Thread Kever Yang
Add sdram driver for rk3229 and other fix like pinctrl and sd node. Changes in v2: - split this patch in two patches Kever Yang (5): rockchip: rk322x: update dram bank size rockchip: rk322x: add sdram driver rockchip: rk322x: pinctrl: using compatible name same with dts rockchip: rk322x

[U-Boot] [PATCH v2 1/5] rockchip: rk322x: update dram bank size

2017-08-17 Thread Kever Yang
The DRAM start address is not 0, so need to update the last bank size as: DRAM start addr + DRAM_SIZE - last bank start addr Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich Reviewed-by: Simon Glass --- Changes in v2: None arch/arm/mach-rockchip/rk322x-board.

[U-Boot] [PATCH v2 2/5] rockchip: rk322x: add sdram driver

2017-08-17 Thread Kever Yang
Add driver for rk322x to support sdram initialize in SPL. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich --- Changes in v2: None arch/arm/include/asm/arch-rockchip/sdram_rk322x.h | 581 +++ arch/arm/mach-rockchip/rk322x/Makefile| 1 + arch/arm/mach-rockchip/rk32

[U-Boot] [PATCH v2 3/5] rockchip: rk322x: pinctrl: using compatible name same with dts

2017-08-17 Thread Kever Yang
The dts from kernel is using rk3228-pinctrl as compatible name, need to sync with it to make the driver work. Signed-off-by: Kever Yang --- Changes in v2: - split this patch in two patches drivers/pinctrl/rockchip/pinctrl_rk322x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) di

Re: [U-Boot] [PATCH 3/4] x86: conga-qeval20-qa3-e3845: Select SERIAL_RX_BUFFER via Kconfig

2017-08-17 Thread Bin Meng
Hi Stefan, On Wed, Aug 16, 2017 at 11:43 PM, Stefan Roese wrote: > Hi Bin, > > On 16.08.2017 17:37, Stefan Roese wrote: >> >> To support more input characters (longer stings pasted into the U-Boot >> prompt) without dropping, lets selects the recently added UART RX >> buffer for these boards. >>

[U-Boot] [PATCH v2 4/5] rockchip: rk322x: pinctrl: fix IO MASK error on sdcard pin

2017-08-17 Thread Kever Yang
Fix the IOMUX setting for SDcard CMD pin at the same time. Signed-off-by: Kever Yang --- Changes in v2: None drivers/pinctrl/rockchip/pinctrl_rk322x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/rockchip/pinctrl_rk322x.c b/drivers/pinctrl/rockchip/pinct

[U-Boot] [PATCH v2 5/5] rockchip: dts: rk3229: remove dram channel info

2017-08-17 Thread Kever Yang
The dram channel info will be auto detect by the driver, we do not need it. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v2: None arch/arm/dts/rk3229-evb.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/rk3229-evb.dts b/ar

Re: [U-Boot] [PATCH 3/4] x86: conga-qeval20-qa3-e3845: Select SERIAL_RX_BUFFER via Kconfig

2017-08-17 Thread Stefan Roese
Hi Bin, On 17.08.2017 09:19, Bin Meng wrote: On Wed, Aug 16, 2017 at 11:43 PM, Stefan Roese wrote: Hi Bin, On 16.08.2017 17:37, Stefan Roese wrote: To support more input characters (longer stings pasted into the U-Boot prompt) without dropping, lets selects the recently added UART RX buffer

Re: [U-Boot] [PATCH v2 00/40] dm: sata: Complete driver-model support for SATA

2017-08-17 Thread Jaehoon Chung
Hi Simon, On 07/30/2017 02:34 AM, Simon Glass wrote: > Note: This series is rebased to u-boot-mmc/master with a fix-up patch > for a broken patch there. > > This series completes the conversion of SATA to driver model. > > Previous work converted SCSI including the SCSI-based SATA driver. This >

Re: [U-Boot] mmc: gen_atmel_mci: Fix wrong arguments used of bind()

2017-08-17 Thread Jaehoon Chung
On 07/26/2017 03:35 PM, wenyou.y...@microchip.com wrote: > The bind() method is called before the device is probed and so the > device has no private data, should use the platform data, and set up > a new struct to hold the mmc and cfg members. > > Signed-off-by: Wenyou Yang > Reviewed-by: Simon

[U-Boot] [PATCH v3 1/8] armv8: Add workaround for USB erratum A-009008

2017-08-17 Thread Ran Wang
USB High Speed (HS) EYE Height Adjustment USB HS speed eye diagram fails with the default value at many corners, particularly at a high temperature Optimal eye at TXREFTUNE value to 1001 is observed, change set the same value. Signed-off-by: Ran Wang --- Change in v3: Use inline function

[U-Boot] [PATCH v3 2/8] armv8: Add workaround for USB erratum A-009798

2017-08-17 Thread Ran Wang
The default setting for USB High Speed Squelch Threshold results in a threshold close to or lower than 100mV. This leads to Receiver Compliance test failure for a 100mV threshold. The changes shift the threshold from ~100mV woards ~130mV resulting in passing of USB High Speed Receiver Sensitivity

[U-Boot] [PATCH v3 4/8] armv8: Add workaround for USB erratum A-009007

2017-08-17 Thread Ran Wang
Rx Compliance tests may fail intermittently at high jitter frequencies using default register values. Changes identified in setup makes the Rx compliance test pass. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: Suresh Gupta Signed-off-by: Ran Wang --- Change in v3: -

[U-Boot] [PATCH v3 3/8] armv8: Add workaround for USB erratum A-008997

2017-08-17 Thread Ran Wang
Low Frequency Periodic Signaling(LFPS) Peak-to-Peak Differential Output Voltage Test Compliance fails using default transmitter settings Change setting required for transmitter signal swings to pass compliance tests. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: Suresh

[U-Boot] [PATCH v3 6/8] armv7: Add workaround for USB erratum A-009798

2017-08-17 Thread Ran Wang
The default setting for USB High Speed Squelch Threshold results in a threshold close to or lower than 100mV. This leads to Receive Compliance test failure for a 100mV threshold. The changes shift the threshold from ~100mV towards ~130mV resulting in passing of USB High Speed Receiver Sensitivity

[U-Boot] [PATCH v3 8/8] armv7: Add workaround for USB erratum A-009007

2017-08-17 Thread Ran Wang
Rx Compliance tests may fail intermittently at high jitter frequencies using default register values Changes identified in test setup makes the Rx compliance test pass Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: Suresh Gupta Signed-off-by: Ran Wang --- Change in v3:

Re: [U-Boot] cmd: mmc: add mmc partconf read capability

2017-08-17 Thread Jaehoon Chung
On 08/01/2017 09:27 PM, Anatolij Gustschin wrote: > From: Angelo Dureghello > > This patch allows to show the EXT_CSD[179] partition_config > register info, just by specifying the dev param: > > U-Boot> mmc partconf 0 > EXT_CSD[179], PARTITION_CONFIG: > BOOT_ACK: 0x0 > BOOT_PARTITION_ENA

[U-Boot] [PATCH v3 7/8] armv7: Add workaround for USB erratum A-008997

2017-08-17 Thread Ran Wang
Low Frequency Periodic Singaling (LFPS) Peak-to-Peak Differential Output Voltage Test Compliance fails using default transmitter settings Change settings required for transmitter signal swings to pass compliance tests. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: Sures

Re: [U-Boot] [PATCH] rockchip: rk3288: update the mmc number for fastboot

2017-08-17 Thread Kever Yang
Hi Philipp, On 07/27/2017 09:09 PM, Dr. Philipp Tomsich wrote: On 27 Jul 2017, at 15:04, Kever Yang wrote: Philipp, On 07/27/2017 08:16 PM, Dr. Philipp Tomsich wrote: Kever, On 27 Jul 2017, at 13:47, Kever Yang wrote: The emmc number is 0, correct it for fastboot parameter. I provided

[U-Boot] [PATCH v3 5/8] armv7: Add workaround for USB erratum A-009008

2017-08-17 Thread Ran Wang
USB High Speed (HS) EYE Height Adjustment USB HS speed eye diagram fails with the default value at many corners, particularly at a high temperature Optimal eye at TXVREFTUNE value to 1001 is ovserved, change set the same value. Signed-off-by: Sriram Dash Signed-off-by: Suresh Gupta Signed-off-b

[U-Boot] [PATCH v2 1/2] armv8: mmu: remove unused macro definition

2017-08-17 Thread Andy Yan
Macro VA_BITS and PTE_BLOCK_BITS are not used in the code, so remove them. Signed-off-by: Andy Yan Reviewed-by: Philipp Tomsich --- Changes in v2: - remove CONFIG_SYS_PTL2_BITS from the whitelist arch/arm/include/asm/armv8/mmu.h | 9 - scripts/config_whitelist.txt | 2 -- 2 files

[U-Boot] [PATCH v2 2/2] armv8: mmu: add space around operator

2017-08-17 Thread Andy Yan
Add space around operator "+", make it match the coding style. Signed-off-by: Andy Yan --- Changes in v2: None arch/arm/include/asm/armv8/mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/armv8/mmu.h b/arch/arm/include/asm/armv8/mmu.h index 7752741.

[U-Boot] [PATCH 1/2] x86: Convert CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to Kconfig

2017-08-17 Thread Bin Meng
This converts CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to a Kconfig option. Signed-off-by: Bin Meng --- arch/x86/Kconfig | 7 +++ arch/x86/cpu/turbo.c | 2 +- scripts/config_whitelist.txt | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/

[U-Boot] [PATCH 2/2] x86: baytrail: Fix turbo enable

2017-08-17 Thread Bin Meng
CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED must be turned on for Baytrail. Signed-off-by: Bin Meng --- arch/x86/cpu/baytrail/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/cpu/baytrail/Kconfig b/arch/x86/cpu/baytrail/Kconfig index 9374c12..9f9c924 100644 --- a/arch/x86/cpu/baytrai

[U-Boot] Missing licenses in i.MX7 code

2017-08-17 Thread Stefano Babic
Hi Peng, there are two files for i.MX7 that were merged without any license information. Rather I have not seen this before. They are: arch/arm/mach-imx/mx7/psci-mx7.c arch/arm/mach-imx/mx7/psci.S and they were added with: commit 7de4703691498e18c58f375d724818e4d0db6223 Author: Peng Fan Date:

[U-Boot] SPDX License status

2017-08-17 Thread Wolfgang Denk
Dear Tom, a quick check reveals that we have a very large number (4,300+) files in the U-Boot tree have no SPDX license tags, or - even worse - no license information at all. I think this should be cleaned up. And I am aware that this would be a lot of effort, and there will be discussions where

Re: [U-Boot] Missing licenses in i.MX7 code

2017-08-17 Thread Peng Fan
Hi Stefano, > -Original Message- > From: Stefano Babic [mailto:sba...@denx.de] > Sent: Thursday, August 17, 2017 4:09 PM > To: Peng Fan ; U-Boot@lists.denx.de; Fabio Estevam > > Subject: Missing licenses in i.MX7 code > > Hi Peng, > > there are two files for i.MX7 that were merged witho

[U-Boot] [PATCH] spl: fix Makefile for NOR, XIP and YMODEM

2017-08-17 Thread Philipp Tomsich
During the the conversion to $(SPL_TPL_), the SPL_ fragment was left over for the NOR, XIP and YMODEM boot methods in SPL, making these unselectable. This commit fixes this by dropping the spurious 'SPL_' fragment from each line. Signed-off-by: Philipp Tomsich Reported-by: Bo Shen Fixes: f94e64

Re: [U-Boot] spl: fix Makefile for NOR, XIP and YMODEM

2017-08-17 Thread Philipp Tomsich
> During the the conversion to $(SPL_TPL_), the SPL_ fragment was > left over for the NOR, XIP and YMODEM boot methods in SPL, making > these unselectable. > > This commit fixes this by dropping the spurious 'SPL_' fragment > from each line. > > Signed-off-by: Philipp Tomsich > Reported-by: Bo S

[U-Boot] [GIT PULL] Please pull u-boot-rockchip/master

2017-08-17 Thread Dr. Philipp Tomsich
Tom, there's a (trivial) fix for some fallout from f94e643 (spl: consistently use $(SPL_TPL_) to select features for SPL and TPL builds) (and one unrelated trivial DTS change) in u-boot-rockchip/master ready for you. Please pull. Regards, Philipp. The following changes since commit 3

[U-Boot] [PATCH] imx: fix licensing in i.MX files

2017-08-17 Thread Stefano Babic
Some files for i.MX do not yet have the SPDX ID to reference the correct license. Signed-off-by: Stefano Babic --- arch/arm/include/asm/arch-mx35/mmc_host_def.h | 18 +- arch/arm/include/asm/arch-mx5/iomux-mx51.h| 7 +-- arch/arm/include/asm/arch-mxs/iomux-mx23.h| 7

Re: [U-Boot] [PATCH] rockchip: rk3288: update the mmc number for fastboot

2017-08-17 Thread Dr. Philipp Tomsich
> On 17 Aug 2017, at 09:51, Kever Yang wrote: > > Hi Philipp, > > > On 07/27/2017 09:09 PM, Dr. Philipp Tomsich wrote: >>> On 27 Jul 2017, at 15:04, Kever Yang wrote: >>> >>> Philipp, >>> >>> >>> On 07/27/2017 08:16 PM, Dr. Philipp Tomsich wrote: Kever, > On 27 Jul 2017, at

Re: [U-Boot] rk3288: 32KB SPL size restriction

2017-08-17 Thread Dr. Philipp Tomsich
Jagan, > On 17 Aug 2017, at 08:39, Kever Yang wrote: > > Hi Jagan, > > > On 08/10/2017 05:07 PM, Jagan Teki wrote: >> Hi Simon/Philipp or any, >> >> I believe rk3288 has 20KB BootRom and 100KB internal SRAM and current >> u-boot can archive the maximum size of u-boot-spl-dtb.bin which the >>

Re: [U-Boot] [PATCH v2 0/5] rockchip: rk3229: add sdram and sd support

2017-08-17 Thread Dr. Philipp Tomsich
> On 17 Aug 2017, at 09:17, Kever Yang wrote: > > > Add sdram driver for rk3229 and other fix like pinctrl and sd node. > > > Changes in v2: > - split this patch in two patches > > Kever Yang (5): > rockchip: rk322x: update dram bank size > rockchip: rk322x: add sdram driver > rockchip: r

Re: [U-Boot] [PATCH 11/12] ARM: dts: dra7-evm: sync DT with latest Linux

2017-08-17 Thread Lokesh Vutla
On Tuesday 15 August 2017 02:58 AM, Tom Rini wrote: > On Sat, Aug 12, 2017 at 11:59:32AM +0530, Lokesh Vutla wrote: > >> Signed-off-by: Lokesh Vutla >> --- >> arch/arm/dts/dra7-evm.dts | 276 >> -- >> 1 file changed, 23 insertions(+), 253 deletions(

Re: [U-Boot] mmc: Support generic PCI SD host controller

2017-08-17 Thread Jaehoon Chung
On 08/09/2017 04:21 PM, Bin Meng wrote: > This changes pci_mmc driver to use PCI_CLASS_SYSTEM_SDHCI instead of > individual vendor id & device id pair to support generic PCI SD host > controller. > > Signed-off-by: Bin Meng > --- > > drivers/mmc/pci_mmc.c | 7 +-- > 1 file changed, 1 insert

Re: [U-Boot] mmc: Support generic PCI SD host controller

2017-08-17 Thread Jaehoon Chung
On 08/09/2017 04:21 PM, Bin Meng wrote: > This changes pci_mmc driver to use PCI_CLASS_SYSTEM_SDHCI instead of > individual vendor id & device id pair to support generic PCI SD host > controller. > > Signed-off-by: Bin Meng Sorry for late. Applied to u-boot-mmc. Thanks! Best Regards, Jaehoon Ch

Re: [U-Boot] [U-Boot, v3] regulator: pbias: Add PBIAS regulator for proper voltage switching on MMC1

2017-08-17 Thread Jaehoon Chung
On 08/07/2017 06:43 PM, Jean-Jacques Hiblot wrote: > In the TI SOCs a PBIAS cell exists to provide a bias voltage to the MMC1 > IO cells. Without this bias voltage these I/O cells can not function > properly. The PBIAS cell is controlled by software. > > Signed-off-by: Jean-Jacques Hiblot > Revie

Re: [U-Boot] [linux-sunxi] Re: [PATCH] ARM: sun8i: a83t: Add device tree for Sinovoip Bananapi BPI-M3

2017-08-17 Thread Chen-Yu Tsai
On Thu, Aug 17, 2017 at 1:11 PM, wrote: > 在 2017-08-17 11:40,Chen-Yu Tsai 写道: >> >> The BPI-M3 is an Allwinner A83T based SBC in the Bananapi/Bpi family. >> It is roughly the same form factor as the BPI-M1+, with roughly the >> same peripherals and connectors: >> >> - 2GB LPDDR3 DRAM >> - 8GB

Re: [U-Boot] mmc: Support generic PCI SD host controller

2017-08-17 Thread Bin Meng
Hi Jaehoon, On Thu, Aug 17, 2017 at 5:01 PM, Jaehoon Chung wrote: > On 08/09/2017 04:21 PM, Bin Meng wrote: >> This changes pci_mmc driver to use PCI_CLASS_SYSTEM_SDHCI instead of >> individual vendor id & device id pair to support generic PCI SD host >> controller. >> >> Signed-off-by: Bin Meng

[U-Boot] [PATCH] imx: mx7: psci: add copyright and license

2017-08-17 Thread Peng Fan
Add copyright and license header. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/mach-imx/mx7/psci-mx7.c | 7 +++ arch/arm/mach-imx/mx7/psci.S | 7 +++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/mach-imx/mx7/psci-mx7.c b/arch/arm/mach-imx/mx7/psci-mx7.c index 5

Re: [U-Boot] [PATCH v2 2/8] usb: gadget: add SDP driver

2017-08-17 Thread Łukasz Majewski
On 08/16/2017 08:00 PM, Stefan Agner wrote: From: Stefan Agner Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoC's boot ROM and allows to download program images. Beside that, it can also be used to read/write registers and download complete Device

Re: [U-Boot] [PATCH v2 5/8] spl: add serial download protocol (SDP) support

2017-08-17 Thread Łukasz Majewski
On 08/16/2017 08:00 PM, Stefan Agner wrote: From: Stefan Agner Add USB serial download protocol support to SPL. If the SoC started in recovery mode the SPL will immediately switch to SDP and wait for further downloads/commands from the host side. Reviewed-by: Łukasz Majewski Signed-off-by

Re: [U-Boot] [PATCH v2 6/8] doc: add Serial Download Protocol documentation

2017-08-17 Thread Łukasz Majewski
Hi Stefan, From: Stefan Agner Document the U-Boot Serial Download Protocol implementation and some typical use cases. Thanks for providing the description :-) Reviewed-by: Łukasz Majewski Signed-off-by: Stefan Agner --- This ended up to be almost more a imx_usb documentation. But there

Re: [U-Boot] [PATCH v2 7/8] apalis/colibri_imx6: use independent USB PID for SPL

2017-08-17 Thread Łukasz Majewski
On 08/16/2017 08:00 PM, Stefan Agner wrote: From: Stefan Agner Use a completely independent USB Product ID for SPL. This allows to differentiate a SDP running in SPL and SDP running in a U-Boot which could not read the config block successfully. Reviewed-by: Łukasz Majewski Signed-off-by:

[U-Boot] [PATCH] ARM: mvebu: set correct mem_size for db-88f6820-amc

2017-08-17 Thread Chris Packham
The db-88f6820-amc has four chips with 2Gb density giving a total of 1GB DRAM. Update the board_topology_map to reflect the correct configuration. Signed-off-by: Chris Packham --- When I setup this board I misinterpreted 2 Gigabits as 2 Gigabytes. It happened to work so I never noticed it was wro

Re: [U-Boot] [PATCH v3 18/19] dfu: fix spl build

2017-08-17 Thread Łukasz Majewski
Hi Paweł, In current state dfu depends on cmd/mtdparts.c which isn't build in SPL. This patch resolves it by cutting out unwanted code in SPL build. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none drivers/dfu/dfu_nand.c | 6 +- 1 file changed, 5 inserti

Re: [U-Boot] [PATCH] imx: fix licensing in i.MX files

2017-08-17 Thread Wolfgang Denk
Dear Stefano In message <1502957972-18085-1-git-send-email-sba...@denx.de> you wrote: > Some files for i.MX do not yet have the SPDX ID to reference the correct > license. Be careful to use identical mappings! > --- a/arch/arm/include/asm/arch-mx35/mmc_host_def.h > +++ b/arch/arm/include/asm/arc

Re: [U-Boot] [PATCH] ARM: mvebu: set correct mem_size for db-88f6820-amc

2017-08-17 Thread Stefan Roese
On 17.08.2017 12:27, Chris Packham wrote: The db-88f6820-amc has four chips with 2Gb density giving a total of 1GB DRAM. Update the board_topology_map to reflect the correct configuration. Signed-off-by: Chris Packham --- When I setup this board I misinterpreted 2 Gigabits as 2 Gigabytes. It ha

Re: [U-Boot] [PATCH 1/1] efi_loader: allow return value in EFI_CALL

2017-08-17 Thread Rob Clark
On Tue, Aug 15, 2017 at 3:42 PM, Heinrich Schuchardt wrote: > Macro EFI_CALL was introduced to call an UEFI function. > Unfortunately is did not support return values. > Most UEFI functions have a return value. > > So let's rename EFI_CALL to EFI_CALL_VOID and introduce a > new EFI_CALL macro that

Re: [U-Boot] [PATCH] imx: fix licensing in i.MX files

2017-08-17 Thread Stefano Babic
On 17/08/2017 12:56, Wolfgang Denk wrote: > Dear Stefano > > In message <1502957972-18085-1-git-send-email-sba...@denx.de> you wrote: >> Some files for i.MX do not yet have the SPDX ID to reference the correct >> license. > > Be careful to use identical mappings! > >> --- a/arch/arm/include/asm/

[U-Boot] [PATCH V2] imx: fix licensing in i.MX files

2017-08-17 Thread Stefano Babic
Some files for i.MX do not yet have the SPDX ID to reference the correct license. Signed-off-by: Stefano Babic --- Changes: - mmc_host_def.h is GplV2 and not GPLv2 or later (W. Denk) arch/arm/include/asm/arch-mx35/mmc_host_def.h | 18 +- arch/arm/include/asm/arch-mx5/iomux-mx51

Re: [U-Boot] [PATCH 1/5] mmc: uniphier-sd: Factor out register IO

2017-08-17 Thread Marek Vasut
On 08/17/2017 09:01 AM, Masahiro Yamada wrote: > 2017-08-17 15:39 GMT+09:00 Jaehoon Chung : >> On 08/13/2017 01:55 AM, Marek Vasut wrote: >>> On 08/10/2017 09:49 AM, Masahiro Yamada wrote: Hi. 2017-08-07 17:30 GMT+09:00 Marek Vasut : > On 08/07/2017 04:30 AM, Masahiro Yamada

Re: [U-Boot] [PATCH V2] imx: fix licensing in i.MX files

2017-08-17 Thread Wolfgang Denk
Dear Stefano, In message <1502970920-25167-1-git-send-email-sba...@denx.de> you wrote: > Some files for i.MX do not yet have the SPDX ID to reference the correct > license. > > Signed-off-by: Stefano Babic > --- > > Changes: > - mmc_host_def.h is GplV2 and not GPLv2 or later (W. Denk) > > arc

[U-Boot] [PATCH v4 00/19] add support for rk3066 platform.

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
This patch serie adds support for Rockchip RK3066 processor. Paweł Jarosz (19): rockchip: rk3066: add grf header file rockchip: rk3066: add rk3066 pinctrl driver rockchip: rk3066: add sysreset driver rockchip: rk3066: add clock driver for rk3066 soc rockchip: rk3066: add rk3066 platform

[U-Boot] [PATCH v4 01/19] rockchip: rk3066: add grf header file

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
grf is needed by various drivers for rk3066 soc. Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks Changes since v2: - none Changes since v3: - none arch/arm/include/asm/arch-rockchip/grf_rk3066.h | 621 1 file cha

[U-Boot] [PATCH v4 02/19] rockchip: rk3066: add rk3066 pinctrl driver

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add driver supporting pin multiplexing on rk3066 platform. Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks - added nand support Changes since v2: - none Changes since v3: - none arch/arm/include/asm/arch-rockchip/periph.h | 1 + driver

[U-Boot] [PATCH v4 04/19] rockchip: rk3066: add clock driver for rk3066 soc

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add clock driver for rk3066 platform. Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks - moved clk init to tpl Changes since v2: - none Changes since v3: - none arch/arm/include/asm/arch-rockchip/cru_rk3066.h | 189 drivers/clk/r

[U-Boot] [PATCH v4 03/19] rockchip: rk3066: add sysreset driver

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add support for system reset for rk3066 socs. Signed-off-by: Paweł Jarosz Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks Changes since v2: - none Changes since v3: - none drivers/sysreset/Makefile | 1 + drivers/sysreset/sysrese

[U-Boot] [PATCH v4 05/19] rockchip: rk3066: add rk3066 platform devicetree file

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
rk3066 peripherials include usb, i2c, pwm, gpio, sdio, sdmmc, emmc, spi, watchdog and uart Signed-off-by: Paweł Jarosz Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes since v1: - added nand dts node Changes since v2: - none Changes since v3: - none

[U-Boot] [PATCH v4 06/19] rockchip: rk3066: add core support

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add core skeleton for rk3066 Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks - moved syscon.h below spl.h - changed error to debug and return error reason - changed Cortex-A7 to Cortex-A9 - added nand support - added dfu support - removed dr

[U-Boot] [PATCH v4 07/19] rockchip: rk3066: add mk808 board files

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
mk808 is a tv stick with two usb ports, micro sd card slot, hdmi and nand onboard. Signed-off-by: Paweł Jarosz Acked-by: Simon Glass Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes since v1: - added nand support - dropped spl of-platdata Changes since v2: - fixed dfu ram co

[U-Boot] [PATCH v4 08/19] rockchip: rk3066: add sdram driver

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add rockchip rk3066 sdram driver Signed-off-by: Paweł Jarosz Acked-by: Simon Glass Acked-by: Philipp Tomsich --- Changes since v1: - use common rockchip_sdram_size - moved sdram init from sdram_init.c Changes since v2: - none Changes since v3: - none arch/arm/mach-rockchip/rk3066/Makefile

[U-Boot] [PATCH v4 10/19] mtd: nand: add the rockchip nand controller driver

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add basic Rockchip nand driver. Driver in current state has 16, 24, 40, 60 per 1024B BCH/ECC ability and 8 bit asynchronous flash interface support. Other features will come later. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - fixed correct ecc checking Changes

[U-Boot] [PATCH v4 11/19] rockchip: mkimage: add support for rockchip nand boot image

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
The Rockchip boot ROM requires a particular file format for booting from NAND: * It starts with 512-byte, rc4 encoded header and is aligned to nand page size * Then first 2KB of first stage loader (tpl) aligned to nand page size * n empty pages * second 2KB of first stage loader (tpl) aligned to

[U-Boot] [PATCH v4 12/19] rockchip: board: rk3066: convert board_usb_init to live tree functions

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Use live tree functions to fill dwc2_plat_otg_data structure in board_usb_init. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none arch/arm/mach-rockchip/rk3066-board.c | 52 +-- 1 file changed, 7 insertio

[U-Boot] [PATCH v4 14/19] mmc: dw_mmc: support transfer mode autodetection

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
dw_mmc supports two transfer modes in u-boot: idma and fifo. This patch adds autodetection of transfer mode and eliminates setting this in host config struct Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none drivers/mmc/dw_mmc.c | 8 ++

[U-Boot] [PATCH v4 09/19] mtd: nand: add support for the Sandisk SDTNQGAMA chip

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Sandisk SDTNQGAMA is a 8GB size, 3.3V 8 bit chip with 16KB page size, 1KB write size and 40 bit ecc support Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none drivers/mtd/nand/nand_ids.c | 3 +++ 1 file changed, 3 insertions(+) diff --

[U-Boot] [PATCH v4 16/19] armv7: support rk3066 early back to bootrom in vector.S

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Rockchip bootrom first reads 1KB data from nand at offset 0x10080C00 and executes it. Then waits for back to bootrom and loads another 32KB to sram which also executes. Sdram initialisation code needs to be in one of these two steps. Then bootloader loads another ~200KB of data at offset 0x6000

[U-Boot] [PATCH v4 18/19] dfu: fix spl build

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
In current state dfu depends on cmd/mtdparts.c which isn't build in SPL. This patch resolves it by cutting out unwanted code in SPL build. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - removed unneded space drivers/dfu/dfu_nand.c | 5 +++

[U-Boot] [PATCH v4 17/19] rockchip: sysreset: deduplicate rk3066 and rk3188 sysreset drivers

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Sysreset drivers for rk3066 and rk3188 contain common elements which can be reused. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none .../include/asm/arch-rockchip/sysreset_common.h| 20 +++ arch/arm/mach-rockchip/Makefile

[U-Boot] [PATCH v4 19/19] mtd: nand: spl: allow build nand_bbt, nand_ids and nand_util

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
This patch allows building of nand_bbt, nand_ids, nand_util for nand drivers that need it. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none drivers/mtd/nand/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/n

[U-Boot] [PATCH v4 13/19] ARM: dts: rockchip: prefer u-boot, dm-pre-reloc rather than u-boot, dm-spl

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
rk3xxx.dtsi is used by rk3188 and rk3066. rk3188 uses alocated data in spl but rk3066 needs it in tpl. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none arch/arm/dts/rk3xxx.dtsi | 8 1 file changed, 4 insertions(+), 4 deletion

[U-Boot] [PATCH v4 15/19] mmc: dw_mmc: rockchip: add support for rk3066 sdmmc

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
This patch enables support for the Rockchip RK3066 SD/MMC controller, which is based on Designware IP. The device supports SD, SDIO, MMC and eMMC. Signed-off-by: Paweł Jarosz --- Changes since v1: - dropped OF_PLATDATA Changes since v2: - none Changes since v3: - none drivers/mmc/rockchip_dw

Re: [U-Boot] [PATCH] usb: ehci: Convert CONFIG_USB_EHCI_PCI to Kconfig

2017-08-17 Thread Bin Meng
Hi Marek, On Wed, Aug 9, 2017 at 4:49 PM, Marek Vasut wrote: > On 08/09/2017 09:21 AM, Bin Meng wrote: >> This converts CONFIG_USB_EHCI_PCI to a Kconfig option, and updates >> all boards that use it. >> >> Signed-off-by: Bin Meng > > Applied, thanks > Will this patch be in v2017.09? Regards, B

Re: [U-Boot] [PATCH v2 2/8] usb: gadget: add SDP driver

2017-08-17 Thread Stefano Babic
On 16/08/2017 20:00, Stefan Agner wrote: > From: Stefan Agner > > Add SDP (Serial Downloader Protocol) implementation for U-Boot. The > protocol is used in NXP SoC's boot ROM and allows to download program > images. Beside that, it can also be used to read/write registers and > download complete

Re: [U-Boot] [PATCH v2 2/8] usb: gadget: add SDP driver

2017-08-17 Thread Marek Vasut
On 08/17/2017 03:49 PM, Stefano Babic wrote: > On 16/08/2017 20:00, Stefan Agner wrote: >> From: Stefan Agner >> >> Add SDP (Serial Downloader Protocol) implementation for U-Boot. The >> protocol is used in NXP SoC's boot ROM and allows to download program >> images. Beside that, it can also be us

Re: [U-Boot] [PATCH v2 2/8] usb: gadget: add SDP driver

2017-08-17 Thread Stefano Babic
On 17/08/2017 15:54, Marek Vasut wrote: > On 08/17/2017 03:49 PM, Stefano Babic wrote: >> On 16/08/2017 20:00, Stefan Agner wrote: >>> From: Stefan Agner >>> >>> Add SDP (Serial Downloader Protocol) implementation for U-Boot. The >>> protocol is used in NXP SoC's boot ROM and allows to download pr

Re: [U-Boot] [PATCH v2 2/8] usb: gadget: add SDP driver

2017-08-17 Thread Łukasz Majewski
On 08/17/2017 03:54 PM, Marek Vasut wrote: On 08/17/2017 03:49 PM, Stefano Babic wrote: On 16/08/2017 20:00, Stefan Agner wrote: From: Stefan Agner Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoC's boot ROM and allows to download program images.

Re: [U-Boot] [PATCH v2 00/40] dm: sata: Complete driver-model support for SATA

2017-08-17 Thread Simon Glass
Hi Jaehoon, On 17 August 2017 at 01:40, Jaehoon Chung wrote: > > Hi Simon, > > On 07/30/2017 02:34 AM, Simon Glass wrote: > > Note: This series is rebased to u-boot-mmc/master with a fix-up patch > > for a broken patch there. > > > > This series completes the conversion of SATA to driver model. >

Re: [U-Boot] [PATCH v3 3/3] config: move USB_FUNCTION_MASS_STORAGE

2017-08-17 Thread Łukasz Majewski
Hi Philipp, On 26 July 2017 at 05:22, Philipp Tomsich wrote: With both an imply from CMD_USB to USB_FUNCTION_MASS_STORAGE and with USB_FUNCTION_MASS_STORAGE moved to Kconfig, we can now run moveconfig. Signed-off-by: Philipp Tomsich --- Changes in v3: None Changes in v2: None configs/CHI

[U-Boot] MUSB driver vs MUSB-NEW Confusion/Questions

2017-08-17 Thread Adam Ford
It seems like we have two similar drivers for the same MUSB device. Looking through the code, it appears as if mostly OMAP3 related boards use the older MUSB driver, but other boards use the MUSB-NEW driver which lead me to a few questions. What is the differrence between them? Is there a reason

Re: [U-Boot] [PATCH 1/1] efi_loader: allow return value in EFI_CALL

2017-08-17 Thread Heinrich Schuchardt
On 08/17/2017 01:49 PM, Rob Clark wrote: > On Tue, Aug 15, 2017 at 3:42 PM, Heinrich Schuchardt > wrote: >> Macro EFI_CALL was introduced to call an UEFI function. >> Unfortunately is did not support return values. >> Most UEFI functions have a return value. >> >> So let's rename EFI_CALL to EFI_

[U-Boot] [PATCH 1/1] efi_loader: do not cast return value in EFI_EXIT

2017-08-17 Thread Heinrich Schuchardt
UEFI API functions have different return types. Some return a value of type EFI_STATUS other don't. We therefore should not cast the return value of EFI_EXIT to another type than the expression passed to EFI_EXIT. Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 4 ++-- 1 file chan

[U-Boot] [PATCH 1/1] efi_loader: efi_set_watchdog_timer return EFI_SUCCESS

2017-08-17 Thread Heinrich Schuchardt
The UEFI standard requires a watchdog timer that is preset to five minutes. After this period the system is reset. The watchdog shall be disabled by ExitBootServices. An EFI application can call efi_set_watchdog_timer to either reset the watchdog timer or disable it. This may be necessary if the

[U-Boot] No environment driver for location 14

2017-08-17 Thread Paweł Jarosz
Hi, i'm getting a error with last env patches (u-boot-rockchip repo). U-boot booting halts on env_init() with message: env_driver_lookup_default: No environment driver for location 14 ... env_driver_lookup_default: No environment driver for location 14 initcall sequence 60445dc8 failed at c

Re: [U-Boot] No environment driver for location 14

2017-08-17 Thread Simon Glass
Hi Pawel, On 17 August 2017 at 11:22, Paweł Jarosz wrote: > Hi, > > > i'm getting a error with last env patches (u-boot-rockchip repo). > > U-boot booting halts on env_init() with message: > > > env_driver_lookup_default: No environment driver for location 14 > > ... > > env_driver_lookup_default

Re: [U-Boot] [PATCH 1/1] efi_loader: allow return value in EFI_CALL

2017-08-17 Thread Rob Clark
On Thu, Aug 17, 2017 at 12:57 PM, Heinrich Schuchardt wrote: > On 08/17/2017 01:49 PM, Rob Clark wrote: >> On Tue, Aug 15, 2017 at 3:42 PM, Heinrich Schuchardt >> wrote: >>> Macro EFI_CALL was introduced to call an UEFI function. >>> Unfortunately is did not support return values. >>> Most UEFI

Re: [U-Boot] Initializing global_data on SuperH before board_init_f() ?

2017-08-17 Thread Vladimir Zapolskiy
Hello Thomas, On 08/16/2017 12:07 AM, Thomas Petazzoni wrote: > Hello, > > As you probably noticed with the few patches I sent late July, I am > porting U-Boot to an old SH7786 platform. nice, as time passes by, more and more U-Boot/SH users appear, now there are two of us :) Are you going to u

Re: [U-Boot] No environment driver for location 14

2017-08-17 Thread Paweł Jarosz
W dniu 17.08.2017 o 19:46, Simon Glass pisze: Hi Pawel, On 17 August 2017 at 11:22, Paweł Jarosz wrote: Hi, i'm getting a error with last env patches (u-boot-rockchip repo). U-boot booting halts on env_init() with message: env_driver_lookup_default: No environment driver for location 14

Re: [U-Boot] [PATCH] common/board_f.c: remove CONFIG_SYS_GENERIC_GLOBAL_DATA

2017-08-17 Thread Vladimir Zapolskiy
On 08/16/2017 12:11 AM, Thomas Petazzoni wrote: > CONFIG_SYS_GENERIC_GLOBAL_DATA is no longer used by any board or > platform, so support for it can be dropped. > > Signed-off-by: Thomas Petazzoni Reviewed-by: Vladimir Zapolskiy > --- > README | 6 -- > common/board

Re: [U-Boot] No environment driver for location 14

2017-08-17 Thread Paweł Jarosz
Simon, I had CONFIG_ENV_IS_NOWHERE set in wrong place (rk3066_common.h) Moving this config to board defconfig resolves the issue. Sorry for the confusion and thanks for the reply. Regards Paweł W dniu 17.08.2017 o 19:46, Simon Glass pisze: Hi Pawel, On 17 August 2017 at 11:22, Paweł Jar

Re: [U-Boot] No environment driver for location 14

2017-08-17 Thread Simon Glass
Hi Pawel, On 17 August 2017 at 12:48, Paweł Jarosz wrote: > Simon, > > > I had CONFIG_ENV_IS_NOWHERE set in wrong place (rk3066_common.h) > > Moving this config to board defconfig resolves the issue. > > Sorry for the confusion and thanks for the reply. Ah OK, that's great! Thanks for letting me

[U-Boot] [PATCH] cmd: spl: provide address and size of prepared FDT in environment

2017-08-17 Thread Anatolij Gustschin
Writing prepared FDT to persistent storage should be possible in scripts. Create environment variables containing address and size of the updated FDT. Scripts can use these variables after running 'spl export fdt ...' command to write the new blob to persistent storage. Signed-off-by: Anatolij Gus

Re: [U-Boot] [PATCH] fb_mmc.c: Correct blk_dread() return value checks

2017-08-17 Thread Łukasz Majewski
On 08/15/2017 03:00 AM, Tom Rini wrote: The function blk_dread will return -ENOSYS on failure or on success the number of blocks read, which must be the number asked to read (otherwise it failed somewhere). Correct this check. Cc: Lukasz Majewski Signed-off-by: Tom Rini --- common/fb_mmc.c |

  1   2   >