Re: [PATCH] NAND Flash SMC timings update (nwe_pulse) for calao board based on AT91SAM9G20 SoC

2012-08-30 Thread gregory hermant
Hello sascha, It's just a typo. gregory Sascha Hauer wrote: > On Tue, Aug 28, 2012 at 08:40:57AM +0200, gregory hermant wrote: >> Signed-off-by: Gregory Hermant > > The commmit log is a bit sparse. It would be interesting if this is an > enhancement, fixes a problem, is needed on newer board rev

Re: SD card experts wanted

2012-08-30 Thread Johannes Stezenbach
Hi, On Wed, Aug 29, 2012 at 11:17:03PM +0200, Juergen Beisert wrote: > any SD/MMC card experts here? I have trouble with the current SD/MMC > detection > code in Barebox. > The function sd_change_freq() in the file 'drivers/mci/mci-core.c' tries to > detect the max. transfer frequency the attac

[PATCH 2/2] trivial: bootm: correct grammar in error message

2012-08-30 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- commands/bootm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/bootm.c b/commands/bootm.c index 5f858e8..2d9f7f2 100644 --- a/commands/bootm.c +++ b/commands/bootm.c @@ -180,7 +180,7 @@ static int bootm_open_oftree(struct image

[PATCH 0/2] trivial: correct spellings and grammar

2012-08-30 Thread Steffen Trumtrar
Hi all, this patchseries fixes just some spelling, grammar, etc errors I stumbled upon. Steffen Trumtrar (2): trivial: fix spelling in usb code trivial: bootm: correct grammar in error message commands/bootm.c |2 +- commands/usb.c |2 +- drivers/usb/core/usb.c |4

[PATCH 1/2] trivial: fix spelling in usb code

2012-08-30 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- commands/usb.c |2 +- drivers/usb/core/usb.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/usb.c b/commands/usb.c index d02ea4b..729a402 100644 --- a/commands/usb.c +++ b/commands/usb.c @@ -50,7 +50,7 @@ static

[PATCH 2/3] ARM i.MX6: enable usbphy1

2012-08-30 Thread Steffen Trumtrar
Add a function to take the usbphy1 through its initialization procedure. The imx6_usb_phy1_disable_oc function is needed at least on the sabrelite, as the power design is faulty. The state on other imx6 boards is unknown, therefore it is an extra function call at the moment. Signed-off-by: Steffen

[PATCH 1/3] ARM i.MX6: add the usbphy1 base addr

2012-08-30 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- arch/arm/mach-imx/include/mach/imx6-regs.h |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/include/mach/imx6-regs.h b/arch/arm/mach-imx/include/mach/imx6-regs.h index e62cc79..c7b7481 100644 --- a/arch/arm/mach-imx/include/mach/imx6-re

[PATCH 0/3] ARM i.MX6: basic USB H1 support

2012-08-30 Thread Steffen Trumtrar
This series adds basic support for usb host1 on imx6q. This was tested on a sabrelite board. Steffen Trumtrar (3): ARM i.MX6: add the usbphy1 base addr ARM i.MX6: enable usbphy1 usb: use ep-specific pwrgood delay arch/arm/mach-imx/Makefile |2 +- arch/arm/mach-imx/inclu

[PATCH 3/3] usb: use ep-specific pwrgood delay

2012-08-30 Thread Steffen Trumtrar
In usb_hub_configure the hub is asked for its descriptor and among other things its bPwrOn2PwrGood time. In the actual hub_power_on function this information was not used and a hardcoded value was used instead. For some hubs this delay is to short. So, use the delay the hub wants. Signed-off-by: S

[PATCH 1/2] ARM i.MX6: Add usb-ehci to sabrelite

2012-08-30 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- arch/arm/boards/freescale-mx6-sabrelite/board.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boards/freescale-mx6-sabrelite/board.c b/arch/arm/boards/freescale-mx6-sabrelite/board.c index 13279bc..6490988 100644 --- a/ar

[PATCH 2/2] ARM i.MX6: Add i2c iomux to sabrelite

2012-08-30 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- arch/arm/boards/freescale-mx6-sabrelite/board.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boards/freescale-mx6-sabrelite/board.c b/arch/arm/boards/freescale-mx6-sabrelite/board.c index 6490988..1ac401e 100644 --- a/arch/arm/b

[PATCH 0/2] ARM i.MX6: Add sabrelite features

2012-08-30 Thread Steffen Trumtrar
This adds usb h1 and the i2c iomux to the sabrelite board. Steffen Trumtrar (2): ARM i.MX6: Add usb-ehci to sabrelite ARM i.MX6: Add i2c iomux to sabrelite arch/arm/boards/freescale-mx6-sabrelite/board.c | 32 +++ 1 file changed, 32 insertions(+) -- 1.7.10.4 ___

Re: [PATCH 3/3] usb: use ep-specific pwrgood delay

2012-08-30 Thread Eric Bénard
Hi Steffen, Le Thu, 30 Aug 2012 14:30:50 +0200, Steffen Trumtrar a écrit : > In usb_hub_configure the hub is asked for its descriptor and among other > things > its bPwrOn2PwrGood time. In the actual hub_power_on function this information > was not used and a hardcoded value was used instead. F

Re: SD card experts wanted

2012-08-30 Thread Juergen Beisert
Hi Johannes, Johannes Stezenbach wrote: > On Wed, Aug 29, 2012 at 11:17:03PM +0200, Juergen Beisert wrote: > > any SD/MMC card experts here? I have trouble with the current SD/MMC > > detection code in Barebox. > > The function sd_change_freq() in the file 'drivers/mci/mci-core.c' tries > > to det

Re: [PATCH 3/3] usb: use ep-specific pwrgood delay

2012-08-30 Thread Steffen Trumtrar
Hi Eric, > Hi Steffen, > > Le Thu, 30 Aug 2012 14:30:50 +0200, > Steffen Trumtrar a écrit : > > > In usb_hub_configure the hub is asked for its descriptor and among other > > things > > its bPwrOn2PwrGood time. In the actual hub_power_on function this > > information > > was not used and a ha

Re: [PATCH 3/3] usb: use ep-specific pwrgood delay

2012-08-30 Thread Eric Bénard
Hi Steffen, Le Thu, 30 Aug 2012 15:26:31 +0200, Steffen Trumtrar a écrit : > Where does your 50ms come from? From the debug messages of the usb-tool? from a printf of bPwrOn2PwrGood > It has the same factor of times 2. yes, so in the end the hub is supposed to need 100ms to enable power. > Have

[PATCH 1/5] mpc85xx: i2c frequency

2012-08-30 Thread Renaud Barbier
A function that returns the system bus frequency used to compute the i2c bus frequency is added for future use. Signed-off-by: Renaud Barbier --- arch/ppc/mach-mpc85xx/include/mach/clocks.h |1 + arch/ppc/mach-mpc85xx/speed.c |9 + 2 files changed, 10 insertions(+),

[PATCH 0/5] IMX i2c driver update for the PPC 85xx

2012-08-30 Thread Renaud Barbier
This patch replaces the patch "ppc: Freescale TSEC driver". This patch set prepares the PPC 85xx SOC to use the IMX i2c driver and updates the driver with specific clock settings. The patch also introduces a function returning the system clock to calculate the i2c frequency bus divider. Finally, th

[PATCH 3/5] mpc85xx: header update

2012-08-30 Thread Renaud Barbier
In order to use the IMX i2c driver on the mpc85xx SOC, the file mach/clocks.h is renamed mach/clock.h. Files using this header are updated accordingly. The file mach/generic.h is also added to accommodate the driver. Finally, there is a clean up of a line too long. Signed-off-by: Renaud Barbier

[PATCH 4/5] i2c: adapt the i2c-imx driver to mpc85xx machines.

2012-08-30 Thread Renaud Barbier
A function to calculate the frequency divider and digital filter sampling rate for the 85xx processors is added to the i2c-imx driver. Hence, this driver is used on IMX and 85xx machines. Signed-off-by: Renaud Barbier --- arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h |3 + drivers/i2c/buss

[PATCH 2/5] ppc/asm/fsl_i2c.h is removed

2012-08-30 Thread Renaud Barbier
The i2c-imx driver is able to support the I2C bus on the 85xx machines with minor modifications. It already defines register offsets. Therefore, this header file is no longer needed. Signed-off-by: Renaud Barbier --- arch/ppc/include/asm/fsl_i2c.h | 86

[PATCH 5/5] ppc: p2020rdb i2c support

2012-08-30 Thread Renaud Barbier
Support for both i2c busses on the p2020rdb board is added and the configuration file is updated to add the I2C driver and commands. Signed-off-by: Renaud Barbier --- arch/ppc/boards/freescale-p2020rdb/p2020rdb.c | 12 +++- arch/ppc/configs/p2020rdb_defconfig |3 +++ 2 fi

Re: [PATCH 3/3] usb: use ep-specific pwrgood delay

2012-08-30 Thread Steffen Trumtrar
Hi Eric, >On Thu, Aug 30, 2012 at 03:59:32PM +0200, Eric Bénard wrote: > Hi Steffen, > > Le Thu, 30 Aug 2012 15:26:31 +0200, > Steffen Trumtrar a écrit : > > Where does your 50ms come from? From the debug messages of the usb-tool? > from a printf of bPwrOn2PwrGood > > > It has the same factor o

Re: [PATCH 3/3] usb: use ep-specific pwrgood delay

2012-08-30 Thread Eric Bénard
Le Thu, 30 Aug 2012 16:12:27 +0200, Steffen Trumtrar a écrit : > As both, barebox and linux, reset the hub and wait, it seems like the root > of the problem, yes. > unfortunatly, after a check with the oscilloscope the mdelay(100) is really a 100 ms delay in barebox ... so the problem in barebox

Re: SD card experts wanted

2012-08-30 Thread Johannes Stezenbach
Hi, On Thu, Aug 30, 2012 at 03:08:19PM +0200, Juergen Beisert wrote: > Johannes Stezenbach wrote: > > > > MMC has the following speed modes: > > > > - legacy 0-26MHz > > - high speed SDR 0-52MHz > > - high speed DDR 0-52MHz > > - HS200 SDR 0-200MHz > > Ahh, here come the curious 26 MHz and 52 MHz

Re: SD card experts wanted

2012-08-30 Thread Juergen Beisert
Hi Johannes, Johannes Stezenbach wrote: > On Thu, Aug 30, 2012 at 03:08:19PM +0200, Juergen Beisert wrote: > > Johannes Stezenbach wrote: > > > MMC has the following speed modes: > > > > > > - legacy 0-26MHz > > > - high speed SDR 0-52MHz > > > - high speed DDR 0-52MHz > > > - HS200 SDR 0-200MHz >