[U-Boot] [PATCH v4 1/8] armv8: enable BLK code configuration

2018-08-06 Thread Yinbo Zhu
This patch is to enable BLK code configuration for SD boot. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. include/mmc.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/mmc.h b/include/mmc.h index 534

[U-Boot] [PATCH v4 2/8] armv8/ls1088a/ls2088a: esdhc: Add esdhc clock support

2018-08-06 Thread Yinbo Zhu
This patch adds esdhc clock support for ls1088a and ls2088a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. .../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH v4 3/8] Enable CONFIG_BLK and CONFIG_DM_MMC to Kconfig

2018-08-06 Thread Yinbo Zhu
This enables the folowing to Kconfig: CONFIG_BLK CONFIG_DM_MMC Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. configs/ls1021atwr_nor_SECURE_BOOT_defconfig |2 ++ configs/ls1021atwr_nor_defconfig

[U-Boot] [PATCH v4 5/8] armv8: ls1088a: add eSDHC node

2018-08-06 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1088a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. arch/arm/dts/fsl-ls1088a.dtsi |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1088a.dtsi b/ar

[U-Boot] [PATCH v4 6/8] armv8: ls1043a: add eSDHC node

2018-08-06 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1043a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. arch/arm/dts/fsl-ls1043a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1043a.dtsi b/arc

[U-Boot] [PATCH v4 7/8] armv8: ls1046a: add eSDHC node

2018-08-06 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1046a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. arch/arm/dts/fsl-ls1046a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1046a.dtsi b/arc

[U-Boot] [v2 patch] net: fman: Support both new and legacy FMan Compatibles

2018-08-06 Thread Zhao Qiang
Recently the FMan Port and MAC compatibles were changed. This patch aligns the FMan Port and MAC compatibles to the new FMan device tree binding document. The FMan device tree binding document can be found in the Linux kernel: version 3.18.0 commit 297d35fd2a7d3fbd4e5c0f0c1c18213117ba11ba ./Docume

[U-Boot] [PATCH v4 4/8] armv8: ls2088a: add eSDHC node

2018-08-06 Thread Yinbo Zhu
This patch is to add eSDHC node for ls2088a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. arch/arm/dts/fsl-ls2080a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arc

[U-Boot] [PATCH v4 8/8] armv7: ls1021a: enable esdhc

2018-08-06 Thread Yinbo Zhu
This patch is to enable eSDHC for ls1021a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. arch/arm/dts/ls1021a.dtsi |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/dts/ls1021a.dtsi b/arch/arm/dts/ls1021a

[U-Boot] [PATCH v1 2/2] colibri_imx7_emmc: add Colibri iMX7D 1GB (eMMC) module support

2018-08-06 Thread Stefan Agner
From: Stefan Agner This commit adds support for the Toradex Colibri iMX7D 1GB Computer on Module. The module is very similar to the Colibri iMX7D 512MB but uses eMMC instead of raw NAND. This patch introduces a new board specific Kconfig symbol to select between the two flash options. Signed-off

[U-Boot] [PATCH v1 1/2] board: toradex: common: fail gracefully on missing NAND chip

2018-08-06 Thread Stefan Agner
From: Stefan Agner If the NAND chip is missing get_nand_dev_by_index() returns NULL. Fail gracefully in this case. Signed-off-by: Stefan Agner --- board/toradex/common/tdx-cfg-block.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/board/toradex/common/tdx-cfg-block

Re: [U-Boot] [U-Boot, v4, 9/9] ARM: dts: stm32: remove cd-inverted for stm32f746-disco

2018-08-06 Thread Patrice CHOTARD
Hi Tom On 08/05/2018 01:39 AM, Tom Rini wrote: > On Wed, Jul 25, 2018 at 05:49:12PM +0200, Patrice Chotard wrote: > >> As cd-inverted property is no more used by arm_pl180_mmci driver, >> remove it. Update cd-gpios active level accordingly. >> >> Reported-by: Tuomas Tynkkynen >> Signed-off-by: P

[U-Boot] [PATCH 1/2] ARM: dts: stm32: remove cd-inverted for stm32f769-disco

2018-08-06 Thread Patrice Chotard
As cd-inverted property is no more used by arm_pl180_mmci driver, remove it. Update cd-gpios active level accordingly. Reported-by: Tuomas Tynkkynen Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f769-disco.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/

[U-Boot] [PATCH 2/2] ARM: dts: stm32: remove cd-inverted for stm32f746-disco

2018-08-06 Thread Patrice Chotard
As cd-inverted property is no more used by arm_pl180_mmci driver, remove it. Update cd-gpios active level accordingly. Reported-by: Tuomas Tynkkynen Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f746-disco.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch

[U-Boot] [PATCH 0/2] Remove DT cd-inverted property for stm32f7

2018-08-06 Thread Patrice Chotard
This series : - removes DT cd-inverted property for stm32f746 and stm32f769 discovery boards Patrice Chotard (2): ARM: dts: stm32: remove cd-inverted for stm32f769-disco ARM: dts: stm32: remove cd-inverted for stm32f746-disco arch/arm/dts/stm32f746-disco.dts | 4 ++-- arch/arm/dts/st

Re: [U-Boot] [U-Boot,v2,6/6] ARM: dts: stm32mp157: Add ADC DT node

2018-08-06 Thread Patrice CHOTARD
Hi Tom On 08/05/2018 01:39 AM, Tom Rini wrote: > On Tue, Jul 24, 2018 at 04:31:33PM +0200, Fabrice Gasnier wrote: > >> Add ADC device tree node. This allows to get analog conversions on >> stm32mp157. >> >> Signed-off-by: Fabrice Gasnier >> Reviewed-by: Simon Glass > > This doesn't apply curre

[U-Boot] [PATCH] ARM: dts: stm32mp157: Add ADC DT node

2018-08-06 Thread Patrice Chotard
Add ADC device tree node. This allows to get analog conversions on stm32mp157. Signed-off-by: Fabrice Gasnier Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp157c.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/stm32mp157c.dtsi b/a

Re: [U-Boot] [U-Boot, u-boot, 2/2] clk: clk_meson: Add mux and div support for reparent and rate setting

2018-08-06 Thread Neil Armstrong
Hi Tom, On 05/08/2018 01:39, Tom Rini wrote: > On Thu, Jul 26, 2018 at 03:54:04PM +0200, Neil Armstrong wrote: > >> This patch adds support for : >> - Rate calculation through muxes and generic dividers >> - Basic gate setting propagation >> - Reparenting for muxes >> - Clock rate setting through

[U-Boot] [PATCH v4 02/17] powerpc: Add read*_*/write*_* macros

2018-08-06 Thread Mario Six
Define the read*_*/write*_* macros for the PowerPC platform to be able to use the macros in wait_bit.h. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 arch/powerpc/include/asm/io.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/powerpc/include/asm

[U-Boot] [PATCH v4 03/17] sysreset: Add get_status method

2018-08-06 Thread Mario Six
It's useful to have the reset status of the SoC printed out during reset (e.g. to learn whether the reset was caused by software or a watchdog). As a first step to implement this, add a get_status method to the sysreset class, which enables the caller to get printable information about the reset s

[U-Boot] [PATCH v4 04/17] test: Add tests for sysreset_get_status

2018-08-06 Thread Mario Six
Add some tests for sysreset_get_status. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: * Switched to usage of strlcpy v2 -> v3: New in v3. drivers/sysreset/sysreset_sandbox.c | 16 test/dm/sysreset.c | 20 +

[U-Boot] [PATCH v4 10/17] common: board_f: Sort includes

2018-08-06 Thread Mario Six
Includes should be sorted. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: No changes v2 -> v3: No changes v1 -> v2: New in v2 common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/commo

[U-Boot] [PATCH v4 05/17] board_f: Add reset status printing

2018-08-06 Thread Mario Six
To print the reset status during boot, add a method print_resetinfo to board_f, which is called in init_sequence_f[], that gets the reset information from the sysreset driver (assuming there is only one seems reasonable), and prints it. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Note

[U-Boot] [PATCH v4 06/17] mpc83xx: Add sysreset driver

2018-08-06 Thread Mario Six
Add a sysreset driver for the MPC83xx platform. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: * Fixed style violation * Added full documentation * Switched to wait_for_bit_be32 usage * Improved error handling and debug printing * Minimized usage

[U-Boot] [PATCH v4 08/17] timer: Sort Makefile entries

2018-08-06 Thread Mario Six
Makefile entries should be sorted. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 drivers/timer/Makefile | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/timer/Makefile b/drivers/timer/Makefile index ee2fcb1fa71..71c54048540 100644 -

[U-Boot] [PATCH v4 11/17] init: Fix documentation

2018-08-06 Thread Mario Six
The documentation in init.h is not in kernel-doc format. Fix this. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 include/init.h | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/include/init.h b/include/init.h index f114a889631.

[U-Boot] [PATCH v4 09/17] timer: Add MPC83xx timer driver

2018-08-06 Thread Mario Six
Add a timer driver for the MPC83xx architecture. Signed-off-by: Mario Six --- Notes: v3 -> v4: * Removed superfluous get_timer (switched to usage of standard function) * Improved error handling and debug reporting * Added full documentation v2 -> v3: * Got rid of the

[U-Boot] [PATCH v4 14/17] cpu: Add cpu_probe_all method

2018-08-06 Thread Mario Six
Add a method to probe all CPUs of the board. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 drivers/cpu/cpu-uclass.c | 23 +++ include/cpu.h| 7 +++ 2 files changed, 30 insertions(+) diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-

[U-Boot] [PATCH v4 13/17] cpu: Fix cpu.h documentation

2018-08-06 Thread Mario Six
Documentation in cpu.h is not in kernel-doc format. Change it to comply with it. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 include/cpu.h | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/include/cpu.h b/include/cpu.h index

[U-Boot] [PATCH v4 01/17] ram: Add driver for MPC83xx

2018-08-06 Thread Mario Six
Add a RAM driver for the MPC83xx architecture. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: * Switched preprocessor constants to C constants * Improved error reporting * Added driver binding file * Added full documentation v2 -> v3: * C

[U-Boot] [PATCH v4 16/17] cpu: Add MPC83xx CPU driver

2018-08-06 Thread Mario Six
Add a CPU driver for the MPC83xx architecture. Signed-off-by: Mario Six --- Notes: v3 -> v4: * Fixed style violations * Switched to using cpu_probe_all method * Switched to bitfield macros * Moved mpc83xx_cpu_info fields into mpc83xx_cpu_priv * Fixed CPU family determinat

[U-Boot] [PATCH v4 07/17] clk: Add MPC83xx clock driver

2018-08-06 Thread Mario Six
Add a clock driver for the MPC83xx architecture. Signed-off-by: Mario Six --- Notes: v3 -> v4: * Gotten rid of all #ifdefs (SoC is now determined by compatible string) * Added MPC83xx-wide functions to get properties of SoCs * Gotten rid of most clock variables in global data

[U-Boot] [PATCH v4 12/17] board_f: Use static print_cpuinfo if CONFIG_CPU is active

2018-08-06 Thread Mario Six
When the DM CPU drivers are active, printing information about a CPU should be delegated to a matching driver. Hence, add a static print_cpuinfo that implements this delegation when DM CPU drivers are active. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: * Prin

[U-Boot] [PATCH v4 15/17] test: Add tests for CPU uclass

2018-08-06 Thread Mario Six
Add a sandbox CPU driver, and some tests for the CPU uclass. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 arch/sandbox/dts/test.dts | 12 ++ drivers/cpu/Makefile | 1 + drivers/cpu/cpu_sandbox.c | 61 +++ test/dm/Make

[U-Boot] [PATCH v4 17/17] misc: Add MPC83xx serdes driver

2018-08-06 Thread Mario Six
Add a driver to configure the SerDes (Serializer/Deserializer) lanes on the MPC83xx architecture. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: * Added full documentation * Introduced separate local header file * Added error debug output v2 -> v

[U-Boot] [PATCH] mmc: sdhci-of-arasan: Do now show error message in case of deffered probe

2018-08-06 Thread Michal Simek
When mmc-pwrseq property is passed mmc_pwrseq_alloc() can return -EPROBE_DEFER because driver for power sequence provider is not probed yet. Do not show error message when this situation happens. Signed-off-by: Michal Simek --- drivers/mmc/host/sdhci-of-arasan.c | 3 ++- 1 file changed, 2 inser

Re: [U-Boot] [PATCH V2 1/4] power-domain: add dummy functions when CONFIG_POWER_DOMAIN not defined

2018-08-06 Thread Anatolij Gustschin
Hi Peng, On Fri, 27 Jul 2018 10:20:36 +0800 Peng Fan peng@nxp.com wrote: > Add dummy functions when CONFIG_POWER_DOMAIN not defined. > > Signed-off-by: Peng Fan > --- > > V2: Use CONFIG_IS_ENABLED > > include/power-domain.h | 28 > 1 file changed, 28 insertio

Re: [U-Boot] [PATCH V2 2/4] power: Add CONFIG_SPL_POWER_DOMAIN config

2018-08-06 Thread Anatolij Gustschin
On Fri, 27 Jul 2018 10:20:37 +0800 Peng Fan peng@nxp.com wrote: > Add CONFIG_SPL_POWER_DOMAIN config entry. > Build drivers/power/domain if this config is selected. > > Signed-off-by: Peng Fan > Cc: Simon Glass > --- > > V2: New > > common/spl/Kconfig| 9 + > drivers/

Re: [U-Boot] [PATCH V2 3/4] dm: core: device: enable power domain in probe

2018-08-06 Thread Anatolij Gustschin
On Fri, 27 Jul 2018 10:20:38 +0800 Peng Fan peng@nxp.com wrote: > Enable power domain associated with the device when probe. > > Signed-off-by: Peng Fan > Reviewed-by: Simon Glass > --- > > V2: > Add review tag > > drivers/core/device.c | 7 +++ > 1 file changed, 7 insertions(+) Ap

Re: [U-Boot] [PATCH V2 4/4] dm: power-domain: query power domain after get device

2018-08-06 Thread Anatolij Gustschin
On Fri, 27 Jul 2018 10:20:39 +0800 Peng Fan peng@nxp.com wrote: > This is to test power_domain_on in device_probe. > If the device has a power-domain property, enable it > when probe the device. So add the test to check > whether it is powered on or not. > > Signed-off-by: Peng Fan > Reviewe

[U-Boot] [PATCH] ARM: dts: stm32f4: Fix DT dtc warnings

2018-08-06 Thread Patrice Chotard
From: Patrick Delaunay This patch fix the following warnings for for stm32f429 evaluation and discovery boards: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32429i-eval.dts

Re: [U-Boot] [PATCH 1/2] i2c-mux: pca954x: support pca9646 i2c switch

2018-08-06 Thread Peng Fan
Hi, Ping. > -Original Message- > From: Peng Fan > Sent: 2018年7月17日 20:39 > To: h...@denx.de > Cc: u-boot@lists.denx.de; Peng Fan > Subject: [PATCH 1/2] i2c-mux: pca954x: support pca9646 i2c switch > > Add the PCA9646 support, which is 2-wire bus switch and buffered 4-channel. > > Signe

[U-Boot] [PATCH] MAINTAINERS: Update STM32MP fragments

2018-08-06 Thread Patrice Chotard
Add new drivers Add Christophe Kerello and myself as maintainers Signed-off-by: Patrice Chotard --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1bd583c9753d..a3548e2c8044 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -224,11 +224,2

[U-Boot] [PATCH v3 1/4] power-domain: add dummy functions when CONFIG_POWER_DOMAIN not defined

2018-08-06 Thread Anatolij Gustschin
From: Peng Fan Add dummy functions when CONFIG_POWER_DOMAIN not defined. Signed-off-by: Peng Fan Reviewed-by: Simon Glass Signed-off-by: Anatolij Gustschin --- V3: - add 'static inline' to fix build breakage - use -ENOSYS as we do elsewhere to indicate not implemented functionality V2: Us

Re: [U-Boot] [PATCH V2 1/4] power-domain: add dummy functions when CONFIG_POWER_DOMAIN not defined

2018-08-06 Thread Anatolij Gustschin
On Mon, 6 Aug 2018 11:09:27 +0200 Anatolij Gustschin ag...@denx.de wrote: ... > Applied to u-boot-staging/ag...@denx.de, thanks! Dropped, it breaks building. -- Anatolij ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] Unable to boot evb-ast2500

2018-08-06 Thread Cédric Le Goater
On 08/06/2018 05:25 AM, Joel Stanley wrote: > Hello, > > I am attempting to boot evb-ast2500 in Qemu before flashing it to a > system. It doesn't get past the DRAM step, due to getting stuck > endlessly looping in some libfdt code. > > With some debugging turned on, I get this: > > OF: translati

Re: [U-Boot] Unable to boot evb-ast2500

2018-08-06 Thread Joel Stanley
On Mon, 6 Aug 2018 at 19:39, Cédric Le Goater wrote: > > On 08/06/2018 05:25 AM, Joel Stanley wrote: > > Hello, > > > > I am attempting to boot evb-ast2500 in Qemu before flashing it to a > > system. It doesn't get past the DRAM step, due to getting stuck > > endlessly looping in some libfdt code.

Re: [U-Boot] [PATCH 4/6] mvebu: select boot device at SoC level

2018-08-06 Thread Baruch Siach
Hi Dennis, Thanks for taking the time to look into this series. Dennis Gilmore writes: > this patch needs to be rebased on git master as it does not apply. The conflict is trivial for git to handle automatically on rebase (remove, remove). I assume 'git am -3' can do the same. Would you like me

Re: [U-Boot] Unable to boot evb-ast2500

2018-08-06 Thread Cédric Le Goater
On 08/06/2018 12:11 PM, Joel Stanley wrote: > On Mon, 6 Aug 2018 at 19:39, Cédric Le Goater wrote: >> >> On 08/06/2018 05:25 AM, Joel Stanley wrote: >>> Hello, >>> >>> I am attempting to boot evb-ast2500 in Qemu before flashing it to a >>> system. It doesn't get past the DRAM step, due to getting

Re: [U-Boot] [PATCH v3 1/4] power-domain: add dummy functions when CONFIG_POWER_DOMAIN not defined

2018-08-06 Thread Anatolij Gustschin
On Mon, 6 Aug 2018 12:02:45 +0200 Anatolij Gustschin ag...@denx.de wrote: > From: Peng Fan > > Add dummy functions when CONFIG_POWER_DOMAIN not defined. > > Signed-off-by: Peng Fan > Reviewed-by: Simon Glass > Signed-off-by: Anatolij Gustschin > --- > > V3: > - add 'static inline' to fix

Re: [U-Boot] [PATCH v2 3/8] test/py: Import 'configparser' lower case to be python 3.x safe

2018-08-06 Thread Michal Simek
On 14.9.2017 23:34, Paul Burton wrote: > In python 3.x the configparser module is named with all lower case. > Import it as such in order to avoid errors when running on python 3.x, > and fall back to the CamelCase version in order to keep working with > python 2.x. > > Signed-off-by: Paul Burton

[U-Boot] [PATCH] Kirkwood: NAS220: remove bootdelay from CONFIG_EXTRA_ENV_SETTINGS

2018-08-06 Thread Evgeni Dobrev
The default bootdelay of 3 seconds is good enough and there is no need to duplicate it in CONFIG_EXTRA_ENV_SETTINGS. Signed-off-by: Evgeni Dobrev --- include/configs/nas220.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/nas220.h b/include/configs/nas220.h index b37705e26e..

[U-Boot] [PATCH 3/3] Remove includes and PRI* usages in printf() entirely

2018-08-06 Thread Masahiro Yamada
In int-ll64.h, we always use the following typedefs: typedef unsigned int u32; typedef unsigned longuintptr_t; typedef unsigned long long u64; This does not need to match to the compiler's . Do not include it. The use of PRI* makes the code super-ugly. You can simply use

[U-Boot] [PATCH 1/3] Remove CONFIG_USE_STDINT

2018-08-06 Thread Masahiro Yamada
You do not need to use the typedefs provided by compiler. Our compilers are either IPL32 or LP64. Hence, U-Boot can/should always use int-ll64.h typedefs like Linux kernel, whatever the typedefs the compiler internally uses. Signed-off-by: Masahiro Yamada --- README

Re: [U-Boot] [PATCH 1/1] distro_bootcmd: Switch bootefi to use loadaddr by default.

2018-08-06 Thread Kristian Amlie
Ping. Any objections to this change? -- Kristian On 10/07/18 15:29, Kristian Amlie wrote: > loadaddr is configurable in Kconfig using CONFIG_LOADADDR, while > kernel_addr_r is not. Hence, loadaddr is the future. Provide the > existing kernel_addr_r as a fallback if loadaddr is not set. > > Sign

[U-Boot] [PATCH 2/3] arch: types.h: factor out fixed width typedefs to int-ll64.h

2018-08-06 Thread Masahiro Yamada
All architectures have the same definition for s8/16/32/64 and u8/16/32/64. Factor out the duplicated code into . BTW, Linux unified the kernel space definition into int-ll64.h a few years ago as you see in Linux commit 0c79a8e29b5f ("asm/types.h: Remove include/asm-generic/int-l64.h"). Signed-o

Re: [U-Boot] [PATCH] ARM: dts: stm32f4: Fix DT dtc warnings

2018-08-06 Thread Tom Rini
On Mon, Aug 06, 2018 at 11:25:42AM +0200, Patrice Chotard wrote: > From: Patrick Delaunay > > This patch fix the following warnings for for stm32f429 > evaluation and discovery boards: > > unnecessary #address-cells/#size-cells without "ranges" or > child "reg" property > > Signed-off-by: Patri

Re: [U-Boot] [PATCH 1/2] i2c-mux: pca954x: support pca9646 i2c switch

2018-08-06 Thread Anatolij Gustschin
On Tue, 17 Jul 2018 20:38:32 +0800 Peng Fan peng@nxp.com wrote: > Add the PCA9646 support, which is 2-wire bus switch and buffered 4-channel. > > Signed-off-by: Peng Fan Reviewed-by: Anatolij Gustschin -- Anatolij ___ U-Boot mailing list U-Boot@

[U-Boot] MMC_DAVINCI not compliant with CONFIG_BLK

2018-08-06 Thread Adam Ford
From what I gathered over the weekend, the MMC_DAVINCI hasn't migrated to DM_MMC nor does CONFIG_BLK successfully build on ARCH_DAVINCI boards that enable MMC_DAVINCI. I started work to attempt to make it DM_MMC and OF_CONTROL compliant using the da850evm. Before I go too far, I just want to make

Re: [U-Boot] [PATCH v2 3/3] configs: kirkwood: Move RTC_MV to DM and Kconfig

2018-08-06 Thread Stefan Roese
Hi Chris, On 29.06.2018 00:38, Chris Packham wrote: Now that there is DM support in the RTC_MV driver update board configs to use it. Signed-off-by: Chris Packham I'm a bit late this time in the release cycle. This one does not apply any more to master. Could you please rebase this patch and

Re: [U-Boot] [PATCH 4/6] mvebu: select boot device at SoC level

2018-08-06 Thread Stefan Roese
Hi Baruch, On 06.08.2018 12:12, Baruch Siach wrote: Hi Dennis, Thanks for taking the time to look into this series. Dennis Gilmore writes: this patch needs to be rebased on git master as it does not apply. The conflict is trivial for git to handle automatically on rebase (remove, remove). I

Re: [U-Boot] [PATCH 2/2] i2c: imx_lpi2c: add uclass api support

2018-08-06 Thread Anatolij Gustschin
On Tue, 17 Jul 2018 20:38:33 +0800 Peng Fan peng@nxp.com wrote: > Use uclass clk api to get per clk when CONFIG_CLK enabled. > > Signed-off-by: Peng Fan > --- > drivers/i2c/imx_lpi2c.c | 47 --- > include/imx_lpi2c.h | 3 +++ > 2 files change

Re: [U-Boot] [PATCH] ARM: dts: stm32f4: Fix DT dtc warnings

2018-08-06 Thread Patrice CHOTARD
Hi Tom On 08/06/2018 02:07 PM, Tom Rini wrote: > On Mon, Aug 06, 2018 at 11:25:42AM +0200, Patrice Chotard wrote: >> From: Patrick Delaunay >> >> This patch fix the following warnings for for stm32f429 >> evaluation and discovery boards: >> >> unnecessary #address-cells/#size-cells without "range

[U-Boot] DM_SPI, DM_SPI_FLASH due 2018.09

2018-08-06 Thread Adam Ford
Tom / Jagan, Per MIGRATION.txt, (dated 14 March 2018) it shows the deadline for CONFIG_DM_SPI and CONFIG_DM_SPI_FLASH to be 2018.09 which is already in RC1 status. This document also lists some boards which were partially converted and some boards which have not yet started. Is there an update o

Re: [U-Boot] [PATCH 1/2] i2c-mux: pca954x: support pca9646 i2c switch

2018-08-06 Thread Anatolij Gustschin
On Tue, 17 Jul 2018 20:38:32 +0800 Peng Fan peng@nxp.com wrote: > Add the PCA9646 support, which is 2-wire bus switch and buffered 4-channel. > > Signed-off-by: Peng Fan > --- > drivers/i2c/muxes/pca954x.c | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) Applied to u-boot-st

Re: [U-Boot] [PATCH 2/2] i2c: imx_lpi2c: add uclass api support

2018-08-06 Thread Anatolij Gustschin
On Tue, 17 Jul 2018 20:38:33 +0800 Peng Fan peng@nxp.com wrote: > Use uclass clk api to get per clk when CONFIG_CLK enabled. > > Signed-off-by: Peng Fan > --- > drivers/i2c/imx_lpi2c.c | 47 --- > include/imx_lpi2c.h | 3 +++ > 2 files change

Re: [U-Boot] [PATCH u-boot 1/2] power: domain: Add the VPU Power Domain driver

2018-08-06 Thread Neil Armstrong
On 02/08/2018 22:36, Simon Glass wrote: > Hi Neil, > > On 26 July 2018 at 07:54, Neil Armstrong wrote: >> The Amlogic Meson SoCs embeds a specific Power Domain dedicated to the >> Video Processing Unit. >> This patch implements support for this power domain in preparation of the >> future support

[U-Boot] [PATCH v2 u-boot 0/2] Add the VPU Power Domain support

2018-08-06 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a specific Power Domain dedicated to the Video Processing Unit. The first patch implements support for this power domain in preparation of the future support for the Video display support in U-Boot. The second patch adds changes in the clock driver to handle the setup

[U-Boot] [PATCH v2 u-boot 1/2] power: domain: Add the VPU Power Domain driver

2018-08-06 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a specific Power Domain dedicated to the Video Processing Unit. This patch implements support for this power domain in preparation of the future support for the Video display support in U-Boot. This driver will depend on changes in the clock driver to handle the setup

[U-Boot] [PATCH v2 u-boot 2/2] clk: clk_meson: Add mux and div support for reparent and rate setting

2018-08-06 Thread Neil Armstrong
This patch adds support for : - Rate calculation through muxes and generic dividers - Basic gate setting propagation - Reparenting for muxes - Clock rate setting through generic dividers without reparenting Support is only added to the Composite VPU and VAPB clocks in order to support the Video Pr

Re: [U-Boot] [PATCH v4 01/13] test: regmap: Increase size of syscon0 memory

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:06 +0200 Mario Six mario@gdsys.cc wrote: > The upcoming changes to the regmap interface will contain a proper check > for plausibility when reading/writing from/to a register map. To still > have the current tests pass, increase the size of the memory region for > the

[U-Boot] [PATCH] EMDK: Enable bootelf

2018-08-06 Thread Alexey Brodkin
Signed-off-by: Alexey Brodkin --- configs/emdk_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/emdk_defconfig b/configs/emdk_defconfig index e3bccd234fcd..f283a9c9b3c6 100644 --- a/configs/emdk_defconfig +++ b/configs/emdk_defconfig @@ -10,7 +10,6 @@ CONFIG_VERSION_VARIABLE=y

Re: [U-Boot] [PATCH v4 02/13] regmap: Fix documentation

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:07 +0200 Mario Six mario@gdsys.cc wrote: > The documentation in regmap.h is not in kernel-doc format. Correct this. > > Reviewed-by: Anatolij Gustschin > Reviewed-by: Simon Glass > Signed-off-by: Mario Six > > --- > > v3 -> v4: > No changes > > v2 -> v3: > New

Re: [U-Boot] [PATCH v4 03/13] regmap: Add documentation

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:08 +0200 Mario Six mario@gdsys.cc wrote: > Document the regmap_alloc() function. > > Reviewed-by: Anatolij Gustschin > Reviewed-by: Simon Glass > Signed-off-by: Mario Six > > --- > > v3 -> v4: > No changes > > v2 -> v3: > New in v3 > > --- > drivers/core/regm

[U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-06 Thread Simon Goldschmidt
This fixes the board's dts to supply SPL with QSPI info. The EBV Socrates board has DIP switches to boot from SD card or QSPI, so let's fix its defconfig to work for both cases. Signed-off-by: Simon Goldschmidt --- arch/arm/dts/socfpga_cyclone5_socrates.dts | 2 ++ 1 file changed, 2 insertion

Re: [U-Boot] [PATCH v4 04/13] regmap: Improve error handling

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:09 +0200 Mario Six mario@gdsys.cc wrote: > ofnode_read_simple_addr_cells may fail and return a negative error code. > Check for this when initializing regmaps. > > Also check if both_len is zero, since this is perfectly possible, and > would lead to a division-by-zer

Re: [U-Boot] [PATCH v4 05/13] regmap: Introduce init_range

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:10 +0200 Mario Six mario@gdsys.cc wrote: > Both fdtdec_get_addr_size_fixed and of_address_to_resource can fail with > an error, which is not currently checked during regmap initialization. > > Since the indentation depth is already quite deep, extract a new > 'init_r

Re: [U-Boot] [PATCH v4 06/13] regmap: Add error output

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:11 +0200 Mario Six mario@gdsys.cc wrote: > Add some debug output in cases where the initialization of a regmap > fails. > > Reviewed-by: Anatolij Gustschin > Reviewed-by: Simon Glass > Signed-off-by: Mario Six > > --- > > v3 -> v4: > No changes > > v2 -> v3: >

Re: [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:12 +0200 Mario Six mario@gdsys.cc wrote: > The regmap functions currently assume that all register map accesses > have a data width of 32 bits, but there are maps that have different > widths. > > To rectify this, implement the regmap_raw_read and regmap_raw_write >

Re: [U-Boot] [PATCH v4 08/13] regmap: Support reading from specific range

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:13 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > drivers/core/regmap.c | 49 - > include/regmap.h | 31 +++ > 2 files changed, 75 insertions(+), 5 deletions(-) Applied to u-boot-stag

Re: [U-Boot] [PATCH v4 08/13] regmap: Support reading from specific range

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:13 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > drivers/core/regmap.c | 49 - > include/regmap.h | 31 +++ > 2 files changed, 75 insertions(+), 5 deletions(-) Applied to u-boot-stag

Re: [U-Boot] [PATCH 1/5] arm: socfpga: fix SPL on gen5 after moving to DM serial

2018-08-06 Thread Marek Vasut
On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > There were some NULL pointers dereferenced because DM was used > too early without correct initialization. This needs better explanation, really. > This fixes commit 73172753f4f3 ("ARM: socfpga: Convert to DM serial") > > Signed-off-by: Simon Go

Re: [U-Boot] [PATCH 3/5] arm: socfpga: cyclone5: handle debug uart

2018-08-06 Thread Marek Vasut
On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > If CONFIG_DEBUG_UART is enabled, correctly initialize > the debug uart before console is initialized to debug > early boot problems in SPL. > > This also changes a printf in reset_manager_gen5 to > a debug to prevent calling into debug uart before

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-06 Thread Marek Vasut
On 08/06/2018 03:05 PM, Simon Goldschmidt wrote: > This fixes the board's dts to supply SPL with QSPI info. > > The EBV Socrates board has DIP switches to boot from SD card or > QSPI, so let's fix its defconfig to work for both cases. > > Signed-off-by: Simon Goldschmidt > > --- > > arch/arm/

Re: [U-Boot] [PATCH 2/5] arm: socfpga: fix device trees to work with DM serial

2018-08-06 Thread Marek Vasut
On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > Device trees need to have the serial console device available > before relocation and require a stdout-path in chosen at least > for SPL to have a console. > > Signed-off-by: Simon Goldschmidt This should be upstreamed to Linux too ? > --- > >

Re: [U-Boot] [PATCH 5/5] malloc_simple: calloc: don't call memset if malloc failed

2018-08-06 Thread Marek Vasut
On 08/05/2018 09:35 PM, Simon Goldschmidt wrote: > malloc_simple() can return 0 if out of memory. Don't call memset > from calloc() in this case but rely on the caller checking > the return value. > > Signed-off-by: Simon Goldschmidt > --- > > common/malloc_simple.c | 3 ++- > 1 file changed, 2

Re: [U-Boot] [PATCH 3/3] Remove includes and PRI* usages in printf() entirely

2018-08-06 Thread Andy Shevchenko
On Mon, Aug 6, 2018 at 2:47 PM, Masahiro Yamada wrote: > The use of PRI* makes the code super-ugly. You can simply use > "l" for printing uintptr_t, "ll" for u64, and no modifier for u32. This is not always the case. I dunno what exact usage of PRIx in U-Boot, but this is correct way for some s

Re: [U-Boot] [PATCH 4/5] board_init.c: fix simple malloc by storing malloc_limit

2018-08-06 Thread Marek Vasut
On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > board_init_f_init_reserve() sets gd->malloc_base but does > not set gd->malloc_limit. This results in malloc_simple() > failing, so let's set this here. > > Signed-off-by: Simon Goldschmidt > --- > > common/init/board_init.c | 1 + > 1 file cha

Re: [U-Boot] [PATCHv2 2/2] Convert all of CONFIG_CONS_INDEX to Kconfig

2018-08-06 Thread Adam Ford
On Tue, Mar 6, 2018 at 6:02 PM Tom Rini wrote: > > This converts the following to Kconfig: >CONFIG_CONS_INDEX > > We have existing entries for this option in a number of places, with > different guards on them. They're also sometimes used for things not > directly inside of the serial driver.

Re: [U-Boot] [PATCH v4 10/13] test: regmap: Add test for regmap_{set, get}

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:15 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > test/dm/regmap.c | 28 > 1 file changed, 28 insertions(+) Applied to u-boot-staging/ag...@denx.de, thanks! -- Anatolij ___ U-Boot mailing li

Re: [U-Boot] [PATCH 4/5] board_init.c: fix simple malloc by storing malloc_limit

2018-08-06 Thread Simon Goldschmidt
Marek Vasut schrieb am Mo., 6. Aug. 2018, 15:19: > On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > > board_init_f_init_reserve() sets gd->malloc_base but does > > not set gd->malloc_limit. This results in malloc_simple() > > failing, so let's set this here. > > > > Signed-off-by: Simon Goldsch

Re: [U-Boot] [PATCH 3/5] arm: socfpga: cyclone5: handle debug uart

2018-08-06 Thread Simon Goldschmidt
Marek Vasut schrieb am Mo., 6. Aug. 2018, 15:19: > On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > > If CONFIG_DEBUG_UART is enabled, correctly initialize > > the debug uart before console is initialized to debug > > early boot problems in SPL. > > > > This also changes a printf in reset_manag

Re: [U-Boot] [PATCH 1/5] arm: socfpga: fix SPL on gen5 after moving to DM serial

2018-08-06 Thread Simon Goldschmidt
Marek Vasut schrieb am Mo., 6. Aug. 2018, 15:18: > On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > > There were some NULL pointers dereferenced because DM was used > > too early without correct initialization. > > This needs better explanation, really. > Ok. > This fixes commit 73172753f4f3

Re: [U-Boot] [PATCH 2/5] arm: socfpga: fix device trees to work with DM serial

2018-08-06 Thread Simon Goldschmidt
Marek Vasut schrieb am Mo., 6. Aug. 2018, 15:19: > On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > > Device trees need to have the serial console device available > > before relocation and require a stdout-path in chosen at least > > for SPL to have a console. > > > > Signed-off-by: Simon Gold

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-06 Thread Simon Goldschmidt
Marek Vasut schrieb am Mo., 6. Aug. 2018, 15:19: > On 08/06/2018 03:05 PM, Simon Goldschmidt wrote: > > This fixes the board's dts to supply SPL with QSPI info. > > > > The EBV Socrates board has DIP switches to boot from SD card or > > QSPI, so let's fix its defconfig to work for both cases. > >

[U-Boot] [PATCH v5 11/13] misc: Sort Makefile entries

2018-08-06 Thread Anatolij Gustschin
From: Mario Six Makefile entries should be sorted. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six Signed-off-by: Anatolij Gustschin --- v4 -> v5: Drop re-ordered entries that are not in mainline (e.g. CONFIG_GDSYS_IOEP, CONFIG_MPC83XX_SERDES, misc_sandbox.o

Re: [U-Boot] [PATCH v4 11/13] misc: Sort Makefile entries

2018-08-06 Thread Anatolij Gustschin
Hi Mario, On Fri, 3 Aug 2018 10:01:16 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > drivers/misc/Makefile | 60 > +++ > 1 file changed, 32 insertions(+), 28 deletions(-) this one doesn't apply on git/master, I've sent rebased patch v5. -

[U-Boot] [PATCH] sf: Add XMC xm25qh64a and xm25qh128a entries

2018-08-06 Thread Stefan Roese
This patch adds support for 2 new XMC (Wuhan Xinxin Semiconductor Manufacturing Corp) SPI NOR chips. This support can be enabled by selecting the SPI_FLASH_XMC Kconfig option. Signed-off-by: Stefan Roese Cc: Jagan Teki --- drivers/mtd/spi/Kconfig | 6 ++ drivers/mtd/spi/spi_flash_i

[U-Boot] [PATCH] sf: Add SPI_FLASH_4BYTE_MODE_ONLY option to support 4-byte mode

2018-08-06 Thread Stefan Roese
Some SPI NOR chips only support 4-byte mode addressing. Here the default 3-byte mode does not work and leads to incorrect accesses. Setting this option enables the use of such SPI NOR chips, that only support this 4-byte mode. This was noticed on the LinkIt Smart 7688 modul, which is equipped with

Re: [U-Boot] [PATCH 2/5] arm: socfpga: fix device trees to work with DM serial

2018-08-06 Thread Simon Goldschmidt
Emmanuel Vadot schrieb am Mo., 6. Aug. 2018, 15:48: > On Mon, 6 Aug 2018 15:42:01 +0200 > Simon Goldschmidt wrote: > > > Marek Vasut schrieb am Mo., 6. Aug. 2018, 15:19: > > > > > On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > > > > Device trees need to have the serial console device availa

  1   2   3   >