Re: [U-Boot] [PATCH 01/10] usb:udc:s3c: Reduce dcache invalidate range for UDC receive buffer

2013-10-04 Thread Lukasz Majewski
Hi Marek, > Dear Lukasz Majewski, > > > The s3c udc driver sends data in a max packet size. Therefore the > > dcache invalidate range shall be equal to max packet, not the entire > > DMA_BUFFER_SIZE. > > > > Signed-off-by: Lukasz Majewski > > Cc: Marek Vasut > > --- > > drivers/usb/gadget/s3c

[U-Boot] [PATCH 1/3][v5] mtd: move & update nand_ecclayout structure

2013-10-04 Thread Prabhakar Kushwaha
nand_ecclayout is present in mtd.h at Linux. Move this structure to mtd.h to comply with Linux. Also, increase the ecc placement locations to 640 to suport device having writesize/oobsize of 8KB/640B. This means that the maximum oobsize has gone up to 640 bytes and consequently the maximum ecc pla

[U-Boot] Lots of SPDX-License Identifer have a trailing space

2013-10-04 Thread Masahiro Yamada
Hello Wolfgang, I noticed many of SPDX-License blocks have a trailing space after "GPL-2.0+". For example, arch/arm/cpu/arm1136/start.S * * SPDX-License-Identifier: GPL-2.0+[A Trailing Space] */ Is this space the one intentinally added? (If not, I can send a patch to fix it.) I am not

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

2013-10-04 Thread Claudiu Manoil
On 10/3/2013 9:37 PM, Scott Wood wrote: On Thu, 2013-10-03 at 14:48 +0300, Claudiu Manoil wrote: +static inline u16 read_txbd_stat(uint idx) +{ + return in_be16((u16 __iomem *)&txbd[idx].status); +} + +static inline void write_txbd_stat(uint idx, u16 status) +{ + out_be16((u16 __iome

Re: [U-Boot] [PATCH 06/10] usb:g_dnl:f_thor: USB download function to support TIZEN's THOR protocol

2013-10-04 Thread Lukasz Majewski
Hi Marek, > Dear Lukasz Majewski, > > [...] > > > +static struct f_thor *thor_func; > > +static inline struct f_thor *func_to_thor(struct usb_function *f) > > +{ > > + return container_of(f, struct f_thor, usb_function); > > +} > > + > > +DEFINE_CACHE_ALIGN_BUFFER(char, thor_tx_data_buf, sizeo

Re: [U-Boot] [PATCH 10/10] trats: Update TRATS config to support TIZEN download

2013-10-04 Thread Lukasz Majewski
Hi Marek, > Dear Lukasz Majewski, > > > A set of environment variables needs to be updated to provide > > support for TIZEN download command (tizendown). > > > > Since DFU is used as a flashing backend, it is also necessary to > > extent malloc pool size for DFU buffer allocation. > > Moreover,

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

2013-10-04 Thread Claudiu Manoil
On 10/4/2013 6:12 AM, Timur Tabi wrote: On Mon, Sep 30, 2013 at 4:44 AM, Claudiu Manoil wrote: +#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 __u16)cpu_to_be16(v) +#define GET_BD_BLEN(T, i) be16_to_cpu((__force __

Re: [U-Boot] [PATCH] i2c, core: optimze i2c_set_bus_num()

2013-10-04 Thread Lukasz Majewski
Hi Heiko, > check first, if we are on the bus, we want to enable. If so, > return immediately, do not calc max adapter number, nor check > other things. > > Signed-off-by: Heiko Schocher > Cc: Lukasz Majewski > --- > drivers/i2c/i2c_core.c | 18 ++ > 1 file changed, 10 insertio

Re: [U-Boot] [PATCH 2/6] power: Explicitly select pmic device's bus

2013-10-04 Thread Lukasz Majewski
Hi Heiko, > Hello Lukasz, > > Am 03.10.2013 18:15, schrieb Lukasz Majewski: > > Hi Heiko, > > > > Sorry for a late reply. > > > >> Hello Lukasz, > >> > >> Am 02.10.2013 17:11, schrieb Lukasz Majewski: > >>> Hi Leela, > >>> > The current pmic i2c code assumes the current i2c bus is > the

Re: [U-Boot] [PATCH] i2c, core: optimze i2c_set_bus_num()

2013-10-04 Thread Heiko Schocher
Hello Lukasz, Am 04.10.2013 10:42, schrieb Lukasz Majewski: Hi Heiko, check first, if we are on the bus, we want to enable. If so, return immediately, do not calc max adapter number, nor check other things. Signed-off-by: Heiko Schocher Cc: Lukasz Majewski --- drivers/i2c/i2c_core.c | 18 ++

Re: [U-Boot] [PATCH 2/6] power: Explicitly select pmic device's bus

2013-10-04 Thread Heiko Schocher
Hello Lukasz, Am 04.10.2013 10:58, schrieb Lukasz Majewski: Hi Heiko, Hello Lukasz, Am 03.10.2013 18:15, schrieb Lukasz Majewski: Hi Heiko, Sorry for a late reply. Hello Lukasz, Am 02.10.2013 17:11, schrieb Lukasz Majewski: Hi Leela, [...] but exactly I want to get rid of this code as

Re: [U-Boot] [PATCH v2 01/19] Makefile: prepare for using Kbuild-style Makefile

2013-10-04 Thread Masahiro Yamada
Hello Simon > > +# Tentative step for Kbuild-style makefiles coexist with conventional > > U-Boot style makefiles > > +# U-Boot conventional sub makefiles always include some other makefiles. > > +# So, the build system searches a line beginning with "include" before > > entering into the sub

Re: [U-Boot] Lots of SPDX-License Identifer have a trailing space

2013-10-04 Thread Wolfgang Denk
Dear Masahiro, In message <20131004172305.ee95.aa925...@jp.panasonic.com> you wrote: > > I noticed many of SPDX-License blocks > have a trailing space after "GPL-2.0+". Oops... > Is this space the one intentinally added? > (If not, I can send a patch to fix it.) No, this is definitely not inte

Re: [U-Boot] [PATCH 01/10] usb:udc:s3c: Reduce dcache invalidate range for UDC receive buffer

2013-10-04 Thread Marek Vasut
Dear Lukasz Majewski, > Hi Marek, > > > Dear Lukasz Majewski, > > > > > The s3c udc driver sends data in a max packet size. Therefore the > > > dcache invalidate range shall be equal to max packet, not the entire > > > DMA_BUFFER_SIZE. > > > > > > Signed-off-by: Lukasz Majewski > > > Cc: Marek

Re: [U-Boot] [PATCH 06/10] usb:g_dnl:f_thor: USB download function to support TIZEN's THOR protocol

2013-10-04 Thread Marek Vasut
Dear Lukasz Majewski, > Hi Marek, > > > Dear Lukasz Majewski, > > > > [...] > > > > > +static struct f_thor *thor_func; > > > +static inline struct f_thor *func_to_thor(struct usb_function *f) > > > +{ > > > + return container_of(f, struct f_thor, usb_function); > > > +} > > > + > > > +DEFINE_C

Re: [U-Boot] [PATCH] Fix problems in chip select selection in imx23, 28 spi code

2013-10-04 Thread Jagan Teki
Hi, Try to fix the above issues. Use u-boot-spi.git repo with master-probe branch. Please test the same on your hw and let me know for any issues. On Tue, Aug 27, 2013 at 6:54 PM, Jagan Teki wrote: > On Tue, Aug 27, 2013 at 2:40 PM, Jagan Teki wrote: >> Hi, >> >> On Tue, Aug 27, 2013 at 4:11 AM

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

2013-10-04 Thread Masahiro Yamada
Hello Simon > Can you please explain why you need to change the .lds files - sorry it is > not obvious to me. This series changes how objects are linked. Before this series, drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/pcmcia/libpcmcia.o ... are directly linke

Re: [U-Boot] [PATCH] i2c, core: optimze i2c_set_bus_num()

2013-10-04 Thread Lukasz Majewski
Hi Heiko, > Hello Lukasz, > > Am 04.10.2013 10:42, schrieb Lukasz Majewski: > > Hi Heiko, > > > >> check first, if we are on the bus, we want to enable. If so, > >> return immediately, do not calc max adapter number, nor check > >> other things. > >> > >> Signed-off-by: Heiko Schocher > >> Cc: Lu

Re: [U-Boot] Lots of SPDX-License Identifer have a trailing space

2013-10-04 Thread Masahiro Yamada
Hello Wolfgang > > Is this space the one intentinally added? > > (If not, I can send a patch to fix it.) > > No, this is definitely not intentional. OK. SPDX might be your turf, so I will hold back sending a patch. Best Regards Masahiro Yamada ___

Re: [U-Boot] [PATCH] Add code for spi half duplex operation for enc28j60

2013-10-04 Thread Jagan Teki
Hi Seems like some issues with checkpatch.pl and use proper commit msg header. Please fix and use u-boot-spi.git repo with master-probe branch. Please test the same on your hw and let me know for any issues. On Tue, Aug 13, 2013 at 8:15 AM, Asok Subramanian wrote: > Add code for spi half duple

Re: [U-Boot] : Discussion on Serial Flash Discoverable Parameters (SFDP): JESD216A

2013-10-04 Thread Jagan Teki
Added linux-mtd mailing list. and also few developer from winbond. On Fri, Oct 4, 2013 at 12:21 AM, Jagan Teki wrote: > Hi All, > > As all we know that the spi_flash is a day-by-day developing hardware > where each vendor has followed their own standard to get the best to > come out. > > I see SF

Re: [U-Boot] [PATCH 06/10] usb:g_dnl:f_thor: USB download function to support TIZEN's THOR protocol

2013-10-04 Thread Lukasz Majewski
Hi Marek, > Dear Lukasz Majewski, > > > Hi Marek, > > > > > Dear Lukasz Majewski, > > > > > > [...] > > > > > > > +static struct f_thor *thor_func; > > > > +static inline struct f_thor *func_to_thor(struct usb_function > > > > *f) +{ > > > > + return container_of(f, struct f_thor, usb_fu

Re: [U-Boot] [PATCH 01/10] usb:udc:s3c: Reduce dcache invalidate range for UDC receive buffer

2013-10-04 Thread Lukasz Majewski
Hi Marek, > Dear Lukasz Majewski, > > > Hi Marek, > > > > > Dear Lukasz Majewski, > > > > > > > The s3c udc driver sends data in a max packet size. Therefore > > > > the dcache invalidate range shall be equal to max packet, not > > > > the entire DMA_BUFFER_SIZE. > > > > > > > > Signed-off-by:

Re: [U-Boot] [PATCH] mmc: sdhci: Avoid commands errors by simple timeout adaptation.

2013-10-04 Thread Przemyslaw Marczak
Hi Jaehoon, On 10/04/2013 06:39 AM, Jaehoon Chung wrote: Hi Przemyslaw, On 10/01/2013 09:16 PM, Przemyslaw Marczak wrote: Old command timeout value was too small and it caused I/O errors which led to uncompleted read/write/erase operations and filesystem errors. Timeout adaptation fixes this i

[U-Boot] [PATCH v3 0/3] Consolidate CONFIG_SYS_HZ definition

2013-10-04 Thread Rob Herring
From: Rob Herring Since CONFIG_SYS_HZ is required to be 1000, this series consolidates the definition to a common definition and removes it from platform config headers. I split this version into 3 patches to pass maillist filters. The only other change is moving the warning for CONFIG_SYS_HZ !=

[U-Boot] [PATCH v3 1/3] config: consolidate CONFIG_SYS_HZ definition

2013-10-04 Thread Rob Herring
From: Rob Herring According to the README, CONFIG_SYS_HZ must be 1000 and most platforms follow that. In preparation to remove CONFIG_SYS_HZ from all these platforms, provide a common definition. The platforms which use a value other than 1000 will get build warning now. These configs are: inclu

[U-Boot] [PATCH] env_mmc: fix buffer allocation for armv7

2013-10-04 Thread Markus Niebel
From: Markus Niebel commit d196bd880347373237d73e0d115b4d51c68cf2ad adds redundand environment to mmc. The usage of malloc in env_relocate_spec triggers cache errors on armv7. Tested on a not mainlined i.MX53 board: Board: TQMa53 I2C: ready DRAM: 512 MiB MMC: FSL_SDHC: 0, FSL_SDHC: 1 ERROR

[U-Boot] [PATCH] TI:armv7: Change CONFIG_SYS_SPL_ARGS_ADDR to a higher address

2013-10-04 Thread Tom Rini
With changes to increase the size of the device tree (required to move more data out of the kernel and into DT), loading the args at the old address leads to us overwriting things later on. To correct this, load the args file to where we load the device tree anyhow. This is also safe for non-DT b

[U-Boot] [UBOOT][PATCHv4 1/6] omap5: add qspi support

2013-10-04 Thread Sourav Poddar
From: Matt Porter Add QSPI definitions and clock configuration support. Signed-off-by: Matt Porter Signed-off-by: Sourav Poddar --- arch/arm/cpu/armv7/omap5/hw_data.c |8 arch/arm/cpu/armv7/omap5/prcm-regs.c |1 + arch/arm/include/asm/arch-omap5/omap.h |3 +++ arch/

[U-Boot] [UBOOT][PATCHv4 2/6] armv7: hw_data: change clock divider setting.

2013-10-04 Thread Sourav Poddar
Clock requirement for qspi clk is 192 Mhz. According to the below formulae, f dpll = f ref * 2 * m /(n + 1) clockoutx2_Hmn = f dpll / (hmn+ 1) fref = 20 Mhz, m = 96, n = 4 gives f dpll = 768 Mhz For clockoutx2_Hmn to be 768, hmn + 1 should be 4. Signed-off-by: Sourav Poddar --- arch/arm/cpu/ar

[U-Boot] [UBOOT][PATCHv4 0/6] Add TI qspi controller with memory mapped support

2013-10-04 Thread Sourav Poddar
This patch series add support for TI qspi controller and in the process also add support for quad read and memory mapped read in mtd spi framework. Testing details: Did a boot from qspi mode on DRA7xx. Testing details present in the last patch of the series. Currently, TI qpsi controller supports

[U-Boot] [UBOOT][PATCHv4 6/6] README: qspi usecase and testing documentation.

2013-10-04 Thread Sourav Poddar
Contains documentation and testing details for qspi flash interface. Signed-off-by: Sourav Poddar --- doc/README.ti_qspi_dra_test | 38 ++ doc/README.ti_qspi_flash| 47 +++ 2 files changed, 85 insertions(+), 0 deleti

[U-Boot] [UBOOT][PATCHv4 3/6] driver: mtd: spi: Add memory mapped read support

2013-10-04 Thread Sourav Poddar
Qspi controller can have a memory mapped port which can be used for data read. Added support to enable memory mapped port read. This patch enables the following: - It enables exchange of memory map address between mtd and qspi through the introduction of "memory_map" flag. - Add support to communi

[U-Boot] [UBOOT][PATCHv4 4/6] spi: add TI QSPI driver

2013-10-04 Thread Sourav Poddar
From: Matt Porter Adds a SPI master driver for the TI QSPI peripheral. Signed-off-by: Matt Porter Signed-off-by: Sourav Poddar [Added quad read support and memory mapped support). --- drivers/spi/Makefile |1 + drivers/spi/ti_qspi.c | 328

[U-Boot] [UBOOT][PATCHv4 5/6] dra7xx_evm: add SPL API, QSPI, and serial flash support

2013-10-04 Thread Sourav Poddar
From: Matt Porter Enables support for SPI SPL, QSPI and Spansion serial flash device on the EVM. Configures pin muxes for QSPI mode. Signed-off-by: Matt Porter Signed-off-by: Sourav Poddar --- board/ti/dra7xx/mux_data.h | 10 ++ include/configs/dra7xx_evm.h | 19

[U-Boot] [PATCH v2 1/9] examples: enable gc-sections option

2013-10-04 Thread Rob Herring
From: Rob Herring This fixes building time.c when unreferenced functions are added. Signed-off-by: Rob Herring --- examples/api/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/api/Makefile b/examples/api/Makefile index 4d68340..33cc91b 100644 --- a/example

[U-Boot] [PATCH v2 0/9] Consolidate timer code

2013-10-04 Thread Rob Herring
From: Rob Herring Much of the timer code is re-implemented for each platform/arch yet it is all pretty much the same code. This series introduces a common implementation of timer functions and simplifies the platform code down to 2 or 3 config defines or 2 simple functions. It is intended for p

[U-Boot] [PATCH v2 4/9] ARM: highbank: convert to common timer code

2013-10-04 Thread Rob Herring
From: Rob Herring Convert highbank to use the commmon timer code. Signed-off-by: Rob Herring --- arch/arm/cpu/armv7/highbank/timer.c | 83 - include/configs/highbank.h | 4 ++ 2 files changed, 4 insertions(+), 83 deletions(-) diff --git a/arch/arm

[U-Boot] [PATCH v2 6/9] ARM: vexpress: convert to common timer code

2013-10-04 Thread Rob Herring
From: Rob Herring Convert vexpress to use the commmon timer code. Signed-off-by: Rob Herring --- board/armltd/vexpress/vexpress_common.c | 71 - include/configs/vexpress_common.h | 4 ++ 2 files changed, 4 insertions(+), 71 deletions(-) diff --git a/boar

[U-Boot] [PATCH v2 3/9] sh: convert to common timer code

2013-10-04 Thread Rob Herring
From: Rob Herring Convert sh to use the commmon timer code. Remove reset_timer and set_timer as they are unused on sh. Signed-off-by: Rob Herring --- arch/sh/lib/time.c | 61 ++ 1 file changed, 2 insertions(+), 59 deletions(-) diff --git a/a

[U-Boot] [PATCH v2 2/9] Introduce common timer functions

2013-10-04 Thread Rob Herring
From: Rob Herring Many platforms duplicate pretty much the same timer code yet they all have a 32-bit freerunning counter register. Create a common implementation that minimally requires 2 or 3 defines to add timer support: CONFIG_SYS_TIMER_RATE - Clock rate of the timer counter CONFIG_SYS_TIMER

[U-Boot] [PATCH v2 7/9] ARM: socfpga: convert to common timer code

2013-10-04 Thread Rob Herring
From: Rob Herring Convert socfpga to use the commmon timer code. Signed-off-by: Rob Herring --- arch/arm/cpu/armv7/socfpga/timer.c | 72 -- include/configs/socfpga_cyclone5.h | 5 +-- 2 files changed, 3 insertions(+), 74 deletions(-) diff --git a/arch/arm/

[U-Boot] [PATCH v2 9/9] ARM: versatile: convert to common timer code

2013-10-04 Thread Rob Herring
From: Rob Herring Convert versatile to use the commmon timer code. Signed-off-by: Rob Herring --- arch/arm/cpu/arm926ejs/versatile/timer.c | 116 --- include/configs/versatile.h | 9 ++- 2 files changed, 4 insertions(+), 121 deletions(-) diff --git a

[U-Boot] [PATCH v2 8/9] ARM: tegra: convert to common timer code

2013-10-04 Thread Rob Herring
From: Rob Herring Convert tegra to use the commmon timer code. Signed-off-by: Rob Herring --- arch/arm/cpu/tegra-common/Makefile | 2 +- arch/arm/cpu/tegra-common/timer.c | 95 -- include/configs/tegra-common.h | 3 ++ 3 files changed, 4 insertions(+)

[U-Boot] [PATCH v2 5/9] ARM: mx25: convert to common timer code

2013-10-04 Thread Rob Herring
From: Rob Herring Convert mx25 to use the commmon timer code. Signed-off-by: Rob Herring --- v2: - Use GPT struct for register offset arch/arm/cpu/arm926ejs/mx25/timer.c | 117 include/configs/mx25pdk.h | 4 ++ include/configs/tx25.h

Re: [U-Boot] [PATCH v2 01/19] Makefile: prepare for using Kbuild-style Makefile

2013-10-04 Thread Simon Glass
Hi Masahiro, On Fri, Oct 4, 2013 at 3:59 AM, Masahiro Yamada wrote: > Hello Simon > > > >> > +# Tentative step for Kbuild-style makefiles coexist with conventional >> > U-Boot style makefiles >> > +# U-Boot conventional sub makefiles always include some other makefiles. >> > +# So, the build sy

[U-Boot] [PATCH 0/4] Coding Style cleanup

2013-10-04 Thread Wolfgang Denk
The following patch series cleans up a number of coding style issues (trailing wtihe space, indentation by spaces instead of TAB, TAB followed by spaces, trailing empty lines, excessive empty lines) that have crept in over time. It's a white space modification only and supposed to be functionally

[U-Boot] [PATCH 3/4] Coding Style cleanup: remove trailing empty lines

2013-10-04 Thread Wolfgang Denk
Signed-off-by: Wolfgang Denk --- arch/arm/cpu/armv7/omap3/am35x_musb.c | 1 - arch/arm/cpu/armv7/rmobile/Makefile| 1 - arch/microblaze/include/asm/gpio.h | 1 - arch/microblaze/include/asm/microblaze_intc.h | 1 - arch/microblaze/include/asm/microblaze_timer.h |

[U-Boot] [PATCH 4/4] Coding Style cleanup: drop some excessive empty lines

2013-10-04 Thread Wolfgang Denk
Signed-off-by: Wolfgang Denk --- arch/arm/cpu/armv7/omap5/prcm-regs.c | 2 -- board/LEOX/elpt860/README.LEOX | 1 - board/palmtreo680/README | 17 - board/sandpoint/README | 2 -- board/siemens/rut/board.c| 4 doc/README.gpt

[U-Boot] [PATCH] cmd_nvedit.c: setenv_hex must prefix hex with '0x'

2013-10-04 Thread Tom Rini
setenv_hex is only called with hex values, but does not prefix the strings with '0x', as in general U-Boot assumes hex values not decimal values, and this saves space in the environment. However, some functions such as 'load' take some values that are most easily described in hex (load address) an

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

2013-10-04 Thread Scott Wood
On Fri, 2013-10-04 at 11:27 +0300, Claudiu Manoil wrote: > On 10/3/2013 9:37 PM, Scott Wood wrote: > > On Thu, 2013-10-03 at 14:48 +0300, Claudiu Manoil wrote: > >> +static inline u16 read_txbd_stat(uint idx) > >> +{ > >> + return in_be16((u16 __iomem *)&txbd[idx].status); > >> +} > >> + > >> +sta

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

2013-10-04 Thread Simon Glass
Hi Mashahiro, On Fri, Oct 4, 2013 at 4:37 AM, Masahiro Yamada wrote: > Hello Simon > > >> Can you please explain why you need to change the .lds files - sorry it is >> not obvious to me. > > > This series changes how objects are linked. > > Before this series, > drivers/bios_emulator/libatibios

Re: [U-Boot] [PATCH 0/4] arm64: rela relocation

2013-10-04 Thread FengHua
> arm64: rela relocation > > This lets us remove the manual relocation stuff from the arm64 patchset > (the symbol itself is removed by this patchset, but not all the new > manual relocations added by the arm64 patchset). > > I'm not terribly happy with the way relocate-rela is now, versus some

Re: [U-Boot] [PATCH 1/4] arm64: Add tool to statically apply RELA relocations

2013-10-04 Thread FengHua
> ARM64 uses the newer RELA-style relocations rather than the older REL. > RELA relocations have an addend in the relocation struct, rather than > expecting the loader to read a value from the location to be updated. > > While this is beneficial for ordinary program loading, it's problematic How

Re: [U-Boot] [PATCH 3/4] arm64: Non-manual relocation

2013-10-04 Thread FengHua
> This turns off CONFIG_NEEDS_MANUAL_RELOC and turns on -pie. > > The bss part of the linker script is changed to be more like arm32, > as the previous arm64 approach was generating bad relocations (even > readelf didn't like them). > > relocate_64.S is made to look more like relocate.S, and the

Re: [U-Boot] [PATCH 01/10] usb:udc:s3c: Reduce dcache invalidate range for UDC receive buffer

2013-10-04 Thread Marek Vasut
Dear Lukasz Majewski, > Hi Marek, > > > Dear Lukasz Majewski, > > > > > Hi Marek, > > > > > > > Dear Lukasz Majewski, > > > > > > > > > The s3c udc driver sends data in a max packet size. Therefore > > > > > the dcache invalidate range shall be equal to max packet, not > > > > > the entire DMA

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

2013-10-04 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. Use portable I/O access

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

2013-10-04 Thread Claudiu Manoil
On 10/4/2013 6:50 PM, Scott Wood wrote: On Fri, 2013-10-04 at 11:27 +0300, Claudiu Manoil wrote: On 10/3/2013 9:37 PM, Scott Wood wrote: On Thu, 2013-10-03 at 14:48 +0300, Claudiu Manoil wrote: +static inline u16 read_txbd_stat(uint idx) +{ + return in_be16((u16 __iomem *)&txbd[idx].sta

Re: [U-Boot] [PATCH 3/4] arm64: Non-manual relocation

2013-10-04 Thread Scott Wood
On Sat, 2013-10-05 at 00:13 +0800, FengHua wrote: > > diff --git a/include/configs/vexpress_aemv8a.h > > b/include/configs/vexpress_aemv8a.h > > index 01c95f5..3932e00 100644 > > --- a/include/configs/vexpress_aemv8a.h > > +++ b/include/configs/vexpress_aemv8a.h > > @@ -10,6 +10,9 @@ > > > > #d

Re: [U-Boot] [PATCH 1/4] arm64: Add tool to statically apply RELA relocations

2013-10-04 Thread Scott Wood
On Sat, 2013-10-05 at 00:10 +0800, FengHua wrote: > > ARM64 uses the newer RELA-style relocations rather than the older REL. > > RELA relocations have an addend in the relocation struct, rather than > > expecting the loader to read a value from the location to be updated. > > > > While this is bene

Re: [U-Boot] [PATCH] env_mmc: fix buffer allocation for armv7

2013-10-04 Thread Tom Rini
On Fri, Oct 04, 2013 at 03:48:03PM +0200, Markus Niebel wrote: > From: Markus Niebel > > commit d196bd880347373237d73e0d115b4d51c68cf2ad adds > redundand environment to mmc. The usage of malloc in > env_relocate_spec triggers cache errors on armv7. > > Tested on a not mainlined i.MX53 board: >

[U-Boot] [Patch v3] cmd/gpt: Support gpt command for all devices

2013-10-04 Thread Egbert Eich
From: Egbert Eich The gpt command was only implemented for mmc devices. There is no reason why this command should not be generalized and be applied all other storage device classes. This change both simplifies the implementation and eliminates a build failure for systems that don't support mmcs.

[U-Boot] [PATCH v6] usb: new board-specific USB init interface

2013-10-04 Thread Mateusz Zalega
This commit unifies board-specific USB initialization implementations under one symbol (usb_board_init), declaration of which is available in usb.h. New API allows selective initialization of USB controllers whenever needed. Signed-off-by: Mateusz Zalega Signed-off-by: Kyungmin Park Reviewed-by

Re: [U-Boot] [PATCH 01/10] usb:udc:s3c: Reduce dcache invalidate range for UDC receive buffer

2013-10-04 Thread Lukasz Majewski
Hi Marek, > Dear Lukasz Majewski, > > > Hi Marek, > > > > > Dear Lukasz Majewski, > > > > > > > Hi Marek, > > > > > > > > > Dear Lukasz Majewski, > > > > > > > > > > > The s3c udc driver sends data in a max packet size. > > > > > > Therefore the dcache invalidate range shall be equal to max >

[U-Boot] [PATCH] config: Define HAVE_BLOCK_DEVICE when CONFIG_CMD_GPT is set

2013-10-04 Thread Egbert Eich
From: Egbert Eich Signed-off-by: Egbert Eich --- include/config_fallbacks.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/config_fallbacks.h b/include/config_fallbacks.h index e59ee96..5c8acdb 100644 --- a/include/config_fallbacks.h +++ b/include/config_fallbacks.h @@ -48,6 +48,7

[U-Boot] [PATCH] config/sandbox: Add EFI and GPT support

2013-10-04 Thread Egbert Eich
From: Egbert Eich Signed-off-by: Egbert Eich --- include/configs/sandbox.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 4027030..b18cafb 100644 --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h @@ -44,6 +44,10

Re: [U-Boot] [PATCH 01/10] usb:udc:s3c: Reduce dcache invalidate range for UDC receive buffer

2013-10-04 Thread Marek Vasut
Dear Lukasz Majewski, > Hi Marek, > > > Dear Lukasz Majewski, > > > > > Hi Marek, > > > > > > > Dear Lukasz Majewski, > > > > > > > > > Hi Marek, > > > > > > > > > > > Dear Lukasz Majewski, > > > > > > > > > > > > > The s3c udc driver sends data in a max packet size. > > > > > > > Therefore

Re: [U-Boot] [UBOOT][PATCHv4 6/6] README: qspi usecase and testing documentation.

2013-10-04 Thread Jagan Teki
Hi Sourav, Please place these these readme files in doc/SPI/* All these patches tested on top of u-boot-spi.git master-probe? On Fri, Oct 4, 2013 at 8:21 PM, Sourav Poddar wrote: > Contains documentation and testing details for qspi flash > interface. > > Signed-off-by: Sourav Poddar > --- > d

Re: [U-Boot] Pull request: u-boot-arm/master

2013-10-04 Thread Tom Rini
On Thu, Oct 03, 2013 at 10:42:46PM +0200, Albert ARIBAUD wrote: > Hello Tom, > > The following changes since commit > f04c53762962280365005c9db12ab561a18f2692: > > Merge branch 'u-boot-imx/master' into 'u-boot-arm/master' (2013-10-02 > 14:53:27 +0200) > > are available in the git repository

[U-Boot] [PATCH] dra7xx_evm: Enabled UART-boot mode and add dra7xx_evm_uart3 build

2013-10-04 Thread Tom Rini
From: Minal Shah UART booting is supported on this SoC, but via UART3 rather than UART1. Because of this we must change the board to use UART3 for all console access (only one UART is exposed on this board and a slight HW mod is required to switch UARTs). Signed-off-by: Minal Shah [trini: Make

Re: [U-Boot] [UBOOT][PATCHv4 4/6] spi: add TI QSPI driver

2013-10-04 Thread Jagan Teki
On Fri, Oct 4, 2013 at 8:21 PM, Sourav Poddar wrote: > From: Matt Porter > > Adds a SPI master driver for the TI QSPI peripheral. > > Signed-off-by: Matt Porter > Signed-off-by: Sourav Poddar > [Added quad read support and memory mapped support). What is this comment, any specific? > --- You m

Re: [U-Boot] [UBOOT][PATCHv4 6/6] README: qspi usecase and testing documentation.

2013-10-04 Thread Sourav Poddar
On Saturday 05 October 2013 12:08 AM, Jagan Teki wrote: Hi Sourav, Please place these these readme files in doc/SPI/* All these patches tested on top of u-boot-spi.git master-probe? Yes, this are tested on the above branch. On Fri, Oct 4, 2013 at 8:21 PM, Sourav Poddar wrote: Contains docume

Re: [U-Boot] [UBOOT][PATCHv4 4/6] spi: add TI QSPI driver

2013-10-04 Thread Sourav Poddar
On Saturday 05 October 2013 12:27 AM, Jagan Teki wrote: On Fri, Oct 4, 2013 at 8:21 PM, Sourav Poddar wrote: From: Matt Porter Adds a SPI master driver for the TI QSPI peripheral. Signed-off-by: Matt Porter Signed-off-by: Sourav Poddar [Added quad read support and memory mapped support). Wha

Re: [U-Boot] [UBOOT][PATCHv4 3/6] driver: mtd: spi: Add memory mapped read support

2013-10-04 Thread Jagan Teki
Please use the commit msg head as "sf: .." On Fri, Oct 4, 2013 at 8:21 PM, Sourav Poddar wrote: > Qspi controller can have a memory mapped port which can be used for > data read. Added support to enable memory mapped port read. > > This patch enables the following: > - It enables exchange of memo

Re: [U-Boot] [UBOOT][PATCHv4 4/6] spi: add TI QSPI driver

2013-10-04 Thread Jagan Teki
On Sat, Oct 5, 2013 at 1:32 AM, Sourav Poddar wrote: > On Saturday 05 October 2013 12:27 AM, Jagan Teki wrote: >> >> On Fri, Oct 4, 2013 at 8:21 PM, Sourav Poddar >> wrote: >>> >>> From: Matt Porter >>> >>> Adds a SPI master driver for the TI QSPI peripheral. >>> >>> Signed-off-by: Matt Porter >>>

Re: [U-Boot] [UBOOT][PATCHv4 6/6] README: qspi usecase and testing documentation.

2013-10-04 Thread Jagan Teki
May be your are missing my comments in previous post. - Please place these these readme files in doc/SPI/* - Please use the doc/SPI/status.txt as an example format for writing new readme files. On Sat, Oct 5, 2013 at 1:15 AM, Sourav Poddar wrote: > On Saturday 05 October 2013 12:08 AM, Jagan Teki

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

2013-10-04 Thread Gupta, Pekon
Hi Scott, Tom, > Subject: [PATCH v7 0/5] mtd: nand: omap: optimize and clean-up of OMAP > NAND driver > > *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

[U-Boot] DDR setting, p1020 registers read

2013-10-04 Thread Avinash Vijayvargia
Hi I have got a P1020 board similar to Freescale P1020 eval board RDB. If I put the DDR size as 512 uboot works fine. But if I make it as 1G which is the real size on the board then the uboot hangs. Also is there any cli in uboot to read p1020 registers? I want to read GUTS_PORBMSR to check if HW

Re: [U-Boot] [PATCH] cmd_nvedit.c: setenv_hex must prefix hex with '0x'

2013-10-04 Thread Wolfgang Denk
Dear Tom Rini, In message <1380901758-30360-1-git-send-email-tr...@ti.com> you wrote: > setenv_hex is only called with hex values, but does not prefix the > strings with '0x', as in general U-Boot assumes hex values not decimal > values, and this saves space in the environment. However, some > fu

Re: [U-Boot] [PATCH] cmd_nvedit.c: setenv_hex must prefix hex with '0x'

2013-10-04 Thread Stephen Warren
On 10/04/2013 03:35 PM, Wolfgang Denk wrote: > Dear Tom Rini, > > In message <1380901758-30360-1-git-send-email-tr...@ti.com> you wrote: >> setenv_hex is only called with hex values, but does not prefix the >> strings with '0x', as in general U-Boot assumes hex values not decimal >> values, and th

Re: [U-Boot] [PATCH] cmd_nvedit.c: setenv_hex must prefix hex with '0x'

2013-10-04 Thread Wolfgang Denk
Dear Stephen, In message <524f376c.7070...@wwwdotorg.org> you wrote: > > > I think we should NAK your patch, and suggest to fix the problem by > > reverting commit 3f83c87 and making "load" default to hex input mode. > > Reverting 3f83c87 would do the opposite of what you want; it'd make > extloa

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

2013-10-04 Thread Scott Wood
On Mon, 2013-09-30 at 19:43 +0530, Pekon Gupta wrote: > +Platform specific options > += > + > + CONFIG_NAND_OMAP_ECCSCHEME > + On OMAP platforms, this specifies NAND ECC scheme. > + 1 - HAM1_SW 1-bit Hamming code using software library > + (

Re: [U-Boot] [PATCH] cmd_nvedit.c: setenv_hex must prefix hex with '0x'

2013-10-04 Thread Stephen Warren
On 10/04/2013 04:12 PM, Wolfgang Denk wrote: > Dear Stephen, > > In message <524f376c.7070...@wwwdotorg.org> you wrote: >> >>> I think we should NAK your patch, and suggest to fix the problem by >>> reverting commit 3f83c87 and making "load" default to hex input mode. >> >> Reverting 3f83c87 would

Re: [U-Boot] [RFC PATCH 4/3] i.MX6DQ/DLS: remove unused pad declarations

2013-10-04 Thread Eric Nelson
Hi all, I'm just following up on this patch. On 09/18/2013 12:18 PM, Eric Nelson wrote: > Hi Otavio, > > On 09/18/2013 11:27 AM, Otavio Salvador wrote: >> On Wed, Sep 18, 2013 at 3:14 PM, Eric Nelson >> wrote: >>> That's not a typo. I really did intend this to be an add-on to the >>> series des

Re: [U-Boot] [PATCH v6] usb: new board-specific USB init interface

2013-10-04 Thread Troy Kisky
On 10/4/2013 10:22 AM, Mateusz Zalega wrote: +/* + * You can initialize platform's USB host or device + * ports by passing this enum as an argument to + * board_usb_init(). + */ +enum board_usb_init_type { + USB_INIT_HOST, + USB_INIT_DEVICE +}; + I'm a little late to the game, but

Re: [U-Boot] [UBOOT][PATCHv4 4/6] spi: add TI QSPI driver

2013-10-04 Thread Sourav Poddar
On Saturday 05 October 2013 01:43 AM, Jagan Teki wrote: On Sat, Oct 5, 2013 at 1:32 AM, Sourav Poddar wrote: On Saturday 05 October 2013 12:27 AM, Jagan Teki wrote: On Fri, Oct 4, 2013 at 8:21 PM, Sourav Poddar wrote: From: Matt Porter Adds a SPI master driver for the TI QSPI peripheral. Si

Re: [U-Boot] [UBOOT][PATCHv4 6/6] README: qspi usecase and testing documentation.

2013-10-04 Thread Sourav Poddar
On Saturday 05 October 2013 01:44 AM, Jagan Teki wrote: May be your are missing my comments in previous post. - Please place these these readme files in doc/SPI/* - Please use the doc/SPI/status.txt as an example format for writing new readme files. ok. On Sat, Oct 5, 2013 at 1:15 AM, Sourav Po

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

2013-10-04 Thread Gupta, Pekon
Hi, Please see the replies inline.. > From: Scott Wood [mailto:scottw...@freescale.com] > > On Mon, 2013-09-30 at 19:43 +0530, Pekon Gupta wrote: > > +Platform specific options > > += > > + > > + CONFIG_NAND_OMAP_ECCSCHEME > > + On OMAP platforms, this specifies NAND EC

Re: [U-Boot] [UBOOT][PATCHv4 3/6] driver: mtd: spi: Add memory mapped read support

2013-10-04 Thread Sourav Poddar
On Saturday 05 October 2013 01:36 AM, Jagan Teki wrote: Please use the commit msg head as "sf: .." Ok. On Fri, Oct 4, 2013 at 8:21 PM, Sourav Poddar wrote: Qspi controller can have a memory mapped port which can be used for data read. Added support to enable memory mapped port read. This pat