[U-Boot] [PATCH V2] arm: atmel: cpux9k2: increase malloc space to fix crash on start u-boot

2013-09-19 Thread Jens Scharsig (BuS Elektronik)
From: Jens Scharsig (BuS Elektronik) e...@bus-elektronik.de Since UBIFS is enabled for cpux9k2, more malloc space is needed. For the current uboot 2013.10-rcX the size is to small, this will fix the startup problems by increasing the mallog space to 4MiB. Signed-off-by: Jens Scharsig (BuS

Re: [U-Boot] [PATCH 06/12 V3] Exynos5420: Alter UNCON and UFCON for 5420

2013-09-19 Thread Simon Glass
Hi Rajeshwari, On Wed, Sep 11, 2013 at 4:01 AM, Rajeshwari S Shinde rajeshwar...@samsung.com wrote: From: Akshay Saraswat aksha...@samsung.com This patch modifies UNCON and UFCON values to make s5p serial support exynos5420 by doing following changes: * Enable Rx time-out interrupts. *

Re: [U-Boot] [PATCH 07/12 V3] Exynos5420: Add support for 5420 in pinmux and gpio

2013-09-19 Thread Simon Glass
Hi Rajeshwari, On Wed, Sep 11, 2013 at 4:01 AM, Rajeshwari S Shinde rajeshwar...@samsung.com wrote: From: Akshay Saraswat aksha...@samsung.com Adds code in pinmux and gpio framework to support Exynos5420. Signed-off-by: Rajeshwari S Shinde rajeshwar...@samsung.com Signed-off-by: Akshay

Re: [U-Boot] [PATCH 08/12 V3] Exynos5420: Add base patch for SMDK5420

2013-09-19 Thread Simon Glass
Hi Rajeshwari, On Wed, Sep 11, 2013 at 4:01 AM, Rajeshwari S Shinde rajeshwar...@samsung.com wrote: Adding the base patch for Exynos based SMDK5420. This shall enable compilation and basic boot support for SMDK5420. Signed-off-by: Rajeshwari S Shinde rajeshwar...@samsung.com

Re: [U-Boot] [PATCH 09/12 V3] DTS: Add dts support for SMDK5420

2013-09-19 Thread Simon Glass
Hi Rajeshwari, On Wed, Sep 11, 2013 at 4:01 AM, Rajeshwari S Shinde rajeshwar...@samsung.com wrote: This patch adds support for SMDK5420. exynos5.dtsi created is a common file which has the nodes common to both 5420 and 5250. Signed-off-by: Akshay Saraswat aksha...@samsung.com

Re: [U-Boot] [PATCH 10/12 V3] Config: Add initial config for SMDK5420

2013-09-19 Thread Simon Glass
Hi Rajeshwari, On Wed, Sep 11, 2013 at 4:01 AM, Rajeshwari S Shinde rajeshwar...@samsung.com wrote: Adding initial config for SMDK5420 to build and boot U-Boot over Exynos based SMDK5420. Signed-off-by: Rajeshwari S Shinde rajeshwar...@samsung.com Signed-off-by: Akshay Saraswat

Re: [U-Boot] [PATCH 11/12 V3] SPL: EXYNOS: Prepare for variable size SPL support

2013-09-19 Thread Simon Glass
On Wed, Sep 11, 2013 at 4:01 AM, Rajeshwari S Shinde rajeshwar...@samsung.com wrote: When variable size SPL is used, the BL1 expects the SPL to be encapsulated differently: instead of putting the checksum at a fixed offset in the SPL blob, prepend the blob with a header including the size

Re: [U-Boot] [PATCH 12/12 V3] DWMMC: SMDK5420: Disable SMU for eMMC

2013-09-19 Thread Simon Glass
Hi Rajeshwari, On Wed, Sep 11, 2013 at 4:01 AM, Rajeshwari S Shinde rajeshwar...@samsung.com wrote: SMDK5420 has a new Security Management Unit added for dwmmc driver, hence, configuring the control registers to support booting via eMMC. Signed-off-by: Alim Akhtar alim.akh...@samsung.com

Re: [U-Boot] [PATCH v3 02/28] sf: probe: Add new spi_flash_probe support

2013-09-19 Thread Simon Glass
Hi, On Sun, Sep 15, 2013 at 12:15 PM, Jagannadha Sutradharudu Teki jagannadha.sutradharudu-t...@xilinx.com wrote: Added new spi_flash_probe support, currently added N25Q* flash part attributes support. Updated the sector_size attributes as per the flash parts. Looks fine for with this

Re: [U-Boot] [PATCH v2] Merge and reformat boards.cfg and MAINTAINERS

2013-09-19 Thread Albert ARIBAUD
Hi Masahiro, On Tue, 17 Sep 2013 09:55:00 +0900, Masahiro Yamada yamad...@jp.panasonic.com wrote: Hello Albert, Tom. Commit 27af930e9 added Active/Orphan status in the first column of boards.cfg. Could you tell the definition of Active and Orphan. At first I imagined Orphan means a

Re: [U-Boot] Annoying make debug messages at v2013.10-rc3

2013-09-19 Thread Albert ARIBAUD
Hi Masahiro, On Wed, 18 Sep 2013 13:00:18 +0900, Masahiro Yamada yamad...@jp.panasonic.com wrote: Hello Albert. Commit 27af930e modified top Makefile as follows: --- a/Makefile +++ b/Makefile @@ -838,7 +838,7 @@ unconfig: sinclude $(obj).boards.depend

Re: [U-Boot] [PATCH v2 2/3] i2c: move to new subsystem

2013-09-19 Thread Albert ARIBAUD
Hi Philippe, On Wed, 18 Sep 2013 21:22:02 +0200, Philippe Reynes trem...@yahoo.fr wrote: Signed-off-by: Philippe Reynes trem...@yahoo.fr --- README | 11 +++ arch/arm/cpu/armv7/mx5/clock.c |2 +- arch/arm/cpu/armv7/mx6/clock.c |2 +-

Re: [U-Boot] [PATCH v2 1/4] ARM: make reserving the gd register a make variable

2013-09-19 Thread Albert ARIBAUD
Hi Jeroen, On Sat, 17 Aug 2013 15:55:16 +0200, Jeroen Hofstee jer...@myspectrum.nl wrote: On 08/14/2013 08:25 PM, Jeroen Hofstee wrote: diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 540a119..5e382ab 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -98,3 +98,5

Re: [U-Boot] [PATCH 01/12 V3] EXYNOS5: Create a common board file

2013-09-19 Thread MJ embd
Hi @Samsung, Great that you have starting posting 5420 patches, one basic question (a) What is the booting procedure for the secondary cores (b) What is the booting procedure for the Little Secondary cores... Would you be pushing the patches for these as well On 9/19/13, Simon Glass

Re: [U-Boot] [PATCH v3 02/28] sf: probe: Add new spi_flash_probe support

2013-09-19 Thread Jagan Teki
On Thu, Sep 19, 2013 at 11:46 AM, Simon Glass s...@chromium.org wrote: Hi, On Sun, Sep 15, 2013 at 12:15 PM, Jagannadha Sutradharudu Teki jagannadha.sutradharudu-t...@xilinx.com wrote: Added new spi_flash_probe support, currently added N25Q* flash part attributes support. Updated the

Re: [U-Boot] Annoying make debug messages at v2013.10-rc3

2013-09-19 Thread Masahiro Yamada
Hi Albert. Yes. BTW, you do not need to double patches with explanatory mails. Any explanations that you want to add but not be put in the commit, just put them below the commit message delimiter, the --- line. You are right. This thread was redundant. Going forward I will do that. Thanks!

[U-Boot] [PATCH] buildman: fix boards.cfg parsing

2013-09-19 Thread Andreas Bießmann
Commit 27af930e9a5c91365ca639ada580b338eabe4989 changed the boards.cfg format but missed to change the parsing in buildman. This patch changes c'tor of Board class to the new sequence, but omits maintainer field. Signed-off-by: Andreas Bießmann andreas.de...@googlemail.com ---

[U-Boot] [PATCH V5 0/3] Introduce Samsung's new board Trats2

2013-09-19 Thread Piotr Wilczek
This patchset add support for a new Samsung board Trats2. Multi i2c file is updated for third soft I2C adapter for Trats2 board Battery support is added for Trats2. This patchset depends on: http://patchwork.ozlabs.org/patch/245307/ Changes in v5: - updated Maintainer entry - removed direct

[U-Boot] [PATCH V5 1/3] power:battery: add battery support for Trats2 board

2013-09-19 Thread Piotr Wilczek
Signed-off-by: Piotr Wilczek p.wilc...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- Changes in v5: none Changes in v4: none Changes in v3: none Changes in v2: none drivers/power/battery/Makefile |1 + drivers/power/battery/bat_trats2.c | 65

[U-Boot] [PATCH V5 2/3] samsung:common:i2c: add definions for third soft I2C adapter for Trats2 board

2013-09-19 Thread Piotr Wilczek
Signed-off-by: Piotr Wilczek p.wilc...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com CC: Lukasz Majewski l.majew...@samsung.com --- Changes in v5: updated for new i2c framework Changes in v4: none Changes in v3: none Changes in v2: none board/samsung/common/multi_i2c.c |

[U-Boot] [PATCH V5 3/3] samsung: trats2: add support for new board Trats2

2013-09-19 Thread Piotr Wilczek
This patch add support for a new Samsung board Trats2. Signed-off-by: Piotr Wilczek p.wilc...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com CC: Minkyu Kang mk7.k...@samsung.com --- Changes in v5: - updated Maintainer entry - removed direct access to registers - in

Re: [U-Boot] [U-Boot, V2] arm: atmel: cpux9k2: increase malloc space to fix crash on start u-boot

2013-09-19 Thread Andreas Bießmann
Dear e...@bus-elektronik.de, e...@bus-elektronik.de e...@bus-elektronik.de writes: From: Jens Scharsig (BuS Elektronik) e...@bus-elektronik.de Since UBIFS is enabled for cpux9k2, more malloc space is needed. For the current uboot 2013.10-rcX the size is to small, this will fix the startup

[U-Boot] [PULL] u-boot-atmel/master - u-boot-arm/master

2013-09-19 Thread Andreas Bießmann
Dear Albert Aribaud, please pull the following fix into u-boot-arm/master for 2013.10 release. The following changes since commit 771f74c3d31a265bae103b2b407286ec03a4589b: arm: dma_alloc_coherent: malloc() - memalign() (2013-09-14 12:08:00 +0200) are available in the git repository at:

Re: [U-Boot] [PATCH 12/12 V3] DWMMC: SMDK5420: Disable SMU for eMMC

2013-09-19 Thread Pantelis Antoniou
Hi Rajesh, Simon, On Sep 19, 2013, at 9:12 AM, Simon Glass wrote: Hi Rajeshwari, On Wed, Sep 11, 2013 at 4:01 AM, Rajeshwari S Shinde rajeshwar...@samsung.com wrote: SMDK5420 has a new Security Management Unit added for dwmmc driver, hence, configuring the control registers to support

Re: [U-Boot] [PATCH 0/4] ARM: s3c44b0: remove remainders of dead board

2013-09-19 Thread Albert ARIBAUD
Hi Masahiro, On Mon, 19 Aug 2013 15:01:21 +0900, Masahiro Yamada yamad...@jp.panasonic.com wrote: Commit 5dc5f36 removed the support for B2 board, which was the last S3C44B0 SoC board. These series of patches remove s3c44b0-specific code and drivers: - arch/arm/cpu/s3c44b0/* -

Re: [U-Boot] [PATCH 3/3] arm: rmobile: Add support lager board

2013-09-19 Thread Albert ARIBAUD
Hi Nobuhiro, On Thu, 22 Aug 2013 13:23:28 +0900, Nobuhiro Iwamatsu nobuhiro.iwamatsu...@renesas.com wrote: diff --git a/arch/arm/include/asm/mach-types.h b/arch/arm/include/asm/mach-types.h index 440b041..67b88ad 100644 --- a/arch/arm/include/asm/mach-types.h +++

Re: [U-Boot] [PATCH 1/2] arm: rmobile: kzm9g: Change clock definition of SCIF from CONFIG_SYS_CLK_FREQ to CONFIG_SH_SCIF_CLK_FREQ

2013-09-19 Thread Albert ARIBAUD
Hi Nobuhiro, On Thu, 22 Aug 2013 13:05:49 +0900, Nobuhiro Iwamatsu nobuhiro.iwamatsu...@renesas.com wrote: Signed-off-by: Nobuhiro Iwamatsu nobuhiro.iwamatsu...@renesas.com --- include/configs/kzm9g.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/kzm9g.h

Re: [U-Boot] i2c:zynq: I2C multi-bus support on Zynq

2013-09-19 Thread Michal Simek
On 09/18/2013 06:28 PM, Michael Burr wrote: This amends my previous patch (of Sept. 17, 2013, 5:29 p.m): Initialize both bus masters as needed in 'i2c_init'. The behavior of this code should be unchanged from the old version if CONFIG_I2C_MULTI_BUS is not defined. According to Heiko, this

Re: [U-Boot] [PATCH] mx6sabresd: Fix the fdt file for the mx6dl version

2013-09-19 Thread Fabio Estevam
Hi Eric, On Wed, Sep 18, 2013 at 10:48 AM, Eric Nelson eric.nel...@boundarydevices.com wrote: As you know, we're loading the kernel using a boot script, with various flavors for differing locations and environments, so we've found it easier to pass environment variables for board and CPU

Re: [U-Boot] [PATCH] socfpga: Adding Freeze Controller driver

2013-09-19 Thread Pavel Machek
Hi! Adding Freeze Controller driver. All HPS IOs need to be in freeze state during pin mux or IO buffer configuration. It is to avoid any glitch which might happen during the configuration from propagating to external devices. Thanks for the patch. (What version is it against? Aha, it

Re: [U-Boot] [PATCH 3/4] dumpimage: Added a tool to extract data files from U-Boot multifile images

2013-09-19 Thread Guilherme Maciel Ferreira
Humm, you are right, Bash expands this. Anyway, I'll remove the {env,} (along with Simon's suggestions) once there is no such dumpenvimage tool. My mistake. Kind regards, 2013/9/18 Otavio Salvador ota...@ossystems.com.br: On Tue, Sep 17, 2013 at 9:42 PM, guilherme.maciel.ferre...@gmail.com

Re: [U-Boot] Annoying make debug messages at v2013.10-rc3

2013-09-19 Thread Albert ARIBAUD
Hi Masahiro, On Wed, 18 Sep 2013 13:00:18 +0900, Masahiro Yamada yamad...@jp.panasonic.com wrote: Hello Albert. Commit 27af930e modified top Makefile as follows: --- a/Makefile +++ b/Makefile @@ -838,7 +838,7 @@ unconfig: sinclude $(obj).boards.depend

Re: [U-Boot] [PATCH] Makefile: Do not show make debug messages

2013-09-19 Thread Nishanth Menon
On 09/17/2013 10:01 PM, Masahiro Yamada wrote: In commit 27af930, the top Makefile was adjusted to the new boards.cfg format. But at the same time, -d option was added. If you configure and make separately, for example like follows: make omap4_panda_config make

Re: [U-Boot] [PATCH v2 2/2] OMAP3: igep00x0: rename config file to omap3_igep00x0.h

2013-09-19 Thread Javier Martinez Canillas
On Mon, Sep 2, 2013 at 1:52 PM, Enric Balletbo Serra eballe...@gmail.com wrote: 2013/9/2 Javier Martinez Canillas jav...@dowhile0.org: There seems to be a naming convention for the configuration files for boards using the same SoC family. This makes easier to do changes that affect different

Re: [U-Boot] [PATCH v4] usb: new board-specific USB init interface

2013-09-19 Thread Marek Vasut
Dear Mateusz Zalega, This commit unifies board-specific USB initialization implementations under one symbol (usb_board_init), declaration of which is available in usb.h. New API allows selective initialization of USB controllers whenever needed. Signed-off-by: Mateusz Zalega

Re: [U-Boot] [PATCH v4] usb: new board-specific USB init interface

2013-09-19 Thread Marek Vasut
Dear Marek Vasut, Dear Mateusz Zalega, This commit unifies board-specific USB initialization implementations under one symbol (usb_board_init), declaration of which is available in usb.h. New API allows selective initialization of USB controllers whenever needed.

Re: [U-Boot] [PATCH] Makefile: Do not show make debug messages

2013-09-19 Thread Nishanth Menon
On 09/19/2013 08:00 AM, Nishanth Menon wrote: On 09/17/2013 10:01 PM, Masahiro Yamada wrote: In commit 27af930, the top Makefile was adjusted to the new boards.cfg format. But at the same time, -d option was added. If you configure and make separately, for example like follows: make

Re: [U-Boot] Annoying make debug messages at v2013.10-rc3

2013-09-19 Thread Albert ARIBAUD
Hi Masahiro, On Thu, 19 Sep 2013 14:49:52 +0200, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Can you repost according to the patch posting guidelines at My bad--you had posted correctly. :) Amicalement, -- Albert. ___ U-Boot mailing list

Re: [U-Boot] [PATCH] mx6sabresd: Fix the fdt file for the mx6dl version

2013-09-19 Thread Eric Nelson
Hi Fabio, On 09/19/2013 04:57 AM, Fabio Estevam wrote: Hi Eric, On Wed, Sep 18, 2013 at 10:48 AM, Eric Nelson eric.nel...@boundarydevices.com wrote: As you know, we're loading the kernel using a boot script, with various flavors for differing locations and environments, so we've found it

[U-Boot] [PATCH] mx6: compute PLL PFD frequencies rather than using defines

2013-09-19 Thread Pierre Aubert
Signed-off-by: Pierre Aubert p.aub...@staubli.com CC: Stefano Babic sba...@denx.de --- arch/arm/cpu/armv7/mx6/clock.c | 75 -- arch/arm/include/asm/arch-mx6/crm_regs.h | 11 2 files changed, 61 insertions(+), 25 deletions(-) diff --git

Re: [U-Boot] [PATCH v4] usb: new board-specific USB init interface

2013-09-19 Thread Marek Vasut
Dear Marek Vasut, Dear Marek Vasut, Dear Mateusz Zalega, This commit unifies board-specific USB initialization implementations under one symbol (usb_board_init), declaration of which is available in usb.h. New API allows selective initialization of USB controllers whenever

Re: [U-Boot] [PATCH] doc: README.mxsimage: Use mkimage provided by U-boot

2013-09-19 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/15/2013 06:58 PM, Otavio Salvador wrote: On Sun, Sep 15, 2013 at 1:50 PM, Fabio Estevam feste...@gmail.com wrote: Hi Marek, On Sun, Sep 15, 2013 at 1:45 PM, Marek Vasut ma...@denx.de wrote: Tom, are you OK with such a hack (invoking the

Re: [U-Boot] [PATCH v2 2/2] OMAP3: igep00x0: rename config file to omap3_igep00x0.h

2013-09-19 Thread Javier Martinez Canillas
On 09/19/2013 05:00 PM, Igor Grinberg wrote: Hi Javier, On 09/19/2013 04:04 PM, Javier Martinez Canillas wrote: On Mon, Sep 2, 2013 at 1:52 PM, Enric Balletbo Serra eballe...@gmail.com wrote: 2013/9/2 Javier Martinez Canillas jav...@dowhile0.org: There seems to be a naming convention for

Re: [U-Boot] [PATCH] socfpga: Adding Freeze Controller driver

2013-09-19 Thread Chin Liang See
Hi Pavel, On Thu, 2013-09-19 at 14:11 +0200, ZY - pavel wrote: Hi! Adding Freeze Controller driver. All HPS IOs need to be in freeze state during pin mux or IO buffer configuration. It is to avoid any glitch which might happen during the configuration from propagating to external

Re: [U-Boot] [PATCH v2 2/2] OMAP3: igep00x0: rename config file to omap3_igep00x0.h

2013-09-19 Thread Javier Martinez Canillas
On Thu, Sep 19, 2013 at 5:13 PM, Javier Martinez Canillas javier.marti...@collabora.co.uk wrote: On 09/19/2013 05:00 PM, Igor Grinberg wrote: Hi Javier, On 09/19/2013 04:04 PM, Javier Martinez Canillas wrote: On Mon, Sep 2, 2013 at 1:52 PM, Enric Balletbo Serra eballe...@gmail.com wrote:

[U-Boot] [PATCH v2] socfpga: Adding Freeze Controller driver

2013-09-19 Thread Chin Liang See
Adding Freeze Controller driver. All HPS IOs need to be in freeze state during pin mux or IO buffer configuration. It is to avoid any glitch which might happen during the configuration from propagating to external devices. Signed-off-by: Chin Liang See cl...@altera.com Cc: Wolfgang Denk

Re: [U-Boot] How the ORx in MPC8641d soc Registers are filled?

2013-09-19 Thread York Sun
On 09/19/2013 07:14 AM, Ashish wrote: On Thursday 19 September 2013 11:50 AM, sun york-R58495 wrote: On Sep 18, 2013, at 9:54 PM, Ashish wrote: York, I am trying to understand how the fields of ORx registers are filled. I am using MPC8641-HPCN board for evaluation purpose. In this i am

Re: [U-Boot] [PATCH v2 2/2] OMAP3: igep00x0: rename config file to omap3_igep00x0.h

2013-09-19 Thread Igor Grinberg
Hi Javier, On 09/19/2013 04:04 PM, Javier Martinez Canillas wrote: On Mon, Sep 2, 2013 at 1:52 PM, Enric Balletbo Serra eballe...@gmail.com wrote: 2013/9/2 Javier Martinez Canillas jav...@dowhile0.org: There seems to be a naming convention for the configuration files for boards using the

Re: [U-Boot] [PATCH 12/12 V3] DWMMC: SMDK5420: Disable SMU for eMMC

2013-09-19 Thread Rajeshwari Birje
Hi Simon, Thank you for comments. Will add a check so that it will be executed only for Exynos5420 boards. Thanks and Regards, Rajeshwari. On Thu, Sep 19, 2013 at 11:42 AM, Simon Glass s...@chromium.org wrote: Hi Rajeshwari, On Wed, Sep 11, 2013 at 4:01 AM, Rajeshwari S Shinde

Re: [U-Boot] gpmi-nand driver and jffs2 support

2013-09-19 Thread Marek Vasut
Dear Hector Palacios, On 09/19/2013 06:07 PM, Marek Vasut wrote: Dear Huang Shijie, Sorry, I think I got lost in the discussion. I will pull out. btw Hector, I managed to verify JFFS2 mounting doesn't work on 3.10 , now I'm trying to backport patches from -next and apply the GPMI

Re: [U-Boot] gpmi-nand driver and jffs2 support

2013-09-19 Thread Marek Vasut
Dear Huang Shijie, Sorry, I think I got lost in the discussion. I will pull out. btw Hector, I managed to verify JFFS2 mounting doesn't work on 3.10 , now I'm trying to backport patches from -next and apply the GPMI NAND patchset, without much luck yet. Best regards, Marek Vasut

Re: [U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Mj Embd
Hi Andre, There is another approach taken in xen. (xen/arch/arm/mode_switch.S) Which do you think is the better approach Regards -mj On 9/19/13, Andre Przywara andre.przyw...@linaro.org wrote: While actually switching to non-secure state is one thing, another part of this process is to make

[U-Boot] [PATCH v5 0/8] ARMv7: Add HYP mode switching support

2013-09-19 Thread Andre Przywara
(for GIT URL and Changelog see below) ARM CPUs with the virtualization extension have a new mode called HYP mode, which allows hypervisors to safely control and monitor guests. The current hypervisor implementations (KVM and Xen) require the kernel to be entered in that HYP mode. This patch

Re: [U-Boot] [PATCH 12/12 V3] DWMMC: SMDK5420: Disable SMU for eMMC

2013-09-19 Thread Simon Glass
Hi Rajeshwari, On Thu, Sep 19, 2013 at 9:42 AM, Rajeshwari Birje rajeshwari.bi...@gmail.com wrote: Hi Simon, Thank you for comments. Will add a check so that it will be executed only for Exynos5420 boards. Also, I don't think an #ifdef for an SOC is permitted in driver code. Are these

[U-Boot] [PATCH v5 2/8] ARM: add secure monitor handler to switch to non-secure state

2013-09-19 Thread Andre Przywara
A prerequisite for using virtualization is to be in HYP mode, which requires the CPU to be in non-secure state first. Add a new file in arch/arm/cpu/armv7 to hold a monitor handler routine which switches the CPU to non-secure state by setting the NS and associated bits. According to the ARM

[U-Boot] [PATCH v5 5/8] ARM: trigger non-secure state switch during bootm execution

2013-09-19 Thread Andre Przywara
To actually trigger the non-secure switch we just implemented, call the switching routine from within the bootm command implementation. This way we automatically enable this feature without further user intervention. Signed-off-by: Andre Przywara andre.przyw...@linaro.org ---

[U-Boot] [PATCH v5 4/8] ARM: add C function to switch to non-secure state

2013-09-19 Thread Andre Przywara
The core specific part of the work is done in the assembly routine in nonsec_virt.S, introduced with the previous patch, but for the full glory we need to setup the GIC distributor interface once for the whole system, which is done in C here. The routine is placed in arch/arm/cpu/armv7 to allow

Re: [U-Boot] gpmi-nand driver and jffs2 support

2013-09-19 Thread Hector Palacios
Dear Marek Vasut, On 09/19/2013 06:07 PM, Marek Vasut wrote: btw Hector, I managed to verify JFFS2 mounting doesn't work on 3.10 , now I'm trying to backport patches from -next and apply the GPMI NAND patchset, without much luck yet. If it helps, to make it work on v3.10 I had to apply lots

[U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Andre Przywara
While actually switching to non-secure state is one thing, another part of this process is to make sure that we still have full access to the interrupt controller (GIC). The GIC is fully aware of secure vs. non-secure state, some registers are banked, others may be configured to be accessible from

[U-Boot] [PATCH v5 8/8] ARM: VExpress: enable ARMv7 virt support for VExpress A15

2013-09-19 Thread Andre Przywara
To enable hypervisors utilizing the ARMv7 virtualization extension on the Versatile Express board with the A15 core tile, we add the required configuration variable. Also we define the board specific smp_set_cpu_boot_addr() function to set the start address for secondary cores in the VExpress

[U-Boot] [PATCH v5 1/8] ARM: prepare armv7.h to be included from assembly source

2013-09-19 Thread Andre Przywara
armv7.h contains some useful constants, but also C prototypes. To include it also in assembly files, protect the non-assembly part appropriately. Signed-off-by: Andre Przywara andre.przyw...@linaro.org --- arch/arm/include/asm/armv7.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-)

Re: [U-Boot] gpmi-nand driver and jffs2 support

2013-09-19 Thread Hector Palacios
On 09/19/2013 06:07 PM, Marek Vasut wrote: Dear Huang Shijie, Sorry, I think I got lost in the discussion. I will pull out. btw Hector, I managed to verify JFFS2 mounting doesn't work on 3.10 , now I'm trying to backport patches from -next and apply the GPMI NAND patchset, without much luck

[U-Boot] [PATCH v5 7/8] ARM: extend non-secure switch to also go into HYP mode

2013-09-19 Thread Andre Przywara
For the KVM and XEN hypervisors to be usable, we need to enter the kernel in HYP mode. Now that we already are in non-secure state, HYP mode switching is within short reach. While doing the non-secure switch, we have to enable the HVC instruction and setup the HYP mode HVBAR (while still secure).

[U-Boot] [PATCH v5 6/8] ARM: add SMP support for non-secure switch

2013-09-19 Thread Andre Przywara
Currently the non-secure switch is only done for the boot processor. To enable full SMP support, we have to switch all secondary cores into non-secure state also. So we add an entry point for secondary CPUs coming out of low-power state and make sure we put them into WFI again after having

Re: [U-Boot] Annoying make debug messages at v2013.10-rc3

2013-09-19 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2013 02:39 AM, Albert ARIBAUD wrote: Hi Masahiro, On Wed, 18 Sep 2013 13:00:18 +0900, Masahiro Yamada yamad...@jp.panasonic.com wrote: Hello Albert. Commit 27af930e modified top Makefile as follows: --- a/Makefile +++

[U-Boot] [PATCH V2] mx6: compute PLL PFD frequencies rather than using defines

2013-09-19 Thread Pierre Aubert
Signed-off-by: Pierre Aubert p.aub...@staubli.com CC: Stefano Babic sba...@denx.de --- Change for V2: Use the right macros for computing PFD dividers. arch/arm/cpu/armv7/mx6/clock.c | 56 ++--- arch/arm/include/asm/arch-mx6/crm_regs.h | 11 -- 2 files

Re: [U-Boot] [PATCH v3 02/28] sf: probe: Add new spi_flash_probe support

2013-09-19 Thread Simon Glass
Hi Jagan, On Thu, Sep 19, 2013 at 1:06 AM, Jagan Teki jagannadh.t...@gmail.comwrote: On Thu, Sep 19, 2013 at 11:46 AM, Simon Glass s...@chromium.org wrote: Hi, On Sun, Sep 15, 2013 at 12:15 PM, Jagannadha Sutradharudu Teki jagannadha.sutradharudu-t...@xilinx.com wrote: Added new

Re: [U-Boot] gpmi-nand driver and jffs2 support

2013-09-19 Thread Marek Vasut
Dear Hector Palacios, On 09/19/2013 06:07 PM, Marek Vasut wrote: Dear Huang Shijie, Sorry, I think I got lost in the discussion. I will pull out. btw Hector, I managed to verify JFFS2 mounting doesn't work on 3.10 , now I'm trying to backport patches from -next and apply the GPMI

Re: [U-Boot] [PATCH v2] FIT: delete unnecessary casts

2013-09-19 Thread Jeroen Hofstee
On 09/19/2013 05:10 AM, Masahiro Yamada wrote: Becuase fdt_check_header function takes (const void *) type argument, the argument should be passed to it without being casted to (char *). Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com --- Changes for v2: - fix commit log (purely

Re: [U-Boot] [PATCH v2 1/4] ARM: make reserving the gd register a make variable

2013-09-19 Thread Jeroen Hofstee
Hello Albert, On 09/19/2013 08:57 AM, Albert ARIBAUD wrote: On Sat, 17 Aug 2013 15:55:16 +0200, Jeroen Hofstee jer...@myspectrum.nl wrote: On 08/14/2013 08:25 PM, Jeroen Hofstee wrote: diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 540a119..5e382ab 100644 --- a/arch/arm/config.mk

Re: [U-Boot] [PATCH v1 2/2] ti814x_evm: enable support for NAND

2013-09-19 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/16/2013 05:51 AM, Gupta, Pekon wrote: On Tue, Aug 06, 2013 at 01:45:08PM +0530, Pekon Gupta wrote: ti814x_evm has on-board socket for using Micron (MT29Fxx) family of NAND devices to GPMC interface. This patch - adds NAND related pin-mux

[U-Boot] [PATCH v3 3/3] i2c: update config using mxc driver to new subsystem

2013-09-19 Thread Philippe Reynes
Signed-off-by: Philippe Reynes trem...@yahoo.fr --- include/configs/apf27.h | 11 ++- include/configs/flea3.h |9 - include/configs/imx31_phycore.h |7 +++ include/configs/m53evk.h |7 +++ include/configs/mx25pdk.h |

[U-Boot] [PATCH v3 0/3] i2c, mxc: switch to new multibus/multiadapter framework

2013-09-19 Thread Philippe Reynes
This serie is composed of three patches: - one to fix the i2c init on the generic board - one to port the i2c mxc driver to new subsystem - one to update all configurations with i2c mxc driver This serie was tested with success on armadeus apf27. Difference between v3 and v2: - change title of

[U-Boot] [PATCH v3 2/3] i2c: mxc: move to new subsystem

2013-09-19 Thread Philippe Reynes
Signed-off-by: Philippe Reynes trem...@yahoo.fr --- README | 11 +++ arch/arm/cpu/armv7/mx5/clock.c |2 +- arch/arm/cpu/armv7/mx6/clock.c |2 +- arch/arm/imx-common/Makefile |2 +- drivers/i2c/Makefile |2 +- drivers/i2c/mxc_i2c.c |

[U-Boot] [PATCH v3 1/3] i2c: fix init on generic board

2013-09-19 Thread Philippe Reynes
Signed-off-by: Philippe Reynes trem...@yahoo.fr --- common/board_f.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 0ada1af..f0664bc 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -249,7 +249,11 @@ void

Re: [U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Christoffer Dall
On Thu, Sep 19, 2013 at 10:00:03PM +0530, Mj Embd wrote: Hi Andre, There is another approach taken in xen. (xen/arch/arm/mode_switch.S) Which do you think is the better approach Hi there, I'm not sure I completely understand your question. Do you think this patch series should be changed

Re: [U-Boot] [PATCH] config: consolidate CONFIG_SYS_HZ definition

2013-09-19 Thread Tom Rini
On Mon, Sep 09, 2013 at 05:41:46PM +0200, Wolfgang Denk wrote: Dear Rob, In message 522de2ff.2080...@gmail.com you wrote: What do I do with current boards that are wrong? I should make all these Good question... boards have build errors or fix them to use 1000 which may break them

Re: [U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Mj Embd
two quick points (a) xen already has a mode_switch code, so AFAIK xen might not use it (as suggested by comment in another patch in this patch set) (b) There are 2 methods of switching from Secure to Hyp mode one you have proposed another implemented in xen. I was suggesting take the best approach

Re: [U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Mj Embd
Hello Christoffer, I agree with both of you points. What I found different in 2 approaches is that in your approach S-Monitor-NS-Hyp using svc and hvc While the other approach is setting the M bits directly in cpsr Xen uses the following cpsid aif, #0x16 /* Enter Monitor Mode*/ ... mrs

Re: [U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Christoffer Dall
On Fri, Sep 20, 2013 at 01:27:48AM +0530, Mj Embd wrote: two quick points (a) xen already has a mode_switch code, so AFAIK xen might not use it (as suggested by comment in another patch in this patch set) For KVM the boot procedure for Hyp mode is quite clearly defined: the kernel must be

[U-Boot] NAND flash question

2013-09-19 Thread ANDY KENNEDY
All, We have a design that has NAND as a secondary device (not the boot device). The last four pages of the NAND flash are reported as bad. Should this be true for all NAND flash devices we have? Thanks, Andy ___ U-Boot mailing list

Re: [U-Boot] NAND flash question

2013-09-19 Thread Peter Barada
On 09/19/2013 04:04 PM, ANDY KENNEDY wrote: All, We have a design that has NAND as a secondary device (not the boot device). The last four pages of the NAND flash are reported as bad. Should this be true for all NAND flash devices we have? No, I wouldn't think so. Manufacturers qualify

Re: [U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Andre Przywara
On 09/19/2013 09:57 PM, Mj Embd wrote: two quick points (a) xen already has a mode_switch code, so AFAIK xen might not use it (as suggested by comment in another patch in this patch set) Just a few days ago Ian sent out patches to remove this code from Xen. That code was never meant to

Re: [U-Boot] How do ARM platform initialize DDR?

2013-09-19 Thread York Sun
On 09/19/2013 01:57 PM, Tom Rini wrote: On Tue, Sep 17, 2013 at 08:59:24AM -0700, York Sun wrote: Albert, Pardon me if this is a dumb question. I have been working on powerpc platforms in the past. Now we (the developers I work with) are exploring ARM cores. I am searching how memory is

Re: [U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Ian Campbell
On Fri, 2013-09-20 at 01:27 +0530, Mj Embd wrote: two quick points (a) xen already has a mode_switch code, so AFAIK xen might not use it (as suggested by comment in another patch in this patch set) Xen absolutely wants to use this code. The stuff in Xen was there as a hack when this stuff

Re: [U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Ian Campbell
On Thu, 2013-09-19 at 21:11 +0100, Christoffer Dall wrote: On Fri, Sep 20, 2013 at 01:27:48AM +0530, Mj Embd wrote: two quick points (a) xen already has a mode_switch code, so AFAIK xen might not use it (as suggested by comment in another patch in this patch set) For KVM the boot

Re: [U-Boot] [PATCH] arm: prevent using movt/movw address loads

2013-09-19 Thread Tom Rini
On Sat, Aug 24, 2013 at 01:55:38PM +0200, Jeroen Hofstee wrote: The movt/movw instruction can be used to hardcode an memory location in the instruction itself. The linker starts complaining about this if the compiler decides to do so: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can

Re: [U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Andre Przywara
On 09/19/2013 10:38 PM, Mj Embd wrote: Hello Christoffer, I agree with both of you points. What I found different in 2 approaches is that in your approach S-Monitor-NS-Hyp using svc and hvc While the other approach is setting the M bits directly in cpsr Xen uses the following cpsid aif,

Re: [U-Boot] How do ARM platform initialize DDR?

2013-09-19 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2013 05:08 PM, York Sun wrote: On 09/19/2013 01:57 PM, Tom Rini wrote: On Tue, Sep 17, 2013 at 08:59:24AM -0700, York Sun wrote: Albert, Pardon me if this is a dumb question. I have been working on powerpc platforms in the past. Now

Re: [U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Mj Embd
On Fri, Sep 20, 2013 at 3:01 AM, Andre Przywara andre.przyw...@linaro.orgwrote: On 09/19/2013 10:38 PM, Mj Embd wrote: Hello Christoffer, I agree with both of you points. What I found different in 2 approaches is that in your approach S-Monitor-NS-Hyp using svc and hvc While the other

Re: [U-Boot] How do ARM platform initialize DDR?

2013-09-19 Thread Wolfgang Denk
Dear York Sun, In message 523b67d2.2050...@freescale.com you wrote: So for ARM platforms, the majority don't have the flexibility of using different DIMMs and/or clocks? The majority of ARM systems are embedded designs which never use any kind of DIMM, but raw soldered-on RAM chips. Does it

Re: [U-Boot] [PATCH] config: consolidate CONFIG_SYS_HZ definition

2013-09-19 Thread Rob Herring
On Thu, Sep 19, 2013 at 2:06 PM, Tom Rini tr...@ti.com wrote: On Mon, Sep 09, 2013 at 05:41:46PM +0200, Wolfgang Denk wrote: Dear Rob, In message 522de2ff.2080...@gmail.com you wrote: What do I do with current boards that are wrong? I should make all these Good question... boards have

Re: [U-Boot] How do ARM platform initialize DDR?

2013-09-19 Thread York Sun
On 09/19/2013 02:39 PM, Wolfgang Denk wrote: Dear York Sun, In message 523b67d2.2050...@freescale.com you wrote: So for ARM platforms, the majority don't have the flexibility of using different DIMMs and/or clocks? The majority of ARM systems are embedded designs which never use any

Re: [U-Boot] [PATCH] usb: ehci: Fix test mode for connected ports

2013-09-19 Thread Marek Vasut
Dear Julius Werner, Why 8 * 1000? It's not clear. I am not quite sure to be honest... it's been a while since I actually wrote this patch. The EHCI spec gives no clear max for the Periodic/Async Schedule disable (I assume not more than a frame, though), and says the Run/Stop bit must halt

Re: [U-Boot] [PATCH v5 2/8] ARM: add secure monitor handler to switch to non-secure state

2013-09-19 Thread Mj Embd
Just checking, is the mcr p15,0,r1,c1,c1,0 in sync with the following text . I could be wrong here, just checking B1.5.1 Arm Arch Ref Manual - To avoid security holes, software must not: - — Change from Secure to Non-secure state by using an MSR or CPS instruction to

Re: [U-Boot] How do ARM platform initialize DDR?

2013-09-19 Thread York Sun
On 09/19/2013 02:33 PM, Tom Rini wrote: On 09/19/2013 05:08 PM, York Sun wrote: On 09/19/2013 01:57 PM, Tom Rini wrote: On Tue, Sep 17, 2013 at 08:59:24AM -0700, York Sun wrote: Albert, Pardon me if this is a dumb question. I have been working on powerpc platforms in the past. Now we (the

Re: [U-Boot] How do ARM platform initialize DDR?

2013-09-19 Thread Tom Rini
On Tue, Sep 17, 2013 at 08:59:24AM -0700, York Sun wrote: Albert, Pardon me if this is a dumb question. I have been working on powerpc platforms in the past. Now we (the developers I work with) are exploring ARM cores. I am searching how memory is initialized and found different solutions.

Re: [U-Boot] [PATCH v5 3/8] ARM: add assembly routine to switch to non-secure state

2013-09-19 Thread Mj Embd
Hello Andre, I need a bit clarification here, if you read the next line after the line you have quoted. It clearly says that you can use a MCR to change from Secure to NS in Monitor Mode Use an MCR instruction that writes SCR.NS to change from Secure to Non-secure state. This means ARM recommends

Re: [U-Boot] [PATCH] config: consolidate CONFIG_SYS_HZ definition

2013-09-19 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2013 05:02 PM, Rob Herring wrote: On Thu, Sep 19, 2013 at 2:06 PM, Tom Rini tr...@ti.com wrote: On Mon, Sep 09, 2013 at 05:41:46PM +0200, Wolfgang Denk wrote: Dear Rob, In message 522de2ff.2080...@gmail.com you wrote: What do I do with

Re: [U-Boot] [PATCH 01/12 V3] EXYNOS5: Create a common board file

2013-09-19 Thread Simon Glass
Hi MJ, On Thu, Sep 19, 2013 at 12:59 AM, MJ embd mj.e...@gmail.com wrote: Hi @Samsung, Great that you have starting posting 5420 patches, one basic question (a) What is the booting procedure for the secondary cores (b) What is the booting procedure for the Little Secondary cores... Would

  1   2   >