Re: [U-Boot] [RFC 1/3] mmc: checking status after commands with R1b response

2011-03-09 Thread Lei Wen
Hi Raffaele, On Thu, Mar 10, 2011 at 12:51 AM, Raffaele Recalcati wrote: > From: Raffaele Recalcati > > It is a recommended to check card status after these kind of commands. > This is done using CMD13 (SEND_STATUS) JEDEC command. > In case of error the previous command is issued again. > > Sign

Re: [U-Boot] [PATCH v4] ARM: S5P: pwm driver support

2011-03-09 Thread Minkyu Kang
Donghwa Lee On 8 March 2011 16:11, Donghwa Lee wrote: > This is common pwm driver of S5P. > > Signed-off-by: Donghwa Lee > Signed-off-by: Kyungmin Park > --- > Changes since v3: > - fixed pwm register offset > - move definitions of register to header file > > Changes since v2: > - Timer4 was bl

Re: [U-Boot] uboot for MIPS: need help to skip relocate uboot and start uboot from RAM

2011-03-09 Thread Aaron Williams
Hi Pandurang, We solved this problem by using TLB mapping for U-Boot on our MIPS platforms. This was also due to the fact that we need to load U-Boot at the top of physical memory which is often unreachable with 32-bit addressing. By doing this we always link U-Boot at address 0xC000 and it

[U-Boot] common/update.c ITB update code refactoring (no new file)

2011-03-09 Thread Dvorkin Dmitry
common/update.c used to update flash with ITB image. With this patch it can also use any templated nash commands to load and save blobs. Also it adds nand as possible target for update. Usage example: // to load itb from usb mass-storage device and save it into nand using nash commands setenv up

[U-Boot] [RFC 3/3] mmc: trace added

2011-03-09 Thread Raffaele Recalcati
From: Raffaele Recalcati Defining CONFIG_MMC_TRACE in the include board file it is possible to activate a tracing support. This code helps in case of eMMC hw failure or to investigate possible eMMC initialization issues. Signed-off-by: Raffaele Recalcati --- drivers/mmc/mmc.c | 71 ++

[U-Boot] [RFC 2/3] mmc: SEND_OP_COND considers card capabilities (voltage)

2011-03-09 Thread Raffaele Recalcati
From: Raffaele Recalcati The first SEND_OP_COND (CMD1) is used only to ask card capabilities, waiting that the card is not busy. After it, an AND operation is done between card capabilities and host capabilities, (at the moment only for the voltage field). Finally the correct value is sent to the

[U-Boot] [RFC 1/3] mmc: checking status after commands with R1b response

2011-03-09 Thread Raffaele Recalcati
From: Raffaele Recalcati It is a recommended to check card status after these kind of commands. This is done using CMD13 (SEND_STATUS) JEDEC command. In case of error the previous command is issued again. Signed-off-by: Raffaele Recalcati --- drivers/mmc/mmc.c | 106 ++

[U-Boot] [RFC 0/3] mmc inizialization steps enhanced

2011-03-09 Thread Raffaele Recalcati
I have added some better inizializations and status check. I have created following patchset for Davinci dm365 against git://arago-project.org/git/projects/u-boot-davinci.git git tree. There are two commits more in that tree, but they are not in conflict with my work. I have finally tested this ser

[U-Boot] [PATCH 2/2] MX31: mx31pdk: Print the cause of reset

2011-03-09 Thread Fabio Estevam
Signed-off-by: Fabio Estevam --- board/freescale/mx31pdk/mx31pdk.c | 25 - 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c index 4a5d3ef..0462a22 100644 --- a/board/freescale/mx31pdk/m

[U-Boot] [PATCH 1/2] MX31: mx31pdk: Add watchdog support

2011-03-09 Thread Fabio Estevam
Signed-off-by: Fabio Estevam --- board/freescale/mx31pdk/mx31pdk.c | 16 include/configs/mx31pdk.h |1 + 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c index a9f0fb4..4a5d3ef 100

[U-Boot] [RFC] mpc83xx/speed.c

2011-03-09 Thread Andre Schwarz
I have an issue with i2c-1 bus speed not being calculated correctly on MPC8377. arch/powerpc/cpu/mpc83xx/speed.c lines 320+ are : #if defined(CONFIG_MPC834x) i2c1_clk = tsec2_clk; #elif defined(CONFIG_MPC8360) i2c1_clk = csb_clk; #elif defined(CONFIG_MPC832x) i2c1_clk

Re: [U-Boot] [PATCH 2/5] powerpc/85xx: Read board switch settings on p1_p2_rdb

2011-03-09 Thread McClintock Matthew-B29882
On Wed, Mar 9, 2011 at 9:36 AM, Kumar Gala wrote: > the setting of pmuxcr?  SW has to do that. > But we don't do this based off the switch value currently on p1_p2_rdb_pc boards. -M ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mail

Re: [U-Boot] [PATCH 2/5] powerpc/85xx: Read board switch settings on p1_p2_rdb

2011-03-09 Thread Kumar Gala
On Mar 9, 2011, at 12:38 AM, McClintock Matthew-B29882 wrote: > On Sun, Mar 6, 2011 at 10:17 PM, Kumar Gala wrote: >> + if (i2c_data & 0x1) { >> + setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_SD_DATA); >> + puts("SD/MMC : 8-bit Mode\n"); >>

Re: [U-Boot] cfi: Problem with Intel Strata 28F320 flash

2011-03-09 Thread Detlev Zundel
Hi Heiko, > Maybe a way to go ... more comments? > > Below a patch, which introduces a function, which checks for > "protection bugfixes", and if no bugfix is found the old code is > executed. Just a fast RFC patch. > > bye, > Heiko > > diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.

[U-Boot] [RFC PATCH 6/6] Mips: Update setting of endianess and CPU optimization flags

2011-03-09 Thread daniel . schwierzeck
The current Mips CPU config.mk code always expects a Mips 4kc core and toolchain. This is not appropiate for other toolchains and CPUs/SoCs. Replace the current MIPSFLAGS code by cc-option macro and use -march=mips32r2 as default optimization level for all Mips32 CPUs. Replace the endianess determ

[U-Boot] [RFC PATCH 5/6] Mips: Au1x00: Move all Au1x00 specific code to separate subdirectory

2011-03-09 Thread daniel . schwierzeck
From: Daniel Schwierzeck Au1x00 is a SoC and its specific code should reside in an own SoC subdirectory. Signed-off-by: Daniel Schwierzeck Shinya Kuribayashi --- arch/mips/cpu/mips32/Makefile |2 - arch/mips/cpu/mips32/au1x00/Makefile | 45

[U-Boot] [RFC PATCH 4/6] Mips: Purple: Move all Purple specific code to separate subdirectory

2011-03-09 Thread daniel . schwierzeck
Purple is a SoC and its specific code should reside in an own SoC subdirectory. Signed-off-by: Daniel Schwierzeck Shinya Kuribayashi --- arch/mips/cpu/mips32/Makefile |1 - arch/mips/cpu/mips32/purple/Makefile | 45 arch/mips/cpu/mips32/

[U-Boot] [RFC PATCH 3/6] Mips: IncaIP: Move all IncaIP specific code to separate subdirectory

2011-03-09 Thread daniel . schwierzeck
IncaIP is a SoC and its specific code should reside in an own SoC subdirectory. Signed-off-by: Daniel Schwierzeck Shinya Kuribayashi --- arch/mips/cpu/mips32/Makefile|2 - arch/mips/cpu/mips32/incaip/Makefile | 46 +++ arch/mips/cpu/mips32/incaip/asc_serial

[U-Boot] [RFC PATCH 2/6] Mips: Purple: Adapt u-boot.lds to changed CPU directory layout

2011-03-09 Thread daniel . schwierzeck
This fixes a linker error introduced by the previous commit. Signed-off-by: Daniel Schwierzeck Cc: Shinya Kuribayashi --- board/purple/u-boot.lds |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/board/purple/u-boot.lds b/board/purple/u-boot.lds index 719f268..982937d 10

[U-Boot] [RFC PATCH 0/6] Mips: Refactoring of CPU and SoC code

2011-03-09 Thread daniel . schwierzeck
All current Mips CPUs and SoCs are based on Mips32 arch. The complete code resides in the global arch/mips/cpu directory. All SoC specific code resides in this directory too. This is not suitable if other Mips architectures like Mips64 or Octeon or new SoCs should be supported in the future. This

[U-Boot] [RFC PATCH 1/6] Mips: Move content of arch/mips/cpu to arch/mips/cpu/mips32

2011-03-09 Thread daniel . schwierzeck
All current CPUs and SoCs are based on Mips32 arch. The complete code resides in the global arch/mips/cpu directory. This is not suitable if other Mips architectures like Mips64 or Octeon should be supported in the future. To achieve this the current CPU code is moved to its own mips32 subdirector

Re: [U-Boot] [PATCH 17/22] omap4: calculate EMIF register values

2011-03-09 Thread Aneesh V
On Wednesday 09 March 2011 10:16 AM, John Rigby wrote: > On Mon, Feb 28, 2011 at 4:46 AM, Aneesh V wrote: >> Calculate EMIF register values based on AC timing parameters >> from the SDRAM datasheet and the DDR frequency rather than >> using the hard-coded values. >> >> For a new board the user doe

[U-Boot] [PATCH v3] net: axi_ethernet: Add driver to u-boot v3

2011-03-09 Thread Michal Simek
Add the first axi_ethernet driver for little-endian Microblaze. Signed-off-by: Michal Simek --- v2: - Fix return addreses - Fix NULL pointer defer for priv structure v3: - Freeing allocated memory when initialization failed --- .../xilinx/microblaze-generic/microblaze-generic.c |4 + drive