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

2016-04-28 Thread Michal Simek
On 28.4.2016 21:05, Tom Rini wrote: > 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 s

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

2016-04-28 Thread Mugunthan V N
On Thursday 28 April 2016 10:01 AM, Joe Hershberger wrote: > On Wed, Apr 27, 2016 at 1:33 AM, Mugunthan V N wrote: >> On Wednesday 27 April 2016 03:06 AM, Joe Hershberger wrote: >>> On Mon, Apr 25, 2016 at 4:53 PM, Joe Hershberger >>> wrote: On Tue, Apr 12, 2016 at 3:46 AM, Mugunthan V N wr

Re: [U-Boot] [PATCH 1/2] mtd: cqspi: Simplify indirect write code

2016-04-28 Thread Vignesh R
On 04/28/2016 04:06 AM, Marek Vasut wrote: > The indirect write code is buggy pile of nastiness which fails horribly > when the system runs fast enough to saturate the controller. The failure > results in some pages (256B) not being written to the flash. This can be > observed on systems which ru

[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 --- arch/arm/imx-common/timer.c |

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 sig

[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 identified by the udevice_id

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 0x4020 to 0x4020F

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. > He

[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 bo

[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 Fan Cc: Fabio Estevam --- README | 4 +

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

2016-04-28 Thread Tom Rini
On Thu, Apr 28, 2016 at 05:13:07PM +0200, Anatolij Gustschin wrote: > 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 > >

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 (2016-04-26

[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 Cc: Tom Rini --- common/spl/spl.c | 3 ++- common/spl/spl_ext.

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 o

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 28/04/2

[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 + arch/arm/mach-meson/sm.c |

[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] https://patchwork.ozlabs.org/pa

[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 ++-- drivers

[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 - arch/arm

[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 CON

[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(-) diff --git a/drivers/core/device.c b/dri

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: u-boot@lists.denx.de > > > On Thu, Apr 28, 2016 at 02:

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 architecture. Oh, yes, you are right, of course. Well, U-Boot has been t

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 a

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 04/

[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 now-correctly-terminated

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 28/04

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 d

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 Mar

[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 pheripher

[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 from objcopy -O binary. >

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 be unique across all devices within its ucl

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 exam

[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: ARM64:

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 > LCD_TFT_24

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 shifted.

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: http://git.denx.

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 objcopy -O binary. > > Signed

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, >> " >> do_div(parent_rate, div); >>

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; > " > > Reported-by: Pete

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 > > --- > > Changes since v2: > > - Fixed the

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 addition > >of s

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 i

[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 bega

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 demons

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 >> this

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 appli

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 Devi

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; > " > > Report

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 wrote:

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 makes

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, end users like to del

[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 is

[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 a/configs/dra74_evm_defconfig b/configs/dra74_evm_defconfig index

[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(+) diff --git a/configs/am437x_sk_evm_defconfig b/configs/am437x_sk_evm_

[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(+) diff --git a/configs/am437x_gp_evm_defconfig b/configs/am437x_gp_evm_

[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 a/arch/arm/dts/am4372.dtsi b/arch/arm/dts/am4372.dtsi index c95d1d3..3

[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 --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index 30592

[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 Reviewed

[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: M

[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 a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index e7fecf7..3059273

[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 1 file changed, 12 insertions(+) diff --git a/arch/a

[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 Hershberger --- drivers/net/cpsw.c | 6 ++-

[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 --- include/configs/ti_omap5_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ti

[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 an

[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 --- drivers/core/device.c |

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 v2: None > > arch/

[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 | 4 ++-- 2 files

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: On Tue, Apr 12, 2016 at 3:46 AM, Mugunthan V N wr

[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. --- common/spl/spl.c | 44 +++

[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. --- common/spl/spl_fit.c | 1 + 1 file chang

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(+) > Reviewed-by: Bin Meng __

[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 changed, 10 insertions(+) diff --gi

[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 | 1 + configs/socfpga_arria5_defconfi

[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 100644 --- a/drivers/i2c/Kconfig

[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 --- Changes in v2: - Refactor