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
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.
; };
>
> 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_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
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.
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
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
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
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
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
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
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
---
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
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
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
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
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
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
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
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
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
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_
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_
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
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
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
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
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
@@
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
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(-)
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
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
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
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
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
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
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.
>>
>>
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
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...
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
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/
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
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
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
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
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
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:
> >
> > >
&
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...
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
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.
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
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
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
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:
>>
>> +
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, );
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
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
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
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_
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
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
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
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
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
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(-)
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
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
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
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 +++-
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
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
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
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
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
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
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
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
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
---
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
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
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
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>
-
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(+),
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
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
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(-)
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
>
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
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:
>>>
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
@@
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
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
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
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:
>&
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
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
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
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
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
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 - 100 of 1185 matches
Mail list logo