[U-Boot] [PATCH 1/4] mtdparts: fix usecount bug

2014-07-14 Thread Heiko Schocher
add missing put_mtd_device, so mtd-usecount gets correct decremented in get_mtd_info(). Signed-off-by: Heiko Schocher h...@denx.de Cc: Scott Wood scottw...@freescale.com Cc: Tom Rini tr...@ti.com --- found this bug with the linux v3.14 mtd/ubi/ubifs sync, but this is also wrong in current

Re: [U-Boot] [PATCH v2 1/5] spi, spi_mxc: do not hang in spi_xchg_single

2014-07-14 Thread Heiko Schocher
Hello Jagan, Am 12.07.2014 14:54, schrieb Jagan Teki: On Sat, Jul 12, 2014 at 9:40 AM, Heiko Schocherh...@denx.de wrote: if status register do never set MXC_CSPICTRL_TC, spi_xchg_single endless loops. Add a timeout here to prevent endless hang. Signed-off-by: Heiko Schocherh...@denx.de Cc:

[U-Boot] [PATCH 3/3] spi, sf: use offset and size in sf cmd from mtdpartition

2014-07-14 Thread Heiko Schocher
with this patch, it is possible to get the offset and size information from the mtdpartiton setting in mtdparts, similiar to the nand commandos. = sf sf - SPI flash sub-system Usage: sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus and chip

[U-Boot] [PATCH 1/3] mtd, spi: add MTD layer driver

2014-07-14 Thread Heiko Schocher
From: Daniel Schwierzeck daniel.schwierz...@gmail.com add MTD layer driver for spi, original patch from: http://git.denx.de/?p=u-boot/u-boot-mips.git;a=commitdiff;h=bb246819cdc90493dd7089eaa51b9e639765cced changes from Heiko Schocher against this patch: - remove compile error if not defining

[U-Boot] [PATCH 0/3] spi, sf: add mtdparts feature to spi and sf commands

2014-07-14 Thread Heiko Schocher
This patchserie add the popssibility to define mtd partitions on spi nor flash, and use this settings with the sf commands. steps: - add MTD layer driver for spi, original patch from: http://git.denx.de/?p=u-boot/u-boot-mips.git;a=commitdiff;h=bb246819cdc90493dd7089eaa51b9e639765cced and

[U-Boot] [PATCH 2/3] mtd, nand: move common functions from cmd_nand.c to common place

2014-07-14 Thread Heiko Schocher
move common functions from cmd_nand.c (for calculating offset and size from cmdline paramter) to common place, so they could used from other commands which use mtd partitions. For onenand the arg_off_size() is left in common/cmd_onenand.c. It should use now the common arg_off() function, but as I

Re: [U-Boot] [PATCH v2 1/5] spi, spi_mxc: do not hang in spi_xchg_single

2014-07-14 Thread Jagan Teki
Can you send the next level patch by removing this delay and verified on your target. I will push the same. On Mon, Jul 14, 2014 at 12:56 PM, Heiko Schocher h...@denx.de wrote: Hello Jagan, Am 12.07.2014 14:54, schrieb Jagan Teki: On Sat, Jul 12, 2014 at 9:40 AM, Heiko Schocherh...@denx.de

Re: [U-Boot] [PATCH v2 1/5] spi, spi_mxc: do not hang in spi_xchg_single

2014-07-14 Thread Heiko Schocher
Hello Jagan, Am 14.07.2014 10:01, schrieb Jagan Teki: Can you send the next level patch by removing this delay and verified on your target. I removed the delay, also tested it on my board. I thought, I wait for more comments on the patchserie ... but if you want to apply this patch

[U-Boot] [PATCH v3] spi, spi_mxc: do not hang in spi_xchg_single

2014-07-14 Thread Heiko Schocher
if status register do never set MXC_CSPICTRL_TC, spi_xchg_single endless loops. Add a timeout here to prevent endless hang. Signed-off-by: Heiko Schocher h...@denx.de Cc: Dirk Behme dirk.be...@gmail.com Cc: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com --- - changes for v2: - use timer

[U-Boot] [PATCH] board/ls2085a: Update env_addr after NOR flash relocation

2014-07-14 Thread Prabhakar Kushwaha
LS2085a has 2 regions in system memory map. Region1 is default map from where system boots. Once u-boot is moved to DDR, IFC is re-mapped to Region2. So, update gd-env_addr to reflect correct address. Signed-off-by: Prabhakar Kushwaha prabha...@freescale.com ---

Re: [U-Boot] [PATCH] lib/time.c cleanups

2014-07-14 Thread Pavel Machek
On Sun 2014-07-13 15:26:18, Marek Vasut wrote: On Sunday, July 13, 2014 at 01:14:27 PM, Pavel Machek wrote: [...] @@ -51,9 +52,10 @@ unsigned long long __weak notrace get_ticks(void) return ((unsigned long long)gd-timebase_h 32) | gd-timebase_l; } -static unsigned long long

[U-Boot] [PATCHv3] socfpga: initialize designware ethernet

2014-07-14 Thread Pavel Machek
Enable initialization fo designware ethernet controller. With this patch, ethernet works in my configuration, provided I set ethernet address in the environment. Signed-off-by: Pavel Machek pa...@denx.de --- Changes from v1: moved ethernet initialization to arch/arm, as suggested by Marek.

Re: [U-Boot] [PATCH] Ethernet: let user know if there is no valid ethernet address

2014-07-14 Thread Pavel Machek
Hi! btw. I think I should really NAK you a patch or two, just so you can continue complaining to me about how noone likes you here ;-) I'm not saying noone likes me. Everybody loves me, especially my horse when I bring carrots. Thanks for the reviews. But I still did not

Re: [U-Boot] [Patch v1 2/4] armv8/fsl-lsch3: Release secondary cores from boot hold off with Boot Page

2014-07-14 Thread Mark Rutland
On Tue, Jul 08, 2014 at 06:56:26PM +0100, York Sun wrote: On 07/04/2014 05:31 AM, Mark Rutland wrote: Hi York, I spotted a couple of generic issues below. Most of these are issues with the existing code that you happen to be moving around, rather than with the new code this patch

Re: [U-Boot] [PATCHv3] socfpga: initialize designware ethernet

2014-07-14 Thread Marek Vasut
On Monday, July 14, 2014 at 02:14:17 PM, Pavel Machek wrote: Enable initialization fo designware ethernet controller. With this patch, ethernet works in my configuration, provided I set ethernet address in the environment. Signed-off-by: Pavel Machek pa...@denx.de --- btw. is there any

Re: [U-Boot] [PATCHv3] socfpga: initialize designware ethernet

2014-07-14 Thread Pavel Machek
On Mon 2014-07-14 14:28:43, Marek Vasut wrote: On Monday, July 14, 2014 at 02:14:17 PM, Pavel Machek wrote: Enable initialization fo designware ethernet controller. With this patch, ethernet works in my configuration, provided I set ethernet address in the environment. Signed-off-by:

[U-Boot] [PATCH 1/3] add .mailmap for proper git-shortlog output

2014-07-14 Thread Masahiro Yamada
This is the first version of .mailmap created by hand. Please see man git-shortlog for what this commit is trying to do. Without this file, for example, git shortlog -n -s shows as follows: 2693 Wolfgang Denk -- 1002 Stefan Roese -- 811 wdenk -- 808

[U-Boot] [PATCH 3/3] Update .mailmap using scripts/mailmapper

2014-07-14 Thread Masahiro Yamada
Add more entries to .mailmap for the canonical names with 50 commits or more. This commit was generated by the following command: scripts/mailmapper tmp; mv tmp .mailmap Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com --- .mailmap | 15 +++ 1 file changed, 15

[U-Boot] [PATCH 2/3] scripts: add mailmapper, a tool to create/update mailmap file

2014-07-14 Thread Masahiro Yamada
This tool helps to create/update the mailmap file. It runs 'git shortlog' internally and searches differently spelled author names which share the same email address. The author name with the most commits is asuumed to be a canonical real name. If the number of commits from the cananonical name

[U-Boot] [PATCH 0/3] Add .mailmap file and a tool to maintain it

2014-07-14 Thread Masahiro Yamada
Masahiro Yamada (3): add .mailmap for proper git-shortlog output scripts: add mailmapper, a tool to create/update mailmap file Update .mailmap using scripts/mailmapper .mailmap | 27 + scripts/mailmapper | 160 + 2

Re: [U-Boot] [Patch v1 2/4] armv8/fsl-lsch3: Release secondary cores from boot hold off with Boot Page

2014-07-14 Thread Mark Rutland
@@ -119,3 +107,94 @@ ENTRY(lowlevel_init) mov lr, x29 /* Restore LR */ ret ENDPROC(lowlevel_init) + + /* Keep literals not used by the secondary boot page outside it */ + .ltorg + + .align 4 That looks like a

Re: [U-Boot] ARMv8 spin-table patches

2014-07-14 Thread Mark Rutland
On Tue, Jul 08, 2014 at 04:48:00AM +0100, Scott Wood wrote: On Fri, 2014-07-04 at 10:29 +0100, Mark Rutland wrote: Hi, Apologies for the late reply. On Fri, Jun 27, 2014 at 05:44:05PM +0100, Tom Rini wrote: On Fri, Jun 27, 2014 at 09:11:39AM -0700, York Sun wrote: Dear

[U-Boot] [PATCH] ARM: DRA7xx: Update the board_name env variable

2014-07-14 Thread Lokesh Vutla
Update the board_name env variable and accordingly populate the dtb file. Signed-off-by: Lokesh Vutla lokeshvu...@ti.com --- board/ti/dra7xx/evm.c |6 ++ include/configs/ti_omap5_common.h |3 +++ 2 files changed, 9 insertions(+) diff --git a/board/ti/dra7xx/evm.c

Re: [U-Boot] [PATCH v1 0/25] Add Marvell Armada XP MV78460 SoC support

2014-07-14 Thread Tom Rini
On Sun, Jul 13, 2014 at 09:45:51PM +0530, Jagan Teki wrote: On Fri, Jun 27, 2014 at 3:48 PM, Prafulla Wadaskar prafu...@marvell.com wrote: -Original Message- From: Stefan Roese [mailto:s...@denx.de] Sent: 27 June 2014 15:25 To: u-boot@lists.denx.de Cc: Prafulla Wadaskar;

Re: [U-Boot] [PATCH] ARM: DRA7xx: Update the board_name env variable

2014-07-14 Thread Tom Rini
On Mon, Jul 14, 2014 at 07:57:58PM +0530, Lokesh Vutla wrote: Update the board_name env variable and accordingly populate the dtb file. Signed-off-by: Lokesh Vutla lokeshvu...@ti.com Applied to u-boot/master, thanks! ... but I'd really like to see if we can figure something better out

Re: [U-Boot] [PATCH v2 1/2] boards.cfg: keep it sorted filling the board field

2014-07-14 Thread Tom Rini
On Fri, Jul 11, 2014 at 04:31:46PM +0900, Masahiro Yamada wrote: The boards.cfg file has allowed to use - for the board (= 6th) field if the board name is the same as the 7th field. But I notice one problem. Because tools/reformat.py sorts the lines in the simple alphabetical order (= the

Re: [U-Boot] [PATCH] socfpga: timer actually counts down

2014-07-14 Thread Tom Rini
On Sun, Jul 13, 2014 at 01:10:45PM +0200, Pavel Machek wrote: Timer on cyclone5 actually counts down. It took me a while to figure out, as timer counting in wrong direction actually _can_ be used, it just appears to tick at extremely high frequency in u-boot. The bug was introduced in

Re: [U-Boot] [PATCH v2 2/2] boards.cfg: change none in the board field to -

2014-07-14 Thread Tom Rini
On Fri, Jul 11, 2014 at 04:31:47PM +0900, Masahiro Yamada wrote: In the previous commit, all the board fields were filled. Now we can use - in the board field for a different meaning. Going forward, - stands for no board directory as in cpu, soc, vendor fields. Signed-off-by: Masahiro

Re: [U-Boot] [PATCH] Fix help text of ext2load and fatload.

2014-07-14 Thread Tom Rini
On Wed, Jul 09, 2014 at 10:40:07PM +0200, Pavel Machek wrote: Fix help text of ext2load and fatload to match code in fs/fs.c Signed-off-by: Pavel Machek pa...@denx.de diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c index 5a4bcc1..2675ae8 100644 --- a/common/cmd_ext2.c +++

[U-Boot] [PATCH 4/4] rpi_b: handle import of environments in files with CRLF as line endings

2014-07-14 Thread Alexander Holler
Use the new option -r for env import. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- include/configs/rpi_b.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/rpi_b.h b/include/configs/rpi_b.h index ff48598..60f2489 100644 --- a/include/configs/rpi_b.h

[U-Boot] [PATCH 2/4] omap3_beagle: handle import of environments in files with CRLF as line endings

2014-07-14 Thread Alexander Holler
Use the new option -r for env import. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- include/configs/omap3_beagle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h index 3782049..9ba031d 100644 ---

[U-Boot] [PATCH 0/4] Add option -r to env import to allow import of text files with CRLF as line endings

2014-07-14 Thread Alexander Holler
Hello, time passed by, the usage of uEnv.txt is now more widespread and some maintainers might be more experienced. So now maybe they understand why it might be a good idea to let Windows users create a *working* uEnv.txt too. So here is my second and last attempt. I've added patches for some

[U-Boot] [PATCH 3/4] am335x_evm: handle import of environments in files with CRLF as line endings

2014-07-14 Thread Alexander Holler
Use the new option -r for env import. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- include/configs/am335x_evm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index a48b386..34d27c6 100644 ---

[U-Boot] [PATCH 1/4] Add option -r to env import to allow import of text files with CRLF as line endings

2014-07-14 Thread Alexander Holler
When this option is enabled, CRLF is treated like LF when importing environments from text files, which means CRs ('\r') in front of LFs ('\n') are just ignored. Drawback of enabling this option is that (maybe exported) variables which have a trailing CR in their content will get imported without

Re: [U-Boot] [PATCH v3] spi, spi_mxc: do not hang in spi_xchg_single

2014-07-14 Thread Jagan Teki
On Mon, Jul 14, 2014 at 1:52 PM, Heiko Schocher h...@denx.de wrote: if status register do never set MXC_CSPICTRL_TC, spi_xchg_single endless loops. Add a timeout here to prevent endless hang. Signed-off-by: Heiko Schocher h...@denx.de Cc: Dirk Behme dirk.be...@gmail.com Cc: Jagannadha

Re: [U-Boot] [PATCH v2 4/5] i.MX6: add enable_spi_clk()

2014-07-14 Thread Jagan Teki
On Sat, Jul 12, 2014 at 9:40 AM, Heiko Schocher h...@denx.de wrote: add enable_spi_clk(), so board code can enable spi clocks. Signed-off-by: Heiko Schocher h...@denx.de Cc: Eric Nelson eric.nel...@boundarydevices.com Cc: Stefano Babic sba...@denx.de --- - changes for v2: - add comment

[U-Boot] [ANN] U-Boot v2014.07 released

2014-07-14 Thread Tom Rini
Hey all, I've pushed v2014.07 out to the repository and tarballs should exist soon. As always, lots of nice little fixes here and there and everywhere. Since I've had a few requests to include some sort of ChangeLog (other than what git spits out), here's what I've come up with: - Improve

[U-Boot] DM, Kconfig and clang changes

2014-07-14 Thread Tom Rini
Hey all, So the release is out, and I want to make sure that some of these big changes get as much testing as we can. Simon, can you please make up a pull request with what you think is ready to go now? Masahiro and Jeroen, can you please make sure patchwork is up to date and perhaps setup a

Re: [U-Boot] DM, Kconfig and clang changes

2014-07-14 Thread Simon Glass
Hi Tom, On 14 July 2014 11:22, Tom Rini tr...@ti.com wrote: Hey all, So the release is out, and I want to make sure that some of these big changes get as much testing as we can. Simon, can you please make up a pull request with what you think is ready to go now? I was hoping to leave

Re: [U-Boot] [ANN] U-Boot v2014.07 released

2014-07-14 Thread Stefan Roese
Hi Tom, On 14.07.2014 19:22, Tom Rini wrote: Hey all, I've pushed v2014.07 out to the repository and tarballs should exist soon. As always, lots of nice little fixes here and there and everywhere. Since I've had a few requests to include some sort of ChangeLog (other than what git spits out),

Re: [U-Boot] DM, Kconfig and clang changes

2014-07-14 Thread Tom Rini
On Mon, Jul 14, 2014 at 11:26:08AM -0600, Simon Glass wrote: Hi Tom, On 14 July 2014 11:22, Tom Rini tr...@ti.com wrote: Hey all, So the release is out, and I want to make sure that some of these big changes get as much testing as we can. Simon, can you please make up a pull

Re: [U-Boot] [ANN] U-Boot v2014.07 released

2014-07-14 Thread Tom Rini
On Mon, Jul 14, 2014 at 07:49:16PM +0200, Stefan Roese wrote: Hi Tom, On 14.07.2014 19:22, Tom Rini wrote: Hey all, I've pushed v2014.07 out to the repository and tarballs should exist soon. As always, lots of nice little fixes here and there and everywhere. Since I've had a few

[U-Boot] ARM: omap: Looking to dynamically setup ECC and nand settings during boot

2014-07-14 Thread Jon Cormier
We have a product based on the 335x that has several different models where the only difference is the nand part. We would like to have a unified u-boot that can dynamically configure the nand's ECC, page size, block size, etc using a spi eeprom containing a model number. Both the UBL and u-boot

Re: [U-Boot] ARMv8 spin-table patches

2014-07-14 Thread York Sun
On 07/14/2014 07:03 AM, Mark Rutland wrote: Unfortunately I don't have an answer to that; the arm64 Linux spin-table documentation and code were all written before I was involved. The unfortunate truth is that a lot of the ARM DT and boot unification work was done somewhat blindly, with many

Re: [U-Boot] [PATCH 3/3] sf: ti_qspi: Enable EDMA for reads in SPL

2014-07-14 Thread Tom Rini
On Sat, Jul 12, 2014 at 06:42:31PM +0530, Jagan Teki wrote: On Sat, Jul 12, 2014 at 2:23 AM, Tom Rini tr...@ti.com wrote: From: Vinothkumar Rajendran vino...@ti.com By default QSPI data through-put in memory mapped mode is ~2.4MB/sec @ 48MHz. Added edma memory copy functionality in spi

Re: [U-Boot] [PATCH] kirkwood: define empty CONFIG_MVGBE_PORTS by default

2014-07-14 Thread Tom Rini
On Fri, Jul 04, 2014 at 06:07:09AM -0700, Prafulla Wadaskar wrote: -Original Message- From: Luka Perkov [mailto:l...@openwrt.org] Sent: 02 July 2014 05:48 To: u-boot@lists.denx.de Cc: l...@openwrt.org; Prafulla Wadaskar; Stefan Roese Subject: [PATCH] kirkwood: define empty

Re: [U-Boot] [ANN] U-Boot v2014.07 released

2014-07-14 Thread Wolfgang Denk
Dear Tom, In message 20140714172218.GE1847@bill-the-cat you wrote: I've pushed v2014.07 out to the repository and tarballs should exist soon. Tarballs aore out; release stats will follow tomorrow. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk

Re: [U-Boot] DM, Kconfig and clang changes

2014-07-14 Thread Wolfgang Denk
Dear Tom, In message 20140714172225.GF1847@bill-the-cat you wrote: So the release is out, and I want to make sure that some of these big changes get as much testing as we can. Please also keep Heiko's MTD/UBI/UBIFS update in mind! Best regards, Wolfgang Denk -- DENX Software Engineering

Re: [U-Boot] [PATCH v1 1/7] TI: armv7: move board specific NAND configs out from ti_armv7_common.h and ti_am335x_common.h

2014-07-14 Thread Tom Rini
On Sat, Jul 05, 2014 at 12:35:11AM +0530, Pekon Gupta wrote: This patch moves some board specific NAND configs: - FROM: generic config files like 'ti_armv7_common.h' and 'ti_am335x_common.h' - TO: individual board config files using these configs. So that each board can independently set

Re: [U-Boot] [PATCH v3 0/9] Add a pre-relocation malloc() implementation

2014-07-14 Thread Tom Rini
On Thu, Jul 10, 2014 at 10:23:24PM -0600, Simon Glass wrote: There has been talk on and off of a pre-relocation malloc() implementation. Driver model needs this so that it can work before relocation. A previous implementation was sent in a v1 series. This implementation works by

Re: [U-Boot] DM, Kconfig and clang changes

2014-07-14 Thread Tom Rini
On Mon, Jul 14, 2014 at 11:20:31PM +0200, Wolfgang Denk wrote: Dear Tom, In message 20140714172225.GF1847@bill-the-cat you wrote: So the release is out, and I want to make sure that some of these big changes get as much testing as we can. Please also keep Heiko's MTD/UBI/UBIFS update

[U-Boot] [PATCH 0/6] Add some missing buildman features and deprecate MAKEALL

2014-07-14 Thread Simon Glass
Buildman has been around for a little over a year and is used by a fair number of U-Boot developers. However quite a few people still use MAKEALL. Buildman was intended to replace MAKEALL, so perhaps now is a good time to start that process. The reasons to deprecate MAKEALL are: - We don't want

[U-Boot] [PATCH 2/6] buildman: Avoid retrying a build if it definitely failed

2014-07-14 Thread Simon Glass
After a build fails buildman will reconfigure and try again, if it did not reconfigure before the build. However it doesn't actually keep track of whether it did reconfigure on the previous attempt. Fix that logic to avoid a pointless rebuild. This speeds things up quite a bit for failing builds.

[U-Boot] [PATCH 1/6] buildman: Add -F flag to retry failed builds

2014-07-14 Thread Simon Glass
Generally a build failure with a particular commit cannot be fixed except by changing that commit. Changing the commit will automatically cause buildman to retry when you run it again: buildman sees that the commit hash is different and that it has no previous build result for the new commit hash.

[U-Boot] [PATCH 3/6] buildman: Add -C option to force a reconfigure for each commit

2014-07-14 Thread Simon Glass
Normally buildman wil try to configure U-Boot for a particular board on the first commit that it builds in a series. Subsequent commits are built without reconfiguring which normally works. Where it doesn't, buildman automatically reconfigures and retries. To fully emulate the way MAKEALL works,

[U-Boot] [PATCH 5/6] buildman: Add some notes about moving from MAKEALL

2014-07-14 Thread Simon Glass
For those used to MAKEALL, buildman seems strange. Add some notes to ease the transition. Signed-off-by: Simon Glass s...@chromium.org --- tools/buildman/README | 92 +++ 1 file changed, 92 insertions(+) diff --git a/tools/buildman/README

[U-Boot] [PATCH 6/6] RFC: Deprecate MAKEALL

2014-07-14 Thread Simon Glass
Since buildman now includes most of the features of MAKEALL it is proabably time to talk about deprecating MAKEALL. Comments welcome. Signed-off-by: Simon Glass s...@chromium.org --- MAKEALL | 4 1 file changed, 4 insertions(+) diff --git a/MAKEALL b/MAKEALL index 020e65f..6443814 100755

[U-Boot] [PATCH 4/6] buildman: Support in-tree builds

2014-07-14 Thread Simon Glass
At present buildman always builds out-of-tree, that is it uses a separate output directory from the source directory. Normally this is what you want, but it is important that in-tree builds work also. Some Makefile changes may break this. Add a -i option to tell buildman to use in-tree builds, so

Re: [U-Boot] [PATCH v3 0/9] Add a pre-relocation malloc() implementation

2014-07-14 Thread Simon Glass
Hi Tom, On 14 July 2014 16:28, Tom Rini tr...@ti.com wrote: On Thu, Jul 10, 2014 at 10:23:24PM -0600, Simon Glass wrote: There has been talk on and off of a pre-relocation malloc() implementation. Driver model needs this so that it can work before relocation. A previous implementation

[U-Boot] [PATCH 0/25] Introduce driver model support for SPI, SPI flash, cros_ec

2014-07-14 Thread Simon Glass
Up until now driver model has not been used for any type of bus. Buses have some unique properties and needs, so we cannot claim that driver model can cover all the common cases unless we have converted a bus over to driver model. SPI is a reasonable choice for this next step. It has a fairly

[U-Boot] [PATCH 12/25] dm: spi: Add documentation on how to convert over SPI drivers

2014-07-14 Thread Simon Glass
This README is intended to help maintainers move their SPI drivers over to driver model. It works through the required steps with an example. Signed-off-by: Simon Glass s...@chromium.org --- doc/driver-model/spi-howto.txt | 570 + 1 file changed, 570

[U-Boot] [PATCH 10/25] dm: spi: Adjust cmd_spi to work with driver model

2014-07-14 Thread Simon Glass
Driver model uses a different way to find the SPI bus and slave from the numbered devices given on the command line. Adjust the code to suit. Signed-off-by: Simon Glass s...@chromium.org --- common/cmd_spi.c | 34 +++--- 1 file changed, 27 insertions(+), 7

[U-Boot] [PATCH 04/25] dm: spi: Move cmd device code into its own function

2014-07-14 Thread Simon Glass
In preparation for changing the error handling in this code for driver model, move it into its own function. Signed-off-by: Simon Glass s...@chromium.org --- common/cmd_spi.c | 53 - 1 file changed, 32 insertions(+), 21 deletions(-) diff

[U-Boot] [PATCH 05/25] spi: Add brackets and tidy defines in spi.h

2014-07-14 Thread Simon Glass
Some of the #defines in spi.h are not bracketed. To avoid future mistakes add brackets. Also add an explanatory comment for SPI_CONN_DUAL_... Signed-off-by: Simon Glass s...@chromium.org --- include/spi.h | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff

[U-Boot] [PATCH 02/25] sandbox: config: Enable all SPI flash chips

2014-07-14 Thread Simon Glass
Sandbox may as well support everything. This increases the amount of code that is built/tested by sandbox, and also provides access to all the supported SPI flash devices. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/sandbox.h | 8 +++- 1 file changed, 7 insertions(+), 1

[U-Boot] [PATCH 06/25] dm: spi: Add a uclass for SPI

2014-07-14 Thread Simon Glass
Add a uclass which provides access to SPI buses and includes operations required by SPI. For a time driver model will need to co-exist with the legacy SPI interface so some parts of the header file are changed depending on which is in use. The exports are adjusted also since some functions are

[U-Boot] [PATCH 01/25] sandbox: Convert SPI flash emulation to use sf_params

2014-07-14 Thread Simon Glass
At present sandbox has its own table of supported SPI flash chips. Now that the SPI flash system is fully consolidated and has its own list, sandbox should use that. This enables us to expand the number of chips that sandbox supports. Signed-off-by: Simon Glass s...@chromium.org ---

[U-Boot] [PATCH 07/25] dm: sandbox: Add a SPI emulation uclass

2014-07-14 Thread Simon Glass
U-Boot includes a SPI emulation driver already but it is not explicit, and is hidden in the SPI flash code. Conceptually with sandbox's SPI implementation we have a layer which creates SPI bus transitions and a layer which interprets them, currently only for SPI flash. The latter is actually an

[U-Boot] [PATCH 08/25] dm: Remove spi_init() from board_r.c when using driver model

2014-07-14 Thread Simon Glass
Driver model does its own init, so we don't need this. There is also a call in board_f.c but it is only enabled by CONFIG_HARD_SPI. It is easy enough to disable that option when converting boards which use it to driver model. Signed-off-by: Simon Glass s...@chromium.org --- common/board_r.c |

[U-Boot] [PATCH 17/25] dm: sf: Add a uclass for SPI flash

2014-07-14 Thread Simon Glass
Add a driver model uclass for SPI flash which supports the common operations (read, write, erase). Since we must keep support for the non-dm interface, some modification of the spi_flash header is required. CONFIG_DM_SPI_FLASH is used to enable driver model for SPI flash. Signed-off-by: Simon

[U-Boot] [PATCH 11/25] dm: sandbox: spi: Move to driver model

2014-07-14 Thread Simon Glass
Adjust the sandbox SPI driver to support driver model and move sandbox over to driver model for SPI. Signed-off-by: Simon Glass s...@chromium.org --- arch/sandbox/include/asm/state.h | 1 + drivers/spi/sandbox_spi.c| 198 ++-

[U-Boot] [PATCH 09/25] dm: Add spi.h header to a few files

2014-07-14 Thread Simon Glass
Some files are using SPI functions but not explitly including the SPI header file. Fix this, since driver model needs it. Signed-off-by: Simon Glass s...@chromium.org --- common/env_sf.c | 1 + drivers/mtd/spi/sf_params.c | 1 + 2 files changed, 2 insertions(+) diff --git

[U-Boot] [PATCH 14/25] sf: Add an empty entry to the parameter list

2014-07-14 Thread Simon Glass
The list is supposed to be terminated with a NULL name, but is not. If a board probes a chip which does not appear in the table, U-Boot will crash (at least on sandbox). Signed-off-by: Simon Glass s...@chromium.org --- drivers/mtd/spi/sf_params.c | 1 + 1 file changed, 1 insertion(+) diff

[U-Boot] [PATCH 03/25] sandbox: dts: Add a SPI device and cros_ec device

2014-07-14 Thread Simon Glass
Add a SPI device which can be used for testing SPI flash features in sandbox. Also add a cros_ec device since with driver model the Chrome OS EC emulation will not otherwise be available. Signed-off-by: Simon Glass s...@chromium.org --- arch/sandbox/dts/sandbox.dts| 25

[U-Boot] [PATCH 13/25] dm: exynos: Convert SPI to driver model

2014-07-14 Thread Simon Glass
Move the exynos SPI driver over to driver model. This removes quite a bit of boilerplate from the driver, although it adds some for driver model. A few device tree additions are needed to make the SPI flash available. Signed-off-by: Simon Glass s...@chromium.org ---

[U-Boot] [PATCH 22/25] dm: sf: Add tests for SPI flash

2014-07-14 Thread Simon Glass
Add a simple test for SPI that uses SPI flash. It operates by creating a SPI flash file, and using the 'sf test' command to test that all operations work correctly. Signed-off-by: Simon Glass s...@chromium.org --- test/dm/Makefile | 1 + test/dm/sf.c | 43

[U-Boot] [PATCH 24/25] dm: sandbox: cros_ec: Move sandbox cros_ec to driver module

2014-07-14 Thread Simon Glass
Adjust the sandbox cros_ec emulation driver to work with driver model, and switch over to driver model for sandbox cros_ec. Signed-off-by: Simon Glass s...@chromium.org --- drivers/misc/cros_ec_sandbox.c | 90 +++--- include/configs/sandbox.h | 1 + 2

[U-Boot] [PATCH 23/25] dm: cros_ec: Add support for driver model

2014-07-14 Thread Simon Glass
Add support for driver model if enabled. This involves minimal changes to the code, mostly just plumbing around the edges. Signed-off-by: Simon Glass s...@chromium.org --- common/cros_ec.c | 30 ++ drivers/misc/cros_ec.c | 122

[U-Boot] [PATCH 18/25] dm: Convert spi_flash_probe() and 'sf probe' to use driver model

2014-07-14 Thread Simon Glass
We want the SPI flash probing feature to operate as a standard driver. Add a driver for the basic probing feature used by most boards. This will be activated by device_probe() as with any other driver. The 'sf probe' command currently keeps track of the SPI slave that it last used. This doesn't

[U-Boot] [PATCH 19/25] dm: sf: sandbox: Convert SPI flash driver to driver model

2014-07-14 Thread Simon Glass
Convert sandbox's spi flash emulation driver to use driver model. Signed-off-by: Simon Glass s...@chromium.org --- arch/sandbox/include/asm/spi.h | 13 -- arch/sandbox/include/asm/state.h | 1 - drivers/mtd/spi/sandbox.c| 326 +--

[U-Boot] [PATCH 21/25] dm: spi: Add tests

2014-07-14 Thread Simon Glass
These tests use SPI flash (and the sandbox emulation) to operate. Signed-off-by: Simon Glass s...@chromium.org --- test/dm/Makefile | 1 + test/dm/spi.c| 47 +++ 2 files changed, 48 insertions(+) create mode 100644 test/dm/spi.c diff --git

[U-Boot] [PATCH 20/25] dm: exynos: config: Use driver model for SPI flash

2014-07-14 Thread Simon Glass
Use driver model for exynos5 board SPI flash. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/exynos5-dt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/exynos5-dt.h b/include/configs/exynos5-dt.h index 873dd63..1a2e9a7 100644 ---

[U-Boot] [PATCH 16/25] spi: Use error return value in sf_ops

2014-07-14 Thread Simon Glass
Adjust spi_flash_probe_slave() to return an error value instead of a pointer so we get the correct error return. Have the caller allocate memory for spi_flash to simplify error handling, and also so that driver model can use its existing allocated memory. Add a spi.h include in the sf_params

[U-Boot] [PATCH 15/25] sf: Tidy up public and private header files

2014-07-14 Thread Simon Glass
Since spi_flash.h is supposed to be the public API for SPI flash, move private things to sf_internal.h. Also tidy up a few comment nits. Signed-off-by: Simon Glass s...@chromium.org --- board/buffalo/lsxl/lsxl.c | 3 +- common/cmd_sf.c| 1 + drivers/mtd/spi/ramtron.c

[U-Boot] [PATCH 25/25] dm: exynos: cros_ec: Move cros_ec_spi to driver model

2014-07-14 Thread Simon Glass
Adjust this driver to use driver model and move smdk5420 boards over to use it. Signed-off-by: Simon Glass s...@chromium.org --- drivers/misc/cros_ec_spi.c | 68 -- include/configs/smdk5420.h | 1 + 2 files changed, 60 insertions(+), 9 deletions(-)

Re: [U-Boot] omap: Looking to dynamically setup ECC and nand settings during boot

2014-07-14 Thread Gupta, Pekon
Hi Jon, From: Jon Cormier [mailto:jcorm...@criticallink.com] We have a product based on the 335x that has several different models where the only difference is the nand part.  We would like to have a unified u-boot that can dynamically configure the nand's ECC, page size, block size, etc

Re: [U-Boot] [PATCH v2 4/9] Add a simple malloc() implementation for pre-relocation

2014-07-14 Thread Graeme Russ
Hi Simon, Nice to see this being tackled after all the DM discussions I got involved in a long time ago (in a galaxy far far away...) I think we can save a few bytes and simplify the code if we define only the base address and current pointer in global_data.h #ifdef CONFIG_SYS_MALLOC_F_LEN

Re: [U-Boot] [ANN] U-Boot v2014.07 released

2014-07-14 Thread Wolfgang Denk
Dear Tom, In message 20140714172218.GE1847@bill-the-cat you wrote: I've pushed v2014.07 out to the repository and tarballs should exist soon. Tarball is on the FTP server. Here are the release statistics; for full detail please see [1]: [1] http://www.denx.de/wiki/U-Boot/UbootStat_2014_07