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

2016-07-25 Thread R, Vignesh
On 7/26/2016 12:26 PM, Wolfgang Denk wrote: > Dear "R, Vignesh", > > In message you wrote: >> @@ -1203,6 +1206,16 @@ static int cpsw_eth_ofdata_to_platdata(struct udevice *dev) return -ENOENT; } + + num_mode_gpios = gpio_get_list_count(dev, "

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

2016-07-25 Thread Wolfgang Denk
Dear "R, Vignesh", In message you wrote: > > >> @@ -1203,6 +1206,16 @@ static int cpsw_eth_ofdata_to_platdata(struct > >> udevice *dev) > >>return -ENOENT; > >>} > >> > >> + > >> + num_mode_gpios = gpio_get_list_count(dev, "mode-gpios"); > > > > Extra blank line added. > >

Re: [U-Boot] [PATCH] splash: Introduce default_splash_locations

2016-07-25 Thread Anatolij Gustschin
On Mon, 25 Jul 2016 23:04:34 +0200 Anatolij Gustschin ag...@denx.de wrote: > applied to u-boot-video/master, removed as it breaks building sandbox. Patch v2 is out now. -- Anatolij ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mail

[U-Boot] [PATCH v2] splash: Introduce default_splash_locations

2016-07-25 Thread Anatolij Gustschin
From: Alexey Brodkin This change introduces default_splash_locations which simplifies splash recovery from the first partition of USB/MMC/SATA drive. Given usual mapping of the first partition of external media for basic boot stuff like uImage/zImage, .dtb etc it looks quite obvious option to pu

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

2016-07-25 Thread R, Vignesh
On 7/25/2016 7:08 PM, Tom Rini wrote: > On Mon, Jul 25, 2016 at 06:40:22PM +0530, 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 s

Re: [U-Boot] [U-Boot, 2/2] tools: env: Add support for direct read/write UBI volumes

2016-07-25 Thread Heiko Schocher
Hello Marcin, Sorry for the long delay Am 06.05.2016 um 14:58 schrieb Marcin Niestroj: Up to now we were able to read/write environment data from/to UBI volumes only indirectly by gluebi driver. This driver creates NAND MTD on top of UBI volumes, which is quite a workaroung for this use case.

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

2016-07-25 Thread Wolfgang Denk
Dear Stefan, In message <20160726062233.7656-4-ste...@agner.ch> you wrote: > > 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. Please provide exact reference including commit ID, s

Re: [U-Boot] [PATCH 0/4] dra7xx: QSPI: Increase SPI bus speed.

2016-07-25 Thread Vignesh R
On Monday 25 July 2016 07:08 PM, Tom Rini wrote: > On Mon, Jul 25, 2016 at 03:45:43PM +0530, Vignesh R wrote: > >> By configuring DPLL_PER_HS13 divider value to provide 76.8MHz clock as >> QSPI fclk on dra7xx, it is possible to operate SPI slave clock at >> 768.MHz which is the maximum supported

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

2016-07-25 Thread Vignesh R
On Monday 25 July 2016 07:08 PM, Tom Rini wrote: > On Mon, Jul 25, 2016 at 06:40:21PM +0530, 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 >>

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-25 Thread Ziyuan Xu
+Simon and heiko On 2016年07月26日 14:30, Ziyuan Xu wrote: Dear All, I add the ISB operation after dcache_disable(), and I can jump to linux kernel entry.:-) diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c index 6eac5ef..5cc09ba 100644 --- a/arch/arm/cpu/armv7/cpu.c +++ b/arch/

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-25 Thread Ziyuan Xu
Dear All, I add the ISB operation after dcache_disable(), and I can jump to linux kernel entry.:-) diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c index 6eac5ef..5cc09ba 100644 --- a/arch/arm/cpu/armv7/cpu.c +++ b/arch/arm/cpu/armv7/cpu.c @@ -43,6 +43,7 @@ int cleanup_before_l

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

2016-07-25 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

Re: [U-Boot] [PATCH] spl_nor.c: Support devicetree sizes different from 16k

2016-07-25 Thread Mike Looijmans
<<< image/jpeg: Unrecognized >>> ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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

2016-07-25 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. Signed-off-by: Stefan Agner --- arch/arm/dts/imx7d-pinfunc.h | 1151 ++ 1

[U-Boot] [PATCH v2] spl_nor.c: Support devicetree sizes different from 16k

2016-07-25 Thread Mike Looijmans
The devicetrees for various platforms already exceed 16k. Add a define CONFIG_SYS_FDT_SIZE to specify the FDT size, and set to 16k for the two boards that define this CONFIG_SYS_FDT_BASE parameter. This allows platforms with larger devicetree blobs to boot from NOR. Signed-off-by: Mike Looijmans

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

2016-07-25 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

Re: [U-Boot] [RFC PATCH] i2c: i2c-uclass-compat: avoid any BSS usage

2016-07-25 Thread Heiko Schocher
Hello Vignesh, Am 25.07.2016 um 12:56 schrieb Vignesh R: As I2C can be used before DRAM initialization for reading EEPROM, avoid using static variables stored in BSS, since BSS is in DRAM, which may not have been initialised yet. Explicitly mark "static global" variables as belonging to the .dat

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

2016-07-25 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 07/10] power: pmic: add Ricoh RN5T567 PMIC support

2016-07-25 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 --- doc/device-tree-bindings/pmic/rn5t567.txt | 17 + drivers/power/pmic/Kconfig| 8 +++ drivers/power/pmic/Makefile | 1 + d

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

2016-07-25 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 06/10] colibri_imx7: remove legancy UART platform data

2016-07-25 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 08/10] arm: dts: imx7: add Ricoh RN5T567 PMIC node

2016-07-25 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 01/10] dm: imx: serial: support device tree

2016-07-25 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 --- The kernel uses fsl,imx21-uart as "base" compatible, should we follow that? doc/device-tree-bindings/serial/mxc-serial

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

2016-07-25 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 --- arch/arm/dts/Makefile | 2 + arch/arm/dts/imx7-colibri.dts | 92 arch/ar

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

2016-07-25 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 --- drivers/pinctrl/nxp/pinctrl-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/nxp/pi

Re: [U-Boot] [PATCH v6] dm: at91: Add driver model support for the spi driver

2016-07-25 Thread Jagan Teki
On 25 July 2016 at 15:27, Wenyou Yang wrote: > Add driver model support while retaining the existing legacy code. > This allows the driver to support boards that have converted to > driver model as well as those that have not. > > Signed-off-by: Wenyou Yang > Reviewed-by: Simon Glass > --- > > C

Re: [U-Boot] [PATCH v5] dm: at91: Add driver model support for the spi driver

2016-07-25 Thread Jagan Teki
On 25 July 2016 at 13:34, wrote: > Hi Jagan, > >> -Original Message- >> From: Jagan Teki [mailto:jagannadh.t...@gmail.com] >> Sent: 2016年7月21日 15:10 >> To: Wenyou Yang >> Cc: U-Boot Mailing List >> Subject: Re: [U-Boot] [PATCH v5] dm: at91: Add driver model support for the >> spi >> dr

[U-Boot] [PATCH] mx7_common: initialize generic timer on all CPU's

2016-07-25 Thread Stefan Agner
From: Stefan Agner Use CONFIG_TIMER_CLK_FREQ to let the non-secure init code initialize the generic timer on all CPU's. This allows to make use of the timer freuquency register also on other CPU than the start CPU which is important for KVM. Signed-off-by: Stefan Agner --- include/configs/mx7

Re: [U-Boot] [PATCH] spi: xilinx: Read reg base address from DTS file

2016-07-25 Thread Jagan Teki
On 26 July 2016 at 10:48, Siva Durga Prasad Paladugu wrote: > From: Michal Simek > > Do not use DM with reg base hardcoding. > > Signed-off-by: Michal Simek > --- > drivers/spi/xilinx_spi.c | 21 + > 1 file changed, 13 insertions(+), 8 deletions(-) > > diff --git a/drivers/s

Re: [U-Boot] [PATCH v3] colibri_imx7: add Colibri iMX7S/iMX7D module support

2016-07-25 Thread Stefan Agner
Hi Stefano, On 2016-07-20 21:27, Stefan Agner wrote: > From: Stefan Agner > > This commit adds support for the Toradex Computer on Modules > Colibri iMX7S/iMX7D. The two modules/SoC's are very similar hence > can be easily supported by one board. The board code detects RAM > size at runtime whic

Re: [U-Boot] [PATCH] spi: xilinx_spi: Add support for Quad mode

2016-07-25 Thread Jagan Teki
On 26 July 2016 at 10:44, Siva Durga Prasad Paladugu wrote: > From: Siva Durga Prasad Paladugu > > Add Quad mode support for xilinx spi driver > Inform the spi framework about quad mode > capability by reading it from devicetree. > > Signed-off-by: Siva Durga Prasad Paladugu > Signed-off-by: Mic

[U-Boot] [PATCH] spi: xilinx_spi: Set the speed to default value

2016-07-25 Thread Siva Durga Prasad Paladugu
Set speed to default value of 100KHz if received as zero from framework. Setting it to zero results in wrong timeout calculation during spi_xfer. Signed-off-by: Siva Durga Prasad Paladugu --- drivers/spi/xilinx_spi.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/driver

[U-Boot] [PATCH] spi: xilinx: Read reg base address from DTS file

2016-07-25 Thread Siva Durga Prasad Paladugu
From: Michal Simek Do not use DM with reg base hardcoding. Signed-off-by: Michal Simek --- drivers/spi/xilinx_spi.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 3e01c66..c557529 100644 --- a

[U-Boot] [PATCH] spi: xilinx_spi: Add support for Quad mode

2016-07-25 Thread Siva Durga Prasad Paladugu
From: Siva Durga Prasad Paladugu Add Quad mode support for xilinx spi driver Inform the spi framework about quad mode capability by reading it from devicetree. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- drivers/spi/xilinx_spi.c | 21 + 1 file

Re: [U-Boot] [PATCH 2/2] config.h: clean unused CONFIG_ENV_SPI_* if using driver model

2016-07-25 Thread york sun
On 07/25/2016 09:05 PM, Qianyu Gong wrote: > Hi York, > > > As the drivel model is a trend anyway, I just doubt if it > is necessary to support non-DM for the new platforms. > > In fact, we have discarded configurations for non-DM SPI such as SPI > mode related macros > > when doing LS1043A upstrea

Re: [U-Boot] [PATCH v2] treewide: move CONFIG_PHYS_64BIT to Kconfig

2016-07-25 Thread york sun
On 07/25/2016 09:07 PM, Masahiro Yamada wrote: > Hi York, > > > 2016-07-26 2:19 GMT+09:00 york sun : > >> Masahiro, >> >> You added CONFIG_PHYS_64BIT=y to most defconfig for powerpc, but not >> C29XPCI. Did you just leave them out on purpose, or just missed? >> >> York > > > Because all of C29XPCIE

Re: [U-Boot] [PATCH 1/3] cmd: bootz: make CMD_BOOTZ depend on CMD_BOOTM

2016-07-25 Thread Masahiro Yamada
Hi Robert, 2016-07-25 22:17 GMT+09:00 Robert P. J. Day : > On Mon, 25 Jul 2016, Masahiro Yamada wrote: > >> The "bootz" command is implemented in the "bootm", so the dependency >> should be reflected in Kconfig. >> >> Signed-off-by: Masahiro Yamada >> --- >> >> Kconfig | 1 + >> cmd/Kconfig

Re: [U-Boot] [PATCH v2] treewide: move CONFIG_PHYS_64BIT to Kconfig

2016-07-25 Thread Masahiro Yamada
Hi York, 2016-07-26 2:19 GMT+09:00 york sun : > Masahiro, > > You added CONFIG_PHYS_64BIT=y to most defconfig for powerpc, but not > C29XPCI. Did you just leave them out on purpose, or just missed? > > York Because all of C29XPCIE_*_defconfig enabled this options, so I decided to add "select P

Re: [U-Boot] [ANN] U-Boot v2016.09-rc1 released

2016-07-25 Thread Simon Glass
Hi Tom, On 25 July 2016 at 21:02, Tom Rini wrote: > On Mon, Jul 25, 2016 at 08:54:38PM -0600, Simon Glass wrote: >> On 25 July 2016 at 20:33, Tom Rini wrote: >> > Hey all, >> > >> > It's release day and v2016.09-rc1 is out and the merge window is closed. >> > I've updated git and the tarballs ar

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

2016-07-25 Thread Simon Glass
Hi Tom, Here's an interim pull request for rockchip including RK3399 SoC support. I hope to come up with another one by the end of the week. The following changes since commit 4579720412744dd13266a3505bb38ce2da819b4f: Prepare v2016.09-rc1 (2016-07-25 22:25:52 -0400) are available in the git

Re: [U-Boot] [ANN] U-Boot v2016.09-rc1 released

2016-07-25 Thread Tom Rini
On Mon, Jul 25, 2016 at 08:54:38PM -0600, Simon Glass wrote: > On 25 July 2016 at 20:33, Tom Rini wrote: > > Hey all, > > > > It's release day and v2016.09-rc1 is out and the merge window is closed. > > I've updated git and the tarballs are also up now. I've made an attempt > > at keeping track o

Re: [U-Boot] [bug report]cmd: cache: output information

2016-07-25 Thread jk
Hi Simon, I'm not very familiar with other archs except, hence I'm not able to implement it.:-( Regards, Ziyuan Xu On 2016年07月26日 10:47, Simon Glass wrote: Hi, On 23 July 2016 at 00:31, jk wrote: Hi guys, I think the output of command 'dcache' is improper. It always print 'writethrough'

Re: [U-Boot] [ANN] U-Boot v2016.09-rc1 released

2016-07-25 Thread Simon Glass
On 25 July 2016 at 20:33, Tom Rini wrote: > Hey all, > > It's release day and v2016.09-rc1 is out and the merge window is closed. > I've updated git and the tarballs are also up now. I've made an attempt > at keeping track of what updated as things went along this time: > - DM / MMC block device

Re: [U-Boot] [PATCH 2/2] config.h: clean unused CONFIG_ENV_SPI_* if using driver model

2016-07-25 Thread york sun
On 07/20/2016 03:51 AM, Gong Qianyu wrote: > When using SPI driver model, it will get the values from DT. So > there is no need to set CONFIG_ENV_SPI_MAX_HZ and > CONFIG_ENV_SPI_MODE any more. > You indicate these macros are not needed _if_ using driver model. You presume the driver model is alwa

Re: [U-Boot] [PATCH 1/2] sandbox: Migrate CONFIG_I2C_EEPROM

2016-07-25 Thread Simon Glass
On 25 July 2016 at 16:21, Tom Rini wrote: > > Most users of CONFIG_I2C_EEPROM were migrated to defconfig a while ago, > but sandbox was skipped. Leave it off for sandbox_spl where it does not > build, but does not need to be either. > > Cc: Simon Glass > Signed-off-by: Tom Rini > --- > configs

Re: [U-Boot] [bug report]cmd: cache: output information

2016-07-25 Thread Simon Glass
Hi, On 23 July 2016 at 00:31, jk wrote: > Hi guys, > > I think the output of command 'dcache' is improper. It always print > 'writethrough' regardless of the real policy, such as write back. > > => dcache > Data (writethrough) Cache is ON > > Not only ARM but also other socs support cache, hence

[U-Boot] [ANN] U-Boot v2016.09-rc1 released

2016-07-25 Thread Tom Rini
Hey all, It's release day and v2016.09-rc1 is out and the merge window is closed. I've updated git and the tarballs are also up now. I've made an attempt at keeping track of what updated as things went along this time: - DM / MMC block device clean up, patman improvements - DM n

Re: [U-Boot] [PATCH 1/2] sandbox: Migrate CONFIG_I2C_EEPROM

2016-07-25 Thread Tom Rini
On Mon, Jul 25, 2016 at 06:21:41PM -0400, Tom Rini wrote: > Most users of CONFIG_I2C_EEPROM were migrated to defconfig a while ago, > but sandbox was skipped. Leave it off for sandbox_spl where it does not > build, but does not need to be either. > > Cc: Simon Glass > Signed-off-by: Tom Rini

Re: [U-Boot] [U-Boot, 3/3] arm64: thunderx_88xx_defconfig: remove unneeded CONFIG_SYS_EXTRA_OPTIONS

2016-07-25 Thread Tom Rini
On Mon, Jul 25, 2016 at 10:06:08PM +0900, Masahiro Yamada wrote: > ARM64 is correctly select'ed in arch/arm/Kconfig, so this line in > the defconfig is unneeded. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: D

Re: [U-Boot] Pull request: nand flash

2016-07-25 Thread Tom Rini
On Mon, Jul 25, 2016 at 01:44:46PM -0500, Scott Wood wrote: > The following changes since commit 29d63a59eaf1c9f3b37e249cda2a97e5e4f183f8: > > ARM: uniphier: add clock/reset settings for xHCI of ProXstream2 (2016-07-24 > 00:44:55 +0900) > > are available in the git repository at: > > git:/

Re: [U-Boot] [U-Boot, 5/5] dtoc: Correct the type widening code in fdt_fallback

2016-07-25 Thread Tom Rini
On Fri, Jul 22, 2016 at 09:22:49AM -0600, Simon Glass wrote: > This code does not match the fdt version in fdt.py. When dtoc is unable to > use the Python libfdt library, it uses the fallback version, which does not > widen arrays correctly. > > Fix this to avoid a warning 'excess elements in arr

Re: [U-Boot] [U-Boot, 4/5] hashtable: Fix compiler warning on 32-bit sandbox

2016-07-25 Thread Tom Rini
On Fri, Jul 22, 2016 at 09:22:48AM -0600, Simon Glass wrote: > This fixes a mismatch between the %zu format and the type used on sandbox. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot, 3/5] part_efi: Fix compiler warning on 32-bit sandbox

2016-07-25 Thread Tom Rini
On Fri, Jul 22, 2016 at 09:22:47AM -0600, Simon Glass wrote: > This fixes a mismatch between the %zu format and the type used on sandbox. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot, 2/5] lzmadec: Use the same type as the lzma call

2016-07-25 Thread Tom Rini
On Fri, Jul 22, 2016 at 09:22:46AM -0600, Simon Glass wrote: > With sandbox on 32-bit the size_t type can be a little inconsistent. Use > the same type as the caller expects to avoid a compiler warning. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -

Re: [U-Boot] [U-Boot, 1/5] sandbox: Add instructions about building on 32-bit machines

2016-07-25 Thread Tom Rini
On Fri, Jul 22, 2016 at 09:22:45AM -0600, Simon Glass wrote: > Sandbox is built with 64-bit ints by default. This doesn't work properly on > 32-bit machines. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital s

Re: [U-Boot] [U-Boot, 1/2] ARM: am33xx: Fix DDR init delay placement

2016-07-25 Thread Tom Rini
On Thu, Jul 21, 2016 at 04:28:31AM -0700, Russ Dill wrote: > The delay needs to be before the write to ref_ctrl register > which initiates refreshes. An improper initialization sequence > generates an L3 noc error. > > Signed-off-by: Russ Dill > Reviewed-by: Tom Rini Applied to u-boot/master,

Re: [U-Boot] [U-Boot, 2/2] ARM: am33xx: Always inhibit init/refresh during DDR phy init

2016-07-25 Thread Tom Rini
On Thu, Jul 21, 2016 at 04:28:32AM -0700, Russ Dill wrote: > A couple of commits have modified the am33xx/am437x ddr2/ddr3 > initialization path to fix certain issues, but have had the side effect > of causing L3 noc errors during initialization. The two commits are: > > 69b918 "am33xx,ddr3: fix

Re: [U-Boot] efi_loader: Make exposed image loader path absolute

2016-07-25 Thread Tom Rini
On Thu, Jul 21, 2016 at 01:44:46AM +0200, Alexander Graf wrote: > When loading an efi image, we pass it the location it was loaded from. > > On file system backends, there are no relative paths, so we should always > pass in absolute ones. For network paths, we may be relative. > > This fixes di

Re: [U-Boot] [U-Boot, v3] keystone: k2h/e/l: Fix DMA coherency for QM PDSP

2016-07-25 Thread Tom Rini
On Tue, Jul 19, 2016 at 02:39:14PM -0400, Karicheri, Muralidharan wrote: > commit 1f807a9f32aa ("ARM: keystone2: Refactor MSMC macros to avoid > left under a macro KS2_MSMC_SEGMENT_QM_PDSP which is no longer valid. > This, in effect disabled DMA coherency for QM PDSP. > > Given that msmc_k2hkle_c

Re: [U-Boot] cmd: misc: Add support for fractions in sleep

2016-07-25 Thread Tom Rini
On Tue, Jul 19, 2016 at 04:20:13PM +0200, mario@gdsys.cc wrote: > A feasible way to communicate certain errors for devices that have no > other way of signalling besides LEDs is to flash these LEDs. For errors > in U-Boot, a script that utilizes the led and sleep commands would be a > practica

Re: [U-Boot] [U-Boot, v2] common: fit: Allow U-Boot images to be booted

2016-07-25 Thread Tom Rini
On Wed, Jul 20, 2016 at 08:32:50AM +0200, mario@gdsys.cc wrote: > In certain circumstances it comes in handy to be able to boot into a second > U-Boot. But as of now it is not possible to boot a U-Boot binary that is > inside > a FIT image, which is problematic for projects that e.g. need to

Re: [U-Boot] [U-Boot, v2, 2/2] rsa: Fix return value and masked error

2016-07-25 Thread Tom Rini
On Fri, Jul 22, 2016 at 08:58:41AM +0200, mario@gdsys.cc wrote: > When signing images, we repeatedly call fit_add_file_data() with > successively increasing size values to include the keys in the DTB. > > Unfortunately, if large keys are used (such as 4096 bit RSA keys), this > process fails

Re: [U-Boot] [U-Boot, v2, 1/2] tools: Fix return code of fit_image_process_sig()

2016-07-25 Thread Tom Rini
On Fri, Jul 22, 2016 at 08:58:40AM +0200, mario@gdsys.cc wrote: > When signing images, we repeatedly call fit_add_file_data() with > successively increasing size values to include the keys in the DTB. > > Unfortunately, if large keys are used (such as 4096 bit RSA keys), this > process fails

Re: [U-Boot] [PATCH 2/2] uniphier: Drop CONFIG_I2C_EEPROM

2016-07-25 Thread Tom Rini
On Tue, Jul 26, 2016 at 11:07:02AM +0900, Masahiro Yamada wrote: > Hi Tom, > > 2016-07-26 7:21 GMT+09:00 Tom Rini : > > This option was set in the main uniphier config file, but was not > > causing the driver to be built, so we just drop the line here. > > > > This option is actually causing driv

Re: [U-Boot] [PATCH 2/2] uniphier: Drop CONFIG_I2C_EEPROM

2016-07-25 Thread Masahiro Yamada
Hi Tom, 2016-07-26 7:21 GMT+09:00 Tom Rini : > This option was set in the main uniphier config file, but was not > causing the driver to be built, so we just drop the line here. > This option is actually causing drivers/misc/i2c_eeprom.o built, and I really need it. yamada@beagle:~/workspace/u

Re: [U-Boot] [PATCH] mx6ul_14x14_evk: Remove unused define

2016-07-25 Thread Fabio Estevam
On Mon, Jul 25, 2016 at 1:45 PM, Diego Dorta wrote: > Remove unused define constant. > > Signed-off-by: Diego Dorta Reviewed-by: Fabio Estevam ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] mx6ul_14x14_evk: Remove unused define

2016-07-25 Thread Diego Dorta
Remove unused define constant. Signed-off-by: Diego Dorta --- board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c index 88d3fbd..160c4c6 1006

[U-Boot] [PATCH] Trimslice config: update for Trimslice so SPI flash works

2016-07-25 Thread Stephen Arnold
From: Steve Arnold This updates the defaults for trimslice so it matches the last vendor config. Use the tegra-uboot-flasher tools to create mmc and spi flash images and flash to the device. Can optionally replace boot.scr with extlinux.conf configuration. Tested on Trimslice Diskless (with SSD)

[U-Boot] [PATCH 26/30] binman: Add support for u-boot.img as an input binary

2016-07-25 Thread Simon Glass
Add an entry type for u-boot.img (a legacy U-Boot image) and a simple test. Signed-off-by: Simon Glass --- tools/binman/etype/u_boot_img.py| 17 + tools/binman/func_test.py | 7 +++ tools/binman/test/36_u_boot_img.dts | 11 +++ 3 files changed, 35 inse

[U-Boot] [PATCH 23/30] binman: Introduce binman, a tool for building binary images

2016-07-25 Thread Simon Glass
This adds the basic code for binman, including command parsing, processing of entries and generation of images. So far no entry types are supported. These will be added in future commits as examples of how to add new types. See the README for documentation. Signed-off-by: Simon Glass --- tool

[U-Boot] [PATCH 28/30] binman: Allow configuration options to be used in .dts files

2016-07-25 Thread Simon Glass
It is sometimes useful to be able to reference configuration options in a device tree source file. Add the necessary includes so that this works. Signed-off-by: Simon Glass --- scripts/Makefile.lib | 5 + 1 file changed, 5 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.

[U-Boot] [PATCH 30/30] RFC: Use binman for an x86 board

2016-07-25 Thread Simon Glass
Add an example usage of binman for an x86 board. This involves adding the image definition to the device tree and using it in the Makefile. The existing ifdtool features are no-longer needed. This is for example only. Signed-off-by: Simon Glass --- Makefile | 45 +++

[U-Boot] [PATCH 18/30] dtoc: Support deleting device tree properties

2016-07-25 Thread Simon Glass
Add support for deleting a device tree property. With the fallback implementation this uses fdtput. With libfdt it uses the API call and updates the offsets afterwards. Signed-off-by: Simon Glass --- lib/libfdt/libfdt.swig | 12 tools/dtoc/fdt.py | 10 ++ tools

[U-Boot] [PATCH 27/30] binman: Add a build rule for binman

2016-07-25 Thread Simon Glass
Add a standard command definition for binman so that it can be used in makefiles. Signed-off-by: Simon Glass --- Makefile | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 7ce933c..6155f11 100644 --- a/Makefile +++ b/Makefile @@ -870,6 +870,12 @@ u-boot.ldr:

[U-Boot] [PATCH 12/30] patman: Add a tools library for using temporary files

2016-07-25 Thread Simon Glass
For tools which want to use input files and temporary output, it is useful to have the handling of these dealt with in one place. Add a new library which allows input files to be read, and output files to be written, all based on a common directory structure. Signed-off-by: Simon Glass --- tool

[U-Boot] [PATCH 29/30] RFC: Use binman for a sunxi board

2016-07-25 Thread Simon Glass
Add an example usage of binman for a sunxi board. This involves adding the image definition to the device tree and using it in the Makefile. This is for example only. Signed-off-by: Simon Glass --- Makefile| 4 +--- arch/arm/dts/sun7i-a20-pcduino3.dts | 12

[U-Boot] [PATCH 22/30] dtoc: Add methods for reading data from properties

2016-07-25 Thread Simon Glass
Provide easy helpers for reading integer, string and boolean values from device-tree properties. Signed-off-by: Simon Glass --- tools/dtoc/fdt_util.py | 25 + 1 file changed, 25 insertions(+) diff --git a/tools/dtoc/fdt_util.py b/tools/dtoc/fdt_util.py index 32f41d7..3a

[U-Boot] [PATCH 20/30] dtoc: Support finding the offset of a property

2016-07-25 Thread Simon Glass
Add a way to find the byte offset of a property within the device tree. This is only supported with the normal libfdt implementation since fdtget does not provide this information. Signed-off-by: Simon Glass --- lib/libfdt/libfdt.swig | 3 +++ tools/dtoc/fdt.py| 11 +++ tools

[U-Boot] [PATCH 21/30] dtoc: Correct quotes in fdt_util

2016-07-25 Thread Simon Glass
The style is to use single quotes for strings where possible. Adjust this function. Signed-off-by: Simon Glass --- tools/dtoc/fdt_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dtoc/fdt_util.py b/tools/dtoc/fdt_util.py index 3e25a8b..32f41d7 100644 --- a/tools

[U-Boot] [PATCH 25/30] binman: Add support for building x86 ROMs

2016-07-25 Thread Simon Glass
The structure of x86 ROMs is pretty complex. There are various binary blobs to place in the image. Microcode requires special handling so that it is available to very early code and can be used without any memory whatsoever. Add support for the various entry types that are currently needed, along

[U-Boot] [PATCH 24/30] binman: Add basic entry types for U-Boot

2016-07-25 Thread Simon Glass
Add entries to support some standard U-Boot binaries, such as u-boot.bin, u-boot.dtb, etc. Also add some tests for these. Signed-off-by: Simon Glass --- tools/binman/etype/blob.py | 37 ++ tools/binman/etype/u_boot.py | 17 + tools/binman/etype/u_

[U-Boot] [PATCH 17/30] dtoc: Move to using bytearray

2016-07-25 Thread Simon Glass
Since we want to be able to change the in-memory device tree using libfdt, use a bytearray instead of a string. This makes interfacing from Python easier. Signed-off-by: Simon Glass --- lib/libfdt/libfdt.swig | 8 tools/dtoc/fdt_normal.py | 2 +- 2 files changed, 9 insertions(+), 1 d

[U-Boot] [PATCH 19/30] dtoc: Support packing the device tree

2016-07-25 Thread Simon Glass
After any node/property deletion the device tree can be packed to remove spare space. Add a way to perform this operation. Note that for fdt_fallback, fdtput automatically packs the device tree after deletion, so no action is required here. Signed-off-by: Simon Glass --- lib/libfdt/libfdt.swig

[U-Boot] [PATCH 16/30] dtoc: Prepare for supporting changing of device trees

2016-07-25 Thread Simon Glass
For binman we need to support deleting properties in the device tree. This will change the offsets of nodes after the deletion. In preparation, add code to keep track of when the offsets are invalid, and regenerate them. Signed-off-by: Simon Glass --- tools/dtoc/fdt_normal.py | 46 +

[U-Boot] [PATCH 14/30] dtoc: Allow the device tree to be compiled from source

2016-07-25 Thread Simon Glass
If a source device tree is provide to the Fdt() constructors, compile it automatically. This will be used in tests, where we want to build a particular test .dts file and check that it works correctly in binman. Signed-off-by: Simon Glass --- tools/dtoc/fdt_fallback.py | 2 ++ tools/dtoc/fdt_n

[U-Boot] [PATCH 13/30] patman: Add a library to handle logging and progress

2016-07-25 Thread Simon Glass
When tools want to display information of varying levels of importance, it helps to provide the user with control over the verbosity of these messages. Progress messages work best if they are displayed and then removed from the display when no-longer relevant. Add a new tout library (terminal out)

[U-Boot] [PATCH 15/30] dtoc: Drop the convert_dash parameter to GetProps()

2016-07-25 Thread Simon Glass
This is not used anywhere in dtoc, so drop it. Signed-off-by: Simon Glass --- tools/dtoc/fdt_fallback.py | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/dtoc/fdt_fallback.py b/tools/dtoc/fdt_fallback.py index ddc4097..cb97cff 100644 --- a/tools/dtoc/fdt_fallback.py

[U-Boot] [PATCH 11/30] dtoc: Move a few more common functions into fdt.py

2016-07-25 Thread Simon Glass
Some functions have the same code in the subclasses. Move these into the superclass to avoid duplication. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 57 ++ tools/dtoc/fdt_fallback.py | 16 - tools/dtoc/fdt_normal.py | 16

[U-Boot] [PATCH 10/30] dtoc: Move Widen() and GetPhandle() into the base class

2016-07-25 Thread Simon Glass
These functions are identical in both subclasses. Move them into the base class. Note: In fact there is a bug in one version, which was fixed by this patch: https://patchwork.ozlabs.org/patch/651697/ Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 41 ++

[U-Boot] [PATCH 09/30] dtoc: Move BytesToValue() and GetEmpty() into PropBase

2016-07-25 Thread Simon Glass
These functions are currently in a separate fdt_util file. Since they are only used from PropBase and subclasses, it makes sense for them to be in the PropBase class. Move these functions into fdt.py along with the list of types. Signed-off-by: Simon Glass --- tools/dtoc/dtoc.py | 17 +

[U-Boot] [PATCH 08/30] dtoc: Create a base class for Fdt

2016-07-25 Thread Simon Glass
At present we have two separate implementations of the Fdt library, one which uses fdtget/fdtput and one which uses libfdt (via swig). Before adding more functionality it makes sense to create a base class for these. This will allow common functions to be shared, and make the Fdt API a little clea

[U-Boot] [PATCH 05/30] dtoc: Move the struct import into the correct order

2016-07-25 Thread Simon Glass
This should be in with the other system includes. Move it. Signed-off-by: Simon Glass --- tools/dtoc/dtoc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py index ec80abe..e9ab46f 100755 --- a/tools/dtoc/dtoc.py +++ b/tools/dtoc/dtoc

[U-Boot] [PATCH 06/30] dtoc: Move the fdt library selection into fdt_select

2016-07-25 Thread Simon Glass
Rather than have dtc worry about which fdt library to use, move this into a helper file. Add a function which creates a new Fdt object and scans it, regardless of the implementation. Signed-off-by: Simon Glass --- tools/dtoc/dtoc.py | 18 +++--- tools/dtoc/fdt_select.py | 23 +

[U-Boot] [PATCH 07/30] dtoc: Rename fdt.py to fdt_normal.py

2016-07-25 Thread Simon Glass
In preparation for creating an Fdt base class, rename this file to indicate it is the normal Fdt implementation. Signed-off-by: Simon Glass --- tools/dtoc/{fdt.py => fdt_normal.py} | 0 tools/dtoc/fdt_select.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename tools/dto

[U-Boot] [PATCH 01/30] x86: Add debugging when a microcode update fails

2016-07-25 Thread Simon Glass
Add a debug() at this point to help figure out what is wrong. Signed-off-by: Simon Glass --- arch/x86/cpu/intel_common/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/cpu/intel_common/cpu.c b/arch/x86/cpu/intel_common/cpu.c index 0fdef6f..ae42095 100644 ---

[U-Boot] [PATCH 04/30] patman: Adjust command.Output() to raise an error by default

2016-07-25 Thread Simon Glass
It is more useful to have this method raise an error when something goes wrong. Make this the default and adjust the few callers that don't want to use it this way. Signed-off-by: Simon Glass --- tools/buildman/control.py | 2 +- tools/patman/checkpatch.py | 3 ++- tools/patman/command.py|

[U-Boot] [PATCH 03/30] x86: Add debugging when cpu_common_init() fails

2016-07-25 Thread Simon Glass
Add a debug() at this point to help figure out what is wrong. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cpu/ivybridge/cpu.c index 0f93905..85e361a 100644 --- a/arch/x

[U-Boot] [PATCH 02/30] x86: ivybridge: Allow microcode to be collated

2016-07-25 Thread Simon Glass
Generally the microcode is combined into a single block only (and removed from the device tree) when there are multiple blocks. But this is not a requirement. Adjust the ivybridge code to avoid assuming this. Signed-off-by: Simon Glass --- arch/x86/cpu/intel_common/microcode.c | 12 +++

[U-Boot] [PATCH 00/30] binman: A tool for creating firmware images

2016-07-25 Thread Simon Glass
This series introduces binman, a tool designed to create firmware images. It provides a way to bring together various binaries and place them in an image, at particular positions and with configurable alignment. Packaging of firmware is quite a different task from building the various parts. In ma

Re: [U-Boot] [PATCH v6 1/4] ARMv7: PSCI: add PSCI v1.0 functions skeleton

2016-07-25 Thread Hongbo Zhang
On Fri, Jul 22, 2016 at 9:41 PM, Tom Rini wrote: > On Thu, Jul 21, 2016 at 06:09:36PM +0800, macro.wav...@gmail.com wrote: > >> From: Hongbo Zhang >> >> This patch adds all the PSCI v1.0 functions in to the common framework, with >> all the functions returning "not implemented" by default, as a c

  1   2   3   >