Re: [U-Boot] [PATCH v2 3/9] x86: Re-order efi-x86_defconfig

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 22:03, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Tue, Aug 11, 2015 at 11:55 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 21:53, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Mon, Aug 10, 2015 at 8:58 PM, Simon Glass

[U-Boot] [PATCH] fs-test.sh: minor fixes

2015-08-10 Thread Stephen Warren
- Re-direct stderr into the log files, so any errors U-Boot emits are visible in the logs. This is relevant if the reset shell command attempts to report that it's not supported on the sandbox board. - Fix test_fs_nonfs() to name the files it created differently for each invocation.

Re: [U-Boot] [PATCH v3 03/10] x86: Re-order efi-x86_defconfig

2015-08-10 Thread Bin Meng
On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass s...@chromium.org wrote: Use savedefconfig to get this file into the correct order. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: - Rebase to mainline configs/efi-x86_defconfig | 10 +- 1 file

Re: [U-Boot] [PATCH v3 07/10] x86: minnowmax: Define and enable interrupt setup

2015-08-10 Thread Bin Meng
Hi Simon, On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass s...@chromium.org wrote: Set up interrupts correctly so that Linux can use all devices. Use savedefconfig to regenerate the defconfig file. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Drop unnecessary blank lines

Re: [U-Boot] [PATCH v3 08/10] x86: baytrail: Tidy up interrupt and FSP init

2015-08-10 Thread Bin Meng
On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass s...@chromium.org wrote: We should signal to the FSP that PCI enumeration is complete. Perform this task in a suitable place. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Drop interrupt.h header include Changes in v2: -

Re: [U-Boot] [PATCH v3 1/3] x86: Convert minnowmax to use CONFIG_DM_USB

2015-08-10 Thread Bin Meng
On Tue, Aug 11, 2015 at 12:02 PM, Simon Glass s...@chromium.org wrote: Move to driver model for USB on minnowmax. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Use savedefconfig to tidy up the ordering Changes in v2: None configs/minnowmax_defconfig | 9 +

Re: [U-Boot] [PATCH v3 09/10] x86: Add a simple interrupt script to the README

2015-08-10 Thread Bin Meng
Hi Simon, On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass s...@chromium.org wrote: It is a bit tedious to figure out the interrupt configuration for a new x86 platform. Add a script which can do this, based on the output of 'pci long'. This may be helpful in some cases. Signed-off-by: Simon

Re: [U-Boot] [PATCH v3 3/3] x86: Show the un-relocated IP address in exceptions

2015-08-10 Thread Bin Meng
On Tue, Aug 11, 2015 at 12:02 PM, Simon Glass s...@chromium.org wrote: When trying to figure out where an exception has occured, the relocated address is not a lot of help. Its value depends on various factors. Show the un-relocated IP as well. This can be looked up in System.map directly.

Re: [U-Boot] [PATCH v3 2/3] x86: Convert minnowmax to use CONFIG_DM_NET

2015-08-10 Thread Bin Meng
On Tue, Aug 11, 2015 at 12:02 PM, Simon Glass s...@chromium.org wrote: Move to driver model for networking on minnowmax. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Use savedefconfig to tidy up the ordering Changes in v2: None board/intel/minnowmax/minnowmax.c | 6

Re: [U-Boot] [PATCH] tegra: Correct logic for reading pll_misc in clock_start_pll()

2015-08-10 Thread Tom Warren
Simon, -Original Message- From: Simon Glass [mailto:s...@google.com] On Behalf Of Simon Glass Sent: Monday, August 10, 2015 6:15 AM To: U-Boot Mailing List Cc: Simon Glass; Tom Warren; Thierry Reding; Masahiro Yamada; Stephen Warren; Tom Rini; Albert Aribaud; Marcel Ziswiler;

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-10 Thread Simon Glass
Hi Bin, On 7 August 2015 at 18:47, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sat, Aug 8, 2015 at 3:26 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 7 August 2015 at 03:28, Bin Meng bmeng...@gmail.com wrote: Currently the microcode-tool writes microcode into a data block as

[U-Boot] [RFC v2 PATCH 2/3] pinctrl: add simple pinctrl implementation

2015-08-10 Thread Masahiro Yamada
The full pinctrl implementation added by the previous commit can support the same DT bindings as Linux, but it typically needs about 1.5 KB footprint to include the uclass support (CONFIG_PINCTRL + CONFIG_PINCTRL_GENERIC + CONFIG_PINMUX on ARM architecture). We are often limited on code size for

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

2015-08-10 Thread York Sun
Priyanka, If the boards have been officially named T1040D4RDB/T1042D4RDB, we can keep the names. How about QDS and T1024 boards? York Original message From: Jain Priyanka-B32167 Date:08/09/2015 22:01 (GMT-08:00) To: Sun York-R58495 , U-Boot Mailing List Cc: Wood Scott-B07421

Re: [U-Boot] [PATCH 1/2] gpio: Add DW APB GPIO driver

2015-08-10 Thread Marek Vasut
On Friday, August 07, 2015 at 10:37:54 PM, Simon Glass wrote: Hi Marek, Hi Simon, On 7 August 2015 at 14:35, Marek Vasut ma...@denx.de wrote: On Friday, August 07, 2015 at 09:13:45 PM, Simon Glass wrote: Hi Marek, Hi! On 5 August 2015 at 19:49, Marek Vasut ma...@denx.de wrote:

[U-Boot] [RFC v2 PATCH 1/3] pinctrl: add pin control uclass support

2015-08-10 Thread Masahiro Yamada
This creates a new framework for handling of pin control devices, i.e. devices that control different aspects of package pins. This uclass handles pinmuxing and pin configuration; pinmuxing controls switching among silicon blocks that share certain physical pins, pin configuration handles

[U-Boot] [RFC v2 PATCH 3/3] pinctrl: sandbox: add sandbox pinctrl driver

2015-08-10 Thread Masahiro Yamada
This driver actually does nothing but test pinctrl uclass, and demonstrate how things work. To try this driver, uncomment /* #define DEBUG */ in the drivers/pinctrl/pinctrl-sandbox.c, and debug messages will be displayed. DRAM: 128 MiB sandbox pinmux: group = 1 (serial_a), function = 1

[U-Boot] [RFC v2 PATCH 0/3] add pinctrl driver framework

2015-08-10 Thread Masahiro Yamada
Sorry for delay. This is RFC v2. README.pinctrl is missing in this version (I will do it in the next version), but the code itself is almost ready for the review. This series depends on Add macros to ease our life with independent CONFIGs between U-Boot and SPL, consists of 15 patches.

[U-Boot] [RFC v3 PATCH 0/4] add pinctrl driver framework

2015-08-10 Thread Masahiro Yamada
Sorry for delay. This is RFC v3. (I forgot to send a pre-requisite patch.) README.pinctrl is missing in this version (I will do it in the next version), but the code itself is almost ready for the review. This series depends on Add macros to ease our life with independent CONFIGs between

[U-Boot] [RFC v3 PATCH 3/4] pinctrl: add simple pinctrl implementation

2015-08-10 Thread Masahiro Yamada
The full pinctrl implementation added by the previous commit can support the same DT bindings as Linux, but it typically needs about 1.5 KB footprint to include the uclass support (CONFIG_PINCTRL + CONFIG_PINCTRL_GENERIC + CONFIG_PINMUX on ARM architecture). We are often limited on code size for

Re: [U-Boot] [PATCH 1/2] gpio: Add DW APB GPIO driver

2015-08-10 Thread Marek Vasut
On Monday, August 10, 2015 at 05:35:25 PM, Simon Glass wrote: Hi Marek, On 10 August 2015 at 09:01, Marek Vasut ma...@denx.de wrote: On Friday, August 07, 2015 at 10:37:54 PM, Simon Glass wrote: Hi Marek, Hi Simon, On 7 August 2015 at 14:35, Marek Vasut ma...@denx.de wrote:

Re: [U-Boot] [PATCH v2 0/4] lpc32xx: devkit3250 board update

2015-08-10 Thread Vladimir Zapolskiy
Hello Albert, On 18.07.2015 01:46, Vladimir Zapolskiy wrote: This changeset improves support of Timll DevKit3250 board: * added LPC32xx MAC and SMSC RMII phy support, this dependends on - http://patchwork.ozlabs.org/patch/489100/ - http://patchwork.ozlabs.org/patch/489190/ -

Re: [U-Boot] [PATCH 1/2] gpio: Add DW APB GPIO driver

2015-08-10 Thread Simon Glass
Hi Marek, On 10 August 2015 at 09:01, Marek Vasut ma...@denx.de wrote: On Friday, August 07, 2015 at 10:37:54 PM, Simon Glass wrote: Hi Marek, Hi Simon, On 7 August 2015 at 14:35, Marek Vasut ma...@denx.de wrote: On Friday, August 07, 2015 at 09:13:45 PM, Simon Glass wrote: Hi

[U-Boot] [PATCH] dm: simplify uclass_foreach_dev() implementation

2015-08-10 Thread Masahiro Yamada
This can be simply written with list_for_each_entry(), maybe this macro was not necessary in the first place. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- include/dm/uclass.h | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/include/dm/uclass.h

[U-Boot] [PATCH][v3] driver: misc: debug server: Update Error message

2015-08-10 Thread Prabhakar Kushwaha
Append debug server FW in error message to make more informative. Signed-off-by: Prabhakar Kushwaha prabha...@freescale.com Reviewed-by: Bhupesh Sharma bhupesh.sha...@freescale.com --- Changes for v2: Incorporated Bhupesh's review comments Changes for v3: Corrected description

[U-Boot] [PATCH V2 1/3] gpio: Add DW APB GPIO driver

2015-08-10 Thread Marek Vasut
Add driver for the DesignWare APB GPIO IP block. This driver is DM capable and probes from DT. Signed-off-by: Marek Vasut ma...@denx.de Cc: Simon Glass s...@chromium.org --- drivers/gpio/Kconfig | 7 ++ drivers/gpio/Makefile | 1 + drivers/gpio/dwapb_gpio.c | 167

[U-Boot] [PATCH 2/3] arm: socfpga: dts: Add bank-name property to each GPIO bank

2015-08-10 Thread Marek Vasut
Add bank-name property to each GPIO bank to give it unique name. The approach here is exactly the same as with the regulator-name property for regulators. Signed-off-by: Marek Vasut ma...@denx.de Cc: Simon Glass s...@chromium.org --- arch/arm/dts/socfpga.dtsi | 3 +++ 1 file changed, 3

[U-Boot] [PATCH 3/3] arm: socfpga: Enable DWAPB GPIO driver

2015-08-10 Thread Marek Vasut
Enable the DWAPB GPIO driver for SoCFPGA Cyclone V and Arria V. Signed-off-by: Marek Vasut ma...@denx.de Cc: Simon Glass s...@chromium.org Cc: Dinh Nguyen dingu...@opensource.altera.com --- configs/socfpga_arria5_defconfig | 2 ++ configs/socfpga_cyclone5_defconfig | 2 ++

Re: [U-Boot] [PATCH v3 15/15] imx: mx6ul_14x14_evk add basic board support

2015-08-10 Thread Fabio Estevam
Hi Peng, On Mon, Jul 20, 2015 at 8:28 AM, Peng Fan peng@freescale.com wrote: 1. Add USDHC, I2C, UART, 74LV, USB, QSPI support. 2. Support SPL 3. CONFIG_MX6UL_14X14_EVK_EMMC_REWORK is introduced, this board default supports sd for usdhc2, but can do hardware rework to make usdhc2

Re: [U-Boot] [PATCH v2 6/9] update: tftp: dfu: Extend update_tftp() function to support DFU

2015-08-10 Thread Simon Glass
Hi Lukasz, On 10 August 2015 at 11:01, Lukasz Majewski l.majew...@majess.pl wrote: Hi Simon, Hi Lukasz, On 25 July 2015 at 02:11, Lukasz Majewski l.majew...@majess.pl wrote: This code allows using DFU defined mediums for storing data received via TFTP protocol. It reuses and

Re: [U-Boot] [PATCH 5/5] x86: Switch to using generic global_data setup

2015-08-10 Thread Simon Glass
Hi Bin, On 6 August 2015 at 01:16, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Mon, Aug 3, 2015 at 8:10 AM, Simon Glass s...@chromium.org wrote: There is quite a bit of assembler code that can be removed if we use the generic global_data setup. Less arch-specific code makes it easier to

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

2015-08-10 Thread Jagan Teki
On 10 August 2015 at 08:28, Hou Zhiqiang b48...@freescale.com wrote: 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;

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

2015-08-10 Thread Jagan Teki
On 23 July 2015 at 15:24, Zhiqiang Hou b48...@freescale.com wrote: From: Hou Zhiqiang b48...@freescale.com Add clear flag status register operation that was required by Micron SPI flash chips after reading the flag status register to check if the erase and program operations complete or an

Re: [U-Boot] [PATCH v2 6/9] update: tftp: dfu: Extend update_tftp() function to support DFU

2015-08-10 Thread Lukasz Majewski
Hi Simon, Hi Lukasz, On 25 July 2015 at 02:11, Lukasz Majewski l.majew...@majess.pl wrote: This code allows using DFU defined mediums for storing data received via TFTP protocol. It reuses and preserves functionality of legacy code at common/update.c. The update_tftp() function

Re: [U-Boot] [PATCH v6 2/5] nand: lpc32xx: add hardware ECC support

2015-08-10 Thread LEMIEUX, SYLVAIN
-Original Message- From: Vladimir Zapolskiy [mailto:v...@mleia.com] Hi Sylvain, On 10.08.2015 15:16, slemieux.t...@gmail.com wrote: From: Sylvain Lemieux slemi...@tycoint.com Incorporate NAND SLC hardware ECC support from legacy LPCLinux NXP BSP. The code taken from the

Re: [U-Boot] u-boot FIT image support

2015-08-10 Thread Simon Glass
Hi York, On 7 August 2015 at 17:12, York Sun york...@freescale.com wrote: On 08/07/2015 03:47 PM, Simon Glass wrote: Hi York, On 7 August 2015 at 14:48, York Sun york...@freescale.com wrote: Simon, I was doing an experiment to put the load address and entry address of Linux to higher

[U-Boot] [PATCH][v2] driver: misc: debug server: Update Error message

2015-08-10 Thread Prabhakar Kushwaha
Append debug server image in error message to make more informative. Signed-off-by: Prabhakar Kushwaha prabha...@freescale.com Reviewed-by: Bhupesh Sharma bhupesh.sha...@freescale.com --- Changes for v2: Incorporated Bhuesh's review comments drivers/misc/fsl_debug_server.c | 10 +- 1

Re: [U-Boot] [PATCH v2] dm: serial: Add a REQUIRE_SERIAL_CONSOLE option for boards with no serial port

2015-08-10 Thread Simon Glass
On 10 August 2015 at 06:59, Simon Glass s...@chromium.org wrote: On 8 August 2015 at 09:45, Hans de Goede hdego...@redhat.com wrote: Currently the serial code assumes that there is always at least one serial port (and panics / crashes due to null pointer dereferences when there is none).

[U-Boot] [RFC v3 PATCH 1/4] dm: do not return pointer if NULL is given to devp of device_bind()

2015-08-10 Thread Masahiro Yamada
This is useful when we want to bind a device, but do not need the device pointer. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- drivers/core/device.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/core/device.c b/drivers/core/device.c index

[U-Boot] [RFC v3 PATCH 2/4] pinctrl: add pin control uclass support

2015-08-10 Thread Masahiro Yamada
This creates a new framework for handling of pin control devices, i.e. devices that control different aspects of package pins. This uclass handles pinmuxing and pin configuration; pinmuxing controls switching among silicon blocks that share certain physical pins, pin configuration handles

[U-Boot] [RFC v3 PATCH 4/4] pinctrl: sandbox: add sandbox pinctrl driver

2015-08-10 Thread Masahiro Yamada
This driver actually does nothing but test pinctrl uclass, and demonstrate how things work. To try this driver, uncomment /* #define DEBUG */ in the drivers/pinctrl/pinctrl-sandbox.c, and debug messages will be displayed. DRAM: 128 MiB sandbox pinmux: group = 1 (serial_a), function = 1

Re: [U-Boot] u-boot FIT image support

2015-08-10 Thread York Sun
On 08/10/2015 11:40 AM, Simon Glass wrote: Hi York, On 7 August 2015 at 17:12, York Sun york...@freescale.com wrote: On 08/07/2015 03:47 PM, Simon Glass wrote: Hi York, On 7 August 2015 at 14:48, York Sun york...@freescale.com wrote: Simon, I was doing an experiment to put the load

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

2015-08-10 Thread Stephen Warren
On 08/09/2015 09:07 AM, Simon Glass wrote: 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

Re: [U-Boot] [PATCH v3 11/16] net/eth.c: Add function to validate a MAC address

2015-08-10 Thread Joe Hershberger
Too much top-posting. On Mon, Aug 10, 2015 at 2:41 PM, York Sun york...@freescale.com wrote: SPL doesn't use net/eth.c. You add a call in env_flags.c. I think you can put it in header file and use static inline, or keep it in the same file where it is called. That is probably fine. Another

Re: [U-Boot] [PATCH v3 11/16] net/eth.c: Add function to validate a MAC address

2015-08-10 Thread York Sun
On 08/10/2015 12:57 PM, Joe Hershberger wrote: Too much top-posting. On Mon, Aug 10, 2015 at 2:41 PM, York Sun york...@freescale.com wrote: SPL doesn't use net/eth.c. You add a call in env_flags.c. I think you can put it in header file and use static inline, or keep it in the same file

[U-Boot] [PATCH] arm: socfpga: Make the DT mmc node consistent

2015-08-10 Thread Marek Vasut
The socfpga_cyclone5.dtsi has an mmc0 node, socrates has mmc node. This makes aliases not very usable, so make everything into mmc0. Moreover, zap the useless mmc alias while at this. Signed-off-by: Marek Vasut ma...@denx.de --- arch/arm/dts/socfpga.dtsi | 3 +--

Re: [U-Boot] [PATCH v3 50/54] mkimage: Set up a file size parameter and keep it updated

2015-08-10 Thread Marek Vasut
On Saturday, July 18, 2015 at 01:58:09 AM, Simon Glass wrote: On 25 June 2015 at 16:51, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Simon, On Tue, Jun 23, 2015 at 4:39 PM, Simon Glass s...@chromium.org wrote: Some functions called by mkimage would like to know the output file

[U-Boot] debugging malloc heap corruption on 2015.04

2015-08-10 Thread Chris Packham
Hi All, I've migrate a custom armv7 board from v2015.01 to v2015.04. One issue I've just started seeing is an odd hang _sometimes_ when booting automatically. The issue doesn't (seem to) happen when the boot process is interrupted and I run the boot command. I can also make the problem appear or

[U-Boot] [PATCH] arm: socfpga: Fix delay in freeze controller

2015-08-10 Thread Marek Vasut
Based on observation, this udelay(20) was apparently too high and caused subsequent failure to calibrate DDR when U-Boot was compiled with certain toolchains. Lowering this delay fixed the problem. Instead of permanently lowering the delay, calculate the correct delay based on the original

[U-Boot] [PATCH] arm: socfpga: Fix delay in clock manager

2015-08-10 Thread Marek Vasut
This code claims it needs to wait 7us, yet it uses get_timer() function which operates with millisecond granularity. Use timer_get_us() instead, which operates with microsecond granularity. Signed-off-by: Marek Vasut ma...@denx.de --- arch/arm/mach-socfpga/clock_manager.c | 12 +--- 1

[U-Boot] [PATCH] arm: socfpga: Do not enable gmac1 in Cyclone V dtsi

2015-08-10 Thread Marek Vasut
The GMAC which is enabled is purely board property, so do not enable arbitrary GMAC in DT include files. Same goes for PHY mode, which is again a board property. The CycloneV SoCDK does this correctly, but SoCrates doesn't. This bug never manifested itself though, since all the boards ever used

[U-Boot] [PATCH 5/8] arm: socfpga: Remove AV-specific parts from CV-SoCDK

2015-08-10 Thread Marek Vasut
Just remove the ArriaV specific parts from the CycloneV SoCDK board and they are no longer needed now. Signed-off-by: Marek Vasut ma...@denx.de --- board/altera/cyclone5-socdk/qts/iocsr_config.c | 688 - board/altera/cyclone5-socdk/qts/iocsr_config.h | 9 -

[U-Boot] [PATCH 3/8] arm: socfpga: Split Altera socfpga into AV and CV SoCDK

2015-08-10 Thread Marek Vasut
The board/altera/socfpga directory is not a generic SoCFPGA machine anymore, but instead it represents the Altera SoCDK board. To make matters more complicated, it represents both CycloneV and ArriaV variant. On the other hand, nowadays, the content of this board directory is mostly comprised of

[U-Boot] [PATCH 0/8] arm: socfpga: Board cleanup

2015-08-10 Thread Marek Vasut
This series cleans up the QTS-generated header files and cleans up the SoCDK support such that they fit into the framework just like any other SoCFPGA boards. Marek Vasut (8): arm: socfpga: Move wrappers into platform directory arm: socfpga: Unbind CPU type from board type arm: socfpga:

Re: [U-Boot] [PATCH v6 2/5] nand: lpc32xx: add hardware ECC support

2015-08-10 Thread Vladimir Zapolskiy
On 10.08.2015 21:40, LEMIEUX, SYLVAIN wrote: -Original Message- From: Vladimir Zapolskiy [mailto:v...@mleia.com] Hi Sylvain, On 10.08.2015 15:16, slemieux.t...@gmail.com wrote: From: Sylvain Lemieux slemi...@tycoint.com Incorporate NAND SLC hardware ECC support from legacy

[U-Boot] [PATCH 2/2] ddr: altera: Repair uninited variable

2015-08-10 Thread Marek Vasut
Fix the following problem: drivers/ddr/altera/sequencer.c: In function 'sdram_calibration_full': drivers/ddr/altera/sequencer.c:1943:25: warning: 'found_failing_read' may be used uninitialized in this function [-Wmaybe-uninitialized] if (found_passing_read found_failing_read)

[U-Boot] [PATCH 1/2] ddr: altera: Replace float multiplication with integer one

2015-08-10 Thread Marek Vasut
This gem is really really rare, there was an actual float used in the Altera DDR init code, which pulled in floating point ops from the libgcc, just wow. Since we don't support floating point operations the same way Linux does not support them, replace this with an integer multiplication and

[U-Boot] [PATCH 7/8] arm: socfpga: Switch to filtered QTS files

2015-08-10 Thread Marek Vasut
Signed-off-by: Marek Vasut ma...@denx.de --- arch/arm/mach-socfpga/wrap_iocsr_config.c | 7 +- arch/arm/mach-socfpga/wrap_pinmux_config.c | 23 +- arch/arm/mach-socfpga/wrap_sdram_config.c | 8 +- board/altera/arria5-socdk/qts/iocsr_config.c | 693

[U-Boot] [PATCH 4/8] arm: socfpga: Remove CV-specific parts from AV-SoCDK

2015-08-10 Thread Marek Vasut
Just remove the CycloneV specific parts from the ArriaV SoCDK board and they are no longer needed now. Signed-off-by: Marek Vasut ma...@denx.de --- board/altera/arria5-socdk/qts/iocsr_config.c | 652 - board/altera/arria5-socdk/qts/iocsr_config.h | 9 -

[U-Boot] [PATCH 1/8] arm: socfpga: Move wrappers into platform directory

2015-08-10 Thread Marek Vasut
Move the wrappers for QTS-generated files into platform directory out of the board directory. The trick here is to add -I to CFLAGS such that it points to the board directory in source tree and thus the qts/ directory there is still reachable. Signed-off-by: Marek Vasut ma...@denx.de ---

[U-Boot] [PATCH 6/8] arm: socfpga: Add qts-filter.sh script

2015-08-10 Thread Marek Vasut
Add script which loads the QTS-generated sources and headers and converts them into sensible format which can be used with much more easy in mainline U-Boot. The script also filters out macros which makes no sense anymore, so they don't pollute namespace and waste space. Signed-off-by: Marek

[U-Boot] [PATCH 2/8] arm: socfpga: Unbind CPU type from board type

2015-08-10 Thread Marek Vasut
The CONFIG_TARGET_SOCFPGA_CYCLONE5 and CONFIG_TARGET_SOCFPGA_ARRIA5 selected both a board and a CPU. This is not correct as these macros are supposed to select only board. All would be good, if QTS-generated header files didn't check for these macros exactly to determine if the platform is

[U-Boot] [PATCH 8/8] arm: socfpga: Make the pinmux table const u8

2015-08-10 Thread Marek Vasut
Now that we're actually converting the QTS-generated header files, we can even adjust their data types. A good candidate for this is the pinmux table, where each entry can have value in the range of 0..3, but each element is declared as unsigned long. By changing the type to u8, we can save over

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

2015-08-10 Thread Scott Wood
On Mon, 2015-08-10 at 09:17 +0800, Peng Fan wrote: 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/ Yes. -Scott

Re: [U-Boot] [PATCH] arm: mxs: Fix mkimage invocation

2015-08-10 Thread Simon Glass
Hi Marek, On 10 August 2015 at 20:56, Marek Vasut ma...@denx.de wrote: On Tuesday, August 11, 2015 at 04:47:33 AM, Simon Glass wrote: Hi Marek, Hi Simon, Reviewed-by: Simon Glass s...@chromium.org Sorry for the breakage. I had an weird issue with my original patch on the boards you

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-10 Thread Bin Meng
Hi Simon, On Tue, Aug 11, 2015 at 10:51 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 20:45, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Mon, Aug 10, 2015 at 11:48 PM, Simon Glass s...@chromium.org wrote: Hi Bin, On 7 August 2015 at 18:47, Bin Meng

Re: [U-Boot] [PATCH v4] x86: baytrail: Configure FSP UPD from device tree

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 20:53, Bin Meng bmeng...@gmail.com wrote: Hi Andrew, On Mon, Aug 10, 2015 at 7:32 PM, Andrew Bradford and...@bradfordembedded.com wrote: Hi Bin, On 08/09 10:52, Bin Meng wrote: Hi Andrew, On Sun, Aug 9, 2015 at 9:08 AM, Andrew Bradford

Re: [U-Boot] [PATCH] Revert dm: pci: Allow scan bridge child devices before relocation

2015-08-10 Thread Bin Meng
On Tue, Aug 11, 2015 at 10:54 AM, Simon Glass s...@chromium.org wrote: This reverts commit df189d9ba3f8fd1bc67e3c0c3c4ace16cd065ee1. Unfortunately this commit breaks chromebook_link because it adds lots of PCI devices before relocation and there is not enough pre-reloc malloc() memory.

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 21:05, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Tue, Aug 11, 2015 at 10:51 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 20:45, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Mon, Aug 10, 2015 at 11:48 PM, Simon Glass

Re: [U-Boot] [PATCH v4] x86: baytrail: Configure FSP UPD from device tree

2015-08-10 Thread Bin Meng
Hi Simon, On Tue, Aug 11, 2015 at 11:07 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 20:53, Bin Meng bmeng...@gmail.com wrote: Hi Andrew, On Mon, Aug 10, 2015 at 7:32 PM, Andrew Bradford and...@bradfordembedded.com wrote: Hi Bin, On 08/09 10:52, Bin Meng wrote:

Re: [U-Boot] [PATCH v4] x86: baytrail: Configure FSP UPD from device tree

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 21:17, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Tue, Aug 11, 2015 at 11:07 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 20:53, Bin Meng bmeng...@gmail.com wrote: Hi Andrew, On Mon, Aug 10, 2015 at 7:32 PM, Andrew Bradford

Re: [U-Boot] [PATCH v4] x86: baytrail: Configure FSP UPD from device tree

2015-08-10 Thread Bin Meng
Hi Simon, On Tue, Aug 11, 2015 at 11:24 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 21:17, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Tue, Aug 11, 2015 at 11:07 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 20:53, Bin Meng

Re: [U-Boot] [PATCH 08/18] sandbox: Use the reset driver to handle reset

2015-08-10 Thread Stephen Warren
On 07/17/2015 05:58 PM, Simon Glass wrote: On 6 July 2015 at 12:54, Simon Glass s...@chromium.org wrote: Move sandbox over to use the reset uclass for reset, instead of a direct call to do_reset(). This allows us to add tests. Signed-off-by: Simon Glass s...@chromium.org ---

Re: [U-Boot] [PATCH v4] x86: baytrail: Configure FSP UPD from device tree

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 21:31, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Tue, Aug 11, 2015 at 11:24 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 21:17, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Tue, Aug 11, 2015 at 11:07 AM, Simon Glass

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-10 Thread Bin Meng
Hi Simon, On Tue, Aug 11, 2015 at 11:15 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 21:05, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Tue, Aug 11, 2015 at 10:51 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 20:45, Bin Meng

Re: [U-Boot] [PATCH 08/18] sandbox: Use the reset driver to handle reset

2015-08-10 Thread Simon Glass
Hi Stephen, On 10 August 2015 at 21:35, Stephen Warren swar...@wwwdotorg.org wrote: On 07/17/2015 05:58 PM, Simon Glass wrote: On 6 July 2015 at 12:54, Simon Glass s...@chromium.org wrote: Move sandbox over to use the reset uclass for reset, instead of a direct call to do_reset(). This allows

Re: [U-Boot] [PATCH v3 06/11] arm: rpi: Enable device tree control for Rasberry Pi

2015-08-10 Thread Stephen Warren
On 08/07/2015 07:42 AM, Simon Glass wrote: Enable device tree control so that we can use driver model fully and avoid using platform data. I'm still not convinced about this change. Re: the commit message about: What about the driver model is not being fully used without DT? Overall: What

Re: [U-Boot] [PATCH v2 3/9] x86: Re-order efi-x86_defconfig

2015-08-10 Thread Bin Meng
Hi Simon, On Mon, Aug 10, 2015 at 8:58 PM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 00:18, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass s...@chromium.org wrote: Use savedefconfig to get this file into the correct order.

Re: [U-Boot] [PATCH v2 3/9] x86: Re-order efi-x86_defconfig

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 21:53, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Mon, Aug 10, 2015 at 8:58 PM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 00:18, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass

Re: [U-Boot] [PATCH v3 01/11] dm: serial: Update binding for PL01x serial UART

2015-08-10 Thread Stephen Warren
On 08/07/2015 07:42 AM, Simon Glass wrote: This binding differs from that of Linux. Update it and change existing users. Is that meant to imply that this patch fixes the copy of the binding doc in U-Boot so it does match the kernel's copy? Changes in v3: - Rename binding file to pl01x.txt

Re: [U-Boot] [PATCH v2 7/9] x86: minnowmax: Define and enable interrupt setup

2015-08-10 Thread Bin Meng
Hi Simon, On Mon, Aug 10, 2015 at 8:58 PM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 00:19, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sat, Aug 8, 2015 at 10:27 PM, Simon Glass s...@chromium.org wrote: Set up interrupts correctly so that Linux can use all

Re: [U-Boot] [PATCH v3 02/11] arm: rpi: Define CONFIG_TFTP_TSIZE to show tftp size info

2015-08-10 Thread Stephen Warren
On 08/07/2015 07:42 AM, Simon Glass wrote: This shows a proper progress display and the total amount of data transferred. Enable it for Raspberry Pi. Acked-by: Stephen Warren swar...@wwwdotorg.org ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v3 04/11] arm: rpi: Device tree modifications for U-Boot

2015-08-10 Thread Stephen Warren
On 08/07/2015 07:42 AM, Simon Glass wrote: This updates the device tree from the kernel version to something suitable for U-Boot: - Add stdout-path alias for console - Mark the /soc node to be available pre-relocation so that the early serial console works (we need the 'ranges' property to

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 21:45, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Tue, Aug 11, 2015 at 11:15 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 21:05, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Tue, Aug 11, 2015 at 10:51 AM, Simon Glass

[U-Boot] [PATCH v3 2/3] x86: Convert minnowmax to use CONFIG_DM_NET

2015-08-10 Thread Simon Glass
Move to driver model for networking on minnowmax. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Use savedefconfig to tidy up the ordering Changes in v2: None board/intel/minnowmax/minnowmax.c | 6 -- configs/minnowmax_defconfig | 1 + 2 files changed, 1

[U-Boot] [PATCH v3 1/3] x86: Convert minnowmax to use CONFIG_DM_USB

2015-08-10 Thread Simon Glass
Move to driver model for USB on minnowmax. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Use savedefconfig to tidy up the ordering Changes in v2: None configs/minnowmax_defconfig | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

Re: [U-Boot] [PATCH v2 3/9] x86: Re-order efi-x86_defconfig

2015-08-10 Thread Bin Meng
Hi Simon, On Tue, Aug 11, 2015 at 11:55 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 21:53, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Mon, Aug 10, 2015 at 8:58 PM, Simon Glass s...@chromium.org wrote: Hi Bin, On 10 August 2015 at 00:18, Bin Meng

[U-Boot] [PATCH v3 3/3] x86: Show the un-relocated IP address in exceptions

2015-08-10 Thread Simon Glass
When trying to figure out where an exception has occured, the relocated address is not a lot of help. Its value depends on various factors. Show the un-relocated IP as well. This can be looked up in System.map directly. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Tom Rini

Re: [U-Boot] [PATCH 0/9] Replace the FAT filesystem code

2015-08-10 Thread Stephen Warren
On 08/07/2015 09:09 PM, Stephen Warren wrote: The existing FAT filesystem implementation in U-Boot has some bugs that are tricky to fix cleanly without significant rework of the code. For example, see: http://lists.denx.de/pipermail/u-boot/2015-July/221054.html [PATCH] fat: handle paths

Re: [U-Boot] [PATCH v3 01/11] dm: serial: Update binding for PL01x serial UART

2015-08-10 Thread Simon Glass
HI Stephen, On 10 August 2015 at 21:57, Stephen Warren swar...@wwwdotorg.org wrote: On 08/07/2015 07:42 AM, Simon Glass wrote: This binding differs from that of Linux. Update it and change existing users. Is that meant to imply that this patch fixes the copy of the binding doc in U-Boot so

Re: [U-Boot] [PATCH v3 01/10] dm: pci: Provide friendly config access functions

2015-08-10 Thread Bin Meng
On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass s...@chromium.org wrote: At present there are no PCI functions which allow access to PCI configuration using a struct udevice. This is a sad situation for driver model as it makes use of PCI harder. Add these functions. Signed-off-by: Simon Glass

Re: [U-Boot] debugging malloc heap corruption on 2015.04

2015-08-10 Thread Chris Packham
On Tue, Aug 11, 2015 at 11:56 AM, Chris Packham judge.pack...@gmail.com wrote: Hi All, I've migrate a custom armv7 board from v2015.01 to v2015.04. One issue I've just started seeing is an odd hang _sometimes_ when booting automatically. The issue doesn't (seem to) happen when the boot

Re: [U-Boot] [PATCH v3 02/10] dm: pci: Add a way to iterate through all PCI devices

2015-08-10 Thread Bin Meng
On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass s...@chromium.org wrote: These functions allow iteration through all PCI devices including bridges. The children of each PCI bus are returned in turn. This can be useful for configuring, checking or enumerating all the devices. Signed-off-by: Simon

Re: [U-Boot] [PATCH v3 04/11] arm: rpi: Device tree modifications for U-Boot

2015-08-10 Thread Simon Glass
Hi Stephen, On 10 August 2015 at 22:00, Stephen Warren swar...@wwwdotorg.org wrote: On 08/07/2015 07:42 AM, Simon Glass wrote: This updates the device tree from the kernel version to something suitable for U-Boot: - Add stdout-path alias for console - Mark the /soc node to be available

Re: [U-Boot] [PATCH v3 04/11] arm: rpi: Device tree modifications for U-Boot

2015-08-10 Thread Stephen Warren
On 08/10/2015 10:17 PM, Simon Glass wrote: Hi Stephen, On 10 August 2015 at 22:00, Stephen Warren swar...@wwwdotorg.org wrote: On 08/07/2015 07:42 AM, Simon Glass wrote: This updates the device tree from the kernel version to something suitable for U-Boot: - Add stdout-path alias for

Re: [U-Boot] [PATCH v3 01/11] dm: serial: Update binding for PL01x serial UART

2015-08-10 Thread Stephen Warren
On 08/10/2015 10:11 PM, Simon Glass wrote: HI Stephen, On 10 August 2015 at 21:57, Stephen Warren swar...@wwwdotorg.org wrote: On 08/07/2015 07:42 AM, Simon Glass wrote: This binding differs from that of Linux. Update it and change existing users. Is that meant to imply that this patch

Re: [U-Boot] [PATCH v3 11/16] net/eth.c: Add function to validate a MAC address

2015-08-10 Thread York Sun
SPL doesn't use net/eth.c. You add a call in env_flags.c. I think you can put it in header file and use static inline, or keep it in the same file where it is called. Another way is to undef CONFIG_CMD_NET for SPL part. It is default to 'y' in Kconfig. Joe may have some good suggestion. York

Re: [U-Boot] [PATCH v3 11/16] net/eth.c: Add function to validate a MAC address

2015-08-10 Thread Joe Hershberger
Hi York, On Mon, Aug 10, 2015 at 3:03 PM, York Sun york...@freescale.com wrote: On 08/10/2015 12:57 PM, Joe Hershberger wrote: Too much top-posting. On Mon, Aug 10, 2015 at 2:41 PM, York Sun york...@freescale.com wrote: SPL doesn't use net/eth.c. You add a call in env_flags.c. I think

Re: [U-Boot] [PATCH v3 11/16] net/eth.c: Add function to validate a MAC address

2015-08-10 Thread York Sun
On 08/10/2015 01:05 PM, Joe Hershberger wrote: Hi York, On Mon, Aug 10, 2015 at 3:03 PM, York Sun york...@freescale.com wrote: On 08/10/2015 12:57 PM, Joe Hershberger wrote: Too much top-posting. On Mon, Aug 10, 2015 at 2:41 PM, York Sun york...@freescale.com wrote: SPL doesn't use

[U-Boot] [PATCH v2 0/5] x86: Move x86 to use board_init_f_mem() instead of assembler

2015-08-10 Thread Simon Glass
Much of the early-init assembler on x86 can be removed if we use the new board_init_f_mem() function. At present only PowerPC uses it, but we should try to move more archs over. This has been contemplated for a while but it is time to take the plunge. Changes in v2: - Correct logic to round down

[U-Boot] [PATCH v2 1/5] x86: Remove init_gd() function

2015-08-10 Thread Simon Glass
This is declared but no-longer exists. Drop it. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: None arch/x86/include/asm/u-boot-x86.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/include/asm/u-boot-x86.h

  1   2   3   >