Re: [U-Boot] [PATCH v4 03/10] dm: spi: add BCM63xx SPI driver

2017-06-14 Thread Jagan Teki
On Wed, Jun 14, 2017 at 3:27 PM, Álvaro Fernández Rojas wrote: > This driver is a simplified version of linux/drivers/spi/spi-bcm63xx.c > Instead of supporting both HW revisions of the controller in a single build, > support has been split by the selected config to save space. > > Signed-off-by: Á

Re: [U-Boot] [PATCH v2 29/29] x86: Move link to use driver model for SCSI

2017-06-14 Thread Bin Meng
On Thu, Jun 15, 2017 at 11:28 AM, Simon Glass wrote: > As a demonstration of how to use SCSI with driver model, move link over > to use this. This patch needs more work, but illustrates the concept. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Update link64 and panther also > - Dro

Re: [U-Boot] [PATCH v2 27/29] dm: ahci: Add a driver for SCSI on AHCI

2017-06-14 Thread Bin Meng
On Thu, Jun 15, 2017 at 11:28 AM, Simon Glass wrote: > Some AHCI drivers use SCSI under the hood. Rather than making the AHCI > driver be in the SCSI uclass it makes sense to have the AHCI device create > a SCSI device as a child. That way we can handle any AHCI-specific > operations rather than t

Re: [U-Boot] [PATCH v5 04/11] usb: host: xhci-rockchip: use fixed regulator to control vbus

2017-06-14 Thread rock-chips(daniel.meng)
On 2017/6/13 17:11, Marek Vasut wrote: On 06/12/2017 11:19 AM, Meng Dongyang wrote: Use fixed regulator to control the voltage of vbus and turn off vbus when usb stop. Signed-off-by: Meng Dongyang --- Changes in v5: - Propagate return value and print error message when failed Changes in v4

[U-Boot] [PATCH v2 24/29] dm: scsi: Add operations for SCSI devices

2017-06-14 Thread Simon Glass
The SCSI uclass currently has no operations. It just uses the global SCSI functions. Fix this by adding operations to the only two drivers that use the uclass, and replacing the global functions with those defined locally in the SCSI code. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Ch

[U-Boot] [PATCH v2 25/29] dm: scsi: Adjust return value of scsi_exec()

2017-06-14 Thread Simon Glass
Change this function to return an error number instead of true/false. This allows us to return a proper error number. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None drivers/ata/ahci.c | 6 +++--- drivers/scsi/scsi.c | 8 2 files changed, 7 insertions(+), 7

[U-Boot] [PATCH v2 20/29] dm: scsi: Add operations

2017-06-14 Thread Simon Glass
Add operations for SCSI. These are not yet implemented, but we have the struct. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None include/scsi.h | 20 1 file changed, 20 insertions(+) diff --git a/include/scsi.h b/include/scsi.h index cd1b240855..d

[U-Boot] [PATCH v2 19/29] dm: ahci: Drop use of probe_ent

2017-06-14 Thread Simon Glass
With driver model we cannot have static data or assume that there is only one device of each time. Adjust the code so that 'probe_ent' is not needed with driver model. Add a new ahci_init_dm() function which can init AHCI for driver model without re-allocating the uclass data. Move over the only ex

[U-Boot] [PATCH v2 27/29] dm: ahci: Add a driver for SCSI on AHCI

2017-06-14 Thread Simon Glass
Some AHCI drivers use SCSI under the hood. Rather than making the AHCI driver be in the SCSI uclass it makes sense to have the AHCI device create a SCSI device as a child. That way we can handle any AHCI-specific operations rather than trying to pretend tha the device is just SCSI. To handle this

[U-Boot] [PATCH v2 15/29] dm: ahci: Refactor to avoid static variables

2017-06-14 Thread Simon Glass
With driver model we need each device to have its own state. As a step towards this, restrict use of the global 'probe_ent' to just a few places in the file. This will allow us to add driver-model functions which can pass the correct data around. Signed-off-by: Simon Glass Reviewed-by: Bin Meng

[U-Boot] [PATCH v2 28/29] dm: scsi: Drop scsi_init() when driver model is used

2017-06-14 Thread Simon Glass
This function should not be used with driver model. Update the code to reflect this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None drivers/scsi/scsi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c

[U-Boot] [PATCH v2 22/29] dm: scsi: Document and rename the scsi_scan() parameter

2017-06-14 Thread Simon Glass
The 'mode' parameter is actually a flag to determine whether to display a list of devices found during the scan. Rename it to reflect this, add a function comment and adjust callers to use a boolean. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/arm/cpu/armv7/l

[U-Boot] [PATCH v2 23/29] dm: ahci: Create a local version of two SCSI functions

2017-06-14 Thread Simon Glass
With driver model we need to define implementations of exec() and bus_reset() separately for each SCSI driver. As a first step, create a local version of each function in the AHCI driver and call each from its global version. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: N

[U-Boot] [PATCH v2 14/29] dm: sata: Move ataid into struct ahci_uc_priv

2017-06-14 Thread Simon Glass
This array relates to the AHCI controller so should be exist out on its own in the file. Move it into the structure. Adjust functions that need access to this to take the structure as a parameter. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None drivers/ata/ahci.c | 50

[U-Boot] [PATCH v2 21/29] dm: scsi: Add a device pointer to scan_exec(), scsi_bus_reset()

2017-06-14 Thread Simon Glass
With driver model these functions need a device pointer. Add one even when CONFIG_DM_SCSI is not defined. This avoids having ugly conditional function prototypes, When CONFIG_DM_SCSI is not defined we can just ignore the pointer. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v

[U-Boot] [PATCH v2 17/29] dm: ahci: Move common code for starting ports into a function

2017-06-14 Thread Simon Glass
This code is duplicated. Create a ahci_start_ports() function to handle this and call it from both places. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None drivers/ata/ahci.c | 45 ++--- 1 file changed, 22 insertions(+), 23 delet

[U-Boot] [PATCH v2 29/29] x86: Move link to use driver model for SCSI

2017-06-14 Thread Simon Glass
As a demonstration of how to use SCSI with driver model, move link over to use this. This patch needs more work, but illustrates the concept. Signed-off-by: Simon Glass --- Changes in v2: - Update link64 and panther also - Drop the PCI_DEVICE declarations - Drop RFC tag arch/x86/cpu/ivybridge/

[U-Boot] [PATCH v2 16/29] dm: scsi: Indent the confusing #ifdefs

2017-06-14 Thread Simon Glass
These are very confusing without some sort of indentation. At some point we will be able to remove them, but for now, indent them. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None drivers/scsi/scsi.c | 26 +- 1 file changed, 13 insertions(+), 13

[U-Boot] [PATCH v2 11/29] dm: scsi: Drop the ccb typedef

2017-06-14 Thread Simon Glass
We should not be using typedefs in U-Boot and 'ccb' is a pretty short name. It is also used with variables. Drop the typedef and use 'struct' instead. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None common/usb_storage.c| 44 ++--

[U-Boot] [PATCH v2 10/29] dm: scsi: Rename struct SCSI_cmd_block to struct scsi_cmd

2017-06-14 Thread Simon Glass
This name should be lower case. Also the _block suffix is superfluous. Rename it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None drivers/usb/emul/sandbox_flash.c | 2 +- include/scsi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -

[U-Boot] [PATCH v2 26/29] dm: scsi: Split out the bus scanning code

2017-06-14 Thread Simon Glass
Split out the code that scans a single SCSI bus into a separate function. This will allow it to be used from driver model. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None drivers/scsi/scsi.c | 35 +++ include/scsi.h | 8

[U-Boot] [PATCH v2 12/29] dm: scsi: Use the uclass platform data

2017-06-14 Thread Simon Glass
At present the two driver-model SCSI drivers use device platform data to store information that relates to the uclass. It is better to use uclass platform data in this situation. Update the code to do this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None drivers/ata/a

[U-Boot] [PATCH v2 18/29] dm: ahci: Unwind the confusing init code

2017-06-14 Thread Simon Glass
Two AHCI drivers use SCSI with CONFIG_DM_SCSI. The SCSI uclass calls scsi_low_level_init() which is implemented by ahci.c. If CONFIG_SCSI_AHCI_PLAT is defined it does one thing and if it is not it does something else. We don't need to call through scsi_low_level_init() to get the init completed. I

[U-Boot] [PATCH v2 13/29] dm: ahci: Rename struct ahci_probe_ent

2017-06-14 Thread Simon Glass
This is not a very useful name since once it is probed it still hangs around. With driver model we will use uclass data for this, so rename the struct. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None board/highbank/ahci.c| 2 +- drivers/ata/ahci.c | 16

[U-Boot] [PATCH v2 09/29] dm: scsi: Rearrange header file for driver model

2017-06-14 Thread Simon Glass
Put the driver-model declarations first since we are migrating to that. Also drop scsi_init() when driver model is used. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None include/scsi.h | 34 ++ 1 file changed, 14 insertions(+), 20 deleti

[U-Boot] [PATCH v2 08/29] scsi: Move drivers into new drivers/scsi directory

2017-06-14 Thread Simon Glass
At present we have the SCSI drivers in the drivers/block and common/ directories. It is better to split them out into their own place. Use drivers/scsi which is what Linux does. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None common/Makefile|

[U-Boot] [PATCH v2 07/29] sata: Move drivers into new drivers/ata directory

2017-06-14 Thread Simon Glass
At present we have the SATA and PATA drivers mixed up in the drivers/block directory. It is better to split them out into their own place. Use drivers/ata which is what Linux does. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/powerpc/cpu/mpc85xx/cpu_init.c |

[U-Boot] [PATCH v2 06/29] Kconfig: Add CONFIG_SATA to enable SATA

2017-06-14 Thread Simon Glass
At present CONFIG_CMD_SATA enables the 'sata' command which also brings in SATA support. Some boards may wish to enable SATA without the command. Add a separate CONFIG to permit this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None api/api_storage.c

[U-Boot] [PATCH v2 05/29] Convert CONFIG_CMD_SATA to Kconfig

2017-06-14 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_SATA Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/Kconfig | 1 + arch/arm/cpu/armv7/mx6/Kconfig | 4 ++ arch/arm/mach-mvebu/Kconfig

[U-Boot] [PATCH v2 04/29] scsi: Drop scsi_print_error()

2017-06-14 Thread Simon Glass
This function is only defined by one driver and is empty. Move it into the SCSI implementation itself. We could remove it, but it should be useful for debugging. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None common/scsi.c| 5 + drivers/block/ahci

[U-Boot] [PATCH v2 03/29] scsi: Drop sym53c8xx driver

2017-06-14 Thread Simon Glass
This driver is for a PowerPC board that will likely be removed soon. Rather than converting it to driver model, drop it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None README | 5 - board/mpl/pip405/README | 5 +- common/scsi.c

[U-Boot] [PATCH v2 02/29] Convert CONFIG_SCSI to Kconfig

2017-06-14 Thread Simon Glass
This converts the following to Kconfig: CONFIG_SCSI Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Move the "imply SCSI" before the "help" message - Change 'enabled' to 'enables' in config SCSI README | 1 - arch/Kconfig

[U-Boot] [PATCH v2 01/29] configs: Resync with savedefconfig

2017-06-14 Thread Simon Glass
Rsync all defconfig files using moveconfig.py Signed-off-by: Simon Glass --- Changes in v2: None configs/Sinovoip_BPI_M2_Plus_defconfig | 1 - configs/UCP1020_SPIFLASH_defconfig | 2 +- configs/UCP1020_defconfig| 2 +- configs/adp-ae3xx_defcon

[U-Boot] [PATCH v2 00/29] dm: scsi: Enhance SCSI support for driver model

2017-06-14 Thread Simon Glass
At present U-Boot has a SCSI uclass but it does not have any operations. The global scsi_exec() function is still used to execute SCSI commands. This series tidies this up with the following changes: - Move CONFIG_SCSI and CONFIG_CMD_SATA to use Kconfig - Move SCSI and SATA code into separate driv

[U-Boot] [Patch v2 2/2] arm64: ls1046ardb: Add distro boot support

2017-06-14 Thread Gong Qianyu
Tested on ls1046ardb with automatically boot Ubuntu from SD card or USB disk, if it fails to detect external storage disk, fall back to qspi boot. Signed-off-by: Shengzhou Liu Signed-off-by: Gong Qianyu --- v2: - No change. configs/ls1046ardb_qspi_defconfig | 1 + configs/ls1046ardb_sdcard

[U-Boot] [Patch v2 1/2] armv8: ls1046a: move CONFIG_CMD_USB to defconfig

2017-06-14 Thread Gong Qianyu
Move the macro to defconfig to take effect globally. Signed-off-by: Gong Qianyu --- v2: - Reordered the macro. configs/ls1046aqds_SECURE_BOOT_defconfig| 1 + configs/ls1046aqds_defconfig| 1 + configs/ls1046aqds_lpuart_defconfig | 1 + configs/ls1046aqds

Re: [U-Boot] [PATCH] rockchip: rk3288: Add reset reason detection

2017-06-14 Thread Kever Yang
Hi Wadim, On 06/13/2017 07:20 PM, Wadim Egorov wrote: Sometimes it's helpful to know the reset reason caused in the SoC. Add reset reason detection for the RK3288 SoC. This will set an environemt variable which represents the reset reason. Signed-off-by: Wadim Egorov --- arch/arm/mach-rockc

Re: [U-Boot] [PATCH] arm: ls1021atwr: Add distro boot support

2017-06-14 Thread York Sun
> On Jun 14, 2017, at 18:08, Alison Wang wrote: > > Hi, York, > >>> On 05/26/2017 01:01 AM, Alison Wang wrote: >>> This patch includes common config_distro_defaults.h and >>> config_distro_bootcmd.h for u-boot enviroments to support distro boot >>> which automatically scan boot.scr from storage

Re: [U-Boot] [PATCH] arm: ls1021atwr: Add distro boot support

2017-06-14 Thread Alison Wang
Hi, York, > On 05/26/2017 01:01 AM, Alison Wang wrote: > > This patch includes common config_distro_defaults.h and > > config_distro_bootcmd.h for u-boot enviroments to support distro boot > > which automatically scan boot.scr from storage devices(e.g. > > SD/USB/SATA/SCSI disk) and execute autobo

Re: [U-Boot] [U-Boot, 6/7] rockchip: firefly-rk3399: enable dwmmc driver for the board

2017-06-14 Thread Vagrant Cascadian
On 2017-06-14, Kever Yang wrote: > Enable mmc_dw_rockchip driver, disable CONFIG_SPL_OF_PLATDATA > first for some dependence patches still not merged. > > Signed-off-by: Kever Yang Tested v2017.07-rc1 with this patch series booting off of microSD on a firefly-rk3399. Tested-by: Vagrant Cascadian

[U-Boot] [PATCH] arm: omap: Extract OMAP5 boot environment to separate file

2017-06-14 Thread Sam Protsenko
Signed-off-by: Sam Protsenko --- include/configs/ti_omap5_common.h | 60 ++-- include/environment/ti/boot.h | 83 +++ 2 files changed, 86 insertions(+), 57 deletions(-) create mode 100644 include/environment/ti/boot.h diff --git a/

Re: [U-Boot] [PATCH v3 00/35] dm: tegra: Move nyan-big, jetson-tk1, beaver to livetree

2017-06-14 Thread Simon Glass
Hi Stephen, On 14 June 2017 at 10:48, Stephen Warren wrote: > On 06/14/2017 10:32 AM, Stephen Warren wrote: >> >> On 06/14/2017 05:30 AM, Simon Glass wrote: >> ... >>> >>> At this point I'm thinking of applying the patches except for the one >>> that actually enables livetree. Once we figure out

Re: [U-Boot] [PATCH v3 00/35] dm: tegra: Move nyan-big, jetson-tk1, beaver to livetree

2017-06-14 Thread Stephen Warren
On 06/14/2017 10:32 AM, Stephen Warren wrote: On 06/14/2017 05:30 AM, Simon Glass wrote: ... At this point I'm thinking of applying the patches except for the one that actually enables livetree. Once we figure out what is happening with jetson-tk1, or you can confirm that it works on beaver, we

Re: [U-Boot] [PATCH v3 00/35] dm: tegra: Move nyan-big, jetson-tk1, beaver to livetree

2017-06-14 Thread Stephen Warren
On 06/14/2017 05:30 AM, Simon Glass wrote: ... At this point I'm thinking of applying the patches except for the one that actually enables livetree. Once we figure out what is happening with jetson-tk1, or you can confirm that it works on beaver, we can look at the final patch. Beaver PCIe work

Re: [U-Boot] [PATCH] tegra: mmc: Set the bus width correctly

2017-06-14 Thread Tom Warren
Thanks, Simon. I'll take it in to u-boot-tegra/master for the next PR. > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Wednesday, June 14, 2017 4:32 AM > To: Peter Chubb > Cc: U-Boot Mailing List ; Tom Warren > ; Stephen Warren ; > Ja

[U-Boot] [PATCH v3] sun50i: h5: Add initial NanoPi NEO2 support

2017-06-14 Thread Jagan Teki
From: Jagan Teki NanoPi NEO2 is designed and developed by FriendlyElec using the Allwinner 64-bit H5 SOC. NanoPi Neo2 key features - Allwinner H5, Quad-core 64-bit Cortex-A53 - 512MB DDR3 RAM - microSD slot - 10/100/1000M Ethernet - Serial Debug Port - 5V 2A DC MicroUSB power-supply Signed-off-

Re: [U-Boot] [linux-sunxi] [PATCH v2] sun50i: h5: Add initial NanoPi NEO2 support

2017-06-14 Thread icenowy
在 2017-06-13 18:10,Jagan Teki 写道: From: Jagan Teki NanoPi M1 Plus is designed and developed by FriendlyElec using the Allwinner 64-bit H5 SOC. Copy'n'paste error? NanoPi Neo2 key features - Allwinner H5, Quad-core 64-bit Cortex-A53 - 512MB DDR3 RAM - microSD slot - 10/100/1000M Ethernet -

Re: [U-Boot] [PATCH v1 1/3] powerpc, 8xx: remove support for 8xx

2017-06-14 Thread Tom Rini
On Wed, Jun 14, 2017 at 09:40:18AM +0200, Christophe LEROY wrote: > > > Le 13/06/2017 à 09:37, Heiko Schocher a écrit : > >Hello Christophe, > > > >Am 13.06.2017 um 07:40 schrieb Christophe LEROY: > >> > >> > >>Le 13/06/2017 à 07:26, Christophe LEROY a écrit : > >>>There was for long time no acti

Re: [U-Boot] [PATCH v1 1/3] powerpc, 8xx: remove support for 8xx

2017-06-14 Thread Heiko Schocher
Hello Christophe, Am 14.06.2017 um 09:40 schrieb Christophe LEROY: Le 13/06/2017 à 09:37, Heiko Schocher a écrit : Hello Christophe, Am 13.06.2017 um 07:40 schrieb Christophe LEROY: Le 13/06/2017 à 07:26, Christophe LEROY a écrit : There was for long time no activity in the 8xx area. We

Re: [U-Boot] [PATCH] arm: ti: Add missing guards to headers

2017-06-14 Thread Tom Rini
On Tue, Jun 13, 2017 at 06:15:58PM +0300, Sam Protsenko wrote: > To prevent possible double inclusions in future. > > Signed-off-by: Sam Protsenko Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U

Re: [U-Boot] ARM: fixed relocation using proper alignment

2017-06-14 Thread Tom Rini
On Wed, Jun 14, 2017 at 02:58:31PM +0200, Manfred Schlaegl wrote: > On 2017-06-13 00:42, Tom Rini wrote: > > On Wed, May 10, 2017 at 03:41:32PM +0200, Manfred Schlaegl wrote: > > > >> Using u-boot-2017.05 on i.MX6UL we ran into following problem: > >> Initially U-Boot could be started normally. > >

Re: [U-Boot] ARM: fixed relocation using proper alignment

2017-06-14 Thread Manfred Schlaegl
On 2017-06-13 00:42, Tom Rini wrote: > On Wed, May 10, 2017 at 03:41:32PM +0200, Manfred Schlaegl wrote: > >> Using u-boot-2017.05 on i.MX6UL we ran into following problem: >> Initially U-Boot could be started normally. >> If we added one random command in configuration, the newly generated >> imag

[U-Boot] x86 build is broken with GCC 7

2017-06-14 Thread Otavio Salvador
Hello folks, Testing with current compiler exposed an error: arch/x86/lib/built-in.o: In function `__wrap___udivdi3': /home/otavio/src/u-boot/arch/x86/lib/gcc.c:25: undefined reference to `__normal___udivdi3' Is it a known issue? -- Otavio Salvador O.S. Systems http

Re: [U-Boot] [PATCH v2 06/13] drivers: usb: dwc3: add ti dwc3 peripheral driver with driver model support

2017-06-14 Thread Vignesh R
On Tuesday 13 June 2017 07:33 PM, Marek Vasut wrote: > On 06/13/2017 02:10 PM, Vignesh R wrote: >> From: Mugunthan V N >> >> Add a TI DWC3 peripheral driver with driver model support and the >> driver will be bound by the DWC3 wrapper driver based on the >> dr_mode device tree entry. >> >> Signe

Re: [U-Boot] [PATCH v2 08/13] usb: gadget: ether: Provide a way to read MAC address

2017-06-14 Thread Vignesh R
On Tuesday 13 June 2017 07:36 PM, Marek Vasut wrote: > On 06/13/2017 02:10 PM, Vignesh R wrote: >> Provide a way to read MAC address for usb_ether device from board >> function. Board files can override board_set_usbnet_devaddr() to >> populate MAC address to be used by usb_ether as device addres

Re: [U-Boot] [PATCH 06/13] rockchip: rk3066: add core support

2017-06-14 Thread Kever Yang
Simon, On 06/13/2017 07:50 AM, Simon Glass wrote: Hi Pawel, On 9 June 2017 at 07:03, Paweł Jarosz wrote: W dniu 09.06.2017 o 14:27, Simon Glass pisze: Hi Pawel, On 7 June 2017 at 09:22, Paweł Jarosz wrote: Hi Simon W dniu 06.06.2017 o 23:10, Simon Glass pisze: Hi Pawel, On 6 June 2

Re: [U-Boot] [PATCH] tegra: mmc: Set the bus width correctly

2017-06-14 Thread Simon Glass
Hi, On 7 June 2017 at 22:03, wrote: >> "Simon" == Simon Glass writes: > > Simon> The driver currently does not reset bit 5 of the hostctl > Simon> register even if the MMC stack requests it. Then means that > Simon> once a bus width of 8 is selected it is not possible to change > Simon> it

Re: [U-Boot] [PATCH v3 00/35] dm: tegra: Move nyan-big, jetson-tk1, beaver to livetree

2017-06-14 Thread Simon Glass
Hi Stephen, On 12 June 2017 at 17:15, Simon Glass wrote: > Hi Stephen, > > On 12 June 2017 at 15:39, Stephen Warren wrote: >> On 06/12/2017 03:15 PM, Simon Glass wrote: >>> >>> [trimming the cc list a bit] >>> >>> Hi Stephen, >>> >>> On 12 June 2017 at 15:02, Stephen Warren wrote: On

[U-Boot] [PATCH 0/4] powerpc: remove support for 5xxx and 512x

2017-06-14 Thread Heiko Schocher
remove support for 5xxx and 512x powerpc, as there is no interest in it anymore. travis builds are clean: https://travis-ci.org/hsdenx/u-boot-test/builds/242380936 Heiko Schocher (4): powerpc, 5xxx, 512x: remove support for mpc5xxx and mpc512x powerpc, 82xx: remove some missed mpc82xx remain

Re: [U-Boot] [PATCH v1 1/3] powerpc, 8xx: remove support for 8xx

2017-06-14 Thread Christophe LEROY
Le 13/06/2017 à 09:37, Heiko Schocher a écrit : Hello Christophe, Am 13.06.2017 um 07:40 schrieb Christophe LEROY: Le 13/06/2017 à 07:26, Christophe LEROY a écrit : There was for long time no activity in the 8xx area. We need to go further and convert to Kconfig, but it turned out, nobody

Re: [U-Boot] [PATCH 1/1] spi: fsl_qspi: Pet watchdog even more

2017-06-14 Thread Alexander Stein
On Tuesday 13 June 2017 20:36:35, York Sun wrote: > On 06/01/2017 04:26 AM, Alexander Stein wrote: > > Pet the watchdog once upon each command call (qspi_xfer) and during > > each loop iteration in several commands. > > > > This fixes a watchdog reset especially during erase command. > > Funny yo

Re: [U-Boot] [PATCH v1 1/3] powerpc, 8xx: remove support for 8xx

2017-06-14 Thread Christophe LEROY
Le 13/06/2017 à 07:26, Christophe LEROY a écrit : There was for long time no activity in the 8xx area. We need to go further and convert to Kconfig, but it turned out, nobody is interested anymore in 8xx, so remove it (with a heavy heart, knowing that I remove here the root of U-Boot). Signed-

Re: [U-Boot] [PATCH 12/13] armv7: support rk3066 early back to bootrom in start.S

2017-06-14 Thread Simon Glass
+Philippe Hi Pawel, On 12 June 2017 at 17:50, Simon Glass wrote: > Hi Pawel, > > On 9 June 2017 at 06:31, Paweł Jarosz wrote: >> >> >> W dniu 09.06.2017 o 13:46, Heiko Stuebner pisze: >> >>> Am Mittwoch, 7. Juni 2017, 17:37:13 CEST schrieb Paweł Jarosz: Hi Simon, W dniu

Re: [U-Boot] [PATCH v2 07/13] drivers: usb: dwc3: add ti dwc3 misc driver for wrapper

2017-06-14 Thread Vignesh R
On Tuesday 13 June 2017 07:35 PM, Marek Vasut wrote: >> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c >> index e065c5aeb38d..18bbd5318e48 100644 >> --- a/drivers/usb/dwc3/gadget.c >> +++ b/drivers/usb/dwc3/gadget.c >> @@ -2610,7 +2610,7 @@ int dwc3_gadget_init(struct dwc3 *d

Re: [U-Boot] [PATCH 29/29] RFC: x86: Move link to use driver model for SCSI

2017-06-14 Thread Simon Glass
Hi Bin, On 12 June 2017 at 21:15, Bin Meng wrote: > Hi Simon, > > On Tue, Jun 6, 2017 at 3:15 AM, Simon Glass wrote: >> As a demonstration of how to use SCSI with driver model, move link over >> to use this. This patch needs more work, but illustrates the concept. >> >> Signed-off-by: Simon Glas

Re: [U-Boot] [PATCH 27/29] dm: ahci: Add a driver for SCSI on AHCI

2017-06-14 Thread Simon Glass
Hi Bin, On 12 June 2017 at 21:14, Bin Meng wrote: > Hi Simon, > > On Tue, Jun 6, 2017 at 3:15 AM, Simon Glass wrote: >> Some AHCI drivers use SCSI under the hood. Rather than making the AHCI >> driver be in the SCSI uclass it makes sense to have the AHCI device create >> a SCSI device as a child

[U-Boot] [PATCH v1] rockchip: video: mipi: Modify format type for debug message

2017-06-14 Thread Eric Gao
Modify format type for debug message. Signed-off-by: Eric Gao --- drivers/video/rockchip/rk_mipi.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/rockchip/rk_mipi.c b/drivers/video/rockchip/rk_mipi.c index af7656e..e0bfecf 100644 --- a/drivers/video/r

[U-Boot] [PATCH v3 0/4] mips: bmips: add HSSPI support

2017-06-14 Thread Álvaro Fernández Rojas
BCM63xx HSSPI controller has the same issue as BCM63xx SPI controller: it doesn't allow keeping CS active between transfers. However, this controller allows changing CS polarities, which is used in the linux upstream driver to manage CS as desired. v3: Switch to CONFIG_BCM63XX_HSSPI and rebase on

[U-Boot] [PATCH v3 2/4] mips: bmips: add bcm63xx-hsspi driver support for BCM6328

2017-06-14 Thread Álvaro Fernández Rojas
This driver manages the SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass Reviewed-by: Daniel Schwierzeck --- v3: no changes v2: no changes arch/mips/dts/brcm,bcm6328.dtsi | 24 1 file changed, 24 insertions(+) diff

[U-Boot] [PATCH v4 05/10] mips: bmips: add bcm63xx-spi driver support for BCM6348

2017-06-14 Thread Álvaro Fernández Rojas
This driver manages the SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Daniel Schwierzeck --- v4: no changes v3: rename BCM6338 SPI driver to BCM6348 v2: add spi alias arch/mips/dts/brcm,bcm6348.dtsi | 17 + 1 file changed, 17 insertio

[U-Boot] [PATCH v4 09/10] mips: bmips: enable the SPI flash on the Sagem F@ST1704

2017-06-14 Thread Álvaro Fernández Rojas
It's a Winbond (w25x32) 4 MB SPI flash. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Daniel Schwierzeck --- v4: switch to CONFIG_BCM63XX_SPI v3: rename BCM6338 SPI driver to BCM6348 v2: remove spi alias arch/mips/dts/sagem,f...@st1704.dts | 12 configs/sagem_f@st1704_

[U-Boot] [PATCH v3 1/4] dm: spi: add BCM63xx HSSPI driver

2017-06-14 Thread Álvaro Fernández Rojas
This driver is a simplified version of linux/drivers/spi/spi-bcm63xx-hsspi.c Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass Reviewed-by: Daniel Schwierzeck --- v3: Switch to CONFIG_BCM63XX_HSSPI and rebase on top of SPI v4. v2: Introduce changes suggested by Simon Glass: - S

[U-Boot] [PATCH v3 4/4] mips: bmips: enable the SPI flash on the Comtrend AR-5387un

2017-06-14 Thread Álvaro Fernández Rojas
It's a Macronix (mx25l12805d) 16 MB SPI flash. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass Reviewed-by: Daniel Schwierzeck --- v3: switch to CONFIG_BCM63XX_HSSPI v2: no changes arch/mips/dts/comtrend,ar-5387un.dts| 12 configs/comtrend_ar5387un_ram_defcon

[U-Boot] [PATCH v4 01/10] drivers: spi: allow limiting reads

2017-06-14 Thread Álvaro Fernández Rojas
For some SPI controllers it's not possible to keep the CS active between transfers and they are limited to a known number of bytes. This splits spi_flash reads into different iterations in order to respect the SPI controller limits. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass

[U-Boot] [PATCH v3 3/4] mips: bmips: add bcm63xx-hsspi driver support for BCM63268

2017-06-14 Thread Álvaro Fernández Rojas
This driver manages the high speed SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass Reviewed-by: Daniel Schwierzeck --- v3: no changes v2: no changes arch/mips/dts/brcm,bcm63268.dtsi | 21 + 1 file changed, 21 insertions(

[U-Boot] [PATCH v4 10/10] mips: bmips: enable the SPI flash on the Netgear CG3100D

2017-06-14 Thread Álvaro Fernández Rojas
It's a Spansion (s25fl064a) 8 MB SPI flash. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Daniel Schwierzeck --- v4: switch to CONFIG_BCM63XX_SPI v3: no changes v2: remove spi alias arch/mips/dts/netgear,cg3100d.dts | 12 configs/netgear_cg3100d_ram_defconfig | 8

[U-Boot] [PATCH v4 02/10] drivers: spi: consider command bytes when sending transfers

2017-06-14 Thread Álvaro Fernández Rojas
Command bytes are part of the written bytes and they should be taken into account when sending a spi transfer. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass Reviewed-by: Daniel Schwierzeck --- v4: no changes v3: Fix bug introduced in v2: sizeof(cmd) vs len v2: Introduce chan

[U-Boot] [PATCH v4 07/10] mips: bmips: add bcm63xx-spi driver support for BCM3380

2017-06-14 Thread Álvaro Fernández Rojas
This driver manages the SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Daniel Schwierzeck --- v4: no changes v3: no changes v2: add spi alias arch/mips/dts/brcm,bcm3380.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/m

[U-Boot] [PATCH v4 08/10] mips: bmips: add bcm63xx-spi driver support for BCM63268

2017-06-14 Thread Álvaro Fernández Rojas
This driver manages the low speed SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Daniel Schwierzeck --- v4: no changes v3: no changes v2: add spi alias arch/mips/dts/brcm,bcm63268.dtsi | 17 + 1 file changed, 17 insertions(+) diff --g

[U-Boot] [PATCH v4 04/10] mips: bmips: add bcm63xx-spi driver support for BCM6338

2017-06-14 Thread Álvaro Fernández Rojas
This driver manages the SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Daniel Schwierzeck --- v4: no changes v3: rename BCM6338 SPI driver to BCM6348 v2: add spi alias arch/mips/dts/brcm,bcm6338.dtsi | 17 + 1 file changed, 17 insertio

[U-Boot] [PATCH v4 06/10] mips: bmips: add bcm63xx-spi driver support for BCM6358

2017-06-14 Thread Álvaro Fernández Rojas
This driver manages the SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Daniel Schwierzeck --- v4: no changes v3: no changes v2: add spi alias arch/mips/dts/brcm,bcm6358.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/m

[U-Boot] [PATCH v4 00/10] mips: bmips: add SPI support

2017-06-14 Thread Álvaro Fernández Rojas
BCM63xx SPI controller is a bit tricky since it doesn't allow keeping CS active between transfers, so I had to modify the spi_flash driver in order to allow limiting reads. v4: Introduce changes suggested by Jagan Teki: - Add data for each HW controller instead of having two separate configs. v3:

[U-Boot] [PATCH v4 03/10] dm: spi: add BCM63xx SPI driver

2017-06-14 Thread Álvaro Fernández Rojas
This driver is a simplified version of linux/drivers/spi/spi-bcm63xx.c Instead of supporting both HW revisions of the controller in a single build, support has been split by the selected config to save space. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass Reviewed-by: Daniel Schw

Re: [U-Boot] [PATCH] ehci-pci: Prepare for usage of readl()/writel() accessors

2017-06-14 Thread Alexey Brodkin
Hi Marek, On Mon, 2017-06-05 at 14:06 +0200, Marek Vasut wrote: > On 06/05/2017 02:03 PM, Alexey Brodkin wrote: > > > > Hi Marek, > > Hi, > > > > > On Mon, 2017-06-05 at 13:42 +0200, Marek Vasut wrote: > > > > > > On 06/05/2017 09:19 AM, Alexey Brodkin wrote: > > > > > > > > > > > > We used

[U-Boot] [PATCH v1] rockchip: video: mipi: Modify variable type for arm32 compatibility

2017-06-14 Thread Eric Gao
Some address relevant varibable is defined originally as u64. To compatible with arm32, this patch change them to "void __iomem *" type. Signed-off-by: Eric Gao --- drivers/video/rockchip/rk_mipi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/video/roc

Re: [U-Boot] [PATCH v2 05/13] drivers: usb: common: add support to get maximum speed from dt

2017-06-14 Thread Vignesh R
On Tuesday 13 June 2017 07:31 PM, Marek Vasut wrote: > On 06/13/2017 02:10 PM, Vignesh R wrote: >> From: Mugunthan V N >> >> Add support to get maximum speed from dt so that usb drivers >> makes use of it for DT parsing. >> >> Signed-off-by: Mugunthan V N >> Signed-off-by: Vignesh R >> Reviewe

Re: [U-Boot] [PATCH v2 01/13] drivers: usb: dwc3: remove devm_zalloc from linux_compact

2017-06-14 Thread Vignesh R
On Tuesday 13 June 2017 07:28 PM, Marek Vasut wrote: > On 06/13/2017 02:09 PM, Vignesh R wrote: >> From: Mugunthan V N >> >> devm_zalloc() is already defined in dm/device.h header, so >> devm_zalloc can be removed from linux_compact.h beader file. > > Shouldn't it be left in linux_compat.h inst

Re: [U-Boot] [PATCH v2 13/13] ARM: am437x-gp-evm-u-boot.dtsi: Enable nodes for USB device boot

2017-06-14 Thread Vignesh R
On Tuesday 13 June 2017 06:33 PM, Lokesh Vutla wrote: > > > On Tuesday 13 June 2017 05:40 PM, Vignesh R wrote: >> Enable USB nodes required to support RNDIS boot in SPL. >> >> Signed-off-by: Vignesh R >> --- >> arch/arm/dts/am437x-gp-evm-u-boot.dtsi | 20 >> 1 file change

Re: [U-Boot] [PATCH] rockchip: rk3399: correct SPL_MAX_SIZE

2017-06-14 Thread Dr. Philipp Tomsich
> On 14 Jun 2017, at 10:14, Kever Yang wrote: > > The SPL_MAX_SIZE is the internal memory size minux the space > used by bootrom. > > Signed-off-by: Kever Yang Reviewed-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists

[U-Boot] [PATCH 6/7] rockchip: firefly-rk3399: enable dwmmc driver for the board

2017-06-14 Thread Kever Yang
Enable mmc_dw_rockchip driver, disable CONFIG_SPL_OF_PLATDATA first for some dependence patches still not merged. Signed-off-by: Kever Yang --- configs/firefly-rk3399_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/firefly-rk3399_defconfig b/configs/firefly

[U-Boot] [PATCH 5/7] rockchip: firefly-rk3399: dts: enable sdmmc device

2017-06-14 Thread Kever Yang
Enable sdmmc device and add the spl boot device sequence. Signed-off-by: Kever Yang --- arch/arm/dts/rk3399-firefly.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/rk3399-firefly.dts b/arch/arm/dts/rk3399-firefly.dts index edf48fb..91d3193 100644 --- a/arch/arm/dts/r

[U-Boot] [PATCH 7/7] Revert "mmc: dw_mmc: rockchip: select proper card clock"

2017-06-14 Thread Kever Yang
The origin patch get rockchip dwmmc by name 'ciu', which lead to the SPL not able to remove 'clock-names' node in dts. I'm not saying this is not correct, but I would prefer to handle this in dts or clock driver to save memory for SPL. For example the rk3288 SPL size has out of memory if not enable

[U-Boot] [PATCH 4/7] rockchip: dwmmc: use max-frequency when OF_PLATDATA enabled

2017-06-14 Thread Kever Yang
Since the 'clock-freq-min-max' is deprecated, we use max-frequency for all rockchip SoC dwmmc controller. Signed-off-by: Kever Yang --- drivers/mmc/rockchip_dw_mmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc

[U-Boot] [PATCH 2/7] rockchip: rk3288: dtsi use max-frequency for mmc node

2017-06-14 Thread Kever Yang
Since the 'clock-freq-min-max' is deprecated, we use max-frequency. Signed-off-by: Kever Yang --- arch/arm/dts/rk3288.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/rk3288.dtsi b/arch/arm/dts/rk3288.dtsi index 64aa07d..da51878 100644 --- a/arch/arm

[U-Boot] [PATCH 3/7] rockchip: rk3328: dtsi use max-frequency for mmc node

2017-06-14 Thread Kever Yang
Since the 'clock-freq-min-max' is deprecated, we use max-frequency. Signed-off-by: Kever Yang --- arch/arm/dts/rk3328.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/rk3328.dtsi b/arch/arm/dts/rk3328.dtsi index dd9cb1c..215396f 100644 --- a/arch/arm

[U-Boot] [PATCH 1/7] rockchip: rk3036: dtsi use max-frequency for mmc node

2017-06-14 Thread Kever Yang
Since the 'clock-freq-min-max' is deprecated, we use max-frequency. Signed-off-by: Kever Yang --- arch/arm/dts/rk3036.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3036.dtsi b/arch/arm/dts/rk3036.dtsi index 4f44217..ca1d5ac 100644 --- a/arch/arm/dts/rk3

[U-Boot] [PATCH 0/7] rockchip: enable sdcard for firefly-rk3399

2017-06-14 Thread Kever Yang
Update rockchip soc mmc dts nodes to use max-frequency instead of clock-min-max. update mmc driver to use max-frequency when OF_PLATDATA enabled. Kever Yang (7): rockchip: rk3036: dtsi use max-frequency for mmc node rockchip: rk3288: dtsi use max-frequency for mmc node rockchip: rk3328: d

Re: [U-Boot] [PATCH] rockchip: mkimage: correct spl_size for rk3399

2017-06-14 Thread Dr. Philipp Tomsich
On 14 Jun 2017, at 08:54, Kever Yang wrote: > > The maximum spl_size for rk3399 is the internal memory size minus > the size used in bootrom (which usually can get from SPL_TEXT_BASE). > > Signed-off-by: Kever Yang Reviewed-by: Philipp Tomsich ___

[U-Boot] [PATCH] rockchip: rk3399: correct SPL_MAX_SIZE

2017-06-14 Thread Kever Yang
The SPL_MAX_SIZE is the internal memory size minux the space used by bootrom. Signed-off-by: Kever Yang --- include/configs/rk3399_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h index 7a8a442..44dad5

Re: [U-Boot] [PATCH v6 01/11] reset: add reset_request()

2017-06-14 Thread Patrice CHOTARD
Hi Marek On 06/13/2017 10:45 AM, Marek Vasut wrote: > On 06/12/2017 09:24 AM, Patrice CHOTARD wrote: >> Hi Tom >> >> I think this series is mature enough to be merged. > > I think there's still some discussion with Simon going on ? > Also, please don't top-post. Yes, i saw Simon's request after

  1   2   >