Re: [U-Boot] [PATCH BUGFIX] net: fec_mxc: adjust prototype of fec_get_miibus() for DM_ETH

2017-07-14 Thread Lothar Waßmann
Hi, On Thu, 13 Jul 2017 16:45:00 +0200 Stefano Babic wrote: > On 13/07/2017 07:57, Lothar Waßmann wrote: > > commit 306dd7dabd64 ("net: fec_mxc: fix PHY initialization bug with > > CONFIG_DM_ETH") > > has broken the build of the fec_mxc driver with CONFIG_DM_ETH > > enabled because it changed

Re: [U-Boot] Cubox-i broken

2017-07-14 Thread Stefano Babic
On 14/07/2017 01:07, Fabio Estevam wrote: > Hi Stefano, > > On Wed, Jul 12, 2017 at 6:00 AM, Stefano Babic wrote: >> Hi Peter, >> >> your : >> >> commit ff1815632563a826cfe49fc9496a36d00febb6e3 >> Author: Peter Robinson >> Date: Sat Jul 1 18:44:03 2017

Re: [U-Boot] [PATCH] tools: buildman: prevent trying to use the working directory as build dorectory

2017-07-14 Thread Lothar Waßmann
Hi, On Thu, 13 Jul 2017 13:09:58 -0600 Simon Glass wrote: > On 5 July 2017 at 01:34, Lothar Waßmann wrote: > > When the U-Boot base directory happens to have the same name as the > > branch that buildman is directed to use via the '-b' option and no > > output directory

[U-Boot] [PATCH v2 06/13] usb: xhci: Fix max packet size for full speed device endpoint 0

2017-07-14 Thread Bin Meng
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 use epmaxpacketin[0] instead. The other

[U-Boot] [PATCH v2 04/13] usb: Only get 64 bytes device descriptor for full speed devices

2017-07-14 Thread Bin Meng
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 to be within 80 cols. Signed-off-by:

[U-Boot] [PATCH v2 05/13] usb: Read device descriptor after device is addressed for xHCI

2017-07-14 Thread Bin Meng
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 communication with the default control endpoint.

[U-Boot] [PATCH v2 BUGFIX] net: fec_mxc: adjust prototype of fec_get_miibus() for DM_ETH

2017-07-14 Thread Lothar Waßmann
commit 306dd7dabd64 ("net: fec_mxc: fix PHY initialization bug with CONFIG_DM_ETH") has broken the build of the fec_mxc driver with CONFIG_DM_ETH enabled because it changed the parameters passed to *fec_get_miibus() without changing the functions prototype. This patch fixes up the prototype of

Re: [U-Boot] [PATCH 2/2] [rfc] support booting arm64 android image

2017-07-14 Thread Andy Yan
Hi: 2017-07-13 15:33 GMT+08:00 Bin Chen : > Hi Tom, > > Thanks for the review. > > On 13 July 2017 at 04:25, Tom Rini wrote: > > > On Tue, Jul 11, 2017 at 03:56:04PM +1000, Bin Chen wrote: > > > > > It's my understanding that we are supposed to use

Re: [U-Boot] [PATCH 2/2] [rfc] support booting arm64 android image

2017-07-14 Thread Andy Yan
Hi: 2017-07-13 15:33 GMT+08:00 Bin Chen : > Hi Tom, > > Thanks for the review. > > On 13 July 2017 at 04:25, Tom Rini wrote: > > > On Tue, Jul 11, 2017 at 03:56:04PM +1000, Bin Chen wrote: > > > > > It's my understanding that we are supposed to use

[U-Boot] [PATCH v2 00/13] usb: xhci: Add interrupt transfer support and full speed device support

2017-07-14 Thread Bin Meng
This series is the final series of the xHCI driver update. This adds the missing interrupt transfer support to xHCI driver, so that devices like USB keyboard that uses interrupt transfer when CONFIG_SYS_USB_EVENT_POLL is defined can work. This also adds full speed device support. Unlike

[U-Boot] [PATCH v2 02/13] usb: configs: Clean up CONFIG_SYS_USB_EVENT_POLL_(xxx) in board configs

2017-07-14 Thread Bin Meng
The following 3 Kconfig options - CONFIG_SYS_USB_EVENT_POLL - CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP - CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE are already converted to Kconfig. Let's clean up all board configs to switch over to use them. Signed-off-by: Bin Meng

[U-Boot] [PATCH v2 03/13] usb: kbd: kconfig: Set a default polling mechanism for USB keyboard

2017-07-14 Thread Bin Meng
The choice of "USB keyboard polling" cannot be optional as without one mechanism being set, it just doesn't work. Set the default one to CONFIG_SYS_USB_EVENT_POLL. Signed-off-by: Bin Meng --- drivers/usb/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH v2 12/13] usb: xhci: Set 'Error Count' to 0 for isoch endpoints

2017-07-14 Thread Bin Meng
Per xHCI spec, 'Error Count' should be set to 0 for isoch endpoints. Signed-off-by: Bin Meng --- drivers/usb/host/xhci.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 304f7ef..c1ef025 100644

[U-Boot] [PATCH v2 01/13] usb: xhci: Add interrupt transfer support

2017-07-14 Thread Bin Meng
xHCI uses normal TRBs for both bulk and interrupt. This adds the missing interrupt transfer support to xHCI so that devices like USB keyboard that uses interrupt transfer can work. Note: when interrupt transfer complets, the xHC generates an event TRB with TRB type 'Transfer Event', which is

[U-Boot] [PATCH v2 10/13] usb: xhci: Honor endpoint's interval

2017-07-14 Thread Bin Meng
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 for low speed or full speed , or 125us

[U-Boot] [PATCH v2 11/13] usb: xhci: Program max burst size for endpoint

2017-07-14 Thread Bin Meng
The 'Max Burst Size' indicates to the xHC the maximum number of consecutive USB transactions that should be executed per scheduling opportunity. This is a “zero-based” value, where 0 to 15 represents burst sizes of 1 to 16, but at present this is always set to zero. Let's program the required

[U-Boot] [PATCH v2 07/13] usb: hub: Clear port reset before usb_hub_port_connect_change()

2017-07-14 Thread Bin Meng
During usb_hub_port_connect_change(), a port reset set feature request is issued to the port, and later a port reset clear feature is done to the same port before the function returns. However at the end of usb_scan_port(), we attempt to clear port reset again on a cached port status change

[U-Boot] [PATCH v2 09/13] usb: Handle audio extension endpoint descriptor in usb_parse_config()

2017-07-14 Thread Bin Meng
Normal endpoint descriptor size is 7, but for audio extension it is 9. Handle that correctly when parsing endpoint descriptor. Signed-off-by: Bin Meng --- common/usb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/usb.c b/common/usb.c index

[U-Boot] [PATCH v2 08/13] usb: hub: Clear BH reset status change for a 3.0 hub

2017-07-14 Thread Bin Meng
USB 3.0 hubs report bit[5] in the port status change response as BH reset. The hub shall set the C_BH_PORT_RESET field for this port. Signed-off-by: Bin Meng --- common/usb_hub.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/common/usb_hub.c b/common/usb_hub.c

[U-Boot] [PATCH v2 13/13] usb: xhci: Set 'Average TRB Length' to 8 for control endpoints

2017-07-14 Thread Bin Meng
Update the codes to conform with xHCI spec 6.2.3. Signed-off-by: Bin Meng --- drivers/usb/host/xhci-mem.c | 6 ++ drivers/usb/host/xhci.c | 6 ++ 2 files changed, 12 insertions(+) diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index

Re: [U-Boot] [PATCH] tools/fw_env: use fsync to ensure that data is physically stored

2017-07-14 Thread Vincent Prince
For completness, here is the original post url : https://patchwork.ozlabs.org/patch/245097/ https://lists.denx.de/pipermail/u-boot/2013-May/154752.html 2017-07-13 15:11 GMT+02:00 Vincent Prince : > Hi all, > > We had the same issue on our custom board, and this

[U-Boot] [PATCH 11/51] powerpc: mpc83xx: Implement get_serial_clock()

2017-07-14 Thread Mario Six
DM serial drivers on PowerPC determine their clock frequency via the get_serial_clock function. This function is not Implemented yet for MPC83xx. This patch Implements the function so that DM serial drivers work on MPC83xx. Signed-off-by: Mario Six ---

[U-Boot] [PATCH 25/51] gdsys: Introduce GDSYS_LEGACY_DRIVERS

2017-07-14 Thread Mario Six
Future gdsys boards will switch from the legacy drivers in board/gdsys/common to DM-based drivers. Define a Kconfig option that disables the legacy drivers. Signed-off-by: Mario Six --- board/gdsys/common/adv7611.c | 4 board/gdsys/common/ch7301.c| 4

[U-Boot] [PATCH 27/51] gdsys:phy: Adapt fixup_88e1518() to latest Release Notes

2017-07-14 Thread Mario Six
From: Dirk Eibach The initialization sequence described in the latest Release Notes MV-S302033-00 for the Marvell 88E1518 phy omits two register writes. Use this new sequence for the setup of this phy. Signed-off-by: Dirk Eibach Signed-off-by: Mario

[U-Boot] [PATCH 20/51] common: board_r: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the board_r file. Signed-off-by: Mario Six --- common/board_r.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index ecca1edb04..199cadbed1 100644 ---

[U-Boot] [PATCH 12/51] cfi_flash: Fix style violations

2017-07-14 Thread Mario Six
Fix style violations in the CFI flash driver. Signed-off-by: Mario Six --- drivers/mtd/cfi_flash.c | 889 1 file changed, 443 insertions(+), 446 deletions(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c

[U-Boot] [PATCH 46/51] ihs_mdio: Add support to force clause45 access

2017-07-14 Thread Mario Six
Add support to ihs_mdio to force clause 45 access (in addition to clause 22 access). Signed-off-by: Mario Six --- board/gdsys/common/ihs_mdio.c | 26 +++--- board/gdsys/common/ihs_mdio.h | 1 + 2 files changed, 24 insertions(+), 3 deletions(-) diff

Re: [U-Boot] [PATCH 3/3] dm: syscon: scan sub-nodes of the syscon node

2017-07-14 Thread Simon Glass
On 12 July 2017 at 03:55, Jean-Jacques Hiblot wrote: > This allow to probe devices that are defined under a syscon node > > Signed-off-by: Jean-Jacques Hiblot > --- > drivers/core/syscon-uclass.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v2 04/15] usb: hub: Remove hub_port_reset()

2017-07-14 Thread Simon Glass
On 12 July 2017 at 02:37, Bin Meng wrote: > At present hub_port_reset() is defined in DM USB, but it is never > called hence remove it (removing another ifdefs). > > While we are here, change legacy_hub_port_reset() name to > usb_hub_port_reset() to better match other function

[U-Boot] [PATCH 2/3] Kconfig: CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE

2017-07-14 Thread Philipp Tomsich
There's an unconditional dependency from the mass-storage command onto the mass-storage function through a call to fsg_main_thread(...). If USB_FUNCTION_MASS_STORAGE is not enabled, this will result in link-errors when CMD_USB_MASS_STORAGE is enabled. Let's introduce an 'implies' relationship to

[U-Boot] [PATCH] rockchip: rk3399: enable SPL_SERIAL_SUPPORT and SPL_DRIVERS_MISC via Kconfig

2017-07-14 Thread Philipp Tomsich
SPL_SERIAL_SUPPORT and SPL_DRIVERS_MISC were previously enabled through rk3399_common.h. This change implies these options through Kconfig. These need to always be active for the RK3399, as follows: - SPL_SERIAL_SUPPORT is needed to pass the SPL build - SPL_DRIVERS_MISC is needed to pass the

[U-Boot] [PATCH 35/51] drivers: Add ICS8N3QV01 driver

2017-07-14 Thread Mario Six
Add a driver for the ICS8N3QV01 Quad-Frequency Programmable VCXO. Signed-off-by: Mario Six --- drivers/clk/Kconfig | 6 ++ drivers/clk/Makefile | 1 + drivers/clk/ics8n3qv01.c | 184 +++ 3 files changed, 191

[U-Boot] [PATCH 19/51] common: board_f: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the board_f file. Signed-off-by: Mario Six --- common/board_f.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index ffa84e3566..b258a1a73c 100644 --- a/common/board_f.c +++

[U-Boot] [PATCH 43/51] gdsys: cmd_ioloop: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the ioloop command, and make the code more readable where possible. Signed-off-by: Mario Six --- board/gdsys/common/cmd_ioloop.c | 78 - 1 file changed, 38 insertions(+), 40 deletions(-) diff --git

Re: [U-Boot] [PATCH 4/6] sunxi: GPIO: introduce sunxi_gpio_setup_dt_pins()

2017-07-14 Thread Simon Glass
+Tom On 7 July 2017 at 04:30, Andre Przywara wrote: > Hi Simon, > > On 07/07/17 04:58, Simon Glass wrote: >> Hi Andre, >> >> On 2 July 2017 at 18:59, Andre Przywara wrote: >>> Instead of hard-coding GPIO pins used for a certain peripheral, we >>>

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

2017-07-14 Thread Simon Glass
On 11 July 2017 at 10:20, Jean-Jacques Hiblot wrote: > 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 >

Re: [U-Boot] [PATCH v2 1/4] arm: dts: meson: import dts files from Linux 4.12

2017-07-14 Thread Simon Glass
On 9 July 2017 at 16:30, Beniamino Galvani wrote: > > Import Amlogic Meson DTS files from Linux kernel version 4.12 > > Signed-off-by: Beniamino Galvani > --- > arch/arm/dts/meson-gx.dtsi| 97 -- >

Re: [U-Boot] [PATCH 1/3] usb: gadget: move USB_FUNCTION_MASS_STORAGE to Kconfig

2017-07-14 Thread Dr. Philipp Tomsich
> On 14 Jul 2017, at 16:48, Marek Vasut wrote: > > On 07/14/2017 04:22 PM, Philipp Tomsich wrote: >> In order to easily model a that CMD_USB_MASS_STORAGE implies having >> USB_FUNCTION_MASS_STORAGE enabled, we first need to migrate >> USB_FUNCTION_MASS_STORAGE to Kconfig. >> >>

Re: [U-Boot] Cubox-i broken

2017-07-14 Thread Peter Robinson
On Fri, Jul 14, 2017 at 12:07 AM, Fabio Estevam wrote: > Hi Stefano, > > On Wed, Jul 12, 2017 at 6:00 AM, Stefano Babic wrote: >> Hi Peter, >> >> your : >> >> commit ff1815632563a826cfe49fc9496a36d00febb6e3 >> Author: Peter Robinson >>

Re: [U-Boot] [PATCH] sandbox: Update defconfig for more build coverage

2017-07-14 Thread Simon Glass
On 4 July 2017 at 15:13, Tom Rini wrote: > Enable all of the currently Kconfig'd cmd's that will build in sandbox > right now. This will extend our build time test coverage. > > Cc: Simon Glass > Signed-off-by: Tom Rini > --- >

[U-Boot] [PATCH] arm: omap3: Detect boot mode very early

2017-07-14 Thread Adam Ford
Fixes 4bd754d8abef ("arm: omap: Detect boot mode very early") where the intent was to store the boot params information in a known location and pass it to SPL very early. Unfortunately it didn't account for OMAP3 boards. This patch adds adds this functionality back into OMAP3 boards.

Re: [U-Boot] [RFC PATCH 1/9] mx6: Add board mx6memcal for use in validating DDR

2017-07-14 Thread Fabio Estevam
Hi Eric, On Tue, Nov 1, 2016 at 5:13 PM, Eric Nelson wrote: > This is a virtual "board" that uses configuration files and > Kconfig to define the memory layout used by a real board during > the board bring-up process. > > It generates an SPL image that can be loaded using

Re: [U-Boot] [PATCH 2/2] RFC: moveconfig: Use toolchains from buildman

2017-07-14 Thread Dr. Philipp Tomsich
> On 10 Jul 2017, at 22:47, Simon Glass wrote: > > It is annoying to have to set up and maintain two sets of toolchains, one > for buildman and one for moveconfig. > > Adjust moveconfig to make use to buildman's toolchains. This should make > things easier. > > One missing

[U-Boot] [PATCH 32/51] drivers: Add ihs_fpga and gdsys_soc drivers

2017-07-14 Thread Mario Six
This patch adds DM drivers for IHS FPGAs and their associated busses, as well as uclasses for both. Signed-off-by: Mario Six --- drivers/misc/Kconfig | 6 + drivers/misc/Makefile| 1 + drivers/misc/gdsys_soc.c | 51 +++ drivers/misc/ihs_fpga.c | 871

[U-Boot] [PATCH 26/51] strider, hrcon: Reset CAT phy on CON2 module

2017-07-14 Thread Mario Six
From: Dirk Eibach The phy on the CON2 module needs a defined reset pulse of at least 10 ms to work reliably. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- board/gdsys/mpc8308/hrcon.c | 30

[U-Boot] [PATCH 29/51] i2c: ihs_i2c: Make DM compatible

2017-07-14 Thread Mario Six
Make the ihs_i2c driver DM-compatible; for legacy boards, the old functions are retained within #ifdefs. No board uses the new DM driver yet; this patch only lays the foundation for future support. Signed-off-by: Mario Six --- drivers/i2c/Kconfig | 6 ++

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

2017-07-14 Thread Adam Ford
On Thu, Jul 13, 2017 at 2:22 AM, Jean-Jacques Hiblot wrote: > > > On 12/07/2017 19:30, Tom Rini wrote: >> >> On Tue, Jul 11, 2017 at 06:20:09PM +0200, Jean-Jacques Hiblot wrote: >> >>> This series enables the ADMA present in some OMAP SOCs. >>> On a DRA7 the performances when

Re: [U-Boot] [U-Boot,1/3] arm: omap: Detect boot mode very early

2017-07-14 Thread Adam Ford
On Fri, Jul 14, 2017 at 6:35 AM, Adam Ford wrote: > On Tue, Jul 11, 2017 at 7:40 AM, Tom Rini wrote: >> On Tue, Jun 27, 2017 at 01:50:56PM +0530, Lokesh Vutla wrote: >> >>> ROM stores the boot params information in a known location >>> and passes it to

Re: [U-Boot] [PATCH 1/6] sunxi: A64: dts: replace EMAC .dtsi with symlink

2017-07-14 Thread Simon Glass
On 7 July 2017 at 02:31, Andre Przywara wrote: > Hi, > > On 07/07/17 04:58, Simon Glass wrote: >> Hi Andre, >> >> On 2 July 2017 at 18:59, Andre Przywara wrote: >>> Currently we add the U-Boot specific Ethernet MAC DT nodes for the >>> Pine64 via a

Re: [U-Boot] [PATCH v2 3/4] odroid-c2: enable GPIO

2017-07-14 Thread Simon Glass
On 9 July 2017 at 16:30, Beniamino Galvani wrote: > GPIOs are now supported on Meson GXBB, enable driver and command in > the config. > > Signed-off-by: Beniamino Galvani > --- > configs/odroid-c2_defconfig | 2 ++ > 1 file changed, 2 insertions(+)

[U-Boot] [PATCH 01/51] i2c: fsl_i2c: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the fsl_i2c I2C driver. Signed-off-by: Mario Six --- drivers/i2c/fsl_i2c.c | 109 +- 1 file changed, 55 insertions(+), 54 deletions(-) diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c

[U-Boot] [PATCH 05/51] net: phy: marvell 88e151x: Fix handling of bare RGMII interface type

2017-07-14 Thread Mario Six
Commit 68e6eca ("net: phy: marvell 88e151x: Fix handling of RGMII interface types") fixed the initialization of 88e151x phys, but made it so that interfaces of type PHY_INTERFACE_MODE_RGMII had both RX and TX delay bits cleared. The default (like in m88es_config) is to have both bits set.

[U-Boot] [PATCH 06/51] cmd: Add command for calculating binary operations

2017-07-14 Thread Mario Six
This patch adds a command that enables the calculation of bit operations (AND, OR, XOR) on binary data from the command line. Memory locations as well as the contents of environment variables are eligible as sources and destination of the binary data used in the operations. The possible

[U-Boot] [PATCH 02/51] i2c: fsl_i2c: Remove inline declarations

2017-07-14 Thread Mario Six
Some functions in the fsl_i2c driver are declared as inline, even though they are quite large, which needlessly increases the size of the resulting binary. This patch removes the inline declarations. Signed-off-by: Mario Six --- drivers/i2c/fsl_i2c.c | 14 +++--- 1

[U-Boot] [PATCH 04/51] net: phy: marvell: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the Marvell PHY driver. Signed-off-by: Mario Six --- drivers/net/phy/marvell.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/net/phy/marvell.c

[U-Boot] [PATCH 03/51] gdsys: Post ppc4xx removal cleanup

2017-07-14 Thread Mario Six
The ppc4xx architecture was recently removed, and with it several old gdsys 44x boards, but some "debris" from these purged boards was left over. This patch removes these remnants (mostly entries in Makefiles, some now superfluous data structures and some now obsolete config variables from the

[U-Boot] [PATCH 15/51] gpio: mpc85xx_gpio: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the MPC85XX GPIO driver. Signed-off-by: Mario Six --- drivers/gpio/mpc85xx_gpio.c | 42 ++ 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/drivers/gpio/mpc85xx_gpio.c

[U-Boot] [PATCH 00/51] gdsys: Add support for Gazerbeam board

2017-07-14 Thread Mario Six
This patch series adds support for the gdsys Gazerbeam board. This is the first gdsys board with full DM support, so a number of new DM drivers--as well as uclasses--are introduced to accomodate the move of driver code from board/gdsys/common. There are also some minor issues that are addressed

[U-Boot] [PATCH 08/51] phy: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the generic PHY management code. Signed-off-by: Mario Six --- drivers/net/phy/phy.c | 83 +++ 1 file changed, 50 insertions(+), 33 deletions(-) diff --git a/drivers/net/phy/phy.c

[U-Boot] [PATCH 28/51] i2c: ihs_i2c: Prepare DM conversion

2017-07-14 Thread Mario Six
Prepare the function interface of the ihs_i2c driver for DM conversion in a future patch. While we're at it, fix some style violations, and make the code more readable. Signed-off-by: Mario Six --- drivers/i2c/ihs_i2c.c | 74

[U-Boot] [PATCH 23/51] gdsys: mpc8308: Use shadow register for output GPIO values

2017-07-14 Thread Mario Six
Since gpio output status on MPC8xxx cannot be read back, it has to be buffered locally. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- board/gdsys/mpc8308/hrcon.c | 4 ++-- board/gdsys/mpc8308/mpc8308.c | 19 +++

[U-Boot] [PATCH 10/51] net:phy:marvell Add hook for m88e1510 board config

2017-07-14 Thread Mario Six
From: Dirk Eibach m88e1510_config() is highly board-specific. So add an optional callback board_m88e1510_config() configurable by CONFIG_BOARD_M88E1510_CONFIG to support different hardware. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six

[U-Boot] [PATCH 14/51] cfi_flash: Always define cfi_flash_num_flash_banks

2017-07-14 Thread Mario Six
The variable cfi_flash_num_flash_banks is defined iff CONFIG_SYS_MAX_FLASH_BANKS_DETECT is defined, but it is used unconditionally in the function cfi_flash_init_dm. This leads to a undefined variable compile error when CONFIG_SYS_MAX_FLASH_BANKS_DETECT is not defined, but DM is enabled. Fix this

[U-Boot] [PATCH 33/51] drivers: Add transmitter uclass

2017-07-14 Thread Mario Six
This patch adds a simple transmitter uclass meant for DVI or DisplayPort transmitters. The only driver functionality implemented are power_on and power_off methods for powering the transmitter device on and off, respectively. Signed-off-by: Mario Six ---

[U-Boot] [PATCH 42/51] cmd: Add ihs fpga command

2017-07-14 Thread Mario Six
Add a comman to debug the IHS FPGA's bus. Signed-off-by: Mario Six --- cmd/Kconfig| 5 ++ cmd/Makefile | 1 + cmd/ihs_fpga.c | 269 + 3 files changed, 275 insertions(+) create mode 100644 cmd/ihs_fpga.c

[U-Boot] [PATCH 1/3] usb: gadget: move USB_FUNCTION_MASS_STORAGE to Kconfig

2017-07-14 Thread Philipp Tomsich
In order to easily model a that CMD_USB_MASS_STORAGE implies having USB_FUNCTION_MASS_STORAGE enabled, we first need to migrate USB_FUNCTION_MASS_STORAGE to Kconfig. Signed-off-by: Philipp Tomsich --- drivers/usb/gadget/Kconfig | 9 + 1 file

Re: [U-Boot] [PATCH 1/3] usb: gadget: move USB_FUNCTION_MASS_STORAGE to Kconfig

2017-07-14 Thread Marek Vasut
On 07/14/2017 04:22 PM, Philipp Tomsich wrote: > In order to easily model a that CMD_USB_MASS_STORAGE implies having > USB_FUNCTION_MASS_STORAGE enabled, we first need to migrate > USB_FUNCTION_MASS_STORAGE to Kconfig. > > Signed-off-by: Philipp Tomsich >

Re: [U-Boot] [PATCH] serial: ns16550: Add RX interrupt buffer support

2017-07-14 Thread Stefan Roese
Hi Simon, On 14.07.2017 15:50, Simon Glass wrote: > On 13 July 2017 at 05:33, 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

[U-Boot] [PATCH 17/51] cmd: mdio: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the MDIO command. Signed-off-by: Mario Six --- cmd/mdio.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/mdio.c b/cmd/mdio.c index 21dc103736..3f11963006 100644 --- a/cmd/mdio.c +++ b/cmd/mdio.c @@ -14,7 +14,6 @@

[U-Boot] [PATCH 24/51] gdsys: mpc8308: Move SYS_FPGA{0, 1}_{BASE, SIZE} to Kconfig

2017-07-14 Thread Mario Six
Move CONFIG_SYS_FPGA0_BASE, CONFIG_SYS_FPGA0_SIZE, CONFIG_SYS_FPGA1_BASE, and CONFIG_SYS_FPGA1_SIZE to Kconfig. Signed-off-by: Mario Six --- board/gdsys/mpc8308/Kconfig | 23 +++ include/configs/hrcon.h | 7 --- include/configs/strider.h|

[U-Boot] [PATCH 21/51] common: Extend board-specific DT fixup

2017-07-14 Thread Mario Six
Commit 2a79275 ("dm: Add callback to modify the device tree") implemented a board-specific callback that can modify U-Boot's device tree before relocation to accomodate a range of hardware variations of certain boards. However, this approach only turns out to be useful when the copy of the device

[U-Boot] [PATCH 40/51] cmd: Add ihs osd commands

2017-07-14 Thread Mario Six
Add command to query information from and write text to IHS OSDs. Signed-off-by: Mario Six --- cmd/Kconfig | 6 +++ cmd/Makefile | 1 + cmd/ihs_osd.c | 167 ++ 3 files changed, 174 insertions(+) create mode

[U-Boot] [PATCH 30/51] i2c: ihs_i2c: Factor out send_buffer method

2017-07-14 Thread Mario Six
Simplify the driver logic by extracting a common send_buffer method. Signed-off-by: Mario Six --- drivers/i2c/ihs_i2c.c | 50 ++ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/drivers/i2c/ihs_i2c.c

[U-Boot] [PATCH 49/51] gazerbeam: Import Linux DT

2017-07-14 Thread Mario Six
Import the Linux device tree for the Gazerbeam board. Signed-off-by: Mario Six --- arch/powerpc/dts/gazerbeam.dts | 539 + arch/powerpc/dts/gdsys/gazerbeam-base.dtsi | 205 +++ arch/powerpc/dts/gdsys/mpc8308.dtsi| 243

[U-Boot] [PATCH 45/51] gdsys: cmd_ioloop: Make DM compatible

2017-07-14 Thread Mario Six
Make the ioloop command DM compatible, while keeping the old functionality for not-yet-converted boards. Signed-off-by: Mario Six --- board/gdsys/common/cmd_ioloop.c | 241 ++-- 1 file changed, 234 insertions(+), 7 deletions(-) diff

[U-Boot] [PATCH 48/51] ihs_mdio: Make DM-compatible

2017-07-14 Thread Mario Six
Make the ihs_mdio driver DM-compatible, while retaining the old functionality for not-yet-converted boards. Signed-off-by: Mario Six --- board/gdsys/common/ihs_mdio.c | 49 ++- board/gdsys/common/ihs_mdio.h | 5 + 2 files

Re: [U-Boot] [PATCH] dm: video: fix abuse of enum

2017-07-14 Thread Simon Glass
Hi Lothar, On 7 July 2017 at 00:41, Lothar Waßmann wrote: > Hi, > > On Thu, 6 Jul 2017 12:22:52 + Marcel Ziswiler wrote: >> Dear Lothar >> >> On Thu, 2017-07-06 at 09:50 +0200, Lothar Waßmann wrote: >> > Hi, >> > >> > On Wed, 5 Jul 2017 22:49:28 -0600 Simon Glass

Re: [U-Boot] [PATCH 10/14] dm: mmc: sunxi: Add support for driver model

2017-07-14 Thread Simon Glass
Hi Maxime, On 5 July 2017 at 14:14, Maxime Ripard wrote: > On Wed, Jul 05, 2017 at 04:57:40PM +0200, Maxime Ripard wrote: >> On Tue, Jul 04, 2017 at 01:33:25PM -0600, Simon Glass wrote: >> > Hi Maxime, >> > >> > On 21 June 2017 at 01:31, Maxime Ripard >> >

Re: [U-Boot] [PATCH] sandbox: Enable more drivers for more build coverage

2017-07-14 Thread Simon Glass
Hi Tom, On 4 July 2017 at 15:37, Tom Rini wrote: > Enable more drivers that build currently. This will extend our build > time test coverage > > Cc: Simon Glass > Signed-off-by: Tom Rini > --- > configs/sandbox_defconfig | 23

Re: [U-Boot] [PATCH v2 06/15] usb: hub: Translate USB 3.0 hub port status into old version

2017-07-14 Thread Simon Glass
On 12 July 2017 at 02:37, Bin Meng wrote: > USB 3.0 hub port status field has different bit positions from 2.0 > hubs. Since U-Boot only understands the old version, translate the > new one into the old one. > > Since we are going to add USB 3.0 hub support, this feature is

Re: [U-Boot] [PATCH] rockchip: rk3229: add dwc2 node for fastboot

2017-07-14 Thread Simon Glass
Hi Phlipp, On 14 July 2017 at 07:53, Dr. Philipp Tomsich wrote: > Simon, > > the patch is in Patchworks and seems to have been picked from the same mail > that you replied to: > https://patchwork.ozlabs.org/patch/787493/ > OK that's good then.

Re: [U-Boot] [PATCH 1/1] efi_loader: provide meaningful status code

2017-07-14 Thread Simon Glass
Hi, On 3 July 2017 at 06:21, Alexander Graf wrote: > On 06/25/2017 10:56 PM, Heinrich Schuchardt wrote: >> >> Currenty any EFI status other than EFI_SUCCESS is reported as >> Application terminated, r = -22 >> >> With the patch the status code and its mnemonic is printed. >> >>

[U-Boot] [PATCH 22/51] gdsys: mpc8308: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the gdsys MPC8308 board files, and make the code more readable. Signed-off-by: Mario Six --- board/gdsys/mpc8308/hrcon.c | 55 ++- board/gdsys/mpc8308/mpc8308.c | 12 +-

[U-Boot] [PATCH 07/51] phy: Allow forcing clause 45 access

2017-07-14 Thread Mario Six
From: Dirk Eibach get_phy_device_by_mask() assumes that a clause 45 phy does not respond to clause 22 requests. That is not true at least for Marvell 88X2242. So allow forcing clause 45 access to prevent reading bogus device ids. Signed-off-by: Dirk Eibach

[U-Boot] [PATCH 18/51] cmd: mdio: Add 'driver' subcommand

2017-07-14 Thread Mario Six
For debug purposes it is sometimes useful to have the ability to interact with the driver functionality of a phy from the command line (e.g. to manually issue startup, configuration, or shutdown commands to the phy device). This patch adds such a command, which allows issuing the following

[U-Boot] [PATCH 38/51] gdsys: drivers: Add gdsys_rxaui_ctrl driver

2017-07-14 Thread Mario Six
Add a driver for RXAUI control on IHS FPGAs. Signed-off-by: Mario Six --- drivers/misc/Kconfig| 6 +++ drivers/misc/Makefile | 1 + drivers/misc/gdsys_rxaui_ctrl.c | 107 include/dm/uclass-id.h |

[U-Boot] [PATCH 31/51] gdsys: mpc8308: Add FPGA flavor option

2017-07-14 Thread Mario Six
More recent versions of IHS FPGAs feature a different memory layout. Add a Kconfig option to differentiate between the legacy layout, and the new layout (which is used on the upcoming "Gazerbeam" and later boards). Signed-off-by: Mario Six --- board/gdsys/mpc8308/Kconfig |

[U-Boot] [PATCH 36/51] drivers: Add ihs_axi driver

2017-07-14 Thread Mario Six
Add a driver for the IHS AXI bus on IHS FPGAs. Signed-off-by: Mario Six --- drivers/misc/Kconfig | 7 ++ drivers/misc/Makefile | 1 + drivers/misc/ihs_axi.c | 208 + include/dm/uclass-id.h | 1 + include/ihs_axi.h

[U-Boot] [PATCH 16/51] gpio: mpc85xx_gpio: Make compatible with MPC8XXX

2017-07-14 Thread Mario Six
Since the GPIO controllers on MPC8XXX just vary in the number of pins offered, the DM driver for the MPC85XX SoC can be used for the whole family. To reflect this, we rename the mpc85xx_gpio driver to the more generic mpc8xxx_gpio, and add the needed mpc8xxx_gpio_plat structure to the mpc83xx

[U-Boot] [PATCH 41/51] cmd: Add ihs axi command

2017-07-14 Thread Mario Six
Add a command to debug the IHS AXI bus. Signed-off-by: Mario Six --- cmd/Kconfig | 5 ++ cmd/Makefile | 2 + cmd/ihs_axi.c | 257 ++ 3 files changed, 264 insertions(+) create mode 100644 cmd/ihs_axi.c diff

[U-Boot] [PATCH 13/51] cfi_flash: Clean up code some more

2017-07-14 Thread Mario Six
Fix some more style violations (mostly mis-indented case statements), and reduce the scope of some variables. Signed-off-by: Mario Six --- drivers/mtd/cfi_flash.c | 610 1 file changed, 305 insertions(+), 305 deletions(-)

[U-Boot] [PATCH 34/51] transmitter: Add Xilinx LogiCore DP TX

2017-07-14 Thread Mario Six
Add a driver for the TX side of the Xilinx LogiCore DisplayPort IP core. Signed-off-by: Mario Six --- drivers/transmitter/Kconfig|6 + drivers/transmitter/Makefile |1 + drivers/transmitter/logicore_dp_dpcd.h | 342 +

[U-Boot] [PATCH v2] Add support for Microchip LAN75xx and LAN78xx

2017-07-14 Thread Yuiko.Oshino
From: Yuiko Oshino Add support for Microchip LAN7500, LAN7800 and LAN7850, USB to 10/100/1000 Ethernet Controllers Signed-off-by: Yuiko Oshino Cc: Marek Vasut Cc: Joe Hershberger --- Changes

[U-Boot] [PATCH v2 1/3] usb: gadget: move USB_FUNCTION_MASS_STORAGE to Kconfig

2017-07-14 Thread Philipp Tomsich
In order to easily model that enabling CMD_USB_MASS_STORAGE implies a need to have USB_FUNCTION_MASS_STORAGE enabled, we first need to migrate USB_FUNCTION_MASS_STORAGE to Kconfig. Signed-off-by: Philipp Tomsich --- Changes in v2: - ran 'tabify' on newly

[U-Boot] [PATCH] m68k: mcf5445x: move early ddr init as board-specific

2017-07-14 Thread Angelo Dureghello
For certain boot types and sbf, for V4 cpu's, an early ddr/sdram init is required. This patch moves this ddr/sdram early initalization away from start.S (to be board related). Signed-off-by: Angelo Dureghello --- arch/m68k/cpu/mcf5445x/start.S| 180

[U-Boot] [PATCH] m68k: mcf5445x: allow CS0 to be undefined

2017-07-14 Thread Angelo Dureghello
On some boards, CONFIG_SYS_CS0_BASE can be undefined, since CS0 is not connected to any signal. Signed-off-by: Angelo Dureghello --- arch/m68k/cpu/mcf5445x/cpu_init.c | 2 ++ arch/m68k/cpu/mcf5445x/start.S| 4 2 files changed, 6 insertions(+) diff --git

[U-Boot] [PATCH] m68k: fix cache.c for Coldfire V4E

2017-07-14 Thread Angelo Dureghello
- fix cache.c CONFIG_CF_V4e to CONFIG_CF_V4E - fix cache.c to properly enable/disable cache for V4E Signed-off-by: Angelo Dureghello --- arch/m68k/lib/cache.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/arch/m68k/lib/cache.c

Re: [U-Boot] [PATCH v2] usb: fix usb_stor_read/write on DM

2017-07-14 Thread Marek Vasut
On 07/14/2017 11:46 PM, Benoît Thébaudeau wrote: > On Fri, Jul 14, 2017 at 1:50 PM, Marek Vasut wrote: >> On 07/14/2017 01:03 PM, Masahiro Yamada wrote: >>> 2017-07-14 19:07 GMT+09:00 Marek Vasut : On 07/14/2017 04:31 AM, Masahiro Yamada wrote: > Prior to

[U-Boot] [PATCH] m68k: add board stmark2, mcf5441x based

2017-07-14 Thread Angelo Dureghello
Signed-off-by: Angelo Dureghello --- arch/m68k/Kconfig | 5 + board/sysam/stmark2/Kconfig | 15 +++ board/sysam/stmark2/MAINTAINERS | 6 ++ board/sysam/stmark2/Makefile| 8 ++ board/sysam/stmark2/sbf_dram_init.S | 119

Re: [U-Boot] [PATCH v2] usb: fix usb_stor_read/write on DM

2017-07-14 Thread Benoît Thébaudeau
On Fri, Jul 14, 2017 at 1:50 PM, Marek Vasut wrote: > On 07/14/2017 01:03 PM, Masahiro Yamada wrote: >> 2017-07-14 19:07 GMT+09:00 Marek Vasut : >>> On 07/14/2017 04:31 AM, Masahiro Yamada wrote: Prior to DM, we could not enable different types of USB

  1   2   >