Re: [U-Boot] [PATCH] arm: socfpga: reset: FIX address of tstscratch register

2015-11-13 Thread Philipp Rosenberger
Hi Marek, On 13.11.2015 08:13, Marek Vasut wrote: > On Friday, November 13, 2015 at 07:11:18 AM, Stefan Roese wrote: >> Hi Philipp, >> >> On 12.11.2015 18:23, Philipp Rosenberger wrote: >>> The Cyclone V Hard Processor System Technical Reference Manual in the >>> chapter about the Reset Manager Mo

Re: [U-Boot] [PATCH] arm: socfpga: reset: FIX address of tstscratch register

2015-11-13 Thread Marek Vasut
On Friday, November 13, 2015 at 09:02:43 AM, Philipp Rosenberger wrote: > Hi Marek, > > On 13.11.2015 08:13, Marek Vasut wrote: > > On Friday, November 13, 2015 at 07:11:18 AM, Stefan Roese wrote: > >> Hi Philipp, > >> > >> On 12.11.2015 18:23, Philipp Rosenberger wrote: > >>> The Cyclone V Hard

[U-Boot] [PATCH v3 02/11] dm: timer: Implement pre_probe()

2015-11-13 Thread Bin Meng
Every timer device needs to have a valid clock frequency and it can be specified in the device tree. Use pre_probe() to get this in the timer uclass driver. Signed-off-by: Bin Meng Acked-by: Thomas Chou Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/timer/timer-ucl

[U-Boot] [PATCH v3 00/11] dm: timer: x86: 64-bit counter support and tsc timer dm conversion

2015-11-13 Thread Bin Meng
This series enhances timer uclass driver to support 64-bit counter value, and convert tsc timer to driver model to be used by all x86 boards. As a result of dm conversion, the TSC_CALIBRATION_BYPASS Kconfig option is no longer needed, and the TSC frequency can be specified in the board device tree

[U-Boot] [PATCH v3 03/11] timer: altera: Remove the codes to get clock frequency

2015-11-13 Thread Bin Meng
Since we have timer uclass to get clock frequency for us, remove the custom version in the altera timer driver. Signed-off-by: Bin Meng Acked-by: Thomas Chou Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/timer/altera_timer.c | 6 -- 1 file changed, 6 deletions

[U-Boot] [PATCH v3 05/11] dm: timer: Support 64-bit counter

2015-11-13 Thread Bin Meng
There are timers with a 64-bit counter value but current timer uclass driver assumes a 32-bit one. Modify timer_get_count() to ask timer driver to always return a 64-bit counter value, and provide an inline helper function timer_conv_64() to handle the 32-bit/64-bit conversion automatically. Signe

[U-Boot] [PATCH v3 01/11] dm: timer: Fix several nits

2015-11-13 Thread Bin Meng
This changes 'Timer' to 'timer' at several places. Signed-off-by: Bin Meng Acked-by: Thomas Chou Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - Rebase on u-boot-dm/master - Change 'Timer' to 'timer' in the sandbox timer Kconfig drivers/timer/Kconfig| 12 ++

[U-Boot] [PATCH v3 04/11] timer: sandbox: Use device tree to pass the clock frequency

2015-11-13 Thread Bin Meng
We should use device tree to pass the clock frequency of the timer instead of hardcoded in the driver codes. Signed-off-by: Bin Meng --- Changes in v3: None Changes in v2: - New patch to use device tree to pass the clock frequency arch/sandbox/dts/sandbox.dts | 1 + drivers/timer/sandbox_tim

[U-Boot] [PATCH v3 06/11] x86: Reomve MIN_PORT80_KCLOCKS_DELAY

2015-11-13 Thread Bin Meng
This is not referenced anywhere. Remove it, as well as tsc_base_kclocks and tsc_prev in the global data. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/cpu/cpu.c | 18 -- arch/x86/include/asm/global_data.h |

[U-Boot] [PATCH v3 11/11] x86: tsc: Move tsc_timer.c to drivers/timer

2015-11-13 Thread Bin Meng
To group all dm timer drivers together, move tsc timer to drivers/timer directory. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/lib/Makefile | 1 - drivers/timer/Kconfig | 7 +++ drivers/tim

[U-Boot] [PATCH v3 07/11] x86: tsc: Use notrace from

2015-11-13 Thread Bin Meng
Replace __attribute__((no_instrument_function)) with notrace from . Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/lib/tsc_timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/lib/tsc_timer.c b/arch/x86/

[U-Boot] [PATCH v3 08/11] x86: tsc: Add driver model timer support

2015-11-13 Thread Bin Meng
This adds driver model timer support to x86 tsc timer driver. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/lib/tsc_timer.c | 65 1 file changed, 65 insertions(+) diff --git a/arch/x86/lib/t

[U-Boot] [PATCH v3 09/11] x86: Convert to use driver model timer

2015-11-13 Thread Bin Meng
Convert all x86 boards to use driver model tsc timer. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: - Really remove "counter-64bit" property from tsc_timer.dtsi Changes in v2: - Remove "counter-64bit" property arch/x86/cpu/baytrail/valleyview.c | 3 --- arch/x86/cpu/cor

[U-Boot] [PATCH v3 10/11] x86: tsc: Remove legacy timer codes

2015-11-13 Thread Bin Meng
Now that we have converted all x86 boards to use driver model timer, remove these legacy timer codes in the tsc driver. Note this also removes the TSC_CALIBRATION_BYPASS Kconfig option, as it is not needed with driver model. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: None

Re: [U-Boot] [PATCH v2] Fix board init code to use a valid C runtime environment

2015-11-13 Thread Thomas Chou
Hi Albert, On 2015年11月13日 14:41, Albert ARIBAUD wrote: Hello Thomas, On Thu, 12 Nov 2015 13:59:28 +0800, Thomas Chou wrote: Hi Albert, - /* Update stack- and frame-pointers */ - mov sp, r2 - mov fp, sp Just a sec here on second thought. I understand the 'mov sp

Re: [U-Boot] [PATCH V2 08/12] board: mpl: Move common headers to board-common directory

2015-11-13 Thread ELSOFT AG
Hello Nishanth Menon wrote: > Header files can be located in a generic location without needing to > reference them with ../common/ > > board/mpl/common/{ => include/board-common}/common_util.h (100%) > rename board/mpl/common/{ => include/board-common}/isa.h (100%) Correct me if I'm missing so

Re: [U-Boot] [U-Boot, v2] vexpress64: use 2nd DRAM bank only on juno

2015-11-13 Thread Ryan Harkin
Hi Tom, Thanks for coming back to this. On 12 November 2015 at 20:58, Tom Rini wrote: > On Mon, Oct 26, 2015 at 11:00:22AM +, Ryan Harkin wrote: > >> This patch makes the 2nd DRAM bank available on Juno only and not on >> other vexpress64 targets, eg. the FVP models. >> >> The commit below a

[U-Boot] [PATCH v2 01/12] sparc: Fix broken files during license changes

2015-11-13 Thread Francois Retief
From: Francois Retief Fixes broken search and replaced license changes in files cpu/leon3/start.S and include/asm/winmacro.h from commit 1a4596601fd395f3afb8f82f3f840c5e00bdd57a Signed-off-by: Francois Retief --- arch/sparc/cpu/leon3/start.S | 3 - arch/sparc/include/asm/winmacro.h |

[U-Boot] [PATCH v2 00/12] sparc: Updates to SPARC architecture in preperation for generic board

2015-11-13 Thread Francois Retief
This patch series is a backlog of preparation work for upcomming generic board changes. I first want to get these reviewed and submitted to mainline before sending out more patches. Daniel Hellstrom (4): sparc: leon3: Reimplemented AMBA Plug&Play scanning routines. sparc: leon3: Added memor

[U-Boot] [PATCH v2 02/12] sparc: Update the maintainer for SPARC architecture

2015-11-13 Thread Francois Retief
Signed-off-by: Francois Retief --- MAINTAINERS| 2 +- doc/git-mailrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index bf60c67..b3a45cc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -370,7 +370,7 @@ T: git git://git.denx.de/u-boot-sh.git

[U-Boot] [PATCH v2 03/12] sparc: Add -mcpu= compiler flags for LEON2/LEON3

2015-11-13 Thread Francois Retief
Signed-off-by: Francois Retief --- arch/sparc/config.mk | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/sparc/config.mk b/arch/sparc/config.mk index d615f29..43faad4 100644 --- a/arch/sparc/config.mk +++ b/arch/sparc/config.mk @@ -1,19 +1,25 @@ # -# (C)

[U-Boot] [PATCH v2 04/12] sparc: Update LEON serial drivers to use readl/writel macros

2015-11-13 Thread Francois Retief
Update the LEON2/3 serial driver to make use of the readl and writel macros as well as the WATCHDOG_RESET() macro. Add readl/writel and friends to the asm/io.h file. Introduce the gd->arch.uart variable to store register address. Lastly, remove baudrate scaler macro variables from board config.

[U-Boot] [PATCH v2 05/12] sparc: Update GRSIM board with memory settings for TSIM eval

2015-11-13 Thread Francois Retief
Update the GRSIM board with the memory settings for the evaluation version of TSIM. This free version of TSIM is used for testing. Signed-off-by: Francois Retief --- configs/grsim_defconfig | 1 + include/configs/grsim.h | 57 ++--- 2 files changed,

[U-Boot] [PATCH v2 06/12] sparc: Update startup code to take PIC mode into account

2015-11-13 Thread Francois Retief
Signed-off-by: Francois Retief --- arch/sparc/cpu/leon2/start.S | 60 ++-- arch/sparc/cpu/leon3/start.S | 60 ++-- 2 files changed, 82 insertions(+), 38 deletions(-) diff --git a/arch/sparc/cpu/leon2/start.S b/arch/

[U-Boot] [PATCH v2 08/12] sparc: Kconfig: Move the CMD_AMBAPP command to Kconfig

2015-11-13 Thread Francois Retief
Add an initr function in the board_r.c file for the AMBA Plug&Play command. Add a Kconfig entry for the ambapp command and remove all CONFIG_CMD_AMBAPP defines from the board configuration headers. Add a Kconfig entry to display the AMBA Plug&Play information on startup. This option is off by defa

[U-Boot] [PATCH v2 09/12] sparc: leon3: Added memory controller initialization using new AMBA PnP routines.

2015-11-13 Thread Francois Retief
From: Daniel Hellstrom Signed-off-by: Daniel Hellstrom Signed-off-by: Francois Retief --- arch/sparc/cpu/leon3/Makefile | 2 +- arch/sparc/cpu/leon3/memcfg.c | 237 +++ arch/sparc/cpu/leon3/memcfg.h | 90 ++ arch/sparc/cpu/leon3/memcf

[U-Boot] [PATCH v2 11/12] sparc: ambapp: Removed warning and unnecessary printout.

2015-11-13 Thread Francois Retief
From: Daniel Hellstrom Signed-off-by: Daniel Hellstrom Signed-off-by: Francois Retief --- arch/sparc/cpu/leon3/ambapp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sparc/cpu/leon3/ambapp.c b/arch/sparc/cpu/leon3/ambapp.c index bb81338..b8ac05f 100644 --- a/arch/

[U-Boot] [PATCH v2 12/12] sparc: leon3: Add debug_uart support to LEON3 serial driver.

2015-11-13 Thread Francois Retief
Signed-off-by: Francois Retief --- arch/sparc/cpu/leon3/cpu_init.c | 5 - arch/sparc/cpu/leon3/serial.c | 27 ++- configs/grsim_defconfig | 4 drivers/serial/Kconfig | 8 4 files changed, 42 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v2 10/12] sparc: leon3: Moved GRLIB core header files to common include/grlib directory

2015-11-13 Thread Francois Retief
From: Daniel Hellstrom Signed-off-by: Daniel Hellstrom Signed-off-by: Francois Retief --- arch/sparc/cpu/leon3/cpu_init.c | 10 ++- arch/sparc/cpu/leon3/interrupts.c | 7 +- arch/sparc/cpu/leon3/prom.c | 7 +- arch/sparc/cpu/leon3/serial.c | 13 ++-- common/cmd_ambapp.c

[U-Boot] [PATCH] armv8: ls2080a: Define CONFIG_ENV_OVERWRITE to overwrite serial and ethaddr

2015-11-13 Thread Alison Wang
As the environment variables "serial#" and "ethaddr" need to be overwriten by the users, CONFIG_ENV_OVERWRITE is defined to disable the write protection. Anybody can change or delete these parameters. Signed-off-by: Alison Wang --- include/configs/ls2085a_common.h | 3 +++ 1 file changed, 3 inse

Re: [U-Boot] [PATCH v2] Fix board init code to use a valid C runtime environment

2015-11-13 Thread Bin Meng
Hi Albert, On Wed, Nov 11, 2015 at 2:30 AM, Albert ARIBAUD wrote: > board_init_f_mem() alters the C runtime environment's > stack it ls actually already using. This is not a valid > C runtime environment. > > Split board_init_f_mem into C functions which do not > alter their own stack and therefo

Re: [U-Boot] [PATCH v7 21/21] sf: Add SPI NOR protection mechanism

2015-11-13 Thread Bin Meng
On Thu, Nov 12, 2015 at 12:25 AM, Jagan Teki wrote: > On 11 November 2015 at 15:13, Fabio Estevam wrote: >> On Wed, Nov 11, 2015 at 12:56 AM, Simon Glass wrote: >> >>> It crashes reading the environment: >>> >>> U-Boot 2015.10-00544-gcad0499 (Nov 10 2015 - 17:06:00 -0700) >>> >>> CPU: Intel(R)

Re: [U-Boot] [PATCH v3 00/11] dm: timer: x86: 64-bit counter support and tsc timer dm conversion

2015-11-13 Thread Thomas Chou
Hi Bin, On 2015年11月13日 16:11, Bin Meng wrote: This series enhances timer uclass driver to support 64-bit counter value, and convert tsc timer to driver model to be used by all x86 boards. As a result of dm conversion, the TSC_CALIBRATION_BYPASS Kconfig option is no longer needed, and the TSC fr

[U-Boot] [PATCH] imx6: fix warnings due to switch to distro environment

2015-11-13 Thread Stefano Babic
wandboard and mx6cuboxi have warnings because BOOT_DELAY is defined twice. Signed-off-by: Stefano Babic CC: Vagrant Cascadian CC: Otavio Salvador CC: Fabio Estevam --- include/configs/mx6cuboxi.h | 2 +- include/configs/wandboard.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) dif

[U-Boot] [PATCH] PCI: fix search for suitable memory region

2015-11-13 Thread Andre Przywara
Binary ANDing a value with 0 and comparing it against 0 always yields true, I guess that's not intended here. Use the proper mask value for the memory region type bit. Signed-off-by: Andre Przywara --- drivers/pci/pci_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

Re: [U-Boot] [PATCH V2 07/12] board: LaCie: Move common headers to board-common directory

2015-11-13 Thread Simon Guinot
Hi Nishanth, On Thu, Nov 12, 2015 at 11:43:37PM -0600, Nishanth Menon wrote: > Header files can be located in a generic location without > needing to reference them with ../common/ > > Generated with the following script > > #!/bin/bash > vendor=board/LaCie > common=$vendor/common > > cfiles=`

Re: [U-Boot] [PATCH] PCI: fix search for suitable memory region

2015-11-13 Thread Bin Meng
Hi Andre, On Fri, Nov 13, 2015 at 6:06 PM, Andre Przywara wrote: > Binary ANDing a value with 0 and comparing it against 0 always > yields true, I guess that's not intended here. > Use the proper mask value for the memory region type bit. > > Signed-off-by: Andre Przywara > --- > drivers/pci/pc

Re: [U-Boot] [PATCH v7 21/21] sf: Add SPI NOR protection mechanism

2015-11-13 Thread Bin Meng
Hi, On Wed, Nov 11, 2015 at 10:04 PM, Fabio Estevam wrote: > On Wed, Nov 11, 2015 at 12:56 AM, Simon Glass wrote: >> Hi Fabio, >> >> On 10 November 2015 at 16:51, Fabio Estevam wrote: >>> >>> Hi Simon, >>> >>> On Tue, Nov 10, 2015 at 10:09 PM, Simon Glass wrote: >>> >>> > This patch breaks chr

[U-Boot] [PATCH] sf: Fix NULL pointer exception for flashes without lock methods

2015-11-13 Thread Bin Meng
commit c3c016c "sf: Add SPI NOR protection mechanism" introduced flash_lock()/flash_unlock()/flash_is_locked() methods for SPI flash, but not every flash driver supplies these. We should test these methods against NULL before actually calling them. Signed-off-by: Bin Meng --- drivers/mtd/spi/sf

Re: [U-Boot] [PATCH] sf: Fix NULL pointer exception for flashes without lock methods

2015-11-13 Thread Fabio Estevam
On Fri, Nov 13, 2015 at 8:46 AM, Bin Meng wrote: > commit c3c016c "sf: Add SPI NOR protection mechanism" introduced > flash_lock()/flash_unlock()/flash_is_locked() methods for SPI flash, > but not every flash driver supplies these. We should test these > methods against NULL before actually callin

Re: [U-Boot] [PATCH] PCI: fix search for suitable memory region

2015-11-13 Thread Andre Przywara
Hi Bin, On 13/11/15 10:34, Bin Meng wrote: > Hi Andre, > > On Fri, Nov 13, 2015 at 6:06 PM, Andre Przywara > wrote: >> Binary ANDing a value with 0 and comparing it against 0 always >> yields true, I guess that's not intended here. >> Use the proper mask value for the memory region type bit. >>

[U-Boot] [PATCH] Juno: don't print PCI debug information by default

2015-11-13 Thread Andre Przywara
On a Juno r1 the PCI controller init routine outputs the rather boring ATR entry information. Do this only with DEBUG defined to avoid cluttering the user's terminal. Signed-off-by: Andre Przywara --- board/armltd/vexpress64/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: [U-Boot] [PATCH v2] Fix board init code to use a valid C runtime environment

2015-11-13 Thread Albert ARIBAUD
Hello Bin, On Fri, 13 Nov 2015 17:08:22 +0800, Bin Meng wrote: > Hi Albert, > > > + subl%esp, %eax > > I guess you are confused by the AT&T assembly syntax. This should be: > subl %eax, %esp. > > + subl%esp, %eax > > Ditto. Thanks -- last time I touched Intel assembly was

Re: [U-Boot] mmc erase fails from U-Boot command line

2015-11-13 Thread Palacios, Hector
Hi Fabio, On Thu, 12 Nov 2015 21:56, Fabio Estevam wrote: > Hi Hector and Cliff, > > On Mon, Oct 19, 2015 at 9:06 AM, Hector Palacios > wrote: > >> This issue is reproducible on Freescale's SABRESD on both SD card and eMMC >> with v2015.04. The >> issue has been there always, I believe. Appare

Re: [U-Boot] [PATCH] sf: Fix NULL pointer exception for flashes without lock methods

2015-11-13 Thread Bin Meng
Hi Tom, On Fri, Nov 13, 2015 at 6:49 PM, Fabio Estevam wrote: > On Fri, Nov 13, 2015 at 8:46 AM, Bin Meng wrote: >> commit c3c016c "sf: Add SPI NOR protection mechanism" introduced >> flash_lock()/flash_unlock()/flash_is_locked() methods for SPI flash, >> but not every flash driver supplies thes

Re: [U-Boot] [U-Boot, v2] vexpress64: use 2nd DRAM bank only on juno

2015-11-13 Thread Tom Rini
On Fri, Nov 13, 2015 at 08:26:31AM +, Ryan Harkin wrote: > Hi Tom, > > Thanks for coming back to this. > > On 12 November 2015 at 20:58, Tom Rini wrote: > > On Mon, Oct 26, 2015 at 11:00:22AM +, Ryan Harkin wrote: > > > >> This patch makes the 2nd DRAM bank available on Juno only and not

Re: [U-Boot] [PATCH] sf: Fix NULL pointer exception for flashes without lock methods

2015-11-13 Thread Jagan Teki
On Nov 13, 2015 6:37 PM, "Bin Meng" wrote: > > Hi Tom, > > On Fri, Nov 13, 2015 at 6:49 PM, Fabio Estevam wrote: > > On Fri, Nov 13, 2015 at 8:46 AM, Bin Meng wrote: > >> commit c3c016c "sf: Add SPI NOR protection mechanism" introduced > >> flash_lock()/flash_unlock()/flash_is_locked() methods f

[U-Boot] [PATCH v3 2/3] env_sf: generalize call to spi_flash_free after accesses

2015-11-13 Thread Valentin Longchamp
Some board require spi_flash_free to be called after all the accesses, in order, for instance, to restore the pin multiplexing configuration in the case where the SPI pins are multiplexed. This was done only in env_relocate_spec and not in saveenv. saveenv is thus changed in order to have the same

[U-Boot] [PATCH v3 3/3] km_arm: call 'sf release' in the newenv and update scripts

2015-11-13 Thread Valentin Longchamp
This is necessary to make sure that all the pins used for SPI access, especially the CS, are configured back to the NAND Flash interface. Otherwise, if either newenv or update are called, u-boot cannot access the NAND Flash anymore. Signed-off-by: Valentin Longchamp --- Changes in v3: None Chang

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

2015-11-13 Thread Valentin Longchamp
Some board require spi_flash_free to be called after all the accesses, in order, for instance, to restore the pin multiplexing configuration in the case where the SPI pins are multiplexed. This patch series tries to enhance this. Patch 1 adds spi_flash_free calls to env_sf so that the SPI interfac

[U-Boot] [PATCH v3 1/3] cmd_sf: add 'release' command

2015-11-13 Thread Valentin Longchamp
The release command is the pendant of the probe command. This command allows to call spi_flash_free from the command line. This may be necessary for some boards where sf probe does change the state of the hardware (like with some pin multiplexing changes for instance). Signed-off-by: Valentin Long

Re: [U-Boot] [U-Boot, v2] vexpress64: use 2nd DRAM bank only on juno

2015-11-13 Thread Ryan Harkin
On 13 November 2015 at 13:25, Tom Rini wrote: > On Fri, Nov 13, 2015 at 08:26:31AM +, Ryan Harkin wrote: >> Hi Tom, >> >> Thanks for coming back to this. >> >> On 12 November 2015 at 20:58, Tom Rini wrote: >> > On Mon, Oct 26, 2015 at 11:00:22AM +, Ryan Harkin wrote: >> > >> >> This patch

Re: [U-Boot] [PATCH] vexpress64: compile Juno PCIe conditionally

2015-11-13 Thread Ryan Harkin
Hi Linus, Tom asked for a small change to your patch. Would mind having a look and re-working? Thanks, Ryan. On 21 October 2015 at 14:16, Ryan Harkin wrote: > On 21 October 2015 at 13:50, Tom Rini wrote: >> On Wed, Oct 21, 2015 at 12:00:03PM +0100, Ryan Harkin wrote: >>> On 20 October 2015 at

Re: [U-Boot] [PATCH] vexpress64: compile Juno PCIe conditionally

2015-11-13 Thread Ryan Harkin
[trying again with Linus on the to: list] Hi Linus, Tom asked for a small change to your patch. Would mind having a look and re-working? Thanks, Ryan. On 21 October 2015 at 14:16, Ryan Harkin wrote: > On 21 October 2015 at 13:50, Tom Rini wrote: >> On Wed, Oct 21, 2015 at 12:00:03PM +0100, R

Re: [U-Boot] [PATCH] arc: add stubs for map_physmem() and unmap_physmem()

2015-11-13 Thread Alexey Brodkin
Hi Stephen, On Thu, 2015-11-12 at 16:00 -0700, Stephen Warren wrote: > On 11/12/2015 02:56 PM, Alexey Brodkin wrote: > > Up until now there was no need in those stubs. > > > > But since following commit compilation of U-Boot on ARC is broken: > > commit 7861204c9af7fec1ea9b41541c272516235a6c93 >

Re: [U-Boot] [PATCH] rockchip: Turn on CONFIG_DEBUG_LL for firefly

2015-11-13 Thread Ariel D'Alessandro
Eze, El 12/11/15 a las 19:11, Ezequiel Garcia escribió: > On 12 November 2015 at 18:42, Ariel D'Alessandro > wrote: >> CONFIG_DEBUG_UART is enabled in defconfig, but there's no Low-level >> debugging functions implemented, so build fails because of undefined >> references to `printch' in common/c

[U-Boot] [PATCH 0/4] km_kirkwood: various bugfixes

2015-11-13 Thread Valentin Longchamp
A few bugfixes have been done for the km_kirkwood bards in the last months and this series collects them all to be sumbitted to mainline. Patch 1/4 was already submitted to mainline in [1] and even marked as accepted but the kirkwood maintainer but it was unfortunately never pushed to mainline, so

[U-Boot] [PATCH 4/4] arm/km_kirkwood: fix the #ifdef for KM_COGE5UN dip switch

2015-11-13 Thread Valentin Longchamp
There was a small typo for KM_COGE5UN that resulted in the dip switch not to behave as expected. Signed-off-by: Valentin Longchamp --- board/keymile/km_arm/km_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c

[U-Boot] [PATCH 1/4] arm/km_kirkwood: remove KM_ENV_BUS and use CONFIG_I2C_ENV_EEPROM_BUS

2015-11-13 Thread Valentin Longchamp
KM_ENV_BUS was used for nothing else than an direct assignment to CONFIG_I2C_ENV_EEPROM_BUS. To avoid this, directly use CONFIG_I2C_ENV_EEPROM_BUS instead. Patchwork: http://patchwork.ozlabs.org/patch/399411/ Signed-off-by: Valentin Longchamp --- include/configs/km/km_arm.h | 2 +- include/co

Re: [U-Boot] [PATCH V2 08/12] board: mpl: Move common headers to board-common directory

2015-11-13 Thread Tom Rini
On Fri, Nov 13, 2015 at 09:19:32AM +0100, David Müller (ELSOFT AG) wrote: > Hello > > Nishanth Menon wrote: > > Header files can be located in a generic location without needing to > > reference them with ../common/ > > > > board/mpl/common/{ => include/board-common}/common_util.h (100%) > > ren

[U-Boot] [PATCH 3/4] arm/mgcoge3un: check dip_switch at startup

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck Similar to kmcoge5un we need to check the dip switch at startup connected to the kirkwood at MPP43. If it's set we need to set the actual_bank to zero to boot from SW bank zero. Additional to kmcoge5un we need to check also the pin in misc_init to decide wether we wait for the

[U-Boot] [PATCH 2/4] arm/km: Fix LED configuration for 88E1118R PHY (PIGGY3)

2015-11-13 Thread Valentin Longchamp
From: Tobias Müller Configure PHY LED register for Marvell 88E1118R PHY used on PIGGY3 to match with printed descriptions on PCB Signed-off-by: Tobias Müller Signed-off-by: Valentin Longchamp --- board/keymile/km_arm/km_arm.c | 55 +++ 1 file changed,

Re: [U-Boot] [PATCH V2 07/12] board: LaCie: Move common headers to board-common directory

2015-11-13 Thread Tom Rini
On Fri, Nov 13, 2015 at 11:30:43AM +0100, Simon Guinot wrote: > Hi Nishanth, > > On Thu, Nov 12, 2015 at 11:43:37PM -0600, Nishanth Menon wrote: > > Header files can be located in a generic location without > > needing to reference them with ../common/ > > > > Generated with the following script

[U-Boot] pull-request: u-boot-sparc/series1_v2

2015-11-13 Thread Francois Retief
Hi Tom, Here is that pull request I promised, while I sort out the issues with the email server. The following changes since commit 9ac4fc82071ce346e3885118242ff45d22f69b82: board_init: Change the logic to setup malloc_base (2015-11-12 20:34:07 -0500) are available in the git repository at:

Re: [U-Boot] mmc erase fails from U-Boot command line

2015-11-13 Thread Fabio Estevam
On Fri, Nov 13, 2015 at 10:26 AM, Palacios, Hector wrote: > Could it be a silicon revision issue? > My CPU is i.MX6Q rev1.2. I will try to test this on other sabresd boards next week. Regards, Fabio Estevam ___ U-Boot mailing list U-Boot@lists.denx.d

Re: [U-Boot] pull-request: u-boot-sparc/series1_v2

2015-11-13 Thread Tom Rini
On Fri, Nov 13, 2015 at 02:22:39PM +, Francois Retief wrote: > Hi Tom, > > Here is that pull request I promised, while I sort out the issues with the > email server. > > The following changes since commit 9ac4fc82071ce346e3885118242ff45d22f69b82: > > board_init: Change the logic to setup

[U-Boot] [PATCH v3] Fix board init code to use a valid C runtime environment

2015-11-13 Thread Albert ARIBAUD
board_init_f_mem() alters the C runtime environment's stack it ls actually already using. This is not a valid C runtime environment. Split board_init_f_mem into C functions which do not alter their own stack and therefore run in a valid C runtime environment. Signed-off-by: Albert ARIBAUD --- Fo

Re: [U-Boot] sf: Fix NULL pointer exception for flashes without lock methods

2015-11-13 Thread Tom Rini
On Fri, Nov 13, 2015 at 02:46:26AM -0800, Bin Meng wrote: > commit c3c016c "sf: Add SPI NOR protection mechanism" introduced > flash_lock()/flash_unlock()/flash_is_locked() methods for SPI flash, > but not every flash driver supplies these. We should test these > methods against NULL before actual

[U-Boot] Please pull u-boot-x86

2015-11-13 Thread Bin Meng
Hi Tom, The following changes since commit 9ac4fc82071ce346e3885118242ff45d22f69b82: board_init: Change the logic to setup malloc_base (2015-11-12 20:34:07 -0500) are available in the git repository at: git://git.denx.de/u-boot-x86.git master for you to fetch changes up to 6d41027fe2e734aa

[U-Boot] [PATCH 06/17] km/powerpc: move open firmware defines to km-powerpc.h

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck We use the same settings for open firmware defines on all our powerpc targets, so move them from the CPU specific headers to the common powerpc header. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp --- include/configs/km/km-powerpc.h| 4 include/

[U-Boot] [PATCH 02/17] powerpc/83xx: add support for kmtepr2 board

2015-11-13 Thread Valentin Longchamp
From: Christoph Dietrich This board is similar to TUXX1, but it has differend FPGAs. Signed-off-by: Christoph Dietrich Signed-off-by: Andreas Huber Signed-off-by: Valentin Longchamp --- board/keymile/km83xx/MAINTAINERS | 1 + configs/kmtepr2_defconfig| 4 include/configs/tuxx

[U-Boot] [PATCH 00/17] km/powerpc: various bugfixes and support for 3 new boards

2015-11-13 Thread Valentin Longchamp
A few bugfixes have been done for the km_kirkwood bards in the last months and this series collects them all to be sumbitted to mainline. Furthermore, support for 3 new Keymile ppc boards are added: - kmvect1_p1a: based on 8309, first hw revision of kmvect1 - kmtepr2: based on a 8321, this is anoth

[U-Boot] [PATCH 01/17] powerpc/83xx/km: add support for kmvect1 p1a hw version

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck This first boards have the simple switch connected to a PRST line of the PRIO3. This is not allowed because it releases the PRIO3 watchdog in u-boot which causes problems with the bootloader application. This is fixed in the newer HW releases. To be able to deal with these old

[U-Boot] [PATCH 05/17] km/powerpc: increase space for kernel imange and FDT blob

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck 128kByte and 3,986MB may be in the future too little for kernel the fdt blob respectively the kernel image. So increase the reserved areas here, we have the space for this. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp --- include/configs/km/km-powerpc.h

[U-Boot] [PATCH 09/17] powerpc/km8321: define CONFIG_SYS_DDRCDR

2015-11-13 Thread Valentin Longchamp
On the km8321 boards is CONFIG_SYS_DDRCDR not defined, which leads to the DDRCDR not being configured at startup and still containing the reset value. The required settings for our km8321 hardware designs are different than the reset value and must be set with CONFIG_SYS_DDRCDR, that is used by mp

[U-Boot] [PATCH 10/17] powerpc/km8321: set the DDRCDR impedance settings back to half strength

2015-11-13 Thread Valentin Longchamp
The impedance settings have been changed with commit 2ea8ae99595ca11dd228726e854ebc6268208601 (whose goal was to set the internal voltage level to the DDR2 value - and not DDR1). There was no other good reason to set them to nominal strength than "the others do it like that" according to Ludger. T

[U-Boot] [PATCH 11/17] powerpc/km8309: define CONFIG_SYS_DDRCDR

2015-11-13 Thread Valentin Longchamp
For consistency with all the other km83xx plaforms, this should also be defined for km8309. The same settings as for km8321 are taken. Signed-off-by: Valentin Longchamp --- include/configs/km/km8309-common.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/configs/km/km8309-com

[U-Boot] [PATCH 08/17] km/powerpc82xx: remove unused function

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck commit 0a4f88b98 removed the usage of our setports function, but the function itself were not removed. So toss it it's dead code. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp --- board/keymile/km82xx/km82xx.c | 16 1 file changed, 16 del

[U-Boot] [PATCH 03/17] powerpc/82xx: make set/get_pin for km82xx more flexible

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck The get_pin and set_pin funciton was only used for pins on Port D and therefore the value was hard coded in the function. Enhance this with a parameter, that we are able to use this functions for other ports too. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp

[U-Boot] [PATCH 04/17] powerpc/82xx/km: add testpin detection for mgcoge3ne

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck On mgcoge3ne we also want to start the test application if the testpin is asserted. But we don't have a full POST test support yet. So simply add a function to read the testpin value. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp --- board/keymile/common/

[U-Boot] [PATCH 07/17] km/powerpc: remove unneeded defines

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck We use CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP on all our powerpc targets, so there is no need to check these defines within our C code. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp Conflicts: board/keymile/km82xx/km82xx.c board/keymile/

[U-Boot] [PATCH 12/17] powerpc/km8360: fix the ODT parameters for CS0

2015-11-13 Thread Valentin Longchamp
The ODT parameters for km8360 set the ODT_WR_ACS bit in u-boot KM-2011.09 that is used in the release bootpackage for kmcoge5ne. During the transition from the kmeter1 to km8360 and with the migration to KM-2012.10 (commit 0f2b721c80fa50c8e09548f0ad1b4210d2197bf9), this was changed to ODT_RD_ONLY_C

[U-Boot] [PATCH 15/17] km8309: change the default QE_FW address

2015-11-13 Thread Valentin Longchamp
It should be after the u-boot reserved sectors and before the env sectors, since the solution used for kmvect1 (tell the linker to put the firmware into the u-boot produced binary, at the end of the area) should be the exception. The #define is only "conditional" so that we can still support kmvec

[U-Boot] [PATCH 13/17] board/keymile/km82xx: setting dip_switch 3 and 4 will run bootloader

2015-11-13 Thread Valentin Longchamp
From: Bagavathiannan Palanisamy Setting dip_switch 3 and 4 also will run bootloader in COGE3 and COGE6 It is required remove local mgmt IP address, when DIP Switch PIN3 is enabled. DIP Switch 4 also enabled to avoid u-boot update in future for DIP switch enhancements. Signed-off-by: Bagavathiann

[U-Boot] [PATCH 14/17] km83xx: use CONFIG_ENV_ADDR for the newenv env command

2015-11-13 Thread Valentin Longchamp
The hardcoded value are bad, since the address could change between different boards. Furthermore, the relevant #defines are set only if #undefined here, so that they can be changed by some boards if required. Signed-off-by: Valentin Longchamp --- include/configs/km/km83xx-common.h | 8 ++-

[U-Boot] [PATCH 16/17] powerpc/83xx: add support for kmtegr1 board

2015-11-13 Thread Valentin Longchamp
This board uses the same CPU (8309) as VECT1. The memory however is different since it has NAND Flash, the NOR Flash partitioning is different and of course the FPGAs as well. Signed-off-by: Valentin Longchamp Signed-off-by: Christoph Dietrich --- board/keymile/km83xx/MAINTAINERS | 1 + confi

[U-Boot] [PATCH 17/17] km/powerpc: fix ft_board_setup prototype for km82xx & km83xx

2015-11-13 Thread Valentin Longchamp
Signed-off-by: Valentin Longchamp --- board/keymile/km82xx/km82xx.c | 2 +- board/keymile/km83xx/km83xx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82xx.c index 9e285ec..c2a7a5f 100644 --- a/board/keymile/km82xx/

Re: [U-Boot] [PATCH] Juno: don't print PCI debug information by default

2015-11-13 Thread Ryan Harkin
On 13 November 2015 at 11:25, Andre Przywara wrote: > On a Juno r1 the PCI controller init routine outputs the rather boring > ATR entry information. > Do this only with DEBUG defined to avoid cluttering the user's > terminal. Good idea. > > Signed-off-by: Andre Przywara Acked-by: Ryan Harkin

[U-Boot] [PATCH 0/4] Keymile common changes

2015-11-13 Thread Valentin Longchamp
This is the last part of the changes for the Keymile boards. This series contains all the changes that are common to all boards and architectures (that's why they are sent as an independant series) and mostly target our environment scripts. Holger Brunck (2): km/common: stop u-boot only if someo

[U-Boot] [PATCH 2/4] km: update the boot script to check for a DTB

2015-11-13 Thread Valentin Longchamp
If a DTB is found with cramfsls, the bootscript continues as expected. If none is found, the cramfsloadfdt and boot subbootcmds are updated to not load the DTB from cramfs and not pass it to the kernel. The kernel thus must have an appended DTB otherwise the boot will fail. This is required for th

[U-Boot] [PATCH 4/4] km/scripts: search for kernel/DTBs at serverip:/PRODUCTNAME via TFTP in develop mode

2015-11-13 Thread Valentin Longchamp
From: Tobias Müller Search for the kernel and DTBs in a folder named PRODUCTNAME (found in the IVM) at the TFTP server instead of the u-boot boardname. Signed-off-by: Tobias Müller Signed-off-by: Valentin Longchamp --- board/keymile/scripts/develop-common.txt | 6 +++--- 1 file changed, 3 in

[U-Boot] [PATCH 3/4] km/scripts: load fdt_bid_kwkey.dtb when working with tftp

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck When loading the dtb file via tftp we should load the one which matches boardId and hwKey and not a common one for the boardname. We have boards were different hwKeys are used and then we may load an incorrect dtb file. If no fdt_bid_kwkey.dtb file is not a fallback to boardna

[U-Boot] [PATCH 1/4] km/common: stop u-boot only if someone press

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck To prevent u-boot to stop accidently e.g. due to line noise on the serial line, we now use the option CONFIG_AUTOBOOT_KEYED. We choose the key for this. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp --- include/configs/km/keymile-common.h | 4 1 fil

Re: [U-Boot] [PATCH V2 07/12] board: LaCie: Move common headers to board-common directory

2015-11-13 Thread Simon Guinot
On Fri, Nov 13, 2015 at 09:06:45AM -0500, Tom Rini wrote: > On Fri, Nov 13, 2015 at 11:30:43AM +0100, Simon Guinot wrote: > > Hi Nishanth, > > > > On Thu, Nov 12, 2015 at 11:43:37PM -0600, Nishanth Menon wrote: > > > Header files can be located in a generic location without > > > needing to refere

Re: [U-Boot] [PATCH] arc: add stubs for map_physmem() and unmap_physmem()

2015-11-13 Thread Stephen Warren
On 11/13/2015 06:40 AM, Alexey Brodkin wrote: Hi Stephen, On Thu, 2015-11-12 at 16:00 -0700, Stephen Warren wrote: On 11/12/2015 02:56 PM, Alexey Brodkin wrote: Up until now there was no need in those stubs. But since following commit compilation of U-Boot on ARC is broken: commit 7861204c9af

[U-Boot] [PATCH 1/2] checkpatch: ignore request to use ether_addr_copy()

2015-11-13 Thread Stephen Warren
From: Stephen Warren The Linux kernel, from which checkpatch originates, contains function ether_addr_copy() to copy Ethernet MAC addresses, and checkpatch warns that it should be used in preference to memcpy() where appropriate. U-Boot doesn't contain ether_addr_copy(), so tell checkpatch not to

Re: [U-Boot] [PATCH v3 0/8] dm: pci: tegra: Convert Tegra PCI to driver model

2015-11-13 Thread Stephen Warren
On 11/12/2015 09:57 AM, Simon Glass wrote: This series converts all Tegra boards to use driver model for PCI. The net effect should be no change in functionality. I applied this series on top of current u-boot/master. On Jetson TK1 (T124), I see the following errors when U-Boot starts: Net:

Re: [U-Boot] [PATCH 00/10] basic support for Allwinner A83T SOC.

2015-11-13 Thread Hans de Goede
Hi, On 12-11-15 19:09, Vishnu Patekar wrote: This patch series adds basic support for Allwinner A83T SOC. Allwinner A83T is octa-core cortex-a7 based SoC. It's clock control unit and prcm, pinmux are different from previous sun8i series. Its processor cores are arragned in two clusters 4 cores

Re: [U-Boot] [PATCH 00/10] basic support for Allwinner A83T SOC.

2015-11-13 Thread Chen-Yu Tsai
On Sat, Nov 14, 2015 at 12:52 AM, Hans de Goede wrote: > Hi, > > On 12-11-15 19:09, Vishnu Patekar wrote: >> >> This patch series adds basic support for Allwinner A83T SOC. >> >> Allwinner A83T is octa-core cortex-a7 based SoC. >> It's clock control unit and prcm, pinmux are different from previou

Re: [U-Boot] [PATCH 02/10] sunxi: Add support for UART0 in PB pin group on A83T

2015-11-13 Thread Hans de Goede
Hi, On 12-11-15 19:09, Vishnu Patekar wrote: On A83T, PB9,PB10 are UART0 pins. On allwinner A83T Dev board(h8homlet), this uart0 serial connector is exposed. Signed-off-by: Vishnu Patekar This one looks good as is. Regards, Hans --- arch/arm/cpu/armv7/sunxi/board.c | 4 arc

  1   2   >