[U-Boot] [PATCH v2 2/3] mpc83xx/pci: Register IMMR region

2018-04-27 Thread Mario Six
Register the IMMR region as a PCI region when PCI is used on MPC83xx. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: No changes --- drivers/pci/pci-uclass.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclas

[U-Boot] [PATCH v2 4/5] misc: Add gdsys_soc driver

2018-04-27 Thread Mario Six
This patch adds a driver for the bus associated with a IHS FPGA. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: * Switched to correct uclass for IHS FPGA driver (now in MISC uclass) --- drivers/misc/Kconfig | 6 - drivers/misc/Makefile| 1 + drivers/misc/gd

[U-Boot] [PATCH v2] clk: Add ICS8N3QV01 driver

2018-04-27 Thread Mario Six
Add a driver for the ICS8N3QV01 Quad-Frequency Programmable VCXO. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: * Expanded documentation * Switched to u8 for I2C register reading --- drivers/clk/Kconfig | 8 ++ drivers/clk/Makefile | 1 + drivers/clk/ics

[U-Boot] [PATCH v2 1/2] misc: uclass: Add enable/disable function

2018-04-27 Thread Mario Six
Add generic enable/disable function to the misc uclass. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: * Merged the two functions into one function * Explained the semantics of enabling/disabling more throughly --- drivers/misc/misc-uclass.c | 10 ++ inclu

[U-Boot] [PATCH v2] reset: Add generic GPIO reset driver

2018-04-27 Thread Mario Six
Some reset lines are implemented by toggling the line via a GPIO. Add a driver to properly drive such reset lines. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: No changes --- drivers/reset/Kconfig | 7 drivers/reset/Makefile | 1 + drivers/reset/gpi

[U-Boot] [PATCH v2 1/2] net: Initialize as many ethernet devices as possible

2018-04-27 Thread Mario Six
the uclass_{first,next}_device_check functions to initialize as many ethernet devices as possible. Signed-off-by: Mario Six <mario@gdsys.cc> Acked-by: Joe Hershberger <joe.hershber...@ni.com> --- v1 -> v2: No changes --- net/eth-uclass.c | 4 ++-- 1 file changed, 2 insertions(

[U-Boot] [PATCH v2 3/3] pci: Add MPC83xx PCIe driver

2018-04-27 Thread Mario Six
Add a PCIe driver for the MPC83xx architecture. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: No changes --- arch/powerpc/cpu/mpc83xx/pcie.c | 4 + drivers/pci/Kconfig | 16 ++ drivers/pci/Makefile| 1 + drivers/pci/pcie_mpc83xx.c

[U-Boot] [PATCH v2 1/4] core: Add functions to set properties in live-tree

2018-04-27 Thread Mario Six
Implement a set of functions to manipulate properties in a live device tree: * ofnode_set_property() to set generic properties of a node * ofnode_write_string() to set string properties of a node * ofnode_set_enabled() to either enable or disable a node Signed-off-by: Mario Six <ma

[U-Boot] [PATCH v2 5/5] misc: Add IHS FPGA driver

2018-04-27 Thread Mario Six
Add a driver for gdsys IHS (Integrated Hardware Systems) FPGAs, which supports initialization of the FPGA, as well as information gathering. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: New in v2 --- drivers/misc/Kconfig| 6 + drivers/misc/Makefile | 1 + dri

[U-Boot] [PATCH v2 1/2] ihs_mdio: Encapsulate register access

2018-04-27 Thread Mario Six
To prepare for DM conversion, encapsulate all register accesses in function calls. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: No changes --- board/gdsys/common/ihs_mdio.c | 41 ++--- 1 file changed, 34 insertions(+), 7 deletions

[U-Boot] [PATCH v2 2/2] tsec: Fix reading phy registers from DT

2018-04-27 Thread Mario Six
Bus translations should be applied when reading the address of the sgmii phy registers from the DT. Use ofnode_get_addr_index instead of the plain ofnode_read_u32_default to fix this. Signed-off-by: Mario Six <mario@gdsys.cc> Acked-by: Joe Hershberger <joe.hershber...@ni.com> -

[U-Boot] [PATCH v2 2/5] regmap: Support reading from specific range

2018-04-27 Thread Mario Six
parameter 'range_num' that identifies the range to operate on. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: New in v2 --- drivers/core/regmap.c | 69 +++ include/regmap.h | 2 ++ 2 files changed, 55 insertions(+), 16

[U-Boot] [PATCH v2 1/5] regmap: Add size parameter

2018-04-27 Thread Mario Six
. Correct all current clients of the regmap API to use 32 bit width reads and writes to keep backwards compatibility. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: New in v2 --- drivers/clk/at91/clk-utmi.c | 6 +++-- drivers/clk/clk_boston.c

[U-Boot] [PATCH v2] gdsys: drivers: Add gdsys_rxaui_ctrl driver

2018-04-27 Thread Mario Six
Add a driver for RXAUI control on IHS FPGAs. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: * Switched to regmap usage (instead of fpgamap) --- drivers/misc/Kconfig| 6 +++- drivers/misc/Makefile | 1 + drivers/misc/gdsys_rxaui_ct

[U-Boot] [PATCH v2 4/4] test: Add tests for dev_{enable, disable}_by_path

2018-04-27 Thread Mario Six
Add tests for the dev_{enable,disable}_by_path functions. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: New in v2 --- test/dm/test-fdt.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/test/dm/test-fdt.c b/test/dm/test-fdt.c index 3

[U-Boot] [PATCH v2 2/2] ihs_mdio: Make DM-compatible

2018-04-27 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 <mario@gdsys.cc> --- v1 -> v2: * Switched to regmap usage (instead of fpgamap) --- board/gdsys/common/ihs_md

[U-Boot] [PATCH v2 2/4] test: Add tests for DT-manipulation functions

2018-04-27 Thread Mario Six
Add tests for the ofnode_set_enabled, ofnode_write_string, and ofnode_write_property functions. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: New in v2 --- test/dm/test-fdt.c | 53 + 1 file changed, 53 insertions(+) d

[U-Boot] [PATCH v2 3/5] regmap: Define regmap_{get,set}

2018-04-27 Thread Mario Six
-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: New in v2 --- include/regmap.h | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/include/regmap.h b/include/regmap.h index bb7e947ce2..69cbe8a96a 100644 --- a/include/regmap.h +++ b/include/regmap.h @@ -49,

[U-Boot] [PATCH v2 3/4] core: Add dev_{disable,enable}_by_path

2018-04-27 Thread Mario Six
We cannot use device structures to disable devices, since getting them with the API functions would bind and activate the device, which would fail if the underlying device does not exist. Hence, add a function to disable devices by path in a live device tree. Signed-off-by: Mario Six <ma

[U-Boot] [PATCH v2 2/2] misc: Add gdsys_ioep driver

2018-04-27 Thread Mario Six
Add driver for the IHS IO endpoint on IHS FPGAs. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: * Switched to regmap usage (instead of fpgamap) --- drivers/misc/Kconfig | 5 ++ drivers/misc/Makefile | 1 + drivers/misc/gdsys_ioe

[U-Boot] [PATCH v2 3/3] test: Add tests for board uclass

2018-04-27 Thread Mario Six
Add tests for the new board uclass. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: New in v2 --- arch/sandbox/dts/test.dts | 4 ++ configs/sandbox64_defconfig| 2 + configs/sandbox_defconfig | 2 + configs/sandbox_flattree_defconfig | 2 +

[U-Boot] [PATCH v2 1/3] drivers: Add board uclass

2018-04-27 Thread Mario Six
ided by the hardware. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: * Corrected description of dev parameter of devinfo_detect * Added size parameter to devinfo_get_str * Expanded uclass documentation * Added function to get devinfo instance * Renamed the uclass from devinfo t

[U-Boot] [PATCH v2 2/3] devinfo: Add gazerbeam board driver

2018-04-27 Thread Mario Six
Add a board driver for the upcoming gdsys Gazerbeam board. Signed-off-by: Mario Six <mario@gdsys.cc> --- v1 -> v2: * Improved error handling * Renamed DT properties * Moved the driver over to the board uclass --- drivers/board/gazerbea

Re: [U-Boot] [PATCH 6/8] cpu: Add cpu_print_info function

2018-04-27 Thread Mario Six
Hi Simon, On Thu, Apr 26, 2018 at 4:40 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 26 April 2018 at 00:07, Mario Six <mario@gdsys.cc> wrote: >> Hi Simon, >> >> On Tue, Apr 24, 2018 at 11:53 PM, Simon Glass <s...@chromium.org>

Re: [U-Boot] [PATCH v2 00/18] spi: mpc8xxx: DM conversion

2018-04-26 Thread Mario Six
unless you recognize the sender and know the >> content is safe. >> >> >> On Thu, Apr 26, 2018 at 11:24 AM, Mario Six <mario@gdsys.cc> wrote: >> > Hi Jagan, >> > >> > On Thu, Apr 26, 2018 at 7:30 AM, Jagan Teki <jagannadh.t...@gmail.com>

[U-Boot] [PATCH] arm: controlcenterdc: Add spi-flash compatible strings

2018-04-26 Thread Mario Six
Since kirkwook SPI was recently converted to DM, add compatible strings to the SPI flash devices to make them work with the new driver. Signed-off-by: Mario Six <mario@gdsys.cc> --- arch/arm/dts/armada-38x-controlcenterdc.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [U-Boot] [PATCH 6/8] cpu: Add cpu_print_info function

2018-04-26 Thread Mario Six
Hi Simon, On Tue, Apr 24, 2018 at 11:53 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 19 April 2018 at 01:50, Mario Six <mario@gdsys.cc> wrote: >> >> Hi Simon, >> >> On Wed, Apr 18, 2018 at 5:45 PM, Simon Glass <s...@chromium.

Re: [U-Boot] [PATCH 1/3] core: Add function to get device for ofnode

2018-04-26 Thread Mario Six
Hi Simon, On Sun, Apr 22, 2018 at 10:13 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 18 April 2018 at 02:20, Mario Six <mario@gdsys.cc> wrote: >> Hi Simon, >> >> On Thu, Apr 12, 2018 at 6:42 PM, Simon Glass <s...@chromium.org>

Re: [U-Boot] [PATCH v2 18/18] spi: mpc8xxx: Convert to DM

2018-04-25 Thread Mario Six
Hi Jagan, On Thu, Apr 26, 2018 at 7:49 AM, Jagan Teki <ja...@amarulasolutions.com> wrote: > On Thu, Apr 26, 2018 at 11:13 AM, Mario Six <mario@gdsys.cc> wrote: >> Hi Jagan, >> >> On Thu, Apr 26, 2018 at 7:34 AM, Jagan Teki <jagannadh.t...@gmail.com> wro

Re: [U-Boot] [PATCH v2 00/18] spi: mpc8xxx: DM conversion

2018-04-25 Thread Mario Six
Hi Jagan, On Thu, Apr 26, 2018 at 7:30 AM, Jagan Teki <jagannadh.t...@gmail.com> wrote: > On Thu, Apr 19, 2018 at 6:06 PM, Mario Six <mario@gdsys.cc> wrote: >> This is v2 of a patch series that adds support for DM to the MPC8XXX SPI >> driver, cleans up the dri

Re: [U-Boot] [PATCH v2 18/18] spi: mpc8xxx: Convert to DM

2018-04-25 Thread Mario Six
Hi Jagan, On Thu, Apr 26, 2018 at 7:34 AM, Jagan Teki <jagannadh.t...@gmail.com> wrote: > On Thu, Apr 19, 2018 at 6:06 PM, Mario Six <mario@gdsys.cc> wrote: >> Support DM in the MPC8xxx SPI driver, and remove the legacy SPI >> interface. >> >> Signe

[U-Boot] [PATCH v2 18/18] spi: mpc8xxx: Convert to DM

2018-04-19 Thread Mario Six
Support DM in the MPC8xxx SPI driver, and remove the legacy SPI interface. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 144 ++ 1 file changed, 107 insertions(+), 37 deletions(-) --- Changes v1 -> v2: * Remov

[U-Boot] [PATCH v2 06/18] spi: mpc8xxx: Replace defines with enums

2018-04-19 Thread Mario Six
Replace pre-processor defines with proper enums, and use the BIT macro where applicable. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) d

[U-Boot] [PATCH v2 12/18] spi: mpc8xxx: Make code more readable

2018-04-19 Thread Mario Six
ies). Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 5bf84aaec6..af3762737

[U-Boot] [PATCH v2 13/18] spi: mpc8xxx: Rename variable

2018-04-19 Thread Mario Six
The variable "char_size" holds the number of bits to be transferred in the current loop iteration. A better name would be "xfer_bitlen", which we rename this variable to. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8x

[U-Boot] [PATCH v2 05/18] spi: mpc8xxx: Fix function names in strings

2018-04-19 Thread Mario Six
Replace the function name with a "%s" format string and the __func__ variable in debug statements (as proposed by checkpatch). Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 9 + 1 file changed, 5 inserti

[U-Boot] [PATCH v2 17/18] spi: mpc8xxx: Use get_timer

2018-04-19 Thread Mario Six
. To correct this, use the standard get_timer functionality to properly time out the loop after 1000 ms. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH v2 14/18] spi: mpc8xxx: Document LEN setting better

2018-04-19 Thread Mario Six
Instead of having a table right before the code implementing the length setting for documentation, have inline comments for the if branches actually implementing the length setting described table's entries (which is readable thanks to the set_char_len function). Signed-off-by: Mario Six <ma

[U-Boot] [PATCH v2 09/18] spi: mpc8xxx: Get rid of is_read

2018-04-19 Thread Mario Six
Get rid of the is_read variable, and just keep the state of the "not empty" and "not full" events in two boolean variables within the loop body. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 12 ++

[U-Boot] [PATCH v2 16/18] spi: mpc8xxx: Fix if check

2018-04-19 Thread Mario Six
s case the subsequent transmission is the last one regardless, hence the additional bit length decrease and write data pointer increase has no effect anyway. Still, the correct check is the check for "bitlen > 32", so correct this behavior. Signed-off-by: Mario Six <mario@gdsys.cc&

[U-Boot] [PATCH v2 10/18] spi: mpc8xxx: Simplify logic a bit

2018-04-19 Thread Mario Six
We do nothing in the loop if the "not empty" event was not detected. To simplify the logic, check if this is the case, and skip the execution of the loop early to reduce the nesting level and flag checking. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2:

[U-Boot] [PATCH v2 15/18] spi: mpc8xxx: Re-order transfer setup

2018-04-19 Thread Mario Six
to be written. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index d22206f4b7..fe493f6d40 100644 --- a/dr

[U-Boot] [PATCH v2 04/18] spi: mpc8xxx: Fix space after cast

2018-04-19 Thread Mario Six
Fix all "superfluous space after case" style errors. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/

[U-Boot] [PATCH v2 07/18] spi: mpc8xxx: Use IO accessors

2018-04-19 Thread Mario Six
Accesses to the register map are currently done by directly reading and writing the structure. Switch to the appropriate IO accessors instead. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 38 +++-

[U-Boot] [PATCH v2 08/18] spi: mpc8xxx: Simplify if

2018-04-19 Thread Mario Six
Instead of having a nested if block, just have two branches within the overarching if block to eliminate one nesting level. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 12 +--- 1 file changed, 5 insertions(+), 7

[U-Boot] [PATCH v2 01/18] spi: mpc8xxx: Use short type names

2018-04-19 Thread Mario Six
The function signatures in the driver are quite long as is. Use short type names (uint etc.) to make them more readable. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) --- Changes v1 ->

[U-Boot] [PATCH v2 11/18] spi: mpc8xxx: Reduce scope of loop variables

2018-04-19 Thread Mario Six
actually used in the loop (instead of the placeholder value 32). Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/dr

[U-Boot] [PATCH v2 00/18] spi: mpc8xxx: DM conversion

2018-04-19 Thread Mario Six
, and can come later. The legacy functionality is removed in this version, so old boards in the tree might end up with broken SPI functionality. Mario Six (18): spi: mpc8xxx: Use short type names spi: mpc8xxx: Fix comments spi: mpc8xxx: Rename camel-case variables spi: mpc8xxx: Fix space

[U-Boot] [PATCH v2 02/18] spi: mpc8xxx: Fix comments

2018-04-19 Thread Mario Six
There are some comments on the same line as the code they document. Put comments above the code lines they document, so the line length is not unnecessarily increased. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_s

[U-Boot] [PATCH v2 03/18] spi: mpc8xxx: Rename camel-case variables

2018-04-19 Thread Mario Six
There are three variables that have camel-case names, which is not the preferred naming style. Give those variables more compliant names instead. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 22 +++--- 1 fil

Re: [U-Boot] [PATCH 19/19] spi: mpc8xxx: Add DM support

2018-04-19 Thread Mario Six
On Thu, Apr 19, 2018 at 1:48 PM, Jagan Teki <jagannadh.t...@gmail.com> wrote: > On Thu, Apr 19, 2018 at 5:15 PM, Mario Six <mario@gdsys.cc> wrote: >> Hi Jagan, >> >> On Thu, Apr 19, 2018 at 1:32 PM, Jagan Teki <jagannadh.t...@gmail.com> wrote: >>

Re: [U-Boot] [PATCH 19/19] spi: mpc8xxx: Add DM support

2018-04-19 Thread Mario Six
Hi Jagan, On Thu, Apr 19, 2018 at 1:32 PM, Jagan Teki <jagannadh.t...@gmail.com> wrote: > On Tue, Apr 10, 2018 at 4:31 PM, Mario Six <mario@gdsys.cc> wrote: >> Support DM for the MPC8XXX SPI driver. >> >> Signed-off-by: Mario Six <mario@gdsys.cc> >

Re: [U-Boot] [PATCH 6/8] cpu: Add cpu_print_info function

2018-04-19 Thread Mario Six
Hi Simon, On Wed, Apr 18, 2018 at 5:45 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 18 April 2018 at 02:35, Mario Six <mario@gdsys.cc> wrote: >> Hi Simon, >> >> On Thu, Apr 12, 2018 at 6:37 PM, Simon Glass <s...@chromium.org>

Re: [U-Boot] [PATCH 2/3] core: Add functions to set properties in live-tree

2018-04-18 Thread Mario Six
Hi Simon, On Thu, Apr 12, 2018 at 6:42 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 10 April 2018 at 05:23, Mario Six <mario@gdsys.cc> wrote: >> Hi Simon, >> >> On Fri, Mar 30, 2018 at 12:43 AM, Simon Glass <s...@chromium.org>

Re: [U-Boot] [PATCH 1/8] core: Add uclass_{first, next}_device_compat

2018-04-18 Thread Mario Six
Hi Simon, On Thu, Apr 12, 2018 at 6:31 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 11 April 2018 at 01:15, Mario Six <mario@gdsys.cc> wrote: >> Hi Simon, >> >> On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass <s...@chromium.org>

Re: [U-Boot] [PATCH 7/7] video_display: Add Xilinx LogiCore DP TX

2018-04-18 Thread Mario Six
Hi Simon, On Thu, Apr 12, 2018 at 6:38 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 11 April 2018 at 01:27, Mario Six <mario@gdsys.cc> wrote: >> Hi Simon, >> >> On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass <s...@chromium.org>

Re: [U-Boot] [PATCH 6/8] cpu: Add cpu_print_info function

2018-04-18 Thread Mario Six
Hi Simon, On Thu, Apr 12, 2018 at 6:37 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 11 April 2018 at 00:39, Mario Six <mario@gdsys.cc> wrote: >> Hi Simon, >> >> On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass <s...@chromium.org> wro

Re: [U-Boot] [PATCH 6/7] video_display: Add power_on function

2018-04-18 Thread Mario Six
Hi Simon, On Thu, Apr 12, 2018 at 6:36 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 11 April 2018 at 00:35, Mario Six <mario@gdsys.cc> wrote: >> Hi Simon, >> >> On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass <s...@chromium.org>

Re: [U-Boot] [PATCH 1/3] core: Add function to get device for ofnode

2018-04-18 Thread Mario Six
Hi Simon, On Thu, Apr 12, 2018 at 6:42 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 10 April 2018 at 05:34, Mario Six <mario@gdsys.cc> wrote: >> Hi Simon, >> >> On Fri, Mar 30, 2018 at 12:43 AM, Simon Glass <s...@chromium.org>

Re: [U-Boot] [PATCH 7/7] video_display: Add Xilinx LogiCore DP TX

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:40, Mario Six <mario@gdsys.cc> wrote: >> Add a driver for the Xilinx LogiCORE DisplayPort IP core. >> >> Signed-off-by: Mario Six

Re: [U-Boot] [PATCH 1/8] core: Add uclass_{first, next}_device_compat

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:38, Mario Six <mario@gdsys.cc> wrote: >> A lot of times one wants to cycle through the devices in a uclass, but >> only certain

Re: [U-Boot] [PATCH 2/7] axi: Add AXI sandbox driver and simple emulator

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:40, Mario Six <mario@gdsys.cc> wrote: >> Add test infrastructure and tests for the AXI uclass. >> >> Signed-off-by: Mario Six <

Re: [U-Boot] [PATCH 1/2] misc: uclass: Add enable/disable functions

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:38, Mario Six <mario@gdsys.cc> wrote: >> Add generic enable/disable functions to the misc uclass. >> >> Signed-off-by: Mario Six

Re: [U-Boot] [PATCH 1/7] drivers: Add AXI uclass and ihs_axi driver

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:40, Mario Six <mario@gdsys.cc> wrote: >> Add a uclass for AXI (Advanced eXtensible Interface) busses, and a >> driver for the gdsys IHS A

Re: [U-Boot] [PATCH 6/8] cpu: Add cpu_print_info function

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass <s...@chromium.org> wrote: > Hi, > > On 28 March 2018 at 20:38, Mario Six <mario@gdsys.cc> wrote: >> Add a cpu_print_info function to the CPU uclass to emulate the behavior >> of some current non-DM dr

Re: [U-Boot] [PATCH 2/2] devinfo: Add gazerbeam info driver

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:40 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:36, Mario Six <mario@gdsys.cc> wrote: >> Add a device information driver for the upcoming gdsys Gazerbeam board. >> >> Signe

Re: [U-Boot] [PATCH 6/7] video_display: Add power_on function

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:40, Mario Six <mario@gdsys.cc> wrote: >> Add a power_on function to the display uclass to allow devices to be >> probed and powered-on

Re: [U-Boot] [PATCH 1/3] drivers: Add FPGA register map uclass

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:40 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:37, Mario Six <mario@gdsys.cc> wrote: >> The FPGA (as a device) and the register map supplied by a FPGA are two >> different e

Re: [U-Boot] [PATCH 1/2] drivers: Add devinfo uclass

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:40 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:36, Mario Six <mario@gdsys.cc> wrote: >> Some boards have encoded information, e.g. hard-wired GPIOs on a GPIO >> expander, read

Re: [U-Boot] [PATCH 2/3] video_osd: Add ihs_video_out driver

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 12:42 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:39, Mario Six <mario@gdsys.cc> wrote: >> Add a driver for IHS OSDs on IHS FPGAs. >> >> Signed-off-by: Mario Six <mario

Re: [U-Boot] [PATCH 3/3] core: Add dev_{disable,enable}_by_path

2018-04-10 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 12:43 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:37, Mario Six <mario@gdsys.cc> wrote: >> We cannot use device structures to disable devices, since getting >> them with the API

Re: [U-Boot] [PATCH 1/3] drivers: Add OSD uclass

2018-04-10 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 12:42 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:39, Mario Six <mario@gdsys.cc> wrote: >> Some devices offer a text-based OSD (on-screen display) that can be >> programmaticall

Re: [U-Boot] [PATCH 1/3] core: Add function to get device for ofnode

2018-04-10 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 12:43 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:37, Mario Six <mario@gdsys.cc> wrote: >> It's sometimes useful to get the device associated with a given ofnode. >> Implement a function t

Re: [U-Boot] [PATCH 2/3] core: Add functions to set properties in live-tree

2018-04-10 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 12:43 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:37, Mario Six <mario@gdsys.cc> wrote: >> Implement a set of functions to manipulate properties in a live device >> tree: >> &g

Re: [U-Boot] [PATCH 3/3] cmd: Add osd commands

2018-04-10 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 12:42 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 28 March 2018 at 20:39, Mario Six <mario@gdsys.cc> wrote: >> Add command to query information from and write text to IHS OSDs. >> >> Signe

[U-Boot] [PATCH 17/19] spi: mpc8xxx: Use get_timer

2018-04-10 Thread Mario Six
. To correct this, use the standard get_timer functionality to properly time out the loop after 1000 ms. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/d

[U-Boot] [PATCH 03/19] spi: mpc8xxx: Rename camel-case variables

2018-04-10 Thread Mario Six
There are three variables that have camel-case names, which is not the preferred naming style. Give those variables more compliant names instead. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 22 +++--- 1 file changed, 11 insertions(

[U-Boot] [PATCH 16/19] spi: mpc8xxx: Fix if check

2018-04-10 Thread Mario Six
s case the subsequent transmission is the last one regardless, hence the additional bit length decrease and write data pointer increase has no effect anyway. Still, the correct check is the check for "bitlen > 32", so correct this behavior. Signed-off-by: Mario Six <mario@gdsy

[U-Boot] [PATCH 12/19] spi: mpc8xxx: Make code more readable

2018-04-10 Thread Mario Six
ies). Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 5bf84aaec6..af3762737f 100644 --- a/drivers/spi/

[U-Boot] [PATCH 13/19] spi: mpc8xxx: Rename variable

2018-04-10 Thread Mario Six
The variable "char_size" holds the number of bits to be transferred in the current loop iteration. A better name would be "xfer_bitlen", which we rename this variable to. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 8 1 file c

[U-Boot] [PATCH 14/19] spi: mpc8xxx: Document LEN setting better

2018-04-10 Thread Mario Six
Instead of having a table right before the code implementing the length setting for documentation, have inline comments for the if branches actually implementing the length setting described table's entries (which is readable thanks to the set_char_len function). Signed-off-by: Mario Six <ma

[U-Boot] [PATCH 18/19] spi: mpc8xxx: Prepare DM conversion

2018-04-10 Thread Mario Six
To prepare DM conversion, move all driver functionality into separate functions, and call them from the driver functions; these functions will also be called from the DM-driver functions, so that we can keep the legacy functions for the boards that still need them. Signed-off-by: Mario Six <ma

[U-Boot] [PATCH 09/19] spi: mpc8xxx: Get rid of is_read

2018-04-10 Thread Mario Six
Get rid of the is_read variable, and just keep the state of the "not empty" and "not full" events in two boolean variables within the loop body. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 12 +++- 1 file changed, 7 insertion

[U-Boot] [PATCH 04/19] spi: mpc8xxx: Fix space after cast

2018-04-10 Thread Mario Six
Fix all "superfluous space after case" style errors. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 3ac9f2f8e8..0

[U-Boot] [PATCH 10/19] spi: mpc8xxx: Simplify logic a bit

2018-04-10 Thread Mario Six
We do nothing in the loop if the "not empty" event was not detected. To simplify the logic, check if this is the case, and skip the execution of the loop early to reduce the nesting level and flag checking. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mp

[U-Boot] [PATCH 00/19] spi: mpc8xxx: DM conversion

2018-04-10 Thread Mario Six
later. The legacy functionality is retained, so older boards will still work after the patches are applied. Mario Six (19): spi: mpc8xxx: Use short type names spi: mpc8xxx: Fix comments spi: mpc8xxx: Rename camel-case variables spi: mpc8xxx: Fix space after cast spi: mpc8xxx: Fix function

[U-Boot] [PATCH 19/19] spi: mpc8xxx: Add DM support

2018-04-10 Thread Mario Six
Support DM for the MPC8XXX SPI driver. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 135 +- 1 file changed, 133 insertions(+), 2 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c

[U-Boot] [PATCH 06/19] spi: mpc8xxx: Replace defines with enums

2018-04-10 Thread Mario Six
Replace pre-processor defines with proper enums, and use the BIT macro where applicable. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/d

[U-Boot] [PATCH 15/19] spi: mpc8xxx: Re-order transfer setup

2018-04-10 Thread Mario Six
to be written. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index d22206f4b7..fe493f6d40 100644 --- a/drivers/spi/mpc8xxx_spi.c +++ b/drive

[U-Boot] [PATCH 07/19] spi: mpc8xxx: Use IO accessors

2018-04-10 Thread Mario Six
Accesses to the register map are currently done by directly reading and writing the structure. Switch to the appropriate IO accessors instead. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 38 +++--- 1 file changed, 19 inse

[U-Boot] [PATCH 02/19] spi: mpc8xxx: Fix comments

2018-04-10 Thread Mario Six
There are some comments on the same line as the code they document. Put comments above the code lines they document, so the line length is not unnecessarily increased. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 22 ++ 1 file chang

[U-Boot] [PATCH 05/19] spi: mpc8xxx: Fix function names in strings

2018-04-10 Thread Mario Six
Replace the function name with a "%s" format string and the __func__ variable in debug statements (as proposed by checkpatch). Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --g

[U-Boot] [PATCH 08/19] spi: mpc8xxx: Simplify if

2018-04-10 Thread Mario Six
Instead of having a nested if block, just have two branches within the overarching if block to eliminate one nesting level. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drive

[U-Boot] [PATCH 01/19] spi: mpc8xxx: Use short type names

2018-04-10 Thread Mario Six
The function signatures in the driver are quite long as is. Use short type names (uint etc.) to make them more readable. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drive

[U-Boot] [PATCH 11/19] spi: mpc8xxx: Reduce scope of loop variables

2018-04-10 Thread Mario Six
actually used in the loop (instead of the placeholder value 32). Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/spi/mpc8xxx_spi.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 3024

[U-Boot] [PATCH 3/4] tsec: Fix reading phy registers from DT

2018-03-28 Thread Mario Six
Bus translations should be applied when reading the address of the sgmii phy registers from the DT. Use ofnode_get_addr_index instead of the plain ofnode_read_u32_default to fix this. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/net/tsec.c | 5 +++-- 1 file changed, 3 inse

[U-Boot] [PATCH] mtd: cfi_flash: Make live-tree compatible

2018-03-28 Thread Mario Six
Make the cfi_flash driver compatible with a live device tree. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/mtd/cfi_flash.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index da44

[U-Boot] [PATCH 2/3] mpc83xx/pci: Register IMMR region

2018-03-28 Thread Mario Six
Register the IMMR region as a PCI region when PCI is used on MPC83xx. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/pci/pci-uclass.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index ad43e8a27c..0778705f76

[U-Boot] [PATCH 6/7] video_display: Add power_on function

2018-03-28 Thread Mario Six
Add a power_on function to the display uclass to allow devices to be probed and powered-on separately. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/video/display-uclass.c | 10 ++ include/display.h | 18 ++ 2 files changed, 28 insertions(+)

[U-Boot] [PATCH 3/7] sandbox: Add and build AXI bus and device

2018-03-28 Thread Mario Six
Add test AXI drivers to the sandbox. Signed-off-by: Mario Six <mario@gdsys.cc> --- arch/sandbox/dts/sandbox.dts | 11 +++ arch/sandbox/dts/test.dts| 11 +++ configs/sandbox_defconfig| 3 +++ 3 files changed, 25 insertions(+) diff --git a/arch/sandbox/dts/sandb

<    1   2   3   4   5   6   7   8   9   10   >