Re: [U-Boot] [RFC PATCH 9/9] x86: quark: Call MRC in dram_init()

2015-02-04 Thread Simon Glass
Hi Bin, On 3 February 2015 at 04:45, Bin Meng bmeng...@gmail.com wrote: Now that we have added Quark MRC codes, call MRC in dram_init() so that DRAM can be initialized on a Quark based board. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/cpu/quark/dram.c | 97

Re: [U-Boot] [RFC PATCH 1/9] x86: Allow overriding TSC_FREQ_IN_MHZ

2015-02-04 Thread Simon Glass
On 3 February 2015 at 04:45, Bin Meng bmeng...@gmail.com wrote: We should allow the value of TSC_FREQ_IN_MHZ to be overridden by the one in arch/cpu/xxx/Kconfig. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/Kconfig | 40 1 file changed,

Re: [U-Boot] [RFC PATCH 3/9] x86: quark: Add Memory Reference Code (MRC) main routines

2015-02-04 Thread Simon Glass
Hi Bin, On 3 February 2015 at 04:45, Bin Meng bmeng...@gmail.com wrote: Add the main routines for Quark Memory Reference Code (MRC). Signed-off-by: Bin Meng bmeng...@gmail.com --- The are 24 checkpatch warnings in this patch, which is: warning: arch/x86/cpu/quark/mrc.c,43: line over 80

Re: [U-Boot] [RFC PATCH 4/9] x86: quark: Add utility codes needed for MRC

2015-02-04 Thread Simon Glass
Hi Bin, On 3 February 2015 at 04:45, Bin Meng bmeng...@gmail.com wrote: Add various utility codes needed for Quark MRC. Signed-off-by: Bin Meng bmeng...@gmail.com --- There are 12 checkpatch warnings in this patch, which are: warning: arch/x86/cpu/quark/mrc_util.c,1446: Too many leading

Re: [U-Boot] [RFC PATCH 2/9] x86: quark: Bypass TSC calibration

2015-02-04 Thread Simon Glass
On 3 February 2015 at 04:45, Bin Meng bmeng...@gmail.com wrote: For some unknown reason, the TSC calibration via PIT does not work on Quark. Enable bypassing TSC calibration and override TSC_FREQ_IN_MHZ to 400 per Quark datasheet in the Kconfig. Signed-off-by: Bin Meng bmeng...@gmail.com ---

Re: [U-Boot] [RFC PATCH 8/9] dt-bindings: Add Intel Quark MRC bindings

2015-02-04 Thread Simon Glass
On 3 February 2015 at 04:45, Bin Meng bmeng...@gmail.com wrote: Add standard dt-bindings macros to be used by Intel Quark MRC node. Signed-off-by: Bin Meng bmeng...@gmail.com --- include/dt-bindings/mrc/quark.h | 83 + 1 file changed, 83

Re: [U-Boot] How to have U-boot loading U-boot

2015-02-04 Thread Wolfgang Denk
Dear Jean-Christophe Lallemand, In message 9fddf58442d8154dbf9bb9a68ce7ad9cec6e3f1...@chuck.dvlt.local you wrote: What I'd like to do is have the already available u-boot (say Level-1) to load a second u-boot (say Level-2) into DDR where size is not an issue which will then load Linux.

Re: [U-Boot] [PATCH] sunxi: configs/sunxi-common.h: Enable CONFIG_CMD_PART

2015-02-04 Thread Stephen Warren
On 02/04/2015 01:27 AM, Ian Campbell wrote: On Wed, 2015-02-04 at 00:43 +0100, Hans de Goede wrote: The recent changes to config_distro_bootcmd.h require CONFIG_CMD_PART to be defined, as the default bootcmd not uses the part command. ^w Shouldn't

Re: [U-Boot] [RFC PATCH 7/9] fdtdec: Add compatible id and string for Intel Quark MRC

2015-02-04 Thread Simon Glass
On 3 February 2015 at 04:45, Bin Meng bmeng...@gmail.com wrote: Add COMPAT_INTEL_QRK_MRC and intel,quark-mrc so that fdtdec can decode Intel Quark MRC node. Signed-off-by: Bin Meng bmeng...@gmail.com --- include/fdtdec.h | 1 + lib/fdtdec.c | 1 + 2 files changed, 2 insertions(+)

Re: [U-Boot] [RFC PATCH 6/9] x86: quark: Enable the Memory Reference Code build

2015-02-04 Thread Simon Glass
Hi Bin, On 3 February 2015 at 04:45, Bin Meng bmeng...@gmail.com wrote: Turn on the Memory Reference code build in the quark Makefile. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/cpu/quark/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [U-Boot] [PATCH V2 02/13] lcd: split configuration_get_cmap

2015-02-04 Thread Bo Shen
Hi Nikita Kiryanov, On 02/03/2015 07:32 PM, Nikita Kiryanov wrote: configuration_get_cmap() is multiple platform-specific functions stuffed into one function. Split it into multiple versions, and move each version to the appropriate driver to reduce the #ifdef complexity. Signed-off-by: Nikita

Re: [U-Boot] [PATCH v2] intern: Add copy scripts and target specific helpers

2015-02-04 Thread Heiko Schocher
Hello Hannes, Am 04.02.2015 08:10, schrieb Hannes Petermaier: Heiko, what a great tool :-) Yep, definitely... Thanks to Simon! This makes the whole thing much easier and will produce (hopefully) less noise from me :-) ;-) But i 've a further questions: 1st) patman prints out some

Re: [U-Boot] [PATCH] RSA depends on DM

2015-02-04 Thread Albert ARIBAUD
Hello Simon, On Tue, 3 Feb 2015 18:01:49 -0700, Simon Glass s...@chromium.org wrote: Hi Chris, On 3 February 2015 at 17:57, Chris Kuethe chris.kue...@gmail.com wrote: On Tue, Feb 3, 2015 at 4:38 PM, Simon Glass s...@chromium.org wrote: +Masahiro Hi Chris, On 3 February 2015 at

Re: [U-Boot] [PATCH] RSA depends on DM

2015-02-04 Thread Chris Kuethe
On Tue, Feb 3, 2015 at 5:01 PM, Simon Glass s...@chromium.org wrote: We certainly must avoid the build break. My concern is that CONFIG_DM may introduce a run-time break. For example if you don't have pre-relocation malloc() available the board may not boot. Driver model is a fundamental core

Re: [U-Boot] [PATCH 5/5] RFC: sunxi: WIP FEL support

2015-02-04 Thread Hans de Goede
Hi, On 04-02-15 05:18, Simon Glass wrote: (What does FEL stand for?) This is an attempt to make sunxi's FEL code fit with the normal U-Boot boot sequence instead of creating its own. Most of the FEL special-case code is removed, although I may have gone too far with my changes to generate a

Re: [U-Boot] [PATCH 1/2] sunxi: video: Do not use CONFIG_SYS_MEM_TOP_HIDE for the framebuffer

2015-02-04 Thread Ian Campbell
On Tue, 2015-02-03 at 18:59 +0100, Hans de Goede wrote: Then we need to keep track of if that callback succeeded, because without the reservation we should not enable simplefb. I would prefer to just keep this bit as is. OK then. With the comment fixed up: Acked-by: Ian Campbell

Re: [U-Boot] [PATCH 3/5] dfu: nand: Verify writes

2015-02-04 Thread Lukasz Majewski
Hi Peter, Previously NAND writes were not verified and could fail silently. Add a verification step after all writes to NAND. Signed-off-by: Peter Tyser pty...@xes-inc.com --- I don't have a board with DFU support, so this change is untested. drivers/dfu/dfu_nand.c | 2 +- 1 file

Re: [U-Boot] [PATCH 1/5] arm: Use r2 instead of r0 in start.S

2015-02-04 Thread Albert ARIBAUD
Hello Simon, (sorry for the dupe) On Tue, 3 Feb 2015 21:18:50 -0700, Simon Glass s...@chromium.org wrote: Allow r0 to be used for other purposes in this file. These purposes should be made clear -- possibly even, merged with the code that actually needs it. Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 5/5] RFC: sunxi: WIP FEL support

2015-02-04 Thread Albert ARIBAUD
Hello Hans, On Wed, 04 Feb 2015 09:47:41 +0100, Hans de Goede hdego...@redhat.com wrote: Hi, On 04-02-15 05:18, Simon Glass wrote: (What does FEL stand for?) This is an attempt to make sunxi's FEL code fit with the normal U-Boot boot sequence instead of creating its own. Most of

[U-Boot] [PATCH 1/5] arm: Use r2 instead of r0 in start.S

2015-02-04 Thread Simon Glass
Allow r0 to be used for other purposes in this file. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/start.S | 88 +++--- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/arch/arm/cpu/armv7/start.S

Re: [U-Boot] [PATCH] sunxi: configs/sunxi-common.h: Enable CONFIG_CMD_PART

2015-02-04 Thread Ian Campbell
On Wed, 2015-02-04 at 00:43 +0100, Hans de Goede wrote: The recent changes to config_distro_bootcmd.h require CONFIG_CMD_PART to be defined, as the default bootcmd not uses the part command. ^w Shouldn't config_distro_bootcmd.h (or perhaps

Re: [U-Boot] [PATCH] lcd: Add support for CONFIG_LCD_NOSTDOUT

2015-02-04 Thread Hannes Petermaier
On 2014-08-11 15:52, Anatolij Gustschin wrote: Hi, Hi, sorry for my late response because i've been working on some other project for a couple of months. On Thu, 6 Mar 2014 15:26:11 +0100 Hannes Petermaier oe5...@oevsv.at wrote: ... + CONFIG_LCD_NOSTDOUT +

Re: [U-Boot] [PATCH 3/5] arm: Allow lr to be saved by board code

2015-02-04 Thread Albert ARIBAUD
Hello Simon, On Tue, 3 Feb 2015 21:18:52 -0700, Simon Glass s...@chromium.org wrote: The link register value can be required on some boards (e.g. FEL mode on sunxi) so stash it to r4 before jumping to save_boot_params(). I'd rather not make this there; I would like save_boot_params to start

Re: [U-Boot] [PATCH] sunxi: configs/sunxi-common.h: Enable CONFIG_CMD_PART

2015-02-04 Thread Hans de Goede
Hi, On 04-02-15 09:27, Ian Campbell wrote: On Wed, 2015-02-04 at 00:43 +0100, Hans de Goede wrote: The recent changes to config_distro_bootcmd.h require CONFIG_CMD_PART to be defined, as the default bootcmd not uses the part command. ^w Shouldn't

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Michal Simek
On 02/04/2015 04:11 AM, Masahiro Yamada wrote: Hi Michal, On Tue, 3 Feb 2015 10:11:39 +0100 Michal Simek michal.si...@xilinx.com wrote: Hi Simon, On 02/03/2015 03:02 AM, Masahiro Yamada wrote: Hi. On Mon, 2 Feb 2015 16:57:15 -0700 Simon Glass s...@chromium.org wrote: Hi Michal,

[U-Boot] [PATCH 3/3] mmc: exynos_dw_mmc: use the exynos specific data structure

2015-02-04 Thread Jaehoon Chung
Clksel value is exynos specific value. It removed clksel_val into dwmci_host and created the dwmci_exynos_priv_data structure for exynos specific data. Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com --- drivers/mmc/exynos_dw_mmc.c | 60 +++--

Re: [U-Boot] [PATCH V2 01/13] lcd: move platform-specific structs to their own headers

2015-02-04 Thread Bo Shen
On 02/03/2015 07:32 PM, Nikita Kiryanov wrote: common/lcd code is full of platform-specific code and definitions, which ideally should reside with the respective driver code. Take a step towards that goal by moving platform-specific structs from lcd.h to their own header files. The structs for

Re: [U-Boot] [PATCH v2] intern: Add copy scripts and target specific helpers

2015-02-04 Thread Hannes Petermaier
Heiko, what a great tool :-) This makes the whole thing much easier and will produce (hopefully) less noise from me :-) But i 've a further questions: 1st) patman prints out some errors, looks like for me that something is wrong with the first line of my commit message - but no idea what.

[U-Boot] [PATCH 2/3] mmc: exynos_dw_mmc: set to clksel_val into board-init function

2015-02-04 Thread Jaehoon Chung
clksel_val is assigned to property of mmc or defined value. But it doesn't write at initial sequence. There is a reason that get the wrong source-clock value. This patch fixed it. Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com --- drivers/mmc/exynos_dw_mmc.c | 4 1 file changed, 4

[U-Boot] Let's bury CONFIG_NEEDS_MANUAL_RELOC

2015-02-04 Thread Graeme Russ
Hi Guys, Since I did the initial 'full relocation' for x86 way back when (http://git.denx.de/?p=u-boot.git;a=commit;h=1c409bc7101a24ecd47a13a4e851845d66dc23ce), there has been a lot of chatter about the ongoing need for CONFIG_NEEDS_MANUAL_RELOC. I think it's about time we looked really hard

Re: [U-Boot] [PATCH v5 7/7] Exynos: Clock: Cleanup soc_get_periph_rate

2015-02-04 Thread Joonyoung Shim
Hi, On 02/04/2015 03:30 PM, Akshay Saraswat wrote: Hi, Hi Akshay, On 02/03/2015 05:27 PM, Akshay Saraswat wrote: Cleaning up soc_get_periph_rate to make the logic easy to comprehend. Could you give more detailed description? We did just a cleanup here by removing I2C sepecific

Re: [U-Boot] [PATCH v5 7/7] Exynos: Clock: Cleanup soc_get_periph_rate

2015-02-04 Thread Akshay Saraswat
Hi, Hi Akshay, On 02/03/2015 05:27 PM, Akshay Saraswat wrote: Cleaning up soc_get_periph_rate to make the logic easy to comprehend. Could you give more detailed description? We did just a cleanup here by removing I2C sepecific calculations because we can now have a generic div and pre-div

[U-Boot] [PATCH 1/3] mmc: dw_mmc: fixed the wrong bit control

2015-02-04 Thread Jaehoon Chung
If mode is not DDR-mode, then it needs to clear it. Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com --- drivers/mmc/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index b18c75d..76fa0b0 100644 ---

[U-Boot] [PATCH 0/3] mmc: dw_mmc: fixed minor problems

2015-02-04 Thread Jaehoon Chung
This patchset fixed minor problems. Included the previous patch(mmc: dw_mmc: fixed the wrong bit control) Jaehoon Chung (3): mmc: dw_mmc: fixed the wrong bit control mmc: exynos_dw_mmc: set to clksel_val into board-init function mmc: exynos_dw_mmc: use the exynos specific data structure

Re: [U-Boot] [PATCH V2 03/13] lcd: atmel: move atmel-specific fb_put_word to atmel_lcdfb

2015-02-04 Thread Bo Shen
On 02/03/2015 07:32 PM, Nikita Kiryanov wrote: Reduce the amount of platform-specific code in common/lcd.c by moving Atmel implementation of fb_put_word() to atmel_lcdfb.c. Since we must also have a default implementation for everybody else, make the remainder of the code into a weak function.

[U-Boot] [PATCH v2 1/2] ARM: atmel: arm9: switch to use common timer functions

2015-02-04 Thread Bo Shen
Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None arch/arm/cpu/arm926ejs/at91/timer.c | 59 arch/arm/include/asm/arch-at91/at91sam9260.h | 3 ++ arch/arm/include/asm/arch-at91/at91sam9261.h | 3 ++

[U-Boot] [PATCH 4/6] x86: Add SPI support to quark/galileo

2015-02-04 Thread Bin Meng
The Quark SoC contains a legacy SPI controller in the legacy bridge which is ICH7 compatible. Like Tunnel Creek and BayTrail, the BIOS control register offset in the ICH SPI driver is wrong for the Quark SoC too, unprotect_spi_flash() is added to enable the flash write. Signed-off-by: Bin Meng

[U-Boot] [PATCH 5/6] x86: Add SD/MMC support to quark/galileo

2015-02-04 Thread Bin Meng
Intel Galileo board has a microSD slot which is routed from Quark SoC SDIO controller. Enable SD/MMC support so that we can use an SD card. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/cpu/quark/quark.c | 11 +++ include/configs/galileo.h | 7 +++ 2 files changed, 18

[U-Boot] [PATCH 3/6] x86: pci: Add pci ids for Quark SoC

2015-02-04 Thread Bin Meng
Add pci ids for Intel Quark SoC. Signed-off-by: Bin Meng bmeng...@gmail.com --- include/pci_ids.h | 4 1 file changed, 4 insertions(+) diff --git a/include/pci_ids.h b/include/pci_ids.h index 1012abe..dc2ca21 100644 --- a/include/pci_ids.h +++ b/include/pci_ids.h @@ -2592,6 +2592,10 @@

[U-Boot] [PATCH 1/6] x86: quark: Initialize non-standard BARs

2015-02-04 Thread Bin Meng
Quark SoC has some non-standard BARs (excluding PCI standard BARs) which need be initialized with suggested values. This includes GPIO, WDT, RCBA, PCIe ECAM and some ACPI register block base addresses. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/cpu/quark/quark.c | 46

Re: [U-Boot] [PATCH v2] intern: Add copy scripts and target specific helpers

2015-02-04 Thread Hannes Petermaier
On 2015-02-04 08:33, Heiko Schocher wrote: Hello Hannes, 1st) patman prints out some errors, looks like for me that something is wrong with the first line of my commit message - but no idea what. Traceback (most recent call last): File tools/patman/patman, line 149, in module

[U-Boot] [PATCH v2 2/2] ARM: atmel: armv7: switch to use common timer functions

2015-02-04 Thread Bo Shen
The commit 8dfafdd (Introduce common timer functions), add common timer functions, we can use them directly. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: - correct the timer register for sama5d4. arch/arm/cpu/armv7/at91/timer.c | 61

[U-Boot] [PATCH 6/6] x86: Add Intel Galileo instructions in README.x86

2015-02-04 Thread Bin Meng
Add some instructions about building U-Boot for Intel Galileo board. Signed-off-by: Bin Meng bmeng...@gmail.com --- doc/README.x86 | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/doc/README.x86 b/doc/README.x86 index c699b79..fb87682 100644 ---

[U-Boot] [PATCH 0/6] x86: Add some peripherals support to Intel Galileo

2015-02-04 Thread Bin Meng
This series adds GPIO, SPI and SD/MMC support to Intel Galileo board. Intel's chipset controllers are normally compatible so that we can easily add peripherals support via existing drivers with minor modification. Note this series depends on previous two series: series#1:

[U-Boot] [PATCH 2/6] x86: galileo: Add GPIO support

2015-02-04 Thread Bin Meng
Quark SoC has a legacy GPIO block in the legacy bridge (D0:F31), which is just the same one found in other x86 chipset. Since we programmed the GPIO register block base address, we should be able to enable the GPIO support on Intel Galileo board. Signed-off-by: Bin Meng bmeng...@gmail.com ---

Re: [U-Boot] [PATCH V2 00/13] common lcd refactor

2015-02-04 Thread Bo Shen
Hi Nikita Kiryanov, On 02/03/2015 07:32 PM, Nikita Kiryanov wrote: This series is part of my ongoing efforts to cleanup common/lcd code (and at some point merge it with the CONFIG_VIDEO code). This series focuses on eliminating platform specific #defines from lcd.c code, and then adds a few

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Michal Simek
Hi, On 02/04/2015 06:48 AM, Graeme Russ wrote: Hi Simon, Maybe I asked this before, but when can we remove CONFIG_NEEDS_MANUAL_RELOC? What platforms need it? A quick grep yields a global define of CONFIG_NEEDS_MANUAL_RELOC for avr32, m68k, nds32, and sparc + Microblaze to move to

Re: [U-Boot] [PATCH] ARM: at91: at91sam9rlek: add hush parser to defconfig

2015-02-04 Thread Josh Wu
On 2/4/2015 1:10 PM, Bo Shen wrote: Hi Josh, On 02/03/2015 06:19 PM, Josh Wu wrote: HUSH parser will handle the variable easier. That will be helpful for write a complicated U-Boot commands or varaibles. You are on the way to Kconfig. :) Yep. Seems a long way to go ;-) Thanks.

[U-Boot] [PATCH 4/5] arm: spl: Provide for a board-specific loader

2015-02-04 Thread Simon Glass
Some boards have a special way of loading U-Boot that does not fit with the existing SPL code. For example sunxi uses an 'FEL' mode where U-Boot is loaded over USB. Add a CONFIG option and boot mode for this. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/include/asm/spl.h | 4

[U-Boot] [PATCH 5/5] RFC: sunxi: WIP FEL support

2015-02-04 Thread Simon Glass
(What does FEL stand for?) This is an attempt to make sunxi's FEL code fit with the normal U-Boot boot sequence instead of creating its own. Most of the FEL special-case code is removed, although I may have gone too far with my changes to generate a u-boot-sunxi-with-spl.bin file even when FEL

[U-Boot] [PATCH] ARM: at91: sama5d4: display the U-Boot version on LCD

2015-02-04 Thread Josh Wu
This patch will display the U-Boot version on LCD. Signed-off-by: Josh Wu josh...@atmel.com --- board/atmel/sama5d4_xplained/sama5d4_xplained.c | 2 ++ board/atmel/sama5d4ek/sama5d4ek.c | 2 ++ 2 files changed, 4 insertions(+) diff --git

Re: [U-Boot] [PATCH] ARM: at91: at91sam9rlek: add hush parser to defconfig

2015-02-04 Thread Bo Shen
Hi Josh, On 02/03/2015 06:19 PM, Josh Wu wrote: HUSH parser will handle the variable easier. That will be helpful for write a complicated U-Boot commands or varaibles. You are on the way to Kconfig. :) Thanks. Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Bo Shen voice.s...@atmel.com

Re: [U-Boot] [PATCH v2 1/5] microblaze: Move architecture to use generic board init

2015-02-04 Thread Simon Glass
Hi Michal, On 3 February 2015 at 02:26, Michal Simek michal.si...@xilinx.com wrote: Hi Simon, On 02/03/2015 12:58 AM, Simon Glass wrote: Hi Michal, On 2 February 2015 at 08:46, Michal Simek michal.si...@xilinx.com wrote: Compile code with -fPIC to get GOT. Do not build SPL with fPIC

Re: [U-Boot] [PATCH v5 7/7] Exynos: Clock: Cleanup soc_get_periph_rate

2015-02-04 Thread Joonyoung Shim
Hi Akshay, On 02/03/2015 05:27 PM, Akshay Saraswat wrote: Cleaning up soc_get_periph_rate to make the logic easy to comprehend. Could you give more detailed description? Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v4: - New patch.

Re: [U-Boot] [PATCH v5 0/7] Exynos5: Fix warnings and enrich clock_get_periph_rate

2015-02-04 Thread Joonyoung Shim
Hi, On 02/03/2015 05:26 PM, Akshay Saraswat wrote: This patch series does following changes - 1. Removing compiler warnings for clock_get_periph_rate. 2. Adding and enabling support for Exynos542x in clock_get_periph_rate. 3. Replacing peripheral specific function calls with

Re: [U-Boot] [PATCH] ARM: at91: sama5d4: display the U-Boot version on LCD

2015-02-04 Thread Bo Shen
Hi Josh, On 02/04/2015 11:03 AM, Josh Wu wrote: This patch will display the U-Boot version on LCD. To be frankly, I have no idea what should be put on LCD to display. No objection for this patch. Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Bo Shen voice.s...@atmel.com ---

[U-Boot] [PATCH v2 2/2] cmd_fdt: Print the control fdt in terms of virtual memory

2015-02-04 Thread Joe Hershberger
If you want to inspect the control device tree using the fdt command, the fdt address -c command previously unhelpfully printed the phys memory address of the device tree. That address could not then be used to set the fdt address for inspection. Changed the resulting print to one that can be

Re: [U-Boot] [PATCH 2/9] sunxi: Move SPL s_init() code to board_init_f()

2015-02-04 Thread Simon Glass
Hi Siarhei, On 3 February 2015 at 20:23, Simon Glass s...@chromium.org wrote: Hi Siarhei, On 3 February 2015 at 18:58, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Tue, 3 Feb 2015 17:55:52 -0700 Simon Glass s...@chromium.org wrote: Hi, On 2 February 2015 at 22:29, Simon Glass

Re: [U-Boot] [PATCH 2/5] arm: Allow reset init to be controlled

2015-02-04 Thread Albert ARIBAUD
Hello Simon, On Tue, 3 Feb 2015 21:18:51 -0700, Simon Glass s...@chromium.org wrote: Some boards want to skip the normal reset init. For example OMAP4 SPL does not want to touch VBAR and many boards don't want to set up CP15. Provide a return value from save_boot_params() which allows the

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-04 Thread Albert ARIBAUD
Hello Tom, On Mon, 2 Feb 2015 13:56:57 -0500, Tom Rini tr...@ti.com wrote: And (and this is being split into different email threads, sigh), it would be good, possibly, if we have something that means very early init things, but we can be written in C. Very early -- and early too, BTW -- is

[U-Boot] [PATCH 3/5] arm: Allow lr to be saved by board code

2015-02-04 Thread Simon Glass
The link register value can be required on some boards (e.g. FEL mode on sunxi) so stash it to r4 before jumping to save_boot_params(). Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/start.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/armv7/start.S

Re: [U-Boot] [PATCH 2/9] sunxi: Move SPL s_init() code to board_init_f()

2015-02-04 Thread Simon Glass
Hi Siarhei, On 3 February 2015 at 18:58, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Tue, 3 Feb 2015 17:55:52 -0700 Simon Glass s...@chromium.org wrote: Hi, On 2 February 2015 at 22:29, Simon Glass s...@chromium.org wrote: Hi, On 2 February 2015 at 01:07, Hans de Goede

Re: [U-Boot] [PATCH V2 00/13] common lcd refactor

2015-02-04 Thread Josh Wu
Hi, Nikita On 2/3/2015 7:32 PM, Nikita Kiryanov wrote: This series is part of my ongoing efforts to cleanup common/lcd code (and at some point merge it with the CONFIG_VIDEO code). This series focuses on eliminating platform specific #defines from lcd.c code, and then adds a few platform

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Masahiro Yamada
Hi Michal, On Tue, 3 Feb 2015 10:11:39 +0100 Michal Simek michal.si...@xilinx.com wrote: Hi Simon, On 02/03/2015 03:02 AM, Masahiro Yamada wrote: Hi. On Mon, 2 Feb 2015 16:57:15 -0700 Simon Glass s...@chromium.org wrote: Hi Michal, On 2 February 2015 at 08:31, Michal

[U-Boot] [PATCH 2/5] arm: Allow reset init to be controlled

2015-02-04 Thread Simon Glass
Some boards want to skip the normal reset init. For example OMAP4 SPL does not want to touch VBAR and many boards don't want to set up CP15. Provide a return value from save_boot_params() which allows the board to indicate what reset processing should be done. Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 2/9] sunxi: Move SPL s_init() code to board_init_f()

2015-02-04 Thread Siarhei Siamashka
On Tue, 3 Feb 2015 17:55:52 -0700 Simon Glass s...@chromium.org wrote: Hi, On 2 February 2015 at 22:29, Simon Glass s...@chromium.org wrote: Hi, On 2 February 2015 at 01:07, Hans de Goede hdego...@redhat.com wrote: Hi Simon, Siarhei, On 01-02-15 21:59, Simon Glass wrote: Hi

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Graeme Russ
Hi Simon, Maybe I asked this before, but when can we remove CONFIG_NEEDS_MANUAL_RELOC? What platforms need it? A quick grep yields a global define of CONFIG_NEEDS_MANUAL_RELOC for avr32, m68k, nds32, and sparc Next question is - which of these platforms have toolchains which lack the

Re: [U-Boot] [PATCH] RSA depends on DM

2015-02-04 Thread Robert Moskowitz
Of course there is the meta question of why RSA sig is still being used rather than ECDSA. As a crypto plumber, I occationally wonder why we perpetuate need of large, slow RSA keys over ECC. Perhaps the patent concerns even with RFC 6090. I will shut up and let you to your important work

Re: [U-Boot] How to have U-boot loading U-boot

2015-02-04 Thread Wolfgang Denk
Dear Jean-Christophe Lallemand, In message 9fddf58442d8154dbf9bb9a68ce7ad9cec6e3f1...@chuck.dvlt.local you wrote: I've stumbled upon SPL in my search for a good solution but my impression was that all the image loading stuff and therefore validation was not in there. So add it? So I

[U-Boot] recent tools on FreeBSD

2015-02-04 Thread Jeroen Hofstee
Hello Guilherme / Simon, It seems that commit f86ed6a8d52c99bb2d17d3cac1647edca0c4399c, tools: moved code common to all image tools to a separated module. cause some trouble when building on FreeBSD. /usr/bin/ld:./tools/imagetool.lds:24: syntax error cc: error: linker command failed with exit

Re: [U-Boot] Loop Variable through to user space

2015-02-04 Thread André Schaller
Hello Albert, thanks for the information. Do you mean to pass the value using an environment variable to the boot parameter? How would I approach to set up an environment variable in the SPL? Wouldn't it increase the memory footprint such that the SPL wouldn't fit into SRAM anymore? Best, André

[U-Boot] x86: ACPI support suggestion

2015-02-04 Thread Gabriel Huau
Hi All, I'm currently thinking on how to integrate the ACPI support in u-boot x86. I've investigated the coreboot implementation. My first thought was to port all the source code over but looking at the source code in more details it doesn't look like an easy option. For example, it involves

Re: [U-Boot] x86: ACPI support suggestion

2015-02-04 Thread Simon Glass
+Bin Hi Gabriel, On 4 February 2015 at 12:22, Gabriel Huau cont...@huau-gabriel.fr wrote: Hi All, I'm currently thinking on how to integrate the ACPI support in u-boot x86. I've investigated the coreboot implementation. My first thought was to port all the source code over but looking at

Re: [U-Boot] [PATCH] RSA depends on DM

2015-02-04 Thread Simon Glass
Hi Chris, On 4 February 2015 at 00:47, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Simon, On Tue, 3 Feb 2015 18:01:49 -0700, Simon Glass s...@chromium.org wrote: Hi Chris, On 3 February 2015 at 17:57, Chris Kuethe chris.kue...@gmail.com wrote: On Tue, Feb 3, 2015 at 4:38 PM,

[U-Boot] [PATCH] imx: don't clobber reset cause

2015-02-04 Thread Eric Nelson
The cause of a reset is generally useful, and shouldn't be blindly cleared in the process of displaying it as a part of the boot announcement. If a particular system wants to clear it out, this should be done later after there's an opportunity for code or boot commands to read the value.

Re: [U-Boot] [PATCH v2] armv8/vexpress64: make multientry conditional

2015-02-04 Thread FengHua
hi Linus, The following is some advice about the multi entry patch. While the Freescale ARMv8 board LS2085A will enter U-Boot both on a master and a secondary (slave) CPU, this is not the common behaviour on ARMv8 platforms. The norm is that U-Boot is entered from the master

Re: [U-Boot] [PATCH 4/6] x86: Add SPI support to quark/galileo

2015-02-04 Thread Simon Glass
On 4 February 2015 at 01:26, Bin Meng bmeng...@gmail.com wrote: The Quark SoC contains a legacy SPI controller in the legacy bridge which is ICH7 compatible. Like Tunnel Creek and BayTrail, the BIOS control register offset in the ICH SPI driver is wrong for the Quark SoC too,

Re: [U-Boot] [PATCH 3/6] x86: pci: Add pci ids for Quark SoC

2015-02-04 Thread Simon Glass
On 4 February 2015 at 01:26, Bin Meng bmeng...@gmail.com wrote: Add pci ids for Intel Quark SoC. Signed-off-by: Bin Meng bmeng...@gmail.com --- include/pci_ids.h | 4 1 file changed, 4 insertions(+) Acked-by: Simon Glass s...@chromium.org

Re: [U-Boot] [PATCH 6/6] x86: Add Intel Galileo instructions in README.x86

2015-02-04 Thread Simon Glass
On 4 February 2015 at 01:26, Bin Meng bmeng...@gmail.com wrote: Add some instructions about building U-Boot for Intel Galileo board. Signed-off-by: Bin Meng bmeng...@gmail.com --- doc/README.x86 | 24 1 file changed, 20 insertions(+), 4 deletions(-) Acked-by:

Re: [U-Boot] [PATCH 1/6] x86: quark: Initialize non-standard BARs

2015-02-04 Thread Simon Glass
On 4 February 2015 at 01:26, Bin Meng bmeng...@gmail.com wrote: Quark SoC has some non-standard BARs (excluding PCI standard BARs) which need be initialized with suggested values. This includes GPIO, WDT, RCBA, PCIe ECAM and some ACPI register block base addresses. Signed-off-by: Bin Meng

Re: [U-Boot] [PATCH 2/6] x86: galileo: Add GPIO support

2015-02-04 Thread Simon Glass
On 4 February 2015 at 01:26, Bin Meng bmeng...@gmail.com wrote: Quark SoC has a legacy GPIO block in the legacy bridge (D0:F31), which is just the same one found in other x86 chipset. Since we programmed the GPIO register block base address, we should be able to enable the GPIO support on

Re: [U-Boot] [PATCH] RSA depends on DM

2015-02-04 Thread Simon Glass
On 4 February 2015 at 20:16, Chris Kuethe chris.kue...@gmail.com wrote: Discovered while experimenting with signature checking on vexpress which doesn't typically use DM. --- Kconfig | 1 + 1 file changed, 1 insertion(+) Acked-by: Simon Glass s...@chromium.org

Re: [U-Boot] [PATCH 5/6] x86: Add SD/MMC support to quark/galileo

2015-02-04 Thread Simon Glass
On 4 February 2015 at 01:26, Bin Meng bmeng...@gmail.com wrote: Intel Galileo board has a microSD slot which is routed from Quark SoC SDIO controller. Enable SD/MMC support so that we can use an SD card. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/cpu/quark/quark.c | 11

Re: [U-Boot] recent tools on FreeBSD

2015-02-04 Thread Simon Glass
Hi Jeroen, On 4 February 2015 at 12:37, Jeroen Hofstee jer...@myspectrum.nl wrote: Hello Guilherme / Simon, It seems that commit f86ed6a8d52c99bb2d17d3cac1647edca0c4399c, tools: moved code common to all image tools to a separated module. cause some trouble when building on FreeBSD.

[U-Boot] [PATCH v3 1/2] cmd_fdt: Actually fix fdt command in sandbox

2015-02-04 Thread Joe Hershberger
Commit 90bac29a76bc8d649b41a55f2786c0abef9bb2c1 claims to fix this bug that was introduced in commit a92fd6577ea17751ead9b50243e3c562125cf581 but doesn't actually make the change that the commit message describes. Actually fix the bug this time. Signed-off-by: Joe Hershberger

[U-Boot] [PATCH v3 2/2] cmd_fdt: Print the control fdt in terms of virtual memory

2015-02-04 Thread Joe Hershberger
If you want to inspect the control device tree using the fdt command, the fdt address -c command previously unhelpfully printed the phys memory address of the device tree. That address could not then be used to set the fdt address for inspection. Changed the resulting print to one that can be

Re: [U-Boot] [RFC PATCH 6/9] x86: quark: Enable the Memory Reference Code build

2015-02-04 Thread Bin Meng
Hi Simon, On Thu, Feb 5, 2015 at 12:25 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 3 February 2015 at 04:45, Bin Meng bmeng...@gmail.com wrote: Turn on the Memory Reference code build in the quark Makefile. Signed-off-by: Bin Meng bmeng...@gmail.com ---

Re: [U-Boot] [RFC PATCH 9/9] x86: quark: Call MRC in dram_init()

2015-02-04 Thread Bin Meng
Hi Simon, On Thu, Feb 5, 2015 at 12:25 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 3 February 2015 at 04:45, Bin Meng bmeng...@gmail.com wrote: Now that we have added Quark MRC codes, call MRC in dram_init() so that DRAM can be initialized on a Quark based board. Signed-off-by: Bin

Re: [U-Boot] [PATCH v2] omap3: add support for QUIPOS Cairo board.

2015-02-04 Thread Simon Glass
Hi Albert, On 3 February 2015 at 10:13, Albert ARIBAUD (3ADEV) albert.arib...@3adev.fr wrote: This patch extends OMAP3 support for AM/DM37xx and introduces the AM3703-based Quipos Cairo board. Signed-off-by: Albert ARIBAUD (3ADEV) albert.arib...@3adev.fr --- NOTES: Two checkpatch

Re: [U-Boot] [PATCH 1/5] arm: Use r2 instead of r0 in start.S

2015-02-04 Thread Simon Glass
Hi Albert, On 4 February 2015 at 01:57, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Simon, (sorry for the dupe) On Tue, 3 Feb 2015 21:18:50 -0700, Simon Glass s...@chromium.org wrote: Allow r0 to be used for other purposes in this file. These purposes should be made clear --

Re: [U-Boot] [PATCH 3/5] arm: Allow lr to be saved by board code

2015-02-04 Thread Simon Glass
Hi Albert, On 4 February 2015 at 01:59, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Simon, On Tue, 3 Feb 2015 21:18:52 -0700, Simon Glass s...@chromium.org wrote: The link register value can be required on some boards (e.g. FEL mode on sunxi) so stash it to r4 before jumping to

Re: [U-Boot] [PATCH 2/5] arm: Allow reset init to be controlled

2015-02-04 Thread Simon Glass
Hi Albert, On 4 February 2015 at 01:50, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Simon, On Tue, 3 Feb 2015 21:18:51 -0700, Simon Glass s...@chromium.org wrote: Some boards want to skip the normal reset init. For example OMAP4 SPL does not want to touch VBAR and many boards

Re: [U-Boot] [PATCH v2 1/2] cmd_fdt: Actually fix fdt command in sandbox

2015-02-04 Thread Simon Glass
On 3 February 2015 at 18:04, Joe Hershberger joe.hershber...@ni.com wrote: Commit 90bac29a76bc8d649b41a55f2786c0abef9bb2c1 claims to fix this bug that was introduced in commit a92fd6577ea17751ead9b50243e3c562125cf581 but doesn't actually make the change that the commit message describes.

Re: [U-Boot] [PATCH v2 2/2] cmd_fdt: Print the control fdt in terms of virtual memory

2015-02-04 Thread Simon Glass
On 3 February 2015 at 18:04, Joe Hershberger joe.hershber...@ni.com wrote: If you want to inspect the control device tree using the fdt command, the fdt address -c command previously unhelpfully printed the phys memory address of the device tree. That address could not then be used to set the

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-02-04 Thread Simon Glass
Hi Albert, On 4 February 2015 at 01:48, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Tom, On Mon, 2 Feb 2015 13:56:57 -0500, Tom Rini tr...@ti.com wrote: And (and this is being split into different email threads, sigh), it would be good, possibly, if we have something that means

Re: [U-Boot] [PATCH 2/4] malloc_simple: Allow malloc_simple to be used with non stack RAM

2015-02-04 Thread Simon Glass
On 4 February 2015 at 05:05, Hans de Goede hdego...@redhat.com wrote: Before this patch malloc_simple would always allocate a chunk of RAM from the stack. This commit adds a CONFIG_SYS_MALLOC_F_BASE define, which when set directly specifies the memory address to use for the heap with

Re: [U-Boot] [PATCH 1/4] sunxi: dram: Un-inline dram helper functions

2015-02-04 Thread Simon Glass
On 4 February 2015 at 05:05, Hans de Goede hdego...@redhat.com wrote: Move the dram helper functions to a separate C file, rather then having them as inline helpers in dram.h. This saves 144 bytes in the .text segment for sun6i builds. Signed-off-by: Hans de Goede hdego...@redhat.com ---

Re: [U-Boot] [PATCH 5/5] RFC: sunxi: WIP FEL support

2015-02-04 Thread Simon Glass
Hi Hans, On 4 February 2015 at 01:47, Hans de Goede hdego...@redhat.com wrote: Hi, On 04-02-15 05:18, Simon Glass wrote: (What does FEL stand for?) This is an attempt to make sunxi's FEL code fit with the normal U-Boot boot sequence instead of creating its own. Most of the FEL

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Simon Glass
Hi Michal, On 3 February 2015 at 17:40, Simon Glass s...@chromium.org wrote: Hi Michal, On 3 February 2015 at 02:11, Michal Simek michal.si...@xilinx.com wrote: Hi Simon, On 02/03/2015 03:02 AM, Masahiro Yamada wrote: Hi. On Mon, 2 Feb 2015 16:57:15 -0700 Simon Glass s...@chromium.org

Re: [U-Boot] [PATCH 3/4] malloc_simple: Return NULL on malloc failure rather then calling panic()

2015-02-04 Thread Simon Glass
On 4 February 2015 at 05:05, Hans de Goede hdego...@redhat.com wrote: All callers of malloc should already do error checking, and may even be able to continue without the alloc succeeding. Moreover, common/malloc_simple.c is the only user of .rodata.str1.1 in common/built-in.o when building

  1   2   >