Re: [U-Boot] [PATCH v2 09/12] tegra124: Add PSCI support for Tegra124

2015-02-23 Thread Jan Kiszka
On 2015-02-20 10:36, Jan Kiszka wrote: > On 2015-02-19 10:14, Thierry Reding wrote: >> On Wed, Feb 18, 2015 at 09:34:53AM -0700, Stephen Warren wrote: >>> On 02/17/2015 11:13 PM, Jan Kiszka wrote: On 2015-02-17 22:03, Stephen Warren wrote: > On 02/16/2015 05:54 AM, Jan Kiszka wrote: >>

[U-Boot] [PATCH] am33xx, spl, siemens: enable debug uart output again

2015-02-23 Thread Heiko Schocher
a6b541b090: TI ARMv7: Don't use GD before crt0.S has set it moves the init of the debug uart at the very end of SPL code. Enable it for the siemens board earlier, as they print ddr settings ... all debug output before board_init_r() is here currently useless. Maybe we must rework this globally? S

[U-Boot] [PATCH] arm, da8xx: convert ipam390 board to generic board support

2015-02-23 Thread Heiko Schocher
enable generic board support for the ipam390 board. Signed-off-by: Heiko Schocher --- include/configs/ipam390.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ipam390.h b/include/configs/ipam390.h index 310d5e2..664a2b2 100644 --- a/include/configs/ipam390.h +++ b/include/c

Re: [U-Boot] [PATCH 1/2] dm: i2c: add DM_I2C_REQ_ALIAS to make sequence number optional

2015-02-23 Thread Simon Glass
Hi Masahiro, On Feb 23, 2015 8:16 PM, "Masahiro Yamada" wrote: > > Hi Simon, > > > > On Mon, 23 Feb 2015 11:01:02 -0700 > Simon Glass wrote: > > > Hi Masahiro, > > > > On 20 February 2015 at 04:38, Masahiro Yamada wrote: > > > For I2C (and some other uclasses), all the devices are required to >

[U-Boot] [PATCH v4 15/20] usb: UniPhier: add UniPhier on-chip xHCI host driver support

2015-02-23 Thread Masahiro Yamada
Support xHCI host driver used on Panasonic UniPhier platform. Signed-off-by: Masahiro Yamada Acked-by: Marek Vasut --- Changes in v4: - use fdtdec_find_aliases_for_id() to get the offset to the node Changes in v3: None Changes in v2: - add the error check of fdtdec_get_addr() doc/README.

[U-Boot] [PATCH v4 11/20] ARM: UniPhier: replace "usb-ehci" with "generic-ehci"

2015-02-23 Thread Masahiro Yamada
EHCI host controllers have a common register interface. We may wish to implement a generic EHCI driver someday. Signed-off-by: Masahiro Yamada --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/dts/uniphier-ph1-ld4.dtsi | 8 arch/arm/dts/uniphier-ph1-pro4.dtsi

[U-Boot] [PATCH v4 04/20] ARM: UniPhier: fix comments in PH1-Pro4 SBC code

2015-02-23 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-uniphier/ph1-pro4/sbc_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-uniphier/ph1-pro4/sbc_init.c b/arch/arm/mach-uniphier/ph1-pro4/sbc_i

[U-Boot] [PATCH v4 18/20] ARM: UniPhier: switch to 1CS support card

2015-02-23 Thread Masahiro Yamada
The 3CS support card (CONFIG_DCC_MICRO_SUPPORT_CARD) used to be used very often before, but it is recently getting a minority. Swith to the 1CS support card (CONFIG_PFC_MICRO_SUPPORT_CARD). Signed-off-by: Masahiro Yamada --- Changes in v4: None Changes in v3: None Changes in v2: - Added co

[U-Boot] [PATCH v4 20/20] ARM: UniPhier: remove stop_mpll() from PH1-Pro4 PLL initialization

2015-02-23 Thread Masahiro Yamada
This function was intended for MN2WS0235 (what we call PH1-Pro4TV). On that SoC, MPLL is already running on the power-on reset and it makes sense to stop the PLL at early boot-up. On the other hand, PH1-Pro4(R) does not have SC_MPLLOSCCTL register, so this function has no point. Signed-off-by: Mas

[U-Boot] [PATCH v4 13/20] ARM: UniPhier: enable xHCI and GIO cores for PH1-Pro4

2015-02-23 Thread Masahiro Yamada
This is necessary to use the USB 3.0 host controllers on PH1-Pro4. Signed-off-by: Masahiro Yamada --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-uniphier/include/mach/sc-regs.h | 11 ++- arch/arm/mach-uniphier/ph1-pro4/clkrst_init.c | 15 +++

[U-Boot] [PATCH v4 07/20] ARM: UniPhier: reset NAND core in SPL for non-NAND boot mode

2015-02-23 Thread Masahiro Yamada
For all the UniPhier SoCs so far, the reset signal of the NAND core is automatically deasserted after the PLL gets stabled. (The bit 2 of SC_RSTCTRL is default to one.) This causes a fatal problem on the NAND controller of PH1-LD4. For that SoC, the NAND I/O pins are not set up yet at the power-on

[U-Boot] [PATCH v4 16/20] ARM: UniPhier: switch to xHCI for PH1-Pro4

2015-02-23 Thread Masahiro Yamada
PH1-Pro4 includes both EHCI and xHCI IP cores. Unfortunately, U-Boot cannot enable EHCI and xHCI support simultaneously. Some users may wish Super-Speed connection. Disable CONFIG_USB_EHCI_HCD and enable CONFIG_USB_XHCI_HCD. Signed-off-by: Masahiro Yamada --- Changes in v4: None Changes in v3:

[U-Boot] [PATCH v4 01/20] ARM: UniPhier: move SoC sources to mach-uniphier

2015-02-23 Thread Masahiro Yamada
Move arch/arm/cpu/armv7/uniphier/* -> arch/arm/mach-uniphier/* Signed-off-by: Masahiro Yamada --- Changes in v4: None Changes in v3: - Newly added Changes in v2: None MAINTAINERS | 2 +- arch/arm/Kconfig

[U-Boot] [PATCH v4 08/20] ARM: UniPhier: enable STDMAC for EHCI

2015-02-23 Thread Masahiro Yamada
Deassert the reset signal and provide the clock for STDMAC core. This is necessary for the USB 2.0 host controllers. Signed-off-by: Masahiro Yamada --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-uniphier/include/mach/sc-regs.h | 2 ++ arch/arm/mach-uniphier/ph1-l

Re: [U-Boot] [linux-sunxi] [PATCH] sunxi: Make CONFIG_DRAM_TPR3 apply to sun[57]i

2015-02-23 Thread Siarhei Siamashka
On Mon, 23 Feb 2015 20:44:10 + Adam Sampson wrote: > The tpr3 (timing skew) parameter is used in all supported versions of > the sunxi DRAM controller, but it was only enabled for sun4i in > 47e3501a76894f4ba08bc61f33774bd5d39ff464. > > Signed-off-by: Adam Sampson > --- > board/sunxi/dram_

[U-Boot] [RFC] sunxi: Support uploading 'boot.scr' to RAM over USB OTG in FEL mode

2015-02-23 Thread Siarhei Siamashka
In order to fully support booting the whole system over USB OTG without relying on anything else (MMC, SATA, USB sticks, ...), it is possible to upload the 'boot.scr' file to DRAM using the 'fel' tool. But U-Boot still needs to be able to pick it up there before checking any other boot media. Sign

[U-Boot] [PATCH v5 2/6] ARM: remove dkb board support

2015-02-23 Thread Masahiro Yamada
This is still a non-generic board. Signed-off-by: Masahiro Yamada Cc: Lei Wen Acked-by: Marek Vasut --- arch/arm/Kconfig | 5 - arch/arm/cpu/arm926ejs/Makefile | 1 - arch/arm/cpu/arm926ejs/pantheon/Makefile | 9 -- arch/arm/cpu/arm926ejs/

Re: [U-Boot] [PATCH v3 5/7] kconfig: switch to single .config configuration

2015-02-23 Thread Scott Wood
On Fri, 2015-02-20 at 14:24 +0900, Masahiro Yamada wrote: > When Kconfig for U-boot was examined, one of the biggest issues was > how to support multiple images (Normal, SPL, TPL). There were > actually two options, "single .config" and "multiple .config". > After some discussions and thought expe

Re: [U-Boot] Pull request: u-boot-mmc 23022015

2015-02-23 Thread Tom Rini
On Mon, Feb 23, 2015 at 08:28:53PM +0200, Pantelis Antoniou wrote: > Hi Tom, > > The following changes since commit 46414296953410706e917cef9238926084e83a4b: > > rpi: add support for Raspberry Pi 2 model B (2015-02-21 08:28:16 -0500) > > are available in the git repository at: > > git://gi

Re: [U-Boot] u-boot tftp problem

2015-02-23 Thread Joe Hershberger
On Fri, Feb 20, 2015 at 10:51 AM, PF4Public wrote: > > Hello, Nikolay > > Now I see, what you mean. > > From every dump the requests made by U-Boot are the same. They're as follows: > 00:00:00.000310 IP (tos 0x0, ttl 255, id 11267, offset 0, flags [DF], proto UDP (17), length 66) > 192.168.100

Re: [U-Boot] [PATCH] omap3: Variant and revision checks for ARM Cortex-A8 errata workarounds

2015-02-23 Thread Nishanth Menon
On Mon, Feb 23, 2015 at 4:21 PM, Tom Rini wrote: > On Mon, Feb 23, 2015 at 08:16:44PM +0100, Paul Kocialkowski wrote: > >> Not every version and revision of the Cortex-A8 ARM core requires the same >> errata workarounds. In addition, enabling those requires to have similar >> workarounds enabled i

Re: [U-Boot] [PATCH V2 1/2] gunzip: add gzwrite routine for extracting compresed images to block device

2015-02-23 Thread Tom Rini
On Tue, Feb 17, 2015 at 11:30:30AM -0700, Eric Nelson wrote: > Initial filesystem images are generally highly compressible. > > Add a routine gzwrite that allows gzip-compressed images to be > written to block devices. > > Signed-off-by: Eric Nelson > --- > V2 removes floating point references

Re: [U-Boot] [PATCH 2/2] vexpress64: juno: add default NOR flash boot

2015-02-23 Thread Tom Rini
On Mon, Feb 23, 2015 at 04:12:47PM +0100, Linus Walleij wrote: > On Thu, Feb 19, 2015 at 5:50 PM, Tom Rini wrote: > > On Thu, Feb 19, 2015 at 05:19:54PM +0100, Linus Walleij wrote: > > > >> This modifies the vexpress64 Juno configuration so that > >> it will by default load and boot a kernel and a

[U-Boot] [PATCH] mmc: sdhci: don't clobber adjacent registers

2015-02-23 Thread Matt Reimer
SDHCI_HOST_CONTROL is a byte-sized register, so don't write to it as if it were a long, as that would result in clobbering the three registers following. Signed-off-by: Matt Reimer --- drivers/mmc/sdhci.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/sdhci.c

[U-Boot] [PATCH] mmc: s5p: properly mask SELBASECLK

2015-02-23 Thread Matt Reimer
Properly mask SELBASECLK by using an actual mask rather than the number of bits to shift in order to create the mask. Signed-off-by: Matt Reimer --- drivers/mmc/s5p_sdhci.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c in

Re: [U-Boot] [PATCH][v6] crypto/fsl - Add progressive hashing support using hardware acceleration.

2015-02-23 Thread Simon Glass
On 20 February 2015 at 00:21, Gaurav Rana wrote: > Currently only normal hashing is supported using hardware acceleration. > Added support for progressive hashing using hardware. > > Signed-off-by: Ruchika Gupta > Signed-off-by: Gaurav Rana > CC: Simon Glass > --- > Changes in v6: > Modify desc

Re: [U-Boot] Possible bug in s5p_sdhci.c

2015-02-23 Thread Pantelis Antoniou
Hi Matt, > On Feb 19, 2015, at 20:31 , Matt Reimer wrote: > > The use of SDHCI_CTRL2_SELBASECLK_SHIFT in s5p_sdhci_set_control_reg() seems > wrong, because a shifting offset is being used as a mask, not to generate a > mask. > > It's unclear what the original intent was. Below is my suggested

Re: [U-Boot] [RFC PATCH v1] kwbimage: Align v1 binary header to 4B

2015-02-23 Thread Luka Perkov
On Mon, Feb 23, 2015 at 01:06:49AM -0800, Prafulla Wadaskar wrote: > > Hi Chris, > > > > (added Prafulla and Luka to Cc) > > > > On 22.02.2015 23:25, Chris Packham wrote: > > > According to the Armada-XP documentation the binary header format > > > requires the header length to be aligned to 4B.

Re: [U-Boot] [PATCH 1/2] sunxi: mmc: Always declare High Capacity capability

2015-02-23 Thread Pantelis Antoniou
Hi Hans, > On Feb 19, 2015, at 22:03 , Hans de Goede wrote: > > High Capacity (e)MMC cards work fine on sun4i / sun5i, and not having this > capability set causes u-boot to not recognize the eMMC on an Utoo P66 A13 > tablet, so always set it thereby fixing this. > > Signed-off-by: Hans de Goede

Re: [U-Boot] [PATCH 1/3] mmc: dw_mmc: fixed the wrong bit control

2015-02-23 Thread Pantelis Antoniou
Hi Jaehoon, > On Feb 4, 2015, at 08:48 , Jaehoon Chung wrote: > > If mode is not DDR-mode, then it needs to clear it. > > Signed-off-by: Jaehoon Chung > --- > drivers/mmc/dw_mmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc

Re: [U-Boot] [PATCH 2/3] mmc: exynos_dw_mmc: set to clksel_val into board-init function

2015-02-23 Thread Pantelis Antoniou
Hi Jaehoon, > On Feb 4, 2015, at 08:48 , Jaehoon Chung wrote: > > "clksel_val" is assigned to property of mmc or defined value. > But it doesn't write at initial sequence. > There is a reason that get the wrong source-clock value. > This patch fixed it. > > Signed-off-by: Jaehoon Chung > --- >

Re: [U-Boot] [PATCH 2/3] mmc: exynos_dw_mmc: set to clksel_val into board-init function

2015-02-23 Thread Pantelis Antoniou
Hi Jaehoon, > On Feb 4, 2015, at 08:48 , Jaehoon Chung wrote: > > "clksel_val" is assigned to property of mmc or defined value. > But it doesn't write at initial sequence. > There is a reason that get the wrong source-clock value. > This patch fixed it. > > Signed-off-by: Jaehoon Chung > --- >

Re: [U-Boot] [PATCH] mmc: dw_mmc: fixed the wrong bit control

2015-02-23 Thread Pantelis Antoniou
Hi Jaehoon, > On Jan 14, 2015, at 10:37 , Jaehoon Chung wrote: > > If mode is not DDR-mode, then it needs to clear it. > > Signed-off-by: Jaehoon Chung > --- > drivers/mmc/dw_mmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mm

Re: [U-Boot] [PATCHv1 01/22] arm: socfpga: spl: Add main sdram code

2015-02-23 Thread Dinh Nguyen
On 2/23/15 10:57 AM, Marek Vasut wrote: > On Monday, February 23, 2015 at 05:39:53 PM, Dinh Nguyen wrote: >> On 2/23/15 10:37 AM, Dinh Nguyen wrote: >>> On 2/15/15 5:25 PM, Pavel Machek wrote: Hi! > +#if ENABLE_BRINGUP_DEBUGGING Could we get rid of this for initial merge?

Re: [U-Boot] How to program u-boot in eMMC/MMC on iMX

2015-02-23 Thread Marek Vasut
On Monday, February 23, 2015 at 04:19:39 PM, Otavio Salvador wrote: > On Mon, Feb 23, 2015 at 12:16 PM, Marco Cavallini > > wrote: > > 2015-02-23 16:03 GMT+01:00 Otavio Salvador : > ... > > > Does exists a method to store a u-boot bootolader in an unpartitioned > > unformatted eMMC (without kobs

Re: [U-Boot] [u-boot 14/40] usb: dwc3: linux-compat: Add header for dwc3 linux compatibiltiy

2015-02-23 Thread Marek Vasut
On Monday, February 23, 2015 at 07:19:03 AM, Kishon Vijay Abraham I wrote: > Hi, > > On Monday 16 February 2015 04:02 PM, Lukasz Majewski wrote: > > Hi Kishon, Marek > > > >> Added a header file to include various linux specific APIs like > >> pr_debug, WARN_ WARN_ON_ONCE etc.. in order to avoid

Re: [U-Boot] [PATCH 03/11] usb: dwc3: Add BIT() macro

2015-02-23 Thread Marek Vasut
On Monday, February 23, 2015 at 03:02:24 PM, Lukasz Majewski wrote: > From: Inha Song > > Signed-off-by: Inha Song Is such confusing macro really necessary please ? Moreover, the #define BIT(x) (1 << x) should really be #define BIT(x) (1 << (x)) (with (x) in round brackets). Best regards, Mar

Re: [U-Boot] [PATCH v2 1/4] mmc: fsl_esdhc: Add CMD11 support to switch to 1.8V

2015-02-23 Thread Stefano Babic
On 17/02/2015 13:42, Otavio Salvador wrote: > This adds support to switch to 1.8V in case CMD11 succeeds. > > Signed-off-by: Otavio Salvador > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- = DENX Softw

[U-Boot] [PATCH] spl_mem_init.c : Added support for mDDR in SPL for i.MX28

2015-02-23 Thread Marco Cavallini
Signed-off-by: Marco Cavallini --- arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c b/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c index a744e5d..9e11288 100644 --- a/arch/arm/cpu/arm926ejs

Re: [U-Boot] [PATCH v4 0/9] ARM: remove non-generic boards

2015-02-23 Thread Fabio Estevam
Hi Masahiro, On Sun, Feb 22, 2015 at 12:20 PM, Masahiro Yamada wrote: > > Based on Tom's announce mail > (http://lists.denx.de/pipermail/u-boot/2015-February/203606.html), > let's start removing non-generic ARM boards. > > No conversion patches have been posted for these boards. > > > Changes in

Re: [U-Boot] [u-boot PATCH v2 30/40] dwc3: flush the buffers before using it

2015-02-23 Thread Lukasz Majewski
Hi Kishon, > In the linux kernel, non cacheable buffers are used. However in uboot > since there are no APIs to allocate non cacheable memory, all > the buffers should be flushed before using it. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/core.c | 11 +-- > d

Re: [U-Boot] [PATCH 1/4] dm: gpio: extend gpio api by dm_gpio_set_pull()

2015-02-23 Thread Simon Glass
Hi, On 23 February 2015 at 03:51, Przemyslaw Marczak wrote: > > Hello Simon, > > > On 02/20/2015 08:29 PM, Simon Glass wrote: >> >> Hi, >> >> On 20 February 2015 at 10:50, Stephen Warren wrote: >>> >>> On 02/20/2015 02:34 AM, Przemyslaw Marczak wrote: Hello, On 02/19/201

Re: [U-Boot] How to program u-boot in eMMC/MMC on iMX

2015-02-23 Thread Otavio Salvador
On Mon, Feb 23, 2015 at 12:16 PM, Marco Cavallini wrote: > 2015-02-23 16:03 GMT+01:00 Otavio Salvador : ... > Does exists a method to store a u-boot bootolader in an unpartitioned > unformatted eMMC (without kobs-ng, so without using linux), but simply > running a command from u-boot? > > So in ca

Re: [U-Boot] How to program u-boot in eMMC/MMC on iMX

2015-02-23 Thread Marco Cavallini
2015-02-23 16:03 GMT+01:00 Otavio Salvador : > On Mon, Feb 23, 2015 at 11:57 AM, Marco Cavallini > wrote: >> 2015-02-23 15:20 GMT+01:00 Fabio Estevam : >>> Hi Marco, >>> >>> On Mon, Feb 23, 2015 at 11:11 AM, Marco Cavallini >>> wrote: Hello, I'd like to know if exists a method to s

Re: [U-Boot] [PATCH 2/2] vexpress64: juno: add default NOR flash boot

2015-02-23 Thread Linus Walleij
On Thu, Feb 19, 2015 at 5:50 PM, Tom Rini wrote: > On Thu, Feb 19, 2015 at 05:19:54PM +0100, Linus Walleij wrote: > >> This modifies the vexpress64 Juno configuration so that >> it will by default load and boot a kernel and a device tree >> from the pre-defined location in the NOR flash. When we a

Re: [U-Boot] [PATCH v2] omap3: Variant and revision checks for ARM Cortex-A8 errata workarounds

2015-02-23 Thread Paul Kocialkowski
Le lundi 23 février 2015 à 13:09 +0200, Igor Grinberg a écrit : > Hi Paul, > > On 02/22/15 18:42, Paul Kocialkowski wrote: > > Not every version and revision of the Cortex-A8 ARM core requires the same > > errata workarounds. In addition, enabling those requires to have similar > > workarounds ena

Re: [U-Boot] How to program u-boot in eMMC/MMC on iMX

2015-02-23 Thread Otavio Salvador
On Mon, Feb 23, 2015 at 11:57 AM, Marco Cavallini wrote: > 2015-02-23 15:20 GMT+01:00 Fabio Estevam : >> Hi Marco, >> >> On Mon, Feb 23, 2015 at 11:11 AM, Marco Cavallini >> wrote: >>> Hello, >>> >>> I'd like to know if exists a method to store in eMMC a bootolader >>> without kobs-ng, so without

Re: [U-Boot] How to program u-boot in eMMC/MMC on iMX

2015-02-23 Thread Marco Cavallini
2015-02-23 15:20 GMT+01:00 Fabio Estevam : > Hi Marco, > > On Mon, Feb 23, 2015 at 11:11 AM, Marco Cavallini > wrote: >> Hello, >> >> I'd like to know if exists a method to store in eMMC a bootolader >> without kobs-ng, so without using linux, but simply running a command >> from u-boot. >> I boot

Re: [U-Boot] [PATCH 06/11] usb: dwc3: add a workaround for too small OUT requests

2015-02-23 Thread Lukasz Majewski
Hi Kishon, > Hi, > > On Monday 23 February 2015 07:32 PM, Lukasz Majewski wrote: > > From: Marek Szyprowski > > > > DWC3 hangs on OUT requests smaller than maxpacket size, > > so HACK the request length to be at least equal to maxpacket size. > > Curious to know using which gadget this issue wa

Re: [U-Boot] [PATCH] gpt: support random UUIDs without setting environment variables

2015-02-23 Thread Przemyslaw Marczak
Hello, On 02/22/2015 11:46 PM, Rob Herring wrote: On Wed, Feb 18, 2015 at 11:48 AM, Przemyslaw Marczak wrote: Hello Rob, Sorry for delay. On 01/26/2015 04:44 PM, Rob Herring wrote: Currently, an environment variable must be used to store the randomly generated UUID for each partition. This

Re: [U-Boot] [PATCH 06/11] usb: dwc3: add a workaround for too small OUT requests

2015-02-23 Thread Kishon Vijay Abraham I
Hi, On Monday 23 February 2015 07:32 PM, Lukasz Majewski wrote: From: Marek Szyprowski DWC3 hangs on OUT requests smaller than maxpacket size, so HACK the request length to be at least equal to maxpacket size. Curious to know using which gadget this issue was seen. Thanks Kishon Signed-o

Re: [U-Boot] [PATCH 05/11] usb: dwc3: Set usbdrd phy ctrl and mode in dwc3 core

2015-02-23 Thread Kishon Vijay Abraham I
Hi, On Monday 23 February 2015 07:32 PM, Lukasz Majewski wrote: commit message here again. Signed-off-by: Joonyoung Shim Signed-off-by: Lukasz Majewski [The code has been rebased on v2 dwc3 support provided by Kishon Vijay Abraham I] --- drivers/usb/dwc3/core.c | 77 +++

Re: [U-Boot] How to program u-boot in eMMC/MMC on iMX

2015-02-23 Thread Fabio Estevam
Hi Marco, On Mon, Feb 23, 2015 at 11:11 AM, Marco Cavallini wrote: > Hello, > > I'd like to know if exists a method to store in eMMC a bootolader > without kobs-ng, so without using linux, but simply running a command > from u-boot. > I booted my i.MX28 system (I have the same question for i.MX6

Re: [U-Boot] [PATCH 04/11] usb: dwc3: make dwc3_set_mode to static

2015-02-23 Thread Kishon Vijay Abraham I
Hi, On Monday 23 February 2015 07:32 PM, Lukasz Majewski wrote: From: Joonyoung Shim commit message please. -Kishon Signed-off-by: Joonyoung Shim --- drivers/usb/dwc3/core.c | 2 +- drivers/usb/dwc3/core.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/us

[U-Boot] How to program u-boot in eMMC/MMC on iMX

2015-02-23 Thread Marco Cavallini
Hello, I'd like to know if exists a method to store in eMMC a bootolader without kobs-ng, so without using linux, but simply running a command from u-boot. I booted my i.MX28 system (I have the same question for i.MX6 as well) using the u-boot.sb (u-boot-2015.01 with SPL) file loaded with mxsldr (

Re: [U-Boot] [PATCH 02/11] usb: dwc3: linux-compat: Fix: Adding missing include files

2015-02-23 Thread Kishon Vijay Abraham I
Hi, On Monday 23 February 2015 07:32 PM, Lukasz Majewski wrote: Added #includes are necessary to allow dwc3 to compile and run on u-boot for Odroid XU3. I think you should also add the files for Odroid XU3. Signed-off-by: Lukasz Majewski --- drivers/usb/dwc3/linux-compat.h | 3 +++ 1 fil

[U-Boot] [PATCH 09/11] usb: dwc3: gadget: Set all ctrl fields of Transfer Control Blocks (TRB) to be LST

2015-02-23 Thread Lukasz Majewski
It turned out that current dwc3 gadget code is preparing multiple TRBs for a transfer. Unfortunately, when multiple requests are in the same queue, only for the last one the LST (last) ctrl bit is set. Due to that dwc3 HW executes all TRBs up till the one marked as last. Unfortunately, UMS require

[U-Boot] [PATCH 11/11] usb: dwc3: Correct clean up code for requests

2015-02-23 Thread Lukasz Majewski
For u-boot dwc3 driver the scatter gather list support has been removed from original linux code. It is correct, since we try to send one request at a time. However, the cleanup left spurious break, which caused early exit from loop at dwc3_cleanup_done_reqs() function. As a result the dwc3_gadget

[U-Boot] [PATCH 05/11] usb: dwc3: Set usbdrd phy ctrl and mode in dwc3 core

2015-02-23 Thread Lukasz Majewski
Signed-off-by: Joonyoung Shim Signed-off-by: Lukasz Majewski [The code has been rebased on v2 dwc3 support provided by Kishon Vijay Abraham I] --- drivers/usb/dwc3/core.c | 77 - drivers/usb/dwc3/core.h | 1 + include/dwc3-uboot.h| 2 ++ 3 f

[U-Boot] [PATCH 08/11] usb: dwc3: optimize interrupt loop

2015-02-23 Thread Lukasz Majewski
From: Marek Szyprowski There is no point in calling dwc3_thread_interrupt() if no event is pending. There is also no point in flushing event cache in EVERY loop iteration. Signed-off-by: Marek Szyprowski --- drivers/usb/dwc3/core.c | 7 --- drivers/usb/dwc3/gadget.c | 15 +--

[U-Boot] [PATCH 10/11] usb: dwc3: gadget: Set non EP0 max packet limit to 512B

2015-02-23 Thread Lukasz Majewski
Commit "drivers/dwc3: add a workaround for too small OUT requests" sets max packet for OUT requests when transfer is smaller. Until this change the default maxpacket for non EP0 EPs was 1024. This is too much, since UMS LBA size is 512B Signed-off-by: Lukasz Majewski --- drivers/usb/dwc3/gadget

[U-Boot] [PATCH 06/11] usb: dwc3: add a workaround for too small OUT requests

2015-02-23 Thread Lukasz Majewski
From: Marek Szyprowski DWC3 hangs on OUT requests smaller than maxpacket size, so HACK the request length to be at least equal to maxpacket size. Signed-off-by: Marek Szyprowski --- drivers/usb/dwc3/gadget.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc3/gadget.c b/

[U-Boot] [PATCH 07/11] usb: dwc3: gadget: add common endpoint configuration for dwc3 udc driver

2015-02-23 Thread Lukasz Majewski
From: Marek Szyprowski This patch adds code to select standard, commonly used usb endpoint configuration (ep1in-bulk, ep2out-bulk, ep3in-int) to dwc3 driver. This ensures compatibility with old userspace and windows drivers, which expects hardcoded endpoint numbers. Signed-off-by: Marek Szyprows

[U-Boot] [PATCH 00/11] usb: dwc3: Fixes and improvements for DWC3 driver

2015-02-23 Thread Lukasz Majewski
Those patches should be applied on top of Kishon Vijay Abraham I work (v1) [40 patches]: https://patchwork.ozlabs.org/patch/442467/ "dra7xx: am43xx: add dwc3 gadget driver support and enable dfu" Those changes fixes composite, DFU and UMS gadgets - as a result relevant tests (available at test/{d

[U-Boot] [PATCH 02/11] usb: dwc3: linux-compat: Fix: Adding missing include files

2015-02-23 Thread Lukasz Majewski
Added #includes are necessary to allow dwc3 to compile and run on u-boot for Odroid XU3. Signed-off-by: Lukasz Majewski --- drivers/usb/dwc3/linux-compat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/dwc3/linux-compat.h b/drivers/usb/dwc3/linux-compat.h index b36f68f..4047

[U-Boot] [PATCH 01/11] usb: composite: Add .reset callback to usb_gadget_driver structure

2015-02-23 Thread Lukasz Majewski
DWC3 UDC driver requires presence of .reset callback in a composite driver. This setting is similar to the one nowadays present in linux kernel. Signed-off-by: Lukasz Majewski --- drivers/usb/gadget/composite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/composite.c b/

[U-Boot] [PATCH 04/11] usb: dwc3: make dwc3_set_mode to static

2015-02-23 Thread Lukasz Majewski
From: Joonyoung Shim Signed-off-by: Joonyoung Shim --- drivers/usb/dwc3/core.c | 2 +- drivers/usb/dwc3/core.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 4c3637f..d690870 100644 --- a/drivers/usb/dwc3/core.c +++ b

[U-Boot] [PATCH 03/11] usb: dwc3: Add BIT() macro

2015-02-23 Thread Lukasz Majewski
From: Inha Song Signed-off-by: Inha Song --- drivers/usb/dwc3/core.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 3f8a4e9..3355468 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -392,6 +392,7 @@ struct dwc3_ev

Re: [U-Boot] [PATCH v3 6/7] kconfig: remove unneeded dependency on !SPL_BUILD

2015-02-23 Thread Simon Glass
Hi Masahiro, On 20 February 2015 at 19:37, Masahiro YAMADA wrote: > Hi Simon, > > > 2015-02-21 11:28 GMT+09:00 Simon Glass : >> Hi Masahiro, >> >> On 20 February 2015 at 17:54, Masahiro YAMADA >> wrote: >>> Hi Simon, Stephen, >>> >>> >>> 2015-02-21 3:39 GMT+09:00 Simon Glass : Hi, >>>

Re: [U-Boot] [PATCH v4 0/5] Clean out SPL and enable driver model

2015-02-23 Thread Simon Glass
Hi, On 10 February 2015 at 14:35, Simon Glass wrote: > This series includes a few more patches aimed at getting rid of gdata, the > parallel global_data structure introduced on some ARM boards. > > It also collects together the other patches which have been sent previously, > so that everything i

Re: [U-Boot] Weird error message on buildman

2015-02-23 Thread Simon Glass
Hi Masahiro, On 23 February 2015 at 05:52, Masahiro Yamada wrote: > Hi Simon, > > > When I try to run Buildman against a branch named "test", > it fails with a weird error message. > > > > $ git branch > * master > $ git checkout -b test master > Switched to a new branch 'test' > $ echo foo >> RE

[U-Boot] [PATCH v3 05/20] ARM: UniPhier: fix SBC init code

2015-02-23 Thread Masahiro Yamada
Now UniPhier SoCs only work with CONFIG_SPL and the function sbc_init() is called from SPL. The conditional #if !defined(CONFIG_SPL_BUILD) has no point any more. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None arch/arm/mach-uniphier/ph1-ld4/sbc_init.c | 11 +

[U-Boot] [PATCH v3 13/20] ARM: UniPhier: enable xHCI and GIO cores for PH1-Pro4

2015-02-23 Thread Masahiro Yamada
This is necessary to use the USB 3.0 host controllers on PH1-Pro4. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None arch/arm/mach-uniphier/include/mach/sc-regs.h | 11 ++- arch/arm/mach-uniphier/ph1-pro4/clkrst_init.c | 15 +++ 2 files changed, 25

[U-Boot] [PATCH v3 20/20] ARM: UniPhier: remove stop_mpll() from PH1-Pro4 PLL initialization

2015-02-23 Thread Masahiro Yamada
This function was intended for MN2WS0235 (what we call PH1-Pro4TV). On that SoC, MPLL is already running on the power-on reset and it makes sense to stop the PLL at early boot-up. On the other hand, PH1-Pro4(R) does not have SC_MPLLOSCCTL register, so this function has no point. Signed-off-by: Mas

[U-Boot] [u-boot PATCH v2 34/40] usb: gadget: defer setting maxpacket till ->setup()

2015-02-23 Thread Kishon Vijay Abraham I
Taken from linux kernel with commit commit 765f5b830e547229bb752e7b232ee83e2b3d49d5 Author: Sebastian Andrzej Siewior Date: Thu Jun 23 14:26:11 2011 +0200 usb: gadget: defer setting maxpacket till ->setup() Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- drivers/usb/g

[U-Boot] [u-boot PATCH v2 32/40] usb: dwc3: Add chained TRB support for ep0

2015-02-23 Thread Kishon Vijay Abraham I
dwc3 can do only max packet aligned transfers. So in case request length is not max packet aligned and is bigger than DWC3_EP0_BOUNCE_SIZE two chained TRBs is required to handle the transfer. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- drivers/usb/dwc3/ep0.c| 72

[U-Boot] [u-boot PATCH v2 27/40] dwc3: dwc3-omap: add support for multiple dwc3-omap controllers

2015-02-23 Thread Kishon Vijay Abraham I
Added support for multiple dwc3 omap controllers. This gives uboot the capability to control multiple dwc3 omap controllers. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- drivers/usb/dwc3/dwc3-omap.c | 26 -- include/dwc3-omap-uboot.h|3

[U-Boot] [PATCH v3 18/20] ARM: UniPhier: switch to 1CS support card

2015-02-23 Thread Masahiro Yamada
The 3CS support card (CONFIG_DCC_MICRO_SUPPORT_CARD) used to be used very often before, but it is recently getting a minority. Swith to the 1CS support card (CONFIG_PFC_MICRO_SUPPORT_CARD). Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: - Added configs/ph1_ld4_defcon

[U-Boot] [u-boot PATCH v2 18/40] include: usb: composite: add USB_GADGET_DELAYED_STATUS to avoid compilation error

2015-02-23 Thread Kishon Vijay Abraham I
Added USB_GADGET_DELAYED_STATUS to avoid the following compilation error. error: ‘USB_GADGET_DELAYED_STATUS’ undeclared (first use in this function) while compiling dwc3/ep0.c While this is been added only to avoid compilation error, the complete fix should be something like the one added in linux

[U-Boot] [u-boot PATCH v2 40/40] usb: modify usb_gadget_handle_interrupts to take controller index

2015-02-23 Thread Kishon Vijay Abraham I
Since we support multiple dwc3 controllers to be existent at the same time, in order to handle the interrupts of a particular dwc3 controller usb_gadget_handle_interrutps should take controller index as an argument. Hence the API of usb_gadget_handle_interrupts is modified to take controller index

[U-Boot] [u-boot PATCH v2 33/40] usb: dwc3: Makefile: Make dwc3 driver compile in u-boot

2015-02-23 Thread Kishon Vijay Abraham I
Now that the entire dwc3 driver is adapted to compile with uboot build, modify the Makefiles so that the dwc3 driver can be built. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- Makefile|2 ++ drivers/usb/dwc3/Makefile | 35 +++

[U-Boot] [u-boot PATCH v2 35/40] common: cmd_dfu: invoke board_usb_cleanup() for cleaning up

2015-02-23 Thread Kishon Vijay Abraham I
Invoked board_usb_cleanup for cleaning up initialized USB. It will be invoked if the user enterts ctrl-C. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- common/cmd_dfu.c |1 + common/usb.c |6 ++ 2 files changed, 7 insertions(+) diff --git a/common/cmd_d

[U-Boot] [u-boot PATCH v2 25/40] include: dwc3-omap-uboot: add a structure for populating dwc3-omap platform data

2015-02-23 Thread Kishon Vijay Abraham I
Added a structure to populate dwc3 omap platform data. The board file should populate these platform data before invoking dwc3 omap driver. This will be removed once dwc3-omap driver is adapted to use the driver model. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- driv

[U-Boot] [u-boot PATCH v2 36/40] board: ti: DRA7: added USB initializtion code

2015-02-23 Thread Kishon Vijay Abraham I
Implemented board_usb_init(), board_usb_cleanup() and usb_gadget_handle_interrupts() in dra7xx board file that can be invoked by various gadget drivers. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- arch/arm/include/asm/arch-omap5/omap.h | 12 board/ti/dra7xx/evm

[U-Boot] [u-boot PATCH v2 39/40] include: configs: Enable DWC3 and DFU in AM43xx

2015-02-23 Thread Kishon Vijay Abraham I
Enabled dwc3, dwc3-omap and PHY for dwc3 are enabled. Also enabled support for DFU. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- include/configs/am43xx_evm.h | 58 +- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 11/20] ARM: UniPhier: replace "usb-ehci" with "generic-ehci"

2015-02-23 Thread Masahiro Yamada
EHCI host controllers have a common register interface. We may wish to implement a generic EHCI driver someday. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None arch/arm/dts/uniphier-ph1-ld4.dtsi | 8 arch/arm/dts/uniphier-ph1-pro4.dtsi | 6 +++--- arch/ar

[U-Boot] [u-boot PATCH v2 29/40] usb: dwc3: TI PHY: PHY driver for dwc3 in TI platforms

2015-02-23 Thread Kishon Vijay Abraham I
Added a single driver for both USB2 PHY programming and USB3 PHY programming. USB3 PHY is taken from drivers/phy/phy-ti-pipe3.c in linux kernel. commit 56042e : phy: ti-pipe3: Fix suspend/resume and module reload. USB2 PHY is taken from drivers/phy/phy-omap-usb2.c in linux kernel. commit eb82a3 :

[U-Boot] [u-boot PATCH v2 37/40] include: configs: Enable DWC3 and DFU in DRA7xx

2015-02-23 Thread Kishon Vijay Abraham I
Enabled dwc3, dwc3-omap and PHY for dwc3 are enabled. Also enabled support for DFU. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- include/configs/dra7xx_evm.h | 63 + include/configs/ti_omap5_common.h |5 +++ 2 files change

[U-Boot] [u-boot PATCH v2 38/40] board: ti: AM43xx: added USB initializtion code

2015-02-23 Thread Kishon Vijay Abraham I
Implemented board_usb_init(), board_usb_cleanup() and usb_gadget_handle_interrupts() in am43xx board file that can be invoked by various gadget drivers. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- arch/arm/include/asm/arch-am33xx/hardware_am43xx.h |9 ++ board/ti/

[U-Boot] [PATCH v3 04/20] ARM: UniPhier: fix comments in PH1-Pro4 SBC code

2015-02-23 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None arch/arm/mach-uniphier/ph1-pro4/sbc_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-uniphier/ph1-pro4/sbc_init.c b/arch/arm/mach-uniphier/ph1-pro4/sbc_init.c index 37acfb5.

[U-Boot] [PATCH v3 17/20] ARM: UniPhier: support 1CS support card for all the UniPhier SoCs

2015-02-23 Thread Masahiro Yamada
Two support card variants are used with UniPhier reference boards: - 1 chip select support card (original CPLD) - 3 chip selects support card (ARIMA-compatible CPLD) Currently, the former is only supported on PH1-Pro4, but it can be expanded to PH1-LD4, PH1-sLD8 with a little code change. Signe

[U-Boot] [PATCH v3 16/20] ARM: UniPhier: switch to xHCI for PH1-Pro4

2015-02-23 Thread Masahiro Yamada
PH1-Pro4 includes both EHCI and xHCI IP cores. Unfortunately, U-Boot cannot enable EHCI and xHCI support simultaneously. Some users may wish Super-Speed connection. Disable CONFIG_USB_EHCI_HCD and enable CONFIG_USB_XHCI_HCD. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2:

[U-Boot] [PATCH v3 19/20] ARM: UniPhier: consolidate MEMCONF setting code

2015-02-23 Thread Masahiro Yamada
This code is duplicated in ph1-ld4/sg_init.c and ph1-pro4/sg_init.c. Merge the same code into a new file, memconf.c. The helper functions no longer have to be placed in the header file. Also, move them into memconf.c. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 08/20] ARM: UniPhier: enable STDMAC for EHCI

2015-02-23 Thread Masahiro Yamada
Deassert the reset signal and provide the clock for STDMAC core. This is necessary for the USB 2.0 host controllers. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None arch/arm/mach-uniphier/include/mach/sc-regs.h | 2 ++ arch/arm/mach-uniphier/ph1-ld4/clkrst_init.c |

[U-Boot] [PATCH v3 07/20] ARM: UniPhier: reset NAND core in SPL for non-NAND boot mode

2015-02-23 Thread Masahiro Yamada
For all the UniPhier SoCs so far, the reset signal of the NAND core is automatically deasserted after the PLL gets stabled. (The bit 2 of SC_RSTCTRL is default to one.) This causes a fatal problem on the NAND controller of PH1-LD4. For that SoC, the NAND I/O pins are not set up yet at the power-on

[U-Boot] [PATCH v3 02/20] ARM: UniPhier: move SoC headers to mach-uniphier/include/mach

2015-02-23 Thread Masahiro Yamada
Move arch/arm/include/asm/arch-uniphier/* -> arch/arm/mach-uniphier/include/mach/* Signed-off-by: Masahiro Yamada --- Changes in v3: - Newly added Changes in v2: None MAINTAINERS | 1 - .../asm/arch-uniphier => mach-uniphier/inc

[U-Boot] [PATCH v3 15/20] usb: UniPhier: add UniPhier on-chip xHCI host driver support

2015-02-23 Thread Masahiro Yamada
Support xHCI host driver used on Panasonic UniPhier platform. Signed-off-by: Masahiro Yamada Acked-by: Marek Vasut --- Changes in v3: None Changes in v2: - add the error check of fdtdec_get_addr() doc/README.uniphier | 3 +- drivers/usb/host/Kconfig | 8 drivers/

[U-Boot] [u-boot PATCH v2 31/40] usb: dwc3: ep0: preparation for implementing chained TRB

2015-02-23 Thread Kishon Vijay Abraham I
No functional change. Modified few things so that there are no code duplication while implementing chained TRB. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- drivers/usb/dwc3/ep0.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git

[U-Boot] [PATCH v3 06/20] ARM: UniPhier: split clkrst_init() into two functions

2015-02-23 Thread Masahiro Yamada
Split the current clkrst_init() into two functions: - early_clkrst_init(): called from SPL Deassert the reset signals of the memory controller and some other basic cores. - clkrst_init(): called from main U-boot Deassert the reset signals that are necessary for the access to peripherals

[U-Boot] [PATCH v3 12/20] ARM: UniPhier: add I/O pin settings for xHCI on PH1-Pro4

2015-02-23 Thread Masahiro Yamada
This is necessary to use the xHCI cores for PH1-Pro4. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None arch/arm/mach-uniphier/ph1-pro4/pinctrl.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-uniphier/ph1-pro4/pinctrl.c b/arch/arm/mach-uniph

  1   2   >