Re: [U-Boot] [PATCH] Kconfig: Add EXPERT option

2014-10-15 Thread Tom Rini
On Wed, Oct 15, 2014 at 12:19:58AM +0200, Albert ARIBAUD wrote: Hi Tom, On Tue, 14 Oct 2014 08:39:20 -0400, Tom Rini tr...@ti.com wrote: For similar reasons to why the Linux Kernel has an EXPERT option, we too want an option to allow for tweaking of some options that while normally

[U-Boot] [PATCH 2/2][v3] mpc85xx: configs - Add hash command in freescale platforms

2014-10-15 Thread Ruchika Gupta
Enable CAAM in platforms supporting the hardware block. Hash command enabled along with hardware accelerated support for SHA-1 and SHA-256 for platforms which have CAAM block. Signed-off-by: Ruchika Gupta ruchika.gu...@freescale.com CC: York Sun york...@freescale.com --- Changes from v2:

[U-Boot] [PATCH 1/2][v3] fsl_sec: Add hardware accelerated SHA256 and SHA1

2014-10-15 Thread Ruchika Gupta
SHA-256 and SHA-1 accelerated using SEC hardware in Freescale SoC's The driver for SEC (CAAM) IP is based on linux drivers/crypto/caam. The platforms needto add the MACRO CONFIG_FSL_CAAM inorder to enable initialization of this hardware IP. Signed-off-by: Ruchika Gupta ruchika.gu...@freescale.com

[U-Boot] [PATCH][v4] ls102x: configs - Add hash command in freescale LS1 platforms

2014-10-15 Thread Ruchika Gupta
Hardware accelerated support for SHA-1 and SHA-256 has been added. Hash command enabled along with hardware accelerated support for SHA-1 and SHA-256 for platforms which have CAAM block. Signed-off-by: Ruchika Gupta ruchika.gu...@freescale.com CC: York Sun york...@freescale.com --- Changes from

[U-Boot] buildman: display list of boards with warnings/errors during build?

2014-10-15 Thread Albert ARIBAUD
Hello, Apologies if I have missed the answer to my question in tools/buildman/README or the buildman -h output. When buildman runs on a large set of boards (such as when I run 'tools/buildman/buildman -k aarch64 arm') it shows a summary of how many boards so far have built fine, built with

Re: [U-Boot] [PATCH 6/7] arm: ls102xa: Add SD boot support for LS1021AQDS board

2014-10-15 Thread Huan Wang
Hi, Albert, On Wed, 8 Oct 2014 09:53:03 +, Huan Wang alison.w...@freescale.com wrote: Hi, Albert, On Thu, 25 Sep 2014 06:45:00 +, Huan Wang alison.w...@freescale.com wrote: Hi, Albert, On Mon, 22 Sep 2014 06:46:20 +, Huan Wang

Re: [U-Boot] [PATCH v2 7/7] arm: ls102xa: Add SD boot support for LS1021ATWR board

2014-10-15 Thread Huan Wang
Hi, York, On 09/26/2014 03:33 AM, Alison Wang wrote: This patch adds SD boot support for LS1021ATWR board. SPL framework is used. PBL initialize the internal RAM and copy SPL to it, then SPL initialize DDR using SPD and copy u-boot from SD card to DDR, finally SPL transfer control to

Re: [U-Boot] [PATCH v2 6/7] arm: ls102xa: Add SD boot support for LS1021AQDS board

2014-10-15 Thread Huan Wang
Hi, York, On 09/26/2014 03:33 AM, Alison Wang wrote: This patch adds SD boot support for LS1021AQDS board. SPL framework is used. PBL initialize the internal RAM and copy SPL to it, then SPL initialize DDR using SPD and copy u-boot from SD card to DDR, finally SPL transfer control to

Re: [U-Boot] buildman: display list of boards with warnings/errors during build?

2014-10-15 Thread Simon Glass
Hi Albert, On 15 October 2014 08:28, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello, Apologies if I have missed the answer to my question in tools/buildman/README or the buildman -h output. Also -H which gives the full README. When buildman runs on a large set of boards (such as

Re: [U-Boot] [PATCH 1/2][v3] fsl_sec: Add hardware accelerated SHA256 and SHA1

2014-10-15 Thread Simon Glass
Hi, On 15 October 2014 08:05, Ruchika Gupta ruchika.gu...@freescale.com wrote: SHA-256 and SHA-1 accelerated using SEC hardware in Freescale SoC's The driver for SEC (CAAM) IP is based on linux drivers/crypto/caam. The platforms needto add the MACRO CONFIG_FSL_CAAM inorder to enable

Re: [U-Boot] [PATCH 0/3] Serial Flash: call spi_flash_free more coherently

2014-10-15 Thread Jagan Teki
On 10 October 2014 16:53, Valentin Longchamp valentin.longch...@keymile.com wrote: Hello Jagannadha, On 01/21/2014 11:03 AM, Valentin Longchamp wrote: On 09/17/2013 08:46 AM, Valentin Longchamp wrote: Some board require spi_flash_free to be called after all the accesses, in order, for

Re: [U-Boot] [PATCH 2/2] video: ipu_disp: remove pixclk fixup

2014-10-15 Thread Jeroen Hofstee
Hello Stefano, On 14-10-14 20:37, Jeroen Hofstee wrote: The ipu display insists on having a lower_margin smaller then 2. If this is not the case it will attempt to force it and adjust the pixclk accordingly. This multiplies pixclk in Hz with the width and height, since this is typically a *

Re: [U-Boot] [PATCH V7] ARM: mx6: Add support for Kosagi Novena

2014-10-15 Thread Sean Cross
On 15/10/2014 12:47, Nikolay Dimitrov wrote: Hi Marek, On 10/15/2014 12:38 AM, Marek Vasut wrote: On Sunday, October 12, 2014 at 08:33:21 AM, Sean Cross wrote: On 12/10/2014 05:04, Fabio Estevam wrote: On Sat, Oct 11, 2014 at 11:21 AM, Sean Cross x...@kosagi.com wrote: Ok, understood. Just

[U-Boot] [PATCH 08/11] fdt: Add ft_system_setup() function for system device tree additions

2014-10-15 Thread Simon Glass
Add an additional function for adding information to the device tree before booting. This permits additions which are not board-specific. Signed-off-by: Simon Glass s...@chromium.org --- README| 9 - common/cmd_fdt.c | 15 +++ common/image-fdt.c| 6

[U-Boot] [PATCH 06/11] fdt: Enhance flashmap function to deal with region properties

2014-10-15 Thread Simon Glass
Flash regions can optionally be compressed or hashed. Add the ability to read this information from the flashmap. Signed-off-by: Simon Glass s...@chromium.org --- include/fdtdec.h | 16 lib/fdtdec.c | 8 2 files changed, 24 insertions(+) diff --git

[U-Boot] [PATCH 03/11] fdt: Export the fdt_find_or_add_subnode() function

2014-10-15 Thread Simon Glass
This function is useful for ensuring that a node exists. Export it so it can be used more widely. Signed-off-by: Simon Glass s...@chromium.org --- common/fdt_support.c | 12 +--- include/fdt_support.h | 12 2 files changed, 13 insertions(+), 11 deletions(-) diff --git

[U-Boot] [PATCH 01/11] fdt: Allow ft_board_setup() to report failure

2014-10-15 Thread Simon Glass
This function can fail if the device tree runs out of space. Rather than silently booting with an incomplete device tree, allow the failure to be detected. Unfortunately this involves changing a lot of places in the code. I have not changed behvaiour to return an error where one is not currently

[U-Boot] [PATCH 05/11] fdt: Use the correct return types for fdtdec_decode_region()

2014-10-15 Thread Simon Glass
Use the correct FDT data types for this function. Also add more debugging. Signed-off-by: Simon Glass s...@chromium.org --- include/fdtdec.h | 10 +- lib/fdtdec.c | 19 --- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/include/fdtdec.h

[U-Boot] [PATCH 02/11] fdt: Report failure of ft_board_setup()

2014-10-15 Thread Simon Glass
Since this function can fail, print a message when it does. Signed-off-by: Simon Glass s...@chromium.org --- common/cmd_fdt.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index 5640ded..51341ac 100644 --- a/common/cmd_fdt.c

[U-Boot] [PATCH 04/11] fdt: Add device tree memory bindings

2014-10-15 Thread Simon Glass
From: Michael Pratt mpr...@chromium.org Support a default memory bank, specified in reg, as well as board-specific memory banks in subtree board-id nodes. This allows memory information to be provided in the device tree, rather than hard-coded in, which will make it simpler to handle similar

[U-Boot] [PATCH 11/11] fdt: Try to use fdt_address_cells()/fdt_size_cells()

2014-10-15 Thread Simon Glass
Use these new functions where possible. They default to a value of 2 so we cannot use them in some places where we need a default value of 1. Signed-off-by: Simon Glass s...@chromium.org --- board/freescale/mpc8641hpcn/mpc8641hpcn.c | 7 +++--- common/fdt_support.c | 41

[U-Boot] [PATCH 09/11] fdt: Change fdt_pack_reg() to static and fix types

2014-10-15 Thread Simon Glass
This function is only called within this file so make it static. Also fix its argument types to be consistent with its caller. Signed-off-by: Simon Glass s...@chromium.org --- common/fdt_support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/fdt_support.c

[U-Boot] [PATCH 07/11] fdt: Tidy up error handling in image_setup_libfdt()

2014-10-15 Thread Simon Glass
The message about needing to reset should be printed no matter what error is printed. Also, an error should always be printed. Signed-off-by: Simon Glass s...@chromium.org --- common/image-fdt.c| 27 +-- include/fdt_support.h | 1 + 2 files changed, 18

[U-Boot] [PATCH 10/11] fdt: Add a function to decode a named memory region

2014-10-15 Thread Simon Glass
Permit decoding of a named memory region from the device tree. This allows easy run-time configuration of the address of on-chip SRAM, SDRAM, etc. Signed-off-by: Simon Glass s...@chromium.org --- include/fdtdec.h | 28 ++ lib/fdtdec.c | 61

[U-Boot] [PATCH] patman: Use the full commit hash for 'git checkout'

2014-10-15 Thread Simon Glass
Even with the initial 8 characeters of the hash we will sometimes get a collision. Use the full hash. Signed-off-by: Simon Glass s...@chromium.org --- tools/buildman/control.py | 2 +- tools/patman/patchstream.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v9 0/12] Enable driver model for GPIOs on Tegra and Exynos

2014-10-15 Thread Simon Glass
(Note: Tegra patches have been applied, I am resending with exynos only) Now that driver model is part of U-Boot, the task of converting drivers over to it begins. GPIO is one of the easiest to convert, since it already has a sandbox driver and a uclass driver. The Tegra GPIO driver is

[U-Boot] [PATCH v9 08/12] dm: exynos: Move s5p_goni to generic board

2014-10-15 Thread Simon Glass
The generic board deadline is approaching, and we need this feature to enable driver model. Enable CONFIG_SYS_GENERIC_BOARD for s5p_goni. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v9: None Changes in v8: - Add new patch to move s5p_goni to generic board Changes in v7: None

[U-Boot] [PATCH v9 05/12] dm: exynos: Add pinctrl settings for smdkc100

2014-10-15 Thread Simon Glass
These describe the GPIOs in enough detail for U-Boot's GPIO driver to operate. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v9: None Changes in v8: - Add patch containing pinctrl settings for s5p_goni Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None

[U-Boot] [PATCH v9 01/12] dm: exynos: dts: Convert /include/ to #include

2014-10-15 Thread Simon Glass
We should be consistent about this. The kernel has moved to #include which breaks error reporting to some extent but does allow us to include binding files. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v9: None Changes in v8: - Adjust odroid device tree file to use #include

[U-Boot] [PATCH v9 03/12] dm: exynos: dts: Remove unused pinctrl information to save space

2014-10-15 Thread Simon Glass
We don't include the pinctrl functions for U-Boot as they use up quite a bit of space and are not used. We could instead perhaps eliminate this material with fdtgrep, but so far this tool has not made it to upstream. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v9: None Changes

[U-Boot] [PATCH v9 07/12] dm: exynos: Move smdkc100 to generic board

2014-10-15 Thread Simon Glass
The generic board deadline is approaching, and we need this feature to enable driver model. Enable CONFIG_SYS_GENERIC_BOARD for smdkc100. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v9: None Changes in v8: - Add new patch to move smdkc100 to generic board Changes in v7: None

[U-Boot] [PATCH v9 06/12] dm: exynos: Add pinctrl settings for s5p_goni

2014-10-15 Thread Simon Glass
These describe the GPIOs in enough detail for U-Boot's GPIO driver to operate. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v9: - Change compatible string to s5pc110-pinctrl for s5p_goni Changes in v8: - Add patch containing pinctrl settings for s5p_goni Changes in v7: None

[U-Boot] [PATCH v9 04/12] dm: exynos: dts: Adjust device tree files for U-Boot

2014-10-15 Thread Simon Glass
The pinctrl bindings used by Linux are an incomplete description of the hardware. It is possible in most cases to determine the register address of each, but not in all cases. By adding an additional property we can fix this, and avoid adding a table to U-Boot for every single Exynos SOC.

[U-Boot] [PATCH v9 10/12] dm: exynos: Tidy up GPIO defines

2014-10-15 Thread Simon Glass
The defines at the top of the GPIO driver use single-character names for parameters which are not very descriptive. Improve these to use descriptive parameter names. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None

[U-Boot] [PATCH v9 11/12] dm: exynos: Make sure that GPIOs are requested

2014-10-15 Thread Simon Glass
With driver model GPIOs must be requested before use. Make sure this is done correctly. (Note that the soft SPI part of universal is omitted, since this driver is about to be replaced with a driver-model-aware version) Signed-off-by: Simon Glass s...@chromium.org --- Changes in v9: None Changes

[U-Boot] [PATCH v9 09/12] dm: exynos: Tidy up GPIO headers

2014-10-15 Thread Simon Glass
The wrong header is being included, thus requiring the code to re-declare the generic GPIO interface in each GPIO header. Fix this. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4:

[U-Boot] [PATCH v9 02/12] dm: exynos: Bring in pinctrl dts files from Linux kernel

2014-10-15 Thread Simon Glass
Bring in required device tree files for pinctrl from Linux v3.14. These are initially unchanged and have a number of pieces not needed by U-Boot. Note that exynos5420 is renamed to exynos54xx here since we want to support exynos5422 also. Signed-off-by: Simon Glass s...@chromium.org --- Changes

[U-Boot] puts() and newlines (was Re: Discussion topics / issues)

2014-10-15 Thread Pavel Machek
Hi! First, we have a compatibility problem here. GCC assumes that puts() will add a newline character after the string; U-Boot puts() does NOT do this. So the GCC auto-converted printf()s will all be wrong, as they are missing the newline. [1] [1] One might argue that this is a bug in

[U-Boot] [PATCH v9 12/12] dm: exynos: gpio: Convert to driver model

2014-10-15 Thread Simon Glass
Convert the exynos GPIO driver to driver model. This implements the generic GPIO interface but not the extra Exynos-specific functions. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v9: - Add missing compatible strings from exynos_gpio_ids[] Changes in v8: - Enable driver model

Re: [U-Boot] [PATCH for-next] arndale: Enable config_distro_defaults.h

2014-10-15 Thread Ian Campbell
On Fri, 2014-09-26 at 15:25 +0100, Ian Campbell wrote: From: Ian Campbell ian.campb...@citrix.com ...and remove explicit setting of things which this implies. I'm mainly interested in CONFIG_CMD_BOOTZ and CONFIG_SUPPORT_RAW_INITRD Signed-off-by: Ian Campbell ian.campb...@citrix.com So

[U-Boot] Fw: [PATCH 1/2][v3] fsl_sec: Add hardware accelerated SHA256 and SHA1

2014-10-15 Thread Ruchika Gupta
Th message bounced back due to some encoding issue. Forwarding the reply again. From: Gupta Ruchika-R66431 Sent: Wednesday, October 15, 2014 2:32 PM To: Simon Glass Cc: U-Boot Mailing List; Sun York-R58495 Subject: RE: [U-Boot] [PATCH 1/2][v3] fsl_sec: Add

[U-Boot] [PATCH] fdt_support: fix unaligned u64 accesses in fdt_fixup_memory_banks

2014-10-15 Thread Rob Herring
From: Rob Herring r...@kernel.org Commit f18295d3837c282f (fdt_support: fix an endian bug of fdt_fixup_memory_banks) changed fdt_fixup_memory_banks cell writing from a byte at a time to casting the buffer pointer to a 64-bit pointer. This can result in unaligned accesses when there is a mixture

Re: [U-Boot] [PATCH v2 4/7] common: spl: Add interactive DDR debugger support for SPL

2014-10-15 Thread Huan Wang
Hi, York, On 09/26/2014 03:33 AM, Alison Wang wrote: For LS102xA, interactive DDR debugger is still needed in SPL part. So build the needed files in SPL image too. Signed-off-by: Alison Wang alison.w...@freescale.com --- Change log: v2: No change. common/Makefile | 20

Re: [U-Boot] puts() and newlines (was Re: Discussion topics / issues)

2014-10-15 Thread Pavel Machek
On Wed 2014-10-15 10:40:12, Pavel Machek wrote: Hi! First, we have a compatibility problem here. GCC assumes that puts() will add a newline character after the string; U-Boot puts() does NOT do this. So the GCC auto-converted printf()s will all be wrong, as they are missing the

Re: [U-Boot] [PATCH v3 2/3] net: Add a command to access the EEPROM from ethernet devices

2014-10-15 Thread Alban Bedel
On Tue, 14 Oct 2014 21:18:37 +0200 Simon Glass s...@chromium.org wrote: Hi Joe, On 14 October 2014 21:14, Joe Hershberger joe.hershber...@gmail.com wrote: On Tue, Oct 14, 2014 at 12:21 PM, Simon Glass s...@chromium.org wrote: Hi, On 14 October 2014 18:26, Alban Bedel

[U-Boot] [PATCH 1/2] sunxi: axp152: Keep DRAM / Vddr at bootloader set value

2014-10-15 Thread Hans de Goede
Some fex files contain wrong values, causing stability issues. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/power/axp152.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/power/axp152.c b/drivers/power/axp152.c index

[U-Boot] [PATCH 2/2] sunxi: nand: Fix nand clk calculation

2014-10-15 Thread Hans de Goede
Before the u-boot dram cleanup u-boot would always set PLL5 factor m to 2 (reg value 1) and div p to 1, and get_cmu_clk in the nand code would calculate the pll5p clk like this: clk = 24 * factor_n * factor_k / div_p / factor_m; aka: clk = 24 * factor_n * factor_k / (div_p * factor_m); This is

Re: [U-Boot] [PATCH 1/2] sunxi: axp152: Keep DRAM / Vddr at bootloader set value

2014-10-15 Thread Hans de Goede
Hi, Ugh, this series is for the linux-sunxi 3.4 kernels and should have gone to a different list. Please ignore, I'll remove it from patchwork right away. Regards, Hans On 10/15/2014 11:56 AM, Hans de Goede wrote: Some fex files contain wrong values, causing stability issues.

[U-Boot] [PATCH] Revert sunxi: dram: Use divisor P=1 for PLL5

2014-10-15 Thread Hans de Goede
This change breaks various hardcoded assumptions in the linux-sunxi-3.4 kernels, causing a divide by 0 error in the linux-sunxi-3.4 nand driver, rendering 3.4 kernels unbootable. Besides this problem, it also breaks LCD output (on devices without nand). Fixes for these issues are being added to

[U-Boot] [PATCH] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-15 Thread Hans de Goede
Older Linux kernels will not properly boot in hype mode, add support for a bootm_boot_mode environment variable, which when set to sec will cause u-boot to boot in secure mode even when build with non-sec (and hyp) support. Signed-off-by: Hans de Goede hdego...@redhat.com ---

Re: [U-Boot] buildman: display list of boards with warnings/errors during build?

2014-10-15 Thread Albert ARIBAUD
Hi Simon, On Wed, 15 Oct 2014 09:24:34 +0200, Simon Glass s...@chromium.org wrote: Hi Albert, On 15 October 2014 08:28, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello, Apologies if I have missed the answer to my question in tools/buildman/README or the buildman -h output.

Re: [U-Boot] [PATCH] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-15 Thread Marc Zyngier
On Wed, Oct 15 2014 at 11:13:05 AM, Hans de Goede hdego...@redhat.com wrote: Older Linux kernels will not properly boot in hype mode, add support for a bootm_boot_mode environment variable, which when set to sec will cause u-boot to boot in secure mode even when build with non-sec (and hyp)

Re: [U-Boot] [PATCH] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-15 Thread Siarhei Siamashka
On Wed, 15 Oct 2014 12:13:05 +0200 Hans de Goede hdego...@redhat.com wrote: Older Linux kernels will not properly boot in hype mode, add support for a bootm_boot_mode environment variable, which when set to sec will cause u-boot to boot in secure mode even when build with non-sec (and hyp)

Re: [U-Boot] [PATCH] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-15 Thread Albert ARIBAUD
Hi Marc, Hans, On Wed, 15 Oct 2014 11:18:28 +0100, Marc Zyngier marc.zyng...@arm.com wrote: On Wed, Oct 15 2014 at 11:13:05 AM, Hans de Goede hdego...@redhat.com wrote: Older Linux kernels will not properly boot in hype mode, add support for a bootm_boot_mode environment variable, which

Re: [U-Boot] [PATCH 6/7] arm: ls102xa: Add SD boot support for LS1021AQDS board

2014-10-15 Thread Albert ARIBAUD
Hi Huan, On Wed, 15 Oct 2014 06:56:37 +, Huan Wang alison.w...@freescale.com wrote: Hi, Albert, On Wed, 8 Oct 2014 09:53:03 +, Huan Wang alison.w...@freescale.com wrote: Hi, Albert, On Thu, 25 Sep 2014 06:45:00 +, Huan Wang alison.w...@freescale.com wrote:

Re: [U-Boot] [PATCH] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-15 Thread Marc Zyngier
On Wed, Oct 15 2014 at 11:25:10 AM, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Wed, 15 Oct 2014 12:13:05 +0200 Hans de Goede hdego...@redhat.com wrote: Older Linux kernels will not properly boot in hype mode, add support for a bootm_boot_mode environment variable, which when set

Re: [U-Boot] [PATCH] Revert sunxi: dram: Use divisor P=1 for PLL5

2014-10-15 Thread Siarhei Siamashka
On Wed, 15 Oct 2014 12:12:11 +0200 Hans de Goede hdego...@redhat.com wrote: This change breaks various hardcoded assumptions in the linux-sunxi-3.4 kernels, causing a divide by 0 error in the linux-sunxi-3.4 nand driver, rendering 3.4 kernels unbootable. Besides this problem, it also breaks

[U-Boot] [PATCH 0/10] Provide inttypes.h to avoid 32/64 bit problems with printf()

2014-10-15 Thread Simon Glass
In quite a few situations we have to print a 64-bit value. Unfortunately the type used for 64-bit can vary depending on the machine. For 64-bit machines it might be 'long' and for 32-bit machines it might be 'long long'. As a result we need to use either %ld or %lld depending on the architecture.

[U-Boot] [PATCH 01/10] Provide option to avoid defining a custom version of uintptr_t.

2014-10-15 Thread Simon Glass
From: Gabe Black gabebl...@chromium.org There's a definition in stdint.h (provided by gcc) which will be more correct if available. Define CONFIG_USE_STDINT to use this feature, or USE_STDINT=1 on the 'make' commmand. This adjusts the settings for x86 and sandbox, with both have 64-bit options.

[U-Boot] [PATCH 02/10] Add some standard headers external code might need

2014-10-15 Thread Simon Glass
From: Gabe Black gabebl...@chromium.org inttypes.h defines format specifiers for printf which work with data types of particular sizes. stdlib.h is currently just a passthrough to malloc.h which has declarations of the various *alloc functions. Add the required #define to common.h so that these

[U-Boot] [PATCH 10/10] test: Add a simple test to detected warnings with uint64_t, uintptr_t

2014-10-15 Thread Simon Glass
These types are problematic because they are typically declared in a non-standard way in U-Boot. For example, U-Boot uses 'long long' for int64_t even on a 64-bit machine whereas stdint.h uses 'long'. Similarly, U-Boot always uses 'long' for intptr_t whereas stdint.h mostly uses 'int'. This

[U-Boot] [PATCH 07/10] x86: Use correct printf() format string for uintptr_t

2014-10-15 Thread Simon Glass
Use the inttypes header file to provide this. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/lib/relocate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/lib/relocate.c b/arch/x86/lib/relocate.c index 526daaf..faca38f 100644 ---

[U-Boot] [PATCH 06/10] Tidy up data sizes and function comment in display_options

2014-10-15 Thread Simon Glass
Use inttypes.h and uint64_t to correct the code so that it will not issue warnings on 64-bit machines where 'uint64_t' is 'unsigned long'. Signed-off-by: Simon Glass s...@chromium.org --- include/common.h | 14 +- lib/display_options.c | 14 +- 2 files changed, 18

[U-Boot] [PATCH 08/10] scsi: Use correct printf() format string for uintptr_t

2014-10-15 Thread Simon Glass
Use the inttypes header file to provide this. Signed-off-by: Simon Glass s...@chromium.org --- common/cmd_scsi.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/cmd_scsi.c b/common/cmd_scsi.c index b3f7687..cbc107e 100644 --- a/common/cmd_scsi.c +++

[U-Boot] [PATCH 03/10] ext4: Use inttypes for printf() string

2014-10-15 Thread Simon Glass
On 64-bit platforms (like sandbox) 64-bit integers may be 'long' rather than 'long long'. Use the inttypes header to avoid compiler warnings. Signed-off-by: Simon Glass s...@chromium.org --- fs/ext4/ext4_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 05/10] Use uint64_t instead of u64 in put_dec()

2014-10-15 Thread Simon Glass
Use the correct type required by do_div(). Signed-off-by: Simon Glass s...@chromium.org --- lib/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 7ec758e..b585713 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -270,7 +270,7

[U-Boot] [PATCH 09/10] usb: Use correct printf() format string for uintptr_t

2014-10-15 Thread Simon Glass
Use the inttypes header file to provide this. Signed-off-by: Simon Glass s...@chromium.org --- common/usb_storage.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/common/usb_storage.c b/common/usb_storage.c index 6ac358d..eb7706c 100644 ---

[U-Boot] [PATCH 04/10] Use uint64_t for time types

2014-10-15 Thread Simon Glass
Unfortunately 'unsigned long long' and 'uint64_t' are not necessarily compatible on 64-bit machines. Use the correct typedef instead of writing the supposed type out in full. Signed-off-by: Simon Glass s...@chromium.org --- include/common.h | 2 +- lib/time.c | 12 ++-- 2 files

Re: [U-Boot] [PATCH] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-15 Thread Siarhei Siamashka
On Wed, 15 Oct 2014 11:31:44 +0100 Marc Zyngier marc.zyng...@arm.com wrote: On Wed, Oct 15 2014 at 11:25:10 AM, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Wed, 15 Oct 2014 12:13:05 +0200 Hans de Goede hdego...@redhat.com wrote: Older Linux kernels will not properly boot in

Re: [U-Boot] [PATCH] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-15 Thread Marc Zyngier
On Wed, Oct 15 2014 at 11:25:43 AM, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hi Marc, Hans, On Wed, 15 Oct 2014 11:18:28 +0100, Marc Zyngier marc.zyng...@arm.com wrote: On Wed, Oct 15 2014 at 11:13:05 AM, Hans de Goede hdego...@redhat.com wrote: Older Linux kernels will not

Re: [U-Boot] [PATCH] sunxi: Add CONFIG_MACH_TYPE defines to sun4i, sun5i and sun7i

2014-10-15 Thread Siarhei Siamashka
On Mon, 13 Oct 2014 14:55:35 +0200 Hans de Goede hdego...@redhat.com wrote: Many people are still using old linux-sunxi-3.4 kernels on sunxi devices, adding the proper MACH_TYPE defines for this allows people to switch to upstream u-boot, so that we can stop maintaining the linux-sunxi u-boot

[U-Boot] [PATCH] lcd: Fix build error with CONFIG_LCD_BMP_RLE8

2014-10-15 Thread Simon Glass
Add a block to avoid a build error with the variable declaration. Enable the option on sandbox to prevent an error being introduced in future. Signed-off-by: Simon Glass s...@chromium.org --- common/lcd.c | 4 ++-- include/configs/sandbox.h | 1 + 2 files changed, 3 insertions(+),

Re: [U-Boot] [PATCH for-next] arndale: Enable config_distro_defaults.h

2014-10-15 Thread Simon Glass
Hi Ian, On 15 October 2014 10:57, Ian Campbell ian.campb...@citrix.com wrote: On Fri, 2014-09-26 at 15:25 +0100, Ian Campbell wrote: From: Ian Campbell ian.campb...@citrix.com ...and remove explicit setting of things which this implies. I'm mainly interested in CONFIG_CMD_BOOTZ and

Re: [U-Boot] [PATCH] ARM: tegra: add PCIe-related pins to the Jetson TK1 pinmux tables

2014-10-15 Thread Albert ARIBAUD
Hi Tom, On Tue, 14 Oct 2014 23:14:24 +, Tom Warren twar...@nvidia.com wrote: Albert, Please pull u-boot-tegra/master into ARM/master. Thanks! The following changes since commit a7f99bf139b3aaa0d5494693fd0395084355e41a: arm: Fix _start for CONFIG_SYS_DV_NOR_BOOT_CFG (2014-09-11

Re: [U-Boot] [PATCH] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-15 Thread Marc Zyngier
On Wed, Oct 15 2014 at 11:40:24 AM, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Wed, 15 Oct 2014 11:31:44 +0100 Marc Zyngier marc.zyng...@arm.com wrote: On Wed, Oct 15 2014 at 11:25:10 AM, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Wed, 15 Oct 2014 12:13:05 +0200

Re: [U-Boot] buildman: display list of boards with warnings/errors during build?

2014-10-15 Thread Simon Glass
Hi Albert, On 15 October 2014 12:17, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hi Simon, On Wed, 15 Oct 2014 09:24:34 +0200, Simon Glass s...@chromium.org wrote: Hi Albert, On 15 October 2014 08:28, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello, Apologies if I have

Re: [U-Boot] [PATCH] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-15 Thread Siarhei Siamashka
On Wed, 15 Oct 2014 13:42:33 +0100 Marc Zyngier marc.zyng...@arm.com wrote: On Wed, Oct 15 2014 at 11:40:24 AM, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Wed, 15 Oct 2014 11:31:44 +0100 Marc Zyngier marc.zyng...@arm.com wrote: On Wed, Oct 15 2014 at 11:25:10 AM, Siarhei

Re: [U-Boot] [PATCH] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-15 Thread Mark Rutland
[...] Other than this, are you really happy about granting the users full rights to allow booting the kernel in the secure mode via a simple environment variables tweak? Can't it potentially become a security breach in some scenarios? U-Boot must be running in secure mode in order to boot a

Re: [U-Boot] [PATCH] powerpc/BSC9132QDS: Enable creation of dynamic partition for NAND and NOR

2014-10-15 Thread York Sun
OK. Please mark old patches superseded. York On 10/15/2014 02:04 AM, Kumar Ashish-B37399 wrote: Hi York, Please see the attached mail. Since SPI is not supported by fdt_fixup_mtdparts() same is removed in V2 Regards Ashish -Original Message- From: Sun York-R58495 Sent:

Re: [U-Boot] [PATCH] ARM: tegra: add PCIe-related pins to the Jetson TK1 pinmux tables

2014-10-15 Thread Stephen Warren
On 10/15/2014 05:43 AM, Albert ARIBAUD wrote: Hi Tom, On Tue, 14 Oct 2014 23:14:24 +, Tom Warren twar...@nvidia.com wrote: Albert, Please pull u-boot-tegra/master into ARM/master. Thanks! The following changes since commit a7f99bf139b3aaa0d5494693fd0395084355e41a: arm: Fix _start

Re: [U-Boot] [PATCH] ARM: tegra: add PCIe-related pins to the Jetson TK1 pinmux tables

2014-10-15 Thread Albert ARIBAUD
Hi Stephen, On Wed, 15 Oct 2014 09:34:49 -0600, Stephen Warren swar...@wwwdotorg.org wrote: On 10/15/2014 05:43 AM, Albert ARIBAUD wrote: Hi Tom, On Tue, 14 Oct 2014 23:14:24 +, Tom Warren twar...@nvidia.com wrote: Albert, Please pull u-boot-tegra/master into ARM/master.

Re: [U-Boot] [PATCH 2/4] ARM: HYP/non-sec: Make armv7_init_nonsec() usable before relocation

2014-10-15 Thread York Sun
On 10/09/2014 01:11 AM, yuantian.t...@freescale.com wrote: From: Tang Yuantian yuantian.t...@freescale.com Defining variable gic_dist_addr as a globe one prevents function armv7_init_nonsec() from being used before relocation which is the case in the deep sleep resume process on Freescale

[U-Boot] [PATCH V2 0/5] Add EXT filesystem support to SPL

2014-10-15 Thread Guillaume GARDET
Changes in V2: * Rebase on v2014.10 V1 : * This patch set adds EXT filesystem support to SPL and enables it for OMAP4 boards. * Build is succesful on all omap4 and omap5 boards. * Note that some OMAP3 boards (omap3_beagle and omap3_overo) may need to disable some functions in order to

[U-Boot] [PATCH V2 1/5] Rename some defines containing FAT in their name to be filesystem generic

2014-10-15 Thread Guillaume GARDET
Rename some defines containing FAT in their name to be filesystem generic: MMCSD_MODE_FAT = MMCSD_MODE_FS CONFIG_SPL_FAT_LOAD_ARGS_NAME = CONFIG_SPL_FS_LOAD_ARGS_NAME CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME = CONFIG_SPL_FS_LOAD_PAYLOAD_NAME CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION =

[U-Boot] [PATCH V2 3/5] doc: Update documentation according to the EXT SPL support patch set

2014-10-15 Thread Guillaume GARDET
Update documentation according to the EXT SPL support patch set. Signed-off-by: Guillaume GARDET guillaume.gar...@free.fr Cc: Tom Rini tr...@ti.com --- README | 17 ++--- doc/README.SPL | 1 + 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README b/README

[U-Boot] [PATCH V2 2/5] spl: Add EXT support to SPL

2014-10-15 Thread Guillaume GARDET
Add EXT filesystem support to SPL. Signed-off-by: Guillaume GARDET guillaume.gar...@free.fr Cc: Tom Rini tr...@ti.com --- common/spl/Makefile | 1 + common/spl/spl_ext.c | 138 +++ common/spl/spl_mmc.c | 18 ++- fs/Makefile | 1

[U-Boot] [PATCH V2 5/5] TI:OMAP4: enable EXT support in SPL for OMAP4 boards

2014-10-15 Thread Guillaume GARDET
Enable EXT support in SPL for OMAP4 boards. Build tested for duovero, omap4_sdp4430 and omap4_panda. Run time tested on omap4_panda. Signed-off-by: Guillaume GARDET guillaume.gar...@free.fr Cc: Tom Rini tr...@ti.com --- include/configs/ti_omap4_common.h | 3 +++ 1 file changed, 3 insertions(+)

[U-Boot] [PATCH V2 4/5] spl: do not hang in spl_register_fat_device but return error value. It allows to use both CONFIG_SPL_FAT_SUPPORT and CONFIG_SPL_EXT_SUPPORT.

2014-10-15 Thread Guillaume GARDET
Do not hang in spl_register_fat_device but return an error value. It allows to use both CONFIG_SPL_FAT_SUPPORT and CONFIG_SPL_EXT_SUPPORT. If FAT load fails, then EXT load is tried. Signed-off-by: Guillaume GARDET guillaume.gar...@free.fr Cc: Tom Rini tr...@ti.com --- common/spl/spl_fat.c | 2

Re: [U-Boot] [PATCH] ARM: tegra: add PCIe-related pins to the Jetson TK1 pinmux tables

2014-10-15 Thread Tom Warren
Albert, I did a Makeall -s tegra before sending the PR (as I always do), and I saw no failures. But I haven't rebased against ARM master in a few weeks. I think the Jetson TK1 change is still valid and should go in. Thanks, Tom -Original Message- From: Albert ARIBAUD

Re: [U-Boot] [PATCH 1/2][v3] fsl_sec: Add hardware accelerated SHA256 and SHA1

2014-10-15 Thread Simon Glass
Hi, On 15 October 2014 11:02, Ruchika Gupta ruchika.gu...@freescale.com wrote: Hi Simon, I have defined the functions for hardware acceleration which are already present in hash.c for Freescale platforms. In hash.c static struct hash_algo hash_algo[] = { /* *

Re: [U-Boot] buildman: display list of boards with warnings/errors during build?

2014-10-15 Thread Albert ARIBAUD
Hi Simon, On Wed, 15 Oct 2014 14:44:06 +0200, Simon Glass s...@chromium.org wrote: Hi Albert, On 15 October 2014 12:17, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hi Simon, On Wed, 15 Oct 2014 09:24:34 +0200, Simon Glass s...@chromium.org wrote: Hi Albert, On 15 October

Re: [U-Boot] buildman: display list of boards with warnings/errors during build?

2014-10-15 Thread Simon Glass
Hi Albert, On 15 October 2014 18:30, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hi Simon, On Wed, 15 Oct 2014 14:44:06 +0200, Simon Glass s...@chromium.org wrote: Hi Albert, On 15 October 2014 12:17, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hi Simon, On Wed, 15 Oct 2014

Re: [U-Boot] [PATCH] ARM: tegra: add PCIe-related pins to the Jetson TK1 pinmux tables

2014-10-15 Thread Albert ARIBAUD
Hi Tom, On Wed, 15 Oct 2014 15:59:44 +, Tom Warren twar...@nvidia.com wrote: Albert, I did a Makeall -s tegra before sending the PR (as I always do), and I saw no failures. But I haven't rebased against ARM master in a few weeks. I think the Jetson TK1 change is still valid and

Re: [U-Boot] [PATCH] ARM: tegra: add PCIe-related pins to the Jetson TK1 pinmux tables

2014-10-15 Thread Stephen Warren
On 10/15/2014 09:39 AM, Albert ARIBAUD wrote: Hi Stephen, On Wed, 15 Oct 2014 09:34:49 -0600, Stephen Warren swar...@wwwdotorg.org wrote: On 10/15/2014 05:43 AM, Albert ARIBAUD wrote: Hi Tom, On Tue, 14 Oct 2014 23:14:24 +, Tom Warren twar...@nvidia.com wrote: Albert, Please pull

Re: [U-Boot] [PATCH] ARM: bootm: Allow booting in secure mode on hyp capable systems

2014-10-15 Thread Marc Zyngier
On Wed, Oct 15 2014 at 03:05:24 PM, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Wed, 15 Oct 2014 13:42:33 +0100 Marc Zyngier marc.zyng...@arm.com wrote: On Wed, Oct 15 2014 at 11:40:24 AM, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Wed, 15 Oct 2014 11:31:44 +0100

[U-Boot] [U-boot] [Patch v5 0/6] keystone2: add k2l SoC and k2l_evm board support

2014-10-15 Thread Ivan Khoronzhuk
This patch series adds Keystone II Lamar (K2L) SoC and k2l_evm board support. Based on [U-boot] [Patch v2] keystone: usb: add support of usb xhci https://patchwork.ozlabs.org/patch/386506/ v5..v4 - ARM: keystone2: spl: move board specific code this patch replace ARM: keystone2: spl: add

[U-Boot] [U-boot] [Patch v5 1/6] ARM: keystone2: add K2L device hardware definitions

2014-10-15 Thread Ivan Khoronzhuk
From: Hao Zhang hzh...@ti.com This patch adds hardware definitions specific to Keystone II Lamar (K2L) SoC. Acked-by: Vitaly Andrianov vita...@ti.com Signed-off-by: Hao Zhang hzh...@ti.com Signed-off-by: Ivan Khoronzhuk ivan.khoronz...@ti.com ---

[U-Boot] [U-boot] [Patch v5 3/6] keystone2: msmc: add MSMC cache coherency support for K2L SOC

2014-10-15 Thread Ivan Khoronzhuk
From: Hao Zhang hzh...@ti.com This patch adds Keystone II Lamar (K2L) SoC specific definitions to support MSMC cache coherency. Acked-by: Vitaly Andrianov vita...@ti.com Signed-off-by: Hao Zhang hzh...@ti.com Signed-off-by: Ivan Khoronzhuk ivan.khoronz...@ti.com ---

[U-Boot] [U-boot] [Patch v5 6/6] keystone2: k2l-evm: add board support

2014-10-15 Thread Ivan Khoronzhuk
From: Hao Zhang hzh...@ti.com This patch adds Keystone II Lammar (K2L) EVM board support. Acked-by: Vitaly Andrianov vita...@ti.com Signed-off-by: Hao Zhang hzh...@ti.com Signed-off-by: Ivan Khoronzhuk ivan.khoronz...@ti.com --- arch/arm/cpu/armv7/keystone/Kconfig| 3 ++

[U-Boot] [U-boot] [Patch v5 5/6] keystone2: enable OSR clock domain for K2L SoC

2014-10-15 Thread Ivan Khoronzhuk
From: Hao Zhang hzh...@ti.com This patches enables the On-chip Shared Ram clock domain for K2L SoC. Signed-off-by: Hao Zhang hzh...@ti.com Signed-off-by: Ivan Khoronzhuk ivan.khoronz...@ti.com --- arch/arm/cpu/armv7/keystone/init.c| 49 +++

  1   2   >