Re: [U-Boot] [PATCH 1/2] SPL: Add CONFIG_SPL_BOOTCOUNT_SUPPORT

2013-09-30 Thread Stefan Roese
Hi Tom, On 27.09.2013 21:26, Tom Rini wrote: Add a new symbol, CONFIG_SPL_BOOTCOUNT_SUPPORT, to make use of the existing BOOTCOUNT_SUPPORT within SPL. It is strongly discouraged to use bootcount in both SPL and full U-Boot, as they use the same counter. I just noticed that I missed sending

[U-Boot] [PATCH] spl: Add bootcount/bootlimit support

2013-09-30 Thread Stefan Roese
This patch adds bootcount/bootlimit support to SPL. Right now with SPL-NOR support only. But it should be easy to ad this feature to other SPL implementations as well. When the bootcounter exceeds the bootlimit environment variable SPL will boot into the full-blown U-Boot to handle the bootcmd

[U-Boot] [PATCH 0/3] i2c: improve s3c24x0 with High-speed and new SYS_I2C framework support

2013-09-30 Thread Naveen Krishna Chatradhi
This patchset fixes few bugs in the existing s3c24x0.c code (standard i2c) and add support for High-speed i2c bus controller available on Exynos5 SoCs from Samsung. Exynos5250 channels [0 ~ 3] can configured for I2C contoller or new HSI2C controller channels [3 ~ 7] are

[U-Boot] [PATCH] RFC: samsung: i2c: Enable new CONFIG_SYS_I2C framework

2013-09-30 Thread Naveen Krishna Chatradhi
This enables CONFIG_SYS_I2C on Samsung, updating existing s3c24x0 i2c driver to support this. Note: Not for merge, Just for review and suggestions. Signed-off-by: Naveen Krishna Chatradhi ch.nav...@samsung.com --- drivers/i2c/Makefile |2 +- drivers/i2c/s3c24x0_i2c.c | 156

[U-Boot] [PATCH 2/4] exynos: i2c: Change FDT bus setup code to enumerate ports correctly

2013-09-30 Thread Naveen Krishna Chatradhi
From: Simon Glass s...@chromium.org At present the i2c ports are enumerated in a strange way - the fdtdec_find_aliases_for_id() function is used, but then the ID returned is ignored and the ports are renumbered. The effect is the same provided that the device tree has the ports in the same order,

[U-Boot] [PATCH v5 3/4] i2c: s3c24xx: add hsi2c controller support

2013-09-30 Thread Naveen Krishna Chatradhi
Add support for hsi2c controller available on exynos5420. Note: driver currently supports only fast speed mode 100kbps Change-Id: I02555b1dc8f4ac21c50aa5158179768563c92f43 Signed-off-by: Naveen Krishna Chatradhi ch.nav...@samsung.com Signed-off-by: R. Chandrasekar rc.se...@samsung.com ---

[U-Boot] [PATCH 1/4] exynos: i2c: Fix i2c driver to handle NACKs properly

2013-09-30 Thread Naveen Krishna Chatradhi
The Exynos5 i2c driver does not handle NACKs properly. This change: - fixes the NACK processing problem (do not continue transaction if address cycle was NACKed) - eliminates a fair amount of duplicate code Signed-off-by: Vadim Bendebury vben...@chromium.org Reviewed-by: Simon Glass

[U-Boot] [PATCH v2 0/1] Fix ethernet regression on pcm051 and igep0033

2013-09-30 Thread Lars Poeschel
From: Lars Poeschel poesc...@lemonage.de I compiled and tried v2013.10-rc2 on pcm051 and it fails booting over tftp. I could bisect 2bf36ac638ab2db9f0295aa47064976eeebf80c1 as the cause of the problem. It moves bd_ram_ofs from the cpsw driver to the board files. Adding the bd_ram_ofs to the board

[U-Boot] [PATCH v2 1/1] pcm051/igep0033: Supply bd_ram_ofs for cpsw driver

2013-09-30 Thread Lars Poeschel
From: Lars Poeschel poesc...@lemonage.de Since 2bf36ac638ab2db9f0295aa47064976eeebf80c1 the BD ram address is not hardcoded inside cpsw driver any more. Platforms have to supply their bd_ram_ofs in the platform data to the driver. This commit does this for pcm051 and igep0033 boards. Tested-by:

Re: [U-Boot] AES: Encryption of u-boot.img

2013-09-30 Thread bin4ry
Hi Albert, so if I get you right the workflow for payload authentication is the following: Encryption process: 1. Create hash value H for u-boot.img 2. Encrypt the hash value H with secret K to get encrypted hash values H_enc 3. Store H_enc Decryption process: 1. Read H_enc 2. Decrypt H_enc

Re: [U-Boot] AES: Encryption of u-boot.img

2013-09-30 Thread bin4ry
Am 13.09.2013 19:28, schrieb Michael Trimarchi: Hi I don't understand you can decrypt it after load. Why just verify the signature? Michael This is a proof-of-concept for a technique, which involves de-/encrypting the u-boot.img with a key derived from a hardware fingerprint. This is why I

Re: [U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired

2013-09-30 Thread Masahiro Yamada
Hello Jeroen, diff --git a/config.mk b/config.mk index 48913f6..177f685 100644 --- a/config.mk +++ b/config.mk @@ -117,7 +117,7 @@ CC_TEST_OFILE := $(OBJTREE)/include/generated/cc_test_file.o -include $(CC_OPTIONS_CACHE_FILE) cc-option-sys = $(shell mkdir -p $(dir

Re: [U-Boot] [PATCH 0/3] i2c: improve s3c24x0 with High-speed and new SYS_I2C framework support

2013-09-30 Thread Heiko Schocher
Hello Naveen, Am 30.09.2013 08:58, schrieb Naveen Krishna Chatradhi: This patchset fixes few bugs in the existing s3c24x0.c code (standard i2c) and add support for High-speed i2c bus controller available on Exynos5 SoCs from Samsung. Exynos5250 channels [0 ~ 3] can configured for I2C contoller

Re: [U-Boot] [PATCH 01/10] arm: vf610: fix anadig register struct

2013-09-30 Thread Marcel Ziswiler
On 09/17/2013 03:27 PM, Otavio Salvador wrote: I agree with the way to fix it but it is a little bit hard to get it is a 'reserved'; we used reserved_where to make it more explicit. Take a look at

[U-Boot] [PATCH v3 4/6] ARM: tegra: move Tegra specific code under arch/arm/

2013-09-30 Thread Masahiro Yamada
This patch moves Tegra specific directory entries from the toplevel Makefile and spl/Makefile to arch/arm/cpu/*/Makefile using Kbuild descending feature. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Tom Warren twar...@nvidia.com --- Changes for v3: - Fix misleading commit

[U-Boot] [PATCH v3 5/6] ARM: omap: move OMAP specific code under arch/arm/

2013-09-30 Thread Masahiro Yamada
This patch moves OMAP specific directory entries from the toplevel Makefile and spl/Makefile to arch/arm/cpu/armv7/Makefile using Kbuild descending feature. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Tom Rini tr...@ti.com --- Changes for v3: - Fix misleading commit subject

[U-Boot] [PATCH v3 6/6] ARM: s5pc, exynos: move Samsung ARM SoC specific code under arch/arm/

2013-09-30 Thread Masahiro Yamada
This patch moves S5PC, EXYNOS specific directory entries from the toplevel Makefile to arch/arm/cpu/armv7/Makefile using Kbuild descending feature. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Minkyu Kang mk7.k...@samsung.com --- Changes for v3: - Fix misleading commit subject

[U-Boot] [PATCH v3 0/6] Second step towards Kbuild: Descend down like Kbuild

2013-09-30 Thread Masahiro Yamada
Note: Update for v3 is the only patch subjects. The patch body is the same as v2. I have been just wondering why the U-Boot top Makefile is so dirty. It is sprinkled with SoC-specific code as follows: ifneq ($(CONFIG_OMAP_COMMON),) LIBS-y += $(CPUDIR)/omap-common/libomap-common.o

[U-Boot] [PATCH v3 2/6] drivers: move some drivers to drivers/Makefile

2013-09-30 Thread Masahiro Yamada
This commit moves some drivers subdirectory entry from the toplevel Makefile to drivers/Makefile using Kbuild descending feature. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com --- Changes for v3: - No change Changes for v2: - refactor also drivers/pcmcia and drivers/rtc

[U-Boot] [PATCH v3 3/6] fs: move some file system to fs/Makefile

2013-09-30 Thread Masahiro Yamada
This commit moves some subdirectories of fs from the toplevel Makefile to fs/Makefile using Kbuild descending feature. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com --- Changes for v3: - No change Changes for v2: - No change Makefile| 12 +--- fs/Makefile | 11

[U-Boot] [PATCH v3 1/6] Makefile: support descending down to subdirectories

2013-09-30 Thread Masahiro Yamada
This patch tweaks scripts/Makefile.build to allow the build system to descend into subdirectories like Kbuild. To use this feature, use obj-y += foo/ syntax. Example: obj-$(CONFIG_FOO) += foo/ Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Simon Glass s...@chromium.org ---

Re: [U-Boot] [PATCH 08/10] arm: vf610: add rmii1 iomux definitions

2013-09-30 Thread Marcel Ziswiler
On 09/22/2013 07:56 AM, Wang Huan-B18965 wrote: -Original Message- From: Marcel Ziswiler [mailto:mar...@ziswiler.com] Sent: Tuesday, September 17, 2013 6:45 PM To: u-boot@lists.denx.de Cc: Wang Huan-B18965; Marcel Ziswiler Subject: [PATCH 08/10] arm: vf610: add rmii1 iomux definitions

Re: [U-Boot] [PATCH 0/2] compulab: adjustments before porting more boards

2013-09-30 Thread Igor Grinberg
ping! On 09/16/13 21:49, Igor Grinberg wrote: Two more adjustments before porting more Compulab boards to mainline U-Boot. Move the eeprom code which can be used (and is suitable) by multiple Compulab boards to a common location. Move the display initialization code which can be used by

Re: [U-Boot] [PATCH v2 4/6] ARM: tegra: delete Tegra specific code from toplevel Makefile

2013-09-30 Thread Masahiro Yamada
Hello Stephen This patch moves Tegra specific directory entries from the toplevel Makefile and spl/Makefile to arch/arm/cpu/*/Makefile using Kbuild descending feature. That sounds more like a move than a delete, so the patch subject sounds misleading... You are right. I posted v3 with

[U-Boot] [PPC] get_timer without CONFIG_INTERRUPTS

2013-09-30 Thread Chris Packham
Hi, Has anyone looked at a way of implementing get_timer for PowerPC without using interrupts. We appear to be having a problem with common/usb_hub.c where occasionally (1 in ~150 reboots) we seem to get stuck in the do/while loop in usb_hub_configure. It looks like this should timeout but

[U-Boot] [PATCH 1/9] net: Fix mcast function pointer prototype

2013-09-30 Thread Claudiu Manoil
This fixes the following compiler warnings when activating CONFIG_MCAST_TFTP: tsec.c: In function 'tsec_mcast_addr': tsec.c:130:2: warning: passing argument 2 of 'ether_crc' makes pointer from integer without a cast [enabled by default] In file included from

[U-Boot] [PATCH 5/9] net: fsl_mdio: Fix warnings for __iomem pointers

2013-09-30 Thread Claudiu Manoil
Add the __iomem address space marker for the tsec pointers to struct tsec_mii_mng memory mapped register regions. This solves the sparse warnings for mixig normal pointers with __iomem pointers for tsec. E.g.: fsl_mdio.c:34:19: warning: incorrect type in argument 1 (different address spaces)

[U-Boot] [PATCH 3/9] net: tsec: Fix priv pointer in tsec_mcast_addr()

2013-09-30 Thread Claudiu Manoil
Access to privlist[1] (hardcoded referece to the 2nd tsec's priv area) is neither correct nor does it make sense in the current context. Each tsec dev has access to its own priv instance only, and hence to its own set of group address registers (GADDR) to filter multicast addresses. This fix

[U-Boot] [PATCH 0/9] net: tsec: Driver portability fixes and cleanup

2013-09-30 Thread Claudiu Manoil
Though the first 3 patches fix tsec's driver mcast() instance primarily, the fix from net.h was propagated to other drivers too, as appropriate. Notably, these fixes also end up in removal of some unwanted global static vars from the tsec driver. The rest of the patches are driver portability

[U-Boot] [PATCH 4/9] net: tsec: Cleanup tsec regs init and fix __iomem warns

2013-09-30 Thread Claudiu Manoil
Remove tsec_t typedef. Define macros as getters of tsec and mdio register memory regions, for consistent initialization of various 'regs' fields and also to manage overly long initialization lines. Use the __iomem address space marker to address sparse warnings in tsec.c where IO accessors are

[U-Boot] [PATCH 9/9] net: tsec: Fix mac addr setup portability, cleanup

2013-09-30 Thread Claudiu Manoil
Fix the 32-bit memory access that is not endianess safe, i.e. not giving the desired byte layout for LE cpus: tempval = *((uint *) (tmpbuf + 4)), where 'char tmpbuf[]'. Free the stack from rendundant local vars: tmpbuf[] and i. Use a portable type (u32) for the 32bit tsec register value holder:

[U-Boot] [PATCH 8/9] net: tsec: Use portable regs type (uint-u32)

2013-09-30 Thread Claudiu Manoil
Use cross arch portable u32 instead of uint for the tsec registers. Remove the typedefs for the register struct definitions in the process. Fix long lines. Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com --- drivers/net/tsec.c | 2 +- include/tsec.h | 278

[U-Boot] [PATCH 6/9] net: tsec: Fix CamelCase issues around BD code

2013-09-30 Thread Claudiu Manoil
Fix bufPtr and the rxIdx/ txIdx occurrences to solve the related checkpatch warnings for the coming patches. Signed-off-by: Claudiu Manoil claudiu.man...@freescale.com --- drivers/net/tsec.c | 60 +++--- include/tsec.h | 4 ++-- 2 files

[U-Boot] [PATCH 7/9] net: tsec: Use portable types and accessors for BDs

2013-09-30 Thread Claudiu Manoil
Currently, the buffer descriptor (BD) fields cannot be correctly accessed by a little endian processor. This patch fixes the issue by making the access of BDs to be portable among different cpu architectures. Use portable data types for the Rx/Tx buffer descriptor fields. Add macro accessors to

[U-Boot] [PATCH 2/9] net: tsec: Fix and cleanup tsec_mcast_addr()

2013-09-30 Thread Claudiu Manoil
There are several implementation issues for tsec_mcast_addr() addressed by this patch: * unmanaged, not portable r/w access to registers; fixed with setbits_be32()/ clrbits_be32() * use of volatile pointers * unnecessary forced cast to u8 for the ether_crc() result * removed redundant parens *

Re: [U-Boot] [PATCH 0/3] i2c: improve s3c24x0 with High-speed and new SYS_I2C framework support

2013-09-30 Thread Naveen Krishna Ch
Helo Heiko, Thanks for timely reply. On 30 September 2013 13:35, Heiko Schocher h...@denx.de wrote: Hello Naveen, Am 30.09.2013 08:58, schrieb Naveen Krishna Chatradhi: This patchset fixes few bugs in the existing s3c24x0.c code (standard i2c) and add support for High-speed i2c bus

Re: [U-Boot] i.MX6 based board does not work if watchdog support is enabled

2013-09-30 Thread Anatolij Gustschin
Hi Stefano, On Mon, 30 Sep 2013 07:41:46 +0200 Stefano Babic sba...@denx.de wrote: ... Can you resend the patch in the usual way to ML for including into mainline ? yes, I can resend it. Thanks, Anatolij ___ U-Boot mailing list

[U-Boot] [PATCH] imx_watchdog: do not soft-reset while watchdog init

2013-09-30 Thread Anatolij Gustschin
Currently the driver clears WCR_SRS bit when enabling the watchdog and this causes a software reset. Do not clear WCR_SRS. Signed-off-by: Anatolij Gustschin ag...@denx.de --- drivers/watchdog/imx_watchdog.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 1/6] exynos_fb: Remove usage of static defines

2013-09-30 Thread Ajay Kumar
Previously, we used to statically assign values for vl_col, vl_row and vl_bpix using #defines like LCD_XRES, LCD_YRES and LCD_COLOR16. Introducing the function exynos_lcd_early_init() would take care of this assignment on the fly by parsing FIMD DT properties, thereby allowing us to remove

[U-Boot] [PATCH 0/6] [U-boot] SMDK5420: Add support for FIMD and DP

2013-09-30 Thread Ajay Kumar
This patchset adds support for FIMD and DP on SMDK5420. This patchset has dependency on Rajeshwari's base patchset: [V4] EXYNOS5420: Add SMDK5420 board support http://comments.gmane.org/gmane.comp.boot-loaders.u-boot/170582 Also, for testing we need Naveen's i2c patchset aswell: i2c: improve

[U-Boot] [PATCH 3/6] arm: exynos: Add get_lcd_clk and set_lcd_clk callbacks for Exynos5420

2013-09-30 Thread Ajay Kumar
Add get_lcd_clk and set_lcd_clk callbacks for Exynos5420 needed by exynos video driver. Also, configure ACLK_400_DISP1 as the parent for MUX_ACLK_400_DISP1_SUB_SEL. Signed-off-by: Ajay Kumar ajaykumar...@samsung.com --- arch/arm/cpu/armv7/exynos/clock.c | 74

[U-Boot] [PATCH 6/6] CONFIG: SMDK5420: Enable FIMD and DP

2013-09-30 Thread Ajay Kumar
Enable FIMD and DP drivers on SMDK5420 so that we get to see the LCD console on eDP panel. Signed-off-by: Ajay Kumar ajaykumar...@samsung.com --- include/configs/smdk5420.h | 8 1 file changed, 8 insertions(+) diff --git a/include/configs/smdk5420.h b/include/configs/smdk5420.h index

[U-Boot] [PATCH 2/6] arm: exynos: Add RPLL for Exynos5420

2013-09-30 Thread Ajay Kumar
RPLL is needed to drive the LCD panel on Exynos5420 based boards. Signed-off-by: Ajay Kumar ajaykumar...@samsung.com --- arch/arm/cpu/armv7/exynos/clock_init.h | 3 +++ arch/arm/cpu/armv7/exynos/clock_init_exynos5.c | 13 + 2 files changed, 16 insertions(+) diff --git

[U-Boot] [PATCH 4/6] video: exynos_fimd: Add framework to disable FIMD sysmmu

2013-09-30 Thread Ajay Kumar
On Exynos5420, the FIMD sysmmus are in on state by default. We have to disable them in order to make FIMD DMA work. This patch adds the required framework to exynos_fimd driver to disable FIMD sysmmu on Exynos5420. Signed-off-by: Ajay Kumar ajaykumar...@samsung.com ---

[U-Boot] [PATCH 5/6] smdk5420: Implement callbacks needed by exynos_fb driver

2013-09-30 Thread Ajay Kumar
Add callbacks to set up DP-HPD, backlight and LCD power on SMDK5420. Signed-off-by: Ajay Kumar ajaykumar...@samsung.com --- board/samsung/smdk5420/smdk5420.c | 118 +++--- 1 file changed, 34 insertions(+), 84 deletions(-) diff --git

Re: [U-Boot] [PATCH] gpio: mxc_gpio: Fix gpio_get_value() when the GPIO is an output

2013-09-30 Thread Benoît Thébaudeau
Hi Fabio, On Monday, September 30, 2013 3:32:39 AM, Fabio Estevam wrote: On Sun, Sep 29, 2013 at 7:24 PM, Otavio Salvador ota...@ossystems.com.br wrote: I sent the patch to fix this adding the flag to the GPIO pins. I tested it and it works fine indeed. The patch is awaiting for

[U-Boot] [PATCH v2 03/10] arm: vf610: add uart0 clock definition

2013-09-30 Thread Marcel Ziswiler
Add CCM_CCGR0_UART0_CTRL_MASK clock definition for UART0 aka SCI0. Signed-off-by: Marcel Ziswiler mar...@ziswiler.com --- arch/arm/include/asm/arch-vf610/crm_regs.h |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-vf610/crm_regs.h

[U-Boot] [PATCH v2 00/10] arm: vf610/vf610twr: vybrid tower fixes and enhancements

2013-09-30 Thread Marcel Ziswiler
This patch series addresses several fixes and enhancements for the vybrid tower. Tested on a TWR-VF65GS10 Rev G. Changes v2: - Memory offset based reserved ANADIG field naming scheme. - Fixed mux_ctrl_ofs in secondary RMII1 iomux definitions. Marcel Ziswiler (10): arm: vf610: fix anadig

[U-Boot] [PATCH v2 01/10] arm: vf610: fix anadig register struct

2013-09-30 Thread Marcel Ziswiler
The anadig_reg structure started at the wrong offset (fixed by adding resvA[4]), was missing some reserved field required for alignment purpose (resvB[3] between pll4_denom and pll6_ctrl) and further contained too short a reserved field causing further miss-alignment (resv10[7]). Discovered and

[U-Boot] [PATCH v2 05/10] arm: vf610: add enet1 base address definition

2013-09-30 Thread Marcel Ziswiler
Add secondary Ethernet MAC RMII1 base address definition in preparation of potential secondary only board configurations. Signed-off-by: Marcel Ziswiler mar...@ziswiler.com --- arch/arm/include/asm/arch-vf610/imx-regs.h |1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v2 04/10] arm: vf610: add anadig pll5 definitions

2013-09-30 Thread Marcel Ziswiler
Add ANADIG PLL5 control definitions required for Ethernet RMII clock configuration. Signed-off-by: Marcel Ziswiler mar...@ziswiler.com --- arch/arm/include/asm/arch-vf610/crm_regs.h |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/arch-vf610/crm_regs.h

[U-Boot] [PATCH v2 06/10] arm: vf610: add rmii clkout iomux definition

2013-09-30 Thread Marcel Ziswiler
Add VF610_PAD_PTA6__RMII0_CLKOUT iomux definition eventually required for internal (e.g. crystal-less) Ethernet clocking. Signed-off-by: Marcel Ziswiler mar...@ziswiler.com --- arch/arm/include/asm/arch-vf610/iomux-vf610.h |1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v2 02/10] arm: vf610: clean-up anadig register struct

2013-09-30 Thread Marcel Ziswiler
From: Marcel Ziswiler marcel.ziswi...@toradex.com Rename all the reserved fields using a memory offset based scheme. Signed-off-by: Marcel Ziswiler mar...@ziswiler.com --- arch/arm/include/asm/arch-vf610/crm_regs.h | 54 ++-- 1 file changed, 27 insertions(+), 27

[U-Boot] [PATCH v2 09/10] arm: vf610: fix double iomux configuration for vf610twr board

2013-09-30 Thread Marcel Ziswiler
Get rid of double VF610_PAD_DDR_A15__DDR_A_15 iomux configuration. Signed-off-by: Marcel Ziswiler mar...@ziswiler.com --- board/freescale/vf610twr/vf610twr.c |1 - 1 file changed, 1 deletion(-) diff --git a/board/freescale/vf610twr/vf610twr.c b/board/freescale/vf610twr/vf610twr.c index

[U-Boot] [PATCH v2 10/10] arm: vf610: remove obsolete uart port configuration

2013-09-30 Thread Marcel Ziswiler
Get rid of obsolete CONFIG_SYS_UART_PORT configuration option. Signed-off-by: Marcel Ziswiler mar...@ziswiler.com --- include/configs/vf610twr.h |1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/vf610twr.h b/include/configs/vf610twr.h index 5a7a066..432a69d 100644 ---

[U-Boot] [PATCH v2 08/10] arm: vf610: add rmii1 iomux definitions

2013-09-30 Thread Marcel Ziswiler
From: Marcel Ziswiler marcel.ziswi...@toradex.com Add secondary RMII1 iomux definitions now with correct mux_ctrl_ofs as well. Signed-off-by: Marcel Ziswiler mar...@ziswiler.com --- arch/arm/include/asm/arch-vf610/iomux-vf610.h |9 + 1 file changed, 9 insertions(+) diff --git

[U-Boot] [PATCH v2 07/10] arm: vf610: add uart0 tx/rx iomux definitions

2013-09-30 Thread Marcel Ziswiler
Add UART0 aka SCI0 TX/RX iomux definitions. Signed-off-by: Marcel Ziswiler mar...@ziswiler.com --- arch/arm/include/asm/arch-vf610/iomux-vf610.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-vf610/iomux-vf610.h b/arch/arm/include/asm/arch-vf610/iomux-vf610.h

[U-Boot] [PATCH v2] arm: vf610: initial integration for colibri vf50

2013-09-30 Thread Marcel Ziswiler
Add initial Colibri VF50 support based off Freescale's implementation for the Vybrid Tower System TWR-VF65GS10: - New machine ID. - Default UART_A on SCI0. - FEC1 only. - Enabled command line editing. - PLL5 based RMII clocking (e.g. no external crystal). - UART_A and UART_C I/O muxing. Tested on

[U-Boot] Dual boot Images in Flash

2013-09-30 Thread pshambhu
Hi, I am a new-bee for the u-boot environment, and i am trying to implement/customize the u-boot code for Dual boot loading from the flash. U-boot1 will be the primary Image and U-boot2 will be the Fallback image / backup image. For any situation if my primary image gets corrupted while

[U-Boot] [PATCH v7 3/5] mtd: nand: omap: optimize chip-ecc.calculate() for H/W ECC schemes

2013-09-30 Thread Pekon Gupta
chip-ecc.calculate() is used for calculating and fetching of ECC syndrome by processing the data passed during Read/Write accesses. All H/W based ECC schemes use GPMC controller to calculate ECC syndrome. But each BCHx_ECC scheme has its own implemetation of post-processing and fetching ECC

[U-Boot] [PATCH v7 0/5] mtd: nand: omap: optimize and clean-up of OMAP NAND driver

2013-09-30 Thread Pekon Gupta
*changes in v7* [PATCH 1/5] - omap_gpmc.c: fix: free bytes in OOB (ecclayout-oobfree[0].length) - omap_gpmc.c: cleanup: redundant code added in previous patch versions - am335x_evm.h: cleanup: redundant code added in previous patch versions - tricorder.h: fix:

[U-Boot] [PATCH v7 1/5] mtd: nand: omap: enable BCH ECC scheme using ELM for generic platform

2013-09-30 Thread Pekon Gupta
BCH8_ECC scheme implemented in omap_gpmc.c driver has following favours +---+-+-+ |ECC Scheme | ECC Calculation | Error Detection | +---+-+-+

[U-Boot] [PATCH v7 2/5] mtd: nand: omap: optimize chip-ecc.hwctl() for H/W ECC schemes

2013-09-30 Thread Pekon Gupta
chip-ecc.hwctl() is used for preparing the H/W controller before read/write NAND accesses (like assigning data-buf, enabling ECC scheme configs, etc.) Though all ECC schemes in OMAP NAND driver use GPMC controller for generating ECC syndrome (for both Read/Write accesses). But but in current code

[U-Boot] [PATCH v7 4/5] mtd: nand: omap: optimized chip-ecc.correct() for H/W ECC schemes

2013-09-30 Thread Pekon Gupta
chip-ecc.correct() is used for detecting and correcting bit-flips during read operations. In omap-nand driver it implemented as: (a) omap_correct_data(): for h/w based ECC_HAM1 scheme (b) omap_correct_data_bch() + CONFIG_NAND_OMAP_ECC_BCH8_CODE_HW_DETECTION_SW for ECC_BCH8 scheme using

[U-Boot] [PATCH v7 5/5] board/ti/am335x/README: update for NAND boot

2013-09-30 Thread Pekon Gupta
NAND boot mode on AM335x EVM has been verified, and steps to use it has been documented and update in this README Signed-off-by: Pekon Gupta pe...@ti.com Acked-by: Peter Korsgaard jac...@sunsite.dk Acked-by: Tom Rini tr...@ti.com --- board/ti/am335x/README | 53

Re: [U-Boot] [PATCH v7 1/5] mtd: nand: omap: enable BCH ECC scheme using ELM for generic platform

2013-09-30 Thread Stefan Roese
Hi Pekon, On 30.09.2013 16:13, Pekon Gupta wrote: BCH8_ECC scheme implemented in omap_gpmc.c driver has following favours +---+-+-+ |ECC Scheme | ECC Calculation | Error Detection |

Re: [U-Boot] [PATCH][v2] powerpc/t1040qds: Add T1040QDS board

2013-09-30 Thread York Sun
On 09/29/2013 08:47 PM, Jain Priyanka-B32167 wrote: Thanks York, Please update Maintainers name from Naveen Burmi naveenbu...@freescale.com to Poonam Aggrwal poonam.aggr...@freescale.com in boards.cfg file. Please include this change in next patch you will submit for T1040QDS. York

[U-Boot] [PATCH] ARM: mx5: Enable L2 cache

2013-09-30 Thread Fabio Estevam
Enable L2 cache for improving the system performance. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- arch/arm/cpu/armv7/mx5/lowlevel_init.S | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/cpu/armv7/mx5/lowlevel_init.S b/arch/arm/cpu/armv7/mx5/lowlevel_init.S

Re: [U-Boot] : buildman error

2013-09-30 Thread Simon Glass
Hi Jagan, On Sat, Sep 28, 2013 at 11:29 AM, Jagan Teki jagannadh.t...@gmail.com wrote: Can any one encounter this! looks like some issue on python setup? $ ./tools/buildman/buildman -b master File ./tools/buildman/buildman, line 42 print result ^ SyntaxError: invalid

[U-Boot] SPL port for omap l138

2013-09-30 Thread Laszlo Papp
Hi all, has anyone made such a port in the path that is now readily available for reuse? I wished to have it running as the second stage boot loader, but it is not yet available I might need to fall back to the TI UBL. I would be happier to use SPL, but I would not probably have the required

Re: [U-Boot] [PATCH v7 1/5] mtd: nand: omap: enable BCH ECC scheme using ELM for generic platform

2013-09-30 Thread Gupta, Pekon
Hi Stefan, From: Stefan Roese [mailto:s...@denx.de] On 30.09.2013 16:13, Pekon Gupta wrote: BCH8_ECC scheme implemented in omap_gpmc.c driver has following favours +---+-+-+ |ECC Scheme | ECC

Re: [U-Boot] : buildman error

2013-09-30 Thread Jagan Teki
On Mon, Sep 30, 2013 at 11:12 PM, Simon Glass s...@chromium.org wrote: Hi Jagan, On Sat, Sep 28, 2013 at 11:29 AM, Jagan Teki jagannadh.t...@gmail.com wrote: Can any one encounter this! looks like some issue on python setup? $ ./tools/buildman/buildman -b master File

[U-Boot] [PATCH v2 0/4] enable support for x16 NAND devices

2013-09-30 Thread Pekon Gupta
*changes in v2* [PATCH 1/4]: - dropped NAND_BUSWIDTH_AUTO, instead using CONFIG_SYS_NAND_ONFI_DETECTION - added check in nand_flash_detect_onfi() for x8 mode [PATCH 2/4]: (new) Adds CONFIG_SYS_NAND_DEVICE_WIDTH - updated for auto-detection of bus-width in non-SPL and

[U-Boot] [PATCH v2 2/4] am33xx: add CONFIG_SYS_NAND_DEVICE_WIDTH to determine NAND device bus-width

2013-09-30 Thread Pekon Gupta
NAND driver needs to know bus-width of the connected NAND device, in order to perform proper I/O and initialize itself. Currently there is no CONFIG option to provide this information to NAND driver. - SPL NAND driver does not have framework to parse ONFI parameter page. - NAND drivers which

[U-Boot] [PATCH v2 1/4] mtd: nand: add NAND_BUSWIDTH_AUTO to autodetect bus width

2013-09-30 Thread Pekon Gupta
From: Matthieu CASTET matthieu.cas...@parrot.com This patch is modified version from following linux patch http://lists.infradead.org/pipermail/linux-mtd/2012-November/044803.html So retaining the authorship to Matthieu CASTET matthieu.cas...@parrot.com *Modifications from original patch* (1)

[U-Boot] [PATCH v2 3/4] am335x: fix GPMC config for NAND and NOR SPL boot

2013-09-30 Thread Pekon Gupta
GPMC controller is common IP to interface with both NAND and NOR flash devices. Also, it supports max 8 chip-selects, which can be independently connected to any of the devices. But ROM code expects the boot-device to be connected to only chip-select[0]. Thus to resolve conflict between NOR and

[U-Boot] [PATCH v2 4/4] am33xx: add support for beaglebone x16 NAND cape

2013-09-30 Thread Pekon Gupta
beaglebone board can be connected to expansion boards to add devices to them. These expansion boards are called 'capes'. This patch updates pin-mux for 'NAND' cape which can be used with beaglebone LT (white). Further information and datasheets of this NAND cape can be found at: -

Re: [U-Boot] : buildman error

2013-09-30 Thread Jeroen Hofstee
On 09/30/2013 08:09 PM, Jagan Teki wrote: On Mon, Sep 30, 2013 at 11:12 PM, Simon Glass s...@chromium.org wrote: Hi Jagan, On Sat, Sep 28, 2013 at 11:29 AM, Jagan Teki jagannadh.t...@gmail.com wrote: Can any one encounter this! looks like some issue on python setup? $

Re: [U-Boot] [PATCH v7 1/5] mtd: nand: omap: enable BCH ECC scheme using ELM for generic platform

2013-09-30 Thread Gupta, Pekon
Hi Stefan, From: Stefan Roese [mailto:s...@denx.de] On 30.09.2013 16:13, Pekon Gupta wrote: BCH8_ECC scheme implemented in omap_gpmc.c driver has following favours +---+-+-+ |ECC Scheme | ECC

[U-Boot] [PATCH v2 2/2] ti814x: add support for NAND flash on ti814x_evm board

2013-09-30 Thread Pekon Gupta
ti814x_evm has on-board socket for using Micron (MT29Fxx) family of NAND devices to GPMC interface. This patch - adds NAND related pin-mux configuration for same - adds #defines for NAND partitions to TI814x configs - enables support for NAND in TI814x configs Signed-off-by: Pekon Gupta

[U-Boot] [PATCH v2 1/2] ti814x: enable support for parallel NAND flash devices

2013-09-30 Thread Pekon Gupta
TI81xx (TI816x, TI814x, TI813x) family of devices include in-built GPMC and ELM hardware controllers which have the capability to support: - x8 and x16 parallel NAND, NOR flash devices. - generation and error detection of Hamming and BCH ECC schemes. This patch enables support for detection and

Re: [U-Boot] : buildman error

2013-09-30 Thread Jagan Teki
On Tue, Oct 1, 2013 at 12:00 AM, Jeroen Hofstee dasub...@myspectrum.nl wrote: On 09/30/2013 08:09 PM, Jagan Teki wrote: On Mon, Sep 30, 2013 at 11:12 PM, Simon Glass s...@chromium.org wrote: Hi Jagan, On Sat, Sep 28, 2013 at 11:29 AM, Jagan Teki jagannadh.t...@gmail.com wrote: Can any

Re: [U-Boot] : buildman error

2013-09-30 Thread Jeroen Hofstee
On 09/30/2013 08:55 PM, Jagan Teki wrote: I think print is now required to be a function, so print(result). We may need to adjust the code... Does this print func chage with new python versions? yes, since python 3 it needs brackets. If we fix this, is it compatible for lower versions?

Re: [U-Boot] Dual boot Images in Flash

2013-09-30 Thread Wolfgang Denk
Dear pshambhu, In message 1380547665536-164381.p...@n7.nabble.com you wrote: As per previous posting i got to know that, there will be only one reset entry point, can't i have the another entry point in it. You can talk to your chip vendor to provide you with some kind of logic to detect

Re: [U-Boot] [PATCH] Change maintainer for Avionic Design boards

2013-09-30 Thread Tom Warren
Thierry, -Original Message- From: Thierry Reding [mailto:thierry.red...@gmail.com] Sent: Monday, September 23, 2013 2:53 AM To: Tom Warren Cc: u-boot@lists.denx.de Subject: [PATCH] Change maintainer for Avionic Design boards I no longer work for Avionic Design and don't have

Re: [U-Boot] [PATCH v2 2/2] Tegra114: Do not program CPCON field for PLLX

2013-09-30 Thread Tom Warren
Thierry, -Original Message- From: Thierry Reding [mailto:thierry.red...@gmail.com] Sent: Monday, September 23, 2013 1:08 PM To: Tom Warren Cc: u-boot@lists.denx.de Subject: [PATCH v2 2/2] Tegra114: Do not program CPCON field for PLLX PLLX no longer has the CPCON field on

[U-Boot] [PATCH] mx5: lowlevel_init: Remove unused macro

2013-09-30 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com setup_wdog macro is not used anywhere, so just remove it. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- arch/arm/cpu/armv7/mx5/lowlevel_init.S | 6 -- 1 file changed, 6 deletions(-) diff --git

Re: [U-Boot] [PATCH 7/9] net: tsec: Use portable types and accessors for BDs

2013-09-30 Thread Scott Wood
On Mon, 2013-09-30 at 12:44 +0300, Claudiu Manoil wrote: +static RTXBD rtx __aligned(8); +#define RXBD(i) rtx.rxbd[i] +#define TXBD(i) rtx.txbd[i] +#define GET_BD_STAT(T, i) be16_to_cpu((__force __be16)T##BD(i).status) +#define SET_BD_STAT(T, i, v) T##BD(i).status = (__force

[U-Boot] declaring and initializing variables

2013-09-30 Thread York Sun
Kim, et al., I know I have asked this before. Pardon me as I don't consider myself a savy programmer. I am cleaning up the DDR driver for mpc83xx, mpc85xx and mpc86xx. The question is the accetable formats of declaring and initializing variable at the same time. The variables are the ccsr

Re: [U-Boot] declaring and initializing variables

2013-09-30 Thread Timur Tabi
On Mon, Sep 30, 2013 at 7:04 PM, York Sun york...@freescale.com wrote: struct ccsr_ddr __iomem *ddr = (void *) CONFIG_FOO_ADDR; struct ccsr_ddr __iomem *ddr = (struct ccsr_ddr __iomem *) CONFIG_FOO_ADDR; You have told me the second format is preferred. I have been using this format

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-09-30 Thread Scott Wood
On Mon, 2013-09-09 at 20:54 -0500, Scott Wood wrote: It seems the problem is that when rela is used, the linker *only* puts the symbol in the rela struct. The value in the data section itself is zero, which means we can't run without relocation even if the address hasn't changed. Unless

Re: [U-Boot] [PATCH] config: Add a default CONFIG_SYS_PROMPT

2013-09-30 Thread Fabio Estevam
On Mon, Sep 30, 2013 at 7:11 PM, Rob Herring robherri...@gmail.com wrote: From: Rob Herring rob.herr...@calxeda.com The definitions for CONFIG_SYS_PROMPT are varied with little reason other than to display the board name. Over half the definitions are == , so make this the default. The rest