Re: [U-Boot] U-boot2013:07-Recompile with -fPIC error for mips64 board

2013-07-01 Thread Amit Virdi
(such as avoiding top posting etc.) if you want a genuine response. Otherwise, your messages would be considered simply as noise and no one would bother to respond. Regards Amit Virdi ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de

Re: [U-Boot] [PATCH V2] USB:gadget:designware USB OTG implementation

2012-10-16 Thread Amit Virdi
Dear Marek, On 10/16/2012 11:54 AM, Marek Vasut wrote: Dear Amit Virdi, [...] Did we get any further with this patch please? Vipin shall send V3 on this soon. Regards Amit Virdi ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de

Re: [U-Boot] [PATCH v2] net/designware: Consecutive writes to the same register to be avoided

2012-06-10 Thread Amit Virdi
HTXFIFO | readl(&dma_p->opmode),&dma_p->opmode); - writel(STOREFORWARD | TXSECONDFRAME,&dma_p->opmode); + writel(readl(&dma_p->opmode) | FLUSHTXFIFO | STOREFORWARD | + TXSECONDFRAME,&dma_p->opmode); conf = FRAMEBURSTENAB

Re: [U-Boot] [PATCH V5 RESEND 0/3] mtd/NAND: Support for FSMC controller

2012-05-31 Thread Amit Virdi
2012 + * Amit Virdi, ST Micoelectronics, amit.vi...@st.com. Regards Amit Virdi ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH V5 RESEND 1/3] mtd/NAND: Add FSMC driver support

2012-05-25 Thread Amit Virdi
Scott, On 5/24/2012 10:04 PM, Vikram Narayanan wrote: +/* + * (C) Copyright 2010 + * Vipin Kumar, ST Micoelectronics, vipin.ku...@st.com. + * + * (C) Copyright 2012 + * Amit Virdi, ST Micoelectronics, amit.vi...@st.com. Fix the typo please. In all the copyright headers. If you're fine

[U-Boot] [PATCH V5 RESEND 3/3] mtd/NAND: Remove obsolete SPEAr specific NAND drivers

2012-05-23 Thread Amit Virdi
From: Vipin KUMAR Since, SPEAr platform uses generic FSMC driver now, so spear specific files drivers/mtd/nand/spr_nand.c, arch/arm/include/asm/arch-spear/spr_nand.h are removed Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include/asm/arch-spear/spr_nand.h | 57

[U-Boot] [PATCH V5 RESEND 1/3] mtd/NAND: Add FSMC driver support

2012-05-23 Thread Amit Virdi
Signed-off-by: Amit Virdi --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/fsmc_nand.c | 487 + include/linux/mtd/fsmc_nand.h | 101 + 3 files changed, 589 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/nand/fsmc_nand.c

[U-Boot] [PATCH V5 RESEND 2/3] SPEAr: Configure FSMC driver for NAND interface

2012-05-23 Thread Amit Virdi
From: Vipin KUMAR Since FSMC is a standard IP and it supports different memory interfaces, it is supported independent of spear platform and spear is configured to use that driver for interfacing with the NAND device Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include

[U-Boot] [PATCH V5 RESEND 0/3] mtd/NAND: Support for FSMC controller

2012-05-23 Thread Amit Virdi
This patchset adds support for ST's FSMC controller. In the current u-boot, a SPEAr specific driver exists for FSMC controller. This patchset adds a full fledged driver that can be used across multiple platforms and removes the obsolete SPEAr specific driver. V4 -> V5 - Dropped the patch that de

Re: [U-Boot] [PATCH V5 0/3] mtd/NAND: Support for FSMC controller

2012-05-23 Thread Amit Virdi
On 5/22/2012 3:45 PM, Amit VIRDI wrote: This patchset adds support for ST's FSMC controller. In the current u-boot, a SPEAr specific driver exists for FSMC controller. This patchset adds a full fledged driver that can be used across multiple platforms and removes the obsolete SPEAr spe

Re: [U-Boot] [PATCH V4 1/4] ARM: Define change_bit routine

2012-05-23 Thread Amit Virdi
Hi Wolfgang, On 5/22/2012 9:21 PM, Wolfgang Denk wrote: Dear Amit Virdi, In message<4fbb6712.3040...@st.com> you wrote: Alright, I shall be soon sending V5 that drops this patch and uses __change_bit directly. It would be a much better investment in time if you come up with patche

[U-Boot] [PATCH V5 3/3] mtd/NAND: Remove obsolete SPEAr specific NAND drivers

2012-05-22 Thread Amit Virdi
From: Vipin KUMAR Since, SPEAr platform uses generic FSMC driver now, so spear specific files drivers/mtd/nand/spr_nand.c, arch/arm/include/asm/arch-spear/spr_nand.h are removed Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include/asm/arch-spear/spr_nand.h | 57

[U-Boot] [PATCH V5 1/3] mtd/NAND: Add FSMC driver support

2012-05-22 Thread Amit Virdi
Signed-off-by: Amit Virdi --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/fsmc_nand.c | 486 + include/linux/mtd/fsmc_nand.h | 101 + 3 files changed, 588 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/nand/fsmc_nand.c

[U-Boot] [PATCH V5 2/3] SPEAr: Configure FSMC driver for NAND interface

2012-05-22 Thread Amit Virdi
From: Vipin KUMAR Since FSMC is a standard IP and it supports different memory interfaces, it is supported independent of spear platform and spear is configured to use that driver for interfacing with the NAND device Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include

[U-Boot] [PATCH V5 0/3] mtd/NAND: Support for FSMC controller

2012-05-22 Thread Amit Virdi
This patchset adds support for ST's FSMC controller. In the current u-boot, a SPEAr specific driver exists for FSMC controller. This patchset adds a full fledged driver that can be used across multiple platforms and removes the obsolete SPEAr specific driver. V4 -> V5 - Dropped the patch that de

Re: [U-Boot] [PATCH V4 1/4] ARM: Define change_bit routine

2012-05-22 Thread Amit Virdi
have interrupt support (at least on powerpc -- not sure about ARM), so this should be atomic against interrupts. The NAND driver should be using __change_bit() instead. Alright, I shall be soon sending V5 that drops this patch and uses __change_bit directly. Thanks Amit

[U-Boot] [PATCH V4 4/4] mtd/NAND: Remove obsolete SPEAr specific NAND drivers

2012-05-17 Thread Amit Virdi
From: Vipin KUMAR Since, SPEAr platform uses generic FSMC driver now, so spear specific files drivers/mtd/nand/spr_nand.c, arch/arm/include/asm/arch-spear/spr_nand.h are removed Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include/asm/arch-spear/spr_nand.h | 57

[U-Boot] [PATCH V4 3/4] SPEAr: Configure FSMC driver for NAND interface

2012-05-17 Thread Amit Virdi
From: Vipin KUMAR Since FSMC is a standard IP and it supports different memory interfaces, it is supported independent of spear platform and spear is configured to use that driver for interfacing with the NAND device Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include

[U-Boot] [PATCH V4 2/4] mtd/NAND: Add FSMC driver support

2012-05-17 Thread Amit Virdi
Signed-off-by: Amit Virdi --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/fsmc_nand.c | 486 + include/linux/mtd/fsmc_nand.h | 101 + 3 files changed, 588 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/nand/fsmc_nand.c

[U-Boot] [PATCH V4 1/4] ARM: Define change_bit routine

2012-05-17 Thread Amit Virdi
. FSMC is a memory controller peripheral from ST. The new driver implements the NAND interface part of the peripheral. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include/asm/bitops.h |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm

[U-Boot] [PATCH V4 0/4] mtd/NAND: Support for FSMC controller

2012-05-17 Thread Amit Virdi
This patchset adds support for ST's FSMC controller. In the current u-boot, a SPEAr specific driver exists for FSMC controller. This patchset adds a full fledged driver that can be used across multiple platforms and removes the obsolete SPEAr specific driver. V3->V4 - Removed local_irq_save and

Re: [U-Boot] [PATCH V3 RESEND 2/4] mtd/NAND: Add FSMC driver support

2012-05-17 Thread Amit Virdi
On 5/16/2012 10:24 PM, Scott Wood wrote: On 05/16/2012 07:06 AM, Amit Virdi wrote: + if ((bits_ecc + bits_data)<= 8) { + if (bits_data) + memset(dat, 0xff, 512); + return bits_data; return bits_d

Re: [U-Boot] [PATCH V2 2/4] mtd/NAND: Add FSMC driver support

2012-05-17 Thread Amit Virdi
the data area are not contiguous here as they are at different parts of RAM so we couldn't have done if (err_idx[i]< (512+13) * 8) { here. You could still increment the error count. Yes. Thanks Amit Virdi ___ U-Boot mailing list U-Boot@lists

[U-Boot] [PATCH V3 RESEND 4/4] mtd/NAND: Remove obsolete SPEAr specific NAND drivers

2012-05-16 Thread Amit Virdi
From: Vipin KUMAR Since, SPEAr platform uses generic FSMC driver now, so spear specific files drivers/mtd/nand/spr_nand.c, arch/arm/include/asm/arch-spear/spr_nand.h are removed Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include/asm/arch-spear/spr_nand.h | 57

[U-Boot] [PATCH V3 RESEND 3/4] SPEAr: Configure FSMC driver for NAND interface

2012-05-16 Thread Amit Virdi
From: Vipin KUMAR Since FSMC is a standard IP and it supports different memory interfaces, it is supported independent of spear platform and spear is configured to use that driver for interfacing with the NAND device Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include

[U-Boot] [PATCH V3 RESEND 2/4] mtd/NAND: Add FSMC driver support

2012-05-16 Thread Amit Virdi
Signed-off-by: Amit Virdi --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/fsmc_nand.c | 486 + include/linux/mtd/fsmc_nand.h | 101 + 3 files changed, 588 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/nand/fsmc_nand.c

[U-Boot] [PATCH V3 RESEND 1/4] ARM: Define change_bit routine

2012-05-16 Thread Amit Virdi
new driver implements the NAND interface part of the peripheral. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include/asm/bitops.h | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm

[U-Boot] [PATCH V3 RESEND 0/4] mtd/NAND: Support for FSMC controller

2012-05-16 Thread Amit Virdi
This patchset adds support for ST's FSMC controller. In the current u-boot, a SPEAr specific driver exists for FSMC controller. This patchset adds a full fledged driver that can be used across multiple platforms and removes the obsolete SPEAr specific driver. V2 -> V3 - Implemented timeout durin

Re: [U-Boot] [PATCH V3 0/4] mtd/NAND: Support for FSMC controlle

2012-05-16 Thread Amit Virdi
Kindly discard this patchset, it is same as V2 as I used older sha key to generate the patchset. I'm so sorry for this mess. Sending the correct patchset On 5/16/2012 5:15 PM, Amit VIRDI wrote: This patchset adds support for ST's FSMC controller. In the current u-boot, a SPEA

[U-Boot] [PATCH V3 4/4] mtd/NAND: Remove obsolete SPEAr specific NAND drivers

2012-05-16 Thread Amit Virdi
From: Vipin KUMAR Since, SPEAr platform uses generic FSMC driver now, so spear specific files drivers/mtd/nand/spr_nand.c, arch/arm/include/asm/arch-spear/spr_nand.h are removed Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include/asm/arch-spear/spr_nand.h | 57

[U-Boot] [PATCH V3 2/4] mtd/NAND: Add FSMC driver support

2012-05-16 Thread Amit Virdi
Signed-off-by: Amit Virdi --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/fsmc_nand.c | 484 + include/linux/mtd/fsmc_nand.h | 110 ++ 3 files changed, 595 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/nand/fsmc_nand.c

[U-Boot] [PATCH V3 3/4] SPEAr: Configure FSMC driver for NAND interface

2012-05-16 Thread Amit Virdi
From: Vipin KUMAR Since FSMC is a standard IP and it supports different memory interfaces, it is supported independent of spear platform and spear is configured to use that driver for interfacing with the NAND device Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include

[U-Boot] [PATCH V3 0/4] mtd/NAND: Support for FSMC controlle

2012-05-16 Thread Amit Virdi
This patchset adds support for ST's FSMC controller. In the current u-boot, a SPEAr specific driver exists for FSMC controller. This patchset adds a full fledged driver that can be used across multiple platforms and removes the obsolete SPEAr specific driver. V2 -> V3 - Implemented timeout durin

[U-Boot] [PATCH V3 1/4] ARM: Define change_bit routine

2012-05-16 Thread Amit Virdi
new driver implements the NAND interface part of the peripheral. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include/asm/bitops.h | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm

Re: [U-Boot] [PATCH V2 2/4] mtd/NAND: Add FSMC driver support

2012-05-16 Thread Amit Virdi
Three fixups. Signed-off-by: Amit Virdi Please discard this. I'll send changes in the V3 patchset. Thanks Amit Virdi ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH V2 2/4] mtd/NAND: Add FSMC driver support

2012-05-16 Thread Amit Virdi
5, >> +FSMC_VER6, >> +FSMC_VER7, >> +FSMC_VER8, >> +}; > > Is this really necessary? > Three fixups. Signed-off-by: Amit Virdi --- drivers/mtd/nand/fsmc_nand.c | 24 +--- include/linux/mtd/fsmc_nand.h | 12 ++-- 2 files c

Re: [U-Boot] [PATCH V2 2/4] mtd/NAND: Add FSMC driver support

2012-05-16 Thread Amit Virdi
Hi Scott, On 5/16/2012 2:44 AM, Scott Wood wrote: On 05/07/2012 02:26 AM, Amit Virdi wrote: + while (num_err--) { + change_bit(0,&err_idx[i]); + change_bit(1,&err_idx[i]); + + if (err_idx[i]< 512 * 8) { + change_

Re: [U-Boot] [PATCH 4/7] SPL: ARM: spear: Remove some objects from SPL build

2012-05-09 Thread Amit Virdi
Stefan, On 5/8/2012 1:00 PM, Stefan Roese wrote: Signed-off-by: Stefan Roese Cc: Amit Virdi Cc: Vipin Kumar --- board/spear/common/Makefile |2 ++ board/spear/spear600/Makefile |2 ++ 2 files changed, 4 insertions(+) diff --git a/board/spear/common/Makefile b/board/spear/common

Re: [U-Boot] [PATCH] NAND: Remove ONFI detection message to from bootup log

2012-05-09 Thread Amit Virdi
: 128 MiB Tested on x600 (SPEAr600). Signed-off-by: Stefan Roese Cc: Amit Virdi Cc: Vipin Kumar Cc: Scott Wood --- drivers/mtd/nand/nand_base.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index bef79be..bfd6

Re: [U-Boot] [PATCH] net: Multiple updates/enhancements to designware.c

2012-05-09 Thread Amit Virdi
() to read link status from PHY. - Print status and progress of auto negotiation. - Print link status (speed, dupex) upon first usage. Signed-off-by: Stefan Roese Cc: Amit Virdi Cc: Vipin Kumar Cc: Joe Hershberger --- drivers/net/designware.c | 114 +---

[U-Boot] [PATCH V2 RESEND 19/24] SPEAr: Enable ONFI nand flash detection for spear3xx and 6xx and evb

2012-05-07 Thread Amit Virdi
From: Vipin Kumar Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear-common.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/configs/spear-common.h b/include/configs/spear-common.h index 89fbb15..ec4642f

[U-Boot] [PATCH V2 RESEND 24/24] cleanup/SPEAr: Define configuration flags more elegantly

2012-05-07 Thread Amit Virdi
In SPEAr, some of the configuration flags eg. CONFIG_SPEAR_EMI, were given value "1", which isn't required. Define the flags without assigning any value Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear-common.h | 16 include/configs

[U-Boot] [PATCH V2 RESEND 23/24] cleanup/SPEAr: Remove unnecessary parenthesis

2012-05-07 Thread Amit Virdi
In SPEAr configuration files, unnecessary paranthesis are used in some \#defines. Remove them as they serve no purpose Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- arch/arm/include/asm/arch-spear/spr_gpt.h |4 ++-- include/configs/spear-common.h|8 include

[U-Boot] [PATCH V2 RESEND 22/24] SPEAr: Correct SoC ID offset in misc configuration space

2012-05-07 Thread Amit Virdi
From: Shiraz Hashim SoC Core ID offset is 0x30 in miscellaneous configuration address space. It was wrongly mentioned as periph2 clk enable. Signed-off-by: Shiraz Hashim Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- arch/arm/include/asm/arch-spear/spr_misc.h |2 +- 1 files

[U-Boot] [PATCH V2 RESEND 20/24] SPEAr: Remove CONFIG_MTD_NAND_VERIFY_WRITE to speed up NAND access

2012-05-07 Thread Amit Virdi
When CONFIG_MTD_NAND_VERIFY_WRITE is defined, nand driver read back the data everytime it writes. This process unnecessarily slows down the nand access. Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear-common.h |1 - 1 files changed, 0 insertions(+), 1 deletions

[U-Boot] [PATCH V2 RESEND 21/24] SPEAr: explicitly select clk src for UART

2012-05-07 Thread Amit Virdi
From: Shiraz Hashim UART in u-boot intends to run on 48MHz clock supplied by USB PLL. Explicitly select the intended clock source. Signed-off-by: Shiraz Hashim Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- arch/arm/cpu/arm926ejs/spear/cpu.c |7 ++- arch/arm/include

[U-Boot] [PATCH V2 RESEND 18/24] SPEAr: Enable CONFIG_SYS_FLASH_EMPTY_INFO macro

2012-05-07 Thread Amit Virdi
From: Vipin Kumar Enable CONFIG_SYS_FLASH_EMPTY_INFO macro to enable reporting of empty sector information through flinfo command. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear-common.h |3 ++- 1 files changed, 2 insertions(+), 1

[U-Boot] [PATCH V2 RESEND 17/24] SPEAr: Correct the definition of CONFIG_SYS_MONITOR_BASE

2012-05-07 Thread Amit Virdi
booting from flash. This patch corrects the definition of CONFIG_SYS_MONITOR_BASE and sets it to TEXT_BASE Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- include/configs/spear-common.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/spear

[U-Boot] [PATCH V2 RESEND 15/24] SPEAr: Enable dcache for fast file transfer

2012-05-07 Thread Amit Virdi
0m0.002s sys 0m0.064s After Enhancements == $ time ukermit.large -p /dev/ttyACM0 -f spear320_uImage.img Downloading file: 100.00% completed(2014080/2014080 bytes) real0m5.441s user0m0.001s sys 0m0.001s Signed-off-by: Shiraz Hashim Signed-off-by: Amit Virdi --- board

[U-Boot] [PATCH V2 RESEND 16/24] SPEAr: Enable CONFIG_SYS_FLASH_PROTECTION

2012-05-07 Thread Amit Virdi
unlocked explicitly before being erased or written. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear3xx_evb.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/configs/spear3xx_evb.h b/include/configs/spear3xx_evb.h

[U-Boot] [PATCH V2 RESEND 12/24] SPEAr: Enable usb device high speed support

2012-05-07 Thread Amit Virdi
From: Vipin KUMAR This patch enables the support for usb high speed device for spear platform SOCs Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- include/configs/spear-common.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/spear-common.h b

[U-Boot] [PATCH V2 RESEND 13/24] SPEAr: Enable udc and usb-console support only for usbtty configuration

2012-05-07 Thread Amit Virdi
From: Vipin KUMAR This patch enables the UDC and usb-console support only for usbtty configurations Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear-common.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a

[U-Boot] [PATCH V2 RESEND 14/24] SPEAr: Enable autoneg for ethernet

2012-05-07 Thread Amit Virdi
command in u-boot starts to timeout very often. When Autoneg is ON, same phys started working perfectly. Reported-by: Deepak Sikri Reported-by: Armando Visconti Signed-off-by: Shiraz Hashim Signed-off-by: Amit Virdi --- include/configs/spear-common.h |1 + 1 files changed, 1 insertions(+), 0

[U-Boot] [PATCH V2 RESEND 06/24] SPEAr: Add interface information in initialization

2012-05-07 Thread Amit Virdi
From: Vipin Kumar Few Designware peripheral registers need to be modified based on the ethernet interface selected by the board. This patch supports interface information in ethernet driver Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- board/spear/spear300/spear300.c | 11

[U-Boot] [PATCH V2 RESEND 08/24] SPEAr: Add configuration options for spear3xx and spear6xx boards

2012-05-07 Thread Amit Virdi
configurations 1. Environment placed in NAND 2. Console on usb device 3. Console on usb device with environment placed in NAND 4. SPEAr310 and SPEAr320 support environment variables in parallel NOR flash. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- board/spear/spear300/config.mk

[U-Boot] [PATCH V2 RESEND 11/24] SPEAr: Initialize SNOR in early_board_init_f

2012-05-07 Thread Amit Virdi
flash reading is required earlier than flash_init is called since the env_init is called before flash_init. This makes the smi_init necessary before env_init being called. Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- board/spear/common/spr_misc.c |8 include/configs/spear

[U-Boot] [PATCH V2 RESEND 10/24] SPEAr: Change the default environment variables

2012-05-07 Thread Amit Virdi
. This is necessary because the Parallel NOR flash connected on the spear310 and spear320 boards, M28W64, has all its sectors in locked state at reset and these have to be unlocked explicitly before being erased or written. Signed-off-by: Vipin Kumar Signed-off-by: Shiraz Hashim Signed-off-by: Amit Vi

[U-Boot] [PATCH V2 RESEND 09/24] SPEAr: Remove unused flag (CONFIG_SYS_HZ_CLOCK)

2012-05-07 Thread Amit Virdi
From: Vipin KUMAR SPEAr doesn't need CONFIG_SYS_HZ_CLOCK. This commit removes it. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear-common.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/configs/

[U-Boot] [PATCH V2 RESEND 07/24] SPEAr: Add basic arch related support for SPEAr SoCs

2012-05-07 Thread Amit Virdi
From: Vipin KUMAR Earlier, architecture specific init code was mixed with board initialization code in board/spear/... This patch updates architecture support for SPEAr in latest u-boot and prints the SoC information. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Acked-by: Stefan Roese

[U-Boot] [PATCH V2 RESEND 05/24] SPEAr: Add macb driver support for spear310 and spear320

2012-05-07 Thread Amit Virdi
From: Vipin KUMAR SPEAr310 and SPEAr320 SoCs have an extra ethernet controller. The driver for this device is already supported by u-boot, so configuring board configuration file and defining base addresses etc to make use of the common driver Signed-off-by: Vipin Kumar Signed-off-by: Amit

[U-Boot] [PATCH V2 RESEND 04/24] SPEAr: Configure network support for spear SoCs

2012-05-07 Thread Amit Virdi
From: Vipin KUMAR Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include/asm/arch-spear/hardware.h |1 + board/spear/spear300/spear300.c| 10 ++ board/spear/spear310/spear310.c| 10 ++ board/spear/spear320/spear320.c

[U-Boot] [PATCH V2 RESEND 03/24] SPEAr: Place ethaddr write and read within CONFIG_CMD_NET

2012-05-07 Thread Amit Virdi
From: Vipin KUMAR ethaddr can be optionally read from i2c memory. So, chip_config command supports reading/writing hw mac id into i2c memory. Placing this code within CONFIG_CMD_NET as this would only be needed when network interface is configured Signed-off-by: Vipin Kumar Signed-off-by: Amit

[U-Boot] [PATCH V2 RESEND 02/24] SPEAr: Eliminate dependency on Xloader table

2012-05-07 Thread Amit Virdi
Xloader table was used primarily to inform u-boot about the DDR size. However, now the ddr size is calculated at runtime which eliminates any need for the Xloader table. So removing this unnecessary code. Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- arch/arm/include/asm/arch-spear

[U-Boot] [PATCH V2 RESEND 01/24] SPEAr: Fix ARM relocation support

2012-05-07 Thread Amit Virdi
relocation wasn't complete, dram_init populated an uninitialized global variable resulting in corruption of .rel.dyn area, which resulted in u-boot crash. This commit fixes this problem by removing code that accesses bss segment Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- board/spear/c

[U-Boot] [PATCH V2 RESEND 00/24] SPEAr: Update platform support for SPEAr3xx/6xx

2012-05-07 Thread Amit Virdi
emoved following config variables: CONFIG_MONITOR_IS_IN_RAM CONFIG_MTD_NAND_VERIFY_WRITE - Defined CONFIG_EXTRA_ENV_UNLOCK only for SPEAr310 and SPEAr320 - Some cosmetic cleanups Amit Virdi (6): SPEAr: Fix ARM relocation support SPEAr: Eliminate dependency on Xloader table SPEAr: Initializ

[U-Boot] [PATCH V1 RESEND 12/12] st_smi: Fixed page size for Winbond W25Q128FV flash

2012-05-07 Thread Amit Virdi
From: Armando Visconti Signed-off-by: Armando Visconti Signed-off-by: Amit Virdi --- drivers/mtd/st_smi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/st_smi.c b/drivers/mtd/st_smi.c index bd5602b..3f689e7 100644 --- a/drivers/mtd/st_smi.c +++ b

[U-Boot] [PATCH V1 RESEND 11/12] st_smi: Change timeout loop implementation

2012-05-07 Thread Amit Virdi
There are two problems in the current timeout loop implementation: 1. In case initial test failing, there will always be a delay of 1 ms 2. The delay duration is not tunable The new implementation addresses both these limitations. Signed-off-by: Amit Virdi --- drivers/mtd/st_smi.c | 27

[U-Boot] [PATCH V1 RESEND 10/12] st_smi: Fix bug in flash_print_info()

2012-05-07 Thread Amit Virdi
From: Armando Visconti If the flash size was smaller than 1MB then flash_print_info() was erroneously reporting 0 MB. Signed-off-by: Armando Visconti Signed-off-by: Amit Virdi --- drivers/mtd/st_smi.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers

[U-Boot] [PATCH V1 RESEND 09/12] st_smi: Change the flash probing method

2012-05-07 Thread Amit Virdi
From: Armando Visconti THis patch introduces a new methodology for flash probing in which flash_devices[] table, looked-up thru the dev_id, is used to locate the flash geometry and information. Signed-off-by: Armando Visconti Signed-off-by: Amit Virdi --- drivers/mtd/st_smi.c | 92

[U-Boot] [PATCH V1 RESEND 05/12] st_smi: Read status until timeout happens

2012-05-07 Thread Amit Virdi
From: Vipin KUMAR SMI driver read status fails because the control register could not be overwritten. Instead, the read status should be tried until timeout. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- drivers/mtd/st_smi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions

[U-Boot] [PATCH V1 RESEND 08/12] st_smi: Removed no needed dependency on ST_M25Pxx_ID

2012-05-07 Thread Amit Virdi
From: Armando Visconti Since the smi erase code is very generic and works for any kind of flash, there is no need to test for ST_M25Pxx_ID flash types like m25p40 flashes). Signed-off-by: Armando Visconti Signed-off-by: Amit Virdi --- drivers/mtd/st_smi.c | 50

[U-Boot] [PATCH V1 RESEND 07/12] st_smi: Fix smi read status

2012-05-07 Thread Amit Virdi
From: Vipin Kumar smi_read_sr fails sometimes because of TFF not getting set within assumed time. This condition may arise because of, for example, smi memory being in a erase mode. This fix is to enable reading the status register until timeout. Signed-off-by: Vipin Kumar Signed-off-by: Amit

[U-Boot] [PATCH V1 RESEND 06/12] st_smi: Move status register read before modifying ctrl register

2012-05-07 Thread Amit Virdi
From: Shiraz Hashim Signed-off-by: Shiraz Hashim Signed-off-by: Amit Virdi --- drivers/mtd/st_smi.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/st_smi.c b/drivers/mtd/st_smi.c index 7b4c6f3..eb902b2 100644 --- a/drivers/mtd/st_smi.c +++ b/drivers

[U-Boot] [PATCH V1 RESEND 04/12] st_smi: Enhance the error handling

2012-05-07 Thread Amit Virdi
This commit does the following: - Reports error if SNOR flash is not found on the board - Changes smi_read_sr to return error using which a retry mechanism is implemented for reading flash status Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- drivers/mtd/st_smi.c | 34

[U-Boot] [PATCH V1 RESEND 03/12] st_smi: Change SMI timeout values

2012-05-07 Thread Amit Virdi
Signed-off-by: Amit Virdi --- include/linux/mtd/st_smi.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mtd/st_smi.h b/include/linux/mtd/st_smi.h index b7a78ac..04f81ea 100644 --- a/include/linux/mtd/st_smi.h +++ b/include/linux/mtd/st_smi.h @@ -109,8

[U-Boot] [PATCH V1 RESEND 01/12] st_smi: Add support for SPEAr SMI driver

2012-05-07 Thread Amit Virdi
renamed to st_smi.c and st_smi.h and moved into drivers/mtd folder for reusability by other platforms using smi controller peripheral. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- drivers/mtd/Makefile |2 +- drivers/mtd/{spr_smi.c => st_sm

[U-Boot] [PATCH V1 RESEND 02/12] st_smi: Return error in case TFF is not set

2012-05-07 Thread Amit Virdi
Curently the code makes wrong assumption that the Transfer finished flag shall be set within the stipulated time. However, there may occur a scenario in which the TFF flag is not set. Return error in that case. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- drivers/mtd/st_smi.c

[U-Boot] [PATCH V1 RESEND 00/12] mtd/SMI: Add support for ST SMI controller

2012-05-07 Thread Amit Virdi
duced so as to make the driver generic. This patchset is rebased on "next". Amit Virdi (4): st_smi: Return error in case TFF is not set st_smi: Change SMI timeout values st_smi: Enhance the error handling st_smi: Change timeout loop implementation Armando Visconti (4): st_

[U-Boot] [PATCH V2 4/4] mtd/NAND: Remove obsolete SPEAr specific NAND drivers

2012-05-07 Thread Amit Virdi
From: Vipin KUMAR Since, SPEAr platform uses generic FSMC driver now, so spear specific files drivers/mtd/nand/spr_nand.c, arch/arm/include/asm/arch-spear/spr_nand.h are removed Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include/asm/arch-spear/spr_nand.h | 57

[U-Boot] [PATCH V2 3/4] SPEAr: Configure FSMC driver for NAND interface

2012-05-07 Thread Amit Virdi
From: Vipin KUMAR Since FSMC is a standard IP and it supports different memory interfaces, it is supported independent of spear platform and spear is configured to use that driver for interfacing with the NAND device Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include

[U-Boot] [PATCH V2 2/4] mtd/NAND: Add FSMC driver support

2012-05-07 Thread Amit Virdi
Signed-off-by: Amit Virdi --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/fsmc_nand.c | 484 + include/linux/mtd/fsmc_nand.h | 110 ++ 3 files changed, 595 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/nand/fsmc_nand.c

[U-Boot] [PATCH V2 0/4] mtd/NAND: Support for FSMC controller

2012-05-07 Thread Amit Virdi
This patchset adds support for ST's FSMC controller. In the current u-boot, a SPEAr specific driver exists for FSMC controller. This patchset adds a full fledged driver that can be used across multiple platforms and removes the obsolete SPEAr specific driver. V1 -> V2 - Defined CONFIG_SYS_NAND_S

[U-Boot] [PATCH V2 1/4] ARM: Define change_bit routine

2012-05-07 Thread Amit Virdi
new driver implements the NAND interface part of the peripheral. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- arch/arm/include/asm/bitops.h | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm

Re: [U-Boot] [PATCH V2] USB:gadget:designware USB OTG implementation

2012-04-09 Thread Amit Virdi
;ep0; + + for (i = 0; i< num_out_eps; ++i) { i++ ... ++i has no meaning here (not even a compiler hint). Ok, 'll amend + if (pcd->out_ep[i].num == num) + return&pcd->out_ep[i]; + } + + return 0; +} + [...] + * t

Re: [U-Boot] [PATCH V2 3/8] net/designware: Phy address fix

2012-04-04 Thread Amit Virdi
Hi Joe, On 3/26/2012 3:39 PM, Amit VIRDI wrote: From: Vipin KUMAR The code assumes the phy address to be> 0, which is not true, the phy address can be in the range 0-31. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Could you please confirm if you have applied this patch

[U-Boot] [PATCH V2] USB:gadget:designware USB OTG implementation

2012-04-03 Thread Amit Virdi
Signed-off-by: Amit Virdi --- drivers/serial/usbtty.h |2 + drivers/usb/gadget/Makefile |1 + drivers/usb/gadget/designware_otg.c | 990 +++ include/usb/designware_otg.h| 523 ++ 4 files changed, 1516 insertions

Re: [U-Boot] [PATCH V2 12/24] SPEAr: Enable usb device high speed support

2012-04-01 Thread Amit Virdi
Dear Marek, On 3/31/2012 11:58 PM, Marek Vasut wrote: Dear Amit Virdi, From: Vipin KUMAR Cc me with usb related stuff please. Ok, I'll take care in future. Does USBTTY work for you? Tom complained about it. Yes it works and we haven't found any issue till date. Infact,

[U-Boot] [PATCH V2 24/24] cleanup/SPEAr: Define configuration flags more elegantly

2012-03-30 Thread Amit Virdi
In SPEAr, some of the configuration flags eg. CONFIG_SPEAR_EMI, were given value "1", which isn't required. Define the flags without assigning any value Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear-common.h | 16 include/configs

[U-Boot] [PATCH V2 23/24] cleanup/SPEAr: Remove unnecessary parenthesis

2012-03-30 Thread Amit Virdi
In SPEAr configuration files, unnecessary paranthesis are used in some \#defines. Remove them as they serve no purpose Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- arch/arm/include/asm/arch-spear/spr_gpt.h |4 ++-- include/configs/spear-common.h|8 include

[U-Boot] [PATCH V2 22/24] SPEAr: Correct SoC ID offset in misc configuration space

2012-03-30 Thread Amit Virdi
From: Shiraz Hashim SoC Core ID offset is 0x30 in miscellaneous configuration address space. It was wrongly mentioned as periph2 clk enable. Signed-off-by: Shiraz Hashim Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- arch/arm/include/asm/arch-spear/spr_misc.h |2 +- 1 files

[U-Boot] [PATCH V2 19/24] SPEAr: Enable ONFI nand flash detection for spear3xx and 6xx and evb

2012-03-29 Thread Amit Virdi
From: Vipin Kumar Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear-common.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/configs/spear-common.h b/include/configs/spear-common.h index 97c278f..76248e6

[U-Boot] [PATCH V2 21/24] SPEAr: explicitly select clk src for UART

2012-03-29 Thread Amit Virdi
From: Shiraz Hashim UART in u-boot intends to run on 48MHz clock supplied by USB PLL. Explicitly select the intended clock source. Signed-off-by: Shiraz Hashim Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- arch/arm/cpu/arm926ejs/spear/cpu.c |7 ++- arch/arm/include

[U-Boot] [PATCH V2 15/24] SPEAr: Enable dcache for fast file transfer

2012-03-29 Thread Amit Virdi
0m0.002s sys 0m0.064s After Enhancements == $ time ukermit.large -p /dev/ttyACM0 -f spear320_uImage.img Downloading file: 100.00% completed(2014080/2014080 bytes) real0m5.441s user0m0.001s sys 0m0.001s Signed-off-by: Shiraz Hashim Signed-off-by: Amit Virdi --- board

[U-Boot] [PATCH V2 20/24] SPEAr: Remove CONFIG_MTD_NAND_VERIFY_WRITE to speed up NAND access

2012-03-29 Thread Amit Virdi
When CONFIG_MTD_NAND_VERIFY_WRITE is defined, nand driver read back the data everytime it writes. This process unnecessarily slows down the nand access. Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear-common.h |1 - 1 files changed, 0 insertions(+), 1 deletions

[U-Boot] [PATCH V2 18/24] SPEAr: Enable CONFIG_SYS_FLASH_EMPTY_INFO macro

2012-03-29 Thread Amit Virdi
From: Vipin Kumar Enable CONFIG_SYS_FLASH_EMPTY_INFO macro to enable reporting of empty sector information through flinfo command. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear-common.h |3 ++- 1 files changed, 2 insertions(+), 1

[U-Boot] [PATCH V2 17/24] SPEAr: Correct the definition of CONFIG_SYS_MONITOR_BASE

2012-03-29 Thread Amit Virdi
booting from flash. This patch corrects the definition of CONFIG_SYS_MONITOR_BASE and sets it to TEXT_BASE Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- include/configs/spear-common.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/spear

[U-Boot] [PATCH V2 14/24] SPEAr: Enable autoneg for ethernet

2012-03-29 Thread Amit Virdi
command in u-boot starts to timeout very often. When Autoneg is ON, same phys started working perfectly. Reported-by: Deepak Sikri Reported-by: Armando Visconti Signed-off-by: Shiraz Hashim Signed-off-by: Amit Virdi --- include/configs/spear-common.h |1 + 1 files changed, 1 insertions(+), 0

[U-Boot] [PATCH V2 16/24] SPEAr: Enable CONFIG_SYS_FLASH_PROTECTION

2012-03-29 Thread Amit Virdi
unlocked explicitly before being erased or written. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear3xx_evb.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/configs/spear3xx_evb.h b/include/configs/spear3xx_evb.h

[U-Boot] [PATCH V2 12/24] SPEAr: Enable usb device high speed support

2012-03-29 Thread Amit Virdi
From: Vipin KUMAR This patch enables the support for usb high speed device for spear platform SOCs Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- include/configs/spear-common.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/spear-common.h b

[U-Boot] [PATCH V2 13/24] SPEAr: Enable udc and usb-console support only for usbtty configuration

2012-03-29 Thread Amit Virdi
From: Vipin KUMAR This patch enables the UDC and usb-console support only for usbtty configurations Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi Acked-by: Stefan Roese --- include/configs/spear-common.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a

  1   2   3   >