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

2017-07-14 Thread Benoît Thébaudeau
On Sat, Jul 15, 2017 at 12:06 AM, Marek Vasut wrote: > 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

Re: [U-Boot] [PATCH] spl: dm: Make it possible for the SPL to pick its own DTB from a FIT

2017-07-14 Thread Simon Glass
Hi Jean-Jacques, On 12 July 2017 at 15:32, Simon Glass wrote: > Hi, > > On 12 July 2017 at 06:58, Jean-Jacques Hiblot wrote: >> >> >> On 10/07/2017 18:34, Franklin S Cooper Jr wrote: >>> >>> >>> On 07/07/2017 10:00 AM, Jean-Jacques Hiblot wrote:

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

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

[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

[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

[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: 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 0/3] CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE

2017-07-14 Thread Philipp Tomsich
Up to now, there's been some ugliness associated with the dependency from CMD_USB_MASS_STORAGE to USB_FUNCTION_MASS_STORAGE: if someone only defined CMD_USB_MASS_STORAGE, they'd meet a linker error due to missing symbols that came from USB_FUNCTION_MASS_STORAGE. Most platforms seem to have

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

2017-07-14 Thread Philipp Tomsich
With both an imply from CMD_USB to USB_FUNCTION_MASS_STORAGE and with USB_FUNCTION_MASS_STORAGE moved to Kconfig, we can now run moveconfig. Signed-off-by: Philipp Tomsich --- Changes in v2: None configs/CHIP_pro_defconfig | 1 +

[U-Boot] [PATCH v2 0/3] CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE

2017-07-14 Thread Philipp Tomsich
Up to now, there's been some ugliness associated with the dependency from CMD_USB_MASS_STORAGE to USB_FUNCTION_MASS_STORAGE: if someone only defined CMD_USB_MASS_STORAGE, they'd meet a linker error due to missing symbols that came from USB_FUNCTION_MASS_STORAGE. Most platforms seem to have

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

2017-07-14 Thread Philipp Tomsich
With both an imply from CMD_USB to USB_FUNCTION_MASS_STORAGE and with USB_FUNCTION_MASS_STORAGE moved to Kconfig, we can now run moveconfig. Signed-off-by: Philipp Tomsich --- configs/CHIP_pro_defconfig | 1 +

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 Fri, Jul 14, 2017 at 2:58 PM, Eric Nelson wrote: > I set this aside because I wasn't able to get the "return to > RBL" code working and figured I'd try to reverse-engineer the API. > > Any hints you have in that area would be helpful, and will solve > that other

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

2017-07-14 Thread Eric Nelson
Hi Fabio, On 07/14/2017 07:18 AM, Fabio Estevam wrote: 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

[U-Boot] [PATCH 1/1] efi_memory: avoid NULL dereference in efi_free_pool

2017-07-14 Thread Heinrich Schuchardt
If efi_free_pool is called with argument NULL an illegal memory access occurs. So let's check the parameter on entry. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/efi_loader/efi_memory.c

[U-Boot] [PATCH v2 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 'imply' (I didn't want to

[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

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:55 PM, Dr. Philipp Tomsich wrote: > >> 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

[U-Boot] [PATCH] rockchip: efuse: dm: change to use dev_read_addr

2017-07-14 Thread Philipp Tomsich
This changes the rockchip-efuse driver to use dev_read_addr instead of devfdt_get_addr. Signed-off-by: Philipp Tomsich --- drivers/misc/rockchip-efuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/rockchip-efuse.c

[U-Boot] [PATCH] rockchip: timer: make register sizes explicit

2017-07-14 Thread Philipp Tomsich
We are about to reuse the rockchip timer (header file) for 64bit ARMv8 chips, so it seems a good time to make the register sizes explicit by changing from 'unsigned int' to 'u32'. Signed-off-by: Philipp Tomsich ---

[U-Boot] [PULL] Please pull u-boot-imx

2017-07-14 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! All boards compile clean, there are still warning for 9 boards dur to fec_get_miibus. Patch was already sent by Lothar and will follow the normal way through Joe's tree. At the moment, it is ok to still have these warnings. The following changes

Re: [U-Boot] Cubox-i broken

2017-07-14 Thread Stefano Babic
On 14/07/2017 17:11, Peter Robinson wrote: > 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

[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] serial: ns16550: Add RX interrupt buffer support

2017-07-14 Thread Stefan Roese
Pasting longer lines into the U-Boot console prompt sometimes leads to characters missing. One problem here is the small 16-byte FIFO of the legacy NS16550 UART, e.g. on x86 platforms. This patch now introduces a Kconfig option to enable RX interrupt buffer support for NS16550 style UARTs. With

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

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 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] [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 >

[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 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 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 4/5] dm: ofnode: rename dev_read_prop() to dev_get_property()

2017-07-14 Thread Simon Glass
Hi Masahiro, On 13 July 2017 at 20:38, Masahiro Yamada wrote: > Hi Simon, > > > 2017-07-07 12:57 GMT+09:00 Simon Glass : >> Hi Masahiro, >> >> On 5 July 2017 at 22:49, Simon Glass wrote: >>> On 22 June 2017 at 01:54, Masahiro

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] 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 3/5] fdt: Allow stacked overlays phandle references

2017-07-14 Thread Simon Glass
Hi Pantelis, On 7 July 2017 at 01:02, Pantelis Antoniou wrote: > Hi Simon, > > On Thu, 2017-07-06 at 21:58 -0600, Simon Glass wrote: >> On 30 June 2017 at 10:23, Pantelis Antoniou >> wrote: >> > This patch enables an overlay to

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

2017-07-14 Thread Alexander Graf
On 14.07.17 15:47, Simon Glass wrote: 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

Re: [U-Boot] [PATCH v2 09/15] usb: xhci: Program 'route string' in the input slot context

2017-07-14 Thread Simon Glass
On 12 July 2017 at 02:37, Bin Meng wrote: > xHCI spec says: the values of the 'route string' field shall be > initialized by the first 'Address Device' command issued to a > device slot, and shall not be modified by any other command. > > So far U-Boot does not program this

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

2017-07-14 Thread Alexander Graf
On 14.07.17 15:47, Simon Glass wrote: 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

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

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

[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] [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 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 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(+)

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 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] 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 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. >> >>

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 > --- >

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

2017-07-14 Thread Lokesh Vutla
On 7/14/2017 6:30 PM, Adam Ford wrote: > 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

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

[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 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

[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 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 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 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

[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 37/51] drivers: Add ihs_video_out driver

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

[U-Boot] [PATCH 39/51] drivers: Add gdsys_ioep driver

2017-07-14 Thread Mario Six
Add driver for the IHS IO endpoint on IHS FPGAs. Signed-off-by: Mario Six --- drivers/misc/Kconfig | 6 + drivers/misc/Makefile | 1 + drivers/misc/gdsys_ioep.c | 301 ++ include/dm/uclass-id.h| 1 +

[U-Boot] [PATCH 50/51] gazerbeam: Add u-boot specific dts include file

2017-07-14 Thread Mario Six
Add a U-Boot specific dts file, which encapsulates the needed modifications to the Gazerbeam Linux device tree. Signed-off-by: Mario Six --- arch/powerpc/dts/gazerbeam.dts | 2 + arch/powerpc/dts/gdsys/gazerbeam-uboot.dtsi | 192

[U-Boot] [PATCH 51/51] mpc83xx: Add gazerbeam board

2017-07-14 Thread Mario Six
From: Dirk Eibach The gdsys gazerbeam board is based on a Freescale MPC8308 SOC. It boots from NOR-Flash, kernel and rootfs are stored on SD-Card. On board peripherals include: - 2x 10/100 Mbit/s Ethernet (optional) Signed-off-by: Dirk Eibach

[U-Boot] [PATCH 47/51] ihs_mdio: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the ihs_mdio driver, and make the code more readable where possible. Signed-off-by: Mario Six --- board/gdsys/common/ihs_mdio.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/board/gdsys/common/ihs_mdio.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

[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 ++

[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 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 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 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 44/51] gdsys: cmd_ioloop: Introduce commenting enum

2017-07-14 Thread Mario Six
Replace the boolean parameter of io_check_status that controls whether the status is printed or not with a documenting enum. Signed-off-by: Mario Six --- board/gdsys/common/cmd_ioloop.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git

[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 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 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 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 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 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 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 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 09/51] phy: Support Marvell 88X2242

2017-07-14 Thread Mario Six
From: Dirk Eibach Implement support for the Marvell Alaska X 88X2242P Integrated Dual-port and Quad-port Multi-speed Ethernet Transceivers. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- drivers/net/phy/Kconfig | 67

[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 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 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 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 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 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

  1   2   >