[U-Boot] [PATCH 2/6] board: ge: Move VPD EEPROM configuration to the defconfig

2018-06-26 Thread Sebastian Reichel
From: Denis Zalevskiy Use standard configuration logic to define EEPROM constants. Names are based on VPD_EEPROM_ prefix because EEPROM_ is already used by i2c_eeprom driver. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/Kconfig | 2 ++ board/ge

[U-Boot] [PATCH 4/6] bootcount: Configure length limit for I2C bootcount

2018-06-26 Thread Sebastian Reichel
From: Denis Zalevskiy Bootcount driver should verify size against the maximum available space. New configuration parameter adds this capability and keeps backward compatibility by providing default value. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- drivers/bootcount

[U-Boot] [PATCH 6/6] board: ge: Store bootcount in EEPROM on PPD and Bx50v3

2018-06-26 Thread Sebastian Reichel
where VPD is stored. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- board/ge/common/vpd_reader.c | 20 configs/ge_bx50v3_defconfig | 18 ++ configs/mx53ppd_defconfig| 19 +++ include/configs/ge_bx50v3.h | 6

[U-Boot] [PATCH 5/6] board: ge: Move VPD reading to the vpd_reader

2018-06-26 Thread Sebastian Reichel
-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 48 +--- board/ge/common/vpd_reader.c | 37 --- board/ge/common/vpd_reader.h | 16 board/ge/mx53ppd/mx53ppd.c | 44 +++-- 4 files changed

[U-Boot] [PATCH 1/6] board: ge: Remove EEPROM bus param from read_vpd()

2018-06-26 Thread Sebastian Reichel
From: Denis Zalevskiy The bus is statically defined, so remove redundant parameters from read_vpd() for PPD and Bx50v3. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 6 +++--- board/ge/mx53ppd/mx53ppd.c | 6 +++--- 2 files changed, 6

[U-Boot] [PATCH 3/6] bootcount: i2c: Add bus switching to the I2C bootcount driver

2018-06-26 Thread Sebastian Reichel
From: Denis Zalevskiy If there is an I2C mux, current bus should be switched before manipulating with I2C. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- drivers/bootcount/Kconfig | 15 ++- drivers/bootcount/bootcount_i2c.c | 70

[U-Boot] [PATCH 0/6] GE: Move from ext4 to eeprom bootcounter

2018-06-26 Thread Sebastian Reichel
Writing to ext4 from U-Boot is dangerous in case of inconsistent filesystem state (i.e. due to power-loss). The current U-Boot code can modify the filesystem, so that it is no longer usable by Linux after fsck. This patchset avoids writing to the partition on GE devices by moving the boot counter

[U-Boot] [PATCHv2 04/15] rtc: adding RX8010SJ rtc driver

2018-01-10 Thread Sebastian Reichel
From: Nandor Han <nandor@ge.com> Add a new driver for RX8010SJ rtc chip. The driver implements both formats of U-Boot driver model. Signed-off-by: Nandor Han <nandor@ge.com> Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> Signed-off-by: Sebastian Reich

[U-Boot] [PATCHv2 15/15] board,ge,bx50v3 - rtc time validation

2018-01-10 Thread Sebastian Reichel
From: Nandor Han <nandor@ge.com> Validate the time at startup: - in case rtc error add to kernel command line RTC_ERROR - clamp date to 1-Jan-2036 Signed-off-by: Nandor Han <nandor@ge.com> Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> Signed-off-by:

[U-Boot] [PATCHv2 12/15] configs: ge_bx50v3: enable bootcount

2018-01-10 Thread Sebastian Reichel
From: Ian Ray <ian@ge.com> Enable bootcount using an EXT file. Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- include/configs/ge_bx50v3.h | 8

[U-Boot] [PATCHv2 02/15] net: e1000: split e1000_read_mac_addr

2018-01-10 Thread Sebastian Reichel
alling the register and, especially, the eeprom version directly in order to specify where to read the address from. Signed-off-by: Hannu Lounento <hannu.loune...@ge.com> CC: Joe Hershberger <joe.hershber...@ni.com> Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> Signed-o

[U-Boot] [PATCHv2 03/15] net: e1000: implement eth_write_hwaddr

2018-01-10 Thread Sebastian Reichel
unento <hannu.loune...@ge.com> CC: Joe Hershberger <joe.hershber...@ni.com> Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- drivers/net/e1000.c | 40 1 file c

[U-Boot] [PATCHv2 05/15] board: ge: Enable access to i2c bus 1 and 2

2018-01-10 Thread Sebastian Reichel
: Martyn Welch <martyn.we...@collabora.co.uk> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- board/ge/bx50v3/bx50v3.c| 2 +- include/configs/ge_bx50v3.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/board/ge/bx50v3/bx50v3.c b/boar

[U-Boot] [PATCHv2 01/15] net: e1000: add support for writing to EEPROM

2018-01-10 Thread Sebastian Reichel
> CC: Joe Hershberger <joe.hershber...@ni.com> Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> Reviewed-by: Stefano Babic <sba...@denx.de> Acked-by: Joe Hershberger <joe.hershber...@ni.com> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabor

[U-Boot] [PATCHv2 06/15] configs: Add network device support for bx50v3 products

2018-01-10 Thread Sebastian Reichel
From: Ian Ray <ian@ge.com> Modify b450v3, b650v3 and b850v3 defconfigs to enable the network devices found in these products. Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> Signed-off-by: Sebastian Reichel <sebastian.re

[U-Boot] [PATCHv2 10/15] board: ge: bx50v3: Support FIT and select configuration based on VPD

2018-01-10 Thread Sebastian Reichel
h <martyn.we...@collabora.co.uk> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- board/ge/bx50v3/bx50v3.c| 12 +++ configs/ge_b450v3_defconfig | 1 + configs/ge_b650v3_defconfig | 1 + configs/ge_b850v3_defconfig | 1 + include/

[U-Boot] [PATCHv2 09/15] board: ge: bx50v3: Enable hardware watchdog

2018-01-10 Thread Sebastian Reichel
; Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- board/ge/bx50v3/bx50v3.c| 1 + include/configs/ge_bx50v3.h | 4 2 files changed, 5 insertions(+) diff --git a/board/ge/bx50v3/bx50v3.c b/board/

[U-Boot] [PATCHv2 13/15] board: ge: bx50v3: mount rootfs read-only

2018-01-10 Thread Sebastian Reichel
a.co.uk> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- include/configs/ge_bx50v3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/ge_bx50v3.h b/include/configs/ge_bx50v3.h index efea303393a0..e006485dc659 100644 --- a/include/c

[U-Boot] [PATCHv2 07/15] board: ge: bx50v3: move FEC MAC address programming to driver

2018-01-10 Thread Sebastian Reichel
..@ge.com> Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- board/ge/bx50v3/bx50v3.c| 79 ++--- include/configs/ge_bx5

[U-Boot] [PATCHv2 00/15] Updates / improvements to bx50v3 support

2018-01-10 Thread Sebastian Reichel
This series improves the support on the bx50v3 devices (b540v3, b650v3 and b850v3). Changes outside of the bx50v3 specific areas: - Added driver for RX8010SJ RTC. - Added functionality to e1000 driver to enable wrting of EEPROM/MAC address. Changes since PATCHv1: * Rebased to v2018.01 *

[U-Boot] [PATCHv2 11/15] config: ge_bx50v3: read boot script

2018-01-10 Thread Sebastian Reichel
From: Ian Ray <ian@ge.com> Read boot script from shared partition, if available. Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- include/

[U-Boot] [PATCHv2 08/15] board: ge: bx50v3: program MAC address to I210

2018-01-10 Thread Sebastian Reichel
n Welch <martyn.we...@collabora.co.uk> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- board/ge/bx50v3/bx50v3.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50

[U-Boot] [PATCHv2 14/15] configs: ge_bx50v3: automatic partition selection and video output failure message

2018-01-10 Thread Sebastian Reichel
ogging by default. Print a message to VGA screen in case of boot failure and reset bootcount to allow the user to attempt boot again. Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Martyn Welch <martyn.we...@collabora.co.uk> Signed-off-by: Sebastian Reichel <sebastian.re

[U-Boot] [PATCHv1] board: ge: ppd: Fix environment variable location

2018-02-15 Thread Sebastian Reichel
From: Nandor Han <nandor@ge.com> This fixes environment variable location to avoid overlapping with U-Boot itself. Also more space for environment variables has been reserved to prevent future issues. Signed-off-by: Nandor Han <nandor@ge.com> Signed-off-by: Sebas

[U-Boot] [PATCHv1] mx53ppd: Change UART clock divider for high baudrate

2018-02-15 Thread Sebastian Reichel
kernel. Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- arch/arm/mach-imx/mx5/lowlevel_init.S | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/mx5/lowlevel_init.S b/arch/arm/mach-imx/mx5/lowlevel_init.S index f5bc6728b7c2..ee4c3afd2fed 100644 --

[U-Boot] [PATCHv2 3/6] bootcount: i2c: Add bus switching to the I2C bootcount driver

2018-07-20 Thread Sebastian Reichel
From: Denis Zalevskiy If there is an I2C mux, current bus should be switched before manipulating with I2C. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- drivers/bootcount/Kconfig | 15 ++- drivers/bootcount/bootcount_i2c.c | 70

[U-Boot] [PATCHv2 5/6] board: ge: Move VPD reading to the vpd_reader

2018-07-20 Thread Sebastian Reichel
-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 48 +--- board/ge/common/vpd_reader.c | 37 --- board/ge/common/vpd_reader.h | 16 board/ge/mx53ppd/mx53ppd.c | 44 +++-- 4 files changed

[U-Boot] [PATCHv2 2/6] board: ge: Move VPD EEPROM configuration to the defconfig

2018-07-20 Thread Sebastian Reichel
From: Denis Zalevskiy Use standard configuration logic to define EEPROM constants. Names are based on VPD_EEPROM_ prefix because EEPROM_ is already used by i2c_eeprom driver. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/Kconfig | 2 ++ board/ge

[U-Boot] [PATCHv2 4/6] bootcount: Configure length limit for I2C bootcount

2018-07-20 Thread Sebastian Reichel
From: Denis Zalevskiy Bootcount driver should verify size against the maximum available space. New configuration parameter adds this capability and keeps backward compatibility by providing default value. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- drivers/bootcount

[U-Boot] [PATCHv2 6/6] board: ge: Store bootcount in EEPROM on PPD and Bx50v3

2018-07-20 Thread Sebastian Reichel
where VPD is stored. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- board/ge/common/vpd_reader.c | 20 configs/ge_bx50v3_defconfig | 18 ++ configs/mx53ppd_defconfig| 19 +++ include/configs/ge_bx50v3.h | 6

[U-Boot] [PATCHv2 1/6] board: ge: Remove EEPROM bus param from read_vpd()

2018-07-20 Thread Sebastian Reichel
From: Denis Zalevskiy The bus is statically defined, so remove redundant parameters from read_vpd() for PPD and Bx50v3. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 6 +++--- board/ge/mx53ppd/mx53ppd.c | 6 +++--- 2 files changed, 6

[U-Boot] [PATCHv2 0/6] GE: Move from ext4 to eeprom bootcounter

2018-07-20 Thread Sebastian Reichel
Writing to ext4 from U-Boot is dangerous in case of inconsistent filesystem state (i.e. due to power-loss). The current U-Boot code can modify the filesystem, so that it is no longer usable by Linux after fsck. This patchset avoids writing to the partition on GE devices by moving the boot counter

Re: [U-Boot] [U-Boot, 2/6] board: ge: Move VPD EEPROM configuration to the defconfig

2018-07-19 Thread Sebastian Reichel
Hi Tom, On Thu, Jul 19, 2018 at 04:31:01PM -0400, Tom Rini wrote: > On Tue, Jun 26, 2018 at 07:43:00PM +0200, Sebastian Reichel wrote: > > > From: Denis Zalevskiy > > > > Use standard configuration logic to define EEPROM constants. Names are > > based on > >

[U-Boot] [PATCHv1] board: ge: bx50v3: enable backlight on demand

2018-03-09 Thread Sebastian Reichel
From: Ian Ray <ian@ge.com> Enable display backlight only if a message needs to be displayed. The kernel re-initializes the backlight, which results in some unwanted artifacts. Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reic...@

[U-Boot] [PATCHv2] board: ge: bx50v3: enable backlight on demand

2018-04-04 Thread Sebastian Reichel
From: Ian Ray <ian@ge.com> Enable display backlight only if a message needs to be displayed. The kernel re-initializes the backlight, which results in some unwanted artifacts. Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reic...@

[U-Boot] [PATCH] board: ge: bx50v3: add winbond SPI NOR support

2018-04-23 Thread Sebastian Reichel
From: Ian Ray <ian@ge.com> Add winbond SPI NOR support, which is being used by newer hardware. Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- configs/ge_b450v3_defconfig | 1 + configs/ge_b650v3_defcon

[U-Boot] [PATCH] ge: ppd: move CONFIG_ENV_IS_IN_MMC to defconfig

2018-04-23 Thread Sebastian Reichel
CONFIG_ENV_IS_IN_MMC must be declared in defconfig to properly support "env save". Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- configs/mx53ppd_defconfig | 1 + include/configs/mx53ppd.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCHv1 7/7] board: ge: bx50v3: remove redundant targets

2018-04-25 Thread Sebastian Reichel
From: Ian Ray <ian@ge.com> This replaces TARGET_GE_B{4,6,8}50V3 with common TARGET_GE_BX50V3. The boards are identified automatically at runtime. Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Nandor Han <nandor@ge.com> Signed-off-by: Sebastian Reich

[U-Boot] [PATCHv1 6/7] board: ge: bx50v3: configure video arguments using VPD

2018-04-25 Thread Sebastian Reichel
From: Ian Ray <ian@ge.com> Configure video arguments at run-time instead of at compile-time. Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Nandor Han <nandor@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- board/g

[U-Boot] [PATCHv1 3/7] board: ge: bx50v3: fix display support for b{46}50v3

2018-04-25 Thread Sebastian Reichel
From: Ian Ray <ian@ge.com> Enable Video PLL to fix non-working display support for Bx50v3 internal displays. Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Nandor Han <nandor@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> ---

[U-Boot] [PATCHv1 2/7] board: ge: bx50v3: unify two switch statements

2018-04-25 Thread Sebastian Reichel
From: Nandor Han <nandor@ge.com> Simplify process_vpd() by unifying the switch statements handling product specific configurations. Signed-off-by: Nandor Han <nandor@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- board/ge/bx

[U-Boot] [PATCHv1 1/7] board: ge: bx50v3: rename detect_baseboard function

2018-04-25 Thread Sebastian Reichel
From: Ian Ray <ian@ge.com> The detect_baseboard() function actually determines whether there is an internal LCD panel or not. Rename for clarity. Signed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Nandor Han <nandor@ge.com> Signed-off-by: Sebastian Reich

[U-Boot] [PATCHv1 0/7] Merge B850v3, B650v3 and B450v3 targets

2018-04-25 Thread Sebastian Reichel
Hi, This merges B{468}50v3 into a BX50V3 target, that works for all three machines. The different boards are detected at runtime. -- Sebastian Ian Ray (5): board: ge: bx50v3: rename detect_baseboard function board: ge: bx50v3: fix display support for b{46}50v3 board: ge: bx50v3: use VPD

[U-Boot] [PATCHv1 5/7] board: ge: bx50v3: use VPD instead of compile-time checks

2018-04-25 Thread Sebastian Reichel
ed-off-by: Ian Ray <ian@ge.com> Signed-off-by: Nandor Han <nandor@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- board/ge/bx50v3/bx50v3.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/board/ge/bx50v3/bx

[U-Boot] [PATCHv1 4/7] board: ge: bx50v3: detect the monitor type by reading VPD earlier

2018-04-25 Thread Sebastian Reichel
m> Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> --- board/ge/bx50v3/bx50v3.c | 36 +--- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c index 3c8689682141..c

[U-Boot] [PATCH] board: ge: Use correct vpd_reader callback signature

2018-12-09 Thread Sebastian Reichel
Fix compiler warning due to incorrect vpd_callback function signature. Signed-off-by: Sebastian Reichel --- board/ge/mx53ppd/mx53ppd.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/board/ge/mx53ppd/mx53ppd.c b/board/ge/mx53ppd/mx53ppd.c index f0c8abf0bb4d

[PATCHv4 1/9] bootcount: add a DM SPI flash backing store for bootcount

2020-09-02 Thread Sebastian Reichel
This driver allows to use SPI flash as backing store for boot counter values with DM enabled. Signed-off-by: Sebastian Reichel --- drivers/bootcount/Kconfig | 10 +++ drivers/bootcount/Makefile| 1 + drivers/bootcount/spi-flash.c | 125 ++ 3 files

[PATCHv4 2/9] rtc: m41t62: reset SQW in m41t62_rtc_reset

2020-09-02 Thread Sebastian Reichel
This takes care of resetting the 32kHz square wave, which is used by some boards as clock source for the SoC. Signed-off-by: Sebastian Reichel --- drivers/rtc/m41t62.c | 89 +--- 1 file changed, 83 insertions(+), 6 deletions(-) diff --git a/drivers/rtc

[PATCHv4 6/9] board: ge: common: rename ge_common.c to ge_rtc.c

2020-09-02 Thread Sebastian Reichel
The file only contains RTC related code, so let's name it accordingly. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 2 +- board/ge/common/Makefile | 2 +- board/ge/common/{ge_common.c => ge_rtc.c} | 0 board/ge/common/{ge_common.h => ge

[PATCHv4 9/9] board: ge: b1x5v2: Add GE B1x5v2 and B1x5Pv2

2020-09-02 Thread Sebastian Reichel
as 'ge_b1x5v2_defconfig' and the combined image u-boot-with-spi.imx can be flashed directly to 1024 byte offset to /dev/mtdblock0. Alternatively SPL and u-boot.imx can be loaded separately via USB-OTG using e.g. imx_usb. Signed-off-by: Sebastian Reichel --- arch/arm/dts/Makefile | 1 + arch/arm

[PATCHv4 8/9] board: ge: common: vpd: separate I2C specific code

2020-09-02 Thread Sebastian Reichel
This separates the I2C specific code from the generic GE vital product data code, so that the generic parts can be used on hardware with VPD stored in SPI flash memory. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 2 +- board/ge/common/vpd_reader.c | 12

[PATCHv4 7/9] board: ge: common: add config option for RTC and VPD feature

2020-09-02 Thread Sebastian Reichel
While this code is being used by all GE platforms its useful to have it behind a config option for hardware bringup of new platforms. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/Kconfig | 2 ++ board/ge/common/Kconfig | 7 +++ board/ge/common/Makefile | 3 ++- board/ge/mx53ppd

[PATCHv4 5/9] sysreset: Add poweroff-gpio driver

2020-09-02 Thread Sebastian Reichel
Add GPIO poweroff driver, which is based on the Linux driver and uses the same DT binding. Reviewed-by: Simon Glass Signed-off-by: Sebastian Reichel --- drivers/sysreset/Kconfig | 7 +++ drivers/sysreset/Makefile| 1 + drivers/sysreset/poweroff_gpio.c | 92

[PATCHv4 0/9] Introduce B1x5v2 support

2020-09-02 Thread Sebastian Reichel
the meantime * poweroff-gpio support is now added using sysreset uclass instead of introducing a new poweroff uclass * B1x5v2 patch has been updated to follow recent U-Boot changes and to add USB mass storage support [0] http://patchwork.ozlabs.org/project/uboot/list/?series=196979 -- Sebastia

[PATCHv4 3/9] rtc: m41t62: add oscillator fail bit reset support

2020-09-02 Thread Sebastian Reichel
In case of empty battery or glitches the oscillator fail bit might be set. This will reset the bit in the reset routine. Signed-off-by: Sebastian Reichel --- drivers/rtc/m41t62.c | 50 1 file changed, 50 insertions(+) diff --git a/drivers/rtc/m41t62

[PATCHv4 4/9] imx6: allow usage of disable_ldb_di_clock_sources for CONFIG_MX6QDL

2020-09-02 Thread Sebastian Reichel
Allow using disable_ldb_di_clock_sources with just the combined CONFIG_MX6QDL being enabled. Signed-off-by: Sebastian Reichel --- arch/arm/mach-imx/mx6/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c index

[PATCHv3 01/10] bootcount: add a DM SPI flash backing store for bootcount

2020-08-21 Thread Sebastian Reichel
This driver allows to use SPI flash as backing store for boot counter values with DM enabled. Signed-off-by: Sebastian Reichel --- drivers/bootcount/Kconfig | 10 +++ drivers/bootcount/Makefile| 1 + drivers/bootcount/spi-flash.c | 125 ++ 3 files

[PATCHv3 00/10] Introduce B1x5v2 support

2020-08-21 Thread Sebastian Reichel
oweroff uclass * B1x5v2 patch has been updated to follow recent U-Boot changes and to add USB mass storage support [0] http://patchwork.ozlabs.org/project/uboot/list/?series=187150 [1] http://patchwork.ozlabs.org/project/uboot/list/?series=195398 -- Sebastian Sebastian Reichel (10): bootco

[PATCHv3 06/10] sysreset: Add poweroff-gpio driver

2020-08-21 Thread Sebastian Reichel
Add GPIO poweroff driver, which is based on the Linux driver and uses the same DT binding. Reviewed-by: Simon Glass Signed-off-by: Sebastian Reichel --- drivers/sysreset/Kconfig | 7 +++ drivers/sysreset/Makefile| 1 + drivers/sysreset/poweroff_gpio.c | 92

[PATCHv3 04/10] rtc: m41t62: add oscillator fail bit reset support

2020-08-21 Thread Sebastian Reichel
In case of empty battery or glitches the oscillator fail bit might be set. This will reset the bit in the reset routine. Signed-off-by: Sebastian Reichel --- drivers/rtc/m41t62.c | 50 1 file changed, 50 insertions(+) diff --git a/drivers/rtc/m41t62

[PATCHv3 03/10] rtc: m41t62: reset SQW in m41t62_rtc_reset

2020-08-21 Thread Sebastian Reichel
This takes care of resetting the 32kHz square wave, which is used by some boards as clock source for the SoC. Signed-off-by: Sebastian Reichel --- drivers/rtc/m41t62.c | 89 +--- 1 file changed, 83 insertions(+), 6 deletions(-) diff --git a/drivers/rtc

[PATCHv3 02/10] gpio: mxc_gpio: add support to read status of output gpios

2020-08-21 Thread Sebastian Reichel
This is supported by the hardware when the pinmux is configured correctly. Usually it is not, so this adds explicit code for this. This fixes all GPIO regulators being shown as disabled. Signed-off-by: Sebastian Reichel --- drivers/gpio/mxc_gpio.c | 10 +- 1 file changed, 9 insertions

[PATCHv3 10/10] board: ge: b1x5v2: Add GE B1x5v2 and B1x5Pv2

2020-08-21 Thread Sebastian Reichel
as 'ge_b1x5v2_defconfig' and the combined image u-boot-with-spi.imx can be flashed directly to 1024 byte offset to /dev/mtdblock0. Alternatively SPL and u-boot.imx can be loaded separately via USB-OTG using e.g. imx_usb. Signed-off-by: Sebastian Reichel --- arch/arm/dts/Makefile | 1 + arch/arm

[PATCHv3 09/10] board: ge: common: vpd: separate I2C specific code

2020-08-21 Thread Sebastian Reichel
This separates the I2C specific code from the generic GE vital product data code, so that the generic parts can be used on hardware with VPD stored in SPI flash memory. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 2 +- board/ge/common/vpd_reader.c | 12

[PATCHv3 08/10] board: ge: common: add config option for RTC and VPD feature

2020-08-21 Thread Sebastian Reichel
While this code is being used by all GE platforms its useful to have it behind a config option for hardware bringup of new platforms. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/Kconfig | 2 ++ board/ge/common/Kconfig | 7 +++ board/ge/common/Makefile | 3 ++- board/ge/mx53ppd

[PATCHv3 07/10] board: ge: common: rename ge_common.c to ge_rtc.c

2020-08-21 Thread Sebastian Reichel
The file only contains RTC related code, so let's name it accordingly. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 2 +- board/ge/common/Makefile | 2 +- board/ge/common/{ge_common.c => ge_rtc.c} | 0 board/ge/common/{ge_common.h => ge

[PATCHv3 05/10] imx6: allow usage of disable_ldb_di_clock_sources for CONFIG_MX6QDL

2020-08-21 Thread Sebastian Reichel
Allow using disable_ldb_di_clock_sources with just the combined CONFIG_MX6QDL being enabled. Signed-off-by: Sebastian Reichel --- arch/arm/mach-imx/mx6/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c index

[PATCHv2 02/10] gpio: mxc_gpio: add support to read status of output gpios

2020-08-13 Thread Sebastian Reichel
This is supported by the hardware when the pinmux is configured correctly. Usually it is not, so this adds explicit code for this. This fixes all GPIO regulators being shown as disabled. Signed-off-by: Sebastian Reichel --- drivers/gpio/mxc_gpio.c | 10 +- 1 file changed, 9 insertions

[PATCHv2 10/10] board: ge: b1x5v2: Add GE B1x5v2 and B1x5Pv2

2020-08-13 Thread Sebastian Reichel
as 'ge_b1x5v2_defconfig' and the combined image u-boot-with-spi.imx can be flashed directly to 1024 byte offset to /dev/mtdblock0. Alternatively SPL and u-boot.imx can be loaded separately via USB-OTG using e.g. imx_usb. Signed-off-by: Sebastian Reichel --- arch/arm/dts/Makefile | 1 + arch/arm

[PATCHv2 05/10] imx6: allow usage of disable_ldb_di_clock_sources for CONFIG_MX6QDL

2020-08-13 Thread Sebastian Reichel
Allow using disable_ldb_di_clock_sources with just the combined CONFIG_MX6QDL being enabled. Signed-off-by: Sebastian Reichel --- arch/arm/mach-imx/mx6/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c index

[PATCHv2 06/10] sysreset: Add poweroff-gpio driver

2020-08-13 Thread Sebastian Reichel
Add GPIO poweroff driver, which is based on the Linux driver and uses the same DT binding. Signed-off-by: Sebastian Reichel --- drivers/sysreset/Kconfig | 6 +++ drivers/sysreset/Makefile| 1 + drivers/sysreset/poweroff_gpio.c | 84 3 files

[PATCHv2 03/10] rtc: m41t62: reset SQW in m41t62_rtc_reset

2020-08-13 Thread Sebastian Reichel
This takes care of resetting the 32kHz square wave, which is used by some boards as clock source for the SoC. Signed-off-by: Sebastian Reichel --- drivers/rtc/m41t62.c | 89 +--- 1 file changed, 83 insertions(+), 6 deletions(-) diff --git a/drivers/rtc

[PATCHv2 09/10] board: ge: common: vpd: separate I2C specific code

2020-08-13 Thread Sebastian Reichel
This separates the I2C specific code from the generic GE vital product data code, so that the generic parts can be used on hardware with VPD stored in SPI flash memory. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 2 +- board/ge/common/vpd_reader.c | 12

[PATCHv2 08/10] board: ge: common: add config option for RTC and VPD feature

2020-08-13 Thread Sebastian Reichel
While this code is being used by all GE platforms its useful to have it behind a config option for hardware bringup of new platforms. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/Kconfig | 2 ++ board/ge/common/Kconfig | 7 +++ board/ge/common/Makefile | 3 ++- board/ge/mx53ppd

[PATCHv2 07/10] board: ge: common: rename ge_common.c to ge_rtc.c

2020-08-13 Thread Sebastian Reichel
The file only contains RTC related code, so let's name it accordingly. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 2 +- board/ge/common/Makefile | 2 +- board/ge/common/{ge_common.c => ge_rtc.c} | 0 board/ge/common/{ge_common.h => ge

[PATCHv2 00/10] Introduce B1x5v2 support

2020-08-13 Thread Sebastian Reichel
-- Sebastian Sebastian Reichel (10): bootcount: add a DM SPI flash backing store for bootcount gpio: mxc_gpio: add support to read status of output gpios rtc: m41t62: reset SQW in m41t62_rtc_reset rtc: m41t62: add oscillator fail bit reset support imx6: allow usage of disable_ldb_di_clock_sources

[PATCHv2 01/10] bootcount: add a DM SPI flash backing store for bootcount

2020-08-13 Thread Sebastian Reichel
This driver allows to use SPI flash as backing store for boot counter values with DM enabled. Signed-off-by: Sebastian Reichel --- drivers/bootcount/Kconfig | 10 +++ drivers/bootcount/Makefile| 1 + drivers/bootcount/spi-flash.c | 125 ++ 3 files

[PATCHv2 04/10] rtc: m41t62: add oscillator fail bit reset support

2020-08-13 Thread Sebastian Reichel
In case of empty battery or glitches the oscillator fail bit might be set. This will reset the bit in the reset routine. Signed-off-by: Sebastian Reichel --- drivers/rtc/m41t62.c | 50 1 file changed, 50 insertions(+) diff --git a/drivers/rtc/m41t62

[PATCH 11/12] board: ge: common: vpd: separate I2C specific code

2020-07-02 Thread Sebastian Reichel
This separates the I2C specific code from the generic GE vital product data code, so that the generic parts can be used on hardware with VPD stored in SPI flash memory. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 2 +- board/ge/common/vpd_reader.c | 12

[PATCH 10/12] board: ge: common: add config option for RTC and VPD feature

2020-07-02 Thread Sebastian Reichel
While this code is being used by all GE platforms its useful to have it behind a config option for hardware bringup of new platforms. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/Kconfig | 2 ++ board/ge/common/Kconfig | 7 +++ board/ge/common/Makefile | 3 ++- board/ge/mx53ppd

[PATCH 00/12] Introduce B1x5v2 support

2020-07-02 Thread Sebastian Reichel
with CONFIG_IS_ENABLED(DM_SPI_FLASH) Sebastian Reichel (11): bootcount: add a DM SPI flash backing store for bootcount gpio: mxc_gpio: add support to read status of output gpios rtc: m41t62: reset SQW in m41t62_rtc_reset rtc: m41t62: add oscillator fail bit reset support imx6: allow usage

[PATCH 12/12] board: ge: b1x5v2: Add GE B1x5v2 and B1x5Pv2

2020-07-02 Thread Sebastian Reichel
as 'ge_b1x5v2_defconfig' and the combined image u-boot-with-spi.imx can be flashed directly to 1024 byte offset to /dev/mtdblock0. Alternatively SPL and u-boot.imx can be loaded separately via USB-OTG using e.g. imx_usb. Signed-off-by: Sebastian Reichel --- arch/arm/dts/Makefile | 1 + arch/arm

[PATCH 07/12] poweroff: Introduce poweroff uclass

2020-07-02 Thread Sebastian Reichel
This adds infrastructure for DM based poweroff drivers including a generic poweroff command, that is exposed via existing CONFIG_CMD_POWEROFF and uses the first registered poweroff driver. Signed-off-by: Sebastian Reichel --- drivers/power/Kconfig | 9 +++ drivers/power/Makefile

[PATCH 01/12] treewide: Replace CONFIG_DM_SPI_FLASH with CONFIG_IS_ENABLED(DM_SPI_FLASH)

2020-07-02 Thread Sebastian Reichel
From: Marek Vasut Perform the replacement to allow platforms use non-DM SPI flash access in SPL/TPL. This is thus far needed on platforms with size constraints. Signed-off-by: Marek Vasut Signed-off-by: Sebastian Reichel --- cmd/sf.c | 4 ++-- drivers/mtd/spi/sf_probe.c | 2

[PATCH 09/12] board: ge: common: rename ge_common.c to ge_rtc.c

2020-07-02 Thread Sebastian Reichel
The file only contains RTC related code, so let's name it accordingly. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 2 +- board/ge/common/Makefile | 2 +- board/ge/common/{ge_common.c => ge_rtc.c} | 0 board/ge/common/{ge_common.h => ge

[PATCH 04/12] rtc: m41t62: reset SQW in m41t62_rtc_reset

2020-07-02 Thread Sebastian Reichel
This takes care of resetting the 32kHz square wave, which is used by some boards as clock source for the SoC. Signed-off-by: Sebastian Reichel --- drivers/rtc/m41t62.c | 89 +--- 1 file changed, 83 insertions(+), 6 deletions(-) diff --git a/drivers/rtc

[PATCH 06/12] imx6: allow usage of disable_ldb_di_clock_sources for CONFIG_MX6QDL

2020-07-02 Thread Sebastian Reichel
Allow using disable_ldb_di_clock_sources with just the combined CONFIG_MX6QDL being enabled. Signed-off-by: Sebastian Reichel --- arch/arm/mach-imx/mx6/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c index

[PATCH 02/12] bootcount: add a DM SPI flash backing store for bootcount

2020-07-02 Thread Sebastian Reichel
This driver allows to use SPI flash as backing store for boot counter values with DM enabled. Signed-off-by: Sebastian Reichel --- drivers/bootcount/Kconfig | 10 +++ drivers/bootcount/Makefile| 1 + drivers/bootcount/spi-flash.c | 125 ++ 3 files

[PATCH 08/12] poweroff: Add poweroff-gpio driver

2020-07-02 Thread Sebastian Reichel
Add GPIO poweroff driver, which is based on the Linux driver and uses the same DT binding. Signed-off-by: Sebastian Reichel --- drivers/power/Kconfig | 8 drivers/power/Makefile| 1 + drivers/power/poweroff-gpio.c | 87 +++ 3 files changed

[PATCH 05/12] rtc: m41t62: add oscillator fail bit reset support

2020-07-02 Thread Sebastian Reichel
In case of empty battery or glitches the oscillator fail bit might be set. This will reset the bit in the reset routine. Signed-off-by: Sebastian Reichel --- drivers/rtc/m41t62.c | 50 1 file changed, 50 insertions(+) diff --git a/drivers/rtc/m41t62

[PATCH 03/12] gpio: mxc_gpio: add support to read status of output gpios

2020-07-02 Thread Sebastian Reichel
This is supported by the hardware when the pinmux is configured correctly. Usually it is not, so this adds explicit code for this. This fixes all GPIO regulators being shown as disabled. Signed-off-by: Sebastian Reichel --- drivers/gpio/mxc_gpio.c | 10 +- 1 file changed, 9 insertions

[PATCH 3/3] board: ge: bx50v3: cleanup phy config

2020-12-08 Thread Sebastian Reichel
oard's PHY rework code. Signed-off-by: Sebastian Reichel --- arch/arm/dts/imx6q-ba16.dtsi | 11 +++ board/ge/bx50v3/bx50v3.c | 35 --- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/arch/arm/dts/imx6q-ba16.dtsi b/arch/arm/dts/imx6q-ba16.

[PATCH 0/3] GE Bx50v3 cleanups

2020-12-08 Thread Sebastian Reichel
Here are some more cleanups for the GE Bx50v3 board(s): PATCH 1+2: replace magic numbers by analyzing name string from the fitImage config node PATCH 3: rely on PHY driver as much as possible -- Sebastian Sebastian Reichel (3): image: support board_fit_config_name_match board

[PATCH 1/3] image: support board_fit_config_name_match

2020-12-08 Thread Sebastian Reichel
Support reusing board_fit_config_name_match() to automatically select a sensible default configuration for booting fitImages using 'bootm'. Signed-off-by: Sebastian Reichel --- common/image-fit.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/common/image-fit.c b/common/image-fit.c

[PATCH 2/3] board: ge: bx50v3: remove confidx magic numbers

2020-12-08 Thread Sebastian Reichel
Instead of hardcoding index magic numbers in the board code, also rely on board_fit_config_name_match choosing the right config for the fitImage containing the kernel. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c| 16 ++-- include/configs/ge_bx50v3.h | 4

Re: [PATCH 1/3] image: support board_fit_config_name_match

2020-12-12 Thread Sebastian Reichel
Hello Simon, On Sat, Dec 12, 2020 at 08:39:45AM -0700, Simon Glass wrote: > > +#if !defined(USE_HOSTCC) && defined(CONFIG_MULTI_DTB_FIT) > > Is there a way to use 'if IS_ENABLED() 'instead? Here Perhaps we need > a new host_build() function in a suitable header file that returns the > value of

[PATCHv2 4/5] board: ge: bx50v3: remove confidx magic numbers

2020-12-14 Thread Sebastian Reichel
Instead of hardcoding index magic numbers in the board code, also rely on board_fit_config_name_match choosing the right config for the fitImage containing the kernel. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c| 16 ++-- include/configs/ge_bx50v3.h | 4

[PATCHv2 0/5] GE Bx50v3 cleanups

2020-12-14 Thread Sebastian Reichel
: rely on PHY driver as much as possible Changes since PATCHv1: * introduce patch 1 & 2 * update patch 3 to avoid #if -- Sebastian Sebastian Reichel (5): compiler.h: add host_build() image: cleanup pre-processor usage image: support board_fit_config_name_match board: ge: bx50v3: re

[PATCHv2 3/5] image: support board_fit_config_name_match

2020-12-14 Thread Sebastian Reichel
Support reusing board_fit_config_name_match() to automatically select a sensible default configuration for booting fitImages using 'bootm'. Signed-off-by: Sebastian Reichel --- common/image-fit.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/common

[PATCHv2 1/5] compiler.h: add host_build()

2020-12-14 Thread Sebastian Reichel
(); This improves code readability and test coverage and compiler will eleminate this unreachable code. Signed-off-by: Sebastian Reichel --- include/compiler.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/compiler.h b/include/compiler.h index 90b7afae5376..27b9843497a4 100644

  1   2   >