[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 --- 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 #include #include +#include

[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__ (ARCH_DMA_MINALIGN

[U-Boot] [PATCH 1/2] part_dos: align disk buffers on cache line to enable DMA and cache

2012-03-03 Thread Eric Nelson
Signed-off-by: Eric Nelson --- disk/part_dos.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/disk/part_dos.c b/disk/part_dos.c index b5bcb37..c028aaf 100644 --- a/disk/part_dos.c +++ b/disk/part_dos.c @@ -87,7 +87,7 @@ static int test_block_type(unsigned char

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

2012-03-03 Thread Eric Nelson
On 03/03/2012 12:35 PM, Wolfgang Grandegger wrote: On 03/03/2012 05:09 PM, Eric Nelson wrote: On 03/03/2012 02:00 AM, Stefano Babic wrote: On 03/03/2012 01:46, Eric Nelson wrote: This patch requires Stefano's driver for MX5/MX6. http://lists.denx.de/pipermail/u-boot/2012-February/1

Re: [U-Boot] Have there been any toughs of adding exFAT file system support?

2012-03-03 Thread Eric Nelson
On 03/03/2012 11:41 AM, Andreas Bäck wrote: More and more people are starting to use exFat on their usb sticks especially now when windows starts to be the majority of instalations This looks to be patented. http://www.google.com/patents?id=TXDHEBAJ&printsec=frontcover&dq=US2009164440&hl=e

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

2012-03-03 Thread Eric Nelson
On 03/03/2012 02:00 AM, Stefano Babic wrote: On 03/03/2012 01:46, Eric Nelson wrote: This patch requires Stefano's driver for MX5/MX6. http://lists.denx.de/pipermail/u-boot/2012-February/118530.html This is helpful, but should be not part of the commit message that is stored i

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

2012-03-03 Thread Eric Nelson
On 03/03/2012 08:48 AM, Wolfgang Denk wrote: Dear Eric Nelson, In message<4f52390c.4080...@boundarydevices.com> you wrote: Why not make it an STDIN device as any other keyboard? Is there a non-blocking read from stdin available to boot script? How would we represent keys like

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

2012-03-03 Thread Eric Nelson
On 03/03/2012 02:15 AM, Wolfgang Denk wrote: Dear Eric Nelson, In message<1330732824-15345-1-git-send-email-eric.nel...@boundarydevices.com> you wrote: This patch adds support for the GPIO keyboard used on MX6Q SabreLite. This is generally used for invoking Android "recove

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

2012-03-03 Thread Eric Nelson
On 03/02/2012 07:18 PM, Marek Vasut 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 --- arch/arm/include/asm/arch-mx6/imx-regs.h | 11 + board/freescale/mx6qsabrelite/mx6qsabrelite.c |

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: i

[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 2/4] net: fec_mxc: allow use with cache enabled

2012-03-02 Thread Eric Nelson
gets 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 inval

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 Nelson --- drivers/net/fec_mxc.c | 248

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 message<1330728909-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. The

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 or

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

[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 --- drivers/net/fec_mxc.c | 248 - drivers/net

[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 +212

[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 --- 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(-) diff --git a/arch/arm/cpu

[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 +++ b/arch/arm/in

[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 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 --- 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

[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 --- board/freescale/mx6qsabrelite/mx6qsabrelite.c |6 -- include/configs/mx6qsabrelite.h |1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/board/freescale/mx6qsabrelite/mx6qsabrelite.c b/board/fr

[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 --- board/freescale/mx6qsabrelite/mx6qsabrelite.c |7 +++ include/configs/mx6qsabrelite.h |1 + 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a

[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. __

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 Behme 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 mach-types any more? Ma

[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 --- 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..7fe2dc9 100644 --- a/board

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

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

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 pr

[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 --- 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 to be configured

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- board/freescale/mx6qsabrelite/mx6qsabrelite.c |2 +- include/configs/mx6qsabrelite.h |2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/board/freescale/mx6qsabrelite

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

2012-01-31 Thread Eric Nelson
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 --- include/co

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- 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 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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- 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

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include/configs/mx6qsabrelite.h |9 + 3 files changed

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

2012-01-31 Thread Eric Nelson
line would be needed 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 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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

2012-01-31 Thread Eric Nelson
be instead of U-Boot> sf probe 0x5300 Signed-off-by: Eric Nelson --- 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/cmd_sf.c +++ b

[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 --- arch/arm/include/asm

[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 ___ U-Boot mailing list U

[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: http://lists.denx.de/pipermai

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 pr

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 wrote: Signed-off-by: Eric Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25

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 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 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

[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 ch

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

2012-01-30 Thread Eric Nelson
Signed-off-by: Eric Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- include/configs/mx6qsabrelite.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index bcb1a42..3bf7819 100644 --- a/include

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

2012-01-30 Thread Eric Nelson
be instead of U-Boot> sf probe 0x5300 Signed-off-by: Eric Nelson --- 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/cmd_sf.c +++ b

[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 --- 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 to be configured

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

2012-01-30 Thread Eric Nelson
line would be needed 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 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include/configs/mx6qsabrelite.h |9 + 3 files changed

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- 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 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 si

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- 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

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 Nelson Acked-by

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 Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- include/configs/mx6qsabrelite.h |3

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 Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- include/configs/mx6qsabrelite.h |3 +++ 1 files changed, 3 insertions(+), 0

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 Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- include/configs/mx6qsabrelite.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/configs

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 Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- include/configs/mx6qsabrelite.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h

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

2012-01-29 Thread Eric Nelson
processors with Enhanced Configurable... (MX5x, MX6x) Signed-off-by: Eric Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- 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

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:

[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 ch

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- include/configs/mx6qsabrelite.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 8dd6e39..cc770e2 100644 --- a/include

[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 CONFI

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- 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

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- 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 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 3/7] mx6q: mx6qsabrelite: Add ECSPI support to the Sabrelite platform

2012-01-29 Thread Eric Nelson
Signed-off-by: Eric Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include/configs/mx6qsabrelite.h |9 + 3 files changed

[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 simpl

[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

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/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 b

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

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

2012-01-24 Thread Eric Nelson
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 Acked-by: Dirk

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- 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..e34f108 100644 --- a/include

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include/configs/mx6qsabrelite.h |9 + 3 files changed

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

2012-01-24 Thread Eric Nelson
be instead of U-Boot> sf probe 0x5300 Signed-off-by: Eric Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- 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

[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 simpl

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- 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

[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 Acked-by: Dirk Behme Acked-by: Stefano Babic --- 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

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 GPI

[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 Acked-by: Dirk Behme --- 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 7650cb9

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

2012-01-23 Thread Eric Nelson
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 Acked-by: Dirk

[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 Acked-by: Dirk Behme --- 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..e34f108 100644 --- a/include/configs/mx6qsabrelite.h

[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 Acked-by: Dirk Behme --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include/configs/mx6qsabrelite.h |9 + 3 files changed, 35 insertions(+), 1

[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 Acked-by: Dirk Behme --- 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 --- a/common/cmd_sf.c +++ b/common/cmd_sf.c @@ -70,20

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

2012-01-23 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 simpl

[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 Acked-by: Dirk Behme --- 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 | 93

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] [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 GPI

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 wrote: Signed-off-by: Eric Nelson --- include/configs/mx6qsabrelite.h | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include

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

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 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 Nelson +/* ECSPI registers */ +struct cspi_regs { + u32 rxdata; + u32 txdata; + u32 ctrl; + u32 cfg; + u32 intr; + u32 dma; + u32 stat; + 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 04:19 PM, Marek Vasut wrote: Signed-off-by: Eric Nelson --- 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

[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 --- 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/mx6qsabrelite.h +++ b/include/configs

[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 --- 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/mx6qsabrelite.h +++ b/include

[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 simpl

<    5   6   7   8   9   10   11   >