[U-Boot] [PATCH] image: Convert to use fdt_for_each_subnode macro

2015-02-06 Thread Axel Lin
Signed-off-by: Axel Lin --- common/image-fit.c | 4 +--- common/image-sig.c | 16 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/common/image-fit.c b/common/image-fit.c index b47d110..778d2a1 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1010,9 +1

[U-Boot] [PATCH v2] spl, spl_nor: fix compiler warning

2015-02-06 Thread Heiko Schocher
executing "tools/buildman/buildman mpc5xx" drops this warning: common/spl/spl_nor.c: In function 'spl_nor_load_image': common/spl/spl_nor.c:26:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] fix this. Signed-off-by: Heiko Schocher --- Changes

[U-Boot] [u-boot 00/40] dra7xx: am43xx: add dwc3 gadget driver support and enable dfu

2015-02-06 Thread Kishon Vijay Abraham I
This patch series ports dwc3 gadget driver from linux kernel (3.19-rc1) to u-boot. Changes from RFC: *) A patch has been added to copy the driver from linux kernel to u-boot and then it's modfied to make it work in u-boot. This will help to understand the changes that's been done to make i

[U-Boot] [u-boot 06/40] include: asm: dma-mapping: get rid of the compilation warning in udc-core

2015-02-06 Thread Kishon Vijay Abraham I
Fixed the following warning here. "warning: ‘dma_alloc_coherent’ defined but not used" while compiling udc-core Signed-off-by: Kishon Vijay Abraham I --- arch/arm/include/asm/dma-mapping.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/dma-mapping.h

[U-Boot] [u-boot 03/40] usb: gadget: udc: add udc-core from linux kernel to u-boot

2015-02-06 Thread Kishon Vijay Abraham I
Added udc-core.c from linux kernel 3.19-rc1 (97bf6af1f9) to u-boot. This will be adapted to work with u-boot in the following patches. Adding support for udc will help to seamlessly port dwc3 driver from linux kernel to u-boot (since dwc3 uses udc-core) and it'll also help to add support for multip

[U-Boot] [u-boot 04/40] include: usb: modify gadget.h to include udc support

2015-02-06 Thread Kishon Vijay Abraham I
Made changes in gadget.h that is required after adding udc-core.c except changes that might break other platforms. Signed-off-by: Kishon Vijay Abraham I --- include/linux/usb/gadget.h | 43 +++ 1 file changed, 43 insertions(+) diff --git a/include/linux

[U-Boot] [u-boot 11/40] usb: dwc3: fix dwc3 header files

2015-02-06 Thread Kishon Vijay Abraham I
Changed the header files included in core.h and io.h to the u-boot header files so that these files can be included in other dwc3 source files and be compiled in uboot. Also added otg.h which has the defines for dr_mode. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.h | 13 ++

[U-Boot] [u-boot 13/40] arm: asm: dma-mapping: added dma_free_coherent API

2015-02-06 Thread Kishon Vijay Abraham I
Added dma_free_coherent corresponding to the dma_alloc_coherent in dma-mapping.h in order to free memory allocated using dma_alloc_coherent. This API is used in dwc3 driver. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/include/asm/dma-mapping.h |7 +++ 1 file changed, 7 insertions(

[U-Boot] [u-boot 10/40] usb: dwc3: remove trace_* APIs from dwc3 driver

2015-02-06 Thread Kishon Vijay Abraham I
Removed most of the trace_* APIs from dwc3 driver since tracepoints are not supported in u-boot. Replaced some of the trace_* API with dev_dbg/dev/vdbg. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/Makefile |5 +--- drivers/usb/dwc3/ep0.c| 70 ++---

[U-Boot] [u-boot 09/40] usb: dwc3: Modify the file headers to u-boot format

2015-02-06 Thread Kishon Vijay Abraham I
Modified the file header to the format that is used in u-boot. Also included in the header, the commit in linux kernel from which each of these files are added. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.c | 15 +-- drivers/usb/dwc3/core.h | 15

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

2015-02-06 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 --- drivers/usb/dwc3/dwc3-omap.c |

[U-Boot] [u-boot 24/40] usb: dwc3: dwc3-omap: make dwc3-omap build in uboot

2015-02-06 Thread Kishon Vijay Abraham I
*) Changed the included header files to that used in u-boot. *) Removed extcon_* APIs *) Removed regulator_* APIs *) Fixed other misc warnings *) Added dwc3-omap.h to include the definitions of UTMI modes. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 144 +++

[U-Boot] [u-boot 22/40] dwc3: core: add support for multiple dwc3 controllers

2015-02-06 Thread Kishon Vijay Abraham I
Added support for multiple dwc3 controllers. This gives uboot the capability to control multiple dwc3 controllers. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.c | 32 drivers/usb/dwc3/core.h |4 include/dwc3-uboot.h|3 ++- 3

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

2015-02-06 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 14/40] usb: dwc3: linux-compat: Add header for dwc3 linux compatibiltiy

2015-02-06 Thread Kishon Vijay Abraham I
Added a header file to include various linux specific APIs like pr_debug, WARN_ WARN_ON_ONCE etc.. in order to avoid compilation error while building dwc3 driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/linux-compat.h | 30 ++ 1 file changed, 30 i

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

2015-02-06 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 27/40] dwc3: dwc3-omap: add support for multiple dwc3-omap controllers

2015-02-06 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 --- drivers/usb/dwc3/dwc3-omap.c | 26 -- include/dwc3-omap-uboot.h|3 ++- 2 files changed, 22 inse

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

2015-02-06 Thread Kishon Vijay Abraham I
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 |7 +++ drivers/usb/dwc3/ep0.c|6

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

2015-02-06 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 --- include/configs/dra7xx_evm.h | 63 + include/configs/ti_omap5_common.h |5 +++ 2 files changed, 68 insertions(+) diff --gi

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

2015-02-06 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 --- arch/arm/include/asm/arch-am33xx/hardware_am43xx.h |9 ++ board/ti/am43xx/board.c

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

2015-02-06 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 39/40] include: configs: Enable DWC3 and DFU in AM43xx

2015-02-06 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 --- include/configs/am43xx_evm.h | 61 +- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/include/configs/am43xx_evm.h

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

2015-02-06 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 --- arch/arm/include/asm/arch-omap5/omap.h | 12 board/ti/dra7xx/evm.c | 109 +++

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

2015-02-06 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 --- drivers/usb/dwc3/ep0.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/usb/dwc3/ep0.c b/dr

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

2015-02-06 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 --- drivers/usb/dwc3/ep0.c| 72 +

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

2015-02-06 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 --- drivers/usb/gadget/composite.c |4 +++-

[U-Boot] [u-boot 23/40] dwc3: core: added an API to invoke irq handlers

2015-02-06 Thread Kishon Vijay Abraham I
Since interrupt support is not present in u-boot, added an API to handle the interrupts in dwc3 core. This API can be polled to handle the interrupts. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.c | 21 + include/dwc3-uboot.h|1 + 2 files changed

[U-Boot] [u-boot 16/40] include: asm: types: add resource_size_t type

2015-02-06 Thread Kishon Vijay Abraham I
Added resource_size_t type in order to get rid of the following compilation error whiel building dwc3 gadget. include/linux/ioport.h:19:2: error: unknown type name ‘resource_size_t’ Signed-off-by: Kishon Vijay Abraham I --- arch/arm/include/asm/types.h |1 + 1 file changed, 1 insertion(+) d

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

2015-02-06 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 --- Makefile|2 ++ drivers/usb/dwc3/Makefile | 35 +++ driv

[U-Boot] [u-boot 28/40] usb: dwc3: dwc3-omap: add interrupt status API to check for interrupts

2015-02-06 Thread Kishon Vijay Abraham I
Added an API to check for interrupt status. This API is generally called from board file to check for interrupt status. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 20 include/dwc3-omap-uboot.h|1 + 2 files changed, 21 insertions(+) di

[U-Boot] [u-boot 17/40] usb: dwc3: ep0: make dwc3 ep0 build in uboot

2015-02-06 Thread Kishon Vijay Abraham I
*) Changed the included header files to that used in u-boot. *) added dwc3_ep_event_string() used in ep0.c *) Fixed other misc warnings Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.h | 24 drivers/usb/dwc3/ep0.c | 14 ++

[U-Boot] [u-boot 01/40] ARM: DRA7: Enable clocks for USB OTGSS and USB PHY

2015-02-06 Thread Kishon Vijay Abraham I
Enabled clocks for dwc3 controller and USB PHY present in DRA7. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/cpu/armv7/omap5/hw_data.c | 14 ++ arch/arm/cpu/armv7/omap5/prcm-regs.c | 10 +- arch/arm/include/asm/omap_common.h |4 ++-- 3 files changed, 21 inse

[U-Boot] [u-boot 26/40] usb: dwc3: dwc3-omap: change probe and remove to uboot init and uboot exit code

2015-02-06 Thread Kishon Vijay Abraham I
Removed probe and remove that are specific to linux and replaced it with uboot init and uboot exit. These functions will be invoked from boardfile. This will change once we have dwc3-omap driver adapted to use the uboot driver model. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dw

[U-Boot] [u-boot 21/40] dwc3: core: change probe and remove to uboot init and uboot exit code

2015-02-06 Thread Kishon Vijay Abraham I
Removed probe and remove that are specific to linux and replaced it with uboot init and uboot exit. These functions will be invoked from boardfile. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.c | 218 +++ 1 file changed, 52 inserti

[U-Boot] [u-boot 19/40] usb: dwc3: core: make dwc3 core build in uboot

2015-02-06 Thread Kishon Vijay Abraham I
*) Changed the include header files to that used in u-boot. *) Removed phy_* APIs *) Removed jiffies and used a simple while loop *) Used dma_alloc_coherent and dma_free_coherent APIs of u-boot *) Fixed other misc warnings Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.c

[U-Boot] [u-boot 15/40] usb: dwc3: gadget: make dwc3 gadget build in uboot

2015-02-06 Thread Kishon Vijay Abraham I
Did a bunch of things to get dwc3/gadget.c compile in u-boot without build errors and warnings *) Changed the included header files to that used in u-boot. *) Used dma_alloc_coherent and dma_free_coherent APIs of u-boot *) removed sg support *) remove jiffies and used a simple while loop *) removed

[U-Boot] [u-boot 12/40] usb: dwc3: remove pm related operations from dwc3 driver

2015-02-06 Thread Kishon Vijay Abraham I
Removed all pm related operations including pm_runtime APIs, suspend/resume hooks as support for these are not present in u-boot. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.c | 96 -- drivers/usb/dwc3/core.h | 16 ---

[U-Boot] [u-boot 05/40] usb: gadget: udc: make udc-core compile in u-boot build

2015-02-06 Thread Kishon Vijay Abraham I
Make udc-core compile in u-boot by removing all linux specific stuff and having only the bare minimal udc-core required for usb gadget drivers. Also modified the file header to a format that is generally being used in u-boot. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/gadget/udc/udc-c

[U-Boot] [u-boot 08/40] usb: dwc3: remove un-used files from dwc3 folder

2015-02-06 Thread Kishon Vijay Abraham I
removed un-used/un-supported files from dwc3. These files can be added later as and when the support is added. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/Kconfig | 120 --- drivers/usb/dwc3/debug.c | 32 -- drivers/usb/dwc3/debug.h | 228 --

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

2015-02-06 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 --- common/cmd_dfu.c |1 + common/usb.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index

[U-Boot] [u-boot 02/40] ARM: AM43xx: Enable clocks for USB OTGSS and USB PHY

2015-02-06 Thread Kishon Vijay Abraham I
Enabled clocks for dwc3 controller and USB PHY present in AM43xx. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/cpu/armv7/am33xx/clock_am43xx.c | 12 +++ arch/arm/include/asm/arch-am33xx/cpu.h | 22 ++-- arch/arm/include/asm/arch-am33xx/hard

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

2015-02-06 Thread Kishon Vijay Abraham I
Added a structure to populate dwc3 core platform data. The board file should populate these platform data before invoking dwc3 driver. This will be removed once we have dwc3 driver adapted to use the driver model. Signed-off-by: Kishon Vijay Abraham I --- include/dwc3-uboot.h | 40

Re: [U-Boot] relocation on freescale mx35 doesn't work after update to 2015.01

2015-02-06 Thread Priebe, Sebastian
Hello Albert, thanks for your answer. I tried to look up some information in the iMX35 reference manual but couldn't find anything. It doesn't say anything about the exception vectors. Can you point me at any direction where to look for information? What is the consequence of skipping the reloc

Re: [U-Boot] relocation on freescale mx35 doesn't work after update to 2015.01

2015-02-06 Thread Albert ARIBAUD
Hello Sebastian, Cc:ing Stefano since he's the i.MX custodian. On Fri, 6 Feb 2015 09:38:17 +, Priebe, Sebastian wrote: > Hello Albert, > > thanks for your answer. > I tried to look up some information in the iMX35 reference manual but > couldn't find anything. It doesn't say anything about

Re: [U-Boot] [PATCH V3] cmd_i2c: Provide option for bulk 'i2c write' in one transaction

2015-02-06 Thread Lubomir Popov
Hi Heiko, > Hello Simon, Lubomir, > > Am 03.02.2015 01:59, schrieb Simon Glass: >> Hi, >> >> On 30 January 2015 at 10:56, Lubomir Popov wrote: >>> I2C chips do exist that require a write of some multi-byte data to occur in >>> a single bus transaction (aka atomic transfer), otherwise either the w

Re: [U-Boot] [PATCH v2] armv8/vexpress64: make multientry conditional

2015-02-06 Thread Linus Walleij
On Wed, Feb 4, 2015 at 3:38 PM, FengHua wrote: >> config TARGET_LS2085A_SIMU >> bool "Support ls2085a_simu" >> select ARM64 >> + select ARMV8_MULTIENTRY >> > VEXPRESS_AEMV8A and VEXPRESS_AEMV8A_SEMI are > defaultly single entry? Yes. > That means we always has ATF exist. Not n

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

2015-02-06 Thread Gaurav Rana
Currently only normal hashing is supported using hardware acceleration. Added support for progressinve hashing using h/w. Signed-off-by: Ruchika Gupta Signed-off-by: Gaurav Rana CC: Simon Glass --- Changes in v3: Remove duplication of code and create function gen_hash_type. Modify MAX_SG to MA

Re: [U-Boot] x86: ACPI support suggestion

2015-02-06 Thread Bin Meng
Hi Gabriel, Thank you for taking the initiative for the U-Boot ACPI support. On Thu, Feb 5, 2015 at 3:52 AM, Simon Glass wrote: > +Bin > > Hi Gabriel, > > On 4 February 2015 at 12:22, Gabriel Huau wrote: >> Hi All, >> >> I'm currently thinking on how to integrate the ACPI support in u-boot x86.

Re: [U-Boot] [PATCH v3 1/4] dm: introduce dev_get_addr interface

2015-02-06 Thread Simon Glass
Hi Peng, On 5 February 2015 at 23:44, Peng Fan wrote: > Hi, Simon > > > On 1/23/2015 5:25 AM, Simon Glass wrote: >> >> Hi, >> >> On 21 January 2015 at 04:09, Peng Fan wrote: >>> >>> Abstracting dev_get_addr can improve drivers that want to >>> get device's address. >>> >>> Signed-off-by: Peng Fa

Re: [U-Boot] [PATCH] ARM: UniPhier: remove dummy gpio.h

2015-02-06 Thread Masahiro YAMADA
2015-02-03 13:51 GMT+09:00 Masahiro Yamada : > This dummy header was introduced by commit 630bf80ebb34 (ARM: > UniPhier: add dummy gpio.h to enable CONFIG_OF_CONTROL). > > Thanks to commit a08d643dbd85 (dm: Drop gpio.h header from > fdtdec.c), such an ugly workaround is no longer needed. > > Signed

Re: [U-Boot] [PATCH v2 0/6] ARM: UniPhier: add doc, improve I2C EEPROM access

2015-02-06 Thread Masahiro YAMADA
2015-02-05 14:30 GMT+09:00 Masahiro Yamada : > Masahiro Yamada (6): > ARM: UniPhier: use "&&" instead of ";" in commands > ARM: UniPhier: add environment variable to update images in NAND > ARM: UniPhier: add a simple README file for UniPhier platform > MAINTAINERS: claim maintainership of

Re: [U-Boot] [RFC] m68k: generic board

2015-02-06 Thread Tom Rini
On Mon, Jan 26, 2015 at 09:39:13AM +, Huan Wang wrote: > Hi, Tom, > > > On Thu, Jan 15, 2015 at 04:08:40PM +0100, Angelo Dureghello wrote: > > > Dear all, > > > > > > i would like to post a patch with the m68k generic board support, > > > tested and working here, but of course not tested for a

Re: [U-Boot] [PATCH 0/2] ARM: UniPhier: refactor pinmon command

2015-02-06 Thread Masahiro YAMADA
2015-02-05 20:56 GMT+09:00 Masahiro Yamada : > > > > Masahiro Yamada (2): > ARM: UniPhier: refactor pinmon command > ARM: UniPhier: leave the last element of boot_device_table empty Applied to u-boot-uniphier/master. -- Best Regards Masahiro Yamada

[U-Boot] Pull request: u-boot-uniphier

2015-02-06 Thread Masahiro YAMADA
Hi Tom, The following changes since commit 7f641d53bbb3a426a3bfb132d8346153e86a9d08: Merge branch 'master' of git://git.denx.de/u-boot-ubi (2015-02-04 13:30:00 -0500) are available in the git repository at: git://git.denx.de/u-boot-uniphier.git master for you to fetch changes up to 4e799

Re: [U-Boot] [PATCH 0/7] ARM: UniPhier: code refactoring and I2C pin fix

2015-02-06 Thread Masahiro YAMADA
2015-02-05 14:42 GMT+09:00 Masahiro Yamada : > > > > Masahiro Yamada (7): > ARM: UniPhier: move pin_init() to board_early_init_f() > ARM: UniPhier: move SPL init functions to spl_board_init() > ARM: UniPhier: revive support card info > ARM: UniPhier: remove unused checkboard() functions >

[U-Boot] Please pull u-boot-marvell master

2015-02-06 Thread Luka Perkov
Hi Tom, this series contains the last bits of pending kirkwood/mvebu patches that I'm aware of. The changes from Gerald are minimal and I've merged Stefan's series which have reached v3 on the list. The following changes since commit 7f641d53bbb3a426a3bfb132d8346153e86a9d08: Merge branch 'mast

Re: [U-Boot] [PATCH] image: Convert to use fdt_for_each_subnode macro

2015-02-06 Thread Simon Glass
Hi Axel, On 6 February 2015 at 01:23, Axel Lin wrote: > Signed-off-by: Axel Lin Please can you add a commit message? The code looks fine. > --- > common/image-fit.c | 4 +--- > common/image-sig.c | 16 > 2 files changed, 5 insertions(+), 15 deletions(-) > > diff --git a/comm

Re: [U-Boot] netconsole: USB Ethernet connection dropping with ping or tftpboot

2015-02-06 Thread Stephen Warren
On 02/05/2015 06:06 PM, Jörg Krause wrote: On Do, 2015-02-05 at 15:23 -0700, Stephen Warren wrote: b) In ci_bounce(), the bounce buffer is only allocated if the user-buffer is already aligned, and if a large-enough bounce buffer wasn't previously allocated. If ci_req->b_buf was uninitialized it

Re: [U-Boot] recent tools on FreeBSD

2015-02-06 Thread Jeroen Hofstee
Hello Simon, +Andreas, On 06-02-15 04:05, Simon Glass wrote: Hi Jeroen, On 5 February 2015 at 12:51, Jeroen Hofstee wrote: Hello Guilherme, Thanks for commenting on this, On 02/05/15 13:27, Guilherme Maciel Ferreira wrote: Hi Jeroen, My apologies, I didn't test the tools on BSD. The answe

[U-Boot] U-Boot uptime

2015-02-06 Thread Andrew Wozniak
Hi everyone, It has a quite a while since my last post here. Our new project is running U-Boot on a custom Beaglebone board. While running several overnight user-space applications, the board reset and stopped at the U-Boot prompt. We do not yet have any logging but I could monitor and record the

[U-Boot] U-Boot with PXE

2015-02-06 Thread Islam Mukambetov
If there is any u-boot for parallella, with PXE booting? If you have, please, can you send me a link, where i can find sources or u-boot image, and flash it to parallella. -- __ Ислам Мукамбетов ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v2 11/22] x86: Move common FSP code into a common location

2015-02-06 Thread Simon Glass
On 28 January 2015 at 16:44, Simon Glass wrote: > On 27 January 2015 at 21:13, Simon Glass wrote: >> Signed-off-by: Simon Glass >> Reviewed-by: Bin Meng >> Tested-by: Bin Meng >> --- >> >> Changes in v2: None > > Applied to u-boot-x86. I had to change the Makefile slightly to only include thi

Re: [U-Boot] [RFC PATCH v3 1/7] x86: Add header files for Intel Quark SoC defines

2015-02-06 Thread Simon Glass
On 4 February 2015 at 08:07, Simon Glass wrote: > On 2 February 2015 at 07:35, Bin Meng wrote: >> device.h for integrated pci devices' bdf on Quark SoC and quark.h for >> various memory-mapped and i/o-mapped base addresses within SoC. >> >> Signed-off-by: Bin Meng >> >> --- >> >> Changes in v3:

Re: [U-Boot] [RFC PATCH v3 4/7] x86: quark: Add Cache-As-RAM initialization

2015-02-06 Thread Simon Glass
On 4 February 2015 at 08:07, Simon Glass wrote: > On 2 February 2015 at 07:35, Bin Meng wrote: >> Quark SoC contains an embedded 512KiB SRAM (eSRAM) that is >> initialized by hardware. eSRAM is the ideal place to be used >> for Cache-As-RAM (CAR) before system memory is available. >> >> Signed-of

Re: [U-Boot] [RFC PATCH v3 5/7] x86: Add basic Intel Quark processor support

2015-02-06 Thread Simon Glass
On 4 February 2015 at 08:07, Simon Glass wrote: > On 2 February 2015 at 07:35, Bin Meng wrote: >> Add minimum codes to support Intel Quark SoC. DRAM initialization >> is not ready yet so a hardcoded gd->ram_size is assigned. >> >> Signed-off-by: Bin Meng >> >> --- >> >> Changes in v3: >> - Add s

Re: [U-Boot] [RFC PATCH v3 3/7] x86: Define macros for pci configuration space access

2015-02-06 Thread Simon Glass
On 4 February 2015 at 08:07, Simon Glass wrote: > On 2 February 2015 at 07:35, Bin Meng wrote: >> Move PCI_REG_ADDR and PCI_REG_DATA from arch/x86/lib/pci_type1.c to >> arch/x86/include/asm/pci.h, also define PCI_CFG_EN so that these >> macros can be used for pci configuration space access. >> >>

Re: [U-Boot] [RFC PATCH v3 2/7] x86: quark: Add routines to access message bus registers

2015-02-06 Thread Simon Glass
On 2 February 2015 at 07:35, Bin Meng wrote: > In the Quark SoC, some chipset commands are accomplished by utilizing > the internal message network within the host bridge (D0:F0). Accesses > to this network are accomplished by populating the message control > register (MCR), Message Control Regist

Re: [U-Boot] [RFC PATCH v2 1/9] x86: Allow overriding TSC_FREQ_IN_MHZ

2015-02-06 Thread Simon Glass
On 5 February 2015 at 08:42, Bin Meng wrote: > We should allow the value of TSC_FREQ_IN_MHZ to be overridden by > the one in arch/cpu//Kconfig. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass Applied to u-boot-x86, thanks! ___ U-Boot mailing list

Re: [U-Boot] [RFC PATCH v3 6/7] x86: Add basic Intel Galileo board support

2015-02-06 Thread Simon Glass
On 2 February 2015 at 07:35, Bin Meng wrote: > New board/intel/galileo board directory with minimum codes, plus > board dts, defconfig and configuration files. > > Signed-off-by: Bin Meng > Reviewed-by: Simon Glass > Acked-by: Simon Glass Applied to u-boot-x86, thanks!

Re: [U-Boot] [RFC PATCH v2 2/9] x86: quark: Bypass TSC calibration

2015-02-06 Thread Simon Glass
On 5 February 2015 at 08:42, Bin Meng wrote: > For some unknown reason, the TSC calibration via PIT does not work on > Quark. Enable bypassing TSC calibration and override TSC_FREQ_IN_MHZ > to 400 per Quark datasheet in the Kconfig. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass Applied to

Re: [U-Boot] [RFC PATCH v3 7/7] x86: Enable the Intel quark/galileo build

2015-02-06 Thread Simon Glass
On 2 February 2015 at 07:35, Bin Meng wrote: > Make the Intel quark/galileo support avaiable in Kconfig and Makefile. > With this patch, we can generate u-boot.rom for Intel galileo board. > > Signed-off-by: Bin Meng > Reviewed-by: Simon Glass > Acked-by: Simon Glass Applied to u-boot-x86, tha

Re: [U-Boot] [RFC PATCH v2 3/9] x86: quark: Add Memory Reference Code (MRC) main routines

2015-02-06 Thread Simon Glass
On 5 February 2015 at 17:51, Simon Glass wrote: > On 5 February 2015 at 08:42, Bin Meng wrote: >> Add the main routines for Quark Memory Reference Code (MRC). >> >> Signed-off-by: Bin Meng >> >> --- >> The are 24 checkpatch warnings in this patch, which is: >> >> warning: arch/x86/cpu/quark/mrc.

Re: [U-Boot] [RFC PATCH v2 4/9] x86: quark: Add utility codes needed for MRC

2015-02-06 Thread Simon Glass
On 5 February 2015 at 17:51, Simon Glass wrote: > Hi Bin, > > On 5 February 2015 at 08:42, Bin Meng wrote: >> Add various utility codes needed for Quark MRC. >> >> Signed-off-by: Bin Meng >> >> --- >> There are 12 checkpatch warnings in this patch, which are: >> >> warning: arch/x86/cpu/quark/mr

Re: [U-Boot] [RFC PATCH v2 7/9] fdtdec: Add compatible id and string for Intel Quark MRC

2015-02-06 Thread Simon Glass
On 5 February 2015 at 08:42, Bin Meng wrote: > Add COMPAT_INTEL_QRK_MRC and "intel,quark-mrc" so that fdtdec can > decode Intel Quark MRC node. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass Applied to u-boot-x86, thanks! ___ U-Boot mailing list

Re: [U-Boot] [RFC PATCH v2 5/9] x86: quark: Add System Memory Controller support

2015-02-06 Thread Simon Glass
On 5 February 2015 at 17:52, Simon Glass wrote: > On 5 February 2015 at 08:42, Bin Meng wrote: >> The codes are actually doing the memory initialization stuff. >> >> Signed-off-by: Bin Meng >> >> --- >> The most ugly codes I've ever seen ... >> There are 252 warnings and 127 checks in this patch

Re: [U-Boot] [RFC PATCH 6/9] x86: quark: Enable the Memory Reference Code build

2015-02-06 Thread Simon Glass
[snip] > I'm happy enough with this. > > Acked-by: Simon Glass Applied to u-boot-x86, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 1/6] x86: quark: Initialize non-standard BARs

2015-02-06 Thread Simon Glass
On 4 February 2015 at 20:26, Simon Glass wrote: > On 4 February 2015 at 01:26, Bin Meng wrote: >> Quark SoC has some non-standard BARs (excluding PCI standard BARs) >> which need be initialized with suggested values. This includes GPIO, >> WDT, RCBA, PCIe ECAM and some ACPI register block base ad

Re: [U-Boot] [PATCH 3/6] x86: pci: Add pci ids for Quark SoC

2015-02-06 Thread Simon Glass
On 4 February 2015 at 20:26, Simon Glass wrote: > On 4 February 2015 at 01:26, Bin Meng wrote: >> Add pci ids for Intel Quark SoC. >> >> Signed-off-by: Bin Meng >> --- >> >> include/pci_ids.h | 4 >> 1 file changed, 4 insertions(+) > > Acked-by: Simon Glass Applied to u-boot-x86, thanks!

Re: [U-Boot] [PATCH 5/6] x86: Add SD/MMC support to quark/galileo

2015-02-06 Thread Simon Glass
On 4 February 2015 at 20:26, Simon Glass wrote: > On 4 February 2015 at 01:26, Bin Meng wrote: >> Intel Galileo board has a microSD slot which is routed from Quark SoC >> SDIO controller. Enable SD/MMC support so that we can use an SD card. >> >> Signed-off-by: Bin Meng >> --- >> >> arch/x86/cp

Re: [U-Boot] [RFC PATCH v2 8/9] dt-bindings: Add Intel Quark MRC bindings

2015-02-06 Thread Simon Glass
On 5 February 2015 at 08:42, Bin Meng wrote: > Add standard dt-bindings macros to be used by Intel Quark MRC node. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass Applied to u-boot-x86, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de http://l

Re: [U-Boot] [PATCH 2/6] x86: galileo: Add GPIO support

2015-02-06 Thread Simon Glass
On 4 February 2015 at 20:26, Simon Glass wrote: > On 4 February 2015 at 01:26, Bin Meng wrote: >> Quark SoC has a legacy GPIO block in the legacy bridge (D0:F31), >> which is just the same one found in other x86 chipset. Since we >> programmed the GPIO register block base address, we should be >>

Re: [U-Boot] [RFC PATCH v2 9/9] x86: quark: Call MRC in dram_init()

2015-02-06 Thread Simon Glass
On 5 February 2015 at 22:23, Simon Glass wrote: > On 5 February 2015 at 08:42, Bin Meng wrote: >> Now that we have added Quark MRC codes, call MRC in dram_init() so >> that DRAM can be initialized on a Quark based board. >> >> Signed-off-by: Bin Meng >> >> --- >> >> Changes in v2: >> - Update co

Re: [U-Boot] [PATCH 4/6] x86: Add SPI support to quark/galileo

2015-02-06 Thread Simon Glass
On 4 February 2015 at 20:26, Simon Glass wrote: > On 4 February 2015 at 01:26, Bin Meng wrote: >> The Quark SoC contains a legacy SPI controller in the legacy bridge >> which is ICH7 compatible. Like Tunnel Creek and BayTrail, the BIOS >> control register offset in the ICH SPI driver is wrong for

Re: [U-Boot] [PATCH 6/6] x86: Add Intel Galileo instructions in README.x86

2015-02-06 Thread Simon Glass
On 4 February 2015 at 20:26, Simon Glass wrote: > On 4 February 2015 at 01:26, Bin Meng wrote: >> Add some instructions about building U-Boot for Intel Galileo board. >> >> Signed-off-by: Bin Meng >> >> --- >> >> doc/README.x86 | 24 >> 1 file changed, 20 insertions(+),

Re: [U-Boot] [PATCH 1/2] bootstage: Fix typos in the comment

2015-02-06 Thread Simon Glass
On 2 February 2015 at 09:19, Simon Glass wrote: > On 2 February 2015 at 06:25, Bin Meng wrote: >> There are two typos in the comment block in bootstage.h, fix them. >> >> Signed-off-by: Bin Meng >> --- >> >> include/bootstage.h | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > > Ac

Re: [U-Boot] [PATCH 2/2] x86: Use tab instead of space to indent in PCIE_ECAM_BASE

2015-02-06 Thread Simon Glass
On 2 February 2015 at 16:58, Simon Glass wrote: > On 2 February 2015 at 06:29, Bin Meng wrote: >> Hi Simon, >> >> On Mon, Feb 2, 2015 at 9:25 PM, Bin Meng wrote: >>> Space is used before 'default' in PCIE_ECAM_BASE in arch/x86/Kconfig >>> so it looks misaligned. Replace the space with tab to ind

Re: [U-Boot] [PATCH] imx: save reset cause in 'reset_cause' environment variable

2015-02-06 Thread Eric Nelson
Hi all, On 02/05/2015 03:57 PM, Eric Nelson wrote: > The cause of a reset is generally useful, and shouldn't be > blindly cleared in the process of displaying it as a part > of the boot announcement. > > Stash the string representation in the environment variable > "reset_cause". > > > > > Sig

Re: [U-Boot] [PATCH] imx: save reset cause in 'reset_cause' environment variable

2015-02-06 Thread Eric Nelson
Hi all, On 02/05/2015 03:58 PM, Eric Nelson wrote: > The cause of a reset is generally useful, and shouldn't be > blindly cleared in the process of displaying it as a part > of the boot announcement. > > > > diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c > index 28ccd29..4a5

Re: [U-Boot] recent tools on FreeBSD

2015-02-06 Thread Andreas Bießmann
Hi, On 06.02.15 20:56, Jeroen Hofstee wrote: > Hello Simon, +Andreas, > > On 06-02-15 04:05, Simon Glass wrote: >> Hi Jeroen, >> >> On 5 February 2015 at 12:51, Jeroen Hofstee wrote: >>> Hello Guilherme, >>> >>> Thanks for commenting on this, >>> >>> On 02/05/15 13:27, Guilherme Maciel Ferreira

Re: [U-Boot] [PATCH v3 08/12] i2c: s3c24x0: reduce transmission status timeout

2015-02-06 Thread Simon Glass
Hi, On 27 January 2015 at 08:44, Przemyslaw Marczak wrote: > Hello, > > On 01/27/2015 04:38 PM, Simon Glass wrote: >> >> Hi, >> >> On 27 January 2015 at 05:36, Przemyslaw Marczak >> wrote: >>> >>> If no device is connected to I2C bus, the i2c probe command >>> can take a lot of time for probe ea

Re: [U-Boot] [PATCH] imx: save reset cause in 'reset_cause' environment variable

2015-02-06 Thread Bill Pringlemeir
> On 02/05/2015 03:58 PM, Eric Nelson wrote: >> The cause of a reset is generally useful, and shouldn't be >> blindly cleared in the process of displaying it as a part >> of the boot announcement. >> >> >> >> diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c >> index 28ccd29..4a5

Re: [U-Boot] recent tools on FreeBSD

2015-02-06 Thread Simon Glass
Hi, On 6 February 2015 at 13:40, Andreas Bießmann wrote: > Hi, > > On 06.02.15 20:56, Jeroen Hofstee wrote: >> Hello Simon, +Andreas, >> >> On 06-02-15 04:05, Simon Glass wrote: >>> Hi Jeroen, >>> >>> On 5 February 2015 at 12:51, Jeroen Hofstee wrote: Hello Guilherme, Thanks for c

[U-Boot] [PATCH] sandbox: Return '-c command' exit value as sandbox exit code

2015-02-06 Thread Joe Hershberger
When a command is passed into sandbox using the '-c' argument the command is run directly. This is most helpful when running tests (such as test-dm.sh). Previously the exit code was an unused enum. Change it to be the actual return code from the command so that the script calling sandbox can know i

Re: [U-Boot] [PATCH] RSA depends on DM

2015-02-06 Thread Simon Glass
On 4 February 2015 at 20:26, Simon Glass wrote: > On 4 February 2015 at 20:16, Chris Kuethe wrote: >> Discovered while experimenting with signature checking on vexpress >> which doesn't typically use DM. >> --- >> Kconfig | 1 + >> 1 file changed, 1 insertion(+) > > Acked-by: Simon Glass Appli

Re: [U-Boot] [PATCH 1/3] dm: Prevent "demo hello" and "demo status" segfaults

2015-02-06 Thread Simon Glass
On 3 February 2015 at 12:23, Peter Tyser wrote: > Hi Simon, > > On Tue, 2015-02-03 at 13:18 -0600, Peter Tyser wrote: >> Segfaults can occur when a mandatory argument is not provided to >> "demo hello" and "demo status". Eg: >> >>=> demo hello >>Segmentation fault (core dumped) >> >> Add

Re: [U-Boot] [PATCH] gpio: omap: Pass correct argument to _get_gpio_direction()

2015-02-06 Thread Simon Glass
On 2 February 2015 at 17:55, Simon Glass wrote: > HI Axel, > > On 31 January 2015 at 07:23, Axel Lin wrote: >> Pass bank rather than bank->base to _get_gpio_direction(). >> >> Signed-off-by: Axel Lin >> --- >> drivers/gpio/omap_gpio.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >>

Re: [U-Boot] [PATCH RFT v2] gpio: at91: Fix getting address of private data

2015-02-06 Thread Simon Glass
On 2 February 2015 at 17:55, Simon Glass wrote: > On 30 January 2015 at 23:47, Axel Lin wrote: >> Use dev_get_priv() rather than dev_get_platdata() to get correct address of >> private data. >> >> Signed-off-by: Axel Lin >> --- >> v2: Fix an obvious typo in subject line (s/addres/address). >> d

Re: [U-Boot] [PATCH v3 08/12] i2c: s3c24x0: reduce transmission status timeout

2015-02-06 Thread Simon Glass
On 6 February 2015 at 13:48, Simon Glass wrote: > Hi, > > On 27 January 2015 at 08:44, Przemyslaw Marczak wrote: >> Hello, >> >> On 01/27/2015 04:38 PM, Simon Glass wrote: >>> >>> Hi, >>> >>> On 27 January 2015 at 05:36, Przemyslaw Marczak >>> wrote: If no device is connected to I2C bu

Re: [U-Boot] [RFC] m68k: generic board

2015-02-06 Thread Angelo Dureghello
On 06/02/2015 17:02, Tom Rini wrote: On Mon, Jan 26, 2015 at 09:39:13AM +, Huan Wang wrote: Hi, Tom, On Thu, Jan 15, 2015 at 04:08:40PM +0100, Angelo Dureghello wrote: Dear all, i would like to post a patch with the m68k generic board support, tested and working here, but of course not

[U-Boot] Samsung patches

2015-02-06 Thread Simon Glass
Hi, I see quite a few series sitting around to be applied, including the Peach Pi display which is still waiting. Any news please? Thanks, Simon ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

  1   2   >