Re: [U-Boot] [PATCH] ventana: Add Gateworks Ventana family support

2014-01-27 Thread Tim Harvey
On Mon, Jan 27, 2014 at 3:57 AM, Fabio Estevam feste...@gmail.com wrote: On Tue, Jan 21, 2014 at 4:41 PM, Tim Harvey thar...@gateworks.com wrote: +static int setup_pmic_voltages(void) +{ + int ret; + unsigned char value, rev_id = 0; + + ret = i2c_set_bus_num(1

Re: [U-Boot] [PATCH] ventana: Add Gateworks Ventana family support

2014-01-28 Thread Tim Harvey
On Tue, Jan 28, 2014 at 2:20 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 28/01/2014 00:36, Tim Harvey wrote: snip diff --git a/board/gateworks/gw_ventana/README b/board/gateworks/gw_ventana/README new file mode 100644 index 000..9de55ba --- /dev/null +++ b/board/gateworks

[U-Boot] recommended action for bootloaders regarding modifying device-tree nodes

2014-01-30 Thread Tim Harvey
or cons. Thanks for any suggestions or comments, Tim Tim Harvey - Principal Software Engineer Gateworks Corporation 3026 S. Higuera St. San Luis Obispo CA 93401 805-781-2000 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo

Re: [U-Boot] recommended action for bootloaders regarding modifying device-tree nodes

2014-01-30 Thread Tim Harvey
On Thu, Jan 30, 2014 at 12:45 PM, Jason Cooper ja...@lakedaemon.net wrote: Hi Tim, On Thu, Jan 30, 2014 at 01:11:18AM -0800, Tim Harvey wrote: My approach has been to define a per-baseboard device-tree in Linux for a 'fully loaded' board, then remove nodes which the EEPROM claims

Re: [U-Boot] recommended action for bootloaders regarding modifying device-tree nodes

2014-01-30 Thread Tim Harvey
On Thu, Jan 30, 2014 at 1:15 PM, Jason Gunthorpe jguntho...@obsidianresearch.com wrote: On Thu, Jan 30, 2014 at 03:45:58PM -0500, Jason Cooper wrote: This is more of a process question: Is there any information captured in your EEPROM that can't be represented in the dtb? iow, at the

Re: [U-Boot] [PATCH] pci: mx6: Implement reset callback

2014-01-30 Thread Tim Harvey
here */ - mdelay(100); + imx6_pcie_toggle_reset(); return 0; } Tested-by: Tim Harvey thar...@gateworks.com Acked-by: Tim Harvey thar...@gateworks.com Tested on a Gateworks Ventana GW54xx board with a PLX PEX8609 switch on the RC with 2 devices behind it: 00:01.0

[U-Boot] [PATCH 0/2] IMX6: Add Gateworks Ventana support

2014-02-01 Thread Tim Harvey
Signed-off-by: Tim Harvey thar...@gateworks.com Cc: Stefano Babic sba...@denx.de Cc: Stefan Roese s...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com --- v2: - rebase on top of u-boot-imx - use switch..case for model specific init instead of strcmps - move checkboard to late init allowing

[U-Boot] [PATCH 1/2] power: add PFUZE100 PMIC driver

2014-02-01 Thread Tim Harvey
Signed-off-by: Tim Harvey thar...@gateworks.com --- drivers/power/pmic/Makefile| 1 + drivers/power/pmic/pmic_pfuze100.c | 42 + include/power/pfuze100_pmic.h | 96 ++ 3 files changed, 139 insertions(+) create mode 100644 drivers

Re: [U-Boot] [PATCH 1/2] power: add PFUZE100 PMIC driver

2014-02-03 Thread Tim Harvey
On Mon, Feb 3, 2014 at 4:05 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 01/02/2014 20:49, Tim Harvey wrote: Signed-off-by: Tim Harvey thar...@gateworks.com --- drivers/power/pmic/Makefile| 1 + drivers/power/pmic/pmic_pfuze100.c | 42 + include/power

Re: [U-Boot] [PATCH 2/2] ventana: Add Gateworks Ventana family support

2014-02-05 Thread Tim Harvey
On Mon, Feb 3, 2014 at 9:39 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 01/02/2014 20:49, Tim Harvey wrote: Gateworks Ventana is a product family based on the i.MX6. This patch adds support for all boards in the Ventana family. Where possible, data from the boards EEPROM is used

[U-Boot] [PATCH v3 0/2] IMX6: Add Gateworks Ventana support

2014-02-05 Thread Tim Harvey
later - remove display of boot mode info - may revisit later - replace bitwise fields in eeprom structure with bit definitions Tim Harvey (2): power: add PFUZE100 PMIC driver ventana: Add Gateworks Ventana family support board/gateworks/gw_ventana/Makefile | 10 + board/gateworks

[U-Boot] [PATCH v3 1/2] power: add PFUZE100 PMIC driver

2014-02-05 Thread Tim Harvey
Signed-off-by: Tim Harvey thar...@gateworks.com Cc: Stefano Babic sba...@denx.de --- Changes in v2: - remove detect and device_id display from pmic_init() drivers/power/pmic/Makefile| 1 + drivers/power/pmic/pmic_pfuze100.c | 33 + include/power/pfuze100_pmic.h | 96

[U-Boot] [PATCH v3 1/2] power: add PFUZE100 PMIC driver

2014-02-05 Thread Tim Harvey
Signed-off-by: Tim Harvey thar...@gateworks.com Cc: Stefano Babic sbabic at denx.de --- Changes in v2: - remove detect and device_id display from pmic_init() drivers/power/pmic/Makefile| 1 + drivers/power/pmic/pmic_pfuze100.c | 33 + include/power/pfuze100_pmic.h

Re: [U-Boot] [PATCH v3 2/2] ventana: Add Gateworks Ventana family support

2014-02-05 Thread Tim Harvey
On Wed, Feb 5, 2014 at 3:43 PM, Wolfgang Denk w...@denx.de wrote: Dear Tim Harvey, In message 1391642553-25778-1-git-send-email-thar...@gateworks.com you wrote: Gateworks Ventana is a product family based on the i.MX6. This patch adds support for all boards in the Ventana family. Where

Re: [U-Boot] [PATCH v3 2/2] ventana: Add Gateworks Ventana family support

2014-02-09 Thread Tim Harvey
On Thu, Feb 6, 2014 at 4:07 AM, Wolfgang Denk w...@denx.de wrote: Dear Tim, In message caj+vnu2udv1yeujh79uznf01jtamde7p8u-g_x1hendg7mk...@mail.gmail.com you wrote: +/* + * Hardware Monitor + */ +#define GSC_HWMON_TEMP 0x00 +#define GSC_HWMON_VIN

[U-Boot] [PATCH v4 1/2] power: add PFUZE100 PMIC driver

2014-02-12 Thread Tim Harvey
Signed-off-by: Tim Harvey thar...@gateworks.com Acked-by: Stefano Babic sba...@denx.de --- Changes in v3: - no changes Changes in v2: - remove detect and device_id display from pmic_init() Signed-off-by: Tim Harvey thar...@gateworks.com --- drivers/power/pmic/Makefile| 1 + drivers

[U-Boot] [PATCH v4 0/2] IMX6: Add Gateworks Ventana support

2014-02-12 Thread Tim Harvey
- remove display support for now - will revisit later - remove display of boot mode info - may revisit later - replace bitwise fields in eeprom structure with bit definitions Tim Harvey (2): power: add PFUZE100 PMIC driver ventana: Add Gateworks Ventana family support board/gateworks/gw_ventana

Re: [U-Boot] [PATCH v4 2/2] ventana: Add Gateworks Ventana family support

2014-03-07 Thread Tim Harvey
On Wed, Mar 5, 2014 at 3:22 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 05/03/2014 12:06, Stefano Babic wrote: On 13/02/2014 08:48, Tim Harvey wrote: Gateworks Ventana is a product family based on the i.MX6. This patch adds support for all boards in the Ventana family. Where

Re: [U-Boot] [PATCH 07/18] i2c: imx: add macros to setup pads for multiple SoC types

2014-08-03 Thread Tim Harvey
, -- 1.9.1 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Hi Nikita, Very nice cleanup! Acked-by: Tim Harvey thar...@gateworks.com Tim ___ U-Boot mailing list U

Re: [U-Boot] [PATCH 2/4] ARM: mx6: Prevent overflow in DRAM size detection

2014-08-03 Thread Tim Harvey
-- 2.0.1 Acked-by: Tim Harvey thar...@gateworks.com Tim ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 12/18] arm: mx6: add support for Compulab cm-fx6 CoM

2014-08-03 Thread Tim Harvey
On Sun, Aug 3, 2014 at 12:34 AM, Nikita Kiryanov nik...@compulab.co.il wrote: Add initial support for Compulab CM-FX6 CoM. Support includes MMC, SPI flash, and SPL with dynamic DRAM detection. snip + +static void spl_mx6s_dram_init(enum ddr_config dram_config, int reset) +{ + struct

Re: [U-Boot] [PATCH 08/18] arm: mx6: ddr: cleanup

2014-08-03 Thread Tim Harvey
On Sun, Aug 3, 2014 at 12:34 AM, Nikita Kiryanov nik...@compulab.co.il wrote: No functional changes. Cc: Stefano Babic sba...@denx.de Cc: Tim Harvey thar...@gateworks.com Signed-off-by: Nikita Kiryanov nik...@compulab.co.il --- arch/arm/cpu/armv7/mx6/ddr.c | 272

Re: [U-Boot] [PATCH 09/18] arm: mx6: ddr: do not write into reserved bit

2014-08-03 Thread Tim Harvey
On Sun, Aug 3, 2014 at 12:34 AM, Nikita Kiryanov nik...@compulab.co.il wrote: Bit 16 in mapsr register is in a reserved field. Don't write to it. Cc: Stefano Babic sba...@denx.de Cc: Tim Harvey thar...@gateworks.com Signed-off-by: Nikita Kiryanov nik...@compulab.co.il --- arch/arm/cpu

Re: [U-Boot] [PATCH 10/18] arm: mx6: ddr: configure MMDC for slow_pd

2014-08-03 Thread Tim Harvey
for DRAM and the current value of 0 indicates 'Slow exit (DLL off)'. I've asked our Freescale FAE for clarification to see if the spreadsheet is in error. Regards, Tim Configure MMDC for slow pd. Cc: Stefano Babic sba...@denx.de Cc: Tim Harvey thar...@gateworks.com Signed-off-by: Nikita Kiryanov

Re: [U-Boot] [PATCH 12/18] arm: mx6: add support for Compulab cm-fx6 CoM

2014-08-04 Thread Tim Harvey
On Sun, Aug 3, 2014 at 12:34 AM, Nikita Kiryanov nik...@compulab.co.il wrote: Add initial support for Compulab CM-FX6 CoM. Support includes MMC, SPI flash, and SPL with dynamic DRAM detection. snip diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h new file mode 100644 index

Re: [U-Boot] [PATCH 09/18] arm: mx6: ddr: do not write into reserved bit

2014-08-06 Thread Tim Harvey
On Mon, Aug 4, 2014 at 5:49 AM, Nikita Kiryanov nik...@compulab.co.il wrote: Hi Tim, On 04/08/14 08:43, Tim Harvey wrote: On Sun, Aug 3, 2014 at 12:34 AM, Nikita Kiryanov nik...@compulab.co.il wrote: Bit 16 in mapsr register is in a reserved field. Don't write to it. Cc: Stefano Babic

Re: [U-Boot] [PATCH 4/4] ARM: mx6: Enable Thumb build for SPL

2014-08-06 Thread Tim Harvey
- this indeed is a great space savings where it matters. Acked-by: Tim Harvey thar...@gateworks.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH 10/11] imx: ventana: add iomux for PCISKT_WDIS# gpio

2014-08-07 Thread Tim Harvey
The PCISKT_WDIS# gpio allows for asserting WDIS# going to the various PCIe sockets on the Ventana board. Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gw_ventana.c | 17 + 1 file changed, 17 insertions(+) diff --git a/board/gateworks/gw_ventana

[U-Boot] [PATCH 09/11] imx: ventana: enable SION bit on gpio outputs

2014-08-07 Thread Tim Harvey
Enable the SION bit on gpio outputs that we wish to be able to read the value of. Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gw_ventana.c | 133 +--- 1 file changed, 70 insertions(+), 63 deletions(-) diff --git a/board/gateworks

[U-Boot] [PATCH 05/11] imx: ventana: add econfig command

2014-08-07 Thread Tim Harvey
configuration items - an econfig command to get/set/list configuration bits - use of the array when adjusting the FDT prior to boot Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/eeprom.c | 168 +++- board/gateworks/gw_ventana/gw_ventana.c

[U-Boot] [PATCH 03/11] imx: ventana: remove caam disable per eeprom bit

2014-08-07 Thread Tim Harvey
During manufacturing this bit is not getting enabled when it should be, so we will ignore it. Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gw_ventana.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/gateworks/gw_ventana/gw_ventana.c b

[U-Boot] [PATCH 06/11] imx: ventana: add video enable gpio pinmux for GW54xx

2014-08-07 Thread Tim Harvey
Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gw_ventana.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c index 9857a05..07d5e2d 100644 --- a/board/gateworks/gw_ventana

[U-Boot] [PATCH 04/11] imx: ventana: add appropriate delay following GSC i2c write

2014-08-07 Thread Tim Harvey
The Gateworks System Controller EEPROM config is flash based. Add a delay following writes to avoid errors on back-to-back writes. Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board

[U-Boot] [PATCH 11/11] imx: ventana: leave PCI reset de-asserted if PCI enabled

2014-08-07 Thread Tim Harvey
Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gw_ventana.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c index 1c24e4b..70b90d8 100644 --- a/board

[U-Boot] [PATCH 02/11] imx: ventana: added cputype env var

2014-08-07 Thread Tim Harvey
There are many similarities between the IMX6QUAD/IMX6DUAL and there are many similarities between the IMX6SOLO/IMX6DUALITE. Add a 'soctype' env variable that tells you which type you have. Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gw_ventana.c | 1 + 1 file

[U-Boot] [PATCH 07/11] imx: ventana: add missing crlf to print

2014-08-07 Thread Tim Harvey
Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gw_ventana.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c index 07d5e2d..54e582b 100644 --- a/board/gateworks

[U-Boot] [PATCH 08/11] imx: ventana: configure i2c_dis# pin properly for gw53xx

2014-08-07 Thread Tim Harvey
The i2c_dis# pinmux/padconf was missing for the GW53xx (this feature was added to the GW53xx on revB PCB's). Additionally, remove the duplicate config for GW54xx. Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gw_ventana.c | 4 ++-- 1 file changed, 2 insertions

[U-Boot] [PATCH 01/11] imx: ventana: set dynamic env var for flash layout

2014-08-07 Thread Tim Harvey
to as 'normal' and 'large'. This layout is useful when referencing ubi files to download and flash so we create a dynamic env variable for it. Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gw_ventana.c | 4 1 file changed, 4 insertions(+) diff --git a/board

[U-Boot] [PATCH 00/11] imx: ventana: misc patches

2014-08-07 Thread Tim Harvey
This is a series of patches in my queue for the Gateworks Ventana family of boards. Tim Harvey (11): imx: ventana: set dynamic env var for flash layout imx: ventana: added cputype env var imx: ventana: remove caam disable per eeprom bit imx: ventana: add appropriate delay following GSC

[U-Boot] [PATCH 1/2] pci: add support for board_pci_fixup_dev function

2014-08-07 Thread Tim Harvey
Some board-level drivers may wish to have per-device fixup functions for PCI devices. Signed-off-by: Tim Harvey thar...@gateworks.com --- drivers/pci/pci.c | 4 include/pci.h | 7 +++ 2 files changed, 11 insertions(+) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index ed113bf

[U-Boot] [PATCH 0/2] imx: ventana: Add pci fixup for PLX switch

2014-08-07 Thread Tim Harvey
function define to allow hooking similarly to the kernel pci fixup functionality. The second patch uses the board_pci_fixup_dev function to perform the GPIO configuration on the switch for the downstream ports. Tim Harvey (2): pci: add support for board_pci_fixup_dev function imx: ventana: add

[U-Boot] [PATCH 2/2] imx: ventana: add pci fixup for PLX PEX860x switch GPIO

2014-08-07 Thread Tim Harvey
Most Gateworks Ventana boards use a PLX PEX860x PCIe switch for PCIe expansion. These boards use GPIO on the PLX device as PERST# for the downstream ports thus we assert this when the PLX is enumerated. Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gw_ventana.c

[U-Boot] [PATCH] pci: mx6: fix occasional link failures

2014-08-07 Thread Tim Harvey
-off-by: Tim Harvey thar...@gateworks.com --- drivers/pci/pcie_imx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c index c48737e..a3982c4 100644 --- a/drivers/pci/pcie_imx.c +++ b/drivers/pci/pcie_imx.c @@ -509,10 +509,6

Re: [U-Boot] [PATCH 12/18] arm: mx6: add support for Compulab cm-fx6 CoM

2014-08-08 Thread Tim Harvey
On Wed, Aug 6, 2014 at 10:29 AM, Nikita Kiryanov nik...@compulab.co.il wrote: On 04/08/14 16:36, Nikita Kiryanov wrote: On 04/08/14 07:45, Tim Harvey wrote: On Sun, Aug 3, 2014 at 12:34 AM, Nikita Kiryanov nik...@compulab.co.il wrote: Add initial support for Compulab CM-FX6 CoM

[U-Boot] [PATCH 0/2] e1000: add i210 support

2014-08-08 Thread Tim Harvey
Two patches to add Intel i210 support to the e1000 driver. Marek Vasut (2): e1000: Implement dcache support e1000: add i210 support drivers/net/e1000.c | 266 ++-- drivers/net/e1000.h | 12 +++ include/pci_ids.h | 7 ++ 3 files changed,

[U-Boot] [PATCH 1/2] e1000: Implement dcache support

2014-08-08 Thread Tim Harvey
From: Marek Vasut ma...@denx.de Implement proper support for cache flushing and invalidation into the Intel e1000 NIC driver. Signed-off-by: Marek Vasut ma...@denx.de Acked-by: Tim Harvey thar...@gateworks.com --- drivers/net/e1000.c | 71 - 1

[U-Boot] [PATCH 2/2] e1000: add i210 support

2014-08-08 Thread Tim Harvey
From: Marek Vasut ma...@denx.de Add i210 support to the e1000 driver. Signed-off-by: Marek Vasut ma...@denx.de Acked-by: Tim Harvey thar...@gateworks.com --- drivers/net/e1000.c | 195 drivers/net/e1000.h | 12 include/pci_ids.h | 7

Re: [U-Boot] mx6: spl: Rename ncs as ranks and move it to mx6_ddr3_cfg

2014-08-10 Thread Tim Harvey
On Sat, Aug 9, 2014 at 7:08 AM, Nikolay Dimitrov picmas...@mail.bg wrote: Hi guys, I'm working on adding SO-DIMM SPL support on a custom imx6 board, so I'm thinking on the idea of which DDR3 settings belong to the controller and which belong to the DDR3 memory module/chips. My proposal is

[U-Boot] [PATCH 4/4] [PATCH] ventana: Add support for the LTC3676 PMIC

2014-05-05 Thread Tim Harvey
for the LTC3676 are board-specific as they relate to a resistor devider chosen by the board design. Signed-off-by: Tim Harvey thar...@gateworks.com --- board/gateworks/gw_ventana/gw_ventana.c | 78 +++-- include/configs/gw_ventana.h| 2 + 2 files changed, 57

Re: [U-Boot] [PATCH] mx6sabred: Add PFUZE100 PMIC support

2014-05-05 Thread Tim Harvey
On Mon, May 5, 2014 at 7:29 AM, Stefano Babic sba...@denx.de wrote: Hi Fabio, just a minor question: On 04/05/2014 21:14, Fabio Estevam wrote: snip +int misc_init_r(void) +{ Do we need misc_init ? Why not to use power_init_board() ? It is already defined as weak. OT: I confess I am

Re: [U-Boot] [PATCH 05/12] MX6: add boot device support for SPL

2014-05-05 Thread Tim Harvey
+cc Edward Lin On Mon, May 5, 2014 at 2:14 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 28/04/2014 22:17, Tim Harvey wrote: Add a common spl.c file to support boot device functions needed for SPL such as detecting the boot device. Signed-off-by: Tim Harvey thar...@gateworks.com

Re: [U-Boot] [PATCH 07/12] MX6: add structs for mmdc and ddr iomux registers

2014-05-05 Thread Tim Harvey
On Mon, May 5, 2014 at 3:34 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 28/04/2014 22:17, Tim Harvey wrote: Add memory-mapped structures for MMDC iomux and configuration. Note that while the MMDC configuration registers are common between the IMX6DQ (IMX6DUAL/IMX6QUAD) and IMX6SDL

Re: [U-Boot] [PATCH 02/12] SPL: NAND: add support for mxs nand

2014-05-05 Thread Tim Harvey
On Fri, May 2, 2014 at 1:56 PM, Scott Wood scottw...@freescale.com wrote: Hi Scott, On Mon, 2014-04-28 at 13:17 -0700, Tim Harvey wrote: +static void mxs_nand_command(struct mtd_info *mtd, unsigned int command, + int column, int page_addr) +{ + register struct

Re: [U-Boot] [PATCH 09/12] IMX: add additional function for pinmux using an array

2014-05-05 Thread Tim Harvey
On Tue, Apr 29, 2014 at 8:22 AM, Eric Nelson eric.nel...@boundarydevices.com wrote: Hi Tim, Hi Eric, On 04/28/2014 01:17 PM, Tim Harvey wrote: Add new function that can take an array of iomux configs, an index, and a stride to allow a multi-dimentional array of pinmux values to be used

[U-Boot] [PATCH] dwc_ahsata: return failure for MX6 if not IMX6Q

2014-05-05 Thread Tim Harvey
The IMX6QUAD/DUAL have SATA, but the IMX6SOLO/DL do not. Return an error indicating no such port instead of attempting a memory access that results in a data abort and reset. This dynamic detection is necessary for bootloaders that support multiple variants of the IMX6 SoC. Signed-off-by: Tim

Re: [U-Boot] [PATCH 05/12] MX6: add boot device support for SPL

2014-05-06 Thread Tim Harvey
On Tue, May 6, 2014 at 12:55 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 06/05/2014 08:36, Tapani Utriainen wrote: Tim, Stefano, that piece of code indeed originates from Freescale's 2009.08 u-boot. (Edward has changed jobs, so the CC:d address is of no use.) I supposed this.

Re: [U-Boot] [PATCH 12/12] imx: ventana: switch to SPL

2014-05-06 Thread Tim Harvey
On Mon, Apr 28, 2014 at 1:17 PM, Tim Harvey thar...@gateworks.com wrote: Switch to an SPL image. The SPL for Ventana does the following: - setup i2c and read the factory programmed EEPROM to obtain DRAM config and model for board-specific calibration data - configure DRAM per CPU/size

Re: [U-Boot] [PATCH 12/12] imx: ventana: switch to SPL

2014-05-06 Thread Tim Harvey
On Tue, May 6, 2014 at 12:11 PM, Jeroen Hofstee dasub...@myspectrum.nl wrote: Hello Tim, On di, 2014-05-06 at 11:18 -0700, Tim Harvey wrote: On Mon, Apr 28, 2014 at 1:17 PM, Tim Harvey thar...@gateworks.com wrote: void board_init_f(ulong dummy) { struct ventana_board_info

Re: [U-Boot] [PATCH] dwc_ahsata: return failure for MX6 if not IMX6Q

2014-05-06 Thread Tim Harvey
On Tue, May 6, 2014 at 12:55 PM, Troy Kisky troy.ki...@boundarydevices.com wrote: On 5/5/2014 10:22 PM, Tim Harvey wrote: The IMX6QUAD/DUAL have SATA, but the IMX6SOLO/DL do not. Return an error indicating no such port instead of attempting a memory access that results in a data abort

Re: [U-Boot] [PATCH 12/12] imx: ventana: switch to SPL

2014-05-07 Thread Tim Harvey
On Wed, May 7, 2014 at 9:14 AM, York Sun york...@freescale.com wrote: On 05/06/2014 04:35 PM, Tim Harvey wrote: On Tue, May 6, 2014 at 12:11 PM, Jeroen Hofstee dasub...@myspectrum.nl wrote: Hello Tim, snip Since Crt0.S already created gd on the stack before calling board_init_f, can't

Re: [U-Boot] [PATCH 12/12] imx: ventana: switch to SPL

2014-05-07 Thread Tim Harvey
On Wed, May 7, 2014 at 1:29 PM, York Sun york...@freescale.com wrote: On 05/07/2014 01:27 PM, Tim Harvey wrote: On Wed, May 7, 2014 at 9:14 AM, York Sun york...@freescale.com wrote: On 05/06/2014 04:35 PM, Tim Harvey wrote: On Tue, May 6, 2014 at 12:11 PM, Jeroen Hofstee dasub...@myspectrum.nl

Re: [U-Boot] [PATCH 09/12] IMX: add additional function for pinmux using an array

2014-05-07 Thread Tim Harvey
On Wed, May 7, 2014 at 9:59 AM, Nikita Kiryanov nik...@compulab.co.il wrote: On 06/05/14 07:35, Tim Harvey wrote: On Tue, Apr 29, 2014 at 8:22 AM, Eric Nelson eric.nel...@boundarydevices.com wrote: snip The function name ..._array() also doesn't really capture what's going on here

[U-Boot] [PATCH v3 01/11] nand: remove CONFIG_SYS_NAND_PAGE_SIZE

2014-05-07 Thread Tim Harvey
We only need to read in the size of struct image_header and thus don't need to know the page size of the nand device. Cc: Scott Wood scottw...@freescale.com Signed-off-by: Tim Harvey thar...@gateworks.com Acked-by: Stefano Babic sba...@denx.de Acked-by: Scott Wood scottw...@freescale.com --- v3

[U-Boot] [PATCH v3 00/11] mx6: SPL NAND support

2014-05-07 Thread Tim Harvey
://patchwork.ozlabs.org/patch/341817 and rebase on top of it [1] http://patchwork.ozlabs.org/patch/341817/ Tim Harvey (11): SPL: NAND: remove CONFIG_SYS_NAND_PAGE_SIZE SPL: NAND: add support for mxs nand MX6: add common SPL configuration MX6: add boot device support for SPL IMX: add

[U-Boot] [PATCH v3 05/11] imx: add comments and remove unused struct fields

2014-05-07 Thread Tim Harvey
Add comment block for the imx_ddr_size function and remove the extra unused fields from struct esd_mmdc_regs which are also not common between IMX53 and IMX6. Signed-off-by: Tim Harvey thar...@gateworks.com Acked-by: Stefano Babic sba...@denx.de --- v3: - fixed doxygen-style comment block

[U-Boot] [PATCH v3 04/11] mx6: add boot device support for SPL

2014-05-07 Thread Tim Harvey
Add a common spl.c file to support boot device functions needed for SPL such as detecting the boot device. Signed-off-by: Tim Harvey thar...@gateworks.com --- v3: - added Freescale copyright v2: - re-base on top of Masahiro Yamada's consolidation patch: http://patchwork.ozlabs.org/patch

[U-Boot] [PATCH v3 02/11] spl: nand: add support for mxs nand

2014-05-07 Thread Tim Harvey
This utilizes existing mxs_nand support layer to provide a method to load an image off nand for SPL. The flash device will be detected in order to support multiple flash devices instead of having layout hard coded at build time. Cc: Scott Wood scottw...@freescale.com Signed-off-by: Tim Harvey

[U-Boot] [PATCH v3 03/11] mx6: add common SPL configuration

2014-05-07 Thread Tim Harvey
Add a common header which can hopefully be shared amon imx6 SPL users Signed-off-by: Tim Harvey thar...@gateworks.com Acked-by: Stefano Babic sba...@denx.de Acked-by: Nikita Kiryanov nik...@compulab.co.il --- v3: - fixed typo s/IMX6SLD/IMX6SDL - add acks from Stefano and Nikita v2: - adjust

[U-Boot] [PATCH v3 06/11] mx6: add structs for mmdc and ddr iomux registers

2014-05-07 Thread Tim Harvey
files. Signed-off-by: Tim Harvey thar...@gateworks.com --- v3: - moved portions into following patch v2: - split out from original mmdc configuration patch - only define for SPL build - do not include mx6q-ddr.h and mx6dl-ddr.h for SPL build - these use the same namespace and are only

[U-Boot] [PATCH v3 07/11] mx6: add mmdc configuration for MX6Q/MX6DL

2014-05-07 Thread Tim Harvey
Add functions for configuring iomux based on board-specific regs and for configuring mmdc based on board-specific and chip-specific data. Signed-off-by: Tim Harvey thar...@gateworks.com --- v3: - added ifdef's around cpu specific iocfg functions for code-reduction with single-variant board

[U-Boot] [PATCH v3 11/11] imx: ventana: switch to SPL

2014-05-07 Thread Tim Harvey
to it This allows for a single SPL+u-boot.img to replace the previous multiple boa configurations. Signed-off-by: Tim Harvey thar...@gateworks.com --- v3: - re-ordered calls in board_init_f v2: - remove missing/unnecessary include - revert mtdparts change - use imx_ddr_size() which uses MMDC configuration

[U-Boot] [PATCH v3 09/11] imx: ventana: split read_eeprom into standalone file

2014-05-07 Thread Tim Harvey
Split the read_eeprom function out so that it can be shared (ie with SPL) Signed-off-by: Tim Harvey thar...@gateworks.com --- v3: - no changes v2: - new patch in series --- board/gateworks/gw_ventana/Makefile | 2 +- board/gateworks/gw_ventana/eeprom.c | 89

[U-Boot] [PATCH v3 08/11] imx: iomux: add macros to setup iomux for multiple SoC types

2014-05-07 Thread Tim Harvey
Allow imx_iomux_v3_setup_multiple_pads to take a multi-cpu pad_list and add macros for declaring the pad_list that take into account the SoC types supported using CONFIG_MX6QDL (supports both the MX6Q and MX6DL iomux). Signed-off-by: Tim Harvey thar...@gateworks.com --- v3: - remove commit msg

[U-Boot] [PATCH v3 10/11] imx: ventana: auto-configure for IMX6Q vs IMX6DL

2014-05-07 Thread Tim Harvey
use the new iomux function and a macros to create a multi-dimensional array of iomux values without duplicating the defintions. Signed-off-by: Tim Harvey thar...@gateworks.com --- v3: - replace use of imx_iomux_v3_setup_multiple_pads_array with imx_iomux_v3_setup_multiple_pads v2: - use

[U-Boot] [PATCH v2] dwc_ahsata: return failure for MX6 if not IMX6Q/IMX6D

2014-05-07 Thread Tim Harvey
The IMX6QUAD/DUAL have SATA, but the IMX6SOLO/DL do not. Return failure instead of attempting a memory access that results in a data abort and reset. Signed-off-by: Tim Harvey thar...@gateworks.com --- v2: - remove print as this condition isn't really an error just something not possible

[U-Boot] [PATCH] imx: sata: return failure if not IMX6Q/IMX6D

2014-05-07 Thread Tim Harvey
The IMX6QUAD/DUAL have SATA, but the IMX6SOLO/DL do not. Return instead of configuring the SATA clock and GPR13 registers. Signed-off-by: Tim Harvey thar...@gateworks.com --- arch/arm/imx-common/sata.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/imx-common

Re: [U-Boot] [PATCH 12/12] imx: ventana: switch to SPL

2014-05-13 Thread Tim Harvey
On Wed, May 7, 2014 at 2:29 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 06/05/2014 20:18, Tim Harvey wrote: Stefano / York, While preparing for a v3 patch series of my IMX6 SPL bootloader, I find that commit dec1861be90c948ea9fb771927d3d26a994d2e20 [1] breaks the above code because

Re: [U-Boot] [PATCH 12/12] imx: ventana: switch to SPL

2014-05-13 Thread Tim Harvey
On Tue, May 13, 2014 at 9:58 PM, Tim Harvey thar...@gateworks.com wrote: On Wed, May 7, 2014 at 2:29 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 06/05/2014 20:18, Tim Harvey wrote: Stefano / York, While preparing for a v3 patch series of my IMX6 SPL bootloader, I find that commit

Re: [U-Boot] [PATCH 12/12] imx: ventana: switch to SPL

2014-05-14 Thread Tim Harvey
On Tue, May 13, 2014 at 10:03 PM, Tim Harvey thar...@gateworks.com wrote: On Tue, May 13, 2014 at 9:58 PM, Tim Harvey thar...@gateworks.com wrote: On Wed, May 7, 2014 at 2:29 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 06/05/2014 20:18, Tim Harvey wrote: Stefano / York

Re: [U-Boot] [PATCH] spl: consolidate arch/arm/include/asm/arch-*/spl.h

2014-05-16 Thread Tim Harvey
On Mon, Apr 28, 2014 at 1:16 AM, Masahiro Yamada yamad...@jp.panasonic.com wrote: Hi Tom, On Fri, 25 Apr 2014 14:52:06 -0400 Tom Rini tr...@ti.com wrote: On Wed, Apr 16, 2014 at 03:44:36PM +0900, Masahiro Yamada wrote: arch/arm/include/asm/spl.h requires all SoCs to have

Re: [U-Boot] [PATCH v3 00/11] mx6: SPL NAND support

2014-05-22 Thread Tim Harvey
On Wed, May 7, 2014 at 10:16 PM, Tim Harvey thar...@gateworks.com wrote: This series adds some necessary framework for IMX6 SPL support. The series includes support for NAND SPL and has been tested with MMC as well. I have tested this on five differing Ventana baseboards with a variety

Re: [U-Boot] [PATCH v3 00/11] mx6: SPL NAND support

2014-05-22 Thread Tim Harvey
On Wed, May 21, 2014 at 11:34 PM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 22/05/2014 08:14, Tim Harvey wrote: Stefano, Any comments on this series? I realize you've applied the first one and I'll remove that from any subsequent posts. Right. I think we have a very good point

[U-Boot] [PATCH v4 07/11] mx6: add mmdc configuration for MX6Q/MX6DL

2014-05-22 Thread Tim Harvey
- add function for configuring iomux based on board-specific regs - add function for configuring mmdc based on board-specific and chip-specific data Signed-off-by: Tim Harvey thar...@gateworks.com --- v4: - added delay following configure to allow ZQ calibration to complete - update MMDC

Re: [U-Boot] [PATCH v3 06/11] mx6: add structs for mmdc and ddr iomux registers

2014-05-28 Thread Tim Harvey
On Wed, May 28, 2014 at 10:06 AM, Nikita Kiryanov nik...@compulab.co.il wrote: Hi Tim, On 08/05/14 08:16, Tim Harvey wrote: Add memory-mapped structures for MMDC iomux and configuration. Note that the MMDC configuration registers are common between the IMX6DQ (IMX6DUAL/IMX6QUAD

Re: [U-Boot] [PATCH v3 04/11] mx6: add boot device support for SPL

2014-05-28 Thread Tim Harvey
On Wed, May 28, 2014 at 9:38 AM, Nikita Kiryanov nik...@compulab.co.il wrote: Hi Tim, Sorry for the late reply. no worries - your the only review of this revision thus far ;) On 08/05/14 08:16, Tim Harvey wrote: Add a common spl.c file to support boot device functions needed for SPL

Re: [U-Boot] [PATCH v3 11/11] imx: ventana: switch to SPL

2014-05-30 Thread Tim Harvey
On Thu, May 29, 2014 at 12:02 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, I cannot build with this version. A setup for a couple of pins is not yet replaces. In fact, I have: /* Enable Backlight */ imx_iomux_v3_setup_pad(MX6_PAD_SD1_CMD__GPIO1_IO18 | and it should be:

Re: [U-Boot] imx6 booting from NAND with bad block 0

2014-06-02 Thread Tim Harvey
On Mon, Jun 2, 2014 at 4:03 AM, Andy Ng andreas2...@gmail.com wrote: I have an imx6 solo system and currently I am using the SD card to boot the u-boot. I would like to make it boot from NAND, but my first Block in NAND is a bad one. Do I need u-boot with NAND SPL support? Best regards

[U-Boot] [PATCH v4 00/10] mx6: SPL NAND support

2014-06-02 Thread Tim Harvey
function - added MMC support to SPL - added Masahiro Yamada's boot mode consolidation patch http://patchwork.ozlabs.org/patch/341817 and rebase on top of it [1] http://patchwork.ozlabs.org/patch/341817/ Tim Harvey (10): spl: nand: add support for mxs nand mx6: add common SPL configuration

[U-Boot] [PATCH v4 01/10] spl: nand: add support for mxs nand

2014-06-02 Thread Tim Harvey
...@ossystems.com.br Cc: Andy Ng andreas2...@gmail.com Cc: Eric Nelson eric.nel...@boundarydevices.com Cc: Tapani Utriainen tap...@technexion.com Cc: Tom Rini tr...@ti.com Cc: Scott Wood scottw...@freescale.com Signed-off-by: Tim Harvey thar...@gateworks.com --- v4: - removed unnecessary parens from return v3

[U-Boot] [PATCH v4 05/10] mx6: add structs for mmdc and ddr iomux registers

2014-06-02 Thread Tim Harvey
cf files. Cc: Stefan Roese s...@denx.de Cc: Otavio Salvador ota...@ossystems.com.br Cc: Andy Ng andreas2...@gmail.com Cc: Eric Nelson eric.nel...@boundarydevices.com Cc: Tapani Utriainen tap...@technexion.com Cc: Tom Rini tr...@ti.com Signed-off-by: Tim Harvey thar...@gateworks.com Acked-by: Nikita

[U-Boot] [PATCH v4 02/10] mx6: add common SPL configuration

2014-06-02 Thread Tim Harvey
Signed-off-by: Tim Harvey thar...@gateworks.com Acked-by: Stefano Babic sba...@denx.de Acked-by: Nikita Kiryanov nik...@compulab.co.il --- v4: - no changes v3: - fixed typo s/IMX6SLD/IMX6SDL - add acks from Stefano and Nikita v2: - adjust CONFIG_SPL_TEXT_BASE, CONFIG_SPL_STACK

[U-Boot] [PATCH v4 04/10] imx: add comments and remove unused struct fields

2014-06-02 Thread Tim Harvey
...@boundarydevices.com Cc: Tapani Utriainen tap...@technexion.com Cc: Tom Rini tr...@ti.com Signed-off-by: Tim Harvey thar...@gateworks.com Acked-by: Stefano Babic sba...@denx.de Acked-by: Nikita Kiryanov nik...@compulab.co.il --- v4: - added Nikita's Ack v3: - fixed doxygen-style comment block

[U-Boot] [PATCH v4 03/10] mx6: add boot device support for SPL

2014-06-02 Thread Tim Harvey
...@technexion.com Cc: Tom Rini tr...@ti.com Signed-off-by: Tim Harvey thar...@gateworks.com Acked-by: Nikita Kiryanov nik...@compulab.co.il --- v4: - added Nikita's Ack v3: - added Freescale copyright v2: - re-base on top of Masahiro Yamada's consolidation patch: http://patchwork.ozlabs.org/patch

[U-Boot] [PATCH v4 07/10] imx: iomux: add macros to setup iomux for multiple SoC types

2014-06-02 Thread Tim Harvey
: Andy Ng andreas2...@gmail.com Cc: Eric Nelson eric.nel...@boundarydevices.com Cc: Tapani Utriainen tap...@technexion.com Cc: Tom Rini tr...@ti.com Signed-off-by: Tim Harvey thar...@gateworks.com --- v4: - no changes v3: - remove commit msg 2nd paragrap about prior approaches - re-work to avoid

[U-Boot] [PATCH v4 06/10] mx6: add mmdc configuration for MX6Q/MX6DL

2014-06-02 Thread Tim Harvey
...@boundarydevices.com Cc: Tapani Utriainen tap...@technexion.com Cc: Tom Rini tr...@ti.com Signed-off-by: Tim Harvey thar...@gateworks.com --- v4: - added delay following configure to allow ZQ calibration to complete - update MMDC configuration to match Freescale RM v3: - added ifdef's around cpu specific

[U-Boot] [PATCH v4 09/10] imx: ventana: auto-configure for IMX6Q vs IMX6DL

2014-06-02 Thread Tim Harvey
Utriainen tap...@technexion.com Cc: Tom Rini tr...@ti.com Signed-off-by: Tim Harvey thar...@gateworks.com --- v4: - no changes v3: - replace use of imx_iomux_v3_setup_multiple_pads_array with imx_iomux_v3_setup_multiple_pads v2: - use macros that have been moved to iomux-v3.h --- board

[U-Boot] [PATCH v4 10/10] imx: ventana: switch to SPL

2014-06-02 Thread Tim Harvey
...@ti.com Signed-off-by: Tim Harvey thar...@gateworks.com --- v4: - no changes v3: - re-ordered calls in board_init_f v2: - remove missing/unnecessary include - revert mtdparts change - use imx_ddr_size() which uses MMDC configuration to determine mem size explicitly - add support

[U-Boot] [PATCH v4 08/10] imx: ventana: split read_eeprom into standalone file

2014-06-02 Thread Tim Harvey
...@ti.com Signed-off-by: Tim Harvey thar...@gateworks.com --- v4: - no changes v3: - no changes v2: - new patch in series --- board/gateworks/gw_ventana/Makefile | 2 +- board/gateworks/gw_ventana/eeprom.c | 89 + board/gateworks/gw_ventana/gw_ventana.c

Re: [U-Boot] [RFC 01/10] ARM: crt0.S: clear the global data

2014-06-03 Thread Tim Harvey
, sp /* GD is above SP */ + + mov r0, r9 /* Clear the global data */ + mov r1, #0 + mov r2, #GENERATED_GBL_DATA_SIZE + bl memset + mov r0, #0 bl board_init_f -- Acked-by: Tim Harvey thar...@gateworks.com

Re: [U-Boot] [RFC 05/10] ARM: SPL: do not set gd again

2014-06-03 Thread Tim Harvey
@@ void __weak board_init_f(ulong dummy) /* Clear the BSS. */ memset(__bss_start, 0, __bss_end - __bss_start); - /* Set global data pointer. */ - gd = gdata; - board_init_r(NULL, 0); } Agree with Simon's comment otherwise Acked-by: Tim Harvey thar

  1   2   3   4   5   6   7   8   9   10   >