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

2014-08-03 Thread Alexander Holler
Am 03.08.2014 19:51, schrieb Wolfgang Denk: Dear Alexander, In message <53de658f.5010...@ahsoftware.de> you wrote: Just to clarify: I see uEnv.txt (which only was possible through your env import implementation) as a read-only configuration file for u-boot, This is just one of the many possi

Re: [U-Boot] [PATCH 0/8] zmx25: Add hardware support

2014-08-03 Thread Thomas Diener
Hi folks, do you have any comments or statements for this patches? Thanks and best regards, Thomas Am 15.05.2014 um 16:34 schrieb die...@gmx.de: From: Thomas Diener This patchset is the result of the "[PATCH 3/4] zmx25: Add extended support for the cpu and base boards" (http://patchwork.ozlabs

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 wrote: > Add initial support for Compulab CM-FX6 CoM. > Support includes MMC, SPI flash, and SPL with dynamic DRAM detection. > > diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h > new file mode 100644 > index 000..285af33 > ---

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

2014-08-03 Thread Tim Harvey
On Sun, Aug 3, 2014 at 12:34 AM, Nikita Kiryanov wrote: > According to MX6 TRM, both MMDC and DRAM should be configured to > the same powerdown precharge. Currently, mx6_dram_cfg() > configures MMDC for fast pd, and the DRAM for slow pd. Nikita, I'm inclined to agree with you. A glance at some o

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 wrote: > Bit 16 in mapsr register is in a reserved field. Don't write to it. > > Cc: Stefano Babic > Cc: Tim Harvey > Signed-off-by: Nikita Kiryanov > --- > arch/arm/cpu/armv7/mx6/ddr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

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 wrote: > No functional changes. > > Cc: Stefano Babic > Cc: Tim Harvey > Signed-off-by: Nikita Kiryanov > --- > arch/arm/cpu/armv7/mx6/ddr.c | 272 > +-- > 1 file changed, 134 insertions(+), 138 deletions

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 wrote: > Add initial support for Compulab CM-FX6 CoM. > Support includes MMC, SPI flash, and SPL with dynamic DRAM detection. > > + > +static void spl_mx6s_dram_init(enum ddr_config dram_config, int reset) > +{ > + struct mx6_mmdc_calibration

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

2014-08-03 Thread Tim Harvey
On Sun, Aug 3, 2014 at 4:47 PM, Marek Vasut wrote: > The MX6 DRAM controller can be configured to handle 4GiB of DRAM, but > only 3840 MiB of that can be really used. In case the controller is > configured to operate a 4GiB module, the imx_ddr_size() function will > correctly compute that there is

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

2014-08-03 Thread Tim Harvey
On Sun, Aug 3, 2014 at 12:34 AM, Nikita Kiryanov wrote: > Add macro which defines i2c_pads_info structs for multiple SoC types, > and a macro which selects the appropriate struct based on CPU type, > thus eliminating the need to manage multiple i2c pad configurations > manually when supporting mul

[U-Boot] Pull request: u-boot-blackfin

2014-08-03 Thread Sonic Zhang
Hi Tom, Please pull the following patches for Blackfin from u-boot-blackfin into your tree. Thanks Sonic Zhang The following changes since commit e1b362f4425209d836f230a872ef2bf04b45de27: boards.cfg : Add maintainers entries for SOCFPGA (2014-07-29 11:51:03 -0400) are available in the git r

Re: [U-Boot] [PATCH] Makefile: restore *_config target

2014-08-03 Thread Masahiro Yamada
Hi Jeroen, On Fri, 1 Aug 2014 21:28:54 +0200 Jeroen Hofstee wrote: > The switch to KConfig break the [board]_config target. This breaks > backwards compatibility and hence all documentation about how to > build u-boot is no longer valid. It is also annoying for general > recipes to build u-bo

[U-Boot] [PATCH] MAINTAINERS: change the status of vexpress board to Orphan

2014-08-03 Thread Masahiro Yamada
The email address of Matt Waddel is no longer working. Signed-off-by: Masahiro Yamada Cc: Marc Zyngier Cc: Mark Rutland Cc: Catalin Marinas Cc: Alexei Fedorov --- I am ccing some developers working for ARM Ltd. I am still hoping some will pick up the maintainership of this board. board/ar

[U-Boot] [PATCH] MAINTAINERS: update the maintainer of Arndale board

2014-08-03 Thread Masahiro Yamada
Inderpal's email address is not working any more. Chander will be a new maintainer. Signed-off-by: Masahiro Yamada Cc: Chander Kashyap Cc: Minkyu Kang --- A new maintainer was assigned to Arndale board. But nobody wouldn't send a patch. Please see http://thread.gmane.org/gmane.comp.boot-loade

[U-Boot] [PATCH 3/4] ARM: mx6: Handle the MMDCx_MDCTL COL field caprices

2014-08-03 Thread Marek Vasut
The COL field value cannot be easily calculated from the desired column number. Instead, there are special cases for that, see the datasheet, MMDCx_MDCTL field description, field COL . Cater for those special cases. Signed-off-by: Marek Vasut --- arch/arm/cpu/armv7/mx6/ddr.c | 8 +++- 1 file

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

2014-08-03 Thread Marek Vasut
Building the SPL in Thumb mode saves roughly 30% in size of the resulting SPL binary. As the size of SPL it limited on the MX6, this helps a lot. Signed-off-by: Marek Vasut --- include/configs/imx6_spl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/imx6_spl.h b/include/con

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

2014-08-03 Thread Marek Vasut
The MX6 DRAM controller can be configured to handle 4GiB of DRAM, but only 3840 MiB of that can be really used. In case the controller is configured to operate a 4GiB module, the imx_ddr_size() function will correctly compute that there is 4GiB of DRAM in the system. Firstly, the return value is 32

[U-Boot] [PATCH 1/4] ARM: mx5: Fix CHSCCDR name

2014-08-03 Thread Marek Vasut
Fix the name of the CCM CHSCCDR register. Signed-off-by: Marek Vasut --- arch/arm/include/asm/arch-mx5/crm_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-mx5/crm_regs.h b/arch/arm/include/asm/arch-mx5/crm_regs.h index efe57e0..b61c7b9 100644

[U-Boot] [PATCH] ARM: Fix overflow in MMU setup

2014-08-03 Thread Marek Vasut
The patch fixes a corner case where adding size to DRAM start resulted in a value (1 << 32), which in turn overflew the u32 computation, which resulted in 0 and it therefore prevented correct setup of the MMU tables. The addition of DRAM bank start and it's size can end up right at the end of the

[U-Boot] [PATCH] usb: Handle -ENODEV from usb_lowlevel_init()

2014-08-03 Thread Marek Vasut
As we support both Host and Device mode operation, an OTG controller can return -ENODEV on a port which it found to be in Device mode during Host mode scan for devices. In case -ENODEV is returned, print that the port is not available and continue instead of screaming a bloody error message. Signe

[U-Boot] [PATCH v2] drivers: net: remove dead drivers

2014-08-03 Thread Masahiro Yamada
The following configs are not defined at all: - CONFIG_INCA_IP_SWITCH - CONFIG_PBL2800_ETHER - CONFIG_PHY_ICPLUS Signed-off-by: Masahiro Yamada --- I built all the boards and I confirmed this patch is harmless. Changes in v2: - Do not delete the Faraday driver drivers/net/Makefile |

[U-Boot] [PATCH v2] drivers: rtc: remove dead drivers

2014-08-03 Thread Masahiro Yamada
The following configs are not defined at all: - CONFIG_RTC_DS1388 - CONFIG_RTC_ISL1208 - CONFIG_RTC_MX27 - CONFIG_RTC_PL031 - CONFIG_RTC_RS5C372A - CONFIG_SYS_DS1388_TCR_VAL Signed-off-by: Masahiro Yamada --- I built all the boards and I confirmed this patch is harmless. Changes in v2:

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

2014-08-03 Thread Wolfgang Denk
Dear Alexander, In message <53de658f.5010...@ahsoftware.de> you wrote: > > Just to clarify: I see uEnv.txt (which only was possible through your > env import implementation) as a read-only configuration file for u-boot, This is just one of the many possible usages. > And I don't think all the

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

2014-08-03 Thread Wolfgang Denk
Dear Alexander, In message <53dd53a5.3010...@ahsoftware.de> you wrote: > > > Should we not, for reasons of symmetry, then also extend "env export" > > by such a "-r" option? > > Sorry, but I don't follow the new features of u-boot that closely. This is not a new feature. > Is it already possibl

Re: [U-Boot] [PATCH 18/18] arm: mx6: cm_fx6: add sata support

2014-08-03 Thread Marek Vasut
On Sunday, August 03, 2014 at 09:34:48 AM, Nikita Kiryanov wrote: > Add support for SATA. > > Cc: Igor Grinberg > Cc: Stefano Babic > Cc: Tom Rini > Signed-off-by: Nikita Kiryanov I'd just squash all the cf_mx6 patches into the "add cf_mx6 board" patch. Best regards, Marek Vasut

Re: [U-Boot] [PATCH 06/18] sata: dwc_ahsata: implement sata_port_status

2014-08-03 Thread Marek Vasut
On Sunday, August 03, 2014 at 09:34:36 AM, Nikita Kiryanov wrote: > Define the new common function sata_port_status() which can be > used to query the sata driver for the state of ports, and implement it > for dwc_ahsata. > > Cc: Stefano Babic > Cc: Tom Rini > Signed-off-by: Nikita Kiryanov > -

Re: [U-Boot] [PATCH 03/18] sf: fix sf probe

2014-08-03 Thread Marek Vasut
On Sunday, August 03, 2014 at 09:34:33 AM, Nikita Kiryanov wrote: > MXC SPI driver has a feature whereas a GPIO line can be used as a CS > signal. This is set up by joining the CS and GPIO values into a single > value using (cs | gpio << 8), and passing it off as a CS value. This > breaks the sf pr

Re: [U-Boot] [PATCH 04/18] mtd: spi: add support for M25PE16 and M25PX16

2014-08-03 Thread Marek Vasut
On Sunday, August 03, 2014 at 09:34:34 AM, Nikita Kiryanov wrote: > Add support for M25PE16 and M25PX16 > > Cc: Jagannadha Sutradharudu Teki > Signed-off-by: Nikita Kiryanov Acked-by: Marek Vasut Best regards, Marek Vasut ___ U-Boot mailing list U-B

Re: [U-Boot] [PATCH 05/18] compulab: eeprom: add support for defining eeprom i2c bus

2014-08-03 Thread Marek Vasut
On Sunday, August 03, 2014 at 09:34:35 AM, Nikita Kiryanov wrote: > Create CONFIG_SYS_I2C_EEPROM_BUS #define to tell the EEPROM > module what I2C bus the EEPROM is located at. Make cl_eeprom_read() > switch to that bus when reading EEPROM. > > Cc: Igor Grinberg > Cc: Dmitry Lifshitz > Cc: Tom Ri

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

2014-08-03 Thread Marek Vasut
On Sunday, August 03, 2014 at 09:34:42 AM, Nikita Kiryanov wrote: > Add initial support for Compulab CM-FX6 CoM. > Support includes MMC, SPI flash, and SPL with dynamic DRAM detection. > > Cc: Igor Grinberg > Cc: Stefano Babic > Cc: Tom Rini > Signed-off-by: Nikita Kiryanov > --- > arch/arm/c

Re: [U-Boot] [PATCH 01/18] spl: improve spi configuration

2014-08-03 Thread Marek Vasut
On Sunday, August 03, 2014 at 09:34:31 AM, Nikita Kiryanov wrote: > Currently we can define CONFIG_SPL_SPI_. > Define CONFIG_SPL_SPI_MODE option, and provide a default value for > backwards compatibility. > Default values are also provided for the rest of the spi_flash_probe > parameters (like we d

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

2014-08-03 Thread Alexander Holler
Am 02.08.2014 23:09, schrieb Alexander Holler: Am 01.08.2014 14:08, schrieb Wolfgang Denk: Should we not, for reasons of symmetry, then also extend "env export" by such a "-r" option? Sorry, but I don't follow the new features of u-boot that closely. Is it already possible to save an export

Re: [U-Boot] [linux-sunxi] [PATCH 0/2] sunxi: Single u-boot binary for Allwinner A10/A13/A20 devices

2014-08-03 Thread jonsm...@gmail.com
Could this work... Universal Allwinner uboot uboot loads DTB (from same place it just booted) restart with DRAM parameters (console, etc) from DTB Is it possible to write a uboot app that measures the DRAM parameters? Maybe something like this: pick a param, write to flash, try it out, repeat. Set

[U-Boot] [PATCH 03/18] sf: fix sf probe

2014-08-03 Thread Nikita Kiryanov
MXC SPI driver has a feature whereas a GPIO line can be used as a CS signal. This is set up by joining the CS and GPIO values into a single value using (cs | gpio << 8), and passing it off as a CS value. This breaks the sf probe command, because it is no longer possible to invoke it as sf probe . I

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

2014-08-03 Thread Nikita Kiryanov
Add initial support for Compulab CM-FX6 CoM. Support includes MMC, SPI flash, and SPL with dynamic DRAM detection. Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- arch/arm/cpu/armv7/mx6/ddr.c | 1 - board/compulab/cm_fx6/Makefile | 12 ++ board

[U-Boot] [PATCH 14/18] arm: mx6: cm_fx6: add ethernet support

2014-08-03 Thread Nikita Kiryanov
Add ethernet support for Compulab CM-FX6 CoM Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 100 + board/compulab/cm_fx6/common.h | 1 + include/configs/cm_fx6.h | 16 ++-

[U-Boot] [PATCH 18/18] arm: mx6: cm_fx6: add sata support

2014-08-03 Thread Nikita Kiryanov
Add support for SATA. Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 90 ++ board/compulab/cm_fx6/common.h | 13 ++ include/configs/cm_fx6.h | 36 - 3 files

[U-Boot] [PATCH 15/18] arm: mx6: cm_fx6: add usb support

2014-08-03 Thread Nikita Kiryanov
Add USB and USB OTG host support for Compulab CM-FX6 CoM. Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 75 ++ board/compulab/cm_fx6/common.h | 3 ++ include/configs/cm_fx6.h

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

2014-08-03 Thread Nikita Kiryanov
No functional changes. Cc: Stefano Babic Cc: Tim Harvey Signed-off-by: Nikita Kiryanov --- arch/arm/cpu/armv7/mx6/ddr.c | 272 +-- 1 file changed, 134 insertions(+), 138 deletions(-) diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm/cpu/armv7/mx6/ddr

[U-Boot] [PATCH 16/18] arm: mx6: cm_fx6: add i2c support

2014-08-03 Thread Nikita Kiryanov
Add support for all 3 I2C busses on Compulab CM-FX6 CoM. Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 42 ++ include/configs/cm_fx6.h | 11 +++ 2 files changed, 53 ins

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

2014-08-03 Thread Nikita Kiryanov
Bit 16 in mapsr register is in a reserved field. Don't write to it. Cc: Stefano Babic Cc: Tim Harvey Signed-off-by: Nikita Kiryanov --- arch/arm/cpu/armv7/mx6/ddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm/cpu/armv7/mx6/ddr.c i

[U-Boot] [PATCH 13/18] arm: mx6: cm_fx6: add nand support

2014-08-03 Thread Nikita Kiryanov
Add NAND support for Compulab CM-FX6 CoM. Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 38 ++ board/compulab/cm_fx6/spl.c| 9 + include/configs/cm_fx6.h | 14

[U-Boot] [PATCH 06/18] sata: dwc_ahsata: implement sata_port_status

2014-08-03 Thread Nikita Kiryanov
Define the new common function sata_port_status() which can be used to query the sata driver for the state of ports, and implement it for dwc_ahsata. Cc: Stefano Babic Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- drivers/block/dwc_ahsata.c | 17 + include/sata.h

[U-Boot] [PATCH 05/18] compulab: eeprom: add support for defining eeprom i2c bus

2014-08-03 Thread Nikita Kiryanov
Create CONFIG_SYS_I2C_EEPROM_BUS #define to tell the EEPROM module what I2C bus the EEPROM is located at. Make cl_eeprom_read() switch to that bus when reading EEPROM. Cc: Igor Grinberg Cc: Dmitry Lifshitz Cc: Tom Rini Acked-by: Igor Grinberg Acked-by: Dmitry Lifshitz Signed-off-by: Nikita Ki

[U-Boot] [PATCH 00/18] Introduce cm-fx6 board

2014-08-03 Thread Nikita Kiryanov
This patch series introduces the mx6 based cm-fx6 board. cm-fx6 comes with either single, dual, or quad core mx6 soc, and various dram configurations. First 11 patches are preparatory steps which include: - Cleanups and bug fixes for the mx6 dram config code - New functions and mac

[U-Boot] [PATCH 11/18] arm: mx6: ddr: fix cs0_end calculation

2014-08-03 Thread Nikita Kiryanov
Current way of calculation CS0_END field for MMDCx_MDASP register is problematic because in most cases the user is forced to define cs_density in an unnatural way: as value - 2, instead of value. This breaks the abstraction provided by struct mx6_ddr_sysinfo because the user is forced to be aware

[U-Boot] [PATCH 01/18] spl: improve spi configuration

2014-08-03 Thread Nikita Kiryanov
Currently we can define CONFIG_SPL_SPI_. Define CONFIG_SPL_SPI_MODE option, and provide a default value for backwards compatibility. Default values are also provided for the rest of the spi_flash_probe parameters (like we do in cmd_sf), to help with config file brevity. Cc: Jagannadha Sutradharudu

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

2014-08-03 Thread Nikita Kiryanov
Add macro which defines i2c_pads_info structs for multiple SoC types, and a macro which selects the appropriate struct based on CPU type, thus eliminating the need to manage multiple i2c pad configurations manually when supporting multiple SoC types. Cc: Stefano Babic Signed-off-by: Nikita Kiryan

[U-Boot] [PATCH 02/18] mx6: add clock enabling functions

2014-08-03 Thread Nikita Kiryanov
Add functions to enable/disable clocks for UART, SPI, ENET, and MMC. Cc: Stefano Babic Signed-off-by: Nikita Kiryanov --- arch/arm/cpu/armv7/mx6/clock.c| 99 +++ arch/arm/include/asm/arch-mx6/clock.h | 5 ++ 2 files changed, 104 insertions(+) diff --git

[U-Boot] [PATCH 04/18] mtd: spi: add support for M25PE16 and M25PX16

2014-08-03 Thread Nikita Kiryanov
Add support for M25PE16 and M25PX16 Cc: Jagannadha Sutradharudu Teki Signed-off-by: Nikita Kiryanov --- drivers/mtd/spi/sf_params.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c index ac886fd..3a4beb0 100644 --- a/drivers/mtd/spi

[U-Boot] [PATCH 17/18] arm: mx6: cm_fx6: use eeprom

2014-08-03 Thread Nikita Kiryanov
Use Compulab eeprom module to obtain revision number, serial number, and mac address from the EEPROM. Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 26 +- include/configs/cm_fx6.h | 2 ++ 2 f

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

2014-08-03 Thread Nikita Kiryanov
According to MX6 TRM, both MMDC and DRAM should be configured to the same powerdown precharge. Currently, mx6_dram_cfg() configures MMDC for fast pd, and the DRAM for slow pd. Configure MMDC for slow pd. Cc: Stefano Babic Cc: Tim Harvey Signed-off-by: Nikita Kiryanov --- arch/arm/cpu/armv7/mx