[U-Boot] fs/fat alignment

2012-03-03 Thread Eric Nelson
Note that checkpatch fails on this patch with the following warning, but I'm not sure how to resolve it. Nothing else in the U-Boot code base seems to use __align() although it's defined in include/linux/compiler-gcc.h. #46: FILE: fs/fat/fat.c:432: +__attribute__ ((__aligned__

[U-Boot] fs/fat: align disk buffers on cache line to enable DMA and cache

2012-03-03 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- fs/fat/fat.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 1f95eb4..c924ec0 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -31,6 +31,7 @@ #include fat.h

[U-Boot] [PATCH] i.MX: fsl_esdhc: allow use with cache enabled.

2012-03-03 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- drivers/mmc/fsl_esdhc.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index a2f35e3..8e4bcef 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers

Re: [U-Boot] fs/fat alignment

2012-03-03 Thread Eric Nelson
On 03/03/2012 04:50 PM, Wolfgang Denk wrote: Dear Eric Nelson, In message1330812338-25820-1-git-send-email-eric.nel...@boundarydevices.com you wrote: Note that checkpatch fails on this patch with the following warning, but I'm not sure how to resolve it. Nothing else in the U-Boot code

[U-Boot] i.MX6: mx6qsabrelite: allow use with Freescale 2.6.38 kernels

2012-03-02 Thread Eric Nelson
This series of patches is needed to allow main-line U-Boot to be used with Freescale's Linux 2.6.38 non-DT kernel releases. These releases currently require at least the machine type and revision atag entries and are configured to load boot scripts from the ext3 filesystem.

[U-Boot] [PATCH 1/3] i.MX6: mx6qsabrelite: add CONFIG_REVISION_TAG

2012-03-02 Thread Eric Nelson
Freescale 2.6.38 (Non-DT) kernels require the revision atag to enable the VPU. Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- board/freescale/mx6qsabrelite/mx6qsabrelite.c |7 +++ include/configs/mx6qsabrelite.h |1 + 2 files changed, 8 insertions

[U-Boot] [PATCH 2/3] i.MX6: mx6qsabrelite: add MACH_TYPE_MX6Q_SABRELITE

2012-03-02 Thread Eric Nelson
Allow non-dt kernels to boot Signed-off-by: Troy Kisky troy.ki...@boundarydevices.com --- board/freescale/mx6qsabrelite/mx6qsabrelite.c |6 -- include/configs/mx6qsabrelite.h |1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 3/3] i.MX6: mx6qsabrelite: add ext2 support

2012-03-02 Thread Eric Nelson
Current Ubuntu releases from Freescale contain a boot script in ext3 filesystem. Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- include/configs/mx6qsabrelite.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include

[U-Boot] [PATCH 0/4] Add preliminary cache support to i.MX6

2012-03-02 Thread Eric Nelson
This series of patches defines the prerequisites for cache support on i.MX6 to allow further driver development to occur. It does not enable the use of the data cache by default. To enable data cache, comment out this line in mx6qsabrelite.h or mx6qarm2.h: #define CONFIG_SYS_DCACHE_OFF

[U-Boot] [PATCH 1/4] i.MX6: define CACHELINE_SIZE

2012-03-02 Thread Eric Nelson
--- arch/arm/include/asm/arch-mx6/imx-regs.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include/asm/arch-mx6/imx-regs.h index 6a200bb..3e5c4c2 100644 --- a/arch/arm/include/asm/arch-mx6/imx-regs.h +++

[U-Boot] [PATCH 3/4] i.MX6: implement enable_caches()

2012-03-02 Thread Eric Nelson
disabled by default until drivers are fixed Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- arch/arm/cpu/armv7/mx6/soc.c|8 include/configs/mx6qarm2.h |2 ++ include/configs/mx6qsabrelite.h |2 ++ 3 files changed, 12 insertions(+), 0 deletions

[U-Boot] [PATCH 4/4] i.MX6: mx6qsabrelite: add cache commands if cache is enabled

2012-03-02 Thread Eric Nelson
--- include/configs/mx6qsabrelite.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 3bd9bdb..a5dae73 100644 --- a/include/configs/mx6qsabrelite.h +++ b/include/configs/mx6qsabrelite.h @@ -212,4

[U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-02 Thread Eric Nelson
ensure that transmit and receive buffers are cache-line aligned invalidate cache after each packet received flush cache before transmitting Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- drivers/net/fec_mxc.c | 248

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-02 Thread Eric Nelson
Whoops. Forgot to add the origin of this patch to the commit message: http://lists.denx.de/pipermail/u-boot/2012-February/117695.html Thanks Marek. On 03/02/2012 04:06 PM, Eric Nelson wrote: ensure that transmit and receive buffers are cache-line aligned invalidate

Re: [U-Boot] [PATCH 0/4] Add preliminary cache support to i.MX6

2012-03-02 Thread Eric Nelson
On 03/02/2012 04:06 PM, Eric Nelson wrote: This series of patches defines the prerequisites for cache support on i.MX6 to allow further driver development to occur. It does not enable the use of the data cache by default. To enable data cache, comment out this line in mx6qsabrelite.h

Re: [U-Boot] i.MX6: mx6qsabrelite: allow use with Freescale 2.6.38 kernels

2012-03-02 Thread Eric Nelson
On 03/02/2012 04:25 PM, Wolfgang Denk wrote: Dear Eric Nelson, In message1330728909-12203-1-git-send-email-eric.nel...@boundarydevices.com you wrote: This series of patches is needed to allow main-line U-Boot to be used with Freescale's Linux 2.6.38 non-DT kernel releases. These releases

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-02 Thread Eric Nelson
On 03/02/2012 04:06 PM, Eric Nelson wrote: ensure that transmit and receive buffers are cache-line aligned invalidate cache after each packet received flush cache before transmitting Signed-off-by: Eric Nelsoneric.nel...@boundarydevices.com --- drivers/net/fec_mxc.c

Re: [U-Boot] [PATCH 2/4] net: fec_mxc: allow use with cache enabled

2012-03-02 Thread Eric Nelson
broken by this. M Not at all. I just wanted to get it out there along with the dcache patch so we have something to test each of the drivers against. On 03/02/2012 04:06 PM, Eric Nelson wrote: ensure that transmit and receive buffers are cache-line aligned invalidate

[U-Boot] [PATCH] i.MX6: mx6qsabrelite: Add keypress support

2012-03-02 Thread Eric Nelson
This patch adds support for the GPIO keyboard used on MX6Q SabreLite. This is generally used for invoking Android recovery mode in response to a long press of volume key down during boot. This can be tested by a boot script like so: if keypress voldown sleep 1 keypress voldown ; then

Re: [U-Boot] [PATCH] i.MX6: mx6qsabrelite: Add keypress support

2012-03-02 Thread Eric Nelson
On 03/02/2012 05:00 PM, Eric Nelson wrote: This patch adds support for the GPIO keyboard used on MX6Q SabreLite. This is generally used for invoking Android recovery mode in response to a long press of volume key down during boot. This can be tested by a boot script like so: if keypress

[U-Boot] [PATCH] i.MX6: mx6q_sabrelite: add SATA bindings

2012-03-02 Thread Eric Nelson
This patch requires Stefano's driver for MX5/MX6. http://lists.denx.de/pipermail/u-boot/2012-February/118530.html Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- arch/arm/include/asm/arch-mx6/imx-regs.h | 11 + board/freescale/mx6qsabrelite/mx6qsabrelite.c

Re: [U-Boot] ARM: Update mach-types

2012-02-28 Thread Eric Nelson
On 02/28/2012 02:28 AM, Fabio Estevam wrote: On Tue, Feb 28, 2012 at 3:50 AM, Dirk Behmedirk.be...@de.bosch.com wrote: Just out of curiosity: Why do you need that? It was my understanding that with recent U-Boot and Kernel on SabreLite DeviceTree is the way to go? And this doesn't need the

[U-Boot] [PATCH] mx6q: mx6qsabrelite: setup_spi() should be called in board_init to allow use for environment

2012-02-26 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- board/freescale/mx6qsabrelite/mx6qsabrelite.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/board/freescale/mx6qsabrelite/mx6qsabrelite.c b/board/freescale/mx6qsabrelite/mx6qsabrelite.c index db1bea9

Re: [U-Boot] [PATCH V6 - Part 3 - 0/2] SPI flash enhancements: allow default bus and chip-selects

2012-02-02 Thread Eric Nelson
On 02/02/2012 02:18 AM, Stefano Babic wrote: On 01/02/2012 20:31, Eric Nelson wrote: Hi Mike, My comment was the inverse: I can't test just the 'sf probe' updates unless I have the core SPI flash support for mx6qsabrelite. AFAIK, the update to cmd_sf doesn't have any dependencies

Re: [U-Boot] [PATCH V6 - Part 3 - 0/2] SPI flash enhancements: allow default bus and chip-selects

2012-02-01 Thread Eric Nelson
On 02/01/2012 10:00 AM, Mike Frysinger wrote: On Wednesday 01 February 2012 06:30:04 Stefano Babic wrote: On 31/01/2012 20:14, Eric Nelson wrote: On 01/31/2012 11:11 AM, Mike Frysinger wrote: On Tuesday 31 January 2012 12:52:06 Eric Nelson wrote: Patch 1 modifies the 'sf' command to allow

Re: [U-Boot] [PATCH 0/3] mxc_spi refactoring (for mx6q and mx6qsabrelite)

2012-01-31 Thread Eric Nelson
On 01/30/2012 11:51 PM, Jason Liu wrote: Eric, 2012/1/31 Eric Nelsoneric.nel...@boundarydevices.com: This patch set refactors mxc_spi as described in http://lists.denx.de/pipermail/u-boot/2010-March/068791.html and requested in

Re: [U-Boot] Can u-Boot Ran from RAM?

2012-01-31 Thread Eric Nelson
On 01/30/2012 09:07 PM, Bud Miljkovic wrote: Hi there, While getting acquainted with possible u-Boot development issues, I read FAQ 14.2.1. Can U-Boot be configured such that it can be started in RAM? and was puzzled to learn that u-Boot cannot run from RAM. Considering a custom platform,

Re: [U-Boot] [PATCH 3/3] mx6q: mx6qsabrelite: Add ECSPI support to the Sabrelite platform

2012-01-31 Thread Eric Nelson
On 01/31/2012 02:31 AM, Jason Hui wrote: Eric, On Tue, Jan 31, 2012 at 3:52 AM, Eric Nelson eric.nel...@boundarydevices.com wrote: Signed-off-by: Eric Nelsoneric.nel...@boundarydevices.com Acked-by: Dirk Behmedirk.be...@de.bosch.com Acked-by: Stefano Babicsba...@denx.de --- board/freescale

Re: [U-Boot] [PATCH 0/2] SPI flash enhancements: allow default bus and chip-selects

2012-01-31 Thread Eric Nelson
On 01/31/2012 08:16 AM, Mike Frysinger wrote: On Monday 30 January 2012 15:02:24 Eric Nelson wrote: Patch 1 modifies the 'sf' command to allow a default bus and chip-select to be specified by board headers. This allows a bare 'sf' probe command: U-Boot sf probe instead of the more

[U-Boot] MX6q SPI refactoring and related patches

2012-01-31 Thread Eric Nelson
I'm about to send an updated set of patches for mxc_spi re-factoring and the related cleanup stemming from the discussions in http://lists.denx.de/pipermail/u-boot/2012-January/116816.html These are split into multiple patch sets as suggested by Dirk:

[U-Boot] [PATCH V6 - Part 2 - 0/3] mxc_spi refactoring (for mx6q and mx6qsabrelite)

2012-01-31 Thread Eric Nelson
simply moves the conditional parts of mxc_spi.c into the respective CPU-specific imx-regs.h files. Patch 2 adds general support for SPI to the i.MX6. Patch 3 adds support to the mx6qsabrelite board Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com

[U-Boot] [PATCH V6 - Part 1 - 1/1] mx6q: define GPIO macros for translating between ordinals and port:index

2012-01-31 Thread Eric Nelson
to ordinal value from port:index GPIO_PORT() returns the port of an ordinal value GPIO_INDEX() returns the index or offset of the ordinal. Discussion on the mailing list at http://lists.denx.de/pipermail/u-boot/2012-January/116927.html Signed-off-by: Eric Nelson eric.nel

[U-Boot] [PATCH V6 - Part 3 - 1/2] sf command: allow default bus and chip selects

2012-01-31 Thread Eric Nelson
of U-Boot sf probe 0x5300 Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- common/cmd_sf.c | 37 + 1 files changed, 21 insertions(+), 16 deletions(-) diff --git a/common/cmd_sf.c b/common/cmd_sf.c index 612fd18..98e4162 100644 --- a/common

[U-Boot] [PATCH V6 - Part 3 - 0/2] SPI flash enhancements: allow default bus and chip-selects

2012-01-31 Thread Eric Nelson
to specify GP3:19 on SabreLite: U-Boot sf probe 0x5300 Patch 2 provides a description of usage and configuration of CONFIG_CMD_SF. Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com ___ U-Boot mailing list U-Boot@lists.denx.de http

[U-Boot] [PATCH V6 - Part 2 - 3/3] mx6q: mx6qsabrelite: Add ECSPI support to the Sabrelite platform

2012-01-31 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include

[U-Boot] [PATCH V6 - Part 2 - 2/3] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-31 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- arch/arm/include/asm/arch-mx6/imx-regs.h | 44 ++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch

[U-Boot] [PATCH V6 - Part 2 - 1/3] mxc_spi: move machine specifics into CPU headers

2012-01-31 Thread Eric Nelson
... (MX5x, MX6x) Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- arch/arm/include/asm/arch-mx31/imx-regs.h | 27 arch/arm/include/asm/arch-mx35/imx-regs.h | 25 arch/arm/include/asm

[U-Boot] [PATCH V6 - Part 5 - 1/1] mx6q: mx6qsabrelite: Conditionally define macros for environment in serial flash

2012-01-31 Thread Eric Nelson
as chip select the controller's chip selects as well as an external GPIO. The LSB byte has the value of the internal chip select, the highest (thought as 16-bit value) contains the GPIO number. The GPIO used on Sabre Lite is GP3:19 == 83. Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com

[U-Boot] [PATCH V6 - Part 4 - 1/1] mx6q: mx6qsabrelite: Provide default serial flash bus and chip-select

2012-01-31 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- board/freescale/mx6qsabrelite/mx6qsabrelite.c |2 +- include/configs/mx6qsabrelite.h |2 ++ 2 files changed, 3 insertions(+), 1

[U-Boot] [PATCH V6 - Part 2 - 2/2] README: Add description of SPI Flash (SF) command configuration

2012-01-31 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- README | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/README b/README index 9d713e8..4dbebcb 100644 --- a/README +++ b/README @@ -809,6 +809,7 @@ The following options need

Re: [U-Boot] [PATCH V6 - Part 3 - 0/2] SPI flash enhancements: allow default bus and chip-selects

2012-01-31 Thread Eric Nelson
On 01/31/2012 11:11 AM, Mike Frysinger wrote: On Tuesday 31 January 2012 12:52:06 Eric Nelson wrote: Patch 1 modifies the 'sf' command to allow a default bus and chip-select to be specified by board headers. This allows a bare 'sf' probe command: U-Boot sf probe instead of the more

Re: [U-Boot] [PATCH V4 6/7] mx6q: mx6qsabrelite: Provide default serial flash bus and chip-select

2012-01-30 Thread Eric Nelson
On 01/29/2012 07:36 PM, Marek Vasut wrote: On 01/29/2012 03:16 PM, Marek Vasut wrote: On 01/29/2012 01:11 PM, Marek Vasut wrote: On 01/29/2012 12:18 PM, Marek Vasut wrote: Signed-off-by: Eric Nelsoneric.nel...@boundarydevices.com Acked-by: Dirk Behmedirk.be...@de.bosch.com Acked-by: Stefano

Re: [U-Boot] [PATCH V4 6/7] mx6q: mx6qsabrelite: Provide default serial flash bus and chip-select

2012-01-30 Thread Eric Nelson
On 01/30/2012 11:35 AM, Dirk Behme wrote: On 30.01.2012 19:10, Eric Nelson wrote: On 01/29/2012 07:36 PM, Marek Vasut wrote: On 01/29/2012 03:16 PM, Marek Vasut wrote: On 01/29/2012 01:11 PM, Marek Vasut wrote: On 01/29/2012 12:18 PM, Marek Vasut wrote: Signed-off-by: Eric Nelsoneric.nel

[U-Boot] [PATCH 2/3] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-30 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- arch/arm/include/asm/arch-mx6/imx-regs.h | 44 ++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch

[U-Boot] [PATCH 0/3] mxc_spi refactoring (for mx6q and mx6qsabrelite)

2012-01-30 Thread Eric Nelson
This patch set refactors mxc_spi as described in http://lists.denx.de/pipermail/u-boot/2010-March/068791.html and requested in http://lists.denx.de/pipermail/u-boot/2012-January/116023.html in order to add support for the MX6Q in general and the mx6qsabrelite specifically. Patch 1

[U-Boot] [PATCH 1/3] mxc_spi: move machine specifics into CPU headers

2012-01-30 Thread Eric Nelson
... (MX5x, MX6x) Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- arch/arm/include/asm/arch-mx31/imx-regs.h | 27 arch/arm/include/asm/arch-mx35/imx-regs.h | 25 arch/arm/include/asm

[U-Boot] [PATCH 3/3] mx6q: mx6qsabrelite: Add ECSPI support to the Sabrelite platform

2012-01-30 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include

[U-Boot] [PATCH 0/2] SPI flash enhancements: allow default bus and chip-selects

2012-01-30 Thread Eric Nelson
to specify GP3:19 on SabreLite: U-Boot sf probe 0x5300 Patch 2 provides a description of usage and configuration of CONFIG_CMD_SF. Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com ___ U-Boot mailing list U-Boot@lists.denx.de http

[U-Boot] [PATCH 2/2] README: Add description of SPI Flash (SF) command configuration

2012-01-30 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- README | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/README b/README index 9d713e8..4dbebcb 100644 --- a/README +++ b/README @@ -809,6 +809,7 @@ The following options need

[U-Boot] [PATCH 1/2] sf command: allow default bus and chip selects

2012-01-30 Thread Eric Nelson
of U-Boot sf probe 0x5300 Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- common/cmd_sf.c | 37 + 1 files changed, 21 insertions(+), 16 deletions(-) diff --git a/common/cmd_sf.c b/common/cmd_sf.c index 612fd18..98e4162 100644 --- a/common

[U-Boot] [PATCH] mx6q: mx6qsabrelite: Provide default serial flash bus and chip-select

2012-01-30 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- include/configs/mx6qsabrelite.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include

[U-Boot] [PATCH] mx6q: mx6qsabrelite: Conditionally define macros for environment in serial flash

2012-01-30 Thread Eric Nelson
The default settings store the persistent environment on SD card and not serial flash (SPI NOR). To use SPI NOR to save the environment instead of SD card, edit include/configs/mx6qsabrelite.h and - undefine CONFIG_ENV_IS_IN_MMC - define CONFIG_ENV_IS_IN_SPI_FLASH The SPI driver can take as

[U-Boot] [PATCH V4 0/7] mxc_spi refactoring (for mx6q and mx6qsabrelite)

2012-01-29 Thread Eric Nelson
This patch set refactors mxc_spi as described in http://lists.denx.de/pipermail/u-boot/2010-March/068791.html and requested in http://lists.denx.de/pipermail/u-boot/2012-January/116023.html in order to add support for the MX6Q in general and the mx6qsabrelite specifically. Patch 1 simply

[U-Boot] [PATCH V4 0/7] mxc_spi refactoring (for mx6q and mx6qsabrelite)

2012-01-29 Thread Eric Nelson
This patch set refactors mxc_spi as described in http://lists.denx.de/pipermail/u-boot/2010-March/068791.html and requested in http://lists.denx.de/pipermail/u-boot/2012-January/116023.html in order to add support for the MX6Q in general and the mx6qsabrelite specifically. Patch 1

[U-Boot] [PATCH V4 3/7] mx6q: mx6qsabrelite: Add ECSPI support to the Sabrelite platform

2012-01-29 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include

[U-Boot] [PATCH V4 4/7] sf command: allow default bus and chip selects

2012-01-29 Thread Eric Nelson
This patch allows a board configuration file to provide default bus and chip-selects for SPI flash so that first argument to the 'sf' command is optional. On boards that use the mxc_spi driver and a GPIO for chip select, this allows a much simpler command line: U-Boot sf probe instead of

[U-Boot] [PATCH V4 1/7] mxc_spi: move machine specifics into CPU headers

2012-01-29 Thread Eric Nelson
... (MX5x, MX6x) Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- arch/arm/include/asm/arch-mx31/imx-regs.h | 27 arch/arm/include/asm/arch-mx35/imx-regs.h | 25 arch/arm/include/asm

[U-Boot] [PATCH V4 2/7] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-29 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- arch/arm/include/asm/arch-mx6/imx-regs.h | 44 ++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch

[U-Boot] [PATCH V4 5/7] README: Add description of SPI Flash (SF) command configuration

2012-01-29 Thread Eric Nelson
--- README | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/README b/README index f6ab85c..1a98915 100644 --- a/README +++ b/README @@ -800,6 +800,7 @@ The following options need to be configured: (requires

[U-Boot] [PATCH V4 6/7] mx6q: mx6qsabrelite: Provide default serial flash bus and chip-select

2012-01-29 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- include/configs/mx6qsabrelite.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include

[U-Boot] [PATCH V4 7/7] mx6q: mx6qsabrelite: Conditionally define macros for environment in serial flash

2012-01-29 Thread Eric Nelson
The default settings store the persistent environment on SD card and not serial flash (SPI NOR). To use SPI NOR to save the environment instead of SD card, edit include/configs/mx6qsabrelite.h and - undefine CONFIG_ENV_IS_IN_MMC - define CONFIG_ENV_IS_IN_SPI_FLASH The SPI driver can take as

Re: [U-Boot] [PATCH V4 5/7] README: Add description of SPI Flash (SF) command configuration

2012-01-29 Thread Eric Nelson
On 01/29/2012 12:17 PM, Marek Vasut wrote: --- README | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/README b/README index f6ab85c..1a98915 100644 --- a/README +++ b/README @@ -800,6 +800,7 @@ The following options need to be configured:

Re: [U-Boot] [PATCH V4 1/7] mxc_spi: move machine specifics into CPU headers

2012-01-29 Thread Eric Nelson
On 01/29/2012 12:16 PM, Marek Vasut wrote: Move (E)CSPI register declarations into the imx-regs.h files for each supported CPU Introduce two new macros to control conditional setup MXC_CSPI - Used for processors with the Configurable Serial Peripheral Interface (MX3x) MXC_ECSPI - For

Re: [U-Boot] [PATCH V4 6/7] mx6q: mx6qsabrelite: Provide default serial flash bus and chip-select

2012-01-29 Thread Eric Nelson
On 01/29/2012 12:18 PM, Marek Vasut wrote: Signed-off-by: Eric Nelsoneric.nel...@boundarydevices.com Acked-by: Dirk Behmedirk.be...@de.bosch.com Acked-by: Stefano Babicsba...@denx.de --- include/configs/mx6qsabrelite.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git

Re: [U-Boot] [PATCH V4 6/7] mx6q: mx6qsabrelite: Provide default serial flash bus and chip-select

2012-01-29 Thread Eric Nelson
On 01/29/2012 01:11 PM, Marek Vasut wrote: On 01/29/2012 12:18 PM, Marek Vasut wrote: Signed-off-by: Eric Nelsoneric.nel...@boundarydevices.com Acked-by: Dirk Behmedirk.be...@de.bosch.com Acked-by: Stefano Babicsba...@denx.de --- include/configs/mx6qsabrelite.h |3 +++ 1 files

Re: [U-Boot] [PATCH V4 6/7] mx6q: mx6qsabrelite: Provide default serial flash bus and chip-select

2012-01-29 Thread Eric Nelson
On 01/29/2012 03:16 PM, Marek Vasut wrote: On 01/29/2012 01:11 PM, Marek Vasut wrote: On 01/29/2012 12:18 PM, Marek Vasut wrote: Signed-off-by: Eric Nelsoneric.nel...@boundarydevices.com Acked-by: Dirk Behmedirk.be...@de.bosch.com Acked-by: Stefano Babicsba...@denx.de ---

Re: [U-Boot] [PATCH V3 4/6] sf command: allow default chip select through CONFIG_SPI_FLASH_CS

2012-01-27 Thread Eric Nelson
On 01/26/2012 07:50 PM, Mike Frysinger wrote: On Thursday 26 January 2012 20:22:22 Eric Nelson wrote: On 01/24/2012 11:08 AM, Mike Frysinger wrote: On Tuesday 24 January 2012 11:18:22 Eric Nelson wrote: This patch allows a board configuration file to provide a default chip-select for serial

Re: [U-Boot] [PATCH V3 4/6] sf command: allow default chip select through CONFIG_SPI_FLASH_CS

2012-01-26 Thread Eric Nelson
On 01/24/2012 11:08 AM, Mike Frysinger wrote: On Tuesday 24 January 2012 11:18:22 Eric Nelson wrote: This patch allows a board configuration file to provide a default chip-select for serial flash so that first argument to the 'sf' command is optional. On boards that use the mxc_spi driver

Re: [U-Boot] [PATCH V3 4/6] sf command: allow default chip select through CONFIG_SPI_FLASH_CS

2012-01-26 Thread Eric Nelson
On 01/25/2012 08:10 AM, Matthias Fuchs wrote: Hi Eric, please see my comments below. On 24.01.2012 17:18, Eric Nelson wrote: This patch allows a board configuration file to provide a default chip-select for serial flash so that first argument to the 'sf' command is optional. On boards

[U-Boot] [PATCH V3 1/6] mxc_spi: move machine specifics into CPU headers

2012-01-24 Thread Eric Nelson
... (MX5x, MX6x) Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- arch/arm/include/asm/arch-mx31/imx-regs.h | 27 arch/arm/include/asm/arch-mx35/imx-regs.h | 25 arch/arm/include/asm

[U-Boot] [PATCH V3 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-24 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- arch/arm/include/asm/arch-mx6/imx-regs.h | 44 ++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch

[U-Boot] [PATCH V3 0/6] mxc_spi refactoring (for mx6q and mx6qsabrelite)

2012-01-24 Thread Eric Nelson
This patch set refactors mxc_spi as described in http://lists.denx.de/pipermail/u-boot/2010-March/068791.html and requested in http://lists.denx.de/pipermail/u-boot/2012-January/116023.html in order to add support for the MX6Q in general and the mx6qsabrelite specifically. Patch 1

[U-Boot] [PATCH V3 4/6] sf command: allow default chip select through CONFIG_SPI_FLASH_CS

2012-01-24 Thread Eric Nelson
of U-Boot sf probe 0x5300 Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- common/cmd_sf.c | 34 +++--- 1 files changed, 23 insertions(+), 11 deletions(-) diff --git

[U-Boot] [PATCH V3 3/6] mx6q: mx6qsabrelite: Add ECSPI support to the Sabrelite platform

2012-01-24 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include

[U-Boot] [PATCH V3 5/6] mx6q: mx6qsabrelite: Provide default chip-select for serial flash

2012-01-24 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com Acked-by: Stefano Babic sba...@denx.de --- include/configs/mx6qsabrelite.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include

[U-Boot] [PATCH V3 6/6] mx6q: mx6qsabrelite: Conditionally define macros for environment in serial flash

2012-01-24 Thread Eric Nelson
as chip select the controller's chip selects as well as an external GPIO. The LSB byte has the value of the internal chip select, the highest (thought as 16-bit value) contains the GPIO number. The GPIO used on Sabre Lite is GP3:19 == 83. Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com

[U-Boot] [PATCH V2 1/6] mxc_spi: move machine specifics into CPU headers

2012-01-23 Thread Eric Nelson
... (MX5x, MX6x) Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com --- arch/arm/include/asm/arch-mx31/imx-regs.h | 27 arch/arm/include/asm/arch-mx35/imx-regs.h | 25 arch/arm/include/asm/arch-mx5/imx-regs.h | 30

[U-Boot] [PATCH V2 4/6] sf command: allow default chip select through CONFIG_SPI_FLASH_CS

2012-01-23 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com --- common/cmd_sf.c | 34 +++--- 1 files changed, 23 insertions(+), 11 deletions(-) diff --git a/common/cmd_sf.c b/common/cmd_sf.c index 7225656..4b32171 100644

[U-Boot] [PATCH V2 3/6] mx6q: mx6qsabrelite: Add ECSPI support to the Sabrelite platform

2012-01-23 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include/configs/mx6qsabrelite.h

[U-Boot] [PATCH V2 5/6] mx6q: mx6qsabrelite: Provide default chip-select for serial flash

2012-01-23 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com --- include/configs/mx6qsabrelite.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 8dd6e39

[U-Boot] [PATCH V2 6/6] mx6q: mx6qsabrelite: Conditionally define macros for environment in serial flash

2012-01-23 Thread Eric Nelson
as chip select the controller's chip selects as well as an external GPIO. The LSB byte has the value of the internal chip select, the highest (thought as 16-bit value) contains the GPIO number. The GPIO used on Sabre Lite is GP3:19 == 83. Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com

[U-Boot] [PATCH V2 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-23 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com Acked-by: Dirk Behme dirk.be...@de.bosch.com --- arch/arm/include/asm/arch-mx6/imx-regs.h | 44 ++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b

Re: [U-Boot] [PATCH V2 0/6] mxc_spi refactoring (for mx6q and mx6qsabrelite)

2012-01-23 Thread Eric Nelson
On 01/23/2012 10:51 AM, Fabio Estevam wrote: Patch 4 modifies the 'sf' command to allow a default chip-select to be specified by board headers as is done on efika et al. This allows a bare 'sf' probe command: U-Boot sf probe instead of the more cumbersome usage when a GPIO is

Re: [U-Boot] [PATCH 6/6] mx6q: mx6qsabrelite: Provide defaults for placing environment in serial flash

2012-01-20 Thread Eric Nelson
On 01/19/2012 08:27 PM, Jason Hui wrote: On Wed, Jan 18, 2012 at 6:09 AM, Eric Nelson eric.nel...@boundarydevices.com wrote: Signed-off-by: Eric Nelsoneric.nel...@boundarydevices.com --- include/configs/mx6qsabrelite.h | 12 +++- 1 files changed, 11 insertions(+), 1 deletions

Re: [U-Boot] [PATCH 6/6] mx6q: mx6qsabrelite: Provide defaults for placing environment in serial flash

2012-01-20 Thread Eric Nelson
On 01/20/2012 01:47 AM, Stefano Babic wrote: On 20/01/2012 08:48, Jason Hui wrote: I'm wondering how the CONFIG_ENV_SPI_CS could be 0x5300? Vague? Then the left open question is only above one. The SPI driver can take as chip select the controller's chip selects as well as an external

Re: [U-Boot] mx6qsabrelite U-Boot from SPI-NOR

2012-01-20 Thread Eric Nelson
On 01/20/2012 02:15 AM, Wolfgang Grandegger wrote: On 01/20/2012 01:56 AM, Eric Nelson wrote: Yes. If you program u-boot.imx to offset 0x400, it will boot. I just did so as shown below. I started by placing SW1 in the 01 position (boot to USB), and used imx_usb to dowload u-boot.imx

Re: [U-Boot] mx6qsabrelite U-Boot from SPI-NOR

2012-01-19 Thread Eric Nelson
Hi Wolfgang, On 01/19/2012 03:26 AM, Dirk Behme wrote: Dear Wolfgang, On 19.01.2012 10:58, Wolfgang Grandegger wrote: Where can I find the SPI_to_SD_loader.bin image? Unfortunately, at the moment you have to ask your Freescale contact for this. We ping Freescale since weeks for this. Last

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-18 Thread Eric Nelson
On 01/18/2012 01:39 AM, Stefano Babic wrote: On 18/01/2012 02:44, Eric Nelson wrote: I'll defer to Stefano on this one, since I did this in response to his request: Yes, I admit I am guilty about this ! The layout of the CSPI registers is not exactly the same for all SOCs. For example

[U-Boot] [PATCH 1/6] mxc_spi: move machine specifics into CPU headers

2012-01-17 Thread Eric Nelson
... (MX5x, MX6x) Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- arch/arm/include/asm/arch-mx31/imx-regs.h | 27 arch/arm/include/asm/arch-mx35/imx-regs.h | 25 arch/arm/include/asm/arch-mx5/imx-regs.h | 30 + drivers/spi/mxc_spi.c

[U-Boot] [PATCH 4/6] sf command: allow default chip select through CONFIG_SPI_FLASH_CS

2012-01-17 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- common/cmd_sf.c | 34 +++--- 1 files changed, 23 insertions(+), 11 deletions(-) diff --git a/common/cmd_sf.c b/common/cmd_sf.c index 7225656..97fce16 100644 --- a/common/cmd_sf.c +++ b/common/cmd_sf.c

[U-Boot] [PATCH 3/6] mx6q: mx6qsabrelite: Add ECSPI support to the Sabrelite platform

2012-01-17 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include/configs/mx6qsabrelite.h |9 + 3 files changed, 35 insertions

[U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-17 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- arch/arm/include/asm/arch-mx6/imx-regs.h | 44 ++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include/asm/arch-mx6/imx-regs.h index

[U-Boot] mxc_spi refactoring (for mx6q)

2012-01-17 Thread Eric Nelson
This patch set refactors mxc_spi as described in http://lists.denx.de/pipermail/u-boot/2010-March/068791.html and requested in http://lists.denx.de/pipermail/u-boot/2012-January/116023.html in order to add support for the MX6Q in general and the mx6qsabrelite specifically. Patch 1

[U-Boot] [PATCH 6/6] mx6q: mx6qsabrelite: Provide defaults for placing environment in serial flash

2012-01-17 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- include/configs/mx6qsabrelite.h | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 44b028a..160894c 100644 --- a/include/configs

[U-Boot] [PATCH 5/6] mx6q: mx6qsabrelite: Provide default chip-select for serial flash

2012-01-17 Thread Eric Nelson
Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com --- include/configs/mx6qsabrelite.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 8dd6e39..44b028a 100644 --- a/include/configs

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-17 Thread Eric Nelson
On 01/17/2012 04:19 PM, Marek Vasut wrote: Signed-off-by: Eric Nelsoneric.nel...@boundarydevices.com --- arch/arm/include/asm/arch-mx6/imx-regs.h | 44 ++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-17 Thread Eric Nelson
On 01/17/2012 06:27 PM, Marek Vasut wrote: On 01/17/2012 04:19 PM, Marek Vasut wrote: Signed-off-by: Eric Nelsoneric.nel...@boundarydevices.com +/* ECSPI registers */ +struct cspi_regs { + u32 rxdata; + u32 txdata; + u32 ctrl; + u32 cfg; + u32 intr; + u32

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-17 Thread Eric Nelson
On 01/17/2012 06:47 PM, Marek Vasut wrote: On 01/17/2012 06:27 PM, Marek Vasut wrote: I'll defer to Stefano on this one, since I did this in response to his request: Right - and we already discussed in the past how to avoid to put specific SOC code inside the driver. In fact, the cspi_regs

Re: [U-Boot] [PATCH 1/2] SPI: Add i.MX ECSPI driver

2012-01-16 Thread Eric Nelson
On 01/13/2012 04:45 AM, Dirk Behme wrote: On 13.01.2012 11:48, Stefano Babic wrote: On 12/01/2012 16:27, Dirk Behme wrote: From: Eric Nelson eric.nel...@boundarydevices.com Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com CC: Jason Liu jason@linaro.org CC: Stefano Babic sba

Re: [U-Boot] [PATCH v3] i.mx: i.mx6q: add the initial support for i.mx6q Sabre Lite board

2011-12-29 Thread Eric Nelson
On 12/29/2011 12:09 AM, Dirk Behme wrote: On 28.12.2011 13:32, Stefano Babic wrote: On 26/12/2011 08:34, Dirk Behme wrote: From: Jason Liujason@linaro.org Add the initial support for Freescale i.MX6Q Sabre Lite board Hi Dirk, Index: freescale-u-boot-imx.git/MAINTAINERS

<    5   6   7   8   9   10   11   >