[U-Boot] [PATCH] semihosting: Improve ARMv7A support

2015-08-09 Thread Andrey Smirnov
Previous implementation of semihosting didn't account for cases where doing an SVC call would clobber various data(most notable case would be 'lr' and 'spsr' when doing SVC call in Supervisor mode). This patch is an adaptation of the code from Newlib's Angel_SWI feature (can be found in

Re: [U-Boot] [PATCH v2 04/19] i2c: Add a mux for GPIO-based I2C bus arbitration

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: While I2C supports multi-master buses this is difficult to get right. The implementation on the master side in software is quite complex. Clock-stretching and the arbitrary time that an I2C transaction can take make it difficult

Re: [U-Boot] [PATCH v2 01/19] exynos: dts: Correct LDO and BUCK naming

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: At present lower case is used for the regulator names in the device tree. The kernel uses upper case and U-Boot will require this also since it will move to a case-sensitive name check. Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v2 02/19] video: Work around lack of pinctrl

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: We haven't quite got pinctrl ready to apply to mainline. We don't want to GPIO pull-up/down support to the driver model GPIO layer either. So work around this for now. We can address this when pinctrl is complete.

Re: [U-Boot] [PATCH v2 03/19] dm: i2c: Add support for multiplexed I2C buses

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: Add a new I2C_MUX uclass. Devices in this class can multiplex between several I2C buses, selecting them one at a time for use by the system. The multiplexing mechanism is left to the driver to decide - it may be controlled by

Re: [U-Boot] [PATCH v2 12/19] exynos: Drop old exynos5420-specific board code

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: Now that exynos5420 boards can use the generic exynos5 code, switch over to it and remove the old code. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Przemyslaw Marczak p.marc...@samsung.com --- Changes in v2: None

Re: [U-Boot] [PATCH v2 08/19] exynos: dts: Drop the old TPS65090 I2C node

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: While the AP can access the main PMIC on snow, it must coordinate with the EC which also wants access. Drop the old definition, which can in principle generate collision errors. We will use the new arbitration driver instead.

Re: [U-Boot] [PATCH v2 11/19] exynos: config: Move common options to the common headers and tidy up

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: Many options are duplicated on the exynos5 boards. Move these to the common files. Also some options are not used so can be removed. Tidy this up to make the files easier to maintain. Signed-off-by: Simon Glass s...@chromium.org

Re: [U-Boot] [PATCH v2 16/19] video: Remove the old parade driver

2015-08-09 Thread Anatolij Gustschin
On Mon, 3 Aug 2015 08:19:34 -0600 Simon Glass s...@chromium.org wrote: We have a new one which uses driver model and device tree configuration. Remove the old one. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Anatolij Gustschin ag...@denx.de

Re: [U-Boot] [PATCH 2/3] ARM: tegra: query_sdram_size() cleanup

2015-08-09 Thread Simon Glass
Hi Stephen, On 7 August 2015 at 16:12, Stephen Warren swar...@wwwdotorg.org wrote: From: Stephen Warren swar...@nvidia.com The return value of query_sdram_size() is assigned directly to gd-ram_size in dram_init(). Adjust the return type to match the field it's assigned to. This has the

Re: [U-Boot] [RESEND PATCH] common/lcd_console: fix console/logo regression

2015-08-09 Thread Simon Glass
On 4 August 2015 at 07:49, Marcel Ziswiler mar...@ziswiler.com wrote: From: Marcel Ziswiler marcel.ziswi...@toradex.com The following commit changed the order of the column vs. row parameter to the lcd_init_console() function but missed actually changing it as well the second time it is

Re: [U-Boot] [PATCH 1/3] ARM: tegra: move kernel_addr_r on T210

2015-08-09 Thread Simon Glass
On 7 August 2015 at 16:12, Stephen Warren swar...@wwwdotorg.org wrote: From: Stephen Warren swar...@nvidia.com The new value is the most likely value where the kernel wants to end up at run-time. Selecting this value as the load address likely avoids the need to copy the kernel image from the

Re: [U-Boot] [PATCH 2/6] dm: core: Fix a typo in the uclass_get_device_by_name() comment

2015-08-09 Thread Simon Glass
On 31 July 2015 at 03:08, Bin Meng bmeng...@gmail.com wrote: On Fri, Jul 31, 2015 at 3:40 AM, Simon Glass s...@chromium.org wrote: This function comment has a typo. Fix it. Signed-off-by: Simon Glass s...@chromium.org --- include/dm/uclass.h | 2 +- 1 file changed, 1 insertion(+), 1

Re: [U-Boot] [PATCH v2] x86: Enable debug UART for Minnowmax

2015-08-09 Thread Simon Glass
On 2 August 2015 at 18:07, Simon Glass s...@chromium.org wrote: Enable the debug UART and emit a single 'a' early in the init sequence to show that it is working. Unfortunately the debug UART implementation needs a stack to work. I cannot seem to remove this limitation as the absolute 'jmp

Re: [U-Boot] [PATCH 3/3] ARM: tegra: represent RAM in 1 or 2 banks

2015-08-09 Thread Simon Glass
On 7 August 2015 at 16:12, Stephen Warren swar...@wwwdotorg.org wrote: From: Stephen Warren swar...@nvidia.com Represent all available RAM in either one or two banks. The first bank describes any RAM below 4GB. The second bank describes any RAM above 4GB. This split is driven by the

Re: [U-Boot] [PATCH v2] dm: usb: fix USB Ethernet without CONFIG_DM_ETH regression

2015-08-09 Thread Simon Glass
Hi, On 5 August 2015 at 09:29, Simon Glass s...@chromium.org wrote: Hi Marcel, On 5 August 2015 at 08:58, Marcel Ziswiler mar...@ziswiler.com wrote: From: Marcel Ziswiler marcel.ziswi...@toradex.com The following commit enforces CONFIG_DM_ETH for USB Ethernet which breaks any board using

Re: [U-Boot] [Patch v3 2/2] lib/fdtdec: Fix compiling warning caused by changing fdt_addr_t type

2015-08-09 Thread Simon Glass
On 3 August 2015 at 13:02, York Sun york...@freescale.com wrote: fdt_addr_t is changed to phys_addr_t. The format in debug should be updated to %pa to match the type. Signed-off-by: York Sun york...@freescale.com CC: Simon Glass s...@chromium.org --- Change log: v3: split into a separated

Re: [U-Boot] [PATCH 1/6] dm: core: Add a way to set a device name

2015-08-09 Thread Simon Glass
On 31 July 2015 at 03:08, Bin Meng bmeng...@gmail.com wrote: On Fri, Jul 31, 2015 at 3:40 AM, Simon Glass s...@chromium.org wrote: Some devices are bound entirely by probing and do not have the benefit of a device tree to give them a name. This is very common with PCI and USB. In most cases

Re: [U-Boot] [PATCH 0/3] Introduce TPM driver model and STMicroelectronics ST33ZP24 TPMs

2015-08-09 Thread Simon Glass
Hi Christophe, On 9 August 2015 at 07:19, Christophe Ricard christophe.ric...@gmail.com wrote: Hi, This patch serie introduce TPM driver model allowing to instantiate a TPM using U_BOOT_DEVICE macro for platform_data or device tree. As an information, there is no TCG transport protocol

Re: [U-Boot] [PATCH 0/3] Introduce TPM driver model and STMicroelectronics ST33ZP24 TPMs

2015-08-09 Thread Christophe Ricard
Hi Simon, Thanks for pointing me to the right tree and branch. I missed that :-(. I will go and look at your on-going work and try to fit our STM drivers. I will be happy to co-work on this. Best regards Christophe Le dim. 9 août 2015 15:28, Simon Glass s...@chromium.org a écrit : Hi

Re: [U-Boot] [PATCH v2 18/19] exynos: video: Remove non-device-tree code

2015-08-09 Thread Anatolij Gustschin
Hi Simon, On Mon, 3 Aug 2015 08:19:36 -0600 Simon Glass s...@chromium.org wrote: We always use device tree on exynos, so remove the unused code. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Anatolij Gustschin ag...@denx.de ___ U-Boot

Re: [U-Boot] [PATCH] fdt: add new fdt address parsing functions

2015-08-09 Thread Simon Glass
Hi Stephen, On 6 August 2015 at 15:31, Stephen Warren swar...@wwwdotorg.org wrote: From: Stephen Warren swar...@nvidia.com fdtdec_get_addr_size() hard-codes the number of cells used to represent an address or size in DT. This is incorrect in many cases depending on the DT binding for a

Re: [U-Boot] [PATCH] Revert fdt: Fix fdtdec_get_addr_size() for 64-bit

2015-08-09 Thread Simon Glass
Hi Stephen, On 6 August 2015 at 13:03, Stephen Warren swar...@wwwdotorg.org wrote: On 08/05/2015 05:45 PM, Simon Glass wrote: Hi Stephen, On 5 August 2015 at 12:22, Stephen Warren swar...@wwwdotorg.org wrote: On 08/04/2015 10:08 PM, Simon Glass wrote: Hi Stephen, On 3 August 2015 at

Re: [U-Boot] [Patch v3 1/2] lib/fdtdec: Fix fdt_addr_t and fdt_size_t typedef

2015-08-09 Thread Simon Glass
On 3 August 2015 at 13:02, York Sun york...@freescale.com wrote: fdt_addr_t is a physical address. It can be either 64-bit or 32-bit, depending on the architecture. It should be phys_addr_t instead of u64 or u32. Similarly, fdt_size_t is changed to phys_size_t. Signed-off-by: York Sun

[U-Boot] [PATCH] dm: pmic: max77686: Correct two typos in a comment

2015-08-09 Thread Simon Glass
These were pointed out in review but I missed them. Signed-off-by: Simon Glass s...@chromium.org --- drivers/power/regulator/max77686.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/regulator/max77686.c b/drivers/power/regulator/max77686.c index

Re: [U-Boot] [PATCH v2 09/19] exynos: Add common board code for exynos5 boards that use device tree

2015-08-09 Thread Simon Glass
Hi Prazemyslaw, On 5 August 2015 at 08:16, Przemyslaw Marczak p.marc...@samsung.com wrote: Hello Simon, On 08/03/2015 04:19 PM, Simon Glass wrote: Some boards use device tree for almost all board-specific configuration. They therefore do not need their own separate board code, but can all

[U-Boot] [PATCH 2/3] tpm: Initial work to introduce TPM driver model

2015-08-09 Thread Christophe Ricard
drivers/tpm/tpm.c is a TPM core driver port from Linux. So far in u-boot only infineon i2c driver is using it but it could fit for others... Introduce a new tpm uclass so that every TPM driver can register against it and and take benefit of common functions and data such as tpm_transmit,

[U-Boot] [PATCH 3/3] tpm: Add st33zp24 tpm with i2c and spi phy

2015-08-09 Thread Christophe Ricard
Add TPM st33zp24 tpm with i2c and spi phy. This is a port from Linux. This driver relies on tpm uclass. Signed-off-by: Christophe Ricard christophe-h.ric...@st.com --- README | 11 + drivers/tpm/Makefile| 1 + drivers/tpm/st33zp24/Makefile

Re: [U-Boot] [PATCH v2 06/19] cros_ec: Support the LDO access method used by spring

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: Add a driver to support the special LDO access used by spring. This is a custom method in the cros_ec protocol - it does not use an I2C pass-through. There are two implementation choices: 1. Write a special LDO driver which can

Re: [U-Boot] [PATCH v2 05/19] dm: cros_ec: Convert the I2C tunnel code to use driver model

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: The Chrome OS EC supports tunnelling through to an I2C bus on the EC. This currently uses a copy of the I2C command code and a special 'crosec' sub-command. With driver model we can define an I2C bus which tunnels through to the

[U-Boot] [PATCH 1/3] tpm: Move tpm_tis_i2c to tpm_i2c_infineon

2015-08-09 Thread Christophe Ricard
As there is no TCG specification or recommendation for i2c TPM 1.2, move tpm_tis_i2c driver to tpm_i2c_infineon. Other tpm vendors like atmel or stmicroelectronics may have a different transport protocol for i2c. Signed-off-by: Christophe Ricard christophe-h.ric...@st.com --- README

[U-Boot] [PATCH 0/3] Introduce TPM driver model and STMicroelectronics ST33ZP24 TPMs

2015-08-09 Thread Christophe Ricard
Hi, This patch serie introduce TPM driver model allowing to instantiate a TPM using U_BOOT_DEVICE macro for platform_data or device tree. As an information, there is no TCG transport protocol official specification for i2c for TPM1.2. The TPM uclass allows to support different kind of bus (LPC,

Re: [U-Boot] [PATCH 0/3] Introduce TPM driver model and STMicroelectronics ST33ZP24 TPMs

2015-08-09 Thread Simon Glass
Hi Chrstophe, On 9 August 2015 at 08:19, Christophe Ricard christophe.ric...@gmail.com wrote: Hi Simon, Thanks for pointing me to the right tree and branch. I missed that :-(. Well I was hoping to send patches next week. I should have sent an email to the list before starting. I will go and

Re: [U-Boot] [PATCH v2 4/9] dfu: tftp: update: Provide tftp support for the DFU subsystem

2015-08-09 Thread Lukasz Majewski
Hi Simon, Hi Lukasz, On 25 July 2015 at 02:11, Lukasz Majewski l.majew...@majess.pl wrote: This commit adds initial support for using tftp for downloading and upgrading firmware on the device. Signed-off-by: Lukasz Majewski l.majew...@majess.pl --- Changes for v2: - Return

Re: [U-Boot] [V4 1/2] sf: Add clear flag status register operation on Micron chips

2015-08-09 Thread Hou Zhiqiang
-Original Message- From: Jagan Teki [mailto:jt...@openedev.com] Sent: 2015年8月7日 16:22 To: Hou Zhiqiang-B48286 Cc: u-boot@lists.denx.de; Hu Mingkai-B21284 Subject: Re: [U-Boot] [V4 1/2] sf: Add clear flag status register operation on Micron chips On 23 July 2015 at 15:24,

Re: [U-Boot] [V4 2/2] sf: Turn SPI flash into 3-Byte address mode on Micron chips

2015-08-09 Thread Hou Zhiqiang
Hi Jagan, Do you have any feedback? -Original Message- From: Zhiqiang Hou [mailto:b48...@freescale.com] Sent: 2015年7月23日 17:54 To: u-boot@lists.denx.de; jt...@openedev.com Cc: Sun York-R58495; Hu Mingkai-B21284; Hou Zhiqiang-B48286 Subject: [V4 2/2] sf: Turn SPI flash into 3-Byte

Re: [U-Boot] [PATCH 0/3] add dfu support for at91 sam9260 based boards

2015-08-09 Thread Heiko Schocher
Hello Marek, Am 21.07.2015 um 04:03 schrieb Marek Vasut: On Monday, July 20, 2015 at 04:03:08 PM, Lukasz Majewski wrote: Hi Marek, add dfu supprt for at91 sam9260 based boards. The USB gadget driver is ported from linux: b2ba27a5c56ff: usb: gadget: at91_udc: move prepare clk into process

Re: [U-Boot] [PATCH 2/3] usb: gadget: at91_udc: add support for at91_udc

2015-08-09 Thread Heiko Schocher
Hello Luaksz, Am 21.07.2015 um 08:59 schrieb Lukasz Majewski: Hi Heiko, ported from linux: b2ba27a5c56ff: usb: gadget: at91_udc: move prepare clk into process context IMHO, presented above description is not enough. I'd prefer to see one patch which adds the code from linux - including

Re: [U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-08-09 Thread Peng Fan
Hi Scott, Do you have plan to pick the 3 patches? https://patchwork.ozlabs.org/patch/498050/ https://patchwork.ozlabs.org/patch/498049/ https://patchwork.ozlabs.org/patch/498048/ If not, then I prefer these 3 patches can go throught i.mx tree. Thanks, Peng. On Sun, Aug 02, 2015 at 11:18:38AM

Re: [U-Boot] [PATCH v1 0/2] Rename DDR4 target names

2015-08-09 Thread Priyanka Jain
Hello York, T1040D4RDB/T1042D4RDB boards have other difference as well apart from DDR4 w.r.t old T1040RDB/T1042RDB. T1040D4RDB/T1042D4RDB is the naming convection that has been used to distinguished new T1040RDB/T1042RDB board with DDR4 memory, new serdes protocol support , new muxes , etc.

Re: [U-Boot] [PATCH v2 15/19] cros_ec: Remove the old tunnel code

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: This is not needed with driver mode. Remove it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/misc/cros_ec.c | 268 + include/cros_ec.h |

Re: [U-Boot] [PATCH v2 07/19] dm: pmic: max77686: Support all BUCK regulators

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: Add support for all BUCK regulators, now that the correct register is accessed for each. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add a comment about DVS in the driver

Re: [U-Boot] [PATCH v2 16/19] video: Remove the old parade driver

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: We have a new one which uses driver model and device tree configuration. Remove the old one. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/video/Makefile | 1 - drivers/video/parade.c

Re: [U-Boot] [PATCH v2 19/19] exynos: Add support for spring

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: Spring is the first ARM-based HP Chromebook 11. It is similar to snow and it uses the same Samsung Exynos5250 chip. But has some unusual features. Mainline support for it has lagged snow (both in kernel and U-Boot). Now that the

Re: [U-Boot] [PATCH v2 17/19] dts: Drop unused compatible ID for the NXP video bridge

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: This has moved to driver model so we can drop the fdtdec support. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None include/fdtdec.h | 1 - lib/fdtdec.c | 1 - 2 files changed, 2 deletions(-) Applied

Re: [U-Boot] [PATCH v2 18/19] exynos: video: Remove non-device-tree code

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: We always use device tree on exynos, so remove the unused code. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/arm/include/asm/arch-exynos/dp_info.h | 2 -- drivers/video/exynos_dp.c

Re: [U-Boot] [PATCH v2 10/19] exynos: Enable new features for exynos5 boards

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: Enable PMICs, regulators and the like so that new drivers will be made available. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None board/samsung/smdk5420/smdk5420.c | 2 +- configs/arndale_defconfig

Re: [U-Boot] [PATCH v2 13/19] exynos: Drop old exynos5250-specific board code

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: Now that most exynos5250 boards can use the generic exynos5 code, switch over to it and remove the old code. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None board/samsung/smdk5250/Makefile | 4 -

Re: [U-Boot] [PATCH v2 14/19] power: Remove old TPS65090 drivers

2015-08-09 Thread Simon Glass
On 3 August 2015 at 08:19, Simon Glass s...@chromium.org wrote: Remove the old drivers (both the normal one and the cros_ec one) now that we have new drivers that use driver model. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/power/pmic/Makefile

[U-Boot] [PATCH] cm5200: fix FAT function prototypes

2015-08-09 Thread Stephen Warren
Remove FAT function prototypes from the cm5200 firmware update code, and include the relevant headers instead. This exposes the fact that the custom prototyoe for do_fat_read() in this file was incorrect. Rather than simply fixing the call-site, replace do_fat_read() with fat_exists(). This

Re: [U-Boot] [PATCH v3 07/16] common/cmd_ethsw: Add generic commands for Ethernet Switches

2015-08-09 Thread Joe Hershberger
Hi York, On Fri, Aug 7, 2015 at 5:58 PM, York Sun york...@freescale.com wrote: On 08/07/2015 01:18 PM, Joe Hershberger wrote: snip + } + + /* if all our optional command's keywords perfectly match an +* optional pattern, then we can move to the