[U-Boot] [PATCH v3 07/13] regmap: Add raw read/write functions

2018-07-31 Thread Mario Six
write operation on a regmap. Implement the regmap_read and regmap_write functions using these raw functions in a backwards-compatible manner. Signed-off-by: Mario Six --- v2 -> v3: * Implement the "raw" functions from Linux instead of adding a size parameter to the regmap_{read,wri

[U-Boot] [PATCH v3 12/13] misc: Add gdsys_soc driver

2018-07-31 Thread Mario Six
This patch adds a driver for the bus associated with a IHS FPGA. Signed-off-by: Mario Six --- v2 -> v3: * Fixed style violations * Added bindings file * Added more debug output in case of errors * Switched all printfs to debug * Documented the private data structure * Formatted documentation

[U-Boot] [PATCH v3 04/13] regmap: Improve error handling

2018-07-31 Thread Mario Six
ofnode_read_simple_addr_cells may fail and return a negative error code. Check for this when initializing regmaps. Also check if both_len is zero, since this is perfectly possible, and would lead to a division-by-zero further down the line. Signed-off-by: Mario Six --- v2 -> v3: New in

[U-Boot] [PATCH v3 08/13] regmap: Support reading from specific range

2018-07-31 Thread Mario Six
parameter 'range_num' that identifies the range to operate on. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: * Renamed the functions to regmap_{write,read}_range * Added function comments * Fixed style violations * Improved error handling v1 -> v2: New in v2 -

[U-Boot] [PATCH v3 11/13] misc: Sort Makefile entries

2018-07-31 Thread Mario Six
Makefile entries should be sorted. Signed-off-by: Mario Six --- v2 -> v3: New in v3 --- drivers/misc/Makefile | 60 +++ 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile in

[U-Boot] [PATCH v3 10/13] test: regmap: Add test for regmap_{set, get}

2018-07-31 Thread Mario Six
Add test for regmap_{set,get} functions. Signed-off-by: Mario Six --- v2 -> v3: New in v3 --- test/dm/regmap.c | 28 1 file changed, 28 insertions(+) diff --git a/test/dm/regmap.c b/test/dm/regmap.c index d4b86b3b03c..152b3a4b800 100644 --- a/test/dm/regma

[U-Boot] [PATCH v3 01/13] test: regmap: Increase size of syscon0 memory

2018-07-31 Thread Mario Six
. Signed-off-by: Mario Six --- v2 -> v3: New in v3 --- arch/sandbox/dts/test.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index e941cea3e5c..47cc961890f 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/

[U-Boot] [PATCH v3 05/13] regmap: Introduce init_range

2018-07-31 Thread Mario Six
Both fdtdec_get_addr_size_fixed and of_address_to_resource can fail with an error, which is not currently checked during regmap initialization. Since the indentation depth is already quite deep, extract a new 'init_range' method to do the initialization. Signed-off-by: Mario Six ---

[U-Boot] [PATCH v3 03/13] regmap: Add documentation

2018-07-31 Thread Mario Six
Document the regmap_alloc() function. Signed-off-by: Mario Six --- v2 -> v3: New in v3 --- drivers/core/regmap.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c index 8e5c3bcf61b..77f6f520a06 100644 --- a/drivers/core/regmap.c ++

[U-Boot] [PATCH v3 02/13] regmap: Fix documentation

2018-07-31 Thread Mario Six
The documentation in regmap.h is not in kernel-doc format. Correct this. Signed-off-by: Mario Six --- v2 -> v3: New in v3 --- include/regmap.h | 48 +++- 1 file changed, 39 insertions(+), 9 deletions(-) diff --git a/include/regmap.h b/incl

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

2018-07-31 Thread Mario Six
Add tests for the new board uclass. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v3 -> v4: No changes v2 -> v3: * Accomodated get_board() rename * Fixed style violations v1 -> v2: New in v2 --- arch/sandbox/dts/test.dts | 4 ++ configs/sandbox64_defconfig

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

2018-07-31 Thread Mario Six
Add a board driver for the upcoming gdsys Gazerbeam board. Signed-off-by: Mario Six --- v3 -> v4: * Fixed misplaced Kconfig lines v2 -> v3: * Set startup-finished GPIOs during probe * Added driver binding file for gazerbeam board * Improved error handling * Improved error/debug

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

2018-07-31 Thread Mario Six
ided by the hardware. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v3 -> v4: * Fixed botched Kconfig entry v2 -> v3: * Expanded comment on detect() * Added error handling in example * Renamed get_board() to board_get() * Fixed style violations * Documented board_get * Made commen

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

2018-07-31 Thread Mario Six
Hi Simon, On Wed, Jun 27, 2018 at 11:03 PM, Simon Glass wrote: > Hi Mario, > > On 27 June 2018 at 00:03, Mario Six wrote: >> >> Since there is no canonical "board device" that can be used in board >> files, it is difficult to use DM function for b

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

2018-06-27 Thread Mario Six
Add a board driver for the upcoming gdsys Gazerbeam board. Signed-off-by: Mario Six --- v2 -> v3: * Set startup-finished GPIOs during probe * Added driver binding file for gazerbeam board * Improved error handling * Improved error/debug output * Improved documentation * Turned magic numb

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

2018-06-27 Thread Mario Six
ided by the hardware. Signed-off-by: Mario Six --- v2 -> v3: * Expanded comment on detect() * Added error handling in example * Renamed get_board() to board_get() * Fixed style violations * Documented board_get * Made comments conform with kernel-doc * Fixed SPDC-License-Identifier position

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

2018-06-27 Thread Mario Six
Add tests for the new board uclass. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: * Accomodated get_board() rename * Fixed style violations v1 -> v2: New in v2 --- arch/sandbox/dts/test.dts | 4 ++ configs/sandbox64_defconfig| 2 + c

[U-Boot] [PATCH v3 2/6] video_osd: Add ihs_video_out driver

2018-06-26 Thread Mario Six
Add a driver for IHS OSDs on IHS FPGAs. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: * Replace dev_read_prop with dev_read_string * Fixed binding file * Improved error handling and reporting * Use static const variables instead of #defines * Use named constant for s

[U-Boot] [PATCH v3 1/6] drivers: Add OSD uclass

2018-06-26 Thread Mario Six
Some devices offer a text-based OSD (on-screen display) that can be programmatically controlled (i.e. text displayed on). Add a uclass to support such devices. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: None v1 -> v2: * Use singular case for UCLASS_VIDEO_OSD descr

[U-Boot] [PATCH v3 6/6] cmd: Add osd commands

2018-06-26 Thread Mario Six
Add command to query information from and write text to on-screen display (OSD) devices. Signed-off-by: Mario Six --- v2 -> v3: * Fixed style violations * Moved gdsys legacy OSD cmds to their own file * Made sure allocated buffer is always freed * Improved error handling * Impro

[U-Boot] [PATCH v3 5/6] test: list: Add tests for hexdump.c

2018-06-26 Thread Mario Six
Add tests for the hex2bin, bin2hex, and hex_to_bin functions, which were recently added to U-Boot. Signed-off-by: Mario Six --- v2 -> v3: New in v3 --- test/Makefile | 1 + test/lib/Makefile | 5 +++ test/lib/hexdump.c | 95 ++

[U-Boot] [PATCH v3 3/6] video_osd: Add osd sandbox driver and tests

2018-06-26 Thread Mario Six
Add sandbox driver and tests for the new OSD uclass. Signed-off-by: Mario Six --- v2 -> v3: * Fixed style violations * Removed sandbox_osd_get_mem from the uclass and moved it into the driver v1 -> v2: New in v2 --- arch/sandbox/dts/test.dts | 5 + arch/sandbox/inclu

[U-Boot] [PATCH v3 4/6] test: Add ut_asserteq_mem

2018-06-26 Thread Mario Six
Add a unit test assert-method, which compares two given memory areas for byte-wise equality. Signed-off-by: Mario Six --- v2 -> v3: New in v3 --- include/test/ut.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/test/ut.h b/include/test/ut.h index 59b23a2

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

2018-06-25 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 v2

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

2018-06-25 Thread Mario Six
Add tests for the dev_{enable,disable}_by_path functions. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: * Fixed style violations v1 -> v2: New in v2 --- test/dm/test-fdt.c | 28 1 file changed, 28 insertions(+) diff --git a/test/dm/test

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

2018-06-25 Thread Mario Six
Implement a set of functions to manipulate properties in a live device tree: * ofnode_write_prop() 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 --- v2 ->

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

2018-06-25 Thread Mario Six
Add tests for the ofnode_set_enabled, ofnode_write_string, and ofnode_write_property functions. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: * Fixed style violation v1 -> v2: New in v2 --- test/dm/test-fdt.c | 54 +++

Re: [U-Boot] [PATCH RFC] doc: Replace DocBook with sphinx-based docs

2018-06-25 Thread Mario Six
Hi Tom, On Mon, Jun 18, 2018 at 9:04 PM, Tom Rini wrote: > On Thu, Jun 14, 2018 at 10:44:53AM +0200, Mario Six wrote: > >> The Linux kernel moved to sphinx-based documentation and got rid of the >> DocBook based documentation quite a while ago. Hence, the DocBook >>

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

2018-06-25 Thread Mario Six
Right, sorry, will be fixed in v3. > On Wed, 23 May 2018 14:10:47 +0200 > Mario Six mario@gdsys.cc wrote: > ... >> diff --git a/drivers/video/Makefile b/drivers/video/Makefile >> index cf7ad281c3b..fa4ac715fcf 100644 >> --- a/drivers/video/Makefile >>

Re: [U-Boot] [PATCH v2 6/7] cmd: Add axi command

2018-06-25 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:41 AM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 06:10, Mario Six wrote: >> Add a command to debug the AXI bus. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2: >> No change

Re: [U-Boot] [PATCH v2 5/7] test: Add AXI test

2018-06-25 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:41 AM, Simon Glass wrote: > On 23 May 2018 at 06:10, Mario Six wrote: >> Add tests for the AXI uclass. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2: >> * Fixed asserts (moved expected values fi

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

2018-06-25 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:41 AM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 06:10, Mario Six wrote: >> Add test infrastructure and tests for the AXI uclass. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2: >&g

Re: [U-Boot] [PATCH v2 1/7] drivers: Add AXI uclass

2018-06-25 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:41 AM, Simon Glass wrote: > On 23 May 2018 at 06:10, Mario Six wrote: >> Add a uclass for AXI (Advanced eXtensible Interface) busses, and a >> driver for the gdsys IHS AXI bus on IHS FPGAs. >> >> Signed-off-by: Mario Si

Re: [U-Boot] [PATCH v3 10/11] cpu: Add MPC83xx CPU driver

2018-06-25 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:42 AM, Simon Glass wrote: > Hi Mario, > > On 24 May 2018 at 02:42, Mario Six wrote: >> Add a CPU driver for the MPC83xx architecture. >> >> Signed-off-by: Mario Six >> >> --- >> >> v2 -> v3: >> * Ad

Re: [U-Boot] [PATCH v3 09/11] board_f: Use static print_cpuinfo if CONFIG_CPU is active

2018-06-25 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:42 AM, Simon Glass wrote: > Hi Mario, > > On 24 May 2018 at 02:42, Mario Six wrote: >> When the DM CPU drivers are active, printing information about a CPU >> should be delegated to a matching driver. >> >> Hence, add a sta

Re: [U-Boot] [PATCH v3 07/11] timer: Add MPC83xx timer driver

2018-06-25 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:42 AM, Simon Glass wrote: > Hi Mario, > > On 24 May 2018 at 02:42, Mario Six wrote: >> Add a timer driver for the MPC83xx architecture. >> >> Signed-off-by: Mario Six >> >> --- >> >> v2 -> v3: >>

Re: [U-Boot] [PATCH v3 06/11] clk: Add MPC83xx clock driver

2018-06-25 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:42 AM, Simon Glass wrote: > Hi Mario, > > On 24 May 2018 at 02:42, Mario Six wrote: >> Add a clock driver for the MPC83xx architecture. >> >> Signed-off-by: Mario Six >> >> --- >> >> v2 -> v3: >> *

Re: [U-Boot] [PATCH v3 03/11] test: Add tests for sysreset_get_status

2018-06-25 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:41 AM, Simon Glass wrote: > On 24 May 2018 at 02:42, Mario Six wrote: >> Add some tests for sysreset_get_status. >> >> Signed-off-by: Mario Six >> >> --- >> >> v2 -> v3: >> New in v3.

Re: [U-Boot] [PATCH v3 1/3] misc: docs: Fix comments in misc.h

2018-06-13 Thread Mario Six
Hi Simon, On Wed, May 30, 2018 at 9:18 PM, Simon Glass wrote: > Hi Mario, > > On 28 May 2018 at 07:01, Mario Six wrote: >> Hi Simon, >> >> On Fri, May 25, 2018 at 4:41 AM, Simon Glass wrote: >>> +Marex >>> >>> Hi Mario, >>> >

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

2018-06-13 Thread Mario Six
Hi Simon, On Fri, May 4, 2018 at 11:37 PM, Simon Glass wrote: > Hi Mario, > > On 4 May 2018 at 02:15, Mario Six wrote: >> Hi Simon, >> >> On Thu, May 3, 2018 at 9:02 PM, Simon Glass wrote: >>> Hi Mario, >>> >>> On 27 April 2018 at 06:53, Ma

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

2018-06-13 Thread Mario Six
Hi Simon, On Fri, May 4, 2018 at 11:37 PM, Simon Glass wrote: > Hi Mario, > > On 4 May 2018 at 01:14, Mario Six wrote: >> Hi Simon, >> >> On Tue, May 1, 2018 at 1:13 AM, Simon Glass wrote: >>> Hi Mario, >>> >>> On 27 April 2018 at 06:51, Ma

Re: [U-Boot] [PATCH v2 4/5] lib: Import hexdump.c from Linux

2018-06-13 Thread Mario Six
Hi Alexey, On Mon, Jun 4, 2018 at 6:05 PM, Alexey Brodkin wrote: > Hi Mario, > > On Wed, 2018-05-23 at 14:09 +0200, Mario Six wrote: >> Especially for commands, it is useful to be able to turn a hexadecimal >> string into its binary representation. >> >> Henc

Re: [U-Boot] [PATCH] mvebu: a38x: Force receiver detected on PCIe lanes

2018-05-29 Thread Mario Six
Hi Stefan, On Mon, May 28, 2018 at 4:49 PM, Stefan Roese wrote: > On 28.05.2018 15:15, Mario Six wrote: >> >> Hi Stefan, >> >> On Mon, May 28, 2018 at 2:52 PM, Stefan Roese wrote: >>> >>> (Added Mario and Chris) >>> >>> >>&

Re: [U-Boot] [PATCH] mvebu: a38x: Force receiver detected on PCIe lanes

2018-05-28 Thread Mario Six
Hi Stefan, On Mon, May 28, 2018 at 2:52 PM, Stefan Roese wrote: > (Added Mario and Chris) > > > On 27.05.2018 17:34, Baruch Siach wrote: >> >> From: Rabeeh Khoury >> >> Some QCA988x based modules presence is not detected by the SERDES lanes, >> so force this detection which will trigger the LTSS

Re: [U-Boot] [PATCH v3 1/3] misc: docs: Fix comments in misc.h

2018-05-28 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:41 AM, Simon Glass wrote: > +Marex > > Hi Mario, > > On 23 May 2018 at 08:07, Mario Six wrote: >> The comments in misc.h are not in kernel-doc format. Correct the format. >> >> Signed-off-by: Mario Six >&

Re: [U-Boot] [PATCH v3 2/3] misc: uclass: Add enable/disable function

2018-05-28 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:41 AM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 08:07, Mario Six wrote: >> Add generic enable/disable function to the misc uclass. >> >> Signed-off-by: Mario Six >> >> --- >> >> v2 -> v3: &g

Re: [U-Boot] [PATCH v3 3/3] misc: Add gdsys_ioep driver

2018-05-28 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:42 AM, Simon Glass wrote: > On 23 May 2018 at 08:07, Mario Six wrote: >> Add driver for the IHS IO endpoint on IHS FPGAs. >> >> Signed-off-by: Mario Six >> >> --- >> >> v2 -> v3: >> No changes >> &g

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

2018-05-25 Thread Mario Six
Hi Simon, On Wed, May 23, 2018 at 6:33 PM, Simon Glass wrote: > On 23 May 2018 at 06:09, Mario Six wrote: >> Some devices offer a text-based OSD (on-screen display) that can be >> programmatically controlled (i.e. text displayed on). >> >> Add a uclass to support suc

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

2018-05-25 Thread Mario Six
Hi Simon, On Wed, May 23, 2018 at 6:33 PM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 06:09, Mario Six wrote: >> Add command to query information from and write text to on-screen >> display (OSD) devices. >> >> Signed-off-by: Mario Six >> >&g

Re: [U-Boot] [PATCH v2 4/5] lib: Import hexdump.c from Linux

2018-05-25 Thread Mario Six
Hi Simon, On Wed, May 23, 2018 at 6:33 PM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 06:09, Mario Six wrote: >> Especially for commands, it is useful to be able to turn a hexadecimal >> string into its binary representation. >> >> Hence, import the

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

2018-05-25 Thread Mario Six
Hi Simon, On Wed, May 23, 2018 at 6:33 PM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 06:09, Mario Six wrote: >> Add a driver for IHS OSDs on IHS FPGAs. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2: >> * Rena

Re: [U-Boot] [PATCH v2 3/5] video_osd: Add osd sandbox driver and tests

2018-05-25 Thread Mario Six
Hi Simon, On Wed, May 23, 2018 at 6:33 PM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 06:09, Mario Six wrote: >> Add sandbox driver and tests for the new OSD uclass. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2

[U-Boot] [PATCH v3 01/11] ram: Add driver for MPC83xx

2018-05-24 Thread Mario Six
Add a RAM driver for the MPC83xx architecture. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: * Converted some #ifdefs to if (IS_ENABLED(...)) * Added driver files to MAINTAINERS v1 -> v2: No changes --- MAINTAINERS| 2 + arch/power

[U-Boot] [PATCH v3 04/11] board_f: Add reset status printing

2018-05-24 Thread Mario Six
To print the reset status during boot, add a method print_resetinfo to board_f, which is called in init_sequence_f[], that gets the reset information from the sysreset driver (assuming there is only one seems reasonable), and prints it. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2

[U-Boot] [PATCH v3 03/11] test: Add tests for sysreset_get_status

2018-05-24 Thread Mario Six
Add some tests for sysreset_get_status. Signed-off-by: Mario Six --- v2 -> v3: New in v3. --- drivers/sysreset/sysreset_sandbox.c | 16 test/dm/sysreset.c | 19 +++ 2 files changed, 35 insertions(+) diff --git a/drivers/sysre

[U-Boot] [PATCH v3 11/11] misc: Add MPC83xx serdes driver

2018-05-24 Thread Mario Six
Add a driver to configure the SerDes (Serializer/Deserializer) lanes on the MPC83xx architecture. Signed-off-by: Mario Six --- v2 -> v3: * Added driver file to MAINTAINERS v1 -> v2: No changes --- MAINTAINERS | 1 + arch/powerpc/cpu/mpc83xx/se

[U-Boot] [PATCH v3 06/11] clk: Add MPC83xx clock driver

2018-05-24 Thread Mario Six
Add a clock driver for the MPC83xx architecture. Signed-off-by: Mario Six --- v2 -> v3: * Added driver files to MAINTAINERS v1 -> v2: * Added binding of sysreset driver --- MAINTAINERS | 3 + arch/powerpc/cpu/mpc83xx/speed.c | 4 + arch/powerpc/inclu

[U-Boot] [PATCH v3 02/11] sysreset: Add get_status method

2018-05-24 Thread Mario Six
reset status (akin to get_desc in the CPU uclass). Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- drivers/sysreset/sysreset-uclass.c | 10 ++ include/sysreset.h | 17 + 2 files changed, 27

[U-Boot] [PATCH v3 10/11] cpu: Add MPC83xx CPU driver

2018-05-24 Thread Mario Six
Add a CPU driver for the MPC83xx architecture. Signed-off-by: Mario Six --- v2 -> v3: * Added driver files to MAINTAINERS v1 -> v2: * Removed cpu_print_info * Fixed CPU info printing * Removed usage of uclass_{first,next}_device_compat * Removed printing of reset status --- MAINT

[U-Boot] [PATCH v3 07/11] timer: Add MPC83xx timer driver

2018-05-24 Thread Mario Six
Add a timer driver for the MPC83xx architecture. Signed-off-by: Mario Six --- v2 -> v3: * Got rid of the static variables * Added driver files to MAINTAINERS v1 -> v2: * Removed now-superfluous comments * Removed usage of uclass_{first,next}_device_compat * Switched to usage of new

[U-Boot] [PATCH v3 09/11] board_f: Use static print_cpuinfo if CONFIG_CPU is active

2018-05-24 Thread Mario Six
When the DM CPU drivers are active, printing information about a CPU should be delegated to a matching driver. Hence, add a static print_cpuinfo that implements this delegation when DM CPU drivers are active. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 ---

[U-Boot] [PATCH v3 05/11] mpc83xx: Add sysreset driver

2018-05-24 Thread Mario Six
Add a sysreset driver for the MPC83xx platform. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: * Added driver file to MAINTAINERS v1 -> v2: New in v2 --- MAINTAINERS | 1 + arch/powerpc/cpu/mpc83xx/cpu.c | 3 +- drivers/sysreset/K

[U-Boot] [PATCH v3 08/11] common: board_f: Sort includes

2018-05-24 Thread Mario Six
Includes should be sorted. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index d24513d6d18..a716eeb8990 100644

[U-Boot] [PATCH v3 2/3] misc: uclass: Add enable/disable function

2018-05-23 Thread Mario Six
Add generic enable/disable function to the misc uclass. Signed-off-by: Mario Six --- v2 -> v3: * Now return old state from misc_set_enabled v1 -> v2: * Merged the two functions into one function * Explained the semantics of enabling/disabling more throughly --- drivers/misc/misc-uc

[U-Boot] [PATCH v3 1/3] misc: docs: Fix comments in misc.h

2018-05-23 Thread Mario Six
The comments in misc.h are not in kernel-doc format. Correct the format. Signed-off-by: Mario Six --- v2 -> v3: New in v3 --- include/misc.h | 66 +++--- 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/include/misc.

[U-Boot] [PATCH v3 3/3] misc: Add gdsys_ioep driver

2018-05-23 Thread Mario Six
Add driver for the IHS IO endpoint on IHS FPGAs. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Switched to regmap usage (instead of fpgamap) --- drivers/misc/Kconfig | 6 ++ drivers/misc/Makefile | 1 + drivers/misc/gdsys_ioep.c

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

2018-05-23 Thread Mario Six
Add test AXI drivers to the sandbox. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v1 -> v2: No changes --- arch/sandbox/dts/sandbox.dts | 11 +++ arch/sandbox/dts/test.dts| 11 +++ configs/sandbox_defconfig| 3 +++ 3 files changed, 25 insertions(+) d

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

2018-05-23 Thread Mario Six
Add a driver for the Xilinx LogiCORE DisplayPort IP core, which is a pure DP transmitter core for Xiling FPGA (no display capabilities). Signed-off-by: Mario Six --- v1 -> v2: * Switch to display_enable * Mentioned that the LogiCORE has no display capabilities --- drivers/video/Kcon

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

2018-05-23 Thread Mario Six
Add test infrastructure and tests for the AXI uclass. Signed-off-by: Mario Six --- v1 -> v2: * Spelled out abbreviations in Kconfig help * Expanded emulation documentation * Renamed storage pointer to storep * Expanded AXI emulator usage documentation * Switched AXI emulator to aligned acc

[U-Boot] [PATCH v2 6/7] cmd: Add axi command

2018-05-23 Thread Mario Six
Add a command to debug the AXI bus. Signed-off-by: Mario Six --- v1 -> v2: No changes --- cmd/Kconfig | 8 ++ cmd/Makefile | 1 + cmd/axi.c| 310 +++ 3 files changed, 319 insertions(+) create mode 100644 cmd/axi.c diff --

[U-Boot] [PATCH v2 2/7] axi: Add ihs_axi driver

2018-05-23 Thread Mario Six
Add a driver for the gdsys IHS AXI bus used on IHS FPGAs. Signed-off-by: Mario Six --- v1 -> v2: New in v2 --- drivers/axi/Kconfig | 12 drivers/axi/Makefile | 1 + drivers/axi/ihs_axi.c | 179 ++ 3 files changed, 192 inserti

[U-Boot] [PATCH v2 5/7] test: Add AXI test

2018-05-23 Thread Mario Six
Add tests for the AXI uclass. Signed-off-by: Mario Six --- v1 -> v2: * Fixed asserts (moved expected values first) --- test/dm/Makefile | 1 + test/dm/axi.c| 74 2 files changed, 75 insertions(+) create mode 100644 test/dm/ax

[U-Boot] [PATCH v2 1/7] drivers: Add AXI uclass

2018-05-23 Thread Mario Six
Add a uclass for AXI (Advanced eXtensible Interface) busses, and a driver for the gdsys IHS AXI bus on IHS FPGAs. Signed-off-by: Mario Six --- v1 -> v2: * Spelled out all abbreviations in the Kconfig help * Split commit into uclass addition and driver addition --- drivers/Kcon

[U-Boot] [PATCH v2 5/5] cmd: Add osd commands

2018-05-23 Thread Mario Six
Add command to query information from and write text to on-screen display (OSD) devices. Signed-off-by: Mario Six --- v1 -> v2: * Added explanation for what a OSD is * Added explanation of the color parameter * Moved GDSYS_LEGACY_OSD_CMDS to gdsys Kconfig --- board/gdsys/mpc8308/Kcon

[U-Boot] [PATCH v2 3/5] video_osd: Add osd sandbox driver and tests

2018-05-23 Thread Mario Six
Add sandbox driver and tests for the new OSD uclass. Signed-off-by: Mario Six --- v1 -> v2: New in v2 --- arch/sandbox/dts/test.dts | 4 + configs/sandbox64_defconfig| 3 + configs/sandbox_defconfig | 3 + configs/sandbox_flattree_defconfig | 3 + conf

[U-Boot] [PATCH v2 4/5] lib: Import hexdump.c from Linux

2018-05-23 Thread Mario Six
Especially for commands, it is useful to be able to turn a hexadecimal string into its binary representation. Hence, import the hex_to_bin, bin2hex, and hex2bin functions from the Linux kernel. Signed-off-by: Mario Six --- v1 -> v2: New in v2 --- include/linux/kernel.h | 4 + lib/Makef

[U-Boot] [PATCH v2 1/5] drivers: Add OSD uclass

2018-05-23 Thread Mario Six
Some devices offer a text-based OSD (on-screen display) that can be programmatically controlled (i.e. text displayed on). Add a uclass to support such devices. Signed-off-by: Mario Six --- v1 -> v2: * Use singular case for UCLASS_VIDEO_OSD description * Expanded description

[U-Boot] [PATCH v2 2/5] video_osd: Add ihs_video_out driver

2018-05-23 Thread Mario Six
Add a driver for IHS OSDs on IHS FPGAs. Signed-off-by: Mario Six --- v1 -> v2: * Renamed x and y parameters to col and row * Removed duplicate IHS_VIDEO_OUT definition * Switched error return code of ihs_video_out_set_mem to E2BIG * Dropped blank lines between dev_read_u32_default ca

Re: [U-Boot] [PATCH RFCv2 0/6] Beginning of migration of MPC8xx to DM model

2018-05-04 Thread Mario Six
Hi Christophe, On Fri, May 4, 2018 at 7:20 AM, Christophe LEROY wrote: > Hello, > > > Le 16/03/2018 à 17:32, Christophe Leroy a écrit : >> >> This serie is the beginning of MPC8xx migration to DM model. > > > I didn't get any feedback on this serie. I don't feel totally confortable as > it is my

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

2018-05-04 Thread Mario Six
Hi Simon, On Thu, May 3, 2018 at 9:02 PM, Simon Glass wrote: > Hi Mario, > > On 27 April 2018 at 06:52, Mario Six wrote: >> Add generic enable/disable function to the misc uclass. >> >> Signed-off-by: Mario Six >> --- >> >> v1 -> v2:

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

2018-05-04 Thread Mario Six
Hi Neil, On Fri, Apr 27, 2018 at 3:00 PM, Neil Armstrong wrote: > Hi Mario, > > On 27/04/2018 14:51, Mario Six wrote: >> The regmap functions currently assume that all register map accesses >> have a data width of 32 bits, but there are maps that have different >> wid

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

2018-05-04 Thread Mario Six
Hi Simon, On Thu, May 3, 2018 at 9:02 PM, Simon Glass wrote: > Hi Mario, > > On 27 April 2018 at 06:53, Mario Six wrote: >> Register the IMMR region as a PCI region when PCI is used on MPC83xx. >> >> Signed-off-by: Mario Six >> --- >> >> v1 ->

Re: [U-Boot] [PATCH v2 03/10] board_f: Add reset status printing

2018-05-04 Thread Mario Six
Hi Simon, On Thu, May 3, 2018 at 9:01 PM, Simon Glass wrote: > Hi Mario, > > On 27 April 2018 at 06:52, Mario Six wrote: >> To print the reset status during boot, add a method print_resetinfo to >> board_f, which is called in init_sequence_f[], that gets the reset &g

Re: [U-Boot] [PATCH v2 02/10] sysreset: Add get_status method

2018-05-04 Thread Mario Six
Hi Simon, On Thu, May 3, 2018 at 9:01 PM, Simon Glass wrote: > On 27 April 2018 at 06:52, Mario Six wrote: >> It's useful to have the reset status of the SoC printed out during reset >> (e.g. to learn whether the reset was caused by software or a watchdog). >> >&

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

2018-05-04 Thread Mario Six
Hi Simon, On Thu, May 3, 2018 at 4:33 AM, Simon Glass wrote: > Hi Mario, > > On 27 April 2018 at 06:52, Mario Six wrote: >> It would be convenient if one could use the regmap API in conjunction >> with register maps defined as structs (i.e. structs that directly mirror &g

Re: [U-Boot] [PATCH v2 01/10] ram: Add driver for MPC83xx

2018-05-04 Thread Mario Six
Hi Simon, On Thu, May 3, 2018 at 9:01 PM, Simon Glass wrote: > Hi Mario, > > On 27 April 2018 at 06:52, Mario Six wrote: >> Add a RAM driver for the MPC83xx architecture. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2: >> N

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

2018-05-04 Thread Mario Six
Hi Simon, On Thu, May 3, 2018 at 4:33 AM, Simon Glass wrote: > Hi Mario, > > On 27 April 2018 at 06:51, Mario Six wrote: >> We cannot use device structures to disable devices, since getting >> them with the API functions would bind and activate the device, which >> w

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

2018-05-04 Thread Mario Six
Hi Simon, On Thu, May 3, 2018 at 4:33 AM, Simon Glass wrote: > Hi Mario, > > On 27 April 2018 at 06:52, Mario Six wrote: >> >> It is useful to be able to treat the different ranges of a regmap >> separately to be able to use distinct offset for them, but this is >

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

2018-05-04 Thread Mario Six
Hi Simon, On Tue, May 1, 2018 at 1:13 AM, Simon Glass wrote: > Hi Mario, > > On 27 April 2018 at 06:51, Mario Six wrote: >> >> Implement a set of functions to manipulate properties in a live device >> tree: >> >> * ofnode_set_propert

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

2018-05-04 Thread Mario Six
Hi Neil, On Fri, Apr 27, 2018 at 3:01 PM, Neil Armstrong wrote: > Hi, > > On 27/04/2018 14:53, Mario Six wrote: >> Some reset lines are implemented by toggling the line via a GPIO. >> >> Add a driver to properly drive such reset lines. > > You are defining a &quo

Re: [U-Boot] [PATCH v2 06/10] timer: Add MPC83xx timer driver

2018-05-03 Thread Mario Six
Hi Simon, On Tue, May 1, 2018 at 1:13 AM, Simon Glass wrote: > Hi Mario, > > On 27 April 2018 at 06:52, Mario Six wrote: >> Add a timer driver for the MPC83xx architecture. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2: >&

[U-Boot] [PATCH v2 05/10] clk: Add MPC83xx clock driver

2018-04-27 Thread Mario Six
Add a clock driver for the MPC83xx architecture. Signed-off-by: Mario Six --- v1 -> v2: * Added binding of sysreset driver --- arch/powerpc/cpu/mpc83xx/speed.c | 4 + arch/powerpc/include/asm/config.h | 2 +- drivers/clk/Kconfig | 6 + drivers/clk/Makef

[U-Boot] [PATCH v2 02/10] sysreset: Add get_status method

2018-04-27 Thread Mario Six
reset status (akin to get_desc in the CPU uclass). Signed-off-by: Mario Six --- v1 -> v2: New in v2 --- drivers/sysreset/sysreset-uclass.c | 10 ++ include/sysreset.h | 17 + 2 files changed, 27 insertions(+) diff --git a/drivers/sysreset/sysreset-ucl

[U-Boot] [PATCH v2 04/10] mpc83xx: Add sysreset driver

2018-04-27 Thread Mario Six
Add a sysreset driver for the MPC83xx platform. Signed-off-by: Mario Six --- v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/cpu.c | 3 +- drivers/sysreset/Kconfig| 5 ++ drivers/sysreset/Makefile | 9 +- drivers/sysreset/sysreset_mpc83xx.c |

[U-Boot] [PATCH v2 01/10] ram: Add driver for MPC83xx

2018-04-27 Thread Mario Six
Add a RAM driver for the MPC83xx architecture. Signed-off-by: Mario Six --- v1 -> v2: No changes --- arch/powerpc/cpu/mpc83xx/spd_sdram.c | 4 + drivers/ram/Kconfig| 8 + drivers/ram/Makefile | 1 + drivers/ram/mpc83xx_sdra

[U-Boot] [PATCH v2 06/10] timer: Add MPC83xx timer driver

2018-04-27 Thread Mario Six
Add a timer driver for the MPC83xx architecture. Signed-off-by: Mario Six --- v1 -> v2: * Removed now-superfluous comments * Removed usage of uclass_{first,next}_device_compat * Switched to usage of new board uclass (instead of devinfo) --- arch/powerpc/cpu/mpc83xx/cpu.c | 4 +- a

[U-Boot] [PATCH] treewide: Move CONFIG_PHY_MARVELL to Kconfig

2018-04-27 Thread Mario Six
The CONFIG_PHY_MARVELL has already been migrated to Kconfig (some boards already had it in their Kconfig), but had not been moved for older boards. Move it to the defconfigs for all boards. Signed-off-by: Mario Six --- configs/10m50_defconfig| 1 + configs

[U-Boot] [PATCH v2 07/10] common: board_f: Sort includes

2018-04-27 Thread Mario Six
Includes should be sorted. Signed-off-by: Mario Six --- v1 -> v2: New in v2 --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index 2df30cd250..ff7a52705e 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -1

[U-Boot] [PATCH v2 03/10] board_f: Add reset status printing

2018-04-27 Thread Mario Six
To print the reset status during boot, add a method print_resetinfo to board_f, which is called in init_sequence_f[], that gets the reset information from the sysreset driver (assuming there is only one seems reasonable), and prints it. Signed-off-by: Mario Six --- v1 -> v2: New in

[U-Boot] [PATCH v2 1/3] pci: Don't use pci_indirect when DM is active

2018-04-27 Thread Mario Six
Declaration of indirect PCI bridges is not compatible with DM: Both define PCI operations, but in different ways. Hence, don't use indirect bridges if DM is active. Signed-off-by: Mario Six Reviewed-by: Simon Glass --- v1 -> v2: No changes --- drivers/pci/pci_indirect.c | 2 +-

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