[U-Boot] [ANN] U-Boot v2015.10-rc1 released

2015-08-03 Thread Tom Rini
Hey all, I've pushed v2015.10-rc1 out to the repository and tarballs should exist soon. The merge window is now closed. I've got the first rc out on schedule and I'm going to try hard to stick to the every two weeks thing. Speaking of the merge window, I think after pondering things for a bit,

Re: [U-Boot] [PATCH 000/172] socfpga: SPL and DDR init

2015-08-03 Thread Dinh Nguyen
On 07/27/2015 03:49 PM, Marek Vasut wrote: This series fixes the SPL support on SoCFPGA and cleans up the DDR init code such that it is becoming remotely mainlinable. After this series, the SPL is capable of booting from both SD/MMC and QSPI NOR. There is still work to be done, but I'd like

[U-Boot] [PATCH] dm: usb: fix missing errno include regression

2015-08-03 Thread Marcel Ziswiler
From: Marcel Ziswiler marcel.ziswi...@toradex.com If enabling CONFIG_DM_ETH currently compilation fails as follows: drivers/usb/eth/usb_ether.c: In function 'usb_ether_register': drivers/usb/eth/usb_ether.c:72:11: error: 'ENXIO' undeclared (first use in this function) return -ENXIO;

Re: [U-Boot] [PATCH v2 22/47] efi: Add a serial driver

2015-08-03 Thread Bin Meng
On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: Add a serial driver which makes use of EFI's console in/out service. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add a comment about special handling for backspace - Add a comment as to why

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

2015-08-03 Thread Simon Glass
Hi Stephen, On 3 August 2015 at 09:12, Stephen Warren swar...@wwwdotorg.org wrote: On 08/02/2015 06:13 PM, Simon Glass wrote: This reverts commit 5b34436035fc862b5e8d0d2c3eab74ba36f1a7f4. This function has a few problems. It calls fdt_parent_offset() which as mentioned in code review is

Re: [U-Boot] [PATCH 3/5] Allow arch-specific setting of global_data in board_init_f_mem()

2015-08-03 Thread York Sun
On 08/02/2015 05:10 PM, Simon Glass wrote: At present we have a simple assignment to gd. With some archs this is implemented as a register or through some other means; a simple assignment does not suit in all cases. Change this to a function and add documentation to describe how this all

Re: [U-Boot] [PATCH 05/15] ddr: altera: sequencer: Wrap ac_rom_init and inst_rom_init

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: Introduce two wrapper functions, socfpga_get_seq_ac_init() and socfpga_get_seq_inst_init() to avoid direct inclusion of the sequencer_auto_ac_init.h and sequencer_auto_inst_init.h QTS generated files. This reduces namespace polution again.

[U-Boot] SPL with DM for serial

2015-08-03 Thread Michal Simek
Hi Simon, I am playing with SPL for U-Boot with DM serial driver for OF_CONTROL and without. Can you please tell me what's the status on SPL in connection to DM? Definitely it is not just about enabling it via Kconfig. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP - KeyID: FE3D1F91 w:

Re: [U-Boot] [PATCH] dm: usb: fix missing errno include regression

2015-08-03 Thread Simon Glass
Hi Marcel, On 3 August 2015 at 09:33, Marcel Ziswiler mar...@ziswiler.com wrote: From: Marcel Ziswiler marcel.ziswi...@toradex.com If enabling CONFIG_DM_ETH currently compilation fails as follows: drivers/usb/eth/usb_ether.c: In function 'usb_ether_register':

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

2015-08-03 Thread Bin Meng
Hi Simon, On Mon, Aug 3, 2015 at 8:13 AM, Simon Glass s...@chromium.org wrote: This reverts commit 5b34436035fc862b5e8d0d2c3eab74ba36f1a7f4. This function has a few problems. It calls fdt_parent_offset() which as mentioned in code review is very slow.

Re: [U-Boot] [PATCH v2 24/47] x86: Set up toolchain flags for running as EFI application

2015-08-03 Thread Bin Meng
Hi Simon, On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: From: Ben Stoltz sto...@google.com Adjust the toolchain flags to build U-Boot as a relocatable shared library, as required by EFI. Signed-off-by: Ben Stoltz sto...@google.com Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v2 25/47] efi: Support building a u-boot.efi executable

2015-08-03 Thread Bin Meng
Hi Simon, On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: Add support for building U-Boot as an EFI application with a .efi suffix. This can be loaded by EFI provided that EFI has the same bit width (32- or 64-bit) as U-Boot. This unfortunate limitation is imposed by

[U-Boot] CONFIG_DM_ETH USB_ETHER_ASIX Reception Issue on Tegra

2015-08-03 Thread Marcel Ziswiler
Hi there Trying to update one of my patch sets of late made me notice that the ASIX USB to Ethernet stuff if CONFIG_DM_ETH is enabled seems to be rather broken. I already sent two patches to even get that far but even with that reception still does not seem to work (see below). I tested by

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

2015-08-03 Thread York Sun
Sure. I have to rebase it anyway after this commit 5b34436. York On 08/02/2015 03:30 PM, Simon Glass wrote: Hi York, On 23 July 2015 at 16:12, 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

Re: [U-Boot] [PATCH 01/15] ddr: altera: sequencer: Move qts-generated files to board dir

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: Move the files generated by QTS into the board directory, they should not be part of the driver files at all. Signed-off-by: Marek Vasut ma...@denx.de --- .../altera = board/altera/socfpga/qts}/sequencer_auto.h| 0

[U-Boot] [PATCH 2/6] arm: socfpga: scan: Introduce generic JTAG accessor

2015-08-03 Thread Marek Vasut
Introduce generic function for accessing the JTAG scan chains in the SCC manager. Make use of this function throughout the SCC manager to replace the ad-hoc writes to registers and make the code less cryptic. Signed-off-by: Marek Vasut ma...@denx.de --- arch/arm/mach-socfpga/scan_manager.c | 104

[U-Boot] [PATCH 5/6] arm: socfpga: scan: Add code to get FPGA ID

2015-08-03 Thread Marek Vasut
From: Dinh Nguyen dingu...@opensource.altera.com Add code to get the FPGA type for Altera's SoCFPGA family of FPGA. The code uses the scan manager to send jtag pulses that will return the FPGA ID. Signed-off-by: Dinh Nguyen dingu...@opensource.altera.com Signed-off-by: Marek Vasut ma...@denx.de

[U-Boot] [PATCH 4/6] arm: socfpga: scan: Factor out IO chain programming

2015-08-03 Thread Marek Vasut
Factor out the code which sends JTAG instruction followed by data into separate function to tidy the code up a little. Signed-off-by: Marek Vasut ma...@denx.de --- arch/arm/mach-socfpga/scan_manager.c | 113 +-- 1 file changed, 42 insertions(+), 71 deletions(-)

[U-Boot] [PATCH 3/6] arm: socfpga: scan: Clean up horrible macros

2015-08-03 Thread Marek Vasut
Clean up the horrible macros present in the scan_manager.h . Firstly, the function scan_mgr_io_scan_chain_prg() is static, yet all the macros are used only within it, thus there is no point in having them in the header file. Moreover, the macros are just making the code much less readable, so

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

2015-08-03 Thread Simon Glass
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 GPIOs, for example. The uclass supports only two methods: select() and

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

2015-08-03 Thread Simon Glass
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 | 14 --- 2 files changed, 1 insertion(+), 281 deletions(-) diff --git

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

2015-08-03 Thread Simon Glass
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. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

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

2015-08-03 Thread Simon Glass
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 to share the bus fairly in the face of high traffic. When one or more

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

2015-08-03 Thread Simon Glass
Some boards use device tree for almost all board-specific configuration. They therefore do not need their own separate board code, but can all use the same version. Add a common version of the board code. It uses the PMIC, regulator and video bridge uclasses. This will support smdk5250, smdk5420,

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

2015-08-03 Thread Simon Glass
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 - board/samsung/smdk5250/exynos5-dt.c | 306

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

2015-08-03 Thread Simon Glass
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 Acked-by: Przemyslaw Marczak p.marc...@samsung.com --- Changes in

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

2015-08-03 Thread Simon Glass
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 | 2 - drivers/power/pmic/pmic_tps65090.c| 310

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

2015-08-03 Thread Simon Glass
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 | 22 -- 2 files changed, 24 deletions(-)

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

2015-08-03 Thread Simon Glass
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 | 231

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

2015-08-03 Thread Simon Glass
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(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index b994f2c..cd4ec66 100644

[U-Boot] [PATCH 6/6] arm: socfpga: misc: Add support for printing FPGA type

2015-08-03 Thread Marek Vasut
From: Dinh Nguyen dingu...@opensource.altera.com Add code which uses the new functions for obtaining FPGA ID from the scan manager. This new code prints the FPGA model attached to the SoCFPGA during boot and sets environment variable fpgatype, which can be used to determine the FPGA model in

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

2015-08-03 Thread Simon Glass
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 s...@chromium.org --- Changes in v2: - Add new patch to correct LDO and BUCK naming

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

2015-08-03 Thread Simon Glass
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 talk across the EC. Duplicate all the logic from TPS65090 for

[U-Boot] [PATCH 1/6] arm: socfpga: scan: Clean up scan_chain_engine_is_idle()

2015-08-03 Thread Marek Vasut
Rework this function so it's clear that it is only polling for certain bits to be cleared. Add kerneldoc. Fix it's return value to be either 0 on success and -ETIMEDOUT on error and propagate this through the scan manager code. Signed-off-by: Marek Vasut ma...@denx.de ---

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

2015-08-03 Thread Simon Glass
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. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add a new patch

Re: [U-Boot] [PATCH 02/15] ddr: altera: sequencer: Clean up mach/sdram.h

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: Zap non-existent functions and place function prototypes at the beginning of the header file. Signed-off-by: Marek Vasut ma...@denx.de --- arch/arm/mach-socfpga/include/mach/sdram.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)

Re: [U-Boot] [PATCH 03/15] ddr: altera: sequencer: Zap unused params and macros

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: These parameters are not used in the code, zap them and the macros which are used by them as well. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sequencer.c | 49 +-

Re: [U-Boot] [PATCH 06/15] ddr: altera: sequencer: Wrap RW_MGR_* macros

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: Introduce structure socfpga_sdram_rw_mgr_config to wrap the RW manager configuration values in board file. Introduce a complementary function, socfpga_get_sdram_rwmgr_config(), which returns this the structure. This is another step toward wrapping the

Re: [U-Boot] [PATCH 04/15] ddr: altera: sequencer: Zap bogus redefinition of RW_MGR_MEM_NUMBER_OF_RANKS

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: This is defined in the QTS-generated headers, so it must not be re-defined in sequencer.h . Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sequencer.h | 1 - 1 file changed, 1 deletion(-) Acked-by: Dinh Nguyen

Re: [U-Boot] [PATCH 08/15] ddr: altera: sequencer: Wrap IO_* macros

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: Introduce structure socfpga_sdram_io_config to wrap the IO configuration values in board file. Introduce socfpga_get_sdram_io_config() function, which returns this the structure. This is another step toward wrapping the nasty QTS generated macros in

Re: [U-Boot] [PATCH 09/15] ddr: altera: sequencer: Pluck out IO_* macros from code

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: Actually convert the sequencer code to use socfpga_sdram_io_config instead of the IO_* macros. This is just an sed excercise here, no manual coding needed. s/excersise/exercise Acked-by: Dinh Nguyen dingu...@opensource.altera.com Thanks, Dinh

Re: [U-Boot] [PATCH 07/15] ddr: altera: sequencer: Pluck out RW_MGR_* macros from code

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: Actually convert the sequencer code to use socfpga_sdram_rw_mgr_config instead of the RW_MGR_* macros. This is just an sed excercise here, no manual coding needed. s/excersise/exercise Acked-by: Dinh Nguyen dingu...@opensource.altera.com Thanks,

Re: [U-Boot] [PATCH 2/2] net: designware: Rename the driver var name to eth_designware

2015-08-03 Thread Marek Vasut
On Monday, July 27, 2015 at 10:33:17 PM, Marek Vasut wrote: The driver variable name is eth_sandbox, which is probably a copy-paste mistake. Fix it. Signed-off-by: Marek Vasut ma...@denx.de Cc: Dinh Nguyen dingu...@opensource.altera.com Cc: Joe Hershberger joe.hershber...@ni.com Hi Joe, I

Re: [U-Boot] [PATCH] arm: dts: socfpga: Fix SPI aliases

2015-08-03 Thread Marek Vasut
On Monday, July 27, 2015 at 10:41:05 PM, Marek Vasut wrote: The SPI aliases are completely wrong. First, they point to non-existing /spi@.* nodes instead of the correct /soc/spi@.* nodes. Second, the use ad-hoc string instead of a handle. Furthermore, they are copied multiple times in each

Re: [U-Boot] [PATCH] arm: socfpga: Fix FPGA bitstream programming routine

2015-08-03 Thread Marek Vasut
On Monday, July 27, 2015 at 10:34:54 PM, Marek Vasut wrote: In case the FPGA bitstream is aligned to 4 bytes, skip the part of the assembler which handles unaligned bitstream. Otherwise, that part will loop indefinitelly. Signed-off-by: Marek Vasut ma...@denx.de Cc: Dinh Nguyen

Re: [U-Boot] [PATCH] arm: socfpga: Move generated files into qts subdir

2015-08-03 Thread Marek Vasut
On Monday, July 27, 2015 at 10:47:29 PM, Marek Vasut wrote: Move all the files generated by Quartus into the qts/ subdir of the board/altera/socfpga dir to make them explicitly separate from the generic U-Boot code. Signed-off-by: Marek Vasut ma...@denx.de Cc: Dinh Nguyen

Re: [U-Boot] [PATCH] arm: dts: socfpga: Add mmc alias

2015-08-03 Thread Marek Vasut
On Monday, July 27, 2015 at 10:42:51 PM, Marek Vasut wrote: Add alias for the SD/MMC controller, so it can be located by U-Boot OF support. Signed-off-by: Marek Vasut ma...@denx.de Cc: Dinh Nguyen dingu...@opensource.altera.com Applied to u-boot-socfpga/master . Best regards, Marek Vasut

Re: [U-Boot] [PATCH 10/15] ddr: altera: sequencer: Wrap misc remaining macros

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: Introduce structure socfpga_sdram_misc_config to wrap the remainging misc configuration values in board file. Again, introduce a function, socfpga_get_sdram_misc_config(), which returns this the structure. This is almost the final step toward wrapping

Re: [U-Boot] [PATCH 11/15] ddr: altera: sequencer: Zap VFIFO_SIZE

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: Just use READ_VALID_FIFO_SIZE directly, no need for this macro obfuscation. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sequencer.c | 8 drivers/ddr/altera/sequencer.h | 3 --- 2 files changed, 4 insertions(+), 7

Re: [U-Boot] [PATCH 12/15] ddr: altera: sequencer: Zap SEQ_T(INIT|RESET)_CNTR._VAL

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: This is another macro used to obfuscate the real code. The T(INIT|RESET)_CNTR._VAL is always defined, so this indirection is unnecessary. Get rid of this. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sequencer.c | 8

Re: [U-Boot] [PATCH 13/15] ddr: altera: sequencer: Pluck out misc macros from code

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:22 PM, Marek Vasut wrote: Actually convert the sequencer code to use socfpga_sdram_misc_config instead of the various macros. This is just an sed excercise here, no manual coding needed. This patch actually removes the need to include any board-specific files in sequencer.c

Re: [U-Boot] [PATCH 14/15] ddr: altera: sequencer: Clean data types

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:22 PM, Marek Vasut wrote: Replace uintNN_t with uNN. No functional change. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sequencer.c | 96 +- 1 file changed, 48 insertions(+), 48 deletions(-) Acked-by: Dinh

Re: [U-Boot] [PATCH 15/15] ddr: altera: sequencer: Clean checkpatch issues

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:22 PM, Marek Vasut wrote: Fix most of the dangling checkpatch issues, no functional change. There are still 7 warnings, 1 checks , but those are left in place for the sake of readability of the code. Signed-off-by: Marek Vasut ma...@denx.de ---

[U-Boot] [PATCH 1/5] sunxi: display: Replace #ifdef-ery with helper functions

2015-08-03 Thread Hans de Goede
All the #ifdef-ery in selecting the default and fallback monitor type is becoming unyielding and makes the code hard to read, replace it with a few helper functions. This will also be useful with the upcoming CHIP board which has display adapter daughterboards which should be runtime detectable.

[U-Boot] [PATCH 5/5] sunxi: display: Add composite video out support

2015-08-03 Thread Hans de Goede
Add composite video out support. This only gets enabled on the Mele M3 for now, since that is were it was tested. It will be enabled on more boards after testing. Signed-off-by: Hans de Goede hdego...@redhat.com --- board/sunxi/Kconfig | 7 ++ configs/Mele_M3_defconfig | 1 +

[U-Boot] [PATCH 4/5] sunxi: display: Add support for interlaced modes

2015-08-03 Thread Hans de Goede
Add support for interlaced modes, this is a preparation patch for adding composite out support. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/video/sunxi_display.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git

[U-Boot] [PATCH v4 2/8] net: asix: fix operation without eeprom

2015-08-03 Thread Marcel Ziswiler
From: Marcel Ziswiler marcel.ziswi...@toradex.com This patch fixes operation of our on-board AX88772B chip without EEPROM but with a ethaddr coming from the regular U-Boot environment. This is a forward port of some remaining parts initially implemented by Antmicro. Signed-off-by: Marcel

[U-Boot] [PATCH v4 8/8] tftp.c: fix CONFIG_TFTP_TSIZE for small files

2015-08-03 Thread Marcel Ziswiler
From: Max Krummenacher max.krummenac...@toradex.com CONFIG_TFTP_TSIZE should limit a tftp downloads progress to 50 '#' chars. Make this work also for small files. If the file size is small, i.e. smaller than 2 tftp block sizes the number of '#' can get much larger. i.e. with a 1 byte file 65000

[U-Boot] [PATCH v4 0/8] assortment of fixes/enhancements

2015-08-03 Thread Marcel Ziswiler
From: Marcel Ziswiler marcel.ziswi...@toradex.com This patch set is an assortment of fixes/enhancements distilled straight from our downstream integration work. Marcel Ziswiler (4): net: asix: fix operation without eeprom generic-board: allow showing custom board info colibri_vf: remove

Re: [U-Boot] [PATCH 3/5] power: pmic: pfuze100 support driver model

2015-08-03 Thread Peng Fan
Hello Przemyslaw, On Mon, Aug 03, 2015 at 05:01:12PM +0200, Przemyslaw Marczak wrote: Hello Peng, I have few comments. On 07/28/2015 04:48 PM, Peng Fan wrote: 1. Support driver model for pfuze100. 2. Introduce a new Kconfig entry DM_PMIC_PFUZE100 for pfuze100 3. This driver intends to support

Re: [U-Boot] [PATCH v2] armv8: fsl-lsch3: Rewrite MMU translation table entries

2015-08-03 Thread York Sun
OK. I will change the commit message. You don't need to send an update. York Original message From: Wang Huan-B18965 Date:08/03/2015 19:03 (GMT-08:00) To: Sun York-R58495 , u-boot@lists.denx.de Subject: RE: [PATCH v2] armv8: fsl-lsch3: Rewrite MMU translation table entries

Re: [U-Boot] [PATCH v2] armv8: fsl-lsch3: Rewrite MMU translation table entries

2015-08-03 Thread Huan Wang
York, On 08/02/2015 07:48 PM, Alison Wang wrote: This patch rewrites MMU translation table entries to achieve: a) Start with all table entries as invalid. b) Rewrite the table entries as device-ngnrne for cache-inhibit access. c) Rewrite the table entries as normal for cache-enabled

[U-Boot] [PATCH v4 4/8] logos: add Toradex logo

2015-08-03 Thread Marcel Ziswiler
From: Stefan Agner stefan.ag...@toradex.com Use the boot loader splash screen from WinCE which matches our wallpapers position wise. Although the logo is an 8-bit indexed BMP as well colours looked odd at first in U-Boot. After converting to full RGB palette and converting back to an indexed BMP

[U-Boot] [PATCH v4 6/8] image-fdt.c: store returned error value

2015-08-03 Thread Marcel Ziswiler
From: Max Krummenacher max.krummenac...@toradex.com This fixes the following warning (and the runtime error reporting): ../common/image-fdt.c:491:4: warning: 'fdt_ret' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Max Krummenacher max.krummenac...@toradex.com

Re: [U-Boot] Booting a second stage Bootloader in FIT image

2015-08-03 Thread KJ H. Kiran
Hi Simon, I am implementing the secure u-boot for our custom board and have a question with the current implementation of secure framework with u-boot loading the loadables images. I got the latest 2015.07 mainline branch and am trying to load a bootloader( FIT format) from already loaded

Re: [U-Boot] [PATCH 00/20] arm: rpi: Enable USB and Ethernet driver model Raspberry Pi

2015-08-03 Thread Marek Vasut
On Tuesday, August 04, 2015 at 02:07:41 AM, Simon Glass wrote: Hi Marek, Hi! On 3 August 2015 at 17:45, Marek Vasut ma...@denx.de wrote: On Wednesday, July 08, 2015 at 04:53:32 AM, Simon Glass wrote: Raspberry Pi uses a DWC2 USB controller and a SMSC USB Ethernet adaptor. Neither of

[U-Boot] [PATCH] arm: ls1021a: Ensure Generic Timer disabled before jumping into the OS

2015-08-03 Thread Alison Wang
This patch addresses a problem mentioned recently on this mailing list: [1]. In that posting a LS1021 based system was locking up at about 5 minutes after boot,but the problem was mysteriously related to the toolchain used for building u-boot.Debugging the problem reveals a stuck interrupt 29 on

[U-Boot] [PATCH 2/5] sunxi: display: Correct clk_delay calculations for lcd displays

2015-08-03 Thread Hans de Goede
We should only substract 2 from the vblank time when using tcon1. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/video/sunxi_display.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/video/sunxi_display.c b/drivers/video/sunxi_display.c index

[U-Boot] [PATCH 3/5] sunxi: display: Add a few extra register and constant defines

2015-08-03 Thread Hans de Goede
Add a few extra sunxi display registers and constant defines. This is a preparation patch for adding composite video out support. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/include/asm/arch-sunxi/clock_sun4i.h | 2 +- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 1 +

Re: [U-Boot] [PATCH v3 2/8] net: asix: fix operation without eeprom

2015-08-03 Thread Marek Vasut
On Tuesday, August 04, 2015 at 12:33:44 AM, Marcel Ziswiler wrote: On Mon, 2015-08-03 at 23:31 +0200, Marek Vasut wrote: Acked-by: Marek Vasut ma...@denx.de Joe should pick it, but if you want this through USB tree, just let me know. Whatever makes most sense. I still hope somebody

[U-Boot] [PATCH v4 3/8] generic-board: allow showing custom board info

2015-08-03 Thread Marcel Ziswiler
From: Marcel Ziswiler marcel.ziswi...@toradex.com Allow showing custom board info from a checkboard() function being implemented if CONFIG_CUSTOM_BOARDINFO is specified. Previously the device tree model was always displayed not taking any CONFIG_CUSTOM_BOARDINFO into account. Signed-off-by:

[U-Boot] [PATCH v4 7/8] mtd/nand/ubi: assortment of alignment fixes

2015-08-03 Thread Marcel Ziswiler
From: Marcel Ziswiler marcel.ziswi...@toradex.com Various U-Boot adoptions/extensions to MTD/NAND/UBI did not take buffer alignment into account which led to failures of the following form: ERROR: v7_dcache_inval_range - start address is not aligned - 0x1f7f0108 ERROR: v7_dcache_inval_range -

[U-Boot] [PATCH v4 5/8] colibri_vf: remove spurious new line

2015-08-03 Thread Marcel Ziswiler
From: Marcel Ziswiler marcel.ziswi...@toradex.com Remove spurious new line in configuration file. Signed-off-by: Marcel Ziswiler marcel.ziswi...@toradex.com Tested-by: Marek Vasut ma...@denx.de Acked-by: Marek Vasut ma...@denx.de --- include/configs/colibri_vf.h | 1 - 1 file changed, 1

[U-Boot] [PATCH v4 1/8] fs/fs.c: read up to EOF when len would read past EOF

2015-08-03 Thread Marcel Ziswiler
From: Max Krummenacher max.krummenac...@toradex.com http://lists.denx.de/pipermail/u-boot/2012-September/134347.html allows for reading files in chunks from the shell. When this feature is used to read past the end of a file an error was returned instead of returning the bytes read up to the end

Re: [U-Boot] [PATCH v3 2/8] net: asix: fix operation without eeprom

2015-08-03 Thread Marcel Ziswiler
On Mon, 2015-08-03 at 23:31 +0200, Marek Vasut wrote: Acked-by: Marek Vasut ma...@denx.de Joe should pick it, but if you want this through USB tree, just let me know. Whatever makes most sense. I still hope somebody could pull in the whole series as it has been cooking for a while now.

Re: [U-Boot] [PATCH 00/20] arm: rpi: Enable USB and Ethernet driver model Raspberry Pi

2015-08-03 Thread Marek Vasut
On Wednesday, July 08, 2015 at 04:53:32 AM, Simon Glass wrote: Raspberry Pi uses a DWC2 USB controller and a SMSC USB Ethernet adaptor. Neither of these currently support driver model. This series does the following: - Move Raspberry Pi to use device tree control (u-boot-dtb.bin instead of

Re: [U-Boot] [PATCH 00/20] arm: rpi: Enable USB and Ethernet driver model Raspberry Pi

2015-08-03 Thread Simon Glass
Hi Marek, On 3 August 2015 at 17:45, Marek Vasut ma...@denx.de wrote: On Wednesday, July 08, 2015 at 04:53:32 AM, Simon Glass wrote: Raspberry Pi uses a DWC2 USB controller and a SMSC USB Ethernet adaptor. Neither of these currently support driver model. This series does the following:

Re: [U-Boot] [PATCH 09/12] sniper: Fastboot support

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:15PM +0200, Paul Kocialkowski wrote: This adds support for the fastboot USB gadget, including flashing to the internal MMC and reboot to bootloader or not. Signed-off-by: Paul Kocialkowski cont...@paulk.fr Reviewed-by: Tom Rini tr...@konsulko.com -- Tom

Re: [U-Boot] [PATCH 10/12] sniper: Power button reset support

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:16PM +0200, Paul Kocialkowski wrote: This adds support for resetting the device on a long press on the power button. Signed-off-by: Paul Kocialkowski cont...@paulk.fr Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description: Digital

Re: [U-Boot] [PATCH 08/12] sniper: Pass serial number through ATAG

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:14PM +0200, Paul Kocialkowski wrote: Now that the serial number is correctly defined, we can pass it to the kernel using the (legacy) ATAG method. It will be automatically passed via device-tree when enabled. Signed-off-by: Paul Kocialkowski cont...@paulk.fr

Re: [U-Boot] [PATCH 02/12] input: TWL4030 input support for power button, USB and charger

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:08PM +0200, Paul Kocialkowski wrote: This adds support for detecting a few inputs exported by the TWL4030. Currently-supported inputs are the power button, USB and charger presence. Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description:

Re: [U-Boot] [PATCH 01/12] power: twl4030: Power off support

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:07PM +0200, Paul Kocialkowski wrote: This adds support for powering off (the omap3 SoC) from the twl4030. This is especially useful when the kernel does not actually power off the device using this method but reboots and leaves it up to the bootloader to actually

Re: [U-Boot] [PATCH 03/12] input: twl4030: Keypad scan and input

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:09PM +0200, Paul Kocialkowski wrote: This allows scanning the twl4030 keypad, storing the result in a 64-byte long matrix with the twl4030_keypad_scan function. Detecting a key at a given column and row is made easier with the twl4030_keypad_key function.

Re: [U-Boot] [PATCH 04/12] omap3: Reboot mode support

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:10PM +0200, Paul Kocialkowski wrote: Reboot mode is written in scratchpad memory before reboot in the form of a single char, that is the first letter of the reboot mode string as passed to the reboot function. This mechanism is supported on OMAP3 both my the

Re: [U-Boot] [PATCH 06/12] sniper: OMAP3 reboot mode support

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:12PM +0200, Paul Kocialkowski wrote: This adds support for the omap3 reboot mode mechanism and exports the reboot mode via an environment variable, that is used in the boot command to make it possible to boot from the recovery partition. Signed-off-by: Paul

Re: [U-Boot] [PATCH 07/12] sniper: Serial number support, obtained from die ID

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:13PM +0200, Paul Kocialkowski wrote: The OMAP3 has some die-specific ID bits that we can use to give the device a (more or less) unique serial number. This is particularly useful for e.g. USB. Signed-off-by: Paul Kocialkowski cont...@paulk.fr ---

Re: [U-Boot] CONFIG_DM_ETH USB_ETHER_ASIX Reception Issue on Tegra

2015-08-03 Thread Marek Vasut
On Monday, August 03, 2015 at 10:29:40 PM, Marcel Ziswiler wrote: On Mon, 2015-08-03 at 20:48 +0200, Marek Vasut wrote: This stuff looks more like a breakage in the EHCI controller, no ? Well, but that same EHCI controller works just fine as long as CONFIG_DM_ETH is not defined. This trims

Re: [U-Boot] [PATCH 2/5] power: regulator use node name when no regulator-name

2015-08-03 Thread Peng Fan
Hello Przemyslaw, On Mon, Aug 03, 2015 at 05:00:50PM +0200, Przemyslaw Marczak wrote: Hello, On 08/03/2015 02:23 AM, Peng Fan wrote: Hi Simon, On Sun, Aug 02, 2015 at 04:31:06PM -0600, Simon Glass wrote: Hi Peng, On 28 July 2015 at 08:48, Peng Fan peng@freescale.com wrote: If there is no

Re: [U-Boot] [PATCH 05/12] LG Optimus Black (P970) codename sniper support

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:11PM +0200, Paul Kocialkowski wrote: The LG Optimus Black (P970) codename sniper is a smartphone that was designed and manufactured by LG Electronics (LGE) and released back in 2011. It is using an OMAP3630 SoC GP version, which allows running U-Boot and the

Re: [U-Boot] [PATCH 11/12] sniper: Power off when the power on reason is not a valid one

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:17PM +0200, Paul Kocialkowski wrote: In most cases, userspace will attempt to power off the device with HALT instead of POWER_OFF, which triggers a reset instead of a proper power off from the TWL4030. Hence, it is up to the bootloader to actually turn the

Re: [U-Boot] [PATCH 12/12] sniper: Keypad support, with recovery and fastboot key combinations

2015-08-03 Thread Tom Rini
On Mon, Jul 20, 2015 at 03:17:18PM +0200, Paul Kocialkowski wrote: Using the twl4030 keypad allows booting directly into some special boot modes, such as recovery or fastboot. the VOL+ key will trigger a boot to recovery while the VOL- key will trigger a boot to fastboot. The G (gesture)

Re: [U-Boot] [PATCH v2 29/47] x86: Add EFI board code

2015-08-03 Thread Bin Meng
On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: From: Ben Stoltz sto...@google.com Add support for the efi-x86 board, which supports running U-Boot as an EFI 32-bit application. Signed-off-by: Ben Stoltz sto...@google.com Signed-off-by: Simon Glass s...@chromium.org

Re: [U-Boot] [PATCH v2 30/47] x86: dts: Add a device tree file for EFI

2015-08-03 Thread Bin Meng
On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: This contains just enough to bring up the serial UART. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Remove extraneous '+' in comment - Use efi,app instead of efi,payload for the compatible string

[U-Boot] [PATCH V2 6/6] fsl: common: pfuze: no use original pfuze code if DM_PMIC

2015-08-03 Thread Peng Fan
If enable DM PMIC and REGULATOR, we should not use original power framework. So need to comment out the pfuze code for original power framework, when CONFIG_DM_PMIC_PFUZE100 defined. Signed-off-by: Peng Fan peng@freescale.com Cc: Przemyslaw Marczak p.marc...@samsung.com Cc: Simon Glass

[U-Boot] [PATCH V2 4/6] power: pmic: pfuze100 support driver model

2015-08-03 Thread Peng Fan
1. Support driver model for pfuze100. 2. Introduce a new Kconfig entry DM_PMIC_PFUZE100 for pfuze100 3. This driver intends to support PF100, PF200 and PF3000, so add the device id into the udevice_id array. 4. Rename PMIC_NUM_OF_REGS macro to PFUZE100_NUM_OF_REGS. 5. Rename file name from

[U-Boot] [PATCH V2 5/6] power: regulator: add pfuze100 support

2015-08-03 Thread Peng Fan
1. Add new regulator driver pfuze100. * Introduce struct pfuze100_regulator_desc for mataining info for regulator. 2. Add new Kconfig entry DM_REGULATOR_PFUZE100 for pfuze100. 3. This driver intends to support PF100, PF200 and PF3000. 4. Add related macro definition in pfuze header file.

[U-Boot] [PATCH V2 2/6] power: regulator use node name when no regulator-name

2015-08-03 Thread Peng Fan
If there is no property named 'regulator-name' for regulators, choose node name instead, but not directly return failure value. Signed-off-by: Peng Fan peng@freescale.com Cc: Przemyslaw Marczak p.marc...@samsung.com Cc: Simon Glass s...@chromium.org --- Changes v2: none. The comments update

[U-Boot] [PATCH V2 3/6] power: regulator: update comments for regulator-name

2015-08-03 Thread Peng Fan
We do not need that regulator-name property must be provided in dts. If regulator-name property is not provided in dts, node name will chosen for settings '.name' field of uc_pdata. Signed-off-by: Peng Fan peng@freescale.com Cc: Przemyslaw Marczak p.marc...@samsung.com Cc: Simon Glass

Re: [U-Boot] [PATCH 4/5] power: regulator: add pfuze100 support

2015-08-03 Thread Peng Fan
On Mon, Aug 03, 2015 at 08:38:49AM +0800, Peng Fan wrote: Hi Simon, On Sun, Aug 02, 2015 at 04:30:52PM -0600, Simon Glass wrote: Hi Peng, On 28 July 2015 at 08:48, Peng Fan peng@freescale.com wrote: 1. Add new regulator driver pfuze100. * Introduce struct pfuze100_regulator_desc for

Re: [U-Boot] [PATCH v2 28/47] x86: Add support for U-Boot as an EFI application

2015-08-03 Thread Bin Meng
Hi Simon, On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: From: Ben Stoltz sto...@google.com Add the required x86 glue code. This includes the initial start-up, relocation and jumping to efi_main(). We also need to avoid fiddling with interrupts. Signed-off-by: Ben

  1   2   3   >