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

2016-05-30 Thread Mario Six
{ > { "gpio_mpc85xx", &gpio_blocks[0] }, > { "gpio_mpc85xx", &gpio_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 driver > without dts support and t

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

2016-05-30 Thread Mario Six
{ > { "gpio_mpc85xx", &gpio_blocks[0] }, > { "gpio_mpc85xx", &gpio_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 driver > without dts support and t

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

Re: [U-Boot] [PATCH] image-fit: switch ENOLINK to ENOENT

2016-09-15 Thread Mario Six
Hi Stefan, I also see the same error on our Armada board. It stems from the fact that boot_get_ramdisk in common/image.c treats a ENOLINK different from all other errors (which the patch changed into a ENOENT). The following patch fixes the problem on our board: diff --git a/common/image.c b/comm

[U-Boot] [PATCH] image: Fix expected return value

2016-09-16 Thread Mario Six
m -ENOLINK to -ENOENT, so that the original behavior is restored. Reviewed-by: Jonathan Gray Signed-off-by: Mario Six --- common/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/image.c b/common/image.c index 7ad04ca..c8d9bc8 100644 --- a/common/image.c +

Re: [U-Boot] [PATCH] image-fit: switch ENOLINK to ENOENT

2016-09-16 Thread Mario Six
Hi Jonathan On Thu, Sep 15, 2016 at 11:27 PM, Jonathan Gray wrote: > > The callers of the proposed/rejected kwboot.c errno diff were all > checked but the test of the result in the caller of this one > seems to have been missed indeed. > > Sorry for missing this and > > Reviewed-by: Jonathan Gray

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

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 these error messages " ER

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 18, 2016 at 09:16:48AM +0100, mario@gds

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

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

2016-03-29 Thread Mario Six
To enable DM on MPC85xx, we need pre-relocation malloc, which is implemented in this patch. Signed-off-by: Mario Six Cc: York Sun Cc: Simon Glass --- arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 8 arch/powerpc/cpu/mpc85xx/start.S | 28 2 files

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

2016-03-30 Thread Mario Six
. Signed-off-by: Mario Six --- 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 *command, ret

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

2016-03-30 Thread Mario Six
Quoting York Sun : 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 Cc: York Sun Cc: Simon Glass --- arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 8 arch/powerpc/cpu

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

2016-04-01 Thread Mario Six
Quoting York Sun : On 03/30/2016 11:29 PM, Mario Six wrote: Quoting York Sun : 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 Cc: York Sun Cc: Simon Glass --- arch/powerpc

[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 Cc: York Sun Cc: Simon Glass --- v2

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

2016-04-04 Thread Mario Six
Quoting York Sun : 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 changes in start.S. Signed-off

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

2016-04-05 Thread Mario Six
Hi Simon, Quoting Simon Glass : Hi Mario, On 30 March 2016 at 02:22, Mario Six 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 returned device is not properly checked. Hence, always

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

2016-04-05 Thread Mario Six
Quoting York Sun : On 04/04/2016 03:01 AM, Mario Six wrote: Quoting York Sun : 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

[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

[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 Cc: York Sun Cc: Simon Glass --- v3: - Add

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

2016-04-06 Thread Mario Six
Quoting York Sun : 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 changes in start.S. Signed-off

[U-Boot] [PATCH 0/3] tpm: Add and fix commands

2017-03-20 Thread Mario Six
This series fixes the tpm flush command, which is currently broken, adds a command to list resources, and a command to load TPM keys via their parent's SHA1 hash. Mario Six (3): tpm: Add function to load keys via their parent's SHA1 hash cmd: tpm: Fix flush command lib: tpm: Add

[U-Boot] [PATCH 2/3] cmd: tpm: Fix flush command

2017-03-20 Thread Mario Six
Commit 7690be35de ("lib: tpm: Add command to flush resources") added a command to flush resources from a TPM. However, a previous development version was accidentially used to generate the patch, resulting in a non-functional command. This patch fixes the flush command. Signed-off-by:

[U-Boot] [PATCH 1/3] tpm: Add function to load keys via their parent's SHA1 hash

2017-03-20 Thread Mario Six
different mechanism to identify the parent key. To solve this problem, we add a function that allows U-Boot to load a key into the TPM using their designated parent key's SHA1 hash, and the corresponding auth data. Signed-off-by: Mario Six --- cmd/tpm.c

[U-Boot] [PATCH 3/3] lib: tpm: Add command to list resources

2017-03-20 Thread Mario Six
It is sometimes convenient to know how many and/or which resources are currently loaded into a TPG, e.g. to test is a flush operation succeeded. Hence, we add a command that lists the resources of a given type currently loaded into the TPM. Signed-off-by: Mario Six --- cmd/tpm.c | 76

Re: [U-Boot] [PATCH 1/3] tpm: Add function to load keys via their parent's SHA1 hash

2017-03-22 Thread Mario Six
On Wed, Mar 22, 2017 at 2:05 PM, Simon Glass wrote: > On 20 March 2017 at 03:28, Mario Six wrote: >> If we want to load a key into a TPM, we need to know the designated parent >> key's handle, so that the TPM is able to insert the key at the correct place >&g

Re: [U-Boot] [PATCH 1/3] tpm: Add function to load keys via their parent's SHA1 hash

2017-03-22 Thread Mario Six
On Wed, Mar 22, 2017 at 2:27 PM, Simon Glass wrote: > Hi Mario, > > On 22 March 2017 at 07:20, Mario Six wrote: >> On Wed, Mar 22, 2017 at 2:05 PM, Simon Glass wrote: >>> On 20 March 2017 at 03:28, Mario Six wrote: >>>> If we want to load a key into a TPM, w

Re: [U-Boot] [PATCH 3/3 v3] controlcenterdc: Make secure boot available

2017-03-23 Thread Mario Six
On Thu, Mar 23, 2017 at 10:31 AM, Stefan Roese wrote: > Hi Mario, > > On 22.02.2017 16:07, Mario Six wrote: >> Make secure booting available for the controlcenterdc >> board. >> >> Signed-off-by: Reinhard Pfau >> Signed-off-by: Mario Six >> --

Re: [U-Boot] [PATCH 3/3 v3] controlcenterdc: Make secure boot available

2017-03-23 Thread Mario Six
On Thu, Mar 23, 2017 at 11:04 AM, Stefan Roese wrote: > On 23.03.2017 10:45, Mario Six wrote: >> >> On Thu, Mar 23, 2017 at 10:31 AM, Stefan Roese wrote: >>> >>> Hi Mario, >>> >>> On 22.02.2017 16:07, Mario Six wrote: >>>> >&g

Re: [U-Boot] [PATCH 3/3] lib: tpm: Add command to list resources

2017-03-24 Thread Mario Six
On Wed, Mar 22, 2017 at 2:05 PM, Simon Glass wrote: > On 20 March 2017 at 03:28, Mario Six wrote: >> It is sometimes convenient to know how many and/or which resources are >> currently loaded into a TPG, e.g. to test is a flush operation succeeded. >> >> Hence, we a

Re: [U-Boot] [PATCH v2 3/3] tools: kwbimage fix build with OpenSSL 1.1.x

2017-04-05 Thread Mario Six
Hi Jelle, On Tue, Apr 4, 2017 at 11:59 PM, Jelle van der Waa wrote: > @@ -22,6 +22,25 @@ > #include > #include > #include > + You also need #include here (in rsa-sign.c as well). > +#if OPENSSL_VERSION_NUMBER < 0x1010L || defined(LIBRESSL_VERSION_NUMBER) > +void RSA_get0_key(const

Re: [U-Boot] [PATCH v2 1/3] rsa: Fix build with OpenSSL 1.1.x

2017-04-05 Thread Mario Six
Hi Jelle, On Tue, Apr 4, 2017 at 11:59 PM, Jelle van der Waa wrote: > @@ -20,6 +20,19 @@ > #define HAVE_ERR_REMOVE_THREAD_STATE > #endif > > +#if OPENSSL_VERSION_NUMBER < 0x1010L || defined(LIBRESSL_VERSION_NUMBER) > +void RSA_get0_key(const RSA *r, > + const BIGNUM **n, con

[U-Boot] [PATCH] tools: kwbimage: Fix unchecked return value and fd leak

2017-02-13 Thread Mario Six
The return value of fstat was not checked in kwbimage, and in the case of an error, the already open file was not closed. Fix both errors. Reported-by: Coverity (CID: 155971) Reported-by: Coverity (CID: 155969) Signed-off-by: Mario Six --- tools/kwbimage.c | 13 +++-- 1 file changed, 11

Re: [U-Boot] db-88f6820-amc board fails to boot with latest u-boot master

2017-02-13 Thread Mario Six
On Tue, Feb 14, 2017 at 7:36 AM, Stefan Roese wrote: > Hi Chris, > > On 14.02.2017 02:48, Chris Packham wrote: >> >> I just tried UART booting db-88f6820-amc with the latest u-boot master >> and it fails to reach the normal u-boot prompt. I don't know if this >> affects the normal SPI booting. >>

Re: [U-Boot] db-88f6820-amc board fails to boot with latest u-boot master

2017-02-14 Thread Mario Six
On Tue, Feb 14, 2017 at 10:26 AM, Chris Packham wrote: > On Tue, Feb 14, 2017 at 7:56 PM, Mario Six wrote: >> On Tue, Feb 14, 2017 at 7:36 AM, Stefan Roese wrote: >>> Hi Chris, >>> >>> On 14.02.2017 02:48, Chris Packham wrote: >>>> >>>>

[U-Boot] [PATCH 0/3 v3] arm: mvebu: Add gdsys ControlCenter-Compact board

2017-02-22 Thread Mario Six
This patch series adds support for the Guntermann & Drunck ControlCenter-Compact board. Additionally, a board function for manipulating the device tree is added. Dirk Eibach (1): arm: mvebu: Add gdsys ControlCenter-Compact board Mario Six (2): dm: Add callback to modify the device

[U-Boot] [PATCH 1/3 v3] dm: Add callback to modify the device tree

2017-02-22 Thread Mario Six
ff-by: Mario Six --- Changes in v3: None Changes in v2: * Switched from usage of globally writeable global data pointer to a locally writeable pointer passed to board_fix_fdt * Added comments for board_fix_fdt in include/common.h * Added documentation for pre-relocation device tree manipul

[U-Boot] [PATCH 2/3 v3] arm: mvebu: Add gdsys ControlCenter-Compact board

2017-02-22 Thread Mario Six
host - Atmel TPM Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- Changes in v3: * Removed gpio_request_simple function * Removed dev_get_by_ofname function * Removed "plain" GPIOs from the device tree Changes in v2: * Renamed DTS and board name to include armada-38x * R

[U-Boot] [PATCH 3/3 v3] controlcenterdc: Make secure boot available

2017-02-22 Thread Mario Six
Make secure booting available for the controlcenterdc board. Signed-off-by: Reinhard Pfau Signed-off-by: Mario Six --- Changes in v3: * Added secure boot options to config to enable secure boot by default Changes in v2: * Moved definition and interpretation of SECURED_MODE_IMAGE and

[U-Boot] [PATCH 01/51] i2c: fsl_i2c: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the fsl_i2c I2C driver. Signed-off-by: Mario Six --- drivers/i2c/fsl_i2c.c | 109 +- 1 file changed, 55 insertions(+), 54 deletions(-) diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index ff3dc25927

[U-Boot] [PATCH 06/51] cmd: Add command for calculating binary operations

2017-07-14 Thread Mario Six
applications are manifold: Setting specific bits in registers using the regular read-OR-write pattern, masking out bits in bit values, implementation of simple OTP encryption using the XOR operation, etc. Signed-off-by: Mario Six --- cmd/Kconfig | 6 ++ cmd/Makefile | 1 + cmd/binop.c | 176

[U-Boot] [PATCH 05/51] net: phy: marvell 88e151x: Fix handling of bare RGMII interface type

2017-07-14 Thread Mario Six
h bits set. Hence, this patch changes the behavior in the PHY_INTERFACE_MODE_RGMII case so that both bits are set. Signed-off-by: Mario Six --- drivers/net/phy/marvell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index

[U-Boot] [PATCH 02/51] i2c: fsl_i2c: Remove inline declarations

2017-07-14 Thread Mario Six
Some functions in the fsl_i2c driver are declared as inline, even though they are quite large, which needlessly increases the size of the resulting binary. This patch removes the inline declarations. Signed-off-by: Mario Six --- drivers/i2c/fsl_i2c.c | 14 +++--- 1 file changed, 7

[U-Boot] [PATCH 03/51] gdsys: Post ppc4xx removal cleanup

2017-07-14 Thread Mario Six
s from the whitelist). Signed-off-by: Mario Six --- board/gdsys/common/Makefile | 4 -- board/gdsys/common/miiphybb.c | 128 -- include/gdsys_fpga.h | 96 --- scripts/config_whitelist.txt | 10 4 files ch

[U-Boot] [PATCH 04/51] net: phy: marvell: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the Marvell PHY driver. Signed-off-by: Mario Six --- drivers/net/phy/marvell.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index b7f300e40f

[U-Boot] [PATCH 15/51] gpio: mpc85xx_gpio: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the MPC85XX GPIO driver. Signed-off-by: Mario Six --- drivers/gpio/mpc85xx_gpio.c | 42 ++ 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/drivers/gpio/mpc85xx_gpio.c b/drivers/gpio/mpc85xx_gpio.c index

[U-Boot] [PATCH 00/51] gdsys: Add support for Gazerbeam board

2017-07-14 Thread Mario Six
: Reset CAT phy on CON2 module gdsys:phy: Adapt fixup_88e1518() to latest Release Notes mpc83xx: Add gazerbeam board Mario Six (45): i2c: fsl_i2c: Fix style violations i2c: fsl_i2c: Remove inline declarations gdsys: Post ppc4xx removal cleanup net: phy: marvell: Fix style violations net

[U-Boot] [PATCH 25/51] gdsys: Introduce GDSYS_LEGACY_DRIVERS

2017-07-14 Thread Mario Six
Future gdsys boards will switch from the legacy drivers in board/gdsys/common to DM-based drivers. Define a Kconfig option that disables the legacy drivers. Signed-off-by: Mario Six --- board/gdsys/common/adv7611.c | 4 board/gdsys/common/ch7301.c| 4 board/gdsys/common/dp501

[U-Boot] [PATCH 11/51] powerpc: mpc83xx: Implement get_serial_clock()

2017-07-14 Thread Mario Six
DM serial drivers on PowerPC determine their clock frequency via the get_serial_clock function. This function is not Implemented yet for MPC83xx. This patch Implements the function so that DM serial drivers work on MPC83xx. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/speed.c | 7

[U-Boot] [PATCH 17/51] cmd: mdio: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the MDIO command. Signed-off-by: Mario Six --- cmd/mdio.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/mdio.c b/cmd/mdio.c index 21dc103736..3f11963006 100644 --- a/cmd/mdio.c +++ b/cmd/mdio.c @@ -14,7 +14,6 @@ #include #include

[U-Boot] [PATCH 22/51] gdsys: mpc8308: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the gdsys MPC8308 board files, and make the code more readable. Signed-off-by: Mario Six --- board/gdsys/mpc8308/hrcon.c | 55 ++- board/gdsys/mpc8308/mpc8308.c | 12 +- board/gdsys/mpc8308/strider.c | 49

[U-Boot] [PATCH 07/51] phy: Allow forcing clause 45 access

2017-07-14 Thread Mario Six
From: Dirk Eibach get_phy_device_by_mask() assumes that a clause 45 phy does not respond to clause 22 requests. That is not true at least for Marvell 88X2242. So allow forcing clause 45 access to prevent reading bogus device ids. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six

[U-Boot] [PATCH 14/51] cfi_flash: Always define cfi_flash_num_flash_banks

2017-07-14 Thread Mario Six
by always defining the cfi_flash_num_flash_banks variable. Signed-off-by: Mario Six --- drivers/mtd/cfi_flash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 2445632580..4f9a88e2a3 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers

[U-Boot] [PATCH 28/51] i2c: ihs_i2c: Prepare DM conversion

2017-07-14 Thread Mario Six
Prepare the function interface of the ihs_i2c driver for DM conversion in a future patch. While we're at it, fix some style violations, and make the code more readable. Signed-off-by: Mario Six --- drivers/i2c/ihs_i2c.c | 74 +++ 1 file ch

[U-Boot] [PATCH 23/51] gdsys: mpc8308: Use shadow register for output GPIO values

2017-07-14 Thread Mario Six
Since gpio output status on MPC8xxx cannot be read back, it has to be buffered locally. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- board/gdsys/mpc8308/hrcon.c | 4 ++-- board/gdsys/mpc8308/mpc8308.c | 19 +++ board/gdsys/mpc8308/mpc8308.h | 3 +++ board/gdsys

[U-Boot] [PATCH 10/51] net:phy:marvell Add hook for m88e1510 board config

2017-07-14 Thread Mario Six
From: Dirk Eibach m88e1510_config() is highly board-specific. So add an optional callback board_m88e1510_config() configurable by CONFIG_BOARD_M88E1510_CONFIG to support different hardware. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- drivers/net/phy/marvell.c | 5 + include

[U-Boot] [PATCH 08/51] phy: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the generic PHY management code. Signed-off-by: Mario Six --- drivers/net/phy/phy.c | 83 +++ 1 file changed, 50 insertions(+), 33 deletions(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index

[U-Boot] [PATCH 09/51] phy: Support Marvell 88X2242

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

[U-Boot] [PATCH 32/51] drivers: Add ihs_fpga and gdsys_soc drivers

2017-07-14 Thread Mario Six
This patch adds DM drivers for IHS FPGAs and their associated busses, as well as uclasses for both. Signed-off-by: Mario Six --- drivers/misc/Kconfig | 6 + drivers/misc/Makefile| 1 + drivers/misc/gdsys_soc.c | 51 +++ drivers/misc/ihs_fpga.c | 871

[U-Boot] [PATCH 26/51] strider, hrcon: Reset CAT phy on CON2 module

2017-07-14 Thread Mario Six
From: Dirk Eibach The phy on the CON2 module needs a defined reset pulse of at least 10 ms to work reliably. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- board/gdsys/mpc8308/hrcon.c | 30 ++ board/gdsys/mpc8308/strider.c | 24

[U-Boot] [PATCH 27/51] gdsys:phy: Adapt fixup_88e1518() to latest Release Notes

2017-07-14 Thread Mario Six
From: Dirk Eibach The initialization sequence described in the latest Release Notes MV-S302033-00 for the Marvell 88E1518 phy omits two register writes. Use this new sequence for the setup of this phy. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- board/gdsys/common/phy.c | 2

[U-Boot] [PATCH 20/51] common: board_r: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the board_r file. Signed-off-by: Mario Six --- common/board_r.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index ecca1edb04..199cadbed1 100644 --- a/common/board_r.c +++ b

[U-Boot] [PATCH 18/51] cmd: mdio: Add 'driver' subcommand

2017-07-14 Thread Mario Six
commands to a phy: * getting the driver's name * running the phy's configuration procedure (via calling phy_config) * running the phy's startup procedure (via calling phy_startup) * running the phy's shutdown procedure (via calling phy_shutdown) Signed-off-by: Mario Six --

[U-Boot] [PATCH 31/51] gdsys: mpc8308: Add FPGA flavor option

2017-07-14 Thread Mario Six
More recent versions of IHS FPGAs feature a different memory layout. Add a Kconfig option to differentiate between the legacy layout, and the new layout (which is used on the upcoming "Gazerbeam" and later boards). Signed-off-by: Mario Six --- board/gdsys/mpc8308/Kconfig | 11

[U-Boot] [PATCH 38/51] gdsys: drivers: Add gdsys_rxaui_ctrl driver

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

[U-Boot] [PATCH 19/51] common: board_f: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the board_f file. Signed-off-by: Mario Six --- common/board_f.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index ffa84e3566..b258a1a73c 100644 --- a/common/board_f.c +++ b/common/board_f.c

[U-Boot] [PATCH 35/51] drivers: Add ICS8N3QV01 driver

2017-07-14 Thread Mario Six
Add a driver for the ICS8N3QV01 Quad-Frequency Programmable VCXO. Signed-off-by: Mario Six --- drivers/clk/Kconfig | 6 ++ drivers/clk/Makefile | 1 + drivers/clk/ics8n3qv01.c | 184 +++ 3 files changed, 191 insertions(+) create mode

[U-Boot] [PATCH 16/51] gpio: mpc85xx_gpio: Make compatible with MPC8XXX

2017-07-14 Thread Mario Six
gpio.h. Hence, this driver now also serves as a GPIO DM-driver for the MPC83XX platform. Signed-off-by: Mario Six --- arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 8 + arch/powerpc/include/asm/arch-mpc85xx/gpio.h | 2 +- drivers/gpio/Kconfig | 9 +- drivers/gpio

[U-Boot] [PATCH 36/51] drivers: Add ihs_axi driver

2017-07-14 Thread Mario Six
Add a driver for the IHS AXI bus on IHS FPGAs. Signed-off-by: Mario Six --- drivers/misc/Kconfig | 7 ++ drivers/misc/Makefile | 1 + drivers/misc/ihs_axi.c | 208 + include/dm/uclass-id.h | 1 + include/ihs_axi.h | 69

[U-Boot] [PATCH 41/51] cmd: Add ihs axi command

2017-07-14 Thread Mario Six
Add a command to debug the IHS AXI bus. Signed-off-by: Mario Six --- cmd/Kconfig | 5 ++ cmd/Makefile | 2 + cmd/ihs_axi.c | 257 ++ 3 files changed, 264 insertions(+) create mode 100644 cmd/ihs_axi.c diff --git a/cmd/Kconfig b

[U-Boot] [PATCH 13/51] cfi_flash: Clean up code some more

2017-07-14 Thread Mario Six
Fix some more style violations (mostly mis-indented case statements), and reduce the scope of some variables. Signed-off-by: Mario Six --- drivers/mtd/cfi_flash.c | 610 1 file changed, 305 insertions(+), 305 deletions(-) diff --git a/drivers

[U-Boot] [PATCH 44/51] gdsys: cmd_ioloop: Introduce commenting enum

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

[U-Boot] [PATCH 33/51] drivers: Add transmitter uclass

2017-07-14 Thread Mario Six
This patch adds a simple transmitter uclass meant for DVI or DisplayPort transmitters. The only driver functionality implemented are power_on and power_off methods for powering the transmitter device on and off, respectively. Signed-off-by: Mario Six --- arch/sandbox/dts/sandbox.dts

[U-Boot] [PATCH 21/51] common: Extend board-specific DT fixup

2017-07-14 Thread Mario Six
ly needed structures. This commit also adapts the controlcenterdc board's fixup function to the new scheme. Signed-off-by: Mario Six --- board/gdsys/a38x/controlcenterdc.c | 20 +- common/board_f.c | 6 +- common/board_r.c | 10 +++ doc/driver-mode

[U-Boot] [PATCH 40/51] cmd: Add ihs osd commands

2017-07-14 Thread Mario Six
Add command to query information from and write text to IHS OSDs. Signed-off-by: Mario Six --- cmd/Kconfig | 6 +++ cmd/Makefile | 1 + cmd/ihs_osd.c | 167 ++ 3 files changed, 174 insertions(+) create mode 100644 cmd/ihs_osd.c

[U-Boot] [PATCH 30/51] i2c: ihs_i2c: Factor out send_buffer method

2017-07-14 Thread Mario Six
Simplify the driver logic by extracting a common send_buffer method. Signed-off-by: Mario Six --- drivers/i2c/ihs_i2c.c | 50 ++ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c index

[U-Boot] [PATCH 24/51] gdsys: mpc8308: Move SYS_FPGA{0, 1}_{BASE, SIZE} to Kconfig

2017-07-14 Thread Mario Six
Move CONFIG_SYS_FPGA0_BASE, CONFIG_SYS_FPGA0_SIZE, CONFIG_SYS_FPGA1_BASE, and CONFIG_SYS_FPGA1_SIZE to Kconfig. Signed-off-by: Mario Six --- board/gdsys/mpc8308/Kconfig | 23 +++ include/configs/hrcon.h | 7 --- include/configs/strider.h| 7 --- scripts

[U-Boot] [PATCH 29/51] i2c: ihs_i2c: Make DM compatible

2017-07-14 Thread Mario Six
Make the ihs_i2c driver DM-compatible; for legacy boards, the old functions are retained within #ifdefs. No board uses the new DM driver yet; this patch only lays the foundation for future support. Signed-off-by: Mario Six --- drivers/i2c/Kconfig | 6 ++ drivers/i2c/ihs_i2c.c

[U-Boot] [PATCH 43/51] gdsys: cmd_ioloop: Fix style violations

2017-07-14 Thread Mario Six
Fix some style violations in the ioloop command, and make the code more readable where possible. Signed-off-by: Mario Six --- board/gdsys/common/cmd_ioloop.c | 78 - 1 file changed, 38 insertions(+), 40 deletions(-) diff --git a/board/gdsys/common

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

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

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

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

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

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

[U-Boot] [PATCH 37/51] drivers: Add ihs_video_out driver

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

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

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

[U-Boot] [PATCH 12/51] cfi_flash: Fix style violations

2017-07-14 Thread Mario Six
Fix style violations in the CFI flash driver. Signed-off-by: Mario Six --- drivers/mtd/cfi_flash.c | 889 1 file changed, 443 insertions(+), 446 deletions(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 048a51785e

[U-Boot] [PATCH 46/51] ihs_mdio: Add support to force clause45 access

2017-07-14 Thread Mario Six
Add support to ihs_mdio to force clause 45 access (in addition to clause 22 access). Signed-off-by: Mario Six --- board/gdsys/common/ihs_mdio.c | 26 +++--- board/gdsys/common/ihs_mdio.h | 1 + 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/board/gdsys

[U-Boot] [PATCH 34/51] transmitter: Add Xilinx LogiCore DP TX

2017-07-14 Thread Mario Six
Add a driver for the TX side of the Xilinx LogiCore DisplayPort IP core. Signed-off-by: Mario Six --- drivers/transmitter/Kconfig|6 + drivers/transmitter/Makefile |1 + drivers/transmitter/logicore_dp_dpcd.h | 342 + drivers/transmitter

[U-Boot] [PATCH 49/51] gazerbeam: Import Linux DT

2017-07-14 Thread Mario Six
Import the Linux device tree for the Gazerbeam board. Signed-off-by: Mario Six --- arch/powerpc/dts/gazerbeam.dts | 539 + arch/powerpc/dts/gdsys/gazerbeam-base.dtsi | 205 +++ arch/powerpc/dts/gdsys/mpc8308.dtsi| 243 + 3

[U-Boot] [PATCH 45/51] gdsys: cmd_ioloop: Make DM compatible

2017-07-14 Thread Mario Six
Make the ioloop command DM compatible, while keeping the old functionality for not-yet-converted boards. Signed-off-by: Mario Six --- board/gdsys/common/cmd_ioloop.c | 241 ++-- 1 file changed, 234 insertions(+), 7 deletions(-) diff --git a/board/gdsys

[U-Boot] [PATCH 48/51] ihs_mdio: Make DM-compatible

2017-07-14 Thread Mario Six
Make the ihs_mdio driver DM-compatible, while retaining the old functionality for not-yet-converted boards. Signed-off-by: Mario Six --- board/gdsys/common/ihs_mdio.c | 49 ++- board/gdsys/common/ihs_mdio.h | 5 + 2 files changed, 49 insertions

[U-Boot] [PATCH 42/51] cmd: Add ihs fpga command

2017-07-14 Thread Mario Six
Add a comman to debug the IHS FPGA's bus. Signed-off-by: Mario Six --- cmd/Kconfig| 5 ++ cmd/Makefile | 1 + cmd/ihs_fpga.c | 269 + 3 files changed, 275 insertions(+) create mode 100644 cmd/ihs_fpga.c diff --git

Re: [U-Boot] [PATCH 16/51] gpio: mpc85xx_gpio: Make compatible with MPC8XXX

2017-07-19 Thread Mario Six
Hi Simon, On Tue, Jul 18, 2017 at 4:02 PM, Simon Glass wrote: > Hi Mario, > > On 14 July 2017 at 05:55, Mario Six wrote: >> Since the GPIO controllers on MPC8XXX just vary in the number of pins >> offered, the DM driver for the MPC85XX SoC can be used for the whole >&g

Re: [U-Boot] [PATCH 13/51] cfi_flash: Clean up code some more

2017-07-19 Thread Mario Six
Hi Simon, On Tue, Jul 18, 2017 at 4:02 PM, Simon Glass wrote: > On 14 July 2017 at 05:54, Mario Six wrote: >> Fix some more style violations (mostly mis-indented case statements), >> and reduce the scope of some variables. >> >> Signed-off-by: Mario Six >> -

Re: [U-Boot] [PATCH 06/51] cmd: Add command for calculating binary operations

2017-07-19 Thread Mario Six
Hi Simon, On Tue, Jul 18, 2017 at 4:01 PM, Simon Glass wrote: > Hi Mario, > > On 14 July 2017 at 05:54, Mario Six wrote: >> This patch adds a command that enables the calculation of bit operations >> (AND, OR, XOR) on binary data from the command line. Memory locati

Re: [U-Boot] [PATCH 06/51] cmd: Add command for calculating binary operations

2017-07-25 Thread Mario Six
Hi Simon, On Wed, Jul 19, 2017 at 11:07 AM, Simon Glass wrote: > Hi Mario, > > On 19 July 2017 at 01:53, Mario Six wrote: >> Hi Simon, >> >> On Tue, Jul 18, 2017 at 4:01 PM, Simon Glass wrote: >>> Hi Mario, >>> >>> On 14 July 2017 at 05:54,

Re: [U-Boot] [PATCH 07/51] phy: Allow forcing clause 45 access

2017-07-25 Thread Mario Six
Hi Simon, On Tue, Jul 18, 2017 at 4:01 PM, Simon Glass wrote: > On 14 July 2017 at 05:54, Mario Six wrote: >> From: Dirk Eibach >> >> get_phy_device_by_mask() assumes that a clause 45 phy does not respond >> to clause 22 requests. That is not true at least for M

Re: [U-Boot] [PATCH 11/51] powerpc: mpc83xx: Implement get_serial_clock()

2017-07-25 Thread Mario Six
Hi Simon, On Tue, Jul 18, 2017 at 4:01 PM, Simon Glass wrote: > On 14 July 2017 at 05:54, Mario Six wrote: >> DM serial drivers on PowerPC determine their clock frequency via the >> get_serial_clock function. This function is not Implemented yet for >> MPC83xx. >> &

Re: [U-Boot] [PATCH 24/51] gdsys: mpc8308: Move SYS_FPGA{0, 1}_{BASE, SIZE} to Kconfig

2017-07-25 Thread Mario Six
Hi Simon, On Wed, Jul 19, 2017 at 11:05 AM, Simon Glass wrote: > Hi Mario, > > On 14 July 2017 at 05:55, Mario Six wrote: >> Move CONFIG_SYS_FPGA0_BASE, CONFIG_SYS_FPGA0_SIZE, CONFIG_SYS_FPGA1_BASE, and >> CONFIG_SYS_FPGA1_SIZE to Kconfig. > > It looks like the FPG

Re: [U-Boot] [PATCH 25/51] gdsys: Introduce GDSYS_LEGACY_DRIVERS

2017-07-25 Thread Mario Six
Hi Simon, On Wed, Jul 19, 2017 at 11:05 AM, Simon Glass wrote: > On 14 July 2017 at 05:55, Mario Six wrote: >> Future gdsys boards will switch from the legacy drivers in board/gdsys/common >> to DM-based drivers. >> >> Define a Kconfig option that disables the legac

Re: [U-Boot] [PATCH 28/51] i2c: ihs_i2c: Prepare DM conversion

2017-07-25 Thread Mario Six
Hi Simon, On Wed, Jul 19, 2017 at 11:05 AM, Simon Glass wrote: > On 14 July 2017 at 05:55, Mario Six wrote: >> Prepare the function interface of the ihs_i2c driver for DM conversion >> in a future patch. >> >> While we're at it, fix some style violations, and

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