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

2013-10-06 Thread Jagan Teki
What if this code is placed in cs_active() with BEGIN flag.? + /* setup command reg */ + qslave-cmd = 0; + qslave-cmd |= QSPI_WLEN(8); + qslave-cmd |= QSPI_EN_CS(slave-cs); + if (flags SPI_3WIRE) + qslave-cmd |= QSPI_3_PIN; + qslave-cmd |= 0xfff;

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

2013-10-06 Thread Gerhard Sittig
On Fri, Oct 04, 2013 at 20:21 +0530, Sourav Poddar wrote: diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c index c009af5..bee4128 100644 --- a/drivers/mtd/spi/sf_ops.c +++ b/drivers/mtd/spi/sf_ops.c @@ -269,7 +269,9 @@ int spi_flash_cmd_read_ops(struct spi_flash *flash, u32

[U-Boot] [PATCH] mmc: dw_mmc: change the callback function name.

2013-10-06 Thread Jaehoon Chung
To prevent the confusion, use the get_mmc_clk() instead of mmc_clk(). get_mmc_clk() is more exactly name. Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com --- drivers/mmc/dw_mmc.c|6 +++--- drivers/mmc/exynos_dw_mmc.c |2 +- include/dwmmc.h |2 +- 3 files

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

2013-10-06 Thread Sourav Poddar
On Sunday 06 October 2013 03:03 PM, Gerhard Sittig wrote: On Fri, Oct 04, 2013 at 20:21 +0530, Sourav Poddar wrote: diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c index c009af5..bee4128 100644 --- a/drivers/mtd/spi/sf_ops.c +++ b/drivers/mtd/spi/sf_ops.c @@ -269,7 +269,9 @@

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

2013-10-06 Thread Sourav Poddar
On Sunday 06 October 2013 02:14 PM, Jagan Teki wrote: What if this code is placed in cs_active() with BEGIN flag.? + /* setup command reg */ + qslave-cmd = 0; + qslave-cmd |= QSPI_WLEN(8); + qslave-cmd |= QSPI_EN_CS(slave-cs); + if (flags SPI_3WIRE) +

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

2013-10-06 Thread Marek Vasut
Dear 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

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

2013-10-06 Thread Jagan Teki
On Sun, Oct 6, 2013 at 3:44 PM, Sourav Poddar sourav.pod...@ti.com wrote: On Sunday 06 October 2013 02:14 PM, Jagan Teki wrote: What if this code is placed in cs_active() with BEGIN flag.? + /* setup command reg */ + qslave-cmd = 0; + qslave-cmd |= QSPI_WLEN(8); +

[U-Boot] Hi, I am new to U-Boot, how do I get started?

2013-10-06 Thread Dimitar Tomov
Hello to All, My name is Dimitar Tomov. I'm student at Technical University of Sofia (Europe/Bulgaria). I have interest in embedded systems and some experience with embedded Linux (have develop some specific Linux drivers, but nothing major). 0. Following U-Boot Porting Guide [Based on

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

2013-10-06 Thread Sourav Poddar
On Sunday 06 October 2013 09:00 PM, Jagan Teki wrote: On Sun, Oct 6, 2013 at 3:44 PM, Sourav Poddarsourav.pod...@ti.com wrote: On Sunday 06 October 2013 02:14 PM, Jagan Teki wrote: What if this code is placed in cs_active() with BEGIN flag.? + /* setup command reg */ +

[U-Boot] Dynamically define which Kernel image to boot during SPL execution

2013-10-06 Thread 0xbin4ry
Hi there, I want to chose from two different Android kernel images to be booted during SPL execution. Thus, I guess I need to a) pass u-boot.img two different parameters or b) call two different u-boot.img files, which in turn call the corresponding kernel images? Thanks in advance, -b

Re: [U-Boot] Hi, I am new to U-Boot, how do I get started?

2013-10-06 Thread Wolfgang Denk
Dear Dimitar, In message 1466257793.96923.1381071203850.javamail.apa...@mail22.abv.bg you wrote: My name is Dimitar Tomov. I'm student at Technical University of Sofia (Europe/Bulgaria). Welcome. I hope you are not disappointed when the first thing I do is asking you to stick to standard

Re: [U-Boot] Dynamically define which Kernel image to boot during SPL execution

2013-10-06 Thread Wolfgang Denk
Dear 0xbin4ry, don't you have a real name? In message 52518c7e.3010...@gmail.com you wrote: I want to chose from two different Android kernel images to be booted during SPL execution. Thus, I guess I need to a) pass u-boot.img two What would u-boot.img be here - the full U-Boot image loaded

Re: [U-Boot] [PATCH 02/11] env_mmc.c: Make the non-redundant env_relocate_spec use malloc not stack

2013-10-06 Thread Tom Rini
On Sat, Oct 05, 2013 at 10:00:13PM +0200, Wolfgang Denk wrote: Dear Tom Rini, In message 1380227287-26057-3-git-send-email-tr...@ti.com you wrote: Switch the case of non-redundant non-embedded environment to use malloc to allocate buffers, rather than place them on the stack, like the

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

2013-10-06 Thread Tom Rini
On Sat, Oct 05, 2013 at 09:57:28PM +0200, Wolfgang Denk wrote: Dear Tom Rini, In message 20131004170203.GL15917@bill-the-cat you wrote: I really don't like this. We're now allocating for example 256KiB on the stack, rather than malloc. I posted a patch recently to convert the

Re: [U-Boot] [PATCH 01/11] fw_env.c: Increase max dev path to 32

2013-10-06 Thread Tom Rini
On Sat, Oct 05, 2013 at 10:02:12PM +0200, Wolfgang Denk wrote: Dear Tom Rini, In message 1380227287-26057-2-git-send-email-tr...@ti.com you wrote: Currently our limit is too small to allow for /dev/mmcblk0boot0 to work, for example. Expand to 32 for future needs. Signed-off-by: Tom

[U-Boot] [PATCH] ARM: align MVBAR on 32 byte boundary

2013-10-06 Thread Masahiro Yamada
The lower 5 bit of MVBAR is UNK/SBZP. So, Monitor Vector Base Address must be 32-byte aligned. On the other hand, the secure monitor handler does not need 32-byte alignment. This commit moves .algin 5 directive to the correct place. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc:

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

2013-10-06 Thread Sourav Poddar
From: Matt Porter matt.por...@linaro.org Add QSPI definitions and clock configuration support. Signed-off-by: Matt Porter matt.por...@linaro.org Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/cpu/armv7/omap5/hw_data.c |8 arch/arm/cpu/armv7/omap5/prcm-regs.c |

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

2013-10-06 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

[U-Boot] [UBOOT][PATCHv5 3/6] sf: Add memory mapped read support

2013-10-06 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

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

2013-10-06 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 sourav.pod...@ti.com

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

2013-10-06 Thread Sourav Poddar
From: Matt Porter matt.por...@linaro.org 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 matt.por...@linaro.org Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- board/ti/dra7xx/mux_data.h | 10

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

2013-10-06 Thread Sourav Poddar
From: Matt Porter matt.por...@linaro.org Adds a SPI master driver for the TI QSPI peripheral. Signed-off-by: Matt Porter matt.por...@linaro.org Signed-off-by: Sourav Poddar sourav.pod...@ti.com [Added quad read support and memory mapped support). --- v4-v5: - use tabs wherever required. - remove

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

2013-10-06 Thread Sourav Poddar
Contains documentation and testing details for qspi flash interface. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- v4-v5: - Move the doc to doc/SPI - testing details formatted to actual testing logs done on the board. doc/SPI/README.ti_qspi_dra_test | 48

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

2013-10-06 Thread Wolfgang Denk
Dear Tom, In message 20131006204214.GO15917@bill-the-cat you wrote: Why do you hesitate to use the stack? Mainly to allow us to work in restricted stack areas like SPL where we simply may not have that much space available. But malloc() is drawing from the very same resource as the

Re: [U-Boot] [PATCH 02/11] env_mmc.c: Make the non-redundant env_relocate_spec use malloc not stack

2013-10-06 Thread Wolfgang Denk
Dear Tom, In message 20131006204046.GN15917@bill-the-cat you wrote: In message 1380227287-26057-3-git-send-email-tr...@ti.com you wrote: Switch the case of non-redundant non-embedded environment to use malloc to allocate buffers, rather than place them on the stack, like the

Re: [U-Boot] [PATCH 01/11] fw_env.c: Increase max dev path to 32

2013-10-06 Thread Wolfgang Denk
Dear Tom, In message 20131006205527.GP15917@bill-the-cat you wrote: Do we really need a static size here? Can we not auto-adjust to the needed size, say by dynamically allocating the buffer? Doesn't look like it, without a big change to the parsing code. I don't think this requires a