[U-Boot] [PATCH] mtd: nand: mxs: fix cache alignment for cache lines >32

2016-08-01 Thread Stefan Agner
From: Stefan Agner Currently the command buffer gets allocated with a size of 32 bytes. This causes warning messages on systems with cache lines bigger than 32 bytes: CACHE: Misaligned operation at range [9df17a00, 9df17a20] Define command buffer to be at least 32 bytes, but more if cache line i

[U-Boot] [PATCH v2 00/10] mx7: add dt support for Colibri iMX7S/iMX7D

2016-08-01 Thread Stefan Agner
From: Stefan Agner This patchset adds device tree support for Colibri iMX7S/iMX7D. It is the first device tree enabled board for any i.MX 7 SoC hence the patchset adds some common infrastructure: - Add device tree support for serial_mxc. - imx7.dtsi - I descided to leave the s/d suffix since the

[U-Boot] [PATCH v2 03/10] arm: dts: imx7: add pinctrl defines

2016-08-01 Thread Stefan Agner
From: Stefan Agner Add pinctrl defines for NXP i.MX 7Solo/7Dual SoC. The pinctrl format is compatible to the Linux kernel, hence this file is a simple copy from the Linux kernel (commit 97f5c1817b7e). Signed-off-by: Stefan Agner --- arch/arm/dts/imx7d-pinfunc.h | 1151

[U-Boot] tegra124 jetson-tk1 ethernet problems.

2016-08-01 Thread Peter Chubb
Hi Folks, Since patch 96350f729c42 "dm: tegra: net: Convert tegra boards to driver model for Ethernet" booting via dhcp has been broken on the Jetson TK1. I tried applying "net: Probe PCI before looking for ethernet devices"; this `works' in that the ethernet device is detected and

Re: [U-Boot] [PATCH 1/2] mmc: dw_mmc: transfer proper bytes to FIFO

2016-08-01 Thread Shawn Lin
在 2016/7/28 10:25, Ziyuan Xu 写道: The former implement, dw_mmc will push and pop the redundant data to FIFO, we should transfer it according to the real size. Bascially I never checked any bootloader code, but I get dw_mmc of uboot to check your patch. Obviously it should be the case you mentio

Re: [U-Boot] [PATCH 5/5] arm: Show cache warnings in U-Boot proper only

2016-08-01 Thread Michal Simek
Hi, On 2.8.2016 08:42, Hannes Schmelzer wrote: > On 20.06.2016 03:43, Simon Glass wrote: >> Avoid bloating the SPL image size. >> >> Signed-off-by: Simon Glass >> --- >> >> arch/arm/lib/cache.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/arch/arm/lib/cache.c

Re: [U-Boot] [PATCH v3 5/5] ARM: dts: dra72-evm: Add mode-gpios entry for mac node

2016-08-01 Thread Mugunthan V N
On Tuesday 02 August 2016 10:14 AM, Vignesh R wrote: > On DRA72 EVM, cpsw slave1 is muxed with VIN2A, hence switch to cpsw > slave0 for ethernet. This is controlled by pcf gpio line. Add > appropriate mode-gpios DT entry so that driver can select the required > slave. > > Signed-off-by: Vignesh R

Re: [U-Boot] [PATCH v3 3/5] ARM: dts: dra7xx: Add u-boot specific property for PCF8575 nodes

2016-08-01 Thread Mugunthan V N
On Tuesday 02 August 2016 10:14 AM, Vignesh R wrote: > PCF8575 does not have any registers hence, offset field needs to be > ignored for i2c read/write. Therefore populate u-boot,i2c-offset-len > with 0 in PCF8575 DT nodes. > > Signed-off-by: Vignesh R Reviewed-by: Mugunthan V N Regards Mugunt

Re: [U-Boot] [PATCH v3 4/5] net: cpsw: Add support to drive gpios for ethernet to be functional

2016-08-01 Thread Mugunthan V N
On Tuesday 02 August 2016 10:14 AM, Vignesh R wrote: > On DRA72 EVM, cpsw slaves may be muxed with other modules. This > selection is controlled by a pcf gpio line. Add support for cpsw driver > to acquire mode-gpios and select the appropriate slave using gpio APIs. > > Signed-off-by: Vignesh R >

Re: [U-Boot] [PATCH v3 2/5] ARM: dra7xx_evm: Enable support for TI PCF8575

2016-08-01 Thread Mugunthan V N
On Tuesday 02 August 2016 10:14 AM, Vignesh R wrote: > On DRA7, pcf chip present at address 0x21 on i2c1, is used to > switch between cpsw slave0 and slave1. Hence, enable PCF > driver for the same. > > Signed-off-by: Vignesh R Reviewed-by: Mugunthan V N Regards Mugunthan V N _

Re: [U-Boot] [PATCH v3 1/5] gpio: Add driver for TI PCF8575 I2C GPIO expander

2016-08-01 Thread Mugunthan V N
On Tuesday 02 August 2016 10:14 AM, Vignesh R wrote: > TI's PCF8575 is a 16-bit I2C GPIO expander.The device features a > 16-bit quasi-bidirectional I/O ports. Each quasi-bidirectional I/O can > be used as an input or output without the use of a data-direction > control signal. The I/Os should be h

Re: [U-Boot] [PATCH 5/5] arm: Show cache warnings in U-Boot proper only

2016-08-01 Thread Hannes Schmelzer
On 20.06.2016 03:43, Simon Glass wrote: Avoid bloating the SPL image size. Signed-off-by: Simon Glass --- arch/arm/lib/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c index 642a952..d330b09 100644 --- a/arch/arm/lib

[U-Boot] [PATCH 4/5] configs: k2e_evm: add random eth address support

2016-08-01 Thread Mugunthan V N
There is only one ethernet mac address in e-fuse, but there are multiple slaves in keystone net, so enable random mac address support. Signed-off-by: Mugunthan V N --- configs/k2e_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2e_evm_defconfig b/configs/k2e_evm_defc

[U-Boot] [PATCH 5/5] configs: k2l_evm: add random eth address support

2016-08-01 Thread Mugunthan V N
There is only one ethernet mac address in e-fuse, but there are multiple slaves in keystone net, so enable random mac address support. Signed-off-by: Mugunthan V N --- configs/k2l_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2l_evm_defconfig b/configs/k2l_evm_defc

[U-Boot] [PATCH 0/5] Enabling multi port ethernet support for keystone net

2016-08-01 Thread Mugunthan V N
Keystone net has multiple slave ethernets, register each slave as individual ethernet so that tftp can be used on any of the ethernet ports. Tested the series on K2HK, K2L, K2E (logs [1]). Also pushed a branch for testing [2] With the patch series there is a checkpatch warning and it can be ignor

[U-Boot] [PATCH 2/5] drivers: net: keystone_net: add support for multi slave ethernet

2016-08-01 Thread Mugunthan V N
Keystone net can have multiple ethernet slaves, currently only slave 1 is supported by the driver. Register multiple slaves as individual ethernets to network framework. Signed-off-by: Mugunthan V N --- drivers/net/keystone_net.c | 222 - 1 file change

[U-Boot] [PATCH 1/5] drivers: net: keystone_net: fix line termination with semi-colon

2016-08-01 Thread Mugunthan V N
Each line should be terminated by semi-colon. It was not caught earlier as there is a proper statement. Fix it by changing the comma with semi-colon. Signed-off-by: Mugunthan V N --- drivers/net/keystone_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/

[U-Boot] [PATCH 3/5] configs: k2hk_evm: add random eth address support

2016-08-01 Thread Mugunthan V N
There is only one ethernet mac address in e-fuse, but there are multiple slaves in keystone net, so enable random mac address support. Signed-off-by: Mugunthan V N --- configs/k2hk_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2hk_evm_defconfig b/configs/k2hk_evm_d

[U-Boot] [GIT PULL] Xilinx changes

2016-08-01 Thread Michal Simek
Hi Tom, please pull these patches to your tree. There are two critical patches. One dm-pre-reloc which get ZynqMP boards back to live. And the second about stack pointer init. Thanks, Michal The following changes since commit 26fb8db0f4d1e7c118b5e8f3a8849f359b91c166: Merge git://git.denx.de/

[U-Boot] [PATCH v2 09/10] colibri_imx7: use Ricoh RN5T567 to reboot the board

2016-08-01 Thread Stefan Agner
From: Stefan Agner Use the external PMIC Ricoh RN5T567 to reliably restart the system. Signed-off-by: Stefan Agner --- board/toradex/colibri_imx7/colibri_imx7.c | 42 +++ 1 file changed, 42 insertions(+) diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/bo

[U-Boot] [PATCH v2 10/10] configs: enable device tree for Colibri iMX7

2016-08-01 Thread Stefan Agner
From: Stefan Agner Enable device tree configuration and specify default device tree for Toradex Colibri iMX7. Also configure CONFIG_CUSTOM_BOARDINFO to avoid that board info get printed twice (once from the device tree and one from the runtime detection in board specific code). Signed-off-by: St

[U-Boot] [PATCH v2 04/10] arm: dts: imx7: add basic i.MX 7/Colibri iMX7 device tree

2016-08-01 Thread Stefan Agner
From: Stefan Agner Add base device for NXP i.MX 7Solo/7Dual. The two SoC are very similar and hence can share the same device tree for boot loaders purpose. Signed-off-by: Stefan Agner Reviewed-by: Simon Glass --- arch/arm/dts/Makefile | 2 + arch/arm/dts/imx7-colibri.dts | 92 +++

[U-Boot] [PATCH v2 08/10] arm: dts: imx7: add Ricoh RN5T567 PMIC node

2016-08-01 Thread Stefan Agner
From: Stefan Agner Add device tree node for Ricoh RN5T567. Currently we do not need the individual DC/DC converters or LDO's (and they are also not yet supported by the driver). Signed-off-by: Stefan Agner --- arch/arm/dts/imx7-colibri.dts | 5 + 1 file changed, 5 insertions(+) diff --gi

[U-Boot] [PATCH v2 07/10] power: pmic: add Ricoh RN5T567 PMIC support

2016-08-01 Thread Stefan Agner
From: Stefan Agner Add device model enabled PMIC driver for Ricoh RN5T567 PMIC used on Colibri iMX7. Signed-off-by: Stefan Agner Reviewed-by: Simon Glass --- doc/device-tree-bindings/pmic/rn5t567.txt | 17 + drivers/power/pmic/Kconfig| 8 +++ drivers/power/pmic/Makefil

[U-Boot] [PATCH v2 05/10] colibri_imx7: remove legancy I2C support

2016-08-01 Thread Stefan Agner
From: Stefan Agner Remove legancy I2C config and code in favor of upcomming DM/DT enable I2C support. Signed-off-by: Stefan Agner --- board/toradex/colibri_imx7/colibri_imx7.c | 40 --- include/configs/colibri_imx7.h| 2 -- 2 files changed, 42 deletion

[U-Boot] [PATCH v2 06/10] colibri_imx7: remove legancy UART platform data

2016-08-01 Thread Stefan Agner
From: Stefan Agner We now use device tree to provide SoC data to the UART driver, there is no need for the legancy UART platform data. Signed-off-by: Stefan Agner --- board/toradex/colibri_imx7/colibri_imx7.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/board/toradex/colibri

[U-Boot] [PATCH v2 02/10] pinctrl: imx: do not announce driver initialization

2016-08-01 Thread Stefan Agner
From: Stefan Agner It is not usual that drivers announce when they have been initialized. use dev_dbg to announce device initialization. Signed-off-by: Stefan Agner Reviewed-by: Simon Glass --- drivers/pinctrl/nxp/pinctrl-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[U-Boot] [PATCH v2 01/10] dm: imx: serial: support device tree

2016-08-01 Thread Stefan Agner
From: Stefan Agner Support instatiation through device tree. Also parse the fsl,dte-mode property to determine whether DTE mode shall be used. Signed-off-by: Stefan Agner Reviewed-by: Simon Glass --- doc/device-tree-bindings/serial/mxc-serial.txt | 8 drivers/serial/serial_mxc.c

Re: [U-Boot] [PATCH 01/10] dm: imx: serial: support device tree

2016-08-01 Thread Stefan Agner
Hi Simon, On 2016-07-31 18:01, Simon Glass wrote: > On 26 July 2016 at 00:22, Stefan Agner wrote: >> From: Stefan Agner >> >> Support instatiation through device tree. Also parse the fsl,dte-mode >> property to determine whether DTE mode shall be used. >> >> Signed-off-by: Stefan Agner >> --- >

[U-Boot] [PATCH v3 2/5] ARM: dra7xx_evm: Enable support for TI PCF8575

2016-08-01 Thread Vignesh R
On DRA7, pcf chip present at address 0x21 on i2c1, is used to switch between cpsw slave0 and slave1. Hence, enable PCF driver for the same. Signed-off-by: Vignesh R --- v3: Pick up CONFIG_PCF8575_GPIO via Kconfig. configs/dra7xx_evm_defconfig| 1 + configs/dra7xx_hs_evm_defconfig | 1 + 2

[U-Boot] [PATCH v3 5/5] ARM: dts: dra72-evm: Add mode-gpios entry for mac node

2016-08-01 Thread Vignesh R
On DRA72 EVM, cpsw slave1 is muxed with VIN2A, hence switch to cpsw slave0 for ethernet. This is controlled by pcf gpio line. Add appropriate mode-gpios DT entry so that driver can select the required slave. Signed-off-by: Vignesh R Reviewed-by: Tom Rini --- v3: No change arch/arm/dts/dra72-

[U-Boot] [PATCH v3 4/5] net: cpsw: Add support to drive gpios for ethernet to be functional

2016-08-01 Thread Vignesh R
On DRA72 EVM, cpsw slaves may be muxed with other modules. This selection is controlled by a pcf gpio line. Add support for cpsw driver to acquire mode-gpios and select the appropriate slave using gpio APIs. Signed-off-by: Vignesh R Reviewed-by: Tom Rini Acked-by: Joe Hershberger --- v3: No ch

[U-Boot] [PATCH v3 1/5] gpio: Add driver for TI PCF8575 I2C GPIO expander

2016-08-01 Thread Vignesh R
TI's PCF8575 is a 16-bit I2C GPIO expander.The device features a 16-bit quasi-bidirectional I/O ports. Each quasi-bidirectional I/O can be used as an input or output without the use of a data-direction control signal. The I/Os should be high before being used as inputs. Read the device documentatio

[U-Boot] [PATCH v3 3/5] ARM: dts: dra7xx: Add u-boot specific property for PCF8575 nodes

2016-08-01 Thread Vignesh R
PCF8575 does not have any registers hence, offset field needs to be ignored for i2c read/write. Therefore populate u-boot,i2c-offset-len with 0 in PCF8575 DT nodes. Signed-off-by: Vignesh R --- v3: New patch. arch/arm/dts/dra7-evm.dts | 1 + arch/arm/dts/dra72-evm.dts | 2 ++ 2 files changed,

[U-Boot] [PATCH v3 0/5] Add support for TI PCF8575 I2C GPIO expander

2016-08-01 Thread Vignesh R
This series adds support for TI's PCF8575 I2C GPIO expander[1] based on Linux Kernel driver for the same. Also adds support for ethernet to use new PCF8575 driver to select appropriate cpsw slaves on dra72. Tested on DRA72 EVM. [1]http://www.ti.com/lit/ds/symlink/pcf8575.pdf Vignesh R (5): gp

[U-Boot] [PATCH] x86: bayleybay: Add PS/2 keyboard and mouse to ASL file

2016-08-01 Thread Bin Meng
Without PS/2 keyboard and mouse in the ASL file, Windows does not see them. No problem for Linux as it probes keyboard and mouse via the legacy 8042 I/O port. Signed-off-by: Bin Meng --- board/intel/bayleybay/acpi/mainboard.asl | 38 1 file changed, 38 insertion

Re: [U-Boot] [PATCH 2/3] arm/PSCI: Fixed the backward compatiblity issue

2016-08-01 Thread york sun
On 08/01/2016 08:29 PM, Zhiqiang Hou wrote: > Hi York, > > Thanks for your comments! > >> -Original Message- >> From: york sun >> Sent: 2016年8月2日 0:10 >> To: Zhiqiang Hou ; u-boot@lists.denx.de; >> albert.u.b...@aribaud.net; hdego...@redhat.com; w...@csie.org; Hongbo >> Zhang ; b.galv...@gm

Re: [U-Boot] [PATCH] configs: rk3399: add gpt and fs support

2016-08-01 Thread Ziyuan Xu
On 2016年08月02日 10:56, Ziyuan Xu wrote: Hi kever, On 2016年08月02日 10:29, Kever Yang wrote: To compatible with distro boot, we need to add gpt and fs support, including gpt table and vfat, ext2, ext4 support. Signed-off-by: Kever Yang --- include/configs/rk3399_common.h | 19 +++

[U-Boot] [PATCH 2/3] dts: rk3399: enable dwmmc for sdcard

2016-08-01 Thread Kever Yang
Signed-off-by: Kever Yang --- arch/arm/dts/rk3399-evb.dts | 4 arch/arm/dts/rk3399.dtsi| 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/arm/dts/rk3399-evb.dts index bbcfcd0..e92a492 100644 --- a/arch/arm/dts/rk3399-evb.dts +++ b/ar

Re: [U-Boot] [PATCH] configs: rk3399: add gpt and fs support

2016-08-01 Thread Ziyuan Xu
On 2016年08月02日 10:56, Ziyuan Xu wrote: Hi kever, On 2016年08月02日 10:29, Kever Yang wrote: To compatible with distro boot, we need to add gpt and fs support, including gpt table and vfat, ext2, ext4 support. Signed-off-by: Kever Yang --- include/configs/rk3399_common.h | 19 +++

[U-Boot] [PATCH 3/3] config: rk3399: enable dwmmc controller

2016-08-01 Thread Kever Yang
Signed-off-by: Kever Yang --- configs/evb-rk3399_defconfig| 1 + include/configs/rk3399_common.h | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index 3f9b47e..18f6ae6 100644 --- a/configs/evb-rk3399_defconfig +++ b/configs/ev

Re: [U-Boot] [PATCH] configs: rk3399: add gpt and fs support

2016-08-01 Thread Ziyuan Xu
Hi kever, On 2016年08月02日 10:29, Kever Yang wrote: To compatible with distro boot, we need to add gpt and fs support, including gpt table and vfat, ext2, ext4 support. Signed-off-by: Kever Yang --- include/configs/rk3399_common.h | 19 +++ 1 file changed, 19 insertions(+)

[U-Boot] [PATCH 0/3] rk3399: enable dwmmc controller for sdcard

2016-08-01 Thread Kever Yang
rk3399 using dwmmc controller for sdcard, let's enable it. this patch set has been test on rk3399 evb. Kever Yang (3): clock: rk3399: add support for dwmmc 400K dts: rk3399: enable dwmmc for sdcard config: rk3399: enable dwmmc controller arch/arm/dts/rk3399-evb.dts | 4 arch/a

[U-Boot] [PATCH 1/3] clock: rk3399: add support for dwmmc 400K

2016-08-01 Thread Kever Yang
MMC core will use 400KHz for card initialize first and then switch to higher frequency like 50MHz, we need to support both 400KHz and about 50MHz for dwmmc controller. Signed-off-by: Kever Yang --- drivers/clk/clk_rk3399.c | 29 + 1 file changed, 21 insertions(+), 8

Re: [U-Boot] [PATCH] configs: rk3399: add gpt and fs support

2016-08-01 Thread Kever Yang
On 08/02/2016 10:29 AM, Kever Yang wrote: To compatible with distro boot, we need to add gpt and fs support, including gpt table and vfat, ext2, ext4 support. Signed-off-by: Kever Yang --- include/configs/rk3399_common.h | 19 +++ 1 file changed, 19 insertions(+) diff --gi

[U-Boot] [PATCH] configs: rk3399: add gpt and fs support

2016-08-01 Thread Kever Yang
To compatible with distro boot, we need to add gpt and fs support, including gpt table and vfat, ext2, ext4 support. Signed-off-by: Kever Yang --- include/configs/rk3399_common.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/configs/rk3399_common.h b/include/c

Re: [U-Boot] Question on Enabling hypervisor mode in u-boot

2016-08-01 Thread Keerthy
On Monday 01 August 2016 11:11 PM, Andreas Färber wrote: Hi Keerthy, Am 01.08.2016 um 12:07 schrieb Keerthy: I am trying to enable hypervisor in u-boot for DRA7(A15 based) family of SoCs which does not have LPAE support yet. Is it mandatory for LPAE to be enabled before enabling hypervisor f

Re: [U-Boot] Question on Enabling hypervisor mode in u-boot

2016-08-01 Thread Keerthy
On Tuesday 02 August 2016 03:16 AM, Alexander Graf wrote: On 01 Aug 2016, at 11:07, Keerthy wrote: Hi Alexander, I am trying to enable hypervisor in u-boot for DRA7(A15 based) family of SoCs which does not have LPAE support yet. Is it mandatory for LPAE to be enabled before enabling hype

Re: [U-Boot] [PATCH] ARM: Rework and correct barrier definitions

2016-08-01 Thread Tom Rini
On Tue, Aug 02, 2016 at 08:37:19AM +0800, Ziyuan Xu wrote: > Hi Tom, > > > On 2016年08月02日 06:54, Tom Rini wrote: > >As part of testing booting Linux kernels on Rockchip devices, it was > >discovered by Ziyuan Xu and Sandy Patterson that we had multiple and for > >some cases incomplete isb definit

Re: [U-Boot] [PATCH] ARM: Rework and correct barrier definitions

2016-08-01 Thread Ziyuan Xu
Hi Tom, On 2016年08月02日 06:54, Tom Rini wrote: As part of testing booting Linux kernels on Rockchip devices, it was discovered by Ziyuan Xu and Sandy Patterson that we had multiple and for some cases incomplete isb definitions. This was causing a failure to boot of the Linux kernel. In order t

[U-Boot] [PATCH] ARM: Rework and correct barrier definitions

2016-08-01 Thread Tom Rini
As part of testing booting Linux kernels on Rockchip devices, it was discovered by Ziyuan Xu and Sandy Patterson that we had multiple and for some cases incomplete isb definitions. This was causing a failure to boot of the Linux kernel. In order to solve this problem as well as cover any corner c

Re: [U-Boot] Question on Enabling hypervisor mode in u-boot

2016-08-01 Thread Alexander Graf
> On 01 Aug 2016, at 11:07, Keerthy wrote: > > Hi Alexander, > > I am trying to enable hypervisor in u-boot for DRA7(A15 based) family of SoCs > which does not have LPAE support yet. > > Is it mandatory for LPAE to be enabled before enabling hypervisor for A15? HYP mode shares the same page

Re: [U-Boot] [PATCH v2 7/7] cmd/bdinfo: extract print_std_bdinfo

2016-08-01 Thread Tom Rini
On Mon, Aug 01, 2016 at 04:10:47AM +0300, Max Filippov wrote: > Tom, Simon, > > On Mon, Aug 1, 2016 at 4:03 AM, Simon Glass wrote: > > On 27 July 2016 at 18:57, Max Filippov wrote: > >> print_std_bdinfo outputs typical set of board information entries: > >> boot params location, memory and flash

[U-Boot] [PATCH V2] misc: add Tegra BPMP driver

2016-08-01 Thread Stephen Warren
From: Stephen Warren The Tegra BPMP (Boot and Power Management Processor) is a separate auxiliary CPU embedded into Tegra to perform power management work, and controls related features such as clocks, resets, power domains, PMIC I2C bus, etc. This driver provides the core low-level communication

[U-Boot] [PATCH 1/2] fdt_support: fdt_translate_address() blob const correctness

2016-08-01 Thread Stephen Warren
From: Stephen Warren The next patch will call fdt_translate_address() from somewhere with a "const void *blob" rather than a "void *blob", so fdt_translate_address() must accept a const pointer too. Constify the minimum number of function parameters to achieve this. Signed-off-by: Stephen Warren

[U-Boot] [PATCH 2/2] fdt: allow fdtdec_get_addr_size_*() to translate addresses

2016-08-01 Thread Stephen Warren
From: Stephen Warren Some code may want to read reg values from DT, but from nodes that aren't associated with DM devices, so using dev_get_addr_index() isn't appropriate. In this case, fdtdec_get_addr_size_*() are the functions to use. However, "translation" (via the chain of ranges properties i

Re: [U-Boot] Disable command at runtime

2016-08-01 Thread Ladislav Michl
On Fri, Jul 29, 2016 at 05:57:58PM +0200, Petr Kubiz??ák wrote: > Ok, I get it, then I'll have to deal with two defconfigs and reflashing for > now. > > Anyway, at least a user feedback / feature request... I believe it would be > useful for many users to have a manufacturing mode, which they woul

Re: [U-Boot] Disable command at runtime

2016-08-01 Thread Wolfgang Denk
Dear Petr, In message <9c257c71-97b6-a83e-3d9d-e3a8459fc...@elnico.cz> you wrote: > > Anyway, at least a user feedback / feature request... I believe it would > be useful for many users to have a manufacturing mode, which they would > escape permanently by e.g. executing some command. In normal

Re: [U-Boot] Disable command at runtime

2016-08-01 Thread Wolfgang Denk
Dear Petr, In message <1f085e1d-378c-5f29-2f35-988b8d110...@elnico.cz> you wrote: > > I wonder whether it is possible to dynamically enable/disable a command. > Since u-boot does not provide any secure authentication method, it is > dangerous to keep some commands available to a potential hacke

Re: [U-Boot] [PATCH 4/9] misc: add Tegra BPMP driver

2016-08-01 Thread Stephen Warren
On 08/01/2016 09:41 AM, Stephen Warren wrote: On 07/31/2016 07:02 PM, Simon Glass wrote: On 27 July 2016 at 15:24, Stephen Warren wrote: From: Stephen Warren The Tegra BPMP (Boot and Power Management Processor) is a separate auxiliary CPU embedded into Tegra to perform power management work,

Re: [U-Boot] [PATCH] armv8: ls2080a/ls1043a/ls1012a: enable support for booti

2016-08-01 Thread Stuart Yoder
> -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Saturday, July 30, 2016 9:03 AM > To: Stuart Yoder > Cc: u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH] armv8: ls2080a/ls1043a/ls1012a: enable support > for booti > > On Fri, Jul 29, 2016 at 03:59:18PM -0500

Re: [U-Boot] [PATCH v3] libfdt: Introduce new ARCH_FIXUP_FDT option

2016-08-01 Thread Simon Glass
On 1 August 2016 at 00:37, Michal Simek wrote: > On 1.8.2016 03:03, Simon Glass wrote: >> On 28 July 2016 at 01:06, Michal Simek wrote: >>> Add new Kconfig option to disable arch_fixup_fdt() calls for cases where >>> U-Boot shouldn't update memory setup in DTB file. >>> One example of usage of th

Re: [U-Boot] [PATCH v2 10/10] boston: Introduce support for the MIPS Boston development board

2016-08-01 Thread Marek Vasut
On 07/31/2016 07:32 PM, Paul Burton wrote: > On 31/07/16 16:56, Marek Vasut wrote: >> On 07/29/2016 10:36 AM, Paul Burton wrote: >> [...] > +#ifndef __ASSEMBLY__ > + > +#include > + > +#define BUILD_PLAT_ACCESSORS(offset, name)\ > +static inline uint32_t rea

Re: [U-Boot] [PATCH v2 01/11] buildman: Tidy up the README a little

2016-08-01 Thread Simon Glass
On 27 July 2016 at 20:32, Simon Glass wrote: > Tidy up some problems found by a recent review. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini > --- > > Changes in v2: None > > tools/buildman/README | 53 > +-- > 1 file changed, 30 inserti

Re: [U-Boot] [PATCH v2 04/11] buildman: Allow the toolchain error to be suppressed

2016-08-01 Thread Simon Glass
On 27 July 2016 at 20:33, Simon Glass wrote: > When there are no toolchains a warning is printed. But in some cases this is > confusing, such as when the user is fetching new toolchains. > > Adjust the function to supress the warning in this case. > > Signed-off-by: Simon Glass > --- > > Changes

Re: [U-Boot] [PATCH v2 03/11] buildman: Fix the 'help' test to use the correct path

2016-08-01 Thread Simon Glass
On 27 July 2016 at 20:33, Simon Glass wrote: > When buildman is run via a symlink, this test fails. Fix it to work the same > way as buildman itself. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/buildman/func_test.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(

Re: [U-Boot] [PATCH v2 02/11] buildman: Automatically create a config file if needed

2016-08-01 Thread Simon Glass
On 27 July 2016 at 21:28, Tom Rini wrote: > On Wed, Jul 27, 2016 at 08:32:59PM -0600, Simon Glass wrote: > >> If there is no ~/.buildman file, buildman currently complains and exists. To >> make things a little more friendly, create an empty one automatically. This >> will not allow things to be b

Re: [U-Boot] [PATCH V2] misc: Tegra BPMP: support child node devices

2016-08-01 Thread Simon Glass
On 1 August 2016 at 11:57, Stephen Warren wrote: > From: Stephen Warren > > The BPMP bindings allow devices to be represented as child nodes of the > BPMP node. This requires the driver to trigger scanning of its node for > those child nodes. > > Signed-off-by: Stephen Warren > --- > v2: Use dm_

[U-Boot] Please pull u-boot-dm

2016-08-01 Thread Simon Glass
Hi Tom, Here's the buildman updates and an fdt patch. If you end up dropping the last two patches (MAKEALL removal) that's fine. But I've included them for now. The following changes since commit 26fb8db0f4d1e7c118b5e8f3a8849f359b91c166: Merge git://git.denx.de/u-boot-rockchip (2016-07-31 20:

Re: [U-Boot] [PATCH v2 10/11] Drop the MAKEALL tool

2016-08-01 Thread Simon Glass
On 27 July 2016 at 20:33, Simon Glass wrote: > Buildman has been around for 3 years now. It has had a lot of use and > testing. Perhaps it is time to remove MAKEALL. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini > --- > > Changes in v2: None > > MAKEALL | 850 > ---

Re: [U-Boot] [PATCH v2 11/11] Drop references to MAKEALL in the documentation

2016-08-01 Thread Simon Glass
On 27 July 2016 at 20:33, Simon Glass wrote: > It is confusing to mention MAKEALL when it is not the normal way of building > U-Boot anymore. Update the documentation to suit. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini > --- > > Changes in v2: None > > README

Re: [U-Boot] [PATCH v2 09/11] buildman: Add a quick-start note

2016-08-01 Thread Simon Glass
On 27 July 2016 at 21:28, Tom Rini wrote: > On Wed, Jul 27, 2016 at 08:33:06PM -0600, Simon Glass wrote: > >> For those who just want to build a board, it is useful to see a quick hint >> right at the start of the documentation. Add a few commands showing how to >> download toolchains and build a

Re: [U-Boot] [PATCH v2 08/11] buildman: Avoid overwriting existing toolchain entries

2016-08-01 Thread Simon Glass
On 27 July 2016 at 21:28, Tom Rini wrote: > On Wed, Jul 27, 2016 at 08:33:05PM -0600, Simon Glass wrote: > >> The current code for setting up the toolchain config always writes the new >> paths to an item called 'toolchain'. This means that it will overwrite any >> existing toolchain item with the

Re: [U-Boot] [PATCH v2 06/11] buildman: Fix a typo in TestSettingsHasPath()

2016-08-01 Thread Simon Glass
On 27 July 2016 at 21:28, Tom Rini wrote: > On Wed, Jul 27, 2016 at 08:33:03PM -0600, Simon Glass wrote: > >> The function comment should say 'buildman'. Fix it. >> >> Signed-off-by: Simon Glass > > Reviewed-by: Tom Rini > > -- > Tom Applied to u-boot-dm

Re: [U-Boot] [PATCH v2 07/11] buildman: Drop the toolchain error when downloading toolchains

2016-08-01 Thread Simon Glass
On 27 July 2016 at 20:33, Simon Glass wrote: > It doesn't make sense to complain about missing toolchains when the > --fetch-arch option is being used. The user is presumably aware that there > is a toolchain problem and is actively correcting it by running with this > option. > > Refactor the cod

Re: [U-Boot] [PATCH v2 05/11] buildman: Improve the toolchain progress/error output

2016-08-01 Thread Simon Glass
On 27 July 2016 at 20:33, Simon Glass wrote: > Use colour to make it easier to see what is going on. Also print a message > before downloading a new toolchain. Mention --fetch-arch in the message that > is shown when there are no available toolchains, since this is the quickest > way to resolve th

[U-Boot] [PATCH V2] misc: Tegra BPMP: support child node devices

2016-08-01 Thread Stephen Warren
From: Stephen Warren The BPMP bindings allow devices to be represented as child nodes of the BPMP node. This requires the driver to trigger scanning of its node for those child nodes. Signed-off-by: Stephen Warren --- v2: Use dm_scan_fdt_dev() to scan sub-nodes. This function was just added. --

Re: [U-Boot] [PATCH 1/4] Introduce CONFIG_SPL_PANIC_ON_NON_FIT_IMAGE

2016-08-01 Thread Simon Glass
Hi, On 1 August 2016 at 11:30, Tom Rini wrote: > > On Mon, Aug 01, 2016 at 10:30:23AM -0500, Andrew F. Davis wrote: > > Introduce CONFIG_SPL_PANIC_ON_NON_FIT_IMAGE. An SPL which define > > this will panic() if the image it has loaded is not a FIT image. > > > > Signed-off-by: Andrew F. Davis > >

Re: [U-Boot] Question on Enabling hypervisor mode in u-boot

2016-08-01 Thread Andreas Färber
Hi Keerthy, Am 01.08.2016 um 12:07 schrieb Keerthy: > I am trying to enable hypervisor in u-boot for DRA7(A15 based) family of > SoCs which does not have LPAE support yet. > > Is it mandatory for LPAE to be enabled before enabling hypervisor for A15? On the Linux kernel side you can't enable KVM

Re: [U-Boot] [PATCH v2 3/3] zynqmp: Remove unnnecessary board config file for dc4

2016-08-01 Thread Jagan Teki
On 1 August 2016 at 10:19, Siva Durga Prasad Paladugu wrote: > Remove unnecessary board specific config file for DC4 > board. > > Signed-off-by: Siva Durga Prasad Paladugu Acked-by: Jagan Teki fyi: I've Acked previously for the same patch, pls- add them in your patch if any such in previous ve

Re: [U-Boot] [PATCH 1/4] Introduce CONFIG_SPL_PANIC_ON_NON_FIT_IMAGE

2016-08-01 Thread Tom Rini
On Mon, Aug 01, 2016 at 10:30:23AM -0500, Andrew F. Davis wrote: > Introduce CONFIG_SPL_PANIC_ON_NON_FIT_IMAGE. An SPL which define > this will panic() if the image it has loaded is not a FIT image. > > Signed-off-by: Andrew F. Davis > --- > Kconfig | 8 > common/spl/spl.c | 4

Re: [U-Boot] [PATCH v2 2/3] zynqmp: Move config IDENT_STRING to defconfig

2016-08-01 Thread Jagan Teki
On 1 August 2016 at 13:42, Michal Simek wrote: > On 1.8.2016 06:49, Siva Durga Prasad Paladugu wrote: >> Move config IDENT_STRING to defconfig for all >> zynqmp boards. >> >> Signed-off-by: Siva Durga Prasad Paladugu >> --- Acked-by: Jagan Teki -- Jagan. __

Re: [U-Boot] [PATCH 2/3] arm/PSCI: Fixed the backward compatiblity issue

2016-08-01 Thread york sun
On 07/31/2016 08:20 PM, Zhiqiang Hou wrote: > Hi York, > > Thanks for your comments! > >> -Original Message- >> From: york sun >> Sent: 2016年7月29日 23:37 >> To: Zhiqiang Hou ; u-boot@lists.denx.de; >> albert.u.b...@aribaud.net; hdego...@redhat.com; w...@csie.org; Hongbo >> Zhang ; b.galv...@

[U-Boot] [PATCH] powerpc/mpc85xx: Update erratum workaround for A006379

2016-08-01 Thread York Sun
Update erratum workaround for A006379 to set register CPCHDBCR0 with value 0x001e, replacing the old value 0x003c. Signed-off-by: York Sun Reported-by: Dave Liu --- arch/powerpc/include/asm/immap_85xx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/inc

Re: [U-Boot] [PATCH] Makefile: Remove tags file on mrproper

2016-08-01 Thread Tom Rini
On Mon, Aug 01, 2016 at 02:41:08PM +0530, Vignesh R wrote: > make tags creates a symbolic link called tags to ctags. Remove this file > on make mrproper or make distclean. > > Signed-off-by: Vignesh R Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [PATCH 6/7] ARM: tegra: enable SD card on p2771-0000

2016-08-01 Thread Stephen Warren
On 07/31/2016 07:04 PM, Simon Glass wrote: Hi Stephen, On 29 July 2016 at 13:15, Stephen Warren wrote: From: Stephen Warren Now that clock and reset drivers exist for Tegra186, we can enable the SD card controller. Now that a BPMP I2C driver exists for Tegra186, we can communicate with the P

Re: [U-Boot] [PATCH 2/7] misc: Tegra BPMP: support child node devices

2016-08-01 Thread Stephen Warren
On 07/31/2016 07:03 PM, Simon Glass wrote: On 29 July 2016 at 13:15, Stephen Warren wrote: From: Stephen Warren The BPMP bindings allow devices to be represented as child nodes of the BPMP node. This requires the driver to trigger scanning of its node for diff --git a/drivers/misc/tegra186

Re: [U-Boot] [PATCH 8/9] mmc: tegra: port to standard clock/reset APIs

2016-08-01 Thread Stephen Warren
On 07/31/2016 08:20 PM, Simon Glass wrote: Hi Stephen, On 27 July 2016 at 15:24, Stephen Warren wrote: From: Stephen Warren Tegra186 supports the new standard clock and reset APIs. Older Tegra SoCs still use custom APIs. Enhance the Tegra MMC driver so that it can operate with either set of

Re: [U-Boot] [PATCH 5/9] clock: add Tegra186 clock driver

2016-08-01 Thread Stephen Warren
On 07/31/2016 07:02 PM, Simon Glass wrote: Hi Stephen, On 27 July 2016 at 15:24, Stephen Warren wrote: From: Stephen Warren In Tegra186, on-SoC clocks are manipulated using IPC requests to the BPMP (Boot and Power Management Processor). This change implements a driver that does that. A tegra

Re: [U-Boot] [PATCH 4/9] misc: add Tegra BPMP driver

2016-08-01 Thread Stephen Warren
On 07/31/2016 07:02 PM, Simon Glass wrote: On 27 July 2016 at 15:24, Stephen Warren wrote: From: Stephen Warren The Tegra BPMP (Boot and Power Management Processor) is a separate auxiliary CPU embedded into Tegra to perform power management work, and controls related features such as clocks,

Re: [U-Boot] [PATCH] serial: bcm283x_mu: Detect disabled serial device

2016-08-01 Thread Alexander Graf
> On 01 Aug 2016, at 16:20, Stephen Warren wrote: > > On 07/29/2016 03:49 PM, Alexander Graf wrote: >> On the raspberry pi, you can disable the serial port to gain dynamic >> frequency >> scaling which can get handy at times. >> >> However, in such a configuration the serial controller gets it

[U-Boot] [PATCH 4/4] ARM: DRA7xx: Disable non-FIT based image loading for HS devices

2016-08-01 Thread Andrew F. Davis
Disable support for loading non-FIT images for DRA7xx platforms using the high-security (HS) device variant. Signed-off-by: Andrew F. Davis --- configs/dra7xx_hs_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/dra7xx_hs_evm_defconfig b/configs/dra7xx_hs_evm_defconfig in

[U-Boot] [PATCH 0/4] Allow disabling non-FIT image loading from SPL

2016-08-01 Thread Andrew F. Davis
Hello all, To address a needed feature brought up by Andreas[0], we need a way to disable SPL from loading non-FIT images. The function spl_parse_image_header is common to all SPL loading paths (common/spl/spl_(nand|net|nor|etc..)) so we add the check here, much like the existing CONFIG_SPL_PANIC

[U-Boot] [PATCH 2/4] ARM: AM57xx: Disable non-FIT based image loading for HS devices

2016-08-01 Thread Andrew F. Davis
Disable support for loading non-FIT images for AM57xx platforms using the high-security (HS) device variant. Signed-off-by: Andrew F. Davis --- configs/am57xx_hs_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am57xx_hs_evm_defconfig b/configs/am57xx_hs_evm_defconfig in

[U-Boot] [PATCH 3/4] ARM: AM437x: Disable non-FIT based image loading for HS devices

2016-08-01 Thread Andrew F. Davis
Disable support for loading non-FIT images for AM437x platforms using the high-security (HS) device variant. Signed-off-by: Andrew F. Davis --- configs/am43xx_hs_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am43xx_hs_evm_defconfig b/configs/am43xx_hs_evm_defconfig in

[U-Boot] [PATCH 1/4] Introduce CONFIG_SPL_PANIC_ON_NON_FIT_IMAGE

2016-08-01 Thread Andrew F. Davis
Introduce CONFIG_SPL_PANIC_ON_NON_FIT_IMAGE. An SPL which define this will panic() if the image it has loaded is not a FIT image. Signed-off-by: Andrew F. Davis --- Kconfig | 8 common/spl/spl.c | 4 2 files changed, 12 insertions(+) diff --git a/Kconfig b/Kconfig index e

Re: [U-Boot] [PATCH 2/9] ARM: tegra: add BPMP DT bindings

2016-08-01 Thread Stephen Warren
On 07/31/2016 07:02 PM, Simon Glass wrote: On 27 July 2016 at 15:24, Stephen Warren wrote: From: Stephen Warren The Tegra BPMP (Boot and Power Management Processor) is a separate auxiliary CPU embedded into Tegra to perform power management work, and controls related features such as clocks,

[U-Boot] [PATCH v2 2/2] cmd: booti: move CONFIG_CMD_BOOTI to Kconfig

2016-08-01 Thread Tom Rini
From: Masahiro Yamada This command is used to boot ARM64 Linux. I made DISTRO_DEFAULTS select this option for ARM64 to respect include/config_distro_defaults.h. Signed-off-by: Masahiro Yamada Signed-off-by: Tom Rini --- Changes in v2: - Move to default y so this isn't in the defconfig files -

[U-Boot] [PATCH v2 1/2] cmd: Split 'bootz' and 'booti' out from 'bootm'

2016-08-01 Thread Tom Rini
The bootz and booti commands rely on common functionality that is found in common/bootm.c and common/bootm_os.c. They do not however rely on the rest of cmd/bootm.c to be implemented so split them into their own files. Have various Makefiles include the required infrastructure for CONFIG_CMD_BOOT

Re: [U-Boot] [PATCH 3/5] i2c: tegra: add standardized clk/reset API support

2016-08-01 Thread Stephen Warren
On 07/31/2016 07:02 PM, Simon Glass wrote: Hi Stephen, On 27 July 2016 at 15:48, Stephen Warren wrote: From: Bryan Wu clk/reset API was tested on T186 platform and previous chip like T210/T124 will still use the old APIs. diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c @

  1   2   >