Re: [U-Boot] [PATCH] i2c_eeprom: Add reading support

2016-06-13 Thread Mario Six
Hi Simon, On Fri, Jun 10, 2016 at 2:35 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 2 June 2016 at 07:07, Mario Six <mario@gdsys.cc> wrote: >> This patch implements the reading functionality for the generic I2C >> EEPROM driver, which was jus

[U-Boot] [PATCH v5 1/4] dm: gpio: Add driver for MPC85XX GPIO controller

2016-05-25 Thread Mario Six
g. the 32/32/23 banks of the P1022 SoC). The usual functions of GPIO drivers (setting input/output mode and output value setting) are supported. The driver has been tested on MPC85XX, but it is likely that other PowerQUICC III devices will work as well. Signed-off-by: Mario Six <mario.

Re: [U-Boot] [PATCH] dm: gpio: MPC85XX GPIO platform data support

2016-05-30 Thread Mario Six
; }; > > U_BOOT_DEVICES(my_platform_gpios) = { > { "gpio_mpc85xx", _blocks[0] }, > { "gpio_mpc85xx", _blocks[1] }, > }; > > This is intended to build upon the recent submission of the base > MPC85XX driver from Mario Six. We need to use that new driv

Re: [U-Boot] [PATCH] dm: gpio: MPC85XX GPIO platform data support

2016-05-30 Thread Mario Six
; }; > > U_BOOT_DEVICES(my_platform_gpios) = { > { "gpio_mpc85xx", _blocks[0] }, > { "gpio_mpc85xx", _blocks[1] }, > }; > > This is intended to build upon the recent submission of the base > MPC85XX driver from Mario Six. We need to use that new driv

[U-Boot] [PATCH] i2c_eeprom: Add reading support

2016-06-02 Thread Mario Six
for a range of at24c* chips are added. Signed-off-by: Mario Six <mario@gdsys.cc> --- Writing functionality doesn't quite work yet; but with these I2C EEPROMs reading is probably more important, anyway. --- drivers/misc/Kconfig | 5 + drivers/misc/i2c_eeprom.

[U-Boot] [PATCH v2] i2c_eeprom: Add reading support

2016-06-22 Thread Mario Six
the private data structure to keep track of it. Compatibility strings for a range of at24c* chips are added. Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes in v2: - Simplified and documented the i2c_eeprom struct - Simplified the read function - Corrected Kconfig dependency (from DM

[U-Boot] Problems with D-cache invalidation in Freescale eSDHC driver

2016-03-18 Thread mario . six
Hello, I've been working on a QorIQ P1022 board (controlcenterd) to run the newest U-Boot on it, and I encountered some strange behavior. During boot, we get these error messages " ERROR: Cannot import environment: errno = 12 at common/env_common.c:221/env_import() *** Warning - import

Re: [U-Boot] [RFC v1 PATCH 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-03-31 Thread Mario Six
Quoting York Sun <york@nxp.com>: On 03/29/2016 11:53 PM, Mario Six wrote: To enable DM on MPC85xx, we need pre-relocation malloc, which is implemented in this patch. Signed-off-by: Mario Six <mario@gdsys.cc> Cc: York Sun <york@nxp.com> Cc: Simon Glass

[U-Boot] [PATCH v3 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-04-05 Thread Mario Six
To enable DM on MPC85xx, we need pre-relocation malloc, which is implemented in this patch. We also make sure that the IVORs are always 4-aligned on e500 to prevent alignment exceptions caused by code changes in start.S. Signed-off-by: Mario Six <mario@gdsys.cc> Cc: York Sun

[U-Boot] [PATCH v2] tpm: Fix uclass_first_device error handling

2016-04-05 Thread Mario Six
uclass_first_device might return NULL for the device despite a zero return code. Currently, this might lead to null pointer dereferencing, since the returned device is not properly checked. We switch to uclass_first_device_err to make sure that the returned device is valid. Signed-off-by: Mario

Re: [U-Boot] [PATCH v3 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-04-07 Thread Mario Six
Quoting York Sun <york@nxp.com>: On 04/05/2016 06:06 AM, Mario Six wrote: To enable DM on MPC85xx, we need pre-relocation malloc, which is implemented in this patch. We also make sure that the IVORs are always 4-aligned on e500 to prevent alignment exceptions caused by code c

[U-Boot] powerpc/mpc85xx: Alignment issue when adding code to start.S

2016-03-22 Thread Mario Six
Hi, I've been implementing pre-relocation malloc for MPC58xx to enable CONFIG_DM on our P1022 board (controlcenterd). The patch so far looks like this: " diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c index 235a635..e6e1688 100644 ---

Re: [U-Boot] Problems with D-cache invalidation in Freescale eSDHC driver

2016-03-22 Thread Mario Six
Hi York, Quoting york sun : On 03/21/2016 03:11 AM, Peng Fan wrote: Hi Maro, +More people. There maybe more ideas about this. On Mon, Mar 21, 2016 at 10:32:46AM +0100, mario@gdsys.cc wrote: Hi Peng, Quoting Peng Fan : Hi Mario, On Fri, Mar

Re: [U-Boot] Problems with D-cache invalidation in Freescale eSDHC driver

2016-03-21 Thread mario . six
Hi Peng, Quoting Peng Fan : Hi Mario, On Fri, Mar 18, 2016 at 09:16:48AM +0100, mario@gdsys.cc wrote: Hello, I've been working on a QorIQ P1022 board (controlcenterd) to run the newest U-Boot on it, and I encountered some strange behavior. During boot, we get

Re: [U-Boot] [PATCH v2 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-04-04 Thread Mario Six
Quoting York Sun <york@nxp.com>: On 04/01/2016 01:13 AM, Mario Six wrote: To enable DM on MPC85xx, we need pre-relocation malloc, which is implemented in this patch. We also make sure that the IVORs are always 4-aligned on e500 to prevent alignment exceptions caused by code c

Re: [U-Boot] [PATCH v1] tpm: Fix uclass_first_device error handling

2016-04-05 Thread Mario Six
Hi Simon, Quoting Simon Glass <s...@chromium.org>: Hi Mario, On 30 March 2016 at 02:22, Mario Six <mario@gdsys.cc> wrote: uclass_first_device might return NULL for the device despite a zero return code. Currently, this might lead to null pointer dereferencing, since the ret

Re: [U-Boot] [PATCH v2 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-04-05 Thread Mario Six
Quoting York Sun <york@nxp.com>: On 04/04/2016 03:01 AM, Mario Six wrote: Quoting York Sun <york@nxp.com>: On 04/01/2016 01:13 AM, Mario Six wrote: To enable DM on MPC85xx, we need pre-relocation malloc, which is implemented in this patch. We also make sure th

[U-Boot] [PATCH v1] tpm: Fix uclass_first_device error handling

2016-03-30 Thread Mario Six
if it is. Signed-off-by: Mario Six <mario@gdsys.cc> --- lib/tpm.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/tpm.c b/lib/tpm.c index f428d45..42aea0a 100644 --- a/lib/tpm.c +++ b/lib/tpm.c @@ -245,6 +245,8 @@ static uint32_t tpm_sendrecv_command(const void *c

Re: [U-Boot] [RFC v1 PATCH 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-04-01 Thread Mario Six
Quoting York Sun <york@nxp.com>: On 03/30/2016 11:29 PM, Mario Six wrote: Quoting York Sun <york@nxp.com>: On 03/29/2016 11:53 PM, Mario Six wrote: To enable DM on MPC85xx, we need pre-relocation malloc, which is implemented in this patch. Signed-off-by: Mari

[U-Boot] [PATCH v2 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-04-01 Thread Mario Six
To enable DM on MPC85xx, we need pre-relocation malloc, which is implemented in this patch. We also make sure that the IVORs are always 4-aligned on e500 to prevent alignment exceptions caused by code changes in start.S. Signed-off-by: Mario Six <mario@gdsys.cc> Cc: York Sun

[U-Boot] [RFC v1 PATCH 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-03-30 Thread Mario Six
To enable DM on MPC85xx, we need pre-relocation malloc, which is implemented in this patch. Signed-off-by: Mario Six <mario@gdsys.cc> Cc: York Sun <york@nxp.com> Cc: Simon Glass <s...@chromium.org> --- arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 8 arch/p

[U-Boot] [PATCH 3/3] dm: gpio: Implement open drain for MPC85XX GPIO

2016-04-26 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/gpio/mpc85xx_gpio.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/gpio/mpc85xx_gpio.c b/drivers/gpio/mpc85xx_gpio.c index 2289eb7..6e920e6 100644 --- a/drivers/gpio/mpc85xx_

[U-Boot] [PATCH 1/3] dm: gpio: Add driver for MPC85XX GPIO controller

2016-04-26 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- arch/powerpc/include/asm/arch-mpc85xx/gpio.h | 2 + arch/powerpc/include/asm/immap_85xx.h| 2 + drivers/gpio/Kconfig | 6 + drivers/gpio/Makefile| 1 + drivers/gpio/mpc85xx_

[U-Boot] [PATCH 0/3] dm: gpio: Add driver for MPC85xx GPIO controller

2016-04-26 Thread Mario Six
ble driver, and also introduces a set of functions into the GPIO uclass that expose the controller's capability to switch individual GPIOs into open-drain-mode. Mario Six (3): dm: gpio: Add driver for MPC85XX GPIO controller dm: gpio: Add methods for open drain setting dm: gpio: Implement open drain f

[U-Boot] [PATCH 2/3] dm: gpio: Add methods for open drain setting

2016-04-26 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/gpio/gpio-uclass.c | 30 ++ include/asm-generic/gpio.h | 29 + 2 files changed, 59 insertions(+) diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index b

[U-Boot] [PATCH 9/9] dm: fsl_i2c: Enable DM for FSL I2C

2016-04-25 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- arch/powerpc/include/asm/fsl_i2c.h | 10 drivers/i2c/Kconfig| 7 +++ drivers/i2c/fsl_i2c.c | 103 + 3 files changed, 120 insertions(+) diff --git a/arch/powerpc/inclu

[U-Boot] [PATCH 7/9] dm: fsl_i2c: Prepare compatibility functions

2016-04-25 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/i2c/fsl_i2c.c | 47 +++ 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index b838afd..06f1db4 100644 --- a/drivers/i2c/fsl

[U-Boot] [PATCH 5/9] dm: fsl_i2c: Rename probe method

2016-04-25 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/i2c/fsl_i2c.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index 4bc1dda..3a38713 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl_i2c.c @@

[U-Boot] [PATCH 6/9] dm: fsl_i2c: Rename methods for reading/writing data

2016-04-25 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/i2c/fsl_i2c.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index 3a38713..b838afd 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl

[U-Boot] [PATCH] dm: gpio: pca953x: Support PCA953X with 40 GPIOs

2016-04-25 Thread Mario Six
A DM driver for PCA953x was recently introduced by Peng Fan, which lacked support for the 40 GPIO versions. This patch adds support for these chips. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/gpio/pca953x_gpio.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-)

[U-Boot] [PATCH 2/9] dm: fsl_i2c: Use clearer parameter names

2016-04-25 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/i2c/fsl_i2c.c | 63 ++- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index 70c7cba..b0e65fc 100644 --- a/drivers/i2c/fsl

[U-Boot] [PATCH 4/9] dm: fsl_i2c: Remove unnecessary variable

2016-04-25 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/i2c/fsl_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index 18b8848..4bc1dda 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl_i2c.c @@ -423,7

[U-Boot] [PATCH 0/9] dm: fsl_i2c: Make FSL I2C driver compatible with DM

2016-04-25 Thread Mario Six
This patch series implements DM for the Freescale I2C driver (as used on MPC8XXX processors) and does some minor refactoring of some functions. Mario Six (9): dm: fsl_i2c: Rename I2C register structure dm: fsl_i2c: Use clearer parameter names dm: fsl_i2c: Reword and clarify comment dm

[U-Boot] [PATCH 8/9] dm: fsl_i2c: Factor out adap parameter

2016-04-25 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/i2c/fsl_i2c.c | 116 +- 1 file changed, 49 insertions(+), 67 deletions(-) diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index 06f1db4..7d99f48 100644 --- a/drivers/i2c/fsl

[U-Boot] [PATCH 3/9] dm: fsl_i2c: Reword and clarify comment

2016-04-25 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/i2c/fsl_i2c.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index b0e65fc..18b8848 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl

[U-Boot] [PATCH 1/9] dm: fsl_i2c: Rename I2C register structure

2016-04-25 Thread Mario Six
Signed-off-by: Mario Six <mario@gdsys.cc> --- arch/m68k/include/asm/fsl_i2c.h | 2 +- arch/powerpc/include/asm/fsl_i2c.h| 2 +- arch/powerpc/include/asm/immap_85xx.h | 4 +- arch/powerpc/include/asm/immap_86xx.h | 4 +- board/keymile/km83xx/km83xx_i2c.c

Re: [U-Boot] [PATCH v2 3/3] dm: gpio: Implement open drain for MPC85XX GPIO

2016-05-19 Thread Mario Six
On Thu, May 19, 2016 at 5:59 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 10 May 2016 at 01:51, Mario Six <mario@gdsys.cc> wrote: >> This patch implements the open-drain setting feature for the MPC85XX >> GPIO controller. >> >>

[U-Boot] [PATCH v4 1/4] dm: gpio: Add driver for MPC85XX GPIO controller

2016-05-23 Thread Mario Six
g. the 32/32/23 banks of the P1022 SoC). The usual functions of GPIO drivers (setting input/output mode and output value setting) are supported. The driver has been tested on MPC85XX, but it is likely that other PowerQUICC III devices will work as well. Signed-off-by: Mario Six <mario@gd

[U-Boot] [PATCH v4 2/4] dm: gpio: Add methods for open drain setting

2016-05-23 Thread Mario Six
in (for a MOSFET) of a transistor, respectively. The pin then either forms an open circuit or a connection to ground, depending on the state of the transistor. This patch adds functions to the GPIO uclass to switch GPIOs to open-drain mode on devices that support it. Signed-off-by: Mario Six <mario...

[U-Boot] [PATCH v4 0/4] dm: gpio: Add driver for MPC85xx GPIO controller

2016-05-23 Thread Mario Six
Tjernlund). Furthermore, v4 adds tests for the open drain setting feature and extends the sandbox GPIO driver accordingly. Mario Six (4): dm: gpio: Add driver for MPC85XX GPIO controller dm: gpio: Add methods for open drain setting dm: gpio: Implement open drain for MPC85XX GPIO dm: test: Add

[U-Boot] [PATCH v4 4/4] dm: test: Add GPIO open drain tests

2016-05-23 Thread Mario Six
Add some tests for the new open drain setting feature of the GPIO uclass, and extend the capabilities of the sandbox GPIO driver accordingly. Signed-off-by: Mario Six <mario@gdsys.cc> --- v4: Patch added --- drivers/gpio/sandbox.c | 35 +++ test/dm/

[U-Boot] [PATCH v4 3/4] dm: gpio: Implement open drain for MPC85XX GPIO

2016-05-23 Thread Mario Six
From: "mario@gdsys.cc" <mario@gdsys.cc> This patch implements the open-drain setting feature for the MPC85XX GPIO controller. Signed-off-by: Mario Six <mario@gdsys.cc> --- v4: - Added forgotten mpc85xx_gpio_{get,set}_open_drain functions v3: - Added comment

[U-Boot] [PATCH] i2c: fsl: Fix driver initialization

2016-05-23 Thread Mario Six
that it will work in a more general setting. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/i2c/fsl_i2c.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index b8cc647..407c4a7 100644 --- a/drivers/i2c/fsl_i2c.c

[U-Boot] [PATCH] gpio: pca953x: Fix register reading past 8th GPIO

2016-05-23 Thread Mario Six
A bug in the pca953x driver prevents correct reading of GPIO input values beyond the 8th GPIO; all values are reported as zero. Setting of GPIO output values is not affected. This patch fixes the reading behavior. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/gpio/pca953x_gpio

Re: [U-Boot] [PATCH v4 4/4] dm: test: Add GPIO open drain tests

2016-05-24 Thread Mario Six
Hi Simon, On Mon, May 23, 2016 at 5:42 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 23 May 2016 at 01:08, Mario Six <mario@gdsys.cc> wrote: >> Add some tests for the new open drain setting feature of the GPIO >> uclass, and extend the capabi

Re: [U-Boot] GPIO driver for Freescale QorIQ T2080

2016-05-11 Thread Mario Six
On Tue, May 10, 2016 at 1:22 AM, Hamish Martin < hamish.mar...@alliedtelesis.co.nz> wrote: > Hi, > > I'm looking for uboot driver support for the Freescale QorIQ T2080 CPU. > This has 4 blocks of GPIOs similar to the single block defined in > arch/powerpc/include/asm/mpc85xx_gpio.h. > > If

Re: [U-Boot] GPIO driver for Freescale QorIQ T2080

2016-05-12 Thread Mario Six
On Wed, May 11, 2016 at 3:21 PM, Joakim Tjernlund < joakim.tjernl...@infinera.com> wrote: > On Wed, 2016-05-11 at 11:54 +0200, Mario Six wrote: > > On Tue, May 10, 2016 at 1:22 AM, Hamish Martin < > > hamish.mar...@alliedtelesis.co.nz> wrote: > > > > > &

[U-Boot] [PATCH v3 2/3] dm: gpio: Add methods for open drain setting

2016-05-13 Thread Mario Six
in (for a MOSFET) of a transistor, respectively. The pin then either forms an open circuit or a connection to ground, depending on the state of the transistor. This patch adds functions to the GPIO uclass to switch GPIOs to open-drain mode on devices that support it. Signed-off-by: Mario Six <mario...

[U-Boot] [PATCH v3 3/3] dm: gpio: Implement open drain for MPC85XX GPIO

2016-05-13 Thread Mario Six
From: "mario@gdsys.cc" <mario@gdsys.cc> This patch implements the open-drain setting feature for the MPC85XX GPIO controller. Signed-off-by: Mario Six <mario@gdsys.cc> --- v3: - Added comments v2: - Added missing commit message - Fixed white space issu

[U-Boot] [PATCH v3 1/3] dm: gpio: Add driver for MPC85XX GPIO controller

2016-05-13 Thread Mario Six
g. the 32/32/23 banks of the P1022 SoC). The usual functions of GPIO drivers (setting input/output mode and output value setting) are supported. The driver has been tested on MPC85XX, but it is likely that other PowerQUICC III devices will work as well. Signed-off-by: Mario Six <mario@gdsys.

[U-Boot] [PATCH v3 0/3] dm: gpio: Add driver for MPC85xx GPIO controller

2016-05-13 Thread Mario Six
The functions for accessing GPIOs on MPC85xx are hardcoded in arch/powerpc/include/asm/mpc85xx_gpio.h This leads to problems if another GPIO controller supporting the driver model is to be used simultaneously. Therefore, this patch moves the "static" functions into a DM-compatible driver, and

Re: [U-Boot] when stuff in a "common/" directory has no value?

2016-05-15 Thread Mario Six
On Sat, May 14, 2016 at 8:22 PM, Robert P. J. Day wrote: > > i know i asked something similar to this a while back, but a > followup question ... > > i'm aware of the value of a vendor's "common/" directory where, > under "board//", one can establish a common directory

Re: [U-Boot] [PATCH v3 0/3] dm: gpio: Add driver for MPC85xx GPIO controller

2016-05-15 Thread Mario Six
On Fri, May 13, 2016 at 1:50 PM, Joakim Tjernlund <joakim.tjernl...@infinera.com> wrote: > On Fri, 2016-05-13 at 13:15 +0200, Mario Six wrote: >> The functions for accessing GPIOs on MPC85xx are hardcoded in >> arch/powerpc/include/asm/mpc85xx_gpio.h This leads to problem

Re: [U-Boot] [PATCH v2 1/3] dm: gpio: Add driver for MPC85XX GPIO controller

2016-05-10 Thread Mario Six
On Tue, May 10, 2016 at 3:26 PM, Timur Tabi <ti...@tabi.org> wrote: > Mario Six wrote: > >> On Tue, May 10, 2016 at 2:30 PM, Timur Tabi <ti...@tabi.org >> <mailto:ti...@tabi.org>> wrote: >> >> Mario Six wrote: >> >> +

Re: [U-Boot] [PATCH v2 1/3] dm: gpio: Add driver for MPC85XX GPIO controller

2016-05-10 Thread Mario Six
On Tue, May 10, 2016 at 2:30 PM, Timur Tabi <ti...@tabi.org> wrote: > Mario Six wrote: > >> + addr = fdtdec_get_addr_size_auto_noparent(gd->fdt_blob, >> dev->of_offset, >> + "reg", 0, );

[U-Boot] [PATCH v2 1/3] dm: gpio: Add driver for MPC85XX GPIO controller

2016-05-10 Thread Mario Six
drivers (setting input/output mode and output value setting) are supported. The driver has been tested on MPC85XX, but it is likely that other PowerQUICC III devices will work as well. Signed-off-by: Mario Six <mario@gdsys.cc> --- v2: - Added missing commit message - Improved the

[U-Boot] [PATCH v2 2/3] dm: gpio: Add methods for open drain setting

2016-05-10 Thread Mario Six
an open circuit or a connection to ground, depending on the state of the transistor. This patch adds functions to the GPIO uclass to switch GPIOs to open-drain mode on devices that support it. Signed-off-by: Mario Six <mario@gdsys.cc> --- v2: - Added missing commit message - Fixed

[U-Boot] [PATCH v2 0/3] dm: gpio: Add driver for MPC85xx GPIO controller

2016-05-10 Thread Mario Six
ble driver, and also introduces a set of functions into the GPIO uclass that expose the controller's capability to switch individual GPIOs into open-drain-mode. Mario Six (3): dm: gpio: Add driver for MPC85XX GPIO controller dm: gpio: Add methods for open drain setting dm: gpio: Implement open drain f

[U-Boot] [PATCH v2 3/3] dm: gpio: Implement open drain for MPC85XX GPIO

2016-05-10 Thread Mario Six
This patch implements the open-drain setting feature for the MPC85XX GPIO controller. Signed-off-by: Mario Six <mario@gdsys.cc> --- v3: - Added missing commit message - Fixed white space issues in function headers --- drivers/gpio/Kconfig| 6 +++--- drivers/gpio/mpc85xx_

Re: [U-Boot] [PATCH 1/3] dm: gpio: Add driver for MPC85XX GPIO controller

2016-05-10 Thread Mario Six
On Sun, May 8, 2016 at 3:28 PM, Timur Tabi <ti...@tabi.org> wrote: > On Mon, May 2, 2016 at 6:43 AM, Mario Six <mario@gdsys.cc> wrote: > > Regarding the address width discrepancy: The system I'm working on is a > > P1022 Qoriq, which has 36 bit width, which imp

Re: [U-Boot] [PATCH 1/3] dm: gpio: Add driver for MPC85XX GPIO controller

2016-05-02 Thread Mario Six
Hi Simon, On Sun, May 1, 2016 at 7:46 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 26 April 2016 at 08:08, Mario Six <mario@gdsys.cc> wrote: > > > > Signed-off-by: Mario Six <mario@gdsys.cc> > > --- > > arch/powerp

[U-Boot] [RFC PATCH] i2c/eeprom: Always define I2C_RXTX_LEN

2016-04-20 Thread Mario Six
From: Mario Six <s...@gdsys.de> I2C_RXTX_LEN from include/i2c.h is not defined if CONFIG_DM_I2C is enabled. This leads to a compilation error on boards that enable both CONFIG_CMD_EEPROM and CONFIG_DM_I2C. To avoid this, we define I2C_RXTX_LEN in cmd/eeprom.c if it is not already d

[U-Boot] [PATCH v5 4/4] dm: test: Add GPIO open drain tests

2016-05-25 Thread Mario Six
Add some tests for the new open drain setting feature of the GPIO uclass, and extend the capabilities of the sandbox GPIO driver accordingly. Signed-off-by: Mario Six <mario@gdsys.cc> --- v5: - Use 'sandbox_gpio_*' functions in tests - Add 'sandbox_gpio_{get,set}_open_drain' prot

[U-Boot] [PATCH v5 3/4] dm: gpio: Implement open drain for MPC85XX GPIO

2016-05-25 Thread Mario Six
From: "mario@gdsys.cc" <mario@gdsys.cc> This patch implements the open-drain setting feature for the MPC85XX GPIO controller. Signed-off-by: Mario Six <mario@gdsys.cc> --- v5: None v4: - Added forgotten mpc85xx_gpio_{get,set}_open_drain functions v3: - Added

[U-Boot] [PATCH] sandbox: gpio: doc: Fix parameter documentation

2016-05-25 Thread Mario Six
The documentation of parameters in arch/sandbox/include/asm/gpio.h is either missing or faulty. This patch corrects the documentation. Signed-off-by: Mario Six <mario@gdsys.cc> --- arch/sandbox/include/asm/gpio.h | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-)

[U-Boot] [PATCH v5 2/4] dm: gpio: Add methods for open drain setting

2016-05-25 Thread Mario Six
in (for a MOSFET) of a transistor, respectively. The pin then either forms an open circuit or a connection to ground, depending on the state of the transistor. This patch adds functions to the GPIO uclass to switch GPIOs to open-drain mode on devices that support it. Signed-off-by: Mario Six <mario

[U-Boot] [PATCH v5 0/4] dm: gpio: Add driver for MPC85xx GPIO controller

2016-05-25 Thread Mario Six
Tjernlund). Furthermore, v4 adds tests for the open drain setting feature and extends the sandbox GPIO driver accordingly. Mario Six (4): dm: gpio: Add driver for MPC85XX GPIO controller dm: gpio: Add methods for open drain setting dm: gpio: Implement open drain for MPC85XX GPIO dm: test: Add

[U-Boot] [PATCH v2 1/2] tools: Fix return code of fit_image_process_sig()

2016-07-22 Thread Mario Six
17417.html Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes in v2: - Added an additional NULL check, as suggested by Simon Glass - Re-formatted the comment block --- tools/image-host.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tool

[U-Boot] [PATCH v2 2/2] rsa: Fix return value and masked error

2016-07-22 Thread Mario Six
dling in fit_image_process_hash()") and the corresponding error reported here: https://www.mail-archive.com/u-boot@lists.denx.de/msg217417.html Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes in v2: - Re-formatted the comment block --- lib/rsa/rsa-sign.c | 12 +++-

[U-Boot] [PATCH v2 0/2] Fix signing problems with large keys

2016-07-22 Thread Mario Six
of the corresponding functions. This is probably related to 1152a05 ("tools: Correct error handling in fit_image_process_hash()") and the corresponding error reported here: https://www.mail-archive.com/u-boot@lists.denx.de/msg217417.html Mario Six (2): tools: Fix r

Re: [U-Boot] [PATCH 1/2] tools: Fix return code of fit_image_process_sig()

2016-07-22 Thread Mario Six
Hi Simon, On Fri, Jul 22, 2016 at 5:21 AM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 19 July 2016 at 03:07, Mario Six <mario@gdsys.cc> wrote: >> When signing images, we repeatedly call fit_add_file_data() with >> successively increasin

Re: [U-Boot] [PATCH 10/13] i2c: mvtwsi: Add compatibility to DM

2016-07-21 Thread Mario Six
Hi Stefan, On Thu, Jul 21, 2016 at 9:05 AM, Stefan Roese <s...@denx.de> wrote: > Hi Mario, > > first, thanks for this very nice patch series. Really appreciated. > One comment below... > > > On 18.07.2016 10:27, Mario Six wrote: >> >> This patch adds th

[U-Boot] [PATCH v2 00/13] i2c: mvtwsi: DM conversion and improvements

2016-07-21 Thread Mario Six
This patch series converts the MVTWSI I2C driver to DM, fixes style violations, improves and cleans up the code, and adds lots of documentation. Mario Six (13): i2c: mvtwsi: Fix style violations i2c: mvtwsi: Streamline code and add documentation i2c: mvtwsi: Improve and fix comments i2c

[U-Boot] [PATCH v2 01/13] i2c: mvtwsi: Fix style violations

2016-07-21 Thread Mario Six
This patch fixes seven style violations: Six superfluous spaces after casts, and one logical continuation violation. Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roese <s...@denx.de> --- Changes for v2: None --- drivers/i2c/mvtwsi.c | 16 1 fil

[U-Boot] [PATCH v2 06/13] i2c: mvtwsi: Use 'uint' instead of 'unsigned int'

2016-07-21 Thread Mario Six
Since some additional parameters will be added in the course of this patch series (especially with the addition of DM support), we replace the longer "unsigned int" declarations with "uint" declarations to keep the parameter lists more readable. Signed-off-by: Mario Six

[U-Boot] [PATCH v2 11/13] i2c: mvtwsi: Handle zero-length offsets properly

2016-07-21 Thread Mario Six
the first START only if any address bytes need to be sent, and keep track of the expected start status accordingly. Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roese <s...@denx.de> --- Changes for v2: None --- drivers/i2c/mvtwsi.c | 21 + 1 file

[U-Boot] [PATCH v2 02/13] i2c: mvtwsi: Streamline code and add documentation

2016-07-21 Thread Mario Six
Convert groups of logically connected preprocessor defines into proper enums, one macro into an inline function, and add documentation to/extend existing documentation of these items. Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roese <s...@denx.de> --- Changes

[U-Boot] [PATCH v2 08/13] i2c: mvtwsi: Factor out adap parameter

2016-07-21 Thread Mario Six
To be able to use the compatibility layer from the DM functions, we factor the adap parameter out of all functions, and pass the actual register base instead. Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roese <s...@denx.de> --- Changes for v2: None ---

[U-Boot] [PATCH v2 10/13] i2c: mvtwsi: Add compatibility to DM

2016-07-21 Thread Mario Six
quency = <10>; u-boot,i2c-slave-addr = <0x0>; }; Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roese <s...@denx.de> --- Changes for v2: - Correct register base assignment to using dev_get_addr_ptr, as pointed out by Stefan Roese. --- driv

[U-Boot] [PATCH v2 12/13] i2c: mvtwsi: Make delay times frequency-dependent

2016-07-21 Thread Mario Six
fault 10ms delays for the legacy functions. In DM mode, we make the delay time dependant on the frequency to allow taking full advantage of faster modes of operation (tested with up to 1MHZ frequency on Armada MV88F6820). Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roe

[U-Boot] [PATCH v2 07/13] i2c: mvtwsi: Add compatibility functions

2016-07-21 Thread Mario Six
To prepare for the DM conversion, we add a layer of compatibility functions to be used by both the legacy and the DM functions. Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roese <s...@denx.de> --- Changes for v2: None --- drivers/i2c/m

[U-Boot] [PATCH v2 05/13] i2c: mvtwsi: Get rid of status parameter

2016-07-21 Thread Mario Six
tatus" variable and returning either the status before the twsi_stop call (kept in the "status" variable), or the status from the twsi_stop call, depending on which indicates an error. Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roese <s...@denx.de> -

[U-Boot] [PATCH v2 13/13] i2c: mvtwsi: Add documentation

2016-07-21 Thread Mario Six
Add full documentation to all driver functions. Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roese <s...@denx.de> --- Changes for v2: None --- drivers/i2c/mvtwsi.c | 163 +-- 1 file changed, 144 insertions(+),

[U-Boot] [PATCH v2 03/13] i2c: mvtwsi: Improve and fix comments

2016-07-21 Thread Mario Six
This patch fixes only comments/documentation: Streamline capitalization and improve grammar/punctuation. Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roese <s...@denx.de> --- Changes for v2: None --- drivers/i2c/mv

[U-Boot] [PATCH v2 04/13] i2c: mvtwsi: Eliminate flags parameter

2016-07-21 Thread Mario Six
which control flags are actually set at which point in time. Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roese <s...@denx.de> --- Changes for v2: None --- drivers/i2c/mvtwsi.c | 83 ++-- 1 file changed, 41 insertions

[U-Boot] [PATCH v2 09/13] i2c: mvtwsi: Make address length variable

2016-07-21 Thread Mario Six
to the legacy functions into a four-byte-array on the fly. Signed-off-by: Mario Six <mario@gdsys.cc> Reviewed-by: Stefan Roese <s...@denx.de> --- Changes for v2: None --- drivers/i2c/mvtwsi.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-)

Re: [U-Boot] [PATCH] common: fit: Allow U-Boot images to be booted

2016-07-19 Thread Mario Six
On Tue, Jul 19, 2016 at 7:46 AM, Michal Simek <michal.si...@xilinx.com> wrote: > On 18.7.2016 14:05, Mario Six wrote: >> In certain circumstances it comes in handy to be able to boot into a second >> U-Boot. But as of now it is not possible to boot a U-Boot binary that is >

Re: [U-Boot] [PATCH] common: fit: Allow U-Boot images to be booted

2016-07-19 Thread Mario Six
Hi Wolfgang, On Tue, Jul 19, 2016 at 9:14 AM, Wolfgang Denk wrote: > Dear Mario, > > In message > you > wrote: >> >> It is, but the problem is that adding a new type, like "ubootimage," or >> something like

Re: [U-Boot] [PATCH] common: fit: Allow U-Boot images to be booted

2016-07-19 Thread Mario Six
On Tue, Jul 19, 2016 at 8:47 AM, Michal Simek <michal.si...@xilinx.com> wrote: > On 19.7.2016 08:45, Mario Six wrote: >> On Tue, Jul 19, 2016 at 7:46 AM, Michal Simek <michal.si...@xilinx.com> >> wrote: >>> On 18.7.2016 14:05, Mario Six wrote: >>>

[U-Boot] [PATCH 1/2] tools: Fix return code of fit_image_process_sig()

2016-07-19 Thread Mario Six
17417.html Signed-off-by: Mario Six <mario@gdsys.cc> --- tools/image-host.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/image-host.c b/tools/image-host.c index 3e14fdc..399ec94 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@

[U-Boot] [PATCH 0/2] Fix signing problems with large keys

2016-07-19 Thread Mario Six
of the corresponding functions. This is probably related to 1152a05 ("tools: Correct error handling in fit_image_process_hash()") and the corresponding error reported here: https://www.mail-archive.com/u-boot@lists.denx.de/msg217417.html Mario Six (2): tools: Fix r

[U-Boot] [PATCH 2/2] rsa: Fix return value and masked error

2016-07-19 Thread Mario Six
dling in fit_image_process_hash()") and the corresponding error reported here: https://www.mail-archive.com/u-boot@lists.denx.de/msg217417.html Signed-off-by: Mario Six <mario@gdsys.cc> --- lib/rsa/rsa-sign.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff

[U-Boot] [PATCH] cmd: misc: Add support for fractions in sleep

2016-07-19 Thread Mario Six
simple_strtoul and multiplying it with 1000, we search for the first dot, convert the three characters after that into a number (if they are not numbers, we ignore the fractional part and just use the delay we got from simple_strtoul), and add this number to the delay. Signed-off-by: Mario Six <ma

Re: [U-Boot] [PATCH v2] common: fit: Allow U-Boot images to be booted

2016-07-20 Thread Mario Six
On Wed, Jul 20, 2016 at 3:56 PM, Robert P. J. Day <rpj...@crashcourse.ca> wrote: > On Wed, 20 Jul 2016, Mario Six wrote: > >> On Wed, Jul 20, 2016 at 2:59 PM, Robert P. J. Day <rpj...@crashcourse.ca> >> wrote: >> > On Wed, 20 Jul 2016, Mario Six wrote: >&

[U-Boot] [PATCH v2] common: fit: Allow U-Boot images to be booted

2016-07-20 Thread Mario Six
0x90>; signature@1 { algo = "sha256,rsa4096"; key-name-hint = "key"; }; }; }; Signed-off-by: Mario Six <mario@gdsys.cc> --- Changes in v2: - Use images of type 'firmware' for U

Re: [U-Boot] [PATCH v2] common: fit: Allow U-Boot images to be booted

2016-07-20 Thread Mario Six
On Wed, Jul 20, 2016 at 2:59 PM, Robert P. J. Day <rpj...@crashcourse.ca> wrote: > On Wed, 20 Jul 2016, Mario Six wrote: > >> In certain circumstances it comes in handy to be able to boot into a second >> U-Boot. But as of now it is not possible to boot a U-Boot binary tha

[U-Boot] [PATCH 00/13] i2c: mvtwsi: DM conversion and improvements

2016-07-18 Thread Mario Six
This patch series converts the MVTWSI I2C driver to DM, fixes style violations, improves and cleans up the code, and adds lots of documentation. Mario Six (13): i2c: mvtwsi: Fix style violations i2c: mvtwsi: Streamline code and add documentation i2c: mvtwsi: Improve and fix comments i2c

[U-Boot] [PATCH 04/13] i2c: mvtwsi: Eliminate flags parameter

2016-07-18 Thread Mario Six
which control flags are actually set at which point in time. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/i2c/mvtwsi.c | 83 ++-- 1 file changed, 41 insertions(+), 42 deletions(-) diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtws

[U-Boot] [PATCH 11/13] i2c: mvtwsi: Handle zero-length offsets properly

2016-07-18 Thread Mario Six
the first START only if any address bytes need to be sent, and keep track of the expected start status accordingly. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/i2c/mvtwsi.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/mvtw

[U-Boot] [PATCH 05/13] i2c: mvtwsi: Get rid of status parameter

2016-07-18 Thread Mario Six
tatus" variable and returning either the status before the twsi_stop call (kept in the "status" variable), or the status from the twsi_stop call, depending on which indicates an error. Signed-off-by: Mario Six <mario@gdsys.cc> --- drivers/i2c/mvtwsi.c | 26 ++

  1   2   3   4   5   6   7   8   9   10   >