Re: [U-Boot] [PATCH v1] arm: socfpga: Enable load zImage and Linux DTB from QSPI

2015-11-26 Thread Chin Liang See
Hi Stefan, On Thu, 2015-11-26 at 07:12 +0100, Stefan Roese wrote: > On 26.11.2015 03:32, Chin Liang See wrote: > > Adding new environment qspiload which will load zImage and > > Linux DTB from serial NOR flash. The default flash offset for > > the images as below and they are configurable during

Re: [U-Boot] [PATCH v1] arm: socfpga: Enable load zImage and Linux DTB from QSPI

2015-11-26 Thread Marek Vasut
On Friday, November 27, 2015 at 02:24:49 AM, Chin Liang See wrote: > Hi Pavel, > > On Thu, 2015-11-26 at 15:43 +0100, Pavel Machek wrote: > > Hi! > > > > > Adding new environment qspiload which will load zImage and > > > Linux DTB from serial NOR flash. The default flash offset for > > > the

Re: [U-Boot] [PATCH v1] arm: socfpga: Enable load zImage and Linux DTB from QSPI

2015-11-26 Thread Chin Liang See
Hi Pavel, On Thu, 2015-11-26 at 15:43 +0100, Pavel Machek wrote: > Hi! > > > Adding new environment qspiload which will load zImage and > > Linux DTB from serial NOR flash. The default flash offset for > > the images as below and they are configurable during run time. > > > > - zImage located

Re: [U-Boot] [PATCH v1] arm: socfpga: Enable load zImage and Linux DTB from USB

2015-11-26 Thread Chin Liang See
Hi Marek, On Thu, 2015-11-26 at 12:04 +0100, Marek Vasut wrote: > On Thursday, November 26, 2015 at 07:14:56 AM, Stefan Roese wrote: > > On 26.11.2015 04:17, Chin Liang See wrote: > > > Adding new environment usbload which will load zImage and > > > Linux DTB from USB mass storage through FAT

Re: [U-Boot] [PATCH v1] arm: socfpga: Enable load zImage and Linux DTB from USB

2015-11-26 Thread Chin Liang See
Hi Stefan, On Thu, 2015-11-26 at 07:14 +0100, Stefan Roese wrote: > On 26.11.2015 04:17, Chin Liang See wrote: > > Adding new environment usbload which will load zImage and > > Linux DTB from USB mass storage through FAT file system. > > > > Signed-off-by: Chin Liang See > >

Re: [U-Boot] [PATCH v7 00/34] sf: MTD support

2015-11-26 Thread Bin Meng
Hi Jagan, On Thu, Nov 26, 2015 at 8:03 PM, Jagan Teki wrote: > This series is combination of mtd and sf tunning stuff in previous > version patches.[1][2] > > This is whole patch series for add mtd support to spi-flash > framework and related stuff. > > The idea is to

[U-Boot] [PATCH v2] arm: socfpga: Enable load zImage and Linux DTB from USB

2015-11-26 Thread Chin Liang See
Adding new environment usbload which will load zImage and Linux DTB from USB mass storage through FAT file system. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek

Re: [U-Boot] [PATCH] Implement pytest-based test infrastructure

2015-11-26 Thread Simon Glass
Hi Stephen, On 24 November 2015 at 13:28, Stephen Warren wrote: > On 11/24/2015 12:04 PM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 23 November 2015 at 21:44, Stephen Warren >> wrote: >>> >>> On 11/23/2015 06:45 PM, Simon Glass wrote:

[U-Boot] [PATCH v3 05/13] dm: pci: Rename pci_auto.c to pci_auto_old.c

2015-11-26 Thread Simon Glass
This file should not be used with driver model as it has lots of legacy/ compatibility functions. Rename it to make this clear. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None drivers/pci/Makefile

Re: [U-Boot] [PATCH] common: mmc: unsigned char compared against 0

2015-11-26 Thread Simon Glass
Hi Peng, On 25 November 2015 at 01:16, Peng Fan wrote: > "enable" is unsigned char type and its value will not be > negative, so discard "enable < 0". > > Signed-off-by: Peng Fan > Cc: Diego Santa Cruz > Cc: Pantelis

Re: [U-Boot] [PATCH V2] common: cli_hush: avoid memory leak

2015-11-26 Thread Simon Glass
On 26 November 2015 at 18:12, Peng Fan wrote: > Need to free memory avoid memory leak, when error. > > Signed-off-by: Peng Fan > Reviewed-by: Simon Glass > Cc: Simon Glass > Cc: Tom Rini

Re: [U-Boot] [PATCH v7 2/2] arm: move gd handling outside of C code

2015-11-26 Thread Simon Glass
On 25 November 2015 at 08:56, Albert ARIBAUD wrote: > As of gcc 5.2.1 for Thumb-1, it is not possible any > more to assign gd from C code, as gd is mapped to r9, > and r9 may now be saved in the prolog sequence, and > restored in the epilog sequence, of any C functions.

Re: [U-Boot] [PATCH 2/2] rockchip: Explicitely set CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN

2015-11-26 Thread Simon Glass
On 23 November 2015 at 01:50, Sjoerd Simons wrote: > On Sun, 2015-11-22 at 09:11 -0700, Simon Glass wrote: >> On 22 November 2015 at 00:21, Sjoerd Simons >> wrote: >> > Now that u-boot relocates the malloc area in SPL to SDRAM, with

Re: [U-Boot] [PATCH 2/2] rockchip: rk3036: enable CONFIG_DEBUG_UART, and use ns16550 uart driver

2015-11-26 Thread Simon Glass
On 19 November 2015 at 22:58, Lin Huang wrote: > enable this config so we use common uart function in SPL stage > > Signed-off-by: Lin Huang > --- > arch/arm/mach-rockchip/rk3036-board-spl.c | 6 ++ > configs/evb-rk3036_defconfig | 5

Re: [U-Boot] [PATCH 1/2] Revert "rockchip: Reconfigure the malloc based to point to system memory"

2015-11-26 Thread Simon Glass
On 22 November 2015 at 08:11, Simon Glass wrote: > On 22 November 2015 at 00:21, Sjoerd Simons > wrote: >> This patch was merged shortly before the v2015.10 as a minimal fix for >> booting on rockchip. Now that the patch series from Hans to do

Re: [U-Boot] [PATCH 1/2] rockchip: add CONFIG_SPL_ROCKCHIP_SERIAL

2015-11-26 Thread Simon Glass
Hi Lin, On 26 November 2015 at 19:35, Simon Glass wrote: > Hi Lin, > > On 19 November 2015 at 22:58, Lin Huang wrote: >> we can use this config to disable rockchip serial driver in SPL stage, >> since some rockchip soc sram size is small(rk3036 etc), so

[U-Boot] [PATCH v3 02/13] pci: Use a separate variable for the bus number

2015-11-26 Thread Simon Glass
At present in do_pci(), bdf can either mean a bus number or a PCI bus number. Use separate variables instead to reduce confusion. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None common/cmd_pci.c | 6 +++--- 1

[U-Boot] [PATCH v3 04/13] dm: pci: Add a comment about how to find struct pci_controller

2015-11-26 Thread Simon Glass
With driver mode, struct pci_controller is stored as uclass-private data. Add a comment to that effect. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None include/pci.h | 2 ++ 1 file changed, 2 insertions(+)

Re: [U-Boot] [PATCH v7 00/34] sf: MTD support

2015-11-26 Thread Simon Glass
Hi Jagan, On 26 November 2015 at 10:54, Jagan Teki wrote: > Hi Simon, > > Some how I'm unclear about your comments in previous series probably I > my misunderstanding or something. let me explain about my plan on > spi-nor development. > > The entire spi-flash code is generic

[U-Boot] [PATCH v3 07/13] dm: pci: Reorder functions in cmd_pci.c

2015-11-26 Thread Simon Glass
Before converting this to driver model, reorder the code to avoid forward function declarations. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None common/cmd_pci.c | 216

Re: [U-Boot] [PATCH v7 1/2] Fix board init code to respect the C runtime environment

2015-11-26 Thread Simon Glass
Hi Albert, On 25 November 2015 at 08:56, Albert ARIBAUD wrote: > board_init_f_mem() alters the C runtime environment's > stack it is actually already using. This is not a valid > behaviour within a C runtime environment. > > Split board_init_f_mem into C functions

[U-Boot] [PATCH v3 06/13] dm: pci: Move common auto-config functions to a common file

2015-11-26 Thread Simon Glass
Some functions will be used by driver model and legacy PCI code. To avoid duplication, put these in a separate, shared file. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: - Fix 'autoconfiguration' typo - Fix merge

[U-Boot] [PATCH v3 10/13] pci: Use a separate 'dev' variable for the PCI device

2015-11-26 Thread Simon Glass
In the 'pci' command, add a separate variable to hold the PCI device. When this code is converted to driver model, this variable will be used to hold a struct udevice instead. Signed-off-by: Simon Glass --- Changes in v3: - Fix 'switch (cmd)' merge error Changes in v2: -

[U-Boot] [PATCH v3 11/13] pci: Move PCI header output code into its own function

2015-11-26 Thread Simon Glass
We want to share this code with the driver model version, so put it in a separate function. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None common/cmd_pci.c | 17 +++-- 1 file changed, 11

Re: [U-Boot] [PATCH v1] arm: socfpga: Enable load zImage and Linux DTB from QSPI

2015-11-26 Thread Chin Liang See
Hi Marek, On Fri, 2015-11-27 at 02:27 +0100, Marek Vasut wrote: > On Friday, November 27, 2015 at 02:24:49 AM, Chin Liang See wrote: > > Hi Pavel, > > > > On Thu, 2015-11-26 at 15:43 +0100, Pavel Machek wrote: > > > Hi! > > > > > > > Adding new environment qspiload which will load zImage and >

[U-Boot] [PATCH] video: ipu: fix out of bounds access

2015-11-26 Thread Peng Fan
We need to access reg stp_rep9, but not stp_rep[(9 - 1) / 2]. If using "__raw_writel(0, DI_STP_REP(disp, 9))", this will exceeds the size of stp_rep array. Signed-off-by: Peng Fan Acked-by: Liu Ying Cc: Stefano Babic Cc: Anatolij

[U-Boot] [PATCH V2] common: cli_hush: avoid memory leak

2015-11-26 Thread Peng Fan
Need to free memory avoid memory leak, when error. Signed-off-by: Peng Fan Reviewed-by: Simon Glass Cc: Simon Glass Cc: Tom Rini --- Changes V2: Take Simon's comments, fix another memory leak when child->argv

Re: [U-Boot] [PATCH] common: cli_hush: avoid memory leak

2015-11-26 Thread Peng Fan
Hi Simon, On Thu, Nov 26, 2015 at 09:49:38AM -0800, Simon Glass wrote: >Hi Peng, > >On 25 November 2015 at 02:16, Peng Fan wrote: >> Need to free memory avoid memory leak, when error. >> >> Signed-off-by: Peng Fan >> Cc: Simon Glass

[U-Boot] [PATCH] arm: socfpga: Remove fsloadcmd from environment

2015-11-26 Thread Chin Liang See
Remove fsloadcmd / ext2load as we are using load command which use the corresponding latest file system command. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek

Re: [U-Boot] [PATCH] arm: socfpga: Remove fsloadcmd from environment

2015-11-26 Thread Stefan Roese
On 27.11.2015 03:27, Chin Liang See wrote: Remove fsloadcmd / ext2load as we are using load command which use the corresponding latest file system command. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen

Re: [U-Boot] [PATCH v2] arm: socfpga: Enable load zImage and Linux DTB from USB

2015-11-26 Thread Stefan Roese
On 27.11.2015 03:36, Chin Liang See wrote: Adding new environment usbload which will load zImage and Linux DTB from USB mass storage through FAT file system. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen

Re: [U-Boot] [PATCH v7 00/34] sf: MTD support

2015-11-26 Thread Bin Meng
Hi Jagan, On Fri, Nov 27, 2015 at 2:54 AM, Jagan Teki wrote: > Hi Simon, > > Some how I'm unclear about your comments in previous series probably I > my misunderstanding or something. let me explain about my plan on > spi-nor development. > > The entire spi-flash code is

[U-Boot] [PATCH v3 08/13] pci: Tidy up function comments in cmd_pci.c

2015-11-26 Thread Simon Glass
The function comments use an old style and some are incorrect. Update them. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: - Use 'Show' instead of 'Shows' in the the pci_header_show() function comment Changes in v2: - Add a new patch

[U-Boot] [PATCH v3 13/13] dm: pci: Disable PCI compatibility functions by default

2015-11-26 Thread Simon Glass
We eventually need to drop the compatibility functions for driver model. As a first step, create a configuration option to enable them and hide them when the option is disabled. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None

[U-Boot] [PATCH v3 09/13] pci: Use common functions to read/write config

2015-11-26 Thread Simon Glass
Currently we use switch() and access PCI configuration via several functions, one for each data size. Adjust the code to use generic functions, where the data size is a parameter. Signed-off-by: Simon Glass --- Changes in v3: - Fix mix-up between PCI_SIZE_xx and byte size

[U-Boot] [PATCH v3 03/13] pci: Refactor the pciinfo() function

2015-11-26 Thread Simon Glass
This function uses macros to output data. It seems better to use a table of registers rather than macro-based code generation. It also reduces the code/data size by 2KB on ARM. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Tested-by: Bin Meng

[U-Boot] [PATCH v3 12/13] dm: pci: Convert 'pci' command to driver model

2015-11-26 Thread Simon Glass
Adjust this command to use the correct PCI functions, instead of the compatibility layer. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Tested-by: Bin Meng --- Changes in v3: None Changes in v2: - Make pciinfo() static

[U-Boot] [PATCH v3 00/13] dm: pci: Support native driver model calls

2015-11-26 Thread Simon Glass
At present driver model supports PCI, but most of the code in U-Boot still uses the old API. This series changes the 'pci' command so that the new API is used. The old API is placed behind a 'compatibility' option. The overall goal is to deprecate the old API and remove all use of it. The

[U-Boot] [PATCH v3 01/13] pci: Use a common return in command processing

2015-11-26 Thread Simon Glass
Adjust the commands to return from the same place. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None common/cmd_pci.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git

Re: [U-Boot] [PATCH 1/2] rockchip: add CONFIG_SPL_ROCKCHIP_SERIAL

2015-11-26 Thread Simon Glass
Hi Lin, On 19 November 2015 at 22:58, Lin Huang wrote: > we can use this config to disable rockchip serial driver in SPL stage, > since some rockchip soc sram size is small(rk3036 etc), so we don't > want rockchip serial driver build in SPL, but we still want use common >

Re: [U-Boot] [PATCH v1 2/3] rockchip: mkimage: use imagename to select spl hdr & spl size

2015-11-26 Thread Simon Glass
Hi Jeffy, On 26 November 2015 at 16:43, Jeffy Chen wrote: > Our chips may have different spl size and spl header, so > use imagename(passed by "mkimage -n") to select them now. > > Signed-off-by: Jeffy Chen > --- > > tools/rkcommon.c | 69

Re: [U-Boot] [PATCH v1 3/3] rockchip: doc: add imagename

2015-11-26 Thread Simon Glass
On 26 November 2015 at 16:43, Jeffy Chen wrote: > We now using imagename to select rockchip's spl hdr & spl size. > > Signed-off-by: Jeffy Chen > --- > > doc/README.rockchip | 8 > 1 file changed, 4 insertions(+), 4 deletions(-)

[U-Boot] Please pull from u-boot-i2c

2015-11-26 Thread Heiko Schocher
Hello Tom, please pull from u-boot-i2c master: The following changes since commit 71cbed31f4f123708b8b3397cb166155c4a71f66: am33xx: Remove serial_init in s_init for QSPI/NOR XIP boot (2015-11-23 11:01:53 -0500) are available in the git repository at: git://git.denx.de/u-boot-i2c.git

[U-Boot] [PATCH v1 2/3] rockchip: mkimage: use imagename to select spl hdr & spl size

2015-11-26 Thread Jeffy Chen
Our chips may have different spl size and spl header, so use imagename(passed by "mkimage -n") to select them now. Signed-off-by: Jeffy Chen --- tools/rkcommon.c | 69 ++-- tools/rkcommon.h | 32

[U-Boot] [PATCH v1 1/3] Revert "rockchip: Add max spl size & spl header configs"

2015-11-26 Thread Jeffy Chen
This reverts commit 10b4615f9d7e177ec7fe644fbb2616e0e0956f6e Conflicts: tools/rkcommon.h Signed-off-by: Jeffy Chen --- arch/arm/mach-rockchip/Kconfig| 15 --- arch/arm/mach-rockchip/rk3036/Kconfig | 6 --

[U-Boot] [PATCH v1 0/3] Fix rockchip spl loader mkimage flow

2015-11-26 Thread Jeffy Chen
This series patch fix rockchip spl loader mkimage flow, use imagename to select spl loader size & tag for different chip. Jeffy Chen (3): Revert "rockchip: Add max spl size & spl header configs" rockchip: mkimage: use imagename to select spl hdr & spl size rockchip: doc: add imagename

[U-Boot] [PATCH v1 3/3] rockchip: doc: add imagename

2015-11-26 Thread Jeffy Chen
We now using imagename to select rockchip's spl hdr & spl size. Signed-off-by: Jeffy Chen --- doc/README.rockchip | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index 874441c..b455f6f 100644 ---

Re: [U-Boot] [PATCH] common: mmc: unsigned char compared against 0

2015-11-26 Thread Peng Fan
Hi Simon, On Thu, Nov 26, 2015 at 06:51:58PM -0800, Simon Glass wrote: >Hi Peng, > >On 25 November 2015 at 01:16, Peng Fan wrote: >> "enable" is unsigned char type and its value will not be >> negative, so discard "enable < 0". >> >> Signed-off-by: Peng Fan

Re: [U-Boot] [PATCH] powerpc, mpc5xxx: fix missing bootflag init

2015-11-26 Thread Heiko Schocher
Hello Simon, Am 26.11.2015 um 18:49 schrieb Simon Glass: On 25 November 2015 at 01:46, Heiko Schocher wrote: since: commit: f05ad9ba "Add a way to skip relocation" tqm5200s board fails to boot. Reason is that board_init_f has a function parameter bootflag, which is not setup in

[U-Boot] zynq: ps7_init_gpl.c

2015-11-26 Thread Hannes Schmelzer
hello, The ps7_init_gpl.c is some output from the xilinix vivado tool as hardware handoff. We compile this into our SPL. My question is how to deal with "scripts/checkpatch.pl" on this file. The scripts throughs a lot of errors. # scripts/checkpatch.pl -f

[U-Boot] [PATCH v2 2/3] rockchip: mkimage: use imagename to select spl hdr & spl size

2015-11-26 Thread Jeffy Chen
Our chips may have different spl size and spl header, so use imagename(passed by "mkimage -n") to select them now. Signed-off-by: Jeffy Chen --- Changes in v2: None tools/rkcommon.c | 72 ++-- tools/rkcommon.h | 32

[U-Boot] [PATCH v2 1/3] Revert "rockchip: Add max spl size & spl header configs"

2015-11-26 Thread Jeffy Chen
This reverts commit 10b4615f9d7e177ec7fe644fbb2616e0e0956f6e Conflicts: tools/rkcommon.h Signed-off-by: Jeffy Chen --- Changes in v2: - Fix some coding style arch/arm/mach-rockchip/Kconfig| 15 --- arch/arm/mach-rockchip/rk3036/Kconfig

[U-Boot] [PATCH v2 0/3] Fix rockchip spl loader mkimage flow

2015-11-26 Thread Jeffy Chen
This series patch fix rockchip spl loader mkimage flow, use imagename to select spl loader size & tag for different chip. Changes in v2: - Fix some coding style Jeffy Chen (3): Revert "rockchip: Add max spl size & spl header configs" rockchip: mkimage: use imagename to select spl hdr & spl

[U-Boot] [PATCH v2 3/3] rockchip: doc: add imagename

2015-11-26 Thread Jeffy Chen
We now using imagename to select rockchip's spl hdr & spl size. Signed-off-by: Jeffy Chen Acked-by: Simon Glass --- Changes in v2: None doc/README.rockchip | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [U-Boot] [PATCH v7 00/34] sf: MTD support

2015-11-26 Thread Stefan Roese
Hi Simon, On 26.11.2015 19:22, Simon Glass wrote: Hi Stefan, On 26 November 2015 at 10:12, Stefan Roese wrote: Hi Simon, On 26.11.2015 18:55, Simon Glass wrote: Hi Stefan, On 26 November 2015 at 09:47, Stefan Roese wrote: Hi Simon, On 26.11.2015 17:48, Simon

Re: [U-Boot] [PATCH v7 00/34] sf: MTD support

2015-11-26 Thread Stefan Roese
Hi Simon, On 27.11.2015 05:01, Stefan Roese wrote: Hi Simon, On 26.11.2015 19:22, Simon Glass wrote: Hi Stefan, On 26 November 2015 at 10:12, Stefan Roese wrote: Hi Simon, On 26.11.2015 18:55, Simon Glass wrote: Hi Stefan, On 26 November 2015 at 09:47, Stefan Roese

[U-Boot] [PATCH 2/5] arm: ls102xa: enable all the snoop signal for masters.

2015-11-26 Thread Yuan Yao
Enable the IP feature's snoop signal to support hardware snoop for cache coherence. SNPCNFGCR contains the bits to drive snoop signal for various masters. Signed-off-by: Yuan Yao --- arch/arm/cpu/armv7/ls102xa/soc.c | 8

[U-Boot] [PATCH v2 4/5] armv7/fsl-ls102xa: Workaround for DDR erratum A008514

2015-11-26 Thread Yuan Yao
This is a workaround for hardware erratum. Write the value of 63b2_0042h to EDDRTQCFG will optimal the memory controller performance. The value: 63b2_0042h comes from the hardware team. Signed-off-by: Yuan Yao --- Changed in v2: squash both of the two patches into one

[U-Boot] [PATCH 3/5] ls102xa: Enable snoop and DVM message requests.

2015-11-26 Thread Yuan Yao
Signed-off-by: Yuan Yao --- arch/arm/cpu/armv7/ls102xa/soc.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/ls102xa/soc.c b/arch/arm/cpu/armv7/ls102xa/soc.c index 6036473..97ba6d5 100644 --- a/arch/arm/cpu/armv7/ls102xa/soc.c

[U-Boot] [PATCH 5/5] move the erratum_a008336_a008514 from general ddr file to soc file

2015-11-26 Thread Yuan Yao
Both of the erratum:A008336 and A008514 are not apply to all the soc like:LS1021A, LS1043A. So it seems better to move those erratum codes form the general ddr file to the private soc file. Signed-off-by: Yuan Yao --- arch/arm/cpu/armv8/fsl-layerscape/soc.c | 37

[U-Boot] [PATCH 1/5] arm: ls1021a: merge SoC specific code in a separate file

2015-11-26 Thread Yuan Yao
Create a soc.c file to put the code for soc special settings. Signed-off-by: Yuan Yao --- arch/arm/cpu/armv7/ls102xa/Makefile | 1 + arch/arm/cpu/armv7/ls102xa/soc.c| 66 +

[U-Boot] [PATCH] arm: dts: omap: add reg-shift to serial device tree node

2015-11-26 Thread Mugunthan V N
With the commit 'c7b9686d5d48 ("ns16550: unify serial_omap")' all TI platforms are broken with DM/DT boot as ns16550 driver expects reg-shift from DT which is not populated for TI platforms. Earlier it worked as it was hard coded to 2 in serial-omap driver. So adding the reg-shift to serial nodes

[U-Boot] [PATCH] net: gem: Enable CTRL+C in wait_for_bit

2015-11-26 Thread Michal Simek
Enable to break waiting loop at any time. Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 858093f0d7e2..ee4169107e5b 100644 ---

[U-Boot] [PATCH] zynq: sdhci: Calculate minimum frequency based on max frequency

2015-11-26 Thread Michal Simek
From: Siva Durga Prasad Paladugu Calculate the minimum sd clock based on max clock. This will be done by add_sdhci() if we pass minimum clock as zero. It also does based on SD host contoller version. Signed-off-by: Siva Durga Prasad Paladugu

[U-Boot] [PATCH] common: board_f: Dont relocate FDT incase of CONFIG_OF_EMBED

2015-11-26 Thread Michal Simek
From: Siva Durga Prasad Paladugu Done relocate fdt incase of CONFIG_OF EMBED as the fdt is already embedded with u-boot image. Also update the fdt_blob correctly in this case Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal

Re: [U-Boot] mxs: HAB: current CST broken

2015-11-26 Thread Florian Achleitner
Hi, for everybody's information: On Wednesday, November 18, 2015 11:01:03 AM Marek Vasut wrote: > On Wednesday, November 18, 2015 at 10:57:13 AM, Florian Achleitner wrote: > > On Wednesday, November 18, 2015 09:55:12 AM Marek Vasut wrote: > > [..] > > Anyways, I currently suspect the cst tool

[U-Boot] [PATCH] ARM64: zynqmp: Enable FIT config option via Kconfig

2015-11-26 Thread Michal Simek
Remove configuration options from board file. Signed-off-by: Michal Simek --- configs/xilinx_zynqmp_ep_defconfig | 2 ++ include/configs/xilinx_zynqmp.h| 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/configs/xilinx_zynqmp_ep_defconfig

[U-Boot] [PATCH] ARM: zynq: Remove unused SERIAL macros for serial_zynq

2015-11-26 Thread Michal Simek
Remove unused macros when driver was moved to DM. Signed-off-by: Michal Simek --- arch/arm/include/asm/arch-zynqmp/hardware.h | 3 --- arch/arm/mach-zynq/include/mach/hardware.h | 2 -- 2 files changed, 5 deletions(-) diff --git

[U-Boot] [PATCH v2 0/7] tools: env: simplify argument parsing

2015-11-26 Thread Andreas Fenkart
In it's current state paramter parsing is quite hard to understand since it happens in two places. One is using getopt at the beginning of main, the second is using adhoc parsing where the order of arguments is important. This patch will parse arguments only in one place using getopt and store

[U-Boot] [PATCH v2 1/7] tools: env validate: pass values as 0-based array

2015-11-26 Thread Andreas Fenkart
passing argv/argc can produce off-by-one errors Signed-off-by: Andreas Fenkart --- common/env_flags.c | 14 +++--- include/env_flags.h | 2 +- tools/env/fw_env.c | 11 +++ 3 files changed, 15 insertions(+), 12 deletions(-) diff --git

[U-Boot] [PATCH v2 3/7] tools: env: introduce setenv/printenv argument structs

2015-11-26 Thread Andreas Fenkart
goal is to use getopt for all argument parsing instead of adhoc parsing in fw_getenv/fw_setenv functions Signed-off-by: Andreas Fenkart --- tools/env/fw_env.h | 9 tools/env/fw_env_main.c | 113 2

[U-Boot] [PATCH v2 5/7] tools: env: shift optind arguments and fix argument indices

2015-11-26 Thread Andreas Fenkart
Signed-off-by: Andreas Fenkart --- tools/env/fw_env.c | 54 ++--- tools/env/fw_env_main.c | 4 2 files changed, 15 insertions(+), 43 deletions(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c

[U-Boot] [PATCH v2 4/7] tools: env: parse aes key / suppress flag into argument struct

2015-11-26 Thread Andreas Fenkart
disabled original parsing, but not yet removed since the argument indexing needs to be fixed Signed-off-by: Andreas Fenkart --- tools/env/fw_env.c | 64 ++--- tools/env/fw_env.h | 13 ++

[U-Boot] [PATCH v2 2/7] tools: env: make parse_aes_key stateless

2015-11-26 Thread Andreas Fenkart
Signed-off-by: Andreas Fenkart --- tools/env/fw_env.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 22507f6..5b76b74 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@

[U-Boot] [PATCH v2 6/7] tools: env: factor out parse_common_args

2015-11-26 Thread Andreas Fenkart
Signed-off-by: Andreas Fenkart --- tools/env/fw_env_main.c | 63 + 1 file changed, 38 insertions(+), 25 deletions(-) diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c index daf4688..e7ba95e 100644

[U-Boot] [PATCH v2 7/7] tools: env: update usage strings

2015-11-26 Thread Andreas Fenkart
Signed-off-by: Andreas Fenkart --- tools/env/fw_env_main.c | 117 +++- 1 file changed, 75 insertions(+), 42 deletions(-) diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c index e7ba95e..79273ce 100644

Re: [U-Boot] [PATCH] common: board_f: Dont relocate FDT incase of CONFIG_OF_EMBED

2015-11-26 Thread Alexey Brodkin
Hi Michal, On Thu, 2015-11-26 at 10:54 +0100, Michal Simek wrote: > From: Siva Durga Prasad Paladugu > > Done relocate fdt incase of CONFIG_OF EMBED as the fdt is Probably it was meant to be something like: --->8--- __Don't__

Re: [U-Boot] Rpi Uboot not working ; USB keyboard undetected

2015-11-26 Thread Hans de Goede
Hi, On 26-11-15 01:38, Stefan Bruens wrote: On Wednesday 25 November 2015 16:55:54 Sumeet Jauhar wrote: Hello All, I am new to Rpi and for a project I need to install Uboot for Rpi. For starters I installed Raspbian-jessie to the pi and it worked fine. Now I am attempting to use uboot but I

Re: [U-Boot] mxs: HAB: current CST broken

2015-11-26 Thread Marek Vasut
On Thursday, November 26, 2015 at 10:24:50 AM, Florian Achleitner wrote: > Hi, Hi, > for everybody's information: > > On Wednesday, November 18, 2015 11:01:03 AM Marek Vasut wrote: > > On Wednesday, November 18, 2015 at 10:57:13 AM, Florian Achleitner wrote: > > > On Wednesday, November 18,

Re: [U-Boot] [PATCH v1] arm: socfpga: Enable load zImage and Linux DTB from USB

2015-11-26 Thread Marek Vasut
On Thursday, November 26, 2015 at 07:14:56 AM, Stefan Roese wrote: > On 26.11.2015 04:17, Chin Liang See wrote: > > Adding new environment usbload which will load zImage and > > Linux DTB from USB mass storage through FAT file system. > > > > Signed-off-by: Chin Liang See > >

[U-Boot] [PATCH 1/2] arm: dts: dra7-evm: add chosen node to specify serial console device

2015-11-26 Thread Mugunthan V N
Introduce chosen node and specify uart0 to be used as serial console. Signed-off-by: Mugunthan V N --- arch/arm/dts/dra7-evm.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/dra7-evm.dts b/arch/arm/dts/dra7-evm.dts index 096f68b..e4daa99 100644 ---

[U-Boot] [PATCH 0/2] Enable DM_SERIAL for dra74x evm

2015-11-26 Thread Mugunthan V N
DM_SERIAL is not enabled for dra74x evm, enabling it and tested on dra74x evm. Logs [1]. [1] - http://pastebin.ubuntu.com/13513965/ Mugunthan V N (2): arm: dts: dra7-evm: add chosen node to specify serial console device defconfig: dra74_evm: enable serial driver model

[U-Boot] [PATCH 2/2] defconfig: dra74_evm: enable serial driver model

2015-11-26 Thread Mugunthan V N
Enable serial driver model for dra74_evm as ns16550 supports driver model. Signed-off-by: Mugunthan V N --- configs/dra74_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/dra74_evm_defconfig b/configs/dra74_evm_defconfig index 7bff294..394edbe

[U-Boot] [PATCH v7 00/34] sf: MTD support

2015-11-26 Thread Jagan Teki
This series is combination of mtd and sf tunning stuff in previous version patches.[1][2] This is whole patch series for add mtd support to spi-flash framework and related stuff. The idea is to introduce the spi-nor flash framework which similar to Linux with driver-model support. Detail

[U-Boot] [PATCH v7 03/34] sf: Move read_id code to sf_ops

2015-11-26 Thread Jagan Teki
read_id code is related to spi_flash stuff hence moved to sf_ops. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_internal.h | 3 +-- drivers/mtd/spi/sf_ops.c | 21 ++--- drivers/mtd/spi/sf_probe.c| 15 +-- 3 files changed, 20

[U-Boot] [PATCH v7 02/34] sf: Move spi_flash_scan code to sf_ops

2015-11-26 Thread Jagan Teki
Intension is that sf_ops should deals all spi_flash related stuff and sf_probe (which should renamed future) should be an interface layer for spi_flash versus spi drivers. sf_ops => spi_flash interface sf_probe => interface layer vs spi_flash(sf_probe) to spi drivers Signed-off-by: Jagan Teki

[U-Boot] [PATCH v7 05/34] sf: Use static for file-scope functions

2015-11-26 Thread Jagan Teki
Use static for file-scope functions and removed them from header files. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_internal.h | 18 -- drivers/mtd/spi/sf_ops.c | 11 ++- 2 files changed, 6 insertions(+), 23 deletions(-) diff --git

[U-Boot] [PATCH v7 01/34] sf: spi_flash_validate_params => spi_flash_scan

2015-11-26 Thread Jagan Teki
Rename spi_flash_validate_params to spi_flash_scan as this code not only deals with params setup but also configure all spi_flash attributes. And also moved all flash related code into spi_flash_scan for future functionality addition. Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH v7 04/34] sf: probe: Code cleanup

2015-11-26 Thread Jagan Teki
- Move bar read code below the bar write hance both at once place, hence it easy for #ifdef macro only once and readable. - Move read_cmd_array at top Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_ops.c | 80 +++- 1 file

[U-Boot] [PATCH v7 07/34] sf: Use simple name for register access functions

2015-11-26 Thread Jagan Teki
Most of the register access function are static, so used simple name to represent each. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_ops.c | 52 1 file changed, 26 insertions(+), 26 deletions(-) diff --git

[U-Boot] [PATCH v7 06/34] sf: Fix Makefile

2015-11-26 Thread Jagan Teki
This patch removes unneeded ifdef and fixed accordingly. Signed-off-by: Jagan Teki --- drivers/mtd/spi/Makefile | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/mtd/spi/Makefile b/drivers/mtd/spi/Makefile index cf4e7e1..a24f761 100644 ---

[U-Boot] [PATCH v7 08/34] sf: Use flash function pointers in dm_spi_flash_ops

2015-11-26 Thread Jagan Teki
flash operations are defined as static and reuse them with function-pointers so call them with generic function pounters instead of calling like normal functions. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_ops.c | 2 -- drivers/mtd/spi/sf_probe.c | 15

[U-Boot] [PATCH v7 10/34] sf: Use static for file-scope functions

2015-11-26 Thread Jagan Teki
Use static for file-scope functions and removed them from header files. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_internal.h | 21 - drivers/mtd/spi/sf_ops.c | 11 ++- 2 files changed, 6 insertions(+), 26 deletions(-) diff --git

[U-Boot] [PATCH v7 09/34] sf: Flash power up read-only based on idcode0

2015-11-26 Thread Jagan Teki
Using macro's for flash power up read-only access code leads wrong behaviour hence use idcode0 for runtime detection, hence the flash which require this functionality gets detected at runtime. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_internal.h | 1 +

[U-Boot] [PATCH v7 11/34] sf: Remove unneeded header includes

2015-11-26 Thread Jagan Teki
Removed unneeded header includes in sf_ops and sf_probe Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_ops.c | 2 -- drivers/mtd/spi/sf_probe.c | 3 --- 2 files changed, 5 deletions(-) diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c index

[U-Boot] [PATCH v7 12/34] sf: probe: Use spi_flash_scan in dm-spi-flash

2015-11-26 Thread Jagan Teki
This patch add support to use spi_flash_scan in dm-spi-flash probe, so-that it can access the spi_flash functionalities same as non-dm sf probe. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_probe.c | 28 +--- 1 file changed, 25 insertions(+), 3

[U-Boot] [PATCH v7 15/34] zynq: Enable CONFIG_SPL_MTD_SUPPORT

2015-11-26 Thread Jagan Teki
Add SPL_MTD_SUPPORT to ZYNQ_QSPI SPL. Cc: Michal Simek Signed-off-by: Jagan Teki --- include/configs/zynq-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index

[U-Boot] [PATCH v7 13/34] sf: Re-factorize spi_flash_probe_tail code

2015-11-26 Thread Jagan Teki
spi_flash_probe_tail code looks not in proper shape to add more functionalities. hence refactorized so-that it's more readable and hence we may extend more functionalies to it. Cc: Bin Meng Cc: Troy Kisky Signed-off-by: Jagan Teki

[U-Boot] [PATCH v7 17/34] sf: Use mtd_info ops instead of spi_flash ops

2015-11-26 Thread Jagan Teki
Since MTD support is added in spi_flash layer, this patch uses mtd_info operations instead of legacy spi_flash operations. Reviewed-by: Heiko Schocher Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_ops.c | 75 +-

[U-Boot] [PATCH v7 14/34] dm-sf: Re-factorize spi_flash_std_probe code

2015-11-26 Thread Jagan Teki
spi_flash_probe_tail code looks not in proper shape to add more functionalities. hence refactorized so-that it's more readable and hence we may extend more functionalies to it. Cc: Bin Meng Cc: Troy Kisky Signed-off-by: Jagan Teki

  1   2   >