[U-Boot] [PATCH v2 13/23] apalis_imx6: drop CONFIG_OF_SYSTEM_SETUP

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler This doesn't do anything anymore, probably never did. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- Changes in v2: None board/toradex/apalis_imx6/apalis_imx6.c | 7 --- include/configs/apalis_imx6.h | 2 -- 2 files changed, 9 deletions

[U-Boot] [PATCH v2 12/23] apalis_imx6: migrate usb to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate USB to using driver model. Signed-off-by: Marcel Ziswiler --- Changes in v2: None board/toradex/apalis_imx6/apalis_imx6.c | 22 -- configs/apalis_imx6_defconfig | 1 + 2 files changed, 1 insertion(+), 22 deletions(-) diff --git

[U-Boot] [PATCH v2 23/23] board: apalis_imx6: check for and report ecc errors in fuses

2019-02-08 Thread Marcel Ziswiler
From: Gerard Salvatella The PMIC on Apalis iMX6 may have ECC errors in fuses that will prevent correct settings. Up to one bit error per fuse bank may be reported and corrected by the ECC logic. Two bit errors can only be reported. Signed-off-by: Gerard Salvatella Acked-by: Marcel Ziswiler

[U-Boot] [PATCH v2 11/23] apalis_imx6: migrate mmc and sata to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate MMC and SATA to using driver model. While at it also enable SCSI driver model. Signed-off-by: Marcel Ziswiler --- Changes in v2: None board/toradex/apalis_imx6/apalis_imx6.c | 98 +++-- configs/apalis_imx6_defconfig | 3

[U-Boot] [PATCH v2 15/23] apalis_imx6: use both sd/mmc interfaces for setsdupdate

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher During porting to 2016.11 the check of a SD (mmc2) interface was dropped, this was unintended. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- Changes in v2: None include/configs/apalis_imx6.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions

[U-Boot] [PATCH v2 06/23] apalis_imx6: migrate to using device tree

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate to using device tree required for further driver model integration. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Use GPL-2.0+ OR X11 instead of GPL-2.0 OR MIT to be more consistent with all our other device trees. - Further comments and white-space

[U-Boot] [PATCH v2 17/23] apalis_imx6: pf0100: reorder and cleanup message printing

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Keep debug code at the end of the function. Use a one line informational message for the PMIC only. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- Changes in v2: None board/toradex/apalis_imx6/pf0100.c | 110 +++-- 1 file

[U-Boot] [PATCH v2 05/23] apalis_imx6: remove obsolete USB_GADGET_MASS_STORAGE configuration

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Remove obsolete USB_GADGET_MASS_STORAGE configuration. Signed-off-by: Marcel Ziswiler --- Changes in v2: None include/configs/apalis_imx6.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index

[U-Boot] [PATCH v2 07/23] apalis_imx6: clean-up and migrate gpios to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate GPIOs to using driver model, properly request backlight, Ethernet PHY reset, MMC/SD card detect and USB power GPIOs and also enable SION bit in pin muxing for Apalis, backlight, eMMC reset, Ethernet PHY reset and USB power enable GPIOs. While at it also update

[U-Boot] [PATCH v2 09/23] apalis_imx6: migrate i2c to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate I2C to using driver model. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Also update copyright year in PMIC header file. - And drop compiler.h include. board/toradex/apalis_imx6/apalis_imx6.c | 88 + board/toradex/apalis_imx6

[U-Boot] [PATCH v2 08/23] apalis_imx6: enable pin control driver

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Enable pin control driver as required for further driver model migration. Signed-off-by: Marcel Ziswiler --- Changes in v2: None configs/apalis_imx6_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/apalis_imx6_defconfig b/configs

[U-Boot] [PATCH v2 03/23] apalis_imx6: move console in env from header file to defconfig

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Move console in env from header file to defconfig. While at it also update copyright year and remove spurious comments and new lines. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Remove spurious mentioning of DFU MMC both in subject as well as description

[U-Boot] [PATCH v2 02/23] apalis_imx6: use distro defaults

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Use distro defaults and minimise default configuration again using savedefconfig. Signed-off-by: Marcel Ziswiler --- Changes in v2: None configs/apalis_imx6_defconfig | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/configs

[U-Boot] [PATCH v2 04/23] apalis_imx6: enable fit image, gpt, imx thermal, efi loader support

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Enbale FIT image, GPT command, i.MX thermal and EFI loader support. Signed-off-by: Marcel Ziswiler --- Changes in v2: None configs/apalis_imx6_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/apalis_imx6_defconfig b/configs

[U-Boot] [RFC PATCH v1] MLK-12883 usb: limit USB_MAX_XFER_BLK to 256

2019-02-01 Thread Marcel Ziswiler
quot;EHCI timed out on TD - token=0x80008d80". The devices does not support scsi VPD page, we are not able to get the maximum transfer length for READ(10)/WRITE(10). So we limit this to 256 blocks as READ(6). Signed-off-by: Peng Fan Acked-by: Marcel Ziswiler (cherr

[U-Boot] [PATCH v1 20/23] configs: apalis_imx6: Use ext4 file system by default

2019-02-01 Thread Marcel Ziswiler
From: Sanchayan Maity Use ext4 file system by default. Signed-off-by: Sanchayan Maity Acked-by: Max Krummenacher Acked-by: Marcel Ziswiler --- include/configs/apalis_imx6.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/apalis_imx6.h b/include

[U-Boot] [PATCH v1 19/23] apalis_imx6: revert fuse value set in mfgr_fuse

2019-02-01 Thread Marcel Ziswiler
Krummenacher Acked-by: Stefan Agner Acked-by: Marcel Ziswiler --- board/toradex/apalis_imx6/do_fuse.c | 2 +- board/toradex/colibri_imx6/do_fuse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/toradex/apalis_imx6/do_fuse.c b/board/toradex/apalis_imx6/do_fuse.c

[U-Boot] [PATCH v1 23/23] board: apalis_imx6: check for and report ecc errors in fuses

2019-02-01 Thread Marcel Ziswiler
From: Gerard Salvatella The PMIC on Apalis iMX6 may have ECC errors in fuses that will prevent correct settings. Up to one bit error per fuse bank may be reported and corrected by the ECC logic. Two bit errors can only be reported. Signed-off-by: Gerard Salvatella Acked-by: Marcel Ziswiler

[U-Boot] [PATCH v1 21/23] apalis_imx6: use SDP if USB serial downloader has been used

2019-02-01 Thread Marcel Ziswiler
USB serial downloader. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 8 1 file changed, 8 insertions(+) diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c index 696994a6b6..542b1ebafe

[U-Boot] [PATCH v1 16/23] apalis_imx6: unify sd/mmc drive strength with linux kernel settings

2019-02-01 Thread Marcel Ziswiler
From: Max Krummenacher In the Linux device tree we use 40Ohm drive strength. So use the same value in U-Boot. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions

[U-Boot] [PATCH v1 22/23] apalis_imx6: switch to zimage

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Switch to the generic compressed Kernel image type (zImage) instead of the U-Boot specific uImage format. Signed-off-by: Bhuvanchandra DV Acked-by: Marcel Ziswiler --- include/configs/apalis_imx6.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions

[U-Boot] [PATCH v1 18/23] apalis_imx6: disable ri and dcd irq in uarts

2019-02-01 Thread Marcel Ziswiler
interrupts. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c index 99bd9232dc

[U-Boot] [PATCH v1 00/23] apalis imx6 fixes, device tree enablement and driver model conversion

2019-02-01 Thread Marcel Ziswiler
for and report ecc errors in fuses Marcel Ziswiler (16): apalis_imx6: get rid of obsolete nospl configurations apalis_imx6: use distro defaults apalis_imx6: move console in env and dfu mmc from header file to defconfig apalis_imx6: enable fit image, gpt, imx thermal, efi loader support

[U-Boot] [PATCH v1 11/23] apalis_imx6: migrate mmc and sata to using driver model

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate MMC and SATA to using driver model. While at it also enable SCSI driver model. Signed-off-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 102 ++-- configs/apalis_imx6_defconfig | 3 + include/configs

[U-Boot] [PATCH v1 01/23] apalis_imx6: get rid of obsolete nospl configurations

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Now with SPL long since being in place even for recovery using SDP finally get rid of those nospl configurations. Signed-off-by: Marcel Ziswiler --- .../toradex/apalis_imx6/1066mhz_4x128mx16.cfg | 47 - .../toradex/apalis_imx6/1066mhz_4x256mx16.cfg | 47

[U-Boot] [PATCH v1 10/23] apalis_imx6: migrate pmic and regulator to using driver model

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate PMIC and regulator to using driver model. Signed-off-by: Marcel Ziswiler --- configs/apalis_imx6_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/apalis_imx6_defconfig b/configs/apalis_imx6_defconfig index 60c4d9720d..7e973ded74

[U-Boot] [PATCH v1 15/23] apalis_imx6: use both sd/mmc interfaces for setsdupdate

2019-02-01 Thread Marcel Ziswiler
From: Max Krummenacher During porting to 2016.11 the check of a SD (mmc2) interface was dropped, this was unintended. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- include/configs/apalis_imx6.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v1 12/23] apalis_imx6: migrate usb to using driver model

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate USB to using driver model. Signed-off-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 22 -- configs/apalis_imx6_defconfig | 1 + 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/board/toradex

[U-Boot] [PATCH v1 17/23] apalis_imx6: pf0100: reorder and cleanup message printing

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Keep debug code at the end of the function. Use a one line informational message for the PMIC only. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- board/toradex/apalis_imx6/pf0100.c | 110 +++-- 1 file changed, 56 insertions

[U-Boot] [PATCH v1 14/23] apalis_imx6: add distroboot support

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Add support for distro boot. This is especially helpful for external devices. There is a global boot command which scans a predefined list of boot targets: run distro_bootcmd As well as direct boot commands such as: run bootcmd_mmc1 run bootcmd_mmc2 run bootcmd_usb

[U-Boot] [PATCH v1 13/23] apalis_imx6: drop CONFIG_OF_SYSTEM_SETUP

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler This doesn't do anything anymore, probably never did. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 7 --- include/configs/apalis_imx6.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/board

[U-Boot] [PATCH v1 07/23] apalis_imx6: clean-up and migrate gpios to using driver model

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate GPIOs to using driver model, properly request backlight and Ethernet PHY reset GPIOs and also enable SION bit in pin muxing for USB power enable GPIOs. While at it also update copyright year and add some comments clarifying ifdef scope. Signed-off-by: Marcel

[U-Boot] [PATCH v1 08/23] apalis_imx6: enable pin control driver

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Enable pin control driver as required for further driver model migration. Signed-off-by: Marcel Ziswiler --- configs/apalis_imx6_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/apalis_imx6_defconfig b/configs/apalis_imx6_defconfig index

[U-Boot] [PATCH v1 09/23] apalis_imx6: migrate i2c to using driver model

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate I2C to using driver model. Signed-off-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 88 + board/toradex/apalis_imx6/pf0100.c | 58 configs/apalis_imx6_defconfig | 1 + include/configs

[U-Boot] [PATCH v1 06/23] apalis_imx6: migrate to using device tree

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate to using device tree required for further driver model integration. Signed-off-by: Marcel Ziswiler --- arch/arm/dts/imx6-apalis.dts | 722 ++ board/toradex/apalis_imx6/MAINTAINERS | 2 + configs/apalis_imx6_defconfig

[U-Boot] [PATCH v1 05/23] apalis_imx6: remove obsolete USB_GADGET_MASS_STORAGE configuration

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Remove obsolete USB_GADGET_MASS_STORAGE configuration. Signed-off-by: Marcel Ziswiler --- include/configs/apalis_imx6.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index a1ba16fc79..785ab3

[U-Boot] [PATCH v1 03/23] apalis_imx6: move console in env and dfu mmc from header file to defconfig

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Move console in env and DFU MMC from header file to defconfig. While at it also update copyright year and remove spurious comments and new lines. Signed-off-by: Marcel Ziswiler --- configs/apalis_imx6_defconfig | 1 + include/configs/apalis_imx6.h | 4 +--- 2 files

[U-Boot] [PATCH v1 04/23] apalis_imx6: enable fit image, gpt, imx thermal, efi loader support

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Enbale FIT image, GPT command, i.MX thermal and EFI loader support. Signed-off-by: Marcel Ziswiler --- configs/apalis_imx6_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/apalis_imx6_defconfig b/configs/apalis_imx6_defconfig

[U-Boot] [PATCH v1 02/23] apalis_imx6: use distro defaults

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Use distro defaults and minimise default configuration again using savedefconfig. Signed-off-by: Marcel Ziswiler --- configs/apalis_imx6_defconfig | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/configs/apalis_imx6_defconfig b/configs

[U-Boot] [PATCH v1 0/3] toradex: common: fix/improve config block handling

2019-02-01 Thread Marcel Ziswiler
to 'cfgblock create’ Marcel Ziswiler (1): tdx-cfg-block: fix off by one issue board/toradex/common/tdx-cfg-block.c | 41 ++-- board/toradex/common/tdx-common.c| 33 +++--- 2 files changed, 44 insertions(+), 30 deletions(-) -- 2.20.1

[U-Boot] [PATCH v1 1/3] toradex: configblock: add an -y parameter to 'cfgblock create’

2019-02-01 Thread Marcel Ziswiler
From: Dominik Sliwa Add an optional -y parameter to 'cfgblock create’ to simplify automation. Signed-off-by: Dominik Sliwa Acked-by: Stefan Agner Acked-by: Marcel Ziswiler --- board/toradex/common/tdx-cfg-block.c | 39 ++-- 1 file changed, 26 insertions(+), 13

[U-Boot] [PATCH v1 3/3] tdx-cfg-block: fix off by one issue

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Fix toradex_modules array off by one issue potentially leading to spurious printout during boot e.g. Model: Toradex V1.2A, instead of Model: Toradex UNKNOWN MODULE V1.2A. Signed-off-by: Marcel Ziswiler Acked-by: Max Krummenacher --- board/toradex/common

[U-Boot] [PATCH v1 2/3] toradex: common: unify behaviour when config block is missing

2019-02-01 Thread Marcel Ziswiler
From: Bhuvanchandra DV If the config block is missing, various things may fail or behave strangely on certain modules. This patch unifies that behaviour by using a fake MAC address, until user updates the config block. Signed-off-by: Bhuvanchandra DV Acked-by: Marcel Ziswiler --- board

[U-Boot] [PATCH v3 1/2] dm: device: fail uclass_find_first_device() if list_empty

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler While uclass_find_device() fails with -ENODEV in case of list_empty strangely uclass_find_first_device() returns 0. Fix uclass_find_first_device() to also fail with -ENODEV instead. Signed-off-by: Marcel Ziswiler Reviewed-by: Simon Glass --- Changes in v3: - Added

[U-Boot] [PATCH v3 0/2] While converting SATA on Apalis iMX6 to use driver model I noticed it

2019-02-01 Thread Marcel Ziswiler
sted by Simon. - Dropped "[PATCH 2/3] dm: sata: add null pointer check for dev" as suggested by Simon. - Added Simon's reviewed-by. Marcel Ziswiler (2): dm: device: fail uclass_find_first_device() if list_empty cmd: sata: add null pointer check for dev cmd/sata.c| 4 dri

[U-Boot] [PATCH v1 0/3] imx: cpu.c, serial_mxc, dts fixes/improvements

2019-02-01 Thread Marcel Ziswiler
This series addresses some shortcomings concerning reset cause in SPL, serial in DTE mode and fixes some device-tree address/size-cells warnings. Marcel Ziswiler (1): ARM: dts: i.MX6Q, i.MX6QDL: fix address/size-cells warnings Max Krummenacher (2): imx: serial_mxc: disable ri and dcd irq

[U-Boot] [PATCH v3 2/2] cmd: sata: add null pointer check for dev

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Calling sata_scan() with a null pointer probably won't make much sense. Signed-off-by: Marcel Ziswiler Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - Dropped "[PATCH 2/3] dm: sata: add null pointer check for dev" as suggested by Simo

[U-Boot] [PATCH v1 3/3] imx: cpu.c: give access to reset cause in spl

2019-02-01 Thread Marcel Ziswiler
From: Max Krummenacher This makes get_imx_reset_cause() accessible in SPL, but keeps the SRSR register content intact so that U-Boot proper can evaluated the reset_cause again should this be needed. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- arch/arm/mach-imx/cpu.c | 27

[U-Boot] [PATCH v1 2/3] imx: serial_mxc: disable ri and dcd irq in dte mode

2019-02-01 Thread Marcel Ziswiler
Signed-off-by: Marcel Ziswiler --- drivers/serial/serial_mxc.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index 7e4e6d36b8..df35ac9114 100644 --- a/drivers/serial/serial_mxc.c +++ b/drivers/serial

[U-Boot] [PATCH v1 1/3] ARM: dts: i.MX6Q, i.MX6QDL: fix address/size-cells warnings

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler This fixes the following warnings: arch/arm/dts/imx6-apalis.dtb: Warning (avoid_unnecessary_addr_size): /clocks: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property arch/arm/dts/imx6-apalis.dtb: Warning (avoid_unnecessa

[U-Boot] [PATCH v2 2/2] cmd: sata: add null pointer check for dev

2019-01-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Calling sata_scan() with a null pointer probably won't make much sense. Signed-off-by: Marcel Ziswiler Reviewed-by: Simon Glass --- Changes in v2: - Added Simon's reviewed-by. cmd/sata.c | 4 1 file changed, 4 insertions(+) diff --git a/cmd/sata.c b/cmd/sata.c

[U-Boot] [PATCH v2 0/2] While converting SATA on Apalis iMX6 to use driver model I noticed it

2019-01-25 Thread Marcel Ziswiler
sata: add null pointer check for dev" as suggested by Simon. - Added Simon's reviewed-by. Marcel Ziswiler (2): dm: device: fail uclass_find_first_device() if list_empty cmd: sata: add null pointer check for dev cmd/sata.c| 4 drivers/core/uclass.c | 2 +- test/dm/core.c

[U-Boot] [PATCH v2 1/2] dm: device: fail uclass_find_first_device() if list_empty

2019-01-25 Thread Marcel Ziswiler
From: Marcel Ziswiler While uclass_find_device() fails with -ENODEV in case of list_empty strangely uclass_find_first_device() returns 0. Fix uclass_find_first_device() to also fail with -ENODEV instead. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Update dm_test_uclass_devices_find

Re: [U-Boot] [PATCH 2/3] dm: sata: add null pointer check for dev

2019-01-25 Thread Marcel Ziswiler
Hi Simon On Fri, 2019-01-25 at 09:18 +1300, Simon Glass wrote: > Hi Marcel, > > On Fri, 25 Jan 2019 at 03:30, Marcel Ziswiler > wrote: > > From: Marcel Ziswiler > > > > Given ahci_get_ops() being a macro not checking anything make sure > > we > &g

Re: [U-Boot] [PATCH 1/3] dm: device: fail uclass_find_first_device() if list_empty

2019-01-25 Thread Marcel Ziswiler
Hi Simon On Fri, 2019-01-25 at 09:18 +1300, Simon Glass wrote: > Hi Marcel, > > On Fri, 25 Jan 2019 at 03:30, Marcel Ziswiler > wrote: > > From: Marcel Ziswiler > > > > While uclass_find_device() fails with -ENODEV in case of list_empty > > strangely

[U-Boot] [PATCH 2/3] dm: sata: add null pointer check for dev

2019-01-24 Thread Marcel Ziswiler
From: Marcel Ziswiler Given ahci_get_ops() being a macro not checking anything make sure we only call it if we do indeed have a dev pointer. Signed-off-by: Marcel Ziswiler --- drivers/ata/sata.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH 3/3] cmd: sata: add null pointer check for dev

2019-01-24 Thread Marcel Ziswiler
From: Marcel Ziswiler Calling sata_scan() with a null pointer probably won't make much sense. Signed-off-by: Marcel Ziswiler --- cmd/sata.c | 4 1 file changed, 4 insertions(+) diff --git a/cmd/sata.c b/cmd/sata.c index 6d62ba8f74..a73cc54bd3 100644 --- a/cmd/sata.c +++ b/cmd/sata.c

[U-Boot] [PATCH 1/3] dm: device: fail uclass_find_first_device() if list_empty

2019-01-24 Thread Marcel Ziswiler
From: Marcel Ziswiler While uclass_find_device() fails with -ENODEV in case of list_empty strangely uclass_find_first_device() returns 0. Fix uclass_find_first_device() to also fail with -ENODEV instead. Signed-off-by: Marcel Ziswiler --- drivers/core/uclass.c | 2 +- 1 file changed, 1

[U-Boot] [PATCH 0/3] While converting SATA on Apalis iMX6 to use driver model I noticed it

2019-01-24 Thread Marcel Ziswiler
where no proper checking is done. This patch set adds such checks leading to a graceful error instead: Apalis iMX6 # sata init Cannot probe SATA device 0 (err=-19) Marcel Ziswiler (3): dm: device: fail uclass_find_first_device() if list_empty dm: sata: add null pointer check for dev cmd: sata

Re: [U-Boot] [PATCH v1 2/9] arm: dts: imx7: colibri: split dt for raw NAND and eMMC devices

2019-01-07 Thread Marcel Ziswiler
On Mon, 2019-01-07 at 17:33 +0100, Stefan Agner wrote: > On 07.01.2019 00:18, Marcel Ziswiler wrote: > > On Sun, 2019-01-06 at 22:00 +0100, Stefan Agner wrote: > > > From: Stefan Agner > > > > > > In preparation of adding CONFIG_DM_MMC support use separate &

Re: [U-Boot] [PATCH v1 9/9] configs: add default configuraiton for Colibri iMX7 with eMMC

2019-01-06 Thread Marcel Ziswiler
On Sun, 2019-01-06 at 22:00 +0100, Stefan Agner wrote: > From: Stefan Agner > > Add a default configuration for Colibri iMX7D 1GB (with eMMC > NAND flash). Finally (;-p). > Signed-off-by: Stefan Agner > --- > > configs/colibri_imx7_emmc_defconfig | 65 > + > 1

Re: [U-Boot] [PATCH v1 8/9] configs: colibri_imx7: enable CAAM driver

2019-01-06 Thread Marcel Ziswiler
ook closer into it. Good catch. > Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler > --- > > configs/colibri_imx7_defconfig | 4 > 1 file changed, 4 insertions(+) > > diff --git a/configs/colibri_imx7_defconfig > b/configs/colibri_imx7_defconfig > index af976bab12.

Re: [U-Boot] [PATCH v1 7/9] colibri_imx7: drop legacy usdhc support

2019-01-06 Thread Marcel Ziswiler
On Sun, 2019-01-06 at 22:00 +0100, Stefan Agner wrote: > From: Stefan Agner > > Drop legacy pinmux/usdhc board configuration. > > Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler > --- > > board/toradex/colibri_imx7/colibri_imx7.c | 97 --- >

Re: [U-Boot] [PATCH v1 6/9] configs: colibri_imx7: use DM_MMC

2019-01-06 Thread Marcel Ziswiler
On Sun, 2019-01-06 at 22:00 +0100, Stefan Agner wrote: > From: Stefan Agner > > Now that device tree is in place use DM_MMC for Colibri iMX7 > devices. > > Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler > --- > > configs/colibri_imx7_defconfig | 2 +- >

Re: [U-Boot] [PATCH v1 5/9] arm: dts: imx7: colibri: add usdhci peripherals to device tree

2019-01-06 Thread Marcel Ziswiler
On Sun, 2019-01-06 at 22:00 +0100, Stefan Agner wrote: > From: Stefan Agner > > Add usdhci peripherals to device tree. This allows to use DM_MMC > for Colibri iMX7 devices. > > Signed-off-by: Stefan Agner > --- > > arch/arm/dts/imx7-colibri-emmc.dts| 69 > +++ >

Re: [U-Boot] [PATCH v1 3/9] configs: colibri_imx7: enable DM for raw NAND devices

2019-01-06 Thread Marcel Ziswiler
On Sun, 2019-01-06 at 22:00 +0100, Stefan Agner wrote: > From: Stefan Agner > > Use DM and device trees for raw NAND devices by default. This > fixes -74 NAND read errors since it makes sure the ECC settings > are the same as used in Linux and our downstream U-Boot. > > Signed-off-by: Stefan

Re: [U-Boot] [PATCH v1 4/9] configs: colibri_imx7: use separate device tree

2019-01-06 Thread Marcel Ziswiler
On Sun, 2019-01-06 at 22:00 +0100, Stefan Agner wrote: > From: Stefan Agner > > Use OF_SEPARATE as suggested by the build system. > > Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler > --- > > configs/colibri_imx7_defconfig | 1 - > 1 file changed, 1

Re: [U-Boot] [PATCH v1 2/9] arm: dts: imx7: colibri: split dt for raw NAND and eMMC devices

2019-01-06 Thread Marcel Ziswiler
On Sun, 2019-01-06 at 22:00 +0100, Stefan Agner wrote: > From: Stefan Agner > > In preparation of adding CONFIG_DM_MMC support use separate device > trees for raw NAND and eMMC devices. > > Signed-off-by: Stefan Agner > --- > > arch/arm/dts/imx7-colibri-emmc.dts| 16 +++ >

Re: [U-Boot] [PATCH v1 1/9] colibri_imx7: fix boot commands

2019-01-06 Thread Marcel Ziswiler
Colibri iMX7D 1GB (eMMC) > module support") > Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler > --- > > include/configs/colibri_imx7.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/include/configs/colibri_imx7.h > b/include/confi

Re: [U-Boot] [PATCH 40/93] arm: Remove colibri_pxa270 board

2018-11-26 Thread Marcel Ziswiler
7 +0,0 @@ > -# SPDX-License-Identifier: GPL-2.0+ > -# > -# Toradex Colibri PXA270 Support > -# > -# Copyright (C) 2010 Marek Vasut > - > -obj-y:= colibri_pxa270.o > diff --git a/board/toradex/colibri_pxa270/colibri_pxa270.c > b/board/toradex/colibri_pxa270/colibri_pxa270.c

Re: [U-Boot] [PATCH] common: add board specific hook for os preboot config

2018-11-14 Thread Marcel Ziswiler
I see this got superseded by fd3d1212a2cb ("bootm: Add board specific OS preboot hook") which does the exact same thing. Thanks! On Mon, 2018-08-13 at 09:30 +0200, Gerard Salvatella wrote: > Some boards require specific configuration prior to booting the > kernel. > For instance, our boards

Re: [U-Boot] [PATCH] board: toradex: turn off lcd backlight before OS handover

2018-11-14 Thread Marcel Ziswiler
l lines. Make sure to > disable > back light before booting Linux. > > Signed-off-by: Gerard Salvatella > Signed-off-by: Philippe Schenker Acked-by: Marcel Ziswiler > --- > board/toradex/apalis-tk1/apalis-tk1.c | 9 + > board/toradex/apalis_imx6/apali

Re: [U-Boot] [PATCH v1 2/2] imx: mkimage: add size check to the u-boot.imx make target

2018-11-09 Thread Marcel Ziswiler
Hi Stefano On Thu, 2018-11-08 at 15:07 +0100, Stefano Babic wrote: > Hi Marcel, > > On 08/11/18 02:55, Fabio Estevam wrote: > > [Adding Stefano] > > > > On Wed, Nov 7, 2018 at 8:41 PM Marcel Ziswiler > > wrote: > > > > > > From: Ma

[U-Boot] [PATCH v2 4/4] imx: mkimage: add size check to the u-boot.imx make target

2018-11-09 Thread Marcel Ziswiler
From: Marcel Ziswiler The make macro to check if the binary exceeds the board size limit is taken straight from the root Makefile. Without this and e.g. enabled EFI Vybrid fails booting as the regular size limit check does not take the final u-boot.imx binary size into account which is bigger

[U-Boot] [PATCH v2 2/4] board: toradex: colibri_vf: unset CONFIG_CMDLINE_EDITING

2018-11-09 Thread Marcel Ziswiler
From: Marcel Ziswiler Unset CONFIG_CMDLINE_EDITING saving precious 4 Kb on boards with tough size restrictions. Signed-off-by: Marcel Ziswiler --- Changes in v2: New configs/colibri_vf_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/colibri_vf_defconfig b/configs

[U-Boot] [PATCH v2 3/4] board: toradex: colibri_vf: drop SPI support

2018-11-09 Thread Marcel Ziswiler
From: Marcel Ziswiler Drop SPI support saving precious 4 Kb on boards with tough size restrictions. Signed-off-by: Marcel Ziswiler Signed-off-by: Marcel Ziswiler --- Changes in v2: New configs/colibri_vf_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/configs

[U-Boot] [PATCH v2 1/4] board: toradex: colibri_vf: efi_loader: unset CONFIG_EFI_UNICODE_CAPITALIZATION

2018-11-09 Thread Marcel Ziswiler
From: Marcel Ziswiler Unset CONFIG_EFI_UNICODE_CAPITALIZATION on boards with tough size restrictions. This is analogous to commit a90bf07afc43 ("efi_loader: unset CONFIG_EFI_UNICODE_CAPITALIZATION"). Signed-off-by: Marcel Ziswiler Reviewed-by: Alexander Graf --- Changes i

Re: [U-Boot] [PATCH v1 2/2] imx: mkimage: add size check to the u-boot.imx make target

2018-11-09 Thread Marcel Ziswiler
On Fri, 2018-11-09 at 10:41 +0100, Alexander Graf wrote: > On 11/09/2018 10:18 AM, Marcel Ziswiler wrote: > > Hi Stefano > > > > On Thu, 2018-11-08 at 15:07 +0100, Stefano Babic wrote: > > > Hi Marcel, > > > > > > On 08/11/18 02:

Re: [U-Boot] [PATCH v1 2/2] imx: mkimage: add size check to the u-boot.imx make target

2018-11-09 Thread Marcel Ziswiler
Hi Stefano On Thu, 2018-11-08 at 15:07 +0100, Stefano Babic wrote: > Hi Marcel, > > On 08/11/18 02:55, Fabio Estevam wrote: > > [Adding Stefano] > > > > On Wed, Nov 7, 2018 at 8:41 PM Marcel Ziswiler > > wrote: > > > > > > From: Ma

[U-Boot] [PATCH v1 2/2] imx: mkimage: add size check to the u-boot.imx make target

2018-11-07 Thread Marcel Ziswiler
From: Marcel Ziswiler The make macro to check if the binary exceeds the board size limit is taken straight from the root Makefile. Without this and e.g. enabled EFI Vybrid fails booting as the regular size limit check does not take the final u-boot.imx binary size into account which is bigger

[U-Boot] [PATCH v1 1/2] board: toradex: colibri_vf: efi_loader: unset CONFIG_EFI_UNICODE_CAPITALIZATION

2018-11-07 Thread Marcel Ziswiler
From: Marcel Ziswiler Unset CONFIG_EFI_UNICODE_CAPITALIZATION on boards with tough size restrictions. This is analogous to commit a90bf07afc43 ("efi_loader: unset CONFIG_EFI_UNICODE_CAPITALIZATION"). Signed-off-by: Marcel Ziswiler --- configs/colibri_vf_defconfig | 1 + 1 file

[U-Boot] mmc: get mmc_spi working again

2018-10-16 Thread Marcel Eckert
aybe SPI-mode needs to be added in "enum bus_mode" (see mmc.h) and handled properly in mmc.c. Signed-off-by: Marcel Eckert ---  drivers/mmc/mmc.c | 9 +  1 file changed, 9 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 585951cd78..d78b58ac77 100644

Re: [U-Boot] [RESEND PATCH v2 1/2] imx: mx7: fix potential overflow in imx_ddr_size()

2018-10-16 Thread Marcel Ziswiler
On Tue, 2018-10-16 at 10:37 +0200, Stefano Babic wrote: > On 16/10/2018 10:25, Marcel Ziswiler wrote: > > Hi Stefano > > > > On Tue, 2018-10-16 at 10:06 +0200, Stefano Babic wrote: > > > Hi Marcel, > > > > > > On 16/10/2018 08:46, Marc

Re: [U-Boot] [RESEND PATCH v2 1/2] imx: mx7: fix potential overflow in imx_ddr_size()

2018-10-16 Thread Marcel Ziswiler
Hi Stefano On Tue, 2018-10-16 at 10:06 +0200, Stefano Babic wrote: > Hi Marcel, > > On 16/10/2018 08:46, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > The imx_ddr_size() function may overflow as it is possible to kind > > of > > over provision

[U-Boot] [RESEND PATCH v2 1/2] imx: mx7: fix potential overflow in imx_ddr_size()

2018-10-16 Thread Marcel Ziswiler
From: Marcel Ziswiler The imx_ddr_size() function may overflow as it is possible to kind of over provision the DDR controller. Fix this by capping it to 2 GB which is the maximum allowed size as per reference manual. Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam --- Changes

[U-Boot] [RESEND PATCH v2 2/2] colibri_imx7: prime get_ram_size() using imx_ddr_size()

2018-10-16 Thread Marcel Ziswiler
() function already took care of properly automatically detecting 256MB, 512MB or 1GB modules. Signed-off-by: Fabio Estevam Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam Acked-by: Stefan Agner --- Changes in v2: - Added Fabio's and Stefan's acks resp. reviewed-bys. board/toradex

[U-Boot] [PATCH v2 2/2] colibri_imx7: prime get_ram_size() using imx_ddr_size()

2018-10-09 Thread Marcel Ziswiler
() function already took care of properly automatically detecting 256MB, 512MB or 1GB modules. Signed-off-by: Fabio Estevam Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam Acked-by: Stefan Agner --- Changes in v2: - Added Fabio's and Stefan's acked- resp. reviewed-bys. board/toradex

[U-Boot] [PATCH v2 1/2] imx: mx7: fix potential overflow in imx_ddr_size()

2018-10-09 Thread Marcel Ziswiler
From: Marcel Ziswiler The imx_ddr_size() function may overflow as it is possible to kind of over provision the DDR controller. Fix this by capping it to 2 GB which is the maximum allowed size as per reference manual. Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam --- Changes

[U-Boot] [PATCH 2/2] colibri_imx7: prime get_ram_size() using imx_ddr_size()

2018-09-19 Thread Marcel Ziswiler
() function already took care of properly automatically detecting 256MB, 512MB or 1GB modules. Signed-off-by: Fabio Estevam Signed-off-by: Marcel Ziswiler --- board/toradex/colibri_imx7/colibri_imx7.c | 2 +- include/configs/colibri_imx7.h| 1 - 2 files changed, 1 insertion(+), 2

[U-Boot] [PATCH 1/2] imx: mx7: fix potential overflow in imx_ddr_size()

2018-09-19 Thread Marcel Ziswiler
From: Marcel Ziswiler The imx_ddr_size() function may overflow as it is possible to kind of over provision the DDR controller. Fix this by capping it to 2 GB which is the maximum allowed size as per reference manual. Signed-off-by: Marcel Ziswiler -- arch/arm/mach-imx/mx7/ddr.c | 4 1

Re: [U-Boot] [RFC] colibri_imx7: Do not hardcode the memory size

2018-09-19 Thread Marcel Ziswiler
Hi Fabio On Tue, 2018-09-18 at 14:28 +0200, Marcel Ziswiler wrote: > Stefan is currently at Linaro Connect and may not have access to > hardware. > > On Mon, 2018-09-17 at 14:09 -0300, Fabio Estevam wrote: > > Instead of hardcoding the memory size, use the generic > >

Re: [U-Boot] [RFC] colibri_imx7: Do not hardcode the memory size

2018-09-18 Thread Marcel Ziswiler
; b/include/configs/colibri_imx7.h > index ff6bd67..02849ba 100644 > --- a/include/configs/colibri_imx7.h > +++ b/include/configs/colibri_imx7.h > @@ -14,7 +14,6 @@ > #include "mx7_common.h" > > /*#define CONFIG_DBG_MONITOR*/ > -#define PHYS_SDRAM_SIZE

Re: [U-Boot] [PATCH 6/6] nyan-big: drop CONFIG_KEYBOARD

2018-09-17 Thread Marcel Ziswiler
On Sun, 2018-09-16 at 18:23 +0100, Peter Robinson wrote: > The CONFIG_KEYBOARD does nothing as it's legacy and unused > so just drop it from the config. > > Signed-off-by: Peter Robinson > Cc: Tom Warren > Cc: Stephen Warren > Cc: Allen Martin Reviewed-by: Marcel Ziswil

Re: [U-Boot] [PATCH 5/6] Kconfig: tegra: Migrate TEGRA_KEYBOARD

2018-09-17 Thread Marcel Ziswiler
> Cc: Stephen Warren Reviewed-by: Marcel Ziswiler > --- > configs/seaboard_defconfig | 1 + > drivers/input/Kconfig| 6 ++ > include/configs/seaboard.h | 4 > scripts/config_whitelist.txt | 1 - > 4 files changed, 7 insertions(+), 5 deletions(-) >

Re: [U-Boot] [PATCH 4/6] Kconfig: tegra: Migrate USB_EHCI_TEGRA

2018-09-17 Thread Marcel Ziswiler
On Mon, 2018-09-17 at 15:51 +0200, Marcel Ziswiler wrote: > On Sun, 2018-09-16 at 18:23 +0100, Peter Robinson wrote: > > Migrate USB_EHCI_TEGRA from headers to Kconfig > > > > Signed-off-by: Peter Robinson > > Cc: Tom Warren > > Cc: Stephen Warren > > C

Re: [U-Boot] [PATCH 3/6] Kconfig: tegra: Migrate SYS_I2C_TEGRA

2018-09-17 Thread Marcel Ziswiler
On Sun, 2018-09-16 at 18:22 +0100, Peter Robinson wrote: > Migrate SYS_I2C_TEGRA from headers to Kconfig > > Signed-off-by: Peter Robinson > Cc: Tom Warren > Cc: Stephen Warren > Cc: Heiko Schocher > Cc: Marcel Ziswiler > Cc: peter.ch...@data61.csiro.au > Cc: Luca

Re: [U-Boot] [PATCH 4/6] Kconfig: tegra: Migrate USB_EHCI_TEGRA

2018-09-17 Thread Marcel Ziswiler
On Sun, 2018-09-16 at 18:23 +0100, Peter Robinson wrote: > Migrate USB_EHCI_TEGRA from headers to Kconfig > > Signed-off-by: Peter Robinson > Cc: Tom Warren > Cc: Stephen Warren > Cc: Marek Vasut > Cc: Marcel Ziswiler > Cc: peter.ch...@data61.csiro.au > Cc: Luca

Re: [U-Boot] [PATCH 2/6] tegra20: common: fix USB_EHCI_TXFIFO_THRESH value

2018-09-17 Thread Marcel Ziswiler
On Sun, 2018-09-16 at 18:22 +0100, Peter Robinson wrote: > All other Tegra devices that define USB_EHCI_TXFIFO_THRESH use hex > representation, fix tegra20 to be the same format. > > Signed-off-by: Peter Robinson > Cc: Tom Warren > Cc: Stephen Warren > --- > include/configs/tegra20-common.h |

Re: [U-Boot] [PATCH 1/6] tegra: cleanup dangling comments in include/configs

2018-09-17 Thread Marcel Ziswiler
On Sun, 2018-09-16 at 18:22 +0100, Peter Robinson wrote: > There's a number of dangling comments in various tegra configs post > migrations > of various configs so lets clean them up. > > Signed-off-by: Peter Robinson > Cc: Tom Warren > Cc: Stephen Warren > Cc: Ma

[U-Boot] boot progress for invalid ramdisk

2018-05-14 Thread Marcel Hellwig
here a way to "get notified" if the shell opens (e.g. call a callback function), so I can check that (this is usally an error :) )? Greetings, Marcel [0]: https://github.com/u-boot/u-boot/blob/62d77cea31216cad526e5f45c88e8377efc6fcae/common/bootm.c#L233-L236 _

<    5   6   7   8   9   10   11   12   13   14   >