[U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-04-28 Thread Peng Fan
This commit "2bb014820c49a63902103bac710bc86b5772e843" do some clean up to use the code in lib/time.c. But usec2ticks is still being used by security related job ring code. Bring back the function to avoid build break. Signed-off-by: Peng Fan Cc: Stefano Babic

Re: [U-Boot] [PATCH] omap3: Reduce logic/overo SPL max image size

2016-04-28 Thread Tom Rini
On Thu, Apr 28, 2016 at 05:55:17PM -0500, Adam Ford wrote: > I am hoping to look at this tomorrow at work. Any suggested toolchain you > recommend? gcc-4.9.x fails (too large), gcc-5.3.x succeeds, gcc-6.x is also likely fine but I haven't started using those SDKs I just made today. -- Tom

[U-Boot] [PATCH] dm: allow setting driver_data before/during bind

2016-04-28 Thread Stephen Warren
From: Stephen Warren This will allow a driver's bind function to use the driver data. One example is the Tegra186 GPIO driver, which instantiates child devices for each of its GPIO ports, yet supports two different HW instances each with a different set of ports, and

Re: [U-Boot] [PATCH] omap3: Reduce logic/overo SPL max image size

2016-04-28 Thread Adam Ford
I am hoping to look at this tomorrow at work. Any suggested toolchain you recommend? On Apr 28, 2016 5:45 PM, "Tom Rini" wrote: > On Wed, Apr 27, 2016 at 06:46:36PM -0400, Tom Rini wrote: > > > While the OMAP3 has 64KiB of SRAM, per the TRM the download area is only > > from

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-04-28 Thread Marek Vasut
On 04/28/2016 03:04 PM, Diego wrote: > In data mercoledì 27 aprile 2016 18:13:51, Marek Vasut ha scritto: >> >> OK, I have to two identical sticks and neither has the same USB ID as >> yours. Can you do lsusb -vvv -d 0951:1689 ? > > Hi Marek, > > thanks for taking the time to look into this. >

[U-Boot] [PATCH 3/3] ARM: mx6: Enable MMC and SATA extfs boot support

2016-04-28 Thread Marek Vasut
Enable support for booting U-Boot image from ext filesystem when either SD/MMC or SATA support is compiled into the SPL. This will allow easy transition from loading U-Boot image from ad-hoc offset on the card to loading U-Boot image from the filesystem. VFAT support is intently not enabled. The

[U-Boot] [PATCH 2/3] SPL: Add CONFIG_SPL_ABORT_ON_RAW_IMAGE

2016-04-28 Thread Marek Vasut
When defined, SPL will proceed to another boot method if the image it has loaded does not have a signature. This is useful if the subsequent boot methods are much more complex. Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Stefano Babic Cc: Peng

Re: [U-Boot] Please pull u-boot-sunxi master

2016-04-28 Thread Tom Rini
On Thu, Apr 28, 2016 at 04:42:15PM +0200, Hans de Goede wrote: > Hi Tom, > > Here is a bug-fix sunxi pull-req for v2016.05 containing 2 bug-fixes. > > The following changes since commit e25b369c048b51b1feb79587750e7e160fc0bd73: > > ARM64: zynqmp: Cleanup config file after CMD move

[U-Boot] [PATCH 1/3] SPL: Let spl_parse_image_header() return value

2016-04-28 Thread Marek Vasut
Allow the spl_parse_image_header() to return value. This is convenient for controlling the SPL boot flow if the loaded image is corrupted. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic

Re: [U-Boot] [PATCH] omap3: Reduce logic/overo SPL max image size

2016-04-28 Thread Tom Rini
On Wed, Apr 27, 2016 at 06:46:36PM -0400, Tom Rini wrote: > While the OMAP3 has 64KiB of SRAM, per the TRM the download area is only > from 0x4020 to 0x4020F000 and exceeding that will cause failure to > boot. Further, we need to make sure that we don't run into > SRAM_SCRATCH_SPACE_ADDR as

Re: [U-Boot] [PATCH] ARM: mx6: Enable MMC FS boot support

2016-04-28 Thread Marek Vasut
On 04/28/2016 09:02 PM, Tom Rini wrote: > On Thu, Apr 28, 2016 at 08:29:47PM +0200, Marek Vasut wrote: >> On 04/28/2016 08:06 PM, Tom Rini wrote: >>> On Thu, Apr 28, 2016 at 03:40:45PM +0200, Marek Vasut wrote: On 04/28/2016 03:36 PM, Stefano Babic wrote: > Hi Marek, > > On

[U-Boot] [PATCH v6 4/4] arm: meson: implement calls to secure monitor

2016-04-28 Thread Beniamino Galvani
Implement calls to secure monitor to read the MAC address from e-fuse. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/sm.h | 12 +++ arch/arm/mach-meson/Makefile | 2 +- arch/arm/mach-meson/board.c| 1 +

[U-Boot] [PATCH v6 3/4] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-28 Thread Beniamino Galvani
This adds platform code for the Amlogic Meson GXBaby (S905) SoC and a board definition for ODROID-C2. This initial submission only supports UART and Ethernet (through the existing Designware driver). DTS files are the ones submitted to Linux arm-soc for 4.7 [1]. [1]

[U-Boot] [PATCH v6 2/4] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-28 Thread Beniamino Galvani
All members of the DMA descriptor must be 32-bit, even on 64-bit architectures: change the type to u32 to ensure this. Also, fix other warnings. Signed-off-by: Beniamino Galvani Acked-by: Joe Hershberger --- drivers/net/designware.c | 59

[U-Boot] [PATCH v6 1/4] arm: implement generic PSCI reset call for armv8

2016-04-28 Thread Beniamino Galvani
Add a psci_system_reset() which calls the SYSTEM_RESET function of PSCI 0.2 and can be used by boards that support it to implement reset_cpu(). Signed-off-by: Beniamino Galvani --- arch/arm/cpu/armv8/fwcall.c | 16 arch/arm/include/asm/psci.h | 17

[U-Boot] [PATCH v6 0/4] Amlogic Meson GXBaby and ODROID-C2 support

2016-04-28 Thread Beniamino Galvani
Hi, this series adds a very basic support for Amlogic S905 SoC (GXBaby) and for the ODROID-C2 board [1], and is based on u-boot sources available from the board vendor [2]. At the moment the only supported devices are the integrated UART and Ethernet adapter. Changes since v5: - used default

[U-Boot] [PATCH] fdt: fix dev_get_addr_name node offset

2016-04-28 Thread Stephen Warren
From: Stephen Warren Use the device's own DT offset, not the device's parent's. Fixes: 43c4d44e3330 ("fdt: implement dev_get_addr_name()") Signed-off-by: Stephen Warren --- drivers/core/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [U-Boot] Fwd: change the relocate address of u-boot

2016-04-28 Thread Tom Rini
On Thu, Apr 28, 2016 at 08:41:38PM +0200, Marwa Hamza wrote: > -- Forwarded message -- > From: Tom Rini > Date: 2016-04-28 20:08 GMT+02:00 > Subject: Re: [U-Boot] change the relocate address of u-boot > To: Marwa Hamza > Cc:

Re: [U-Boot] register polling from HUSH parser?

2016-04-28 Thread Wolfgang Denk
Dear Masahiro, In message you wrote: > > Yes, it really helped me. > Thank you! You are welcome. > I think itest.l works as expected on 32bit architecture, > but the problem is that sizeof(unsigned long) is 8 > on 64bit

Re: [U-Boot] [PATCH v2 27/27] RFC: sunxi: Enable SPL FIT support

2016-04-28 Thread Tom Rini
On Thu, Apr 28, 2016 at 03:12:19PM +0200, Michal Simek wrote: > On 28.4.2016 15:07, Tom Rini wrote: > > On Thu, Apr 28, 2016 at 11:44:50AM +0200, Michal Simek wrote: > >> Hi Simon and Tom, > >> > >> On 23.2.2016 06:55, Simon Glass wrote: > >>> Enable SPL FIT support for the Linksprite pcDuino3 as

Re: [U-Boot] [PATCH] ARM: mx6: Enable MMC FS boot support

2016-04-28 Thread Tom Rini
On Thu, Apr 28, 2016 at 08:29:47PM +0200, Marek Vasut wrote: > On 04/28/2016 08:06 PM, Tom Rini wrote: > > On Thu, Apr 28, 2016 at 03:40:45PM +0200, Marek Vasut wrote: > >> On 04/28/2016 03:36 PM, Stefano Babic wrote: > >>> Hi Marek, > >>> > >>> On 28/04/2016 13:03, Marek Vasut wrote: > On

[U-Boot] [PATCH] ARM: fix ifdefs in ARMv8 lowlevel_init()

2016-04-28 Thread Stephen Warren
From: Stephen Warren Commit 724219a65f55 "ARM: always perform per-CPU GIC init" removed some ifdefs to unify the MULTIENTRY-vs-non-MULTIENTRY paths. However, the wrong endif was removed. This patch adds back that missing endif, and adds a new ifdef to match the endif the

Re: [U-Boot] [PATCH] ARM: mx6: Enable MMC FS boot support

2016-04-28 Thread Marek Vasut
On 04/28/2016 08:06 PM, Tom Rini wrote: > On Thu, Apr 28, 2016 at 03:40:45PM +0200, Marek Vasut wrote: >> On 04/28/2016 03:36 PM, Stefano Babic wrote: >>> Hi Marek, >>> >>> On 28/04/2016 13:03, Marek Vasut wrote: On 04/28/2016 07:59 AM, Stefano Babic wrote: > Hi Marek, > > On

Re: [U-Boot] change the relocate address of u-boot

2016-04-28 Thread Tom Rini
On Thu, Apr 28, 2016 at 02:47:21PM +0100, Marwa Hamza wrote: > hey > i 'm trying to start a whole system on qemu (kernel , > bootloader,filesystem) and i need to change the relocate address , so i'm > wondering if there is a patch to change this address 0x1000 You need to provide a lot more

Re: [U-Boot] [PATCH] ARM: mx6: Enable MMC FS boot support

2016-04-28 Thread Tom Rini
On Thu, Apr 28, 2016 at 03:40:45PM +0200, Marek Vasut wrote: > On 04/28/2016 03:36 PM, Stefano Babic wrote: > > Hi Marek, > > > > On 28/04/2016 13:03, Marek Vasut wrote: > >> On 04/28/2016 07:59 AM, Stefano Babic wrote: > >>> Hi Marek, > >>> > >>> On 28/04/2016 04:24, Peng Fan wrote: > Hi

[U-Boot] [RFC PATCH] zynq: add support for on-board shared reset gpio

2016-04-28 Thread Andrea Merello
I'm adding support [1] for another zynq-based board (MYIR Zturn [2]). This board has one peculiarity that I have to deal with: it has a shared reset signal that hits both the USB PHY and the Ethernet PHY, and this is routed to a GPIO that must be shaken down and up before using those two

[U-Boot] change the relocate address of u-boot

2016-04-28 Thread Marwa Hamza
hey i 'm trying to start a whole system on qemu (kernel , bootloader,filesystem) and i need to change the relocate address , so i'm wondering if there is a patch to change this address 0x1000 regards marwa ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v2] kbuild: Do not append dtb for OF_EMBED case

2016-04-28 Thread Simon Glass
On 28 April 2016 at 01:08, Michal Simek wrote: > > dtb is already included in binary that's why there is no need to replace > u-boot-spl.bin with u-boot-spl-dtb.bin. This is only needed for > OF_SEPARATE is enabled. Only copy -nodtb.bin version which is straight > output

Re: [U-Boot] [RFC PATCH] dm: ensure device names are unique

2016-04-28 Thread Stephen Warren
On 04/27/2016 10:42 PM, Joe Hershberger wrote: On Tue, Apr 26, 2016 at 4:30 PM, Stephen Warren wrote: From: Stephen Warren It is possible for HW to contain multiple instances of the same device. In this case, the name passed to device_bind() may not

Re: [U-Boot] [RFC PATCH] dm: ensure device names are unique

2016-04-28 Thread Stephen Warren
On 04/27/2016 10:50 PM, Simon Glass wrote: Hi Stephen, On 26 April 2016 at 15:30, Stephen Warren wrote: > It is possible for HW to contain multiple instances of the same device. In > this case, the name passed to device_bind() may not be unique across all > devices within its uclass. One

[U-Boot] Please pull: u-boot-video/master

2016-04-28 Thread Anatolij Gustschin
Hi Tom, recent change to the am335x-fb driver caused a bug, these to patches fix it now. We got Tested-by tags for them, so it should be okay to merge these fixes for the release. Please pull. Thanks! Anatolij The following changes since commit e25b369c048b51b1feb79587750e7e160fc0bd73:

Re: [U-Boot] [PATCH v3 1/2] drivers/video/am335x-fb: Add support for 16bpp format

2016-04-28 Thread Anatolij Gustschin
On Wed, 27 Apr 2016 21:39:15 +0200 Martin Pietryka martin.pietr...@chello.at wrote: > To support 16bpp we just need to change the raster_ctrl register > accordingly. Also 32bpp mode should work as well, but was not tested. > According to the TRM the uppermost byte will be ignored when >

Re: [U-Boot] [PATCH v3 2/2] drivers/video/am335x-fb: Properly point framebuffer behind palette

2016-04-28 Thread Anatolij Gustschin
On Wed, 27 Apr 2016 21:39:16 +0200 Martin Pietryka martin.pietr...@chello.at wrote: > The DMA was outputting the palette on the screen because the base > for the DMA was not after the palette. In addition to that, the ceiling was > also too high, this led that the output on the screen was

Re: [U-Boot] [PATCH] video: ipu_common: fix build error

2016-04-28 Thread Anatolij Gustschin
Hi Stefano, On Thu, 28 Apr 2016 16:29:43 +0200 Stefano Babic sba...@denx.de wrote: ... > Applied to u-boot-imx, thanks ! Thanks! -- Anatolij ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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

2016-04-28 Thread Hans de Goede
Hi Tom, Here is a bug-fix sunxi pull-req for v2016.05 containing 2 bug-fixes. The following changes since commit e25b369c048b51b1feb79587750e7e160fc0bd73: ARM64: zynqmp: Cleanup config file after CMD move (2016-04-26 10:16:10 -0400) are available in the git repository at:

Re: [U-Boot] [PATCH v2] kbuild: Do not append dtb for OF_EMBED case

2016-04-28 Thread Masahiro Yamada
2016-04-28 16:08 GMT+09:00 Michal Simek : > dtb is already included in binary that's why there is no need to replace > u-boot-spl.bin with u-boot-spl-dtb.bin. This is only needed for > OF_SEPARATE is enabled. Only copy -nodtb.bin version which is straight > output from

Re: [U-Boot] [PATCH] video: ipu_common: fix build error

2016-04-28 Thread Stefano Babic
On 28/04/2016 16:20, Peter Robinson wrote: > On Thu, Apr 28, 2016 at 3:07 AM, Peng Fan wrote: >> Some toolchains fail to build >> "clk->rate = (u64)(clk->parent->rate * 16) / div;" >> And the cast usage is wrong. >> >> Use the following code to fix the issue, >> " >>

Re: [U-Boot] [PATCH] video: ipu_common: fix build error

2016-04-28 Thread Peter Robinson
On Thu, Apr 28, 2016 at 3:07 AM, Peng Fan wrote: > Some toolchains fail to build > "clk->rate = (u64)(clk->parent->rate * 16) / div;" > And the cast usage is wrong. > > Use the following code to fix the issue, > " > do_div(parent_rate, div); > clk->rate = parent_rate; >

Re: [U-Boot] [PATCH v3 1/2] spl: Add an option to load a FIT containing U-Boot from FS

2016-04-28 Thread Michal Simek
Hi, 2016-04-20 16:41 GMT+02:00 Simon Glass : > On 13 April 2016 at 23:15, Lokesh Vutla wrote: > > This provides a way to load a FIT containing U-Boot and a selection of > device > > tree files from a File system. > > > > Signed-off-by: Lokesh Vutla

Re: [U-Boot] [PATCH] ARM: mx6: Enable MMC FS boot support

2016-04-28 Thread Marek Vasut
On 04/28/2016 03:36 PM, Stefano Babic wrote: > Hi Marek, > > On 28/04/2016 13:03, Marek Vasut wrote: >> On 04/28/2016 07:59 AM, Stefano Babic wrote: >>> Hi Marek, >>> >>> On 28/04/2016 04:24, Peng Fan wrote: Hi Marek, On Thu, Apr 28, 2016 at 01:06:07AM +0200, Marek Vasut wrote:

Re: [U-Boot] [PATCH v2 03/15] arm: Kconfig: Add support for AM43xx SoC specific Kconfig

2016-04-28 Thread Andreas Dannenberg
Hi Heiko, let me chime in here and address some of your points... On Thu, Apr 28, 2016 at 06:29:31AM +0200, Heiko Schocher wrote: > Hello Daniel, > > Am 27.04.2016 um 22:09 schrieb Daniel Allred: > >From: Madan Srinivas > > > >Adding support for AM43xx secure devices require the

Re: [U-Boot] [PATCH] arm: socfpga: Add samtec VIN|ING board

2016-04-28 Thread Dinh Nguyen
On 04/27/2016 06:49 PM, Marek Vasut wrote: >> >> With my patch[1], you don't need all of those common configs, all you >> need is: >> >> #define CONFIG_CMD_DFU >> #define CONFIG_CMD_USB >> #define CONFIG_CMD_USB_MASS_STORAGE > > Well since there are changes in that, are you fine if I pick this

Re: [U-Boot] [PATCH] ARM: mx6: Enable MMC FS boot support

2016-04-28 Thread Stefano Babic
Hi Marek, On 28/04/2016 13:03, Marek Vasut wrote: > On 04/28/2016 07:59 AM, Stefano Babic wrote: >> Hi Marek, >> >> On 28/04/2016 04:24, Peng Fan wrote: >>> Hi Marek, >>> >>> On Thu, Apr 28, 2016 at 01:06:07AM +0200, Marek Vasut wrote: Enable support for booting U-Boot image from filesystem

[U-Boot] Introduce clk framework

2016-04-28 Thread Peng Fan
Hi, Since we are moving towards to use dtb and driver model, we still lack of a clk framework. I just have an idea to introduce linux clk framework to u-boot, then in driver code, we can do as linux "clk_enable/clk_disable/clk_set_freq". I'd like to hear more voice on clk framework before I

Re: [U-Boot] [PATCH v2 27/27] RFC: sunxi: Enable SPL FIT support

2016-04-28 Thread Michal Simek
On 28.4.2016 15:07, Tom Rini wrote: > On Thu, Apr 28, 2016 at 11:44:50AM +0200, Michal Simek wrote: >> Hi Simon and Tom, >> >> On 23.2.2016 06:55, Simon Glass wrote: >>> Enable SPL FIT support for the Linksprite pcDuino3 as an example of how this >>> feature is used. >>> >>> This is only for

Re: [U-Boot] [PATCH] usb: dwc2: Init desc_before_addr

2016-04-28 Thread Marek Vasut
On 04/28/2016 08:16 AM, Stefan Roese wrote: > On 26.04.2016 03:08, Marek Vasut wrote: >> Initialize desc_before_addr, otherwise the USB core won't send the >> first 64B Get Device Descriptor request in common/usb.c function >> usb_setup_descriptor() . There are some USB devices which expect >>

Re: [U-Boot] [PATCH v2 27/27] RFC: sunxi: Enable SPL FIT support

2016-04-28 Thread Tom Rini
On Thu, Apr 28, 2016 at 11:44:50AM +0200, Michal Simek wrote: > Hi Simon and Tom, > > On 23.2.2016 06:55, Simon Glass wrote: > > Enable SPL FIT support for the Linksprite pcDuino3 as an example of how this > > feature is used. > > > > This is only for demonstration purposes and is not to be

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-04-28 Thread Diego
In data mercoledì 27 aprile 2016 18:13:51, Marek Vasut ha scritto: > > OK, I have to two identical sticks and neither has the same USB ID as > yours. Can you do lsusb -vvv -d 0951:1689 ? Hi Marek, thanks for taking the time to look into this. Here you are: # lsusb -vvv -d 0951:1689 Bus 003

Re: [U-Boot] [PATCH] video: ipu_common: fix build error

2016-04-28 Thread Tom Rini
On Thu, Apr 28, 2016 at 10:07:53AM +0800, Peng Fan wrote: > Some toolchains fail to build > "clk->rate = (u64)(clk->parent->rate * 16) / div;" > And the cast usage is wrong. > > Use the following code to fix the issue, > " > do_div(parent_rate, div); > clk->rate = parent_rate; > " > >

Re: [U-Boot] [PATCH v6 4/7] net: phy: ti: Allow the driver to be more configurable

2016-04-28 Thread Dan Murphy
Michal On 04/28/2016 01:26 AM, Michal Simek wrote: > Hi Joe, > > On 28.4.2016 06:52, Joe Hershberger wrote: >> On Wed, Apr 27, 2016 at 10:46 AM, Dan Murphy wrote: >>> Joe >>> >>> On 04/26/2016 04:44 PM, Joe Hershberger wrote: On Mon, Apr 25, 2016 at 4:35 PM, Joe Hershberger

Re: [U-Boot] [PATCH] ARM: mx6: Enable MMC FS boot support

2016-04-28 Thread Marek Vasut
On 04/28/2016 07:59 AM, Stefano Babic wrote: > Hi Marek, > > On 28/04/2016 04:24, Peng Fan wrote: >> Hi Marek, >> >> On Thu, Apr 28, 2016 at 01:06:07AM +0200, Marek Vasut wrote: >>> Enable support for booting U-Boot image from filesystem instead of some >>> random offset on the SD card. This

Re: [U-Boot] [PATCH] ARM: mx6: Enable MMC FS boot support

2016-04-28 Thread Tom Rini
On Wed, Apr 27, 2016 at 08:06:24PM -0500, Robert Nelson wrote: > On Wed, Apr 27, 2016 at 7:54 PM, Tom Rini wrote: > > > On Thu, Apr 28, 2016 at 02:02:05AM +0200, Marek Vasut wrote: > > > On 04/28/2016 01:49 AM, Robert Nelson wrote: > > [snip] > > > > 1: > > > > > > > > Yeap,

[U-Boot] mkimage needs fitImage

2016-04-28 Thread shr ch
Hi, For adding public keys to uboot dtb the mkimage step is mkimage -D "-I dts -O dtb -p 2000" -F -k keys -K u-boot.dtb -r fitImage It resigns fitImage and adds public key to uboot dtb but why do we need fitImage for adding public keys to uboot dtb ? can't this be two different steps ? there

[U-Boot] [PATCH v3 12/12] defconfig: dra74_evm: enable eth driver model

2016-04-28 Thread Mugunthan V N
Enable eth driver model for dra74_evm as cpsw supports driver model. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini Acked-by: Joe Hershberger --- configs/dra74_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v3 11/12] defconfig: am437x_sk_evm: enable eth driver model

2016-04-28 Thread Mugunthan V N
Enable eth driver model for am437x_sk_evm as cpsw supports driver model. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini Acked-by: Joe Hershberger --- configs/am437x_sk_evm_defconfig | 1 + 1 file changed, 1 insertion(+)

[U-Boot] [PATCH v3 10/12] defconfig: am437x_gp_evm: enable eth driver model

2016-04-28 Thread Mugunthan V N
Enable eth driver model for am437x_gp_evm as cpsw supports driver model. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini Acked-by: Joe Hershberger --- configs/am437x_gp_evm_defconfig | 1 + 1 file changed, 1 insertion(+)

[U-Boot] [PATCH v3 07/12] arm: dts: am4372: add syscon node to cpsw to read mac address

2016-04-28 Thread Mugunthan V N
Add syscon node to cpsw device node to read mac address from efuse. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini Acked-by: Joe Hershberger --- arch/arm/dts/am4372.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v3 09/12] arm: dts: dra7: fix ethernet name with proper device address

2016-04-28 Thread Mugunthan V N
Fix typo error for cpsw device name with proper device address Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini Acked-by: Joe Hershberger --- arch/arm/dts/dra7.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH v3 06/12] drivers: net: cpsw: add support for reading mac address from efuse

2016-04-28 Thread Mugunthan V N
Different TI platforms has to read with different combination to get the mac address from efuse. So add support to read mac address based on machine/device compatibles. The code is taken from Linux drivers/net/ethernet/ti/cpsw-common.c done by Tony Lindgren. Signed-off-by: Mugunthan V N

[U-Boot] [PATCH v3 05/12] drivers: net: cpsw: fix get mdio base and gmii_sel reg from DT

2016-04-28 Thread Mugunthan V N
Since dra7x platforms address bus is define as 64 bits to support LAPE, fdtdec_get_addr() returns a invalid address for mdio based and gmii_sel register address. Fixing this by using fdtdec_get_addr_size_auto_noparent() which will derive address cell and size cell from its parent. Signed-off-by:

[U-Boot] [PATCH v3 08/12] arm: dts: dra7: add syscon node to cpsw to read mac address

2016-04-28 Thread Mugunthan V N
Add syscon node to cpsw device node to read mac address from efuse. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini Acked-by: Joe Hershberger --- arch/arm/dts/dra7.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v3 04/12] ARM: omap5: add platform specific ethernet phy modes configurations

2016-04-28 Thread Mugunthan V N
Add platforms specific phy mode configuration bits to be used to configure phy mode in control module. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini Acked-by: Joe Hershberger --- arch/arm/include/asm/arch-omap5/cpu.h | 12

[U-Boot] [PATCH v3 03/12] drivers: net: cpsw: fix cpsw dp parse when num slaves as 1

2016-04-28 Thread Mugunthan V N
On some boards number of slaves can be 1 when only one port ethernet is pinned out. So do not break when slave_index and num slaves check fails, instead continue to parse the next child. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini Acked-by: Joe

[U-Boot] [PATCH v3 02/12] ti_omap5_common: eth: do not define DM_ETH for spl

2016-04-28 Thread Mugunthan V N
Since omap's spl doesn't support DM currently, do not define DM_ETH for spl build. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass Reviewed-by: Tom Rini Acked-by: Joe Hershberger ---

[U-Boot] [PATCH v3 00/12] cpsw: enable DM_ETH on dra74 and am437x evms

2016-04-28 Thread Mugunthan V N
This series adds the following * Enable DM_ETH on dra74, am437x gp and am437x sk evms. * Add support to verify of_is_device_conpatible() based on linux implementation * Fix an issue in fdtdec get addr for address and size cell length Changes from initial version: * removed 02/11 fix size cell

[U-Boot] [PATCH v3 01/12] drivers: core: device: add support to check dt compatible for a device/machine

2016-04-28 Thread Mugunthan V N
Provide an api to check whether the given device or machine is compatible with the given compat string which helps in making decisions in drivers based on device or machine compatible. Idea taken from Linux. Signed-off-by: Mugunthan V N Reviewed-by: Joe Hershberger

Re: [U-Boot] [PATCH v2 27/27] RFC: sunxi: Enable SPL FIT support

2016-04-28 Thread Michal Simek
Hi Simon and Tom, On 23.2.2016 06:55, Simon Glass wrote: > Enable SPL FIT support for the Linksprite pcDuino3 as an example of how this > feature is used. > > This is only for demonstration purposes and is not to be applied. > Signed-off-by: Simon Glass > --- > > Changes in

[U-Boot] [RFC PATCH] SPL: FIT: Enable SPL_FIT_LOAD for sd bootmode for fat partions

2016-04-28 Thread Michal Simek
Support U-Boot SPL to load FIT image from fat partition. Fit image can be setup via CONFIG_SPL_FS_LOAD_KERNEL_NAME. Falcon mode is not supported. Signed-off-by: Michal Simek --- common/spl/spl_fat.c | 50 -- fs/fat/fat.c

Re: [U-Boot] [PATCH v2 10/12] defconfig: am437x_gp_evm: enable eth driver model

2016-04-28 Thread Mugunthan V N
On Thursday 28 April 2016 10:03 AM, Joe Hershberger wrote: > On Wed, Apr 27, 2016 at 1:37 AM, Mugunthan V N wrote: >> On Wednesday 27 April 2016 03:08 AM, Joe Hershberger wrote: >>> On Mon, Apr 25, 2016 at 5:01 PM, Joe Hershberger >>> wrote:

[U-Boot] [RFC PATCH] SPL: FIT: Enable SPL_FIT_LOAD in RAM based boot mode

2016-04-28 Thread Michal Simek
Support loading FIT in SPL for RAM bootmode. CONFIG_SPL_LOAD_FIT_ADRESS points to address where FIT image is stored in memory. Signed-off-by: Michal Simek --- Not sure if solution with CONFIG_SPL_LOAD_FIT_ADDRESS is accepted. But it should be out of TEXT_BASE. ---

[U-Boot] [RFC PATCH] SPL: FIT: Align loading address for header

2016-04-28 Thread Michal Simek
If bl_len is not aligned it can caused a problem because another code expects that start is aligned. Signed-off-by: Michal Simek --- Not sure if this is the right way how to ensure it. But patch is pointing to the problem. For example if bl_len is 1. ---

Re: [U-Boot] [PATCH 1/3] i2c: Add entry for Designware I2C driver in Kconfig

2016-04-28 Thread Bin Meng
On Thu, Apr 28, 2016 at 3:47 PM, Stefan Roese wrote: > This patch adds an entry for the Designware I2C driver in Kconfig. > > Signed-off-by: Stefan Roese > Cc: Heiko Schocher > --- > drivers/i2c/Kconfig | 8 > 1 file changed, 8 insertions(+) >

[U-Boot] [PATCH 3/3] i2c: Select SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED for SPEAr

2016-04-28 Thread Stefan Roese
The DW I2C controller in the SPEAr SoCs doesn't support the enable status register check. This patch selects SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED for these boards. Signed-off-by: Stefan Roese Cc: Heiko Schocher --- drivers/i2c/Kconfig | 10 ++ 1 file

[U-Boot] [PATCH 2/3] i2c: config: Move SYS_I2C_DW to Kconfig

2016-04-28 Thread Stefan Roese
This patch moves all appearances of CONFIG_SYS_I2C_DW from the config header to the defconfig files. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Alexey Brodkin --- configs/axs101_defconfig | 1 + configs/axs103_defconfig

[U-Boot] [PATCH 1/3] i2c: Add entry for Designware I2C driver in Kconfig

2016-04-28 Thread Stefan Roese
This patch adds an entry for the Designware I2C driver in Kconfig. Signed-off-by: Stefan Roese Cc: Heiko Schocher --- drivers/i2c/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 9324c6c..48ab486

[U-Boot] [PATCH v2] kbuild: Do not append dtb for OF_EMBED case

2016-04-28 Thread Michal Simek
dtb is already included in binary that's why there is no need to replace u-boot-spl.bin with u-boot-spl-dtb.bin. This is only needed for OF_SEPARATE is enabled. Only copy -nodtb.bin version which is straight output from objcopy -O binary. Signed-off-by: Michal Simek ---

[U-Boot] [PATCH 0/4] ARM: uniphier: some fixes for U-Boot v2016.05

2016-04-28 Thread Masahiro Yamada
Masahiro Yamada (4): ARM: uniphier: fix boot mode table of PH1-LD20 ARM: uniphier: enable Peripherl clock to use UART in SPL ARM: uniphier: allow to use System Bus for ROM boot mode of PH1-LD20 ARM: uniphier: move pin-mux code into pin_init function

[U-Boot] [PATCH 1/4] ARM: uniphier: fix boot mode table of PH1-LD20

2016-04-28 Thread Masahiro Yamada
PH1-LD20 does not have the dedicated boot swap select latch. Instead, it is controlled from the boot mode select. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/boot-mode/boot-mode-ld20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH 2/4] ARM: uniphier: enable Peripherl clock to use UART in SPL

2016-04-28 Thread Masahiro Yamada
This is needed to use UART on SPL. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/early-clk/early-clk-ld20.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-uniphier/early-clk/early-clk-ld20.c

[U-Boot] [PATCH 3/4] ARM: uniphier: allow to use System Bus for ROM boot mode of PH1-LD20

2016-04-28 Thread Masahiro Yamada
The System Bus is not available by default on the ROM boot mode of PH1-LD20. To use devices connected to the System Bus, such as the Micro Support Card, it is necessary to set up pin-muxing and some System Bus Controller register. Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH 4/4] ARM: uniphier: move pin-mux code into pin_init function

2016-04-28 Thread Masahiro Yamada
The code in uniphier_sld3_sbc_init() is pin-muxing, so it would be a better fit in uniphier_sld3_early_pin_init(). Signed-off-by: Masahiro Yamada --- .../mach-uniphier/early-pinctrl/early-pinctrl-sld3.c| 2 ++ arch/arm/mach-uniphier/init.h

Re: [U-Boot] [PATCH v6 4/7] net: phy: ti: Allow the driver to be more configurable

2016-04-28 Thread Michal Simek
Hi Joe, On 28.4.2016 06:52, Joe Hershberger wrote: > On Wed, Apr 27, 2016 at 10:46 AM, Dan Murphy wrote: >> Joe >> >> On 04/26/2016 04:44 PM, Joe Hershberger wrote: >>> On Mon, Apr 25, 2016 at 4:35 PM, Joe Hershberger >>> wrote: On Fri, Apr 15,

Re: [U-Boot] [PATCH] kbuild: Do not append dtb for OF_EMBED case

2016-04-28 Thread Michal Simek
Hi Masahiro, On 28.4.2016 07:54, Masahiro Yamada wrote: > Hi Michal, > (+cc Simon) > > 2016-04-27 21:28 GMT+09:00 Michal Simek : >> dtb is already included in binary that's why there is no need to replace >> u-boot-spl.bin with u-boot-spl-dtb.bin. This is only needed for

Re: [U-Boot] [PATCH] i2c: designware_i2c: Optionally check enable status register

2016-04-28 Thread Heiko Schocher
Hello Stefan, Am 28.04.2016 um 08:10 schrieb Stefan Roese: Hi Heiko, On 28.04.2016 08:06, Heiko Schocher wrote: Am 27.04.2016 um 09:02 schrieb Stefan Roese: Some platforms don't implement the enable status register at offset 0x9c. The SPEAr600 platform is one of them. The recently added

[U-Boot] [Patch v2] fsl-layerscape: fdt: add IFC fixup if no IFC is avaliable in U-Boot

2016-04-28 Thread Gong Qianyu
IFC is considered as a required component in Layerscape platforms' Linux. But if IFC is not enabled in U-Boot on some boards, accessing IFC memory space would cause kernel call trace. So disable IFC node in such cases. Signed-off-by: Gong Qianyu --- V2: - Revised the title

Re: [U-Boot] [PATCH 4/4] ARM: socfpga: Disable USB OC protection on SoCrates

2016-04-28 Thread Stefan Roese
On 27.04.2016 15:24, Marek Vasut wrote: This is mandatory, otherwise the USB does not work. Signed-off-by: Marek Vasut Cc: Stefan Roese Cc: Dinh Nguyen Tested-by: Stefan Roese Thanks, Stefan

Re: [U-Boot] [PATCH 3/4] usb: dwc2: Make OC protection configurable

2016-04-28 Thread Stefan Roese
On 27.04.2016 15:24, Marek Vasut wrote: Introduce a new flag in the controller private data, which allows selectively disabling the OC protection. Use the standard 'disable-over-current' OF prop to set this flag. This OC protection must be disabled on EBV SoCrates rev 1. Signed-off-by: Marek

[U-Boot] [PATCH] test, tools: update tbot documentation

2016-04-28 Thread Heiko Schocher
update tbot documentation in U-Boot, as I just merged the event system into tbots master branch. Signed-off-by: Heiko Schocher --- Infos about tbots event system: https://github.com/hsdenx/tbot/blob/master/doc/README.event A demo result webpage of playing with the event system can

Re: [U-Boot] [PATCH 2/4] usb: dwc2: Pull Ext VBUS macro from dwc_otg_core_init()

2016-04-28 Thread Stefan Roese
On 27.04.2016 15:24, Marek Vasut wrote: Introduce a boolean flag in the dwc2 controller private data and set it according to the macro (for now) instead of having this macro directly in the dwc_otg_core_init(). This will let us configure the flag from DT or such later on, if needed.

Re: [U-Boot] [PATCH 1/4] usb: dwc2: Pass private data into dwc_otg_core_init()

2016-04-28 Thread Stefan Roese
On 27.04.2016 15:24, Marek Vasut wrote: Pass the whole bulk of private data instead of just the regs, since the private data will soon contain important configuration flags. Signed-off-by: Marek Vasut Cc: Stefan Roese Cc: Dinh Nguyen

Re: [U-Boot] [PATCH] usb: dwc2: Init desc_before_addr

2016-04-28 Thread Stefan Roese
On 26.04.2016 03:08, Marek Vasut wrote: Initialize desc_before_addr, otherwise the USB core won't send the first 64B Get Device Descriptor request in common/usb.c function usb_setup_descriptor() . There are some USB devices which expect this sequence and otherwise can misbehave. Signed-off-by:

Re: [U-Boot] [PATCH v5 4/4] usb: Change power-on / scanning timeout handling

2016-04-28 Thread Stefan Roese
On 28.04.2016 01:07, Marek Vasut wrote: > On 04/02/2016 11:21 PM, Hans de Goede wrote: >> Hi, > > Hi! > >> On 04/02/2016 12:22 AM, Marek Vasut wrote: >>> On 03/15/2016 01:59 PM, Stefan Roese wrote: This patch changes the USB port scanning procedure and timeout handling in the following

Re: [U-Boot] [PATCH] i2c: designware_i2c: Optionally check enable status register

2016-04-28 Thread Stefan Roese
Hi Heiko, On 28.04.2016 08:06, Heiko Schocher wrote: Am 27.04.2016 um 09:02 schrieb Stefan Roese: Some platforms don't implement the enable status register at offset 0x9c. The SPEAr600 platform is one of them. The recently added check to this status register can't be performend on these

[U-Boot] [PATCH] mmc: sdhci: increase default timeout and make it configurable

2016-04-28 Thread Masahiro Yamada
I found the current timeout is too short for some devices to execute erase command. Nor can we override CONFIG_SDHCI_CMD_DEFAULT_TIMEOUT from a board config. Increase the default timeout and surround the define with "ifndef" to allow to override it in case the default value is not a good fit.

Re: [U-Boot] [PATCH] i2c: designware_i2c: Optionally check enable status register

2016-04-28 Thread Heiko Schocher
Hello Stefan, Am 27.04.2016 um 09:02 schrieb Stefan Roese: Some platforms don't implement the enable status register at offset 0x9c. The SPEAr600 platform is one of them. The recently added check to this status register can't be performend on these platforms. This patch introduces a new config

Re: [U-Boot] register polling from HUSH parser?

2016-04-28 Thread Masahiro Yamada
Hi Wolfgang, 2016-04-27 18:46 GMT+09:00 Wolfgang Denk : > Dear Masahiro, > > In message > you > wrote: >> >> Is there any good way to poll a certain register >> in a HUSH parser script? > > Yes, there is :-) > >>