Re: [U-Boot] [PATCH 01/16] power: sunxi: add AXP803 PMIC support

2017-12-11 Thread Maxime Ripard
Hi, On Tue, Dec 12, 2017 at 12:28:16PM +0530, Jagan Teki wrote: > AXP803 another PMIC produced by x-powers and paired with > A64 via RSB bus. > > unlike other axp chip's support in SPL this is only added > for U-Boot proper since SPL on A64 has no space to add anything. How do you setup the CPU

Re: [U-Boot] [UBOOT PATCH 1/2] spi: zynqmp_qspi: Add support for ZynqMP qspi driver

2017-12-11 Thread Siva Durga Prasad Paladugu
Hi jagan, > -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Thursday, December 07, 2017 10:56 AM > To: Siva Durga Prasad Paladugu > Cc: u-boot@lists.denx.de; Liam Beguin > Subject: Re: [UBOOT PATCH 1/2] spi: zynqmp_qspi: Add support for > ZynqMP qspi drive

Re: [U-Boot] [PATCH] efi_loader: Setup logical_partition media information

2017-12-11 Thread Heinrich Schuchardt
On 12/11/2017 07:22 PM, Emmanuel Vadot wrote: When adding a partition, set the logical_partition member in the media structure as mandated by the UEFI spec. Signed-off-by: Emmanuel Vadot --- lib/efi_loader/efi_disk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efi_loader/efi_di

Re: [U-Boot] [RFC 0/5] sf: Update spi-nor framework

2017-12-11 Thread Jagan Teki
On Tue, Dec 12, 2017 at 11:44 AM, Prabhakar Kushwaha wrote: > Hi Marek, > >> -Original Message- >> From: Marek Vasut [mailto:marek.va...@gmail.com] >> Sent: Monday, December 11, 2017 3:04 PM >> To: Prabhakar Kushwaha ; u- >> b...@lists.denx.de >> Cc: jagannadh.t...@gmail.com; Poonam Aggrwa

[U-Boot] [PATCH v2 2/2] common: Generic firmware loader for file system

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee This is file system generic loader which can be used to load the file image from the storage into target such as memory. The consumer driver would then use this loader to program whatever, ie. the FPGA device. Signed-off-by: Tien Fong Chee --- common/Makefile | 1 +

[U-Boot] [PATCH v2 1/2] spl: Remove static declaration on spl_mmc_find_device function

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee This patch removes the static declation on spl_mmc_find_device_function so this function is accessible by the caller from other file. This patch is required for later patch. Signed-off-by: Tien Fong Chee --- common/spl/spl_mmc.c | 2 +- include/spl.h| 2 ++ 2 files

[U-Boot] [PATCH v2 0/2] Generic firmware loader

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee This patchset contains generic firmware loader which is very close to Linux firmware loader but for U-Boot framework. Generic firmware loader can be used load whatever into target location, and then consumer driver would use it to program whatever, ie. the FPGA. This version

Re: [U-Boot] [PATCH 04/16] musb-new: sunxi: add common SUNXI_MUSB_BASE

2017-12-11 Thread Chen-Yu Tsai
On Tue, Dec 12, 2017 at 2:58 PM, Jagan Teki wrote: > MUSB sunxi driver base not always USB0_BASE, on a64 > USB0_BASE is USB-OTG-EHCI/OHCI base so add SUNXI_MUSB_BASE > and adjust the proper msub base for all sunxi families. > > Signed-off-by: Jagan Teki > --- > arch/arm/include/asm/arch-sunxi/cp

[U-Boot] [PATCH] musb: sunxi: Use base address from device tree

2017-12-11 Thread Chen-Yu Tsai
Now that the musb sunxi glue driver is completely device model / device tree driven, we should use the base address from the device tree, instead of hard-coding it in the source code. Fixes: 3a61b080acee ("musb: sunxi: switch to the device model") Signed-off-by: Chen-Yu Tsai --- drivers/usb/musb

[U-Boot] [PATCH 14/16] configs: sun50i: add usb-otg support for a64-olinuxino

2017-12-11 Thread Jagan Teki
USB-OTG require MUSB driver along with PHY#0 id(PH9) and/or vbus pin(PH6) through AXP_GPIO driver. This patch add support for it. Signed-off-by: Jagan Teki --- configs/a64-olinuxino_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/a64-olinuxino_defconfig b/configs/a64-o

[U-Boot] [PATCH 10/16] arm64: allwinner: sync bananapi-m64 usb nodes from Linux

2017-12-11 Thread Jagan Teki
Sync USB-OTG and USB-OTG-HCI nodes from Linux. Signed-off-by: Jagan Teki --- arch/arm/dts/sun50i-a64-bananapi-m64.dts | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/dts/sun50i-a64-bananapi-m64.dts b/arch/arm/dts/sun50i-a64-bananapi-m64.dts index 02db11

[U-Boot] [PATCH 03/16] sunxi: adjust usb bases between H3_H5 vs a64

2017-12-11 Thread Jagan Teki
A64 doesn't have USB2 and USB3 so defined them only for H3_H5 Signed-off-by: Jagan Teki --- arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h b/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h index 2419062..

[U-Boot] [PATCH 07/16] usb: sunxi: set up usb_phy_passby only for HCI

2017-12-11 Thread Jagan Teki
From: Philipp Tomsich sunxi_usb_phy_passby will deal PHY's other than 0 and it not require to use it for MUSB so use directly for HCI. Also update the function proto type for with index and bool enable for better usability. Signed-off-by: Philipp Tomsich [jagan: reowrked on entire patch] Signe

[U-Boot] [PATCH 16/16] configs: sun50i: Enable eMMC on a64-olinuxino

2017-12-11 Thread Jagan Teki
a64-olinuxino has 8GiB eMMC, enable it. Signed-off-by: Jagan Teki --- configs/a64-olinuxino_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/a64-olinuxino_defconfig b/configs/a64-olinuxino_defconfig index c1408bd..6f26e9e 100644 --- a/configs/a64-olinuxino_defconfig +++ b/co

[U-Boot] [PATCH 04/16] musb-new: sunxi: add common SUNXI_MUSB_BASE

2017-12-11 Thread Jagan Teki
MUSB sunxi driver base not always USB0_BASE, on a64 USB0_BASE is USB-OTG-EHCI/OHCI base so add SUNXI_MUSB_BASE and adjust the proper msub base for all sunxi families. Signed-off-by: Jagan Teki --- arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 4 drivers/usb/musb-new/sunxi.c|

[U-Boot] [PATCH 06/16] musb-new: sunxi: a64: adds support for clearing the SIDDP

2017-12-11 Thread Jagan Teki
From: Philipp Tomsich Allwinner a64 needs to clear the SIDDP bit from PHYCTL register once the phy_init done. Signed-off-by: Philipp Tomsich [jagan: reworked to fix multi-line comments] Signed-off-by: Jagan Teki --- arch/arm/include/asm/arch-sunxi/usb_phy.h | 1 + arch/arm/mach-sunxi/usb_phy

[U-Boot] [PATCH 15/16] configs: sun50i: enable ums on a64-olinuxino

2017-12-11 Thread Jagan Teki
This patch enable ums through CMD_USB_MASS_STORAGE. Signed-off-by: Jagan Teki --- configs/a64-olinuxino_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/a64-olinuxino_defconfig b/configs/a64-olinuxino_defconfig index 4c3fe75..c1408bd 100644 --- a/configs/a64-olinuxino_defcon

[U-Boot] [PATCH 13/16] arm64: allwinner: sync a64-olinuxino usb nodes from Linux

2017-12-11 Thread Jagan Teki
Sync USB-OTG and USB-OTG-HCI nodes from Linux. Signed-off-by: Jagan Teki --- arch/arm/dts/sun50i-a64-olinuxino.dts | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/dts/sun50i-a64-olinuxino.dts b/arch/arm/dts/sun50i-a64-olinuxino.dts index 7bd4730..bd56355 100644

[U-Boot] [PATCH 09/16] sunxi: usb_phy: Update a64 sunxi_usb_phy base

2017-12-11 Thread Jagan Teki
a64 has shared PHY#0(for OTG and USB-OTG-HCI) which start at 0x01C19000 which different than other allwinner SOC, so update the same for sunxi_usb_phy[0] base. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/usb_phy.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-sunxi/

[U-Boot] [PATCH 11/16] configs: sun50i: add usb-otg support for bananapi-m64

2017-12-11 Thread Jagan Teki
USB-OTG require MUSB driver along with PHY#0 id(PH9) and/or vbus pin through AXP_GPIO driver. This patch add support for it. Signed-off-by: Jagan Teki --- configs/bananapi_m64_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/bananapi_m64_defconfig b/configs/bananapi_m64_

[U-Boot] [PATCH 12/16] configs: sun50i: enable ums on bananapi-m64

2017-12-11 Thread Jagan Teki
This patch enable ums through CMD_USB_MASS_STORAGE. Signed-off-by: Jagan Teki --- configs/bananapi_m64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/bananapi_m64_defconfig b/configs/bananapi_m64_defconfig index 55feafe..d4aade5 100644 --- a/configs/bananapi_m64_defconfig

[U-Boot] [PATCH 08/16] sunxi: clock: update a64 usb clock gating and module reset bits

2017-12-11 Thread Jagan Teki
From: Philipp Tomsich clock gating and module reset bits on a64 are different than H3_H5 and other allwinner family SOCs, add them on clock_sun6i.h Signed-off-by: Philipp Tomsich [jagan: reowrked on entire patch] Signed-off-by: Jagan Teki --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 16

[U-Boot] [PATCH 05/16] musb-new: sunxi: a64: add support to select shared phy

2017-12-11 Thread Jagan Teki
From: Philipp Tomsich Allwinner a64 has a shared PHY for MUSB and USB-OTG-HCI, so add function to select the PHY route. Signed-off-by: Philipp Tomsich [jagan: reworked for remove func support] Signed-off-by: Jagan Teki --- drivers/usb/musb-new/sunxi.c | 19 +++ 1 file changed,

[U-Boot] [PATCH 01/16] power: sunxi: add AXP803 PMIC support

2017-12-11 Thread Jagan Teki
AXP803 another PMIC produced by x-powers and paired with A64 via RSB bus. unlike other axp chip's support in SPL this is only added for U-Boot proper since SPL on A64 has no space to add anything. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Makefile | 9 ++ arch/arm/mach-sunxi/pmic_bu

[U-Boot] [PATCH 02/16] sunxi (sun50i): Set CONFIG_SUNXI_USB_PHYS to 2 (the A64 has 2 PHYs)

2017-12-11 Thread Jagan Teki
From: Philipp Tomsich The sun50i platform (e.g. the A64/sun50iw1p1) integrates 2 USB PHYs which are connected as follows: PHY#0 is shared between the OTG controller (MUSB) [at 01C19000] and the USB-OTG-HCI [at 01C1A000] PHY#1 is dedicated to USB-HCI0 [at 01C1B000] and can be bypassed

[U-Boot] [PATCH 00/16] sun50i: a64: add support for axp803, musb

2017-12-11 Thread Jagan Teki
This series deals axp803, musb and related improvements on a64 - axp803 PMIC support used by a64 - a64 musb improvements (rework by Philipp [1]) - musb support for bananapi-m64, a64-olinuxino [1] https://patchwork.ozlabs.org/patch/729246/ Jagan Teki (11): power: sunxi: add AXP803 PMIC support

Re: [U-Boot] [RFC 0/5] sf: Update spi-nor framework

2017-12-11 Thread Prabhakar Kushwaha
Hi Marek, > -Original Message- > From: Marek Vasut [mailto:marek.va...@gmail.com] > Sent: Monday, December 11, 2017 3:04 PM > To: Prabhakar Kushwaha ; u- > b...@lists.denx.de > Cc: jagannadh.t...@gmail.com; Poonam Aggrwal > ; Suresh Gupta ; > cyrille.pitc...@atmel.com > Subject: Re: [RFC 0

Re: [U-Boot] [PATCH 0/7] Fix incorrect usage of the (FIT) DT node unit address

2017-12-11 Thread Masahiro Yamada
Hi Simon, 2017-12-12 13:38 GMT+09:00 Simon Glass : > Hi Andre, > > On 3 December 2017 at 19:05, Andre Przywara wrote: >> The DT spec[1] demands a unit-address in a node name (name@address) to >> match the "reg" property inside that node: >> uart0: serial@1c28000 { >> reg

Re: [U-Boot] [PATCH 2/2] common: Generic firmware loader for file system

2017-12-11 Thread Chee, Tien Fong
On Isn, 2017-12-11 at 13:16 +0100, Lothar Waßmann wrote: > Hi, > > On Mon, 11 Dec 2017 18:53:46 +0800 tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > [...} > > > > +/* > > + * Prepare firmware struct; > > + * return -ve if fail. > > + */ > > +static int _request_firmware_pre

Re: [U-Boot] [PATCH 1/2] arm: socfpga: Remove static declaration on spl_mmc_find_device function

2017-12-11 Thread Chee, Tien Fong
On Isn, 2017-12-11 at 12:03 +0100, Marek Vasut wrote: > On 12/11/2017 11:53 AM, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > So the tags would imply this has a lot to do with SoCFPGA, but this > is > not touching any file in the SoCFPGA. The tags are thus completely > bogus. >

Re: [U-Boot] [PATCH v2 5/5] Remove assert()

2017-12-11 Thread Simon Glass
On 3 December 2017 at 20:37, Masahiro Yamada wrote: > No more users of assert() except host tools. Remove. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: None > > include/common.h | 15 --- > lib/tiny-printf.c | 9 - > lib/vsprintf.c| 9 - > 3 fil

Re: [U-Boot] [PATCH] gpio/hsdk: Depend on DM_GPIO instead of simple DM

2017-12-11 Thread Simon Glass
On 10 December 2017 at 10:55, Alexey Brodkin wrote: > This driver really is DM GPIO one and so we need to have a correct > dependency, because DM alone doesn't provide required for CMD_GPIO > call and we're seeing build failures like this: > -->8- > cmd/buil

Re: [U-Boot] [PATCH v2 3/5] Introduce CONFIG_ENABLE_BUG_CHECKS to disable BUG{_ON} by default

2017-12-11 Thread Simon Glass
On 3 December 2017 at 20:37, Masahiro Yamada wrote: > BUG() and BUG_ON() are generally used to test a condition that should > never happen. If it does, it is a bug. > > Linux always enables them, but doing so in U-Boot causes image size > problems on some platforms. Introduce CONFIG_ENABLE_BUG_C

Re: [U-Boot] [PATCH v2 2/5] Enable CONFIG_PANIC_HANG for boards without do_reset()

2017-12-11 Thread Simon Glass
On 3 December 2017 at 20:37, Masahiro Yamada wrote: > Calling panic() for these boards causes build error: > undefined reference to `do_reset' > > They must compile do_reset(), or define CONFIG_PANIC_HANG. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: None > > configs/cl-som-imx7

Re: [U-Boot] [PATCH 0/7] Fix incorrect usage of the (FIT) DT node unit address

2017-12-11 Thread Simon Glass
Hi Andre, On 3 December 2017 at 19:05, Andre Przywara wrote: > The DT spec[1] demands a unit-address in a node name (name@address) to > match the "reg" property inside that node: > uart0: serial@1c28000 { > reg = <0x01c28000 0x400>; > > If there is no

Re: [U-Boot] [GIT PULL] u-boot-uniphier/master

2017-12-11 Thread Tom Rini
On Tue, Dec 12, 2017 at 12:45:29AM +0900, Masahiro Yamada wrote: > Hi Tom, > > Please pull some more fixes and trivial changes. > Thanks! > > > > The following changes since commit 335f7b1290ce24a729a9689a1db834c743226ca8: > > Merge git://git.denx.de/u-boot-mpc85xx (2017-12-08 12:02:01 -050

Re: [U-Boot] Please pull ARC changes

2017-12-11 Thread Tom Rini
On Mon, Dec 11, 2017 at 08:43:12AM +, Alexey Brodkin wrote: > Hi Tom, > > Seems like I'm a little bit late as RC1 was already cut but anyways > I think most if not all the mentioned below changes could be safely pulled. > > That's because 5 of 6 patches are really just very trivial fixes > (

Re: [U-Boot] Swig now required to build U-Boot?

2017-12-11 Thread Tom Rini
On Fri, Dec 08, 2017 at 04:16:41PM -0800, Sergey Kubushyn wrote: > On Fri, 8 Dec 2017, Simon Glass wrote: > > >Hi Stephen, > > > >On 8 December 2017 at 16:28, Stephen Warren wrote: > >>Simon, > >> > >>Is it expected that the latest u-boot-dm.git master branch now requires > >>swig? All the non-sa

[U-Boot] [PATCH] stm32f4: Support over-drive mode in standard code path

2017-12-11 Thread Stefan Berzl
From 0d0ea4a15605080f0418d601e6539d6555266475 Mon Sep 17 00:00:00 2001 From: Stefan Berzl Date: Mon, 11 Dec 2017 23:41:04 +0100 Subject: [PATCH] stm32f4: Support over-drive mode in standard code path The datasheet for the stm32f429-discovery says that the clock rate of 180 Mhz is only attainable

[U-Boot] [PATCH v3 0/2] arm: ppc: Share DPAA1 fixups between ARCHs

2017-12-11 Thread Ahmed Mansour
- Support DPAA1 QBMan device tree fixups in a shared location for both arm and ppc architectures - cleanup a define from header files and add as Kconfig with auto selection based on SOC Changes in v3: - Add freescale old copyright in new file since it is a modified copy - Add ifdef QBMAN guard

[U-Boot] [PATCH v3 1/2] drivers/misc: Share qbman init between archs

2017-12-11 Thread Ahmed Mansour
This patch adds changes necessary to move functionality present in PowerPC folders with ARM architectures that have DPAA1 QBMan hardware - Create new board/freescale/common/fsl_portals.c to house shared device tree fixups for DPAA1 devices with ARM and PowerPC cores - Add new header file to top

[U-Boot] [PATCH v3 2/2] Move SYS_DPAA_QBMAN to Kconfig

2017-12-11 Thread Ahmed Mansour
The CONFIG_SYS_DPAA_QBMAN define is used by DPAA1 freescale SOCs to add device tree fixups that allow deep sleep in Linux. The define was placed in header files included by a number of boards, but was not explicitly documented in any of the Kconfigs. A description was added to the drivers/networkin

[U-Boot] [PATCH] efi_loader: Setup logical_partition media information

2017-12-11 Thread Emmanuel Vadot
When adding a partition, set the logical_partition member in the media structure as mandated by the UEFI spec. Signed-off-by: Emmanuel Vadot --- lib/efi_loader/efi_disk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c index 4e457a841b.

Re: [U-Boot] [PATCH] arm: imx: add tzic interrupt controller for imx53

2017-12-11 Thread Fabio Estevam
On Mon, Dec 11, 2017 at 10:09 AM, wrote: > From: Patrick Bruenn > > Since commit 999a78d5cf00 ("scripts/dtc: Update to upstream version > v1.4.5-3-gb1a60033c110") > dtc warns about: > arch/arm/dts/imx53-cx9020.dtb: Warning (interrupts_property): Missing > interrupt-parent for /soc/aips@500

Re: [U-Boot] [PATCH] imx: Fix missing spl_sd configuration for wandboard.

2017-12-11 Thread Fabio Estevam
Hi Vagrant, On Wed, Dec 6, 2017 at 10:31 PM, Vagrant Cascadian wrote: > In commit 6e6cf015e7cdd7ca83a933320a81201972bd5e5e ("Merge > git://www.denx.de/git/u-boot-imx") the line defining spl_sd > configuration for wandboard was removed, which resulted in no SPL > target being built. > > Add it bac

Re: [U-Boot] [U-Boot,1/1] mx6: wandboard: reenable SPL build

2017-12-11 Thread Vagrant Cascadian
On 2017-12-09, Heinrich Schuchardt wrote: > The last merge from the u-boot-imx tree deleted a > necessary line from wandboard_defconfig by mistake. > > This caused an error when running > > make wandboard_defconfig > make SPL > > Fixes: 6e6cf015e7cd Merge git://www.denx.de/git/u-boot-im

[U-Boot] [PATCH 1/1] efi_loader: use wide string do define firmware vendor

2017-12-11 Thread Heinrich Schuchardt
As the U-Boot is compiled with -fshort-wchar we can define the firmware vendor constant as wide string. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_bo

Re: [U-Boot] [PATCH] efi_loader: helloworld.c: Explicitly use .rodata for loaded_image_guid

2017-12-11 Thread Florian Fainelli
On 12/11/2017 12:45 AM, Alexander Graf wrote: > Commit bbf75dd9345d0b ("efi_loader: output load options in helloworld") > introduced a const variable in efi_main() called loaded_image_guid which > got populated from a constant struct. > > While you would usually expect a compiler to realize that

Re: [U-Boot] [PATCH v5] arm64: ls1012ardb: Add distro boot support

2017-12-11 Thread York Sun
On 11/30/2017 03:14 AM, Rajesh Bhagat wrote: > --- a/include/configs/ls1012ardb.h > +++ b/include/configs/ls1012ardb.h > @@ -60,6 +60,49 @@ > #define CONFIG_SYS_MEMTEST_START 0x8000 > #define CONFIG_SYS_MEMTEST_END 0x9fff > > +#undef CONFIG_EXTRA_ENV_SETTINGS > +#de

[U-Boot] [PATCH] arm: imx: add tzic interrupt controller for imx53

2017-12-11 Thread linux-kernel-dev
From: Patrick Bruenn Since commit 999a78d5cf00 ("scripts/dtc: Update to upstream version v1.4.5-3-gb1a60033c110") dtc warns about: arch/arm/dts/imx53-cx9020.dtb: Warning (interrupts_property): Missing interrupt-parent for /soc/aips@5000/serial@53fc arch/arm/dts/imx53-cx9020.dtb: Warning

Re: [U-Boot] u-boot-dm crashes early on NVIDIA Beaver, Jetson TK1

2017-12-11 Thread Stephen Warren
On 12/11/2017 09:55 AM, Stephen Warren wrote: Simon, the latest commits in u-boot-dm/git master branch (2b64d049a061 "power: pmic/regulator: Add basic support for TPS65910") crash on at least Beaver and Jetson TK1. On TK1, I added debug spew to lib/initcall.c, and the last function called befor

[U-Boot] [PATCH] rockchip: move CONFIG_ENV_SIZE and CONFIG_ENV_OFFSET to Kconfig

2017-12-11 Thread Klaus Goger
These settings are not not user visible via a menuconfig prompt. This is necessary to have the possibility to select new default values if CONFIG_IS_IN_* is changed (interactively or with oldconfig). Otherwise it will always be set to a previous value if used with a prompt. As an example if we do a

[U-Boot] u-boot-dm crashes early on NVIDIA Beaver, Jetson TK1

2017-12-11 Thread Stephen Warren
Simon, the latest commits in u-boot-dm/git master branch (2b64d049a061 "power: pmic/regulator: Add basic support for TPS65910") crash on at least Beaver and Jetson TK1. On TK1, I added debug spew to lib/initcall.c, and the last function called before the crash is initr_serial(): U-Boot SPL 2

Re: [U-Boot] [PATCH v4 2/4] net: designware: Pad small packets

2017-12-11 Thread Joe Hershberger
On Sat, Dec 9, 2017 at 4:59 PM, Florian Fainelli wrote: > Make sure that we pad small packets to a minimum length of 60 bytes > (without FCS). This is necessary to interface with Ethernet switches > that will reject RUNT frames unless padded correctly. > > Signed-off-by: Florian Fainelli Acked-b

Re: [U-Boot] [PATCH v6 2/2] DW SPI: Get clock value from Device Tree

2017-12-11 Thread Marek Vasut
On 12/11/2017 05:37 PM, Eugeniy Paltsev wrote: > On Mon, 2017-12-11 at 17:21 +0100, Marek Vasut wrote: >> On 12/11/2017 05:18 PM, Eugeniy Paltsev wrote: >>> Add option to set spi controller clock frequency via device tree >>> using standard clock bindings. >>> >>> Define dw_spi_get_clk function as

Re: [U-Boot] [PATCH v6 2/2] DW SPI: Get clock value from Device Tree

2017-12-11 Thread Eugeniy Paltsev
On Mon, 2017-12-11 at 17:21 +0100, Marek Vasut wrote: > On 12/11/2017 05:18 PM, Eugeniy Paltsev wrote: > > Add option to set spi controller clock frequency via device tree > > using standard clock bindings. > > > > Define dw_spi_get_clk function as 'weak' as some targets > > (like SOCFPGA_GEN5 and

Re: [U-Boot] Linux hang

2017-12-11 Thread Jan Siegmund
Am 08.12.2017 um 14:52 schrieb Anatolij Gustschin: Hi, On Wed, 6 Dec 2017 17:02:07 + Siegmund, Jan jan.siegmu...@hm.edu wrote: Hi all, does anybody have an idea for the following problem. * FPGA is programmed using an overlay * FPGA writes to SDRAM via the FPGA2SDRAM-bridge * Linux hangs

Re: [U-Boot] [PATCH v6 2/2] DW SPI: Get clock value from Device Tree

2017-12-11 Thread Marek Vasut
On 12/11/2017 05:18 PM, Eugeniy Paltsev wrote: > Add option to set spi controller clock frequency via device tree > using standard clock bindings. > > Define dw_spi_get_clk function as 'weak' as some targets > (like SOCFPGA_GEN5 and SOCFPGA_ARRIA10) fon't use standard clock API > and implement dw_

[U-Boot] [PATCH v6 2/2] DW SPI: Get clock value from Device Tree

2017-12-11 Thread Eugeniy Paltsev
Add option to set spi controller clock frequency via device tree using standard clock bindings. Define dw_spi_get_clk function as 'weak' as some targets (like SOCFPGA_GEN5 and SOCFPGA_ARRIA10) fon't use standard clock API and implement dw_spi_get_clk their own way in their clock manager. Get rid

[U-Boot] [PATCH v6 1/2] SOCFPGA: clock manager: implement dw_spi_get_clk function

2017-12-11 Thread Eugeniy Paltsev
Implement dw_spi_get_clk function to override its weak implementation in designware_spi.c driver. We need this change to get rid of cm_get_spi_controller_clk_hz function and clock_manager.h include in designware_spi.c driver. Signed-off-by: Eugeniy Paltsev --- arch/arm/mach-socfpga/clock_manage

[U-Boot] [PATCH v6 0/2] DW SPI: Get clock value from Device Tree

2017-12-11 Thread Eugeniy Paltsev
As discussed with Marek during the LINUX-PITER here is v4 patch: Add option to set spi controller clock frequency via device tree using standard clock bindings. Define dw_spi_get_clk function as 'weak' as some targets (like SOCFPGA_GEN5 and SOCFPGA_ARRIA10) fon't use standard clock API and implem

[U-Boot] [PATCH] mx6: Add board mx6memcal for use in validating DDR

2017-12-11 Thread Fabio Estevam
From: Eric Nelson This is a virtual "board" that uses configuration files and Kconfig to define the memory layout used by a real board during the board bring-up process. It generates an SPL image that can be loaded using imx_usb or SB_LOADER.exe. When run, it will generate a set of calibration

[U-Boot] [GIT PULL] u-boot-uniphier/master

2017-12-11 Thread Masahiro Yamada
Hi Tom, Please pull some more fixes and trivial changes. Thanks! The following changes since commit 335f7b1290ce24a729a9689a1db834c743226ca8: Merge git://git.denx.de/u-boot-mpc85xx (2017-12-08 12:02:01 -0500) are available in the git repository at: git://git.denx.de/u-boot-uniphier.git m

Re: [U-Boot] [PATCH] ARM: imx6: Disable DDR DRAM calibration DHCOM i.MX6 PDK

2017-12-11 Thread Marek Vasut
On 12/11/2017 04:23 PM, Fabio Estevam wrote: > Hi Marek, Hi! > On Mon, Dec 11, 2017 at 1:19 PM, Marek Vasut wrote: >> The DDR DRAM calibration doesn't work on T-topology sometimes, so disable it. >> >> Signed-off-by: Marek Vasut >> Cc: Stefano Babic >> --- >> board/dhelectronics/dh_imx6/dh_im

Re: [U-Boot] [PATCH] ARM: imx6: Disable DDR DRAM calibration DHCOM i.MX6 PDK

2017-12-11 Thread Fabio Estevam
Hi Marek, On Mon, Dec 11, 2017 at 1:19 PM, Marek Vasut wrote: > The DDR DRAM calibration doesn't work on T-topology sometimes, so disable it. > > Signed-off-by: Marek Vasut > Cc: Stefano Babic > --- > board/dhelectronics/dh_imx6/dh_imx6_spl.c | 4 > 1 file changed, 4 deletions(-) > > diff

[U-Boot] [PATCH] ARM: imx6: Disable DDR DRAM calibration DHCOM i.MX6 PDK

2017-12-11 Thread Marek Vasut
The DDR DRAM calibration doesn't work on T-topology sometimes, so disable it. Signed-off-by: Marek Vasut Cc: Stefano Babic --- board/dhelectronics/dh_imx6/dh_imx6_spl.c | 4 1 file changed, 4 deletions(-) diff --git a/board/dhelectronics/dh_imx6/dh_imx6_spl.c b/board/dhelectronics/dh_imx

Re: [U-Boot] [PATCH 4/4] meson: use the clock driver

2017-12-11 Thread Simon Glass
On 3 December 2017 at 02:17, Beniamino Galvani wrote: > Use the clk framework to initialize clocks from drivers that need them > instead of having hardcoded frequencies and initializations from board > code. > > Signed-off-by: Beniamino Galvani > --- > arch/arm/include/asm/arch-meson/gxbb.h | 10

Re: [U-Boot] [PATCH 3/4] clk: add Amlogic meson clock driver

2017-12-11 Thread Simon Glass
Hi Benjamin, On 3 December 2017 at 02:17, Beniamino Galvani wrote: > Introduce a basic clock driver for Amlogic Meson SoCs which supports > enabling/disabling clock gates and getting their frequency. > > Signed-off-by: Beniamino Galvani > --- > arch/arm/mach-meson/Kconfig | 2 + > drivers/clk

Re: [U-Boot] [PATCH 2/4] ARM: meson: add clock measurement function

2017-12-11 Thread Simon Glass
Hi Benjamin, On 3 December 2017 at 02:17, Beniamino Galvani wrote: > Add add a function to measure the current clock rate. > > Signed-off-by: Beniamino Galvani > --- > arch/arm/include/asm/arch-meson/clock.h | 34 + > arch/arm/mach-meson/Makefile| 2 +- > ar

Re: [U-Boot] [PATCH 2/2] common: Generic firmware loader for file system

2017-12-11 Thread Lothar Waßmann
Hi, On Mon, 11 Dec 2017 18:53:46 +0800 tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > [...} > +/* > + * Prepare firmware struct; > + * return -ve if fail. > + */ > +static int _request_firmware_prepare(struct firmware **firmware_p, > + const char *name,

Re: [U-Boot] [PATCH] efi_loader: helloworld.c: Explicitly use .rodata for loaded_image_guid

2017-12-11 Thread Heinrich Schuchardt
On 12/11/2017 09:45 AM, Alexander Graf wrote: Commit bbf75dd9345d0b ("efi_loader: output load options in helloworld") introduced a const variable in efi_main() called loaded_image_guid which got populated from a constant struct. While you would usually expect a compiler to realize that this vari

[U-Boot] [PATCH v3 0/6] efi_loader: correct media device paths

2017-12-11 Thread Heinrich Schuchardt
For each disk we need partition device path with partion number 0. The device node texts should match the UEFI spec. v3: Add support for IDE and SCSI disks. Avoid an unaligned memory access. v2: Do not generate optional device path with partion number 0 for the whol

[U-Boot] [PATCH v3 4/6] efi_loader: comments for dp_part_fill()

2017-12-11 Thread Heinrich Schuchardt
Add a description for dp_part_fill(). Reword a comment in the function. Signed-off-by: Heinrich Schuchardt --- v3 new patch --- lib/efi_loader/efi_device_path.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/e

[U-Boot] [PATCH v3 6/6] efi_loader: support device path for IDE and SCSI disks

2017-12-11 Thread Heinrich Schuchardt
Correctly create the device path for IDE and SCSI disks. Support for SATA remains to be done in a future patch. Signed-off-by: Heinrich Schuchardt --- v3 new patch --- include/efi_api.h| 15 lib/efi_loader/efi_device_path.c | 64 +

[U-Boot] [PATCH v3 1/6] efi_loader: correctly determine if an MMC device is an SD-card

2017-12-11 Thread Heinrich Schuchardt
The SD cards and eMMC devices have different device nodes. The current coding interpretes all MMC devices as eMMC. Signed-off-by: Heinrich Schuchardt --- v3 no change v2 no change --- lib/efi_loader/efi_device_path.c | 24 +--- 1 file changed, 21 insertions(+)

[U-Boot] [PATCH v3 3/6] efi_loader: correct DeviceNodeToText for media types

2017-12-11 Thread Heinrich Schuchardt
When converting device nodes and paths to text we should stick to the UEFI spec. Signed-off-by: Heinrich Schuchardt --- v3 Copy from packed structure to aligned memory to avoid unaligned memory access. v2 no change --- lib/efi_loader/efi_device_path_to_text.c | 43 +++

[U-Boot] [PATCH v3 5/6] efi_loader: create full device path for block devices

2017-12-11 Thread Heinrich Schuchardt
When creating the device path of a block device it has to comprise the block device itself and should not end at its parent. Signed-off-by: Heinrich Schuchardt --- v3 new patch --- lib/efi_loader/efi_device_path.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-)

[U-Boot] [PATCH v3 2/6] efi_loader: correctly setup device paths for block devices

2017-12-11 Thread Heinrich Schuchardt
According to the UEFI spec the numbering of partitions has to start with 1. Partion number 0 is reserved for the optional device path for the complete block device. Signed-off-by: Heinrich Schuchardt --- v3 no change v2 Do not generate optional device path with partion number 0.

Re: [U-Boot] [PATCH 1/2] arm: socfpga: Remove static declaration on spl_mmc_find_device function

2017-12-11 Thread Marek Vasut
On 12/11/2017 11:53 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee So the tags would imply this has a lot to do with SoCFPGA, but this is not touching any file in the SoCFPGA. The tags are thus completely bogus. > This patch removes the static declation on spl_mmc_find_device_functio

[U-Boot] [PATCH 2/2] common: Generic firmware loader for file system

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee This is file system generic loader which can be used to load the file image from the storage into target such as memory. The consumer driver would then use this loader to program whatever, ie. the FPGA device. Signed-off-by: Tien Fong Chee --- common/Makefile | 1 +

[U-Boot] [PATCH 0/2] Generic firmware loader

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee This patchset contains generic firmware loader which is very close to Linux firmware loader but for U-Boot framework. Generic firmware loader can be used load whatever into target location, and then consumer driver would use it to program whatever, ie. the FPGA. This series

[U-Boot] [PATCH 1/2] arm: socfpga: Remove static declaration on spl_mmc_find_device function

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee This patch removes the static declation on spl_mmc_find_device_function so this function is accessible by the caller from other file. This patch is required for later patch. Signed-off-by: Tien Fong Chee --- common/spl/spl_mmc.c | 2 +- include/spl.h| 2 ++ 2 files

Re: [U-Boot] [PATCH v6 07/20] common: Generic firmware loader for file system

2017-12-11 Thread Chee, Tien Fong
On Isn, 2017-12-11 at 11:15 +0100, Marek Vasut wrote: > On 12/11/2017 11:08 AM, Chee, Tien Fong wrote: > > > > On Isn, 2017-12-11 at 18:06 +0800, tien.fong.c...@intel.com wrote: > > > > > > From: Tien Fong Chee > > > > > > This is file system generic loader which can be used to load > > > the f

Re: [U-Boot] [PATCH v6 07/20] common: Generic firmware loader for file system

2017-12-11 Thread Marek Vasut
On 12/11/2017 11:08 AM, Chee, Tien Fong wrote: > On Isn, 2017-12-11 at 18:06 +0800, tien.fong.c...@intel.com wrote: >> From: Tien Fong Chee >> >> This is file system generic loader which can be used to load >> the file image from the storage into target such as memory. >> The consumer driver would

[U-Boot] [PATCH v6 12/20] arm: socfpga: Add DDR driver for Arria 10

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee Add DDR driver support for Arria 10. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/include/mach/sdram.h | 2 + arch/arm/mach-socfpga/include/mach/sdram_arria10.h | 2 + drivers/ddr/altera/Makefile| 1 + drivers/ddr/altera/sdr

[U-Boot] [PATCH v6 18/20] arm: socfpga: Adding SoCFPGA info for both SPL and U-Boot

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee SoC FPGA info is required in both SPL and U-Boot. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/board.c| 4 arch/arm/mach-socfpga/misc_arria10.c | 5 - arch/arm/mach-socfpga/spl.c | 6 ++ 3 files changed, 10 insertions(+), 5 deletion

[U-Boot] [PATCH v6 16/20] arm: socfpga: Enhance Intel SoCFPGA program header to support Arria 10

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee Enhance preloader header with both additional program length and program entry offset attributes, which offset is relative to the start of program header. Signed-off-by: Tien Fong Chee Reviewed-by: Dinh Nguyen --- arch/arm/mach-socfpga/include/mach/boot0.h | 7 +++ 1

[U-Boot] [PATCH v6 10/20] arm: socfpga: Rename the gen5 sdram driver to more specific name

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee Current sdram driver is only applied to gen5 device, hence it is better to rename sdram driver to more specific name which is related to gen5 device. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/include/mach/sdram.h | 432 + .../inclu

[U-Boot] [PATCH v6 15/20] arm: socfpga: Improve comments for Intel SoCFPGA program header

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee Adding some details about size in bytes to each section. Signed-off-by: Tien Fong Chee Reviewed-by: Dinh Nguyen --- arch/arm/mach-socfpga/include/mach/boot0.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-socfpga/include/mach/boot0.

[U-Boot] [PATCH v6 06/20] arm: socfpga: Remove static declaration on spl_mmc_find_device function

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee This patch removes the static declation on spl_mmc_find_device_function so this function is accessible by the caller from other file. This patch is required for later patch. Signed-off-by: Tien Fong Chee --- common/spl/spl_mmc.c | 2 +- include/spl.h| 2 ++ 2 files

[U-Boot] [PATCH v6 03/20] arm: socfpga: Add Arria 10 SoCFPGA programming interface

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee Add code necessary into the FPGA driver framework in U-Boot so it can be used via the 'fpga' command for programing Arria 10 SoCFPGA. Signed-off-by: Tien Fong Chee --- cmd/fpga.c| 2 +- drivers/fpga/altera.c | 40 drive

[U-Boot] [PATCH v6 20/20] arm: socfpga: Enable SPL booting U-boot

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee Enable SPL successfully boot to U-boot. Signed-off-by: Tien Fong Chee --- configs/socfpga_arria10_defconfig | 41 ++- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/configs/socfpga_arria10_defconfig b/configs/socfpga_arr

Re: [U-Boot] [PATCH v6 07/20] common: Generic firmware loader for file system

2017-12-11 Thread Chee, Tien Fong
On Isn, 2017-12-11 at 18:06 +0800, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > This is file system generic loader which can be used to load > the file image from the storage into target such as memory. > The consumer driver would then use this loader to program whatever, > ie. the

[U-Boot] [PATCH v6 19/20] arm: socfpga: Enable DDR working

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee SPL configures DDR by programming peripheral raw binary file and calibrating DDR. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/spl.c | 43 +++ configs/socfpga_arria10_defconfig | 17 +--- 2 files changed, 57

[U-Boot] [PATCH v6 13/20] configs: Add DDR Kconfig support for Arria 10

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee This patch enables DDR Kconfig support for Arria 10. Signed-off-by: Tien Fong Chee Reviewed-by: Dinh Nguyen --- arch/arm/mach-socfpga/Kconfig | 1 + drivers/ddr/altera/Kconfig| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/K

[U-Boot] [PATCH v6 09/20] arm: socfpga: Add FPGA drivers for Arria 10 FPGA loadfs

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee Add FPGA drivers to support FPGA loadfs to program FPGA. The drivers are designed based on generic firmware loader framework, specific firmware loader handling is defined in fpga_manager_arria10.c. These drivers can handle FPGA program operation from loading RBF image in flas

[U-Boot] [PATCH v6 11/20] arm: socfpga: Add DRAM bank size initialization function

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee Add function for both multiple DRAM bank and single DRAM bank size initialization. This common functionality could be used by every single SOCFPGA board. Signed-off-by: Tien Fong Chee Tested-by: Ley Foon Tan --- arch/arm/mach-socfpga/board.c| 7 +++ include/config

[U-Boot] [PATCH v6 17/20] arm: socfpga: Adding clock frequency info for U-Boot

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee Clock frequency info is required in U-Boot because info would be erased when transition from SPL to U-Boot. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/board.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/m

[U-Boot] [PATCH v6 14/20] arm: socfpga: Enable SPL memory allocation

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee Enable memory allocation in SPL for preparation to enable FAT in SPL. Memory allocation is needed by FAT to work properly. Signed-off-by: Tien Fong Chee Reviewed-by: Dinh Nguyen --- include/configs/socfpga_common.h | 22 +- 1 file changed, 21 insertion

[U-Boot] [PATCH v6 07/20] common: Generic firmware loader for file system

2017-12-11 Thread tien . fong . chee
From: Tien Fong Chee This is file system generic loader which can be used to load the file image from the storage into target such as memory. The consumer driver would then use this loader to program whatever, ie. the FPGA device. Signed-off-by: Tien Fong Chee --- common/Makefile | 1 +

  1   2   >