[U-Boot] Request For Comments: wget and TCP listener

2017-09-21 Thread Duncan Hare
Mods to: cmd/net.cnet/Makefilenet/net.cinclude/net.hnet/wget.cnet/wget.hnet/ping.c I do not know how to do patches, I'm a noobat this: cmd/net.c Additions static int do_wget(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]){        return netboot_common(WGET, cmdtp, argc, argv);}

Re: [U-Boot] [PATCH 07/14] usb: Read device descriptor after device is addressed for xHCI

2017-09-21 Thread Stefan Roese
On 18.09.2017 15:40, Bin Meng wrote: For xHCI it is not possible to read a device descriptor before it has been assigned an address. That's why usb_setup_descriptor() was called with 'do_read' being false. But we really need try to read the device descriptor before starting any real

Re: [U-Boot] [PATCH 06/14] usb: Only get 64 bytes device descriptor for full speed devices

2017-09-21 Thread Stefan Roese
On 18.09.2017 15:40, Bin Meng wrote: Full speed device endpoint 0 can have 8/16/32/64 bMaxPacketSize0. Other speed devices report fixed value per USB spec. So it only makes sense if we send a get device descriptor with 64 bytes to full speed devices. While we are here, update the comment block

Re: [U-Boot] [PATCH 08/14] usb: xhci: Fix max packet size for full speed device endpoint 0

2017-09-21 Thread Stefan Roese
On 18.09.2017 15:40, Bin Meng wrote: In xhci_check_maxpacket(), the control endpoint 0 max packet size is wrongly taken from the interface's endpoint descriptor. However the default endpoint 0 does not come with an endpoint descriptor hence is not included in the interface structure. Change to

Re: [U-Boot] [PATCH 11/14] usb: xhci: Honor endpoint's interval

2017-09-21 Thread Stefan Roese
On 18.09.2017 15:40, Bin Meng wrote: USB endpoint reports the period between consecutive requests to send or receive data as bInverval in its endpoint descriptor. So far this is ignored by xHCI driver and the 'Interval' field in xHC's endpoint context is always programmed to zero which means 1ms

Re: [U-Boot] u-boot Boot issue about rk3188

2017-09-21 Thread Andy Yan
Hi Heiko: On 2017年09月22日 08:24, Andy Yan wrote: Hi Heiko: On 2017年09月21日 22:55, Heiko Stübner wrote: Hi Andy, Am Donnerstag, 21. September 2017, 22:03:32 CEST schrieb Andy Yan: Hi Heiko: I try to boot the upstream u-boot-rockchip branch  on my rk3188 board with(rock_defconfig) But I got

Re: [U-Boot] [PATCH v3 0/6] rockchip: back-to-bootrom: replace assembly-implementation with C-code

2017-09-21 Thread Dr. Philipp Tomsich
> On 21 Sep 2017, at 12:25, Dr. Philipp Tomsich > wrote: > >> >> On 21 Sep 2017, at 11:44, Heiko Stuebner > > wrote: >> >> Am Donnerstag, 21. September 2017, 11:09:49 CEST schrieb Heiko Stuebner: >>> Am

Re: [U-Boot] [PATCH v3 0/6] rockchip: back-to-bootrom: replace assembly-implementation with C-code

2017-09-21 Thread Heiko Stübner
Am Donnerstag, 21. September 2017, 12:25:17 CEST schrieb Dr. Philipp Tomsich: > > On 21 Sep 2017, at 11:44, Heiko Stuebner wrote: > > > > Am Donnerstag, 21. September 2017, 11:09:49 CEST schrieb Heiko Stuebner: > >> Am Donnerstag, 21. September 2017, 10:19:23 CEST schrieb

Re: [U-Boot] [PATCH 1/1] GPT: incomplete initialization in allocate_disk_part

2017-09-21 Thread Stefan Roese
On 21.09.2017 12:51, Heinrich Schuchardt wrote: memset(newpart, '\0', sizeof(newpart)); only initializes the firest 4 or 8 bytes of *newpart and not the whole structure disk_part. We should use sizeof(struct disk_part). Identified by cppcheck. Fixes: 09a49930e41 GPT: read partition table from

Re: [U-Boot] [PATCH] rockchip: imply ADC and SARADC_ROCKCHIP on supported SoCs

2017-09-21 Thread David.Wu
Hi Philipp, 在 2017/9/20 21:00, Dr. Philipp Tomsich 写道: Should we just imply these two configuration-values for all Rockchip devices (i.e. even for the RK3036 and RK3228) to further simplify the Kconfig? I think it is okay to imply all rockchip devices, it is no harm. If after all Rockchip

Re: [U-Boot] [PATCH] imx6: disable clock command and print_cpuinfo code in SPL

2017-09-21 Thread Anatolij Gustschin
Hi, On Thu, 21 Sep 2017 09:10:32 + Max Krummenacher max.krummenac...@toradex.com wrote: ... > > colibri_imx6 > > apalis_imx6 > > I will prepare a patch for these two. > Max Thanks! -- Anatolij ___ U-Boot mailing list

[U-Boot] [PATCH 0/6] Add gmac support for rk3399-evb and rv1108-evb

2017-09-21 Thread David Wu
This serie of patches integrates the setup mac clock is internal or external, as well as the way for setting rmii or rgmii interface. David Wu (6): rockchip: clk: Add mac clock set for rk3399 rockchip: dts: rk3399-evb: Change the tx/rx delay value for transmission quality rockchip:

[U-Boot] [PATCH 4/6] net: gmac_rockchip: Define the gmac grf register struct at gmac_rockchip.c

2017-09-21 Thread David Wu
If we include both the rk3288_grf.h and rv1108_grf.h, there is a number of compiling error for redefinition. So we define the reg structs of mac_grf at gmac_rockchip.c. Remove the rk**_grf.h files, give them own grf offset for their use. Signed-off-by: David Wu ---

[U-Boot] [PATCH 1/6] rockchip: clk: Add mac clock set for rk3399

2017-09-21 Thread David Wu
Assuming mac_clk is fed by an external clock, set clk_rmii_src clock select control register from IO for rgmii interface. Signed-off-by: David Wu --- drivers/clk/rockchip/clk_rk3399.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH 3/6] rockchip: configs: Enable CONFIG_NET_RANDOM_ETHADDR for rk3288-evb

2017-09-21 Thread David Wu
If the Ethernet address is not set, the network can't work, enable the random address config for default use. Signed-off-by: David Wu --- configs/evb-rk3288_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/evb-rk3288_defconfig

[U-Boot] [PATCH 2/6] rockchip: dts: rk3399-evb: Change the tx/rx delay value for transmission quality

2017-09-21 Thread David Wu
Give the mac controller the correct tx-delay and rx-delay value for the rgmii mode transmission. If they are not matched, there would be Ethernet packets lost, the net feature may not work. Signed-off-by: David Wu --- arch/arm/dts/rk3399-evb.dts | 4 ++-- 1 file

[U-Boot] [PATCH 5/6] net: gmac_rockchip: Use the proerty of "clock_in_out" to set mac clock

2017-09-21 Thread David Wu
If the mac clock if from the external IO, set clock rate with 0; If the mac clock if from the internal divider pll, set 50M for rmii mode and set 125M for rgmii. Signed-off-by: David Wu --- drivers/net/gmac_rockchip.c | 23 +++ 1 file changed, 19

[U-Boot] [PATCH 6/6] rockchip: gmac_rockchip: Add gmac support for rv1108

2017-09-21 Thread David Wu
The rv1108 mac only support rmii interface, so need to add the set_rmii() ops. Use the phy current interface to set rmii or rgmii ops. Signed-off-by: David Wu --- drivers/net/gmac_rockchip.c | 67 +++-- 1 file changed, 65

[U-Boot] [PATCH v2 02/26] mmc: split mmc_startup()

2017-09-21 Thread Jean-Jacques Hiblot
No functionnal change here. The function is really big and can be split. The part related to bus configuration are put in 2 separate functions: one for MMC and one for SD. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- drivers/mmc/mmc.c |

[U-Boot] [PATCH v2 09/26] cmd: mmc: display the mode name and current bus speed in the mmc info

2017-09-21 Thread Jean-Jacques Hiblot
Display the mode name when the user execute 'mmc info'. Also instead of displaying tran_speed, display the actual bus speed. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- cmd/mmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[U-Boot] [PATCH v2 25/26] mmc: add a library function to send tuning command

2017-09-21 Thread Jean-Jacques Hiblot
HS200/SDR104 requires tuning command to be sent to the card. Add a simple function to send tuning command and to read and compare the received data with the tuning block pattern. This function can be used by platform driver to perform DLL tuning. This patch is similar to commit 996903de92f0 ("mmc:

[U-Boot] [PATCH v2 08/26] mmc: use mmc modes to select the correct bus speed

2017-09-21 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- drivers/mmc/mmc.c | 39 --- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 0b74e78..382a9cf 100644

[U-Boot] [PATCH v2 10/26] mmc: refactor SD startup to make it easier to support new modes

2017-09-21 Thread Jean-Jacques Hiblot
The SDcard startup process currently handles only 2 modes. To make it easier to add support for more modes, let's make the process more generic and use a list of the modes to try. The major functional change is that when a mode fails we try the next one. Not all modes are tried, only those

[U-Boot] [PATCH] arm: dts: omap3: sync DTS with Linux 4.14-rc1

2017-09-21 Thread karthik
From: Karthik Tummala This re-syncs omap3 DTS file with current file from Linux v4.14-rc1 to ensure a consistent configuration. Upstream Linux removed the redundant Interrupt-parent property from usbhsohci, usbhsehci, ssi_port1 and ssi_port2 sub nodes. Signed-off-by:

[U-Boot] [PATCH 1/1] sandbox: avoid memory leak in os_dirent_ls

2017-09-21 Thread Heinrich Schuchardt
Realloc does not free the old memory area if it fails. Identified by cppcheck. Signed-off-by: Heinrich Schuchardt --- arch/sandbox/cpu/os.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/arch/sandbox/cpu/os.c

[U-Boot] drivers/core/read.c:64:44: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

2017-09-21 Thread Heinrich Schuchardt
Hello Simon, sandbox_defconfig has arch/sandbox/include/asm/types.h:60: typedef u32 phys_addr_t; even if building on a 64bit machine. This results in a warning CC drivers/demo/demo-uclass.o drivers/core/read.c: In function ‘dev_read_addr_ptr’: drivers/core/read.c:64:44: warning: cast

[U-Boot] u-boot Boot issue about rk3188

2017-09-21 Thread Andy Yan
Hi Heiko: I try to boot the upstream u-boot-rockchip branch on my rk3188 board with(rock_defconfig) But I got this error: early_init() nit_and_scan() returned error -22 early_init() failed: -22 ERROR ### Please RESET the board ### the current commit head is: 782088d("rockchip: imply ADC and

Re: [U-Boot] [PATCH v3 15/21] efi_loader: add bootmgr

2017-09-21 Thread Rob Clark
On Thu, Sep 21, 2017 at 12:58 AM, Simon Glass wrote: > Hi, > > On 20 September 2017 at 08:09, Rob Clark wrote: >> On Wed, Sep 20, 2017 at 5:08 AM, Alexander Graf wrote: >>> >>> >>> On 14.09.17 00:05, Rob Clark wrote: Similar to a

[U-Boot] [PATCH v2 00/26] mmc: Add support for HS200 and UHS modes

2017-09-21 Thread Jean-Jacques Hiblot
This series brings support for HS200 and UHS modes to the mmc core. It has been tested with the hsmmc driver on several platforms (DRA7, AM57x, AM437x, beaglebone black, Atmel SAMA5D3 xplained). Some modifications are required in the host driver to take advantage of this (voltage switching,

[U-Boot] [PATCH v2 03/26] mmc: move the MMC startup for version above v4.0 in a separate function

2017-09-21 Thread Jean-Jacques Hiblot
no functionnal change. This is only to further reduce the size o mmc_startup(). Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- drivers/mmc/mmc.c | 318 -- 1 file changed, 167 insertions(+),

[U-Boot] [PATCH v2 05/26] mmc: add a function to read and test the ext csd (mmc >= 4)

2017-09-21 Thread Jean-Jacques Hiblot
This will be reused later in the selection of high speed and ddr modes. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- drivers/mmc/mmc.c | 53 + 1 file changed, 33 insertions(+), 20

[U-Boot] [PATCH v2 06/26] mmc: introduce mmc modes

2017-09-21 Thread Jean-Jacques Hiblot
no functionnal changes. In order to add the support for the high speed SD and MMC modes, it is useful to track this information. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- drivers/mmc/Kconfig | 14 ++ drivers/mmc/mmc.c | 56

[U-Boot] [PATCH v2 18/26] mmc: Add a execute_tuning() callback to the mmc operations.

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Tuning is a mandatory step in the initialization of SDR104 and HS200 modes. This callback execute the tuning process. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot ---

[U-Boot] [PATCH v2 21/26] mmc: disable UHS modes if Vcc cannot be switched on and off

2017-09-21 Thread Jean-Jacques Hiblot
If a power cycle cannot be done on Vcc, it is safer not to try the UHS modes because we wouldn't be able to recover from an error occurring during the UHS initialization. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/mmc.c | 19 --- include/mmc.h | 1 +

[U-Boot] [PATCH v2 12/26] mmc: make mmc_set_ios() return status

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I set_ios callback has a return value of 'int' but the mmc_set_ios() function ignore this. Modify mmc_set_ios() and the callers of mmc_set_ios() to to return the error status. Signed-off-by: Kishon Vijay Abraham I Signed-off-by:

[U-Boot] [PATCH v2 07/26] mmc: Add a function to dump the mmc capabilities

2017-09-21 Thread Jean-Jacques Hiblot
This adds a simple helper function to display information (bus width and mode) based on a capability mask. Useful for debug. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/mmc.c | 24 include/mmc.h | 1 + 2 files changed, 25 insertions(+) diff

[U-Boot] [PATCH v2 15/26] mmc: add power cyle support in mmc core

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I mmc/sd specification requires vdd to be disabled for 1 ms and then enabled again during power cycle. Add a function in mmc core to perform power cycle and set the io signal to it's initial state. Signed-off-by: Kishon Vijay Abraham I

[U-Boot] [PATCH v2 20/26] mmc: Add support for UHS modes

2017-09-21 Thread Jean-Jacques Hiblot
Add UHS modes to the list of supported modes, get the UHS capabilites of the SDcard and implement the procedure to switch the voltage (UHS modes use 1v8 IO lines) During the voltage switch procedure, DAT0 is used by the card to signal when it's ready. The optional card_busy() callback can be used

[U-Boot] [PATCH v2 2/5] omap: Update the base address of the MMC controllers

2017-09-21 Thread Jean-Jacques Hiblot
Align the base address defined in header files with the base address used in the DTS. This will facilitate the introduction of the DMA support. Of all HSMMC users, only omap3 doesn't have the 0x100 reserved region at the top. This region will be used to determine if the controller supports DMA

[U-Boot] [PATCH 01/23] mmc: omap_hsmmc: cleanup clock configuration

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Add a separate function for starting the clock, stopping the clock and setting the clock. Starting the clock and stopping the clock can be used irrespective of setting the clock (For example during iodelay recalibration). Also set the clock only if

[U-Boot] [PATCH 11/23] mmc: omap_hsmmc: Add support to set IODELAY values

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I The data manual of J6/J6 Eco recommends to set different IODELAY values depending on the mode in which the MMC/SD is enumerated in order to ensure IO timings are met. Add support to parse mux values and iodelay values from device tree and set these

[U-Boot] [PATCH 05/23] mmc: omap_hsmmc: Enable DDR mode support

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I In order to enable DDR mode, Dual Data Rate mode bit has to be set in MMCHS_CON register. Set it here. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot --- arch/arm/include/asm/omap_mmc.h | 1

[U-Boot] [PATCH 23/23] ARM: DRA7x/AM57x: Add MMC/SD fixups for rev1.0 and rev 1.1

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Since DRA7xx/AM57xx SR1.1 and SR1.0 has errata to limit the frequency of MMC1 to 96MHz and frequency of MMC2 to 48MHz for AM572x SR1.1, limit the frequency and disable higher speed modes for those revision. Also use the recommended IO delays (those

[U-Boot] [PATCH 14/23] mmc: omap_hsmmc: update mmc->clock with the actual bus speed

2017-09-21 Thread Jean-Jacques Hiblot
When the clock is applied, compute the actual value of the clock. It may be slightly different from the requested value (max freq, divisor threshold) Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [U-Boot] [PATCH] py: test_gpio: Add support for GPIO pytest

2017-09-21 Thread Stephen Warren
On 09/21/2017 06:24 AM, Michal Simek wrote: Hi Stephen, On 20.9.2017 19:05, Stephen Warren wrote: On 09/20/2017 01:55 AM, Michal Simek wrote: From: Vipul Kumar This patch tests the gpio commands using the gpio data from boardenv file. Also one test will show the

[U-Boot] [PATCH v2 14/26] mmc: Add a new callback function to perform the 74 clocks cycle sequence

2017-09-21 Thread Jean-Jacques Hiblot
Add a new callback function *send_init_stream* which start a sequence of at least 74 clock cycles. The mmc core uses *mmc_send_init_stream* in order to invoke the callback function. This will be used during power cycle where the specification requires such a sequence after power up.

[U-Boot] [PATCH v2 22/26] mmc: Change mode when switching to a boot partition

2017-09-21 Thread Jean-Jacques Hiblot
Boot partitions do not support HS200. Changing to a lower performance mode is required to access them. mmc_select_mode_and_width() and sd_select_mode_and_width() are modified to make it easier to call them outside of the initialization context. Signed-off-by: Jean-Jacques Hiblot

[U-Boot] [PATCH v2 13/26] mmc: Enable signal voltage to be selected from mmc core

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Add a new function *mmc_set_signal_voltage* in mmc core which can be used during mmc initialization to select the signal voltage. Platform driver should use the set_ios callback function to select the signal voltage. Signed-off-by: Kishon Vijay

[U-Boot] [PATCH v2 19/26] mmc: add HS200 support in MMC core

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Add HS200 to the list of supported modes and introduce tuning in the MMC startup process. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass ---

[U-Boot] [PATCH v2 0/5] mmc: omap_hsmmc: Add support for ADMA

2017-09-21 Thread Jean-Jacques Hiblot
This series enables the ADMA present in some OMAP SOCs. On a DRA7 the performances when reading from the eMMC go from 18MB/s to 43MB/s. Also while were at it, fix some incorrect bit operations This series applies on top of the series that enables HS200 and UHS mode "mmc: Add support for HS200

Re: [U-Boot] u-boot Boot issue about rk3188

2017-09-21 Thread Heiko Stübner
Hi Andy, Am Donnerstag, 21. September 2017, 22:03:32 CEST schrieb Andy Yan: > Hi Heiko: > I try to boot the upstream u-boot-rockchip branch on my rk3188 board > with(rock_defconfig) > > But I got this error: > early_init() > nit_and_scan() returned error -22 > early_init() failed: -22 > ERROR

[U-Boot] [PATCH v3 0/2] power: Add a driver to handle the PBIAS cell of the TI SOCs

2017-09-21 Thread Jean-Jacques Hiblot
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. This bias voltage is either 1.8v or 3.0v. The first patch adds 2 functions to the DM core: to count strings in a stringlist and get a string from

[U-Boot] [PATCH 16/23] mmc: omap_hsmmc: allow mmc clock to be gated

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I mmc core has defined a new parameter *clk_disable* to gate the clock. Disable the clock here if *clk_disable* is set. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot ---

[U-Boot] [PATCH 17/23] mmc: omap_hsmmc: add signal voltage selection support

2017-09-21 Thread Jean-Jacques Hiblot
I/O data lines of UHS SD card operates at 1.8V when in UHS speed mode (same is true for eMMC in DDR and HS200 modes). Add support to switch signal voltage to 1.8V in order to support UHS cards and eMMC HS200 and DDR modes. Signed-off-by: Kishon Vijay Abraham I Signed-off-by:

[U-Boot] [PATCH 15/23] mmc: omap_hsmmc: implement send_init_stream callback

2017-09-21 Thread Jean-Jacques Hiblot
This callback is used to send the 74 clock cycles after power up. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 82ec69e..0a4f8a7 100644

[U-Boot] [PATCH 12/23] mmc: omap_hsmmc: Add support to get pinctrl values and max frequency for different hw revisions

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I AM572x SR1.1 requires different IODelay values to be used than that used in AM572x SR2.0. These values are populated in device tree. Add capability in omap_hsmmc driver to extract IOdelay values for different silicon revision. The maximum frequency is

[U-Boot] [PATCH 09/23] mmc: omap_hsmmc: use mmc_of_parse to populate mmc_config

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Use the mmc_of_parse library function to populate mmc_config instead of repeating the same code in host controller driver. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot ---

[U-Boot] [PATCH 04/23] mmc: omap_hsmmc: set MMC mode in the UHSMS bit field

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Use the timing parameter set in the MMC core to set the mode in UHSMS bit field. This is in preparation for adding HS200 support in omap hsmmc driver. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot

[U-Boot] [PATCH 19/23] ARM: dts: DRA7: use new dra7-specific compatible string

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Use the new compatible string "ti,dra7-hsmmc" that was specifically added for dra7 and dra72. This is required since for dra7 and dra72 processors iodelay values has to be set unlike other processors. Signed-off-by: Kishon Vijay Abraham I

[U-Boot] [PATCH] sun50i: h5: Add NanoPi Neo Plus2 DT initial support

2017-09-21 Thread Antony Antony
Add initial DT for NanoPi NEO Plus2 by FriendlyARM - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU - 1 GB DDR3 RAM - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) - micro SD card slot - Gigabit Ethernet (external RTL8211E-VB-CG chip) - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A

[U-Boot] [PATCH v2 3/5] mmc: omap_hsmmc: Add support for DMA (ADMA2)

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I The omap hsmmc host controller can have the ADMA2 feature. It brings better read and write throughput. On most SOC, the capability is read from the hl_hwinfo register. On OMAP3, DMA support is compiled out. Signed-off-by: Kishon Vijay Abraham I

[U-Boot] [PATCH v2 4/5] mmc: omap_hsmmc: Enable Auto command (CMD12) enable

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Instead of sending STOP TRANSMISSION command from MMC core, enable the auto command feature so that the Host Controller issues CMD12 automatically when last block transfer is completed. Signed-off-by: Kishon Vijay Abraham I

[U-Boot] [PATCH 22/23] dts: am57xx-idk: disable HS200 support

2017-09-21 Thread Jean-Jacques Hiblot
HS200 cannot be supported on mmc2, because the IO lines of mmc2 are connected to 3.3v. Signed-off-by: Jean-Jacques Hiblot --- arch/arm/dts/am57xx-idk-common.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/am57xx-idk-common.dtsi

[U-Boot] [PATCH 06/23] mmc: omap_hsmmc: Add tuning support

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I HS200/SDR104 requires tuning command to be sent to the card. Use the mmc_send_tuning library function to send the tuning command and configure the internal DLL. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot

[U-Boot] [PATCH 20/23] ARM: dts: dra7: Add supported MMC/SD modes in MMC dt nodes

2017-09-21 Thread Jean-Jacques Hiblot
On DRA7 family SoCs, MMC1 controller supports SDR104, SDR50, DDR50, SDR25 and SDR12 UHS modes. MMC2 controller supports HS200 and DDR modes. MMC3 controller supports SDR12, SDR25 and SDR50 modes. MMC4 controller supports SDR12 and SDR25 modes. Add these supported modes in device-tree file.

[U-Boot] [PATCH 03/23] mmc: omap_hsmmc: add support to set default io voltage

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I "ti,dual-volt" is used in linux kernel to set the voltage capabilities. For host controller dt nodes that doesn't have "ti,dual-volt", it's assumed 1.8v is the io voltage. This is not always true (like in the case of beagle-x15 where the io lines are

[U-Boot] [PATCH 07/23] mmc: omap_hsmmc: Workaround for errata id i802

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I According to errata i802, DCRC error interrupts (MMCHS_STAT[21] DCRC=0x1) can occur during the tuning procedure. The DCRC interrupt, occurs when the last tuning block fails (the last ratio tested). The delay from CRC check until the interrupt is

Re: [U-Boot] [U-Boot, v2, 4/8] test/py: Import StringIO from io module for python 3.x

2017-09-21 Thread Tom Rini
On Thu, Sep 14, 2017 at 02:34:46PM -0700, Paul Burton wrote: > In python 3.x the StringIO module is gone, and instead StringIO can be > imported from the io module. Do this in order to run on python 3.x, and > fall back to importing StringIO as a module in order to continue working > with python

[U-Boot] [PATCH v2 16/26] mmc: add a new mmc parameter to disable mmc clock

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I mmc clock has to be disabled in certain cases like during the voltage switch sequence. Modify mmc_set_clock function to take disable as an argument that signifies if the clock has to be enabled or disabled. Signed-off-by: Kishon Vijay Abraham I

[U-Boot] [PATCH v2 01/26] mmc: dm: get the IO-line and main voltage regulators from the dts

2017-09-21 Thread Jean-Jacques Hiblot
Get a reference to the regulator devices from the dts and store them in the struct mmc for later use. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/mmc.c | 24 ++-- include/mmc.h | 4 2 files changed, 18 insertions(+), 10 deletions(-) diff

[U-Boot] [PATCH v2 17/26] mmc: disable the mmc clock during power off

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I There is no point in having the mmc clock enabled during power off. Disable the mmc clock. This is similar to how it's programmed in Linux Kernel. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Vignesh R

[U-Boot] [PATCH v2 04/26] mmc: make ext_csd part of struct mmc

2017-09-21 Thread Jean-Jacques Hiblot
The ext csd is used for comparison many times. Keep a reference content of the ext csd in the struct mmc to avoid reading multiple times Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- drivers/mmc/mmc.c | 22 +-

[U-Boot] [PATCH] Remove "no previous prototype" warning

2017-09-21 Thread Diego Dorta
When compiling with W=1 the following warning is observed: board/freescale/mx6sabresd/mx6sabresd.c:266:5: warning: no previous prototype for ‘board_mmc_get_env_dev’ [-Wmissing-prototypes] int board_mmc_get_env_dev(int devno) Remove this warning by adding the function prototype into mmc.h file.

[U-Boot] [PATCH 00/23] mmc: omap5: Add support for UHS and HS200 modes

2017-09-21 Thread Jean-Jacques Hiblot
This series adds the missing bit to enable the UHS, HS200 and DDR52 modes on the omap5 platforms (DRA7 and AM57). It relies on the following series: * [PATCH v2 00/26] mmc: Add support for HS200 and UHS modes * [PATCH v2 0/5] mmc: omap_hsmmc: Add support for ADMA * [PATCH v3 0/2] power: Add a

[U-Boot] [PATCH 10/23] ARM: OMAP5/DRA7: Enable iodelay recalibration to be done from uboot

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Add a new API to perform iodelay recalibration without isolate io to be used in uboot. The data manual of J6/J6 Eco recommends to set different IODELAY values depending on the mode in which the MMC/SD is enumerated in order to ensure IO timings are

[U-Boot] [PATCH 21/23] dts: am57xx-beagle-x15: disable UHS and HS200 support

2017-09-21 Thread Jean-Jacques Hiblot
The UHS modes are not supported in beagle-x15 because it's not possible to switch the IO lines supply voltage to 1.8v. Also HS200 cannot be supported on mmc2, because the IO lines of mmc2 are connected to 3.3v. Signed-off-by: Jean-Jacques Hiblot ---

[U-Boot] [PATCH 02/23] mmc: omap_hsmmc: cleanup omap_hsmmc_set_ios

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I No functional change. Move bus width configuration setting to a separate function and invoke it only if there is a change in the bus width. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot ---

[U-Boot] [PATCH 18/23] ARM: OMAP5: set mmc clock frequency to 192MHz

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Now that omap_hsmmc has support for hs200 mode, change the clock frequency to 192MHz. Also change the REFERENCE CLOCK frequency to 192MHz based on which the internal mmc clock divider is calculated. Signed-off-by: Kishon Vijay Abraham I

[U-Boot] [PATCH v2 24/26] mmc: use the right voltage level for MMC DDR and HS200 modes

2017-09-21 Thread Jean-Jacques Hiblot
HS200 only supports 1.2v and 1.8v signal voltages. DDR52 supports 3.3v/1.8v or 1.2v signal voltages. Select the lowest voltage available when using those modes. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/mmc.c | 68 ++-

[U-Boot] [PATCH v2 23/26] mmc: Retry some MMC cmds on failure

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I With certain SD cards like Kingston 8GB/16GB UHS card, it is seen that MMC_CMD_ALL_SEND_CID cmd fails on first attempt, but succeeds subsequently. Therefore, retry MMC_CMD_ALL_SEND_CID cmd a few time as done in Linux kernel. Similarly, it is seen that

[U-Boot] [PATCH v2 11/26] mmc: refactor MMC startup to make it easier to support new modes

2017-09-21 Thread Jean-Jacques Hiblot
The MMC startup process currently handles 4 modes. To make it easier to add support for more modes, let's make the process more generic and use a list of the modes to try. The major functional change is that when a mode fails we try the next one. Not all modes are tried, only those supported by

[U-Boot] [PATCH v2 26/26] dm: mmc: Add a library function to parse generic dt binding

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I Add a new function to parse host controller dt node and set mmc_config. This function can be used by mmc controller drivers to set the generic mmc_config. This function can be extended to set other UHS mode caps once UHS mode support is added.

[U-Boot] [PATCH v2 5/5] mmc: omap_hsmmc: Fix incorrect bit operations for disabling a bit

2017-09-21 Thread Jean-Jacques Hiblot
From: Kishon Vijay Abraham I omap_hsmmc driver uses "|" in a couple of places for disabling a bit. While it's okay to use it in "mmc_reg_out" (since mmc_reg_out has a _mask_ argument to take care of resetting a bit), it's incorrectly used for resetting flags in

[U-Boot] [PATCH v2 1/5] Revert "omap_hsmmc: update struct hsmmc to accommodate omap3 from DT"

2017-09-21 Thread Jean-Jacques Hiblot
This reverts commit 46831c1a4cda75d92f7ad18d4e2b1eb196c62b2f. This reserved area at the beginning of struct hsmm, will be used later to support ADMA Signed-off-by: Jean-Jacques Hiblot --- arch/arm/include/asm/omap_mmc.h | 3 +++ drivers/mmc/omap_hsmmc.c| 35

[U-Boot] [PATCH v3 1/2] dm: core: Add functions to get strings and the string count from a stringlist

2017-09-21 Thread Jean-Jacques Hiblot
dev_read_string_count() is used to get the number of strings in a stringlist. dev_read_string_index() is used to get a string in the stringlist based on its position in the list. Signed-off-by: Jean-Jacques Hiblot --- drivers/core/read.c | 11 +++ include/dm/read.h |

[U-Boot] [PATCH v3 2/2] regulator: pbias: Add PBIAS regulator for proper voltage switching on MMC1

2017-09-21 Thread Jean-Jacques Hiblot
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 Reviewed-by: Tom Rini

[U-Boot] [PATCH v2 1/1] sunxi: Add support for A20-OLinuXino-MICRO-eMMC

2017-09-21 Thread Stefan Mavrodiev
From rev.J A20-OLinuXino-MICRO has eMMC option. For now this is only 4GB, but in the future size may increase. The dts file is the same from mainline kernel. Signed-off-by: Stefan Mavrodiev --- Changes for v2: - Synced with latest u-boot - Removed MMC3 CD pin configuration

[U-Boot] [PATCH 1/1] GPT: incomplete initialization in allocate_disk_part

2017-09-21 Thread Heinrich Schuchardt
memset(newpart, '\0', sizeof(newpart)); only initializes the firest 4 or 8 bytes of *newpart and not the whole structure disk_part. We should use sizeof(struct disk_part). Identified by cppcheck. Fixes: 09a49930e41 GPT: read partition table from device into a data structure Signed-off-by:

Re: [U-Boot] [PATCH] py: test_gpio: Add support for GPIO pytest

2017-09-21 Thread Michal Simek
Hi Stephen, On 20.9.2017 19:05, Stephen Warren wrote: > On 09/20/2017 01:55 AM, Michal Simek wrote: >> From: Vipul Kumar >> >> This patch tests the gpio commands using the >> gpio data from boardenv file. >> >> Also one test will show the default status of all the gpio's

[U-Boot] [PATCH v2 1/3] pwm: sunxi: add support for PWM found on Allwinner A64 and H3

2017-09-21 Thread Vasily Khoruzhick
This commit adds basic support for PWM found on Allwinner A64 and H3 It can be used for pwm_backlight driver (e.g. for Pinebook) Signed-off-by: Vasily Khoruzhick --- v2: - move pinmux config into enable function to make driver more friendly to the boards with ethernet

[U-Boot] [PATCH v3 0/3] sunxi: add PWM driver for H3 and A64

2017-09-21 Thread Vasily Khoruzhick
This series introduces a PWM driver for Allwinner H3 and A64 and makes some adjustments to pwm_backlight driver that are neccessary to get backlight working on Pinebook. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v2 2/3] video: pwm_backlight: make regulator optional

2017-09-21 Thread Vasily Khoruzhick
u-boot doesn't have dummy regulators, so pwm_backlight probe will fail if regulator is missing. Make it optional to get this driver working on platforms where there's no backlight regultor. Signed-off-by: Vasily Khoruzhick --- v2: - no changes drivers/video/pwm_backlight.c

[U-Boot] [PATCH v2 3/3] dts: sunxi: add PWM node for sun50i

2017-09-21 Thread Vasily Khoruzhick
Add PWM definition to sun50i-a64.dtsi - it's compatible with PWM found on H3 Signed-off-by: Vasily Khoruzhick --- v2: - drop 'sun50i-a64-pwm' compatible string and use 'sun8i-h3-pwm' instead, since A64 PWM is compatible with one on H3 arch/arm/dts/sun50i-a64.dtsi | 8

[U-Boot] [PATCH v2 0/5] sunxi: video: add DE2 LCD and ANX6345 drivers

2017-09-21 Thread Vasily Khoruzhick
This series adds drivers that are necessary to get LCD working on Pinebook: - ANX6345 eDP bridge driver that allows to connect eDP panels to SoCs that have parallel LCD interface - DE2 LCD driver for Allwinner A64. Similar hardware is present in V3s and R40, but is not supported by this

[U-Boot] [PATCH v2 4/5] sunxi: video: split out PLL configuration code

2017-09-21 Thread Vasily Khoruzhick
It will be reused in new DM LCD driver. Signed-off-by: Vasily Khoruzhick --- v2: - no changes arch/arm/include/asm/arch-sunxi/lcdc.h | 2 + drivers/video/sunxi/lcdc.c | 117 ++- drivers/video/sunxi/sunxi_display.c| 121

[U-Boot] [PATCH v2 5/5] sunxi: video: add LCD support to DE2 driver

2017-09-21 Thread Vasily Khoruzhick
Extend DE2 driver with LCD support. Tested on Pinebook which is based on A64 and has ANX6345 eDP bridge with eDP panel connected to it. Signed-off-by: Vasily Khoruzhick --- v2: - drop redundant clock_set_pll10() call - fallback to timings from DT if reading EDID from

Re: [U-Boot] [RESEND PATCH 5/5] sunxi: video: add LCD support to DE2 driver

2017-09-21 Thread Maxime Ripard
On Thu, Sep 21, 2017 at 05:33:36AM +, Vasily Khoruzhick wrote: > >>> + ret = uclass_find_device_by_name(UCLASS_DISPLAY, > >>> + "sunxi_lcd", ); > >>> + if (!ret) { > >>> + int mux; > >>> + > >>> + mux = 0; > >>> + > >>> +

Re: [U-Boot] [RESEND PATCH 5/5] sunxi: video: add LCD support to DE2 driver

2017-09-21 Thread icenowy
在 2017-09-21 14:51,Maxime Ripard 写道: On Thu, Sep 21, 2017 at 05:33:36AM +, Vasily Khoruzhick wrote: >>> + ret = uclass_find_device_by_name(UCLASS_DISPLAY, >>> + "sunxi_lcd", ); >>> + if (!ret) { >>> + int mux; >>> + >>> +

Re: [U-Boot] [U-Boot, v3, 08/21] efi_loader: use proper device-paths for partitions

2017-09-21 Thread Alexander Graf
> Also, create disk objects for the disk itself, in addition to the > partitions. (UEFI terminology is a bit confusing, a "disk" object is > really a partition.) This helps grub properly identify the boot device > since it is trying to match up partition "disk" object with it's parent > device.

Re: [U-Boot] [U-Boot,v3,14/21] efi_loader: efi variable support

2017-09-21 Thread Alexander Graf
> Add EFI variable support, mapping to u-boot environment variables. > Variables are pretty important for setting up boot order, among other > things. If the board supports saveenv, then it will be called in > ExitBootServices() to persist variables set by the efi payload. (For > example,

  1   2   >