Re: [U-Boot] [PATCH v2] dm: clk: Remove simple version of clk_get_by_index/name()

2016-07-17 Thread Michal Simek
Hi Simon, On 15.7.2016 17:43, Stephen Warren wrote: > On 07/15/2016 01:02 AM, Michal Simek wrote: >> Simple version of clk_get_by_index() added by: >> "dm: clk: Add a simple version of clk_get_by_index()" >> (sha1: a4b10c088c4f6ef2e2bba33e8cfea369bcbbce44) >> is only working for #clock-cells=<1> b

[U-Boot] [PATCH] test/py: vboot can be run only at Sandbox

2016-07-17 Thread Michal Simek
Getting this error: Zynq> sb load hostfs - 100 /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit Unknown command 'sb' - try 'help' because sb command is present only for Sandbox obj-$(CONFIG_SANDBOX) += host.o that's why mark this test to be run only at Sandbox Signed-off-by: Michal Simek

Re: [U-Boot] PCIe bridges on Jetson TK1

2016-07-17 Thread Thierry Reding
On Sun, Jul 17, 2016 at 02:27:25AM +0200, Andreas Färber wrote: > Hi, > > When I boot my Jetson TK1, by default I get this from lspci: > > 00:02.0 PCI bridge: NVIDIA Corporation TegraK1 PCIe x1 Bridge (rev a1) > 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. > RTL8111/8168/8411 PCI

Re: [U-Boot] [PATCH] armv8: Remove the codes about switching to EL1 before jumping to kernel

2016-07-17 Thread Alexander Graf
On 18.07.16 05:24, Huan Wang wrote: > Hi, Alex, > > > > As there is strong objection to remove the codes about > switching to EL1, I think we have to remain it, do you agree? I agree, yes. > If it is remained, I think your suggestion about > **always** jumping

Re: [U-Boot] [PATCH v2] efi_loader: Add debug output for efi_add_memory_map()

2016-07-17 Thread Alexander Graf
> Am 17.07.2016 um 06:57 schrieb Andreas Färber : > > Tracing the arguments has been helpful for pinpointing overflows. > > Cc: Alexander Graf > Signed-off-by: Andreas Färber Reviewed-by: Alexander Graf Thanks :) Alex ___ U-Boot mailing list

Re: [U-Boot] [PATCH v3 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-17 Thread Kever Yang
Hi Andreas, Thanks for you comments, I will apply them one by one except some confuse below. On 07/18/2016 07:26 AM, Andreas Färber wrote: Hi, Isn't evb short for evaluation board? That makes board board then. ;) Am 15.07.2016 um 10:42 schrieb Kever Yang: RK3399 is a SoC from Rockchip wi

[U-Boot] [PATCH v2 2/5] mpc85xx/powerpc:P1010: Apply errata A006261 for P1010

2016-07-17 Thread Sriram Dash
Apply USB errata A006261 for P1010. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- arch/powerpc/include/asm/config_mpc85xx.h | 1 + arch/powerpc/include/asm/immap_85xx.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/powerpc/include/asm/config_mpc85xx.h b/arch/pow

[U-Boot] [PATCH v2 4/5] mpc85xx/powerpc: P5040: Apply errata A006261 for P5040

2016-07-17 Thread Sriram Dash
Apply USB errata A006261 for P5040. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- drivers/usb/common/fsl-errata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/common/fsl-errata.c b/drivers/usb/common/fsl-errata.c index 122e17b..765b25a 100644 -

[U-Boot] [PATCH v2 5/5] mpc85xx/powerpc: Do not apply errata A006261 for T4160, T1040, T2080

2016-07-17 Thread Sriram Dash
Do not apply errata A006261 for T4160 and T4080(rev 1.0, 2.0), T1040(rev 1.0), T2080(rev 1.0), T2081(rev 1.0). Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- arch/powerpc/include/asm/config_mpc85xx.h | 4 +--- drivers/usb/common/fsl-errata.c | 7 --- 2 files changed,

[U-Boot] [PATCH v2 0/5] Modified the errata A006261 according to endianness

2016-07-17 Thread Sriram Dash
Modifies errata implementation due to the fact that P3041, P5020, and P5040 are all big endian for the USB PHY registers, but they were specified little endian. Applies the errata for P1010, P2041, P5040. Removes the errata for T4160, T1040, T2080. Sriram Dash (5): mpc85xx/powerpc:cpu_init: Modi

[U-Boot] [PATCH v2 3/5] mpc85xx/powerpc: P2041: Apply errata A006261 for P2041

2016-07-17 Thread Sriram Dash
Apply USB errata A006261 for P2041, P2040. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- drivers/usb/common/fsl-errata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/common/fsl-errata.c b/drivers/usb/common/fsl-errata.c index 183bf2b..122e17b 1

[U-Boot] [PATCH v2 1/5] mpc85xx/powerpc:cpu_init: Modified the errata A006261 according to endianness

2016-07-17 Thread Sriram Dash
Modifies errata implementation due to the fact that P3041, P5020, and P5040 are all big endian for the USB PHY registers, but they were specified little endian. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v2: - Adds the errata number to title of patch - Makes separ

Re: [U-Boot] [PATCH v3 0/5] add support for rk3399 soc and evb

2016-07-17 Thread Kever Yang
Hi Heiko, On 07/16/2016 06:15 AM, Heiko Stübner wrote: Hi Kever, Am Freitag, 15. Juli 2016, 16:42:08 schrieb Kever Yang: This patchset add support for rk3399 with ATF based on Rockchip miniloader as secondary bootloader instead of u-boot SPL. Rockchip miniloader init the DRAM and load the ATF

Re: [U-Boot] [PATCH] armv8: Remove the codes about switching to EL1 before jumping to kernel

2016-07-17 Thread Huan Wang
Hi, Alex, As there is strong objection to remove the codes about switching to EL1, I think we have to remain it, do you agree? If it is remained, I think your suggestion about *always* jumping to ep for both switching to AArch64 and AArch32 modes will make the cod

Re: [U-Boot] [PATCH 4/5] mmc: rockchip: add SDHCI driver support for rockchip soc

2016-07-17 Thread Kever Yang
Hi Simon, On 07/15/2016 11:20 AM, Simon Glass wrote: Hi Kever, On 13 July 2016 at 23:08, Kever Yang wrote: Rockchip rk3399 using arasan sdhci-5.1 controller. This patch add the controller support to enable mmc device and tested on rk3399 evb board. Signed-off-by: Kever Yang --- drivers/m

[U-Boot] [PATCH] rockchip: update fastboot usage

2016-07-17 Thread Ziyuan Xu
Introduce how to use fastboot feature on rk3288. Signed-off-by: Ziyuan Xu --- doc/README.rockchip | 26 ++ 1 file changed, 26 insertions(+) diff --git a/doc/README.rockchip b/doc/README.rockchip index 3fc2582..c218a8b 100644 --- a/doc/README.rockchip +++ b/doc/README.ro

[U-Boot] [PATCH v2] mkimage: rockchip: add suport for rk33 serial

2016-07-17 Thread Kever Yang
Add support for rockchip rk33 series Soc like rk3368 and rk3399 Signed-off-by: Kever Yang --- Changes in v2: Using rk3399 instead of rk33xx tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 72621fd..0a072aa 100644 --- a/tools/rkcommo

Re: [U-Boot] [PATCH 2/3] x86: Add a reference to README.efi

2016-07-17 Thread Bin Meng
On Sun, Jul 17, 2016 at 3:23 PM, Simon Glass wrote: > UEFI is commonly used on x86. Add a reference to U-Boot's support for this > in the x86 README. > > Signed-off-by: Simon Glass > --- > > doc/README.x86 | 11 +++ > 1 file changed, 11 insertions(+) > Reviewed-by: Bin Meng But one is

Re: [U-Boot] [PATCH 3/3] x86: Mention running U-Boot in 64-bit mode in the README

2016-07-17 Thread Bin Meng
On Sun, Jul 17, 2016 at 3:23 PM, Simon Glass wrote: > This feature is not supported. Document this, and add some details on how it > might be implemented. > > Signed-off-by: Simon Glass > --- > > doc/README.x86 | 18 ++ > 1 file changed, 18 insertions(+) > Reviewed-by: Bin Meng

Re: [U-Boot] [PATCH 1/3] x86: Mention how to boot a 64-bit kernel from U-Boot

2016-07-17 Thread Bin Meng
On Sun, Jul 17, 2016 at 3:22 PM, Simon Glass wrote: > The README indicates that this is not supported, but this is no-longer true. > Update the text to indicate this and describe the FIT changes required. > > Signed-off-by: Simon Glass > --- > > doc/uImage.FIT/kernel.its | 4 > doc/u

Re: [U-Boot] [PATCH 2/2] ARM64: rockchip: Add initial support for RK3368 based GeekBox

2016-07-17 Thread Andreas Färber
Am 18.07.2016 um 03:06 schrieb Andreas Färber: > The RK3368 is an octa-core Cortex-A53 SoC from Rockchip. > > The GeekBox is a TV box from GeekBuying, based on an MXM3 module. > The module can be used with base boards such as the GeekBox Landingship. > > This adds basic support to chain-load U-Bo

Re: [U-Boot] [PATCH v3 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-17 Thread Andreas Färber
Am 15.07.2016 um 10:42 schrieb Kever Yang: > diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h > new file mode 100644 > index 000..1c13e2e > --- /dev/null > +++ b/include/configs/rk3399_common.h [...] > +#ifndef CONFIG_SPL_BUILD > +#include > + > +#define ENV_MEM_L

[U-Boot] [PATCH 1/2] dts: Import rk3368-geekbox.dts

2016-07-17 Thread Andreas Färber
Unmodified from Linux kernel v4.7-rc6. Signed-off-by: Andreas Färber --- arch/arm/dts/Makefile |3 +- arch/arm/dts/rk3368-geekbox.dts| 319 ++ arch/arm/dts/rk3368.dtsi | 1081 include/dt-bindings/clock/rk3368-cr

[U-Boot] [PATCH 2/2] ARM64: rockchip: Add initial support for RK3368 based GeekBox

2016-07-17 Thread Andreas Färber
The RK3368 is an octa-core Cortex-A53 SoC from Rockchip. The GeekBox is a TV box from GeekBuying, based on an MXM3 module. The module can be used with base boards such as the GeekBox Landingship. This adds basic support to chain-load U-Boot from Rockchip's miniloader. $ ./lollipop_u-boot/tools

[U-Boot] [PATCH 0/2] rockchip: Initial RK3368 and GeekBox support

2016-07-17 Thread Andreas Färber
Hi, This series adds initial support for RK3368 SoC and GeekBox. For more details see the commit message. Will need to be rebased onto Heiko's cleanups and Kever's RK3399 series. Regards, Andreas Cc: Simon Glass Cc: Kever Yang Cc: Heiko Stübner Andreas Färber (2): dts: Import rk3368-geekb

Re: [U-Boot] [PATCH v3 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-17 Thread Andreas Färber
Hi, Isn't evb short for evaluation board? That makes board board then. ;) Am 15.07.2016 um 10:42 schrieb Kever Yang: > RK3399 is a SoC from Rockchip with dual-core Cortex-A72 > and qual-core Cortex-A53 CPU. It supports two USB3.0 quad-core > type-C ports and two USB2.0 EHCI ports. Other interfa

Re: [U-Boot] [PATCH v3 1/5] dts: add support for rkchichip rk3399 soc

2016-07-17 Thread Andreas Färber
Am 15.07.2016 um 10:42 schrieb Kever Yang: > These files are from kernel upstream with some modification > need by uboot: > - chosen with stdout-path to uart2. Please also mention: - clock-frequency for uart2 Cost me quite some time to figure out this was necessary... Regards, Andreas > > Sig

Re: [U-Boot] [PATCH 3/4] rockchip: Use rockchip_get_clk() to obtain the SoC clock

2016-07-17 Thread Anatolij Gustschin
On Sun, 17 Jul 2016 15:23:17 -0600 Simon Glass s...@chromium.org wrote: > The current code picks the first available clock. In U-Boot proper this is > the oscillator device, not the SoC clock device. As a result the HDMI display > does not work. > > Fix this by calling rockchip_get_clk() instead.

[U-Boot] [PATCH 4/4] rockchip: rk3288: Move rockchip_get_cru() out of the driver

2016-07-17 Thread Simon Glass
This function is called from outside the driver. It should be placed into common SoC code. Move it. The same could be done for rk3036 but is not attempted here. Signed-off-by: Simon Glass --- arch/arm/mach-rockchip/rk3288/clk_rk3288.c | 15 +++ drivers/clk/clk_rk3288.c

[U-Boot] [PATCH 2/4] rockchip: Add a way to obtain the main clock device

2016-07-17 Thread Simon Glass
On Rockchip SoCs we typically have a main clock device that uses the Soc clock driver. There is also a fixed clock for the oscillator. Add a function to obtain the core clock. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-rockchip/clock.h | 2 ++ arch/arm/mach-rockchip/rk3288/Makefi

[U-Boot] [PATCH 1/4] dm: clk: Add a way to find a clock by its driver

2016-07-17 Thread Simon Glass
Some SoCs have a single clock device. Provide a way to find it given its driver name. This is handled by the linker so will fail if the name is not found, avoiding strange errors when names change and do not match. It is also faster than a string comparison. Signed-off-by: Simon Glass --- drive

[U-Boot] [PATCH 3/4] rockchip: Use rockchip_get_clk() to obtain the SoC clock

2016-07-17 Thread Simon Glass
The current code picks the first available clock. In U-Boot proper this is the oscillator device, not the SoC clock device. As a result the HDMI display does not work. Fix this by calling rockchip_get_clk() instead. Fixes: 135aa950 (clk: convert API to match reset/mailbox style) Signed-off-by: Si

Re: [U-Boot] [PATCH v2 11/13] dm: spl: mmc: Support raw partitions with CONFIG_BLK

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > Fix up the call in mmc_load_image_raw_partition() to use the correct > function to obtain the MMC device, so that this code can support driver > model. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add new patch to support raw partitions

Re: [U-Boot] [PATCH v2 03/13] dm: Use dm_scan_fdt_dev() directly where possible

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > Quite a few places have a bind() method which just calls dm_scan_fdt_dev(). > We may as well call dm_scan_fdt_dev() directly. Update the code to do this. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add new patch to use dm_scan_fdt_dev(

Re: [U-Boot] [PATCH v2 13/13] dm: blk: Enable CONFIG_BLK if DM_MMC is enabled

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > To speed up conversion to CONFIG_BLK, enable it by default when DM_MMC is > enabled. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add new dm_scan_fdt_dev() function and convert the code > - Drop patches previously applied to u-boot-dm/n

Re: [U-Boot] [PATCH v2 12/13] dm: mmc: Enable DM_MMC_OPS by default with DM_MMC

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > These two options go together and it is best to do the conversion in one > step. So enable DM_MMC_OPS by default if DM_MMC is enabled. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/mmc/Kconfig | 1 + > 1 file changed, 1 ins

Re: [U-Boot] [PATCH v2 07/13] dm: zynq: usb: Convert to CONFIG_DM_USB

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > Convert zynq USB to driver model. Note this is tested on zynq-zybo only. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add missing struct ehci_ctrl to struct zynq_ehci_priv > > arch/arm/Kconfig | 2 + > drivers/usb/host/eh

Re: [U-Boot] [PATCH v2 09/13] dm: socfpga: mmc: Support CONFIG_BLK

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > Update the driver to support using driver model for block devices. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add new patch to support CONFIG_BLK with socfpga > > drivers/mmc/socfpga_dw_mmc.c | 32 +++- >

Re: [U-Boot] [PATCH v2 10/13] dm: usb: Use blk_dread/write() instead of direct calls

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > Update the USB mass storage code to allow it to work with driver model. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add new patch to use blk_dread/write() instead of direct calls > > cmd/usb_mass_storage.c | 4 ++-- > 1 file changed,

Re: [U-Boot] [PATCH v2 06/13] zynq: Increase the early malloc() size

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > This is needed to support driver-model conversion of USB and block devices. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/arm/cpu/armv8/zynqmp/Kconfig | 4 > arch/arm/mach-zynq/Kconfig| 3 +++ > 2 files changed, 7

Re: [U-Boot] [PATCH v2 05/13] net: phy: marvell: Add a missing errno.h header

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > This corrects a build error on zynqmp. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Fix sign-off tag > > drivers/net/phy/marvell.c | 1 + > 1 file changed, 1 insertion(+) Applied to u-boot-dm. _

Re: [U-Boot] [PATCH v2 01/13] dm: core: Add a function to bind child devices

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > We currently use dm_scan_fdt_node() to bind devices. It is an internal > function and it requires the caller to know whether we are pre- or post- > relocation. > > This requirement has become quite common in drivers, so the current function > is not id

Re: [U-Boot] [PATCH v2 04/13] arm: Show early-malloc() usage in bdinfo

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > This is useful information to show how close we are to the limit. At present > it is only available by enabling DEBUG in board_r.c. > > Make it available with the 'bdinfo' command also. > > Note that this affects ARM only. The bdinfo command is differe

Re: [U-Boot] [PATCH v2 02/13] dm: Convert users from dm_scan_fdt_node() to dm_scan_fdt_dev()

2016-07-17 Thread Simon Glass
On 5 July 2016 at 17:10, Simon Glass wrote: > This new function is more convenient for callers, and handles pre-relocation > situations automatically. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add new patch to make use of dm_scan_fdt_dev() > > arch/x86/lib/lpc-uclass.c

Re: [U-Boot] [PATCH 2/2] tools/env: allow negative offsets

2016-07-17 Thread Andreas Fenkart
Hi, 2016-07-14 2:14 GMT+02:00 Stefan Agner : > From: Stefan Agner > > A negative value for the offset is treated as a backwards offset for > from the end of the device/partition for block devices. This aligns > the behavior of the config file with the syntax of CONFIG_ENV_OFFSET > where the funct

Re: [U-Boot] [PATCH 1/2] tools/env: complete environment device config early

2016-07-17 Thread Andreas Fenkart
2016-07-14 2:14 GMT+02:00 Stefan Agner : > From: Stefan Agner > > Currently flash_read completes a crucial part of the environment > device configuration, the device type (mtd_type). This is rather > confusing as flash_io calls flash_read conditionally, and one might > think flash_write, which als

Re: [U-Boot] [PATCH 2/4] tools/env: javadoc for fw_printenv, fw_getenv and fw_parse_script

2016-07-17 Thread Andreas Fenkart
Hi Simon, I sent out a v2 of this series, you should have received by now. Some comments in the context: 2016-07-09 16:39 GMT+02:00 Simon Glass : > On 27 June 2016 at 16:06, Andreas Fenkart > wrote: [snip] >> +/** >> + * fw_printenv - print one or several environment variables > > We normally

Re: [U-Boot] [PATCH 2/2] tools/env: allow negative offsets

2016-07-17 Thread Stefan Agner
On 2016-07-17 06:37, Andreas Fenkart wrote: > Hi, > > 2016-07-14 2:14 GMT+02:00 Stefan Agner : >> From: Stefan Agner >> >> A negative value for the offset is treated as a backwards offset for >> from the end of the device/partition for block devices. This aligns >> the behavior of the config file

Re: [U-Boot] Please pull u-boot-dm

2016-07-17 Thread Tom Rini
On Sun, Jul 17, 2016 at 08:14:47AM -0600, Simon Glass wrote: > Hi Tom, > > On 15 July 2016 at 10:29, Tom Rini wrote: > > On Fri, Jul 15, 2016 at 10:22:36AM -0600, Simon Glass wrote: > >> Hi Tom, > >> > >> On 15 July 2016 at 10:13, Tom Rini wrote: > >> > On Fri, Jul 15, 2016 at 10:08:34AM -0600,

[U-Boot] online wiki page for "fdt" commands full of FDT_ERR_BADMAGIC msgs

2016-07-17 Thread Robert P. J. Day
i'm sure i mentioned this before but the denx wiki page describing the "fdt" command is loaded with pretty much nothing but error messages: http://www.denx.de/wiki/view/DULG/UBootCmdFDT rday -- Robert P. J. Day

Re: [U-Boot] [PATCH 7/9] rockchip: rk3188: Add pinctrl driver

2016-07-17 Thread Simon Glass
Hi Heiko, On 17 July 2016 at 09:47, Heiko Stübner wrote: > Hi Simon, > > Am Sonntag, 17. Juli 2016, 08:13:51 schrieb Simon Glass: >> On 15 July 2016 at 16:17, Heiko Stuebner wrote: >> > Add a driver which supports pin multiplexing setup for the most commonly >> > used peripherals. >> > >> > Sign

Re: [U-Boot] [PATCH 9/9] rockchip: rk3188: Add clock driver

2016-07-17 Thread Simon Glass
Hi Heiko, On 17 July 2016 at 09:33, Heiko Stübner wrote: > Am Sonntag, 17. Juli 2016, 08:13:58 schrieb Simon Glass: >> Hi Heiko, >> >> On 15 July 2016 at 16:17, Heiko Stuebner wrote: >> > Add a driver for setting up and modifying the various PLLs and peripheral >> > clocks on the RK3188. >> > >>

Re: [U-Boot] [PATCH 7/9] rockchip: rk3188: Add pinctrl driver

2016-07-17 Thread Heiko Stübner
Hi Simon, Am Sonntag, 17. Juli 2016, 08:13:51 schrieb Simon Glass: > On 15 July 2016 at 16:17, Heiko Stuebner wrote: > > Add a driver which supports pin multiplexing setup for the most commonly > > used peripherals. > > > > Signed-off-by: Heiko Stuebner > > --- > > > > drivers/pinctrl/Kconfig

Re: [U-Boot] [PATCH 9/9] rockchip: rk3188: Add clock driver

2016-07-17 Thread Heiko Stübner
Am Sonntag, 17. Juli 2016, 08:13:58 schrieb Simon Glass: > Hi Heiko, > > On 15 July 2016 at 16:17, Heiko Stuebner wrote: > > Add a driver for setting up and modifying the various PLLs and peripheral > > clocks on the RK3188. > > > > Signed-off-by: Heiko Stuebner > > --- > > > > arch/arm/inclu

Re: [U-Boot] [PATCH 0/9] rockchip: cosmetics, a fix and first steps on the rk3188

2016-07-17 Thread Simon Glass
Hi Heiko, On 17 July 2016 at 09:20, Heiko Stübner wrote: > Am Sonntag, 17. Juli 2016, 08:14:06 schrieb Simon Glass: >> Hi Heiko, >> >> On 15 July 2016 at 16:17, Heiko Stuebner wrote: >> > I've made some nice progress on using mainline uboot on the rk3188 >> > and would like to dump some first re

Re: [U-Boot] [PATCH 0/9] rockchip: cosmetics, a fix and first steps on the rk3188

2016-07-17 Thread Heiko Stübner
Am Sonntag, 17. Juli 2016, 08:14:06 schrieb Simon Glass: > Hi Heiko, > > On 15 July 2016 at 16:17, Heiko Stuebner wrote: > > I've made some nice progress on using mainline uboot on the rk3188 > > and would like to dump some first results. > > > > Right now I can use uboot on the rk3188 with the

Re: [U-Boot] [PATCH v3 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-17 Thread Andreas Färber
Am 15.07.2016 um 10:42 schrieb Kever Yang: > diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c > b/board/rockchip/evb_rk3399/evb-rk3399.c > new file mode 100644 > index 000..357b08b > --- /dev/null > +++ b/board/rockchip/evb_rk3399/evb-rk3399.c > @@ -0,0 +1,41 @@ > +/* > + * (C) Copyright 20

Re: [U-Boot] [PATCH v3 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-17 Thread Andreas Färber
Am 15.07.2016 um 10:42 schrieb Kever Yang: > diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig > index d3f5ffd..8499692 100644 > --- a/arch/arm/mach-rockchip/Kconfig > +++ b/arch/arm/mach-rockchip/Kconfig > @@ -9,6 +9,10 @@ config ROCKCHIP_RK3288 > video interface

Re: [U-Boot] MinnowBoard Turbot U-boot is in 64-bit mode or 32-bit mode

2016-07-17 Thread Simon Glass
Hi, On 15 July 2016 at 04:57, vinoth eswaran wrote: > Hi Mr.Simon Glass, > > Currently I am working on an embedded project with Minnowmax Turbot. > > I am checking the performance of different compression algorithms that can > be employed in FIT image. I came across Brotli and felt that it might

Re: [U-Boot] MPC8347 Initial Boot problems

2016-07-17 Thread Simon Glass
Hi, On 30 June 2016 at 12:40, Gardner, Austin (GE Transportation) wrote: > Still hoping for a response. I have not had any luck trying to get this up > and running. Any advice would be very helpful. > Do you have any debug facilities? Maybe a BDI2000? It could be a board fault or something wron

Re: [U-Boot] [PATCH] dm: clk: Remove simple version of clk_get_by_index()

2016-07-17 Thread Simon Glass
Hi Michal, On 15 July 2016 at 00:01, Michal Simek wrote: > On 14.7.2016 20:17, Stephen Warren wrote: >> On 07/14/2016 05:24 AM, Michal Simek wrote: >>> Simple version of clk_get_by_index() added by: >>> "dm: clk: Add a simple version of clk_get_by_index()" >>> (sha1: a4b10c088c4f6ef2e2bba33e8cfea

Re: [U-Boot] [PATCH 9/9] rockchip: rk3188: Add clock driver

2016-07-17 Thread Simon Glass
Hi Heiko, On 15 July 2016 at 16:17, Heiko Stuebner wrote: > Add a driver for setting up and modifying the various PLLs and peripheral > clocks on the RK3188. > > Signed-off-by: Heiko Stuebner > --- > arch/arm/include/asm/arch-rockchip/cru_rk3188.h | 186 ++ > drivers/clk/Makefile

Re: [U-Boot] [PATCH] mkimage: rockchip: add suport for rk33 serial

2016-07-17 Thread Simon Glass
Hi Andreas, On 16 July 2016 at 10:04, Andreas Färber wrote: > Simon, > > Am 15.07.2016 um 05:56 schrieb Simon Glass: >> On 14 July 2016 at 21:20, Simon Glass wrote: >>> On 13 July 2016 at 21:51, Kever Yang wrote: Add support for rockchip rk33 series Soc like rk3368 and rk3399 Sig

Re: [U-Boot] Please pull u-boot-dm

2016-07-17 Thread Simon Glass
Hi Tom, On 15 July 2016 at 10:29, Tom Rini wrote: > On Fri, Jul 15, 2016 at 10:22:36AM -0600, Simon Glass wrote: >> Hi Tom, >> >> On 15 July 2016 at 10:13, Tom Rini wrote: >> > On Fri, Jul 15, 2016 at 10:08:34AM -0600, Simon Glass wrote: >> >> Hi Tom, >> >> >> >> On 15 July 2016 at 09:46, Tom Ri

Re: [U-Boot] [PATCH 0/9] rockchip: cosmetics, a fix and first steps on the rk3188

2016-07-17 Thread Simon Glass
Hi Heiko, On 15 July 2016 at 16:17, Heiko Stuebner wrote: > I've made some nice progress on using mainline uboot on the rk3188 > and would like to dump some first results. > > Right now I can use uboot on the rk3188 with the Rockchip binary ddr init, > similar to what barebox does and can even ne

Re: [U-Boot] [PATCH 8/9] rockchip: rk3188: Bring in rk3066/rk3188 clock bindings

2016-07-17 Thread Simon Glass
Hi Heiko, On 15 July 2016 at 16:17, Heiko Stuebner wrote: > Bring in required device clock binding files from Linux. > The clock trees for rk3066 and rk3188 are largely similar, which makes > them share the common parts in a shared header. While we focus on rk3188 > for now, bring in both headers

Re: [U-Boot] [PATCH 7/9] rockchip: rk3188: Add pinctrl driver

2016-07-17 Thread Simon Glass
Hi Heiko, On 15 July 2016 at 16:17, Heiko Stuebner wrote: > Add a driver which supports pin multiplexing setup for the most commonly > used peripherals. > > Signed-off-by: Heiko Stuebner > --- > drivers/pinctrl/Kconfig | 9 + > drivers/pinctrl/rockchip/Makefile | 1

Re: [U-Boot] [PATCH 6/9] rockchip: rk3188: Add header files for PMU and GRF

2016-07-17 Thread Simon Glass
Hi Heiko, On 15 July 2016 at 16:17, Heiko Stuebner wrote: > PMU is the power management unit and GRF is the general register file. Both > are heavily used in U-Boot. Add header files with register definitions. > > Signed-off-by: Heiko Stuebner > --- > arch/arm/include/asm/arch-rockchip/grf_rk31

Re: [U-Boot] [PATCH 5/9] rockchip: rk3288: fix FREF_MIN_HZ constant

2016-07-17 Thread Simon Glass
On 15 July 2016 at 16:17, Heiko Stuebner wrote: > According to the TRM the minimum FREF frequency is 269kHz not MHz. > Adapt the constant accordingly. > > Signed-off-by: Heiko Stuebner > --- > drivers/clk/clk_rk3288.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Simon Glass

Re: [U-Boot] [PATCH 3/9] cosmetic: rockchip: sort socs according to numbers

2016-07-17 Thread Simon Glass
On 15 July 2016 at 16:17, Heiko Stuebner wrote: > Having some sort of ordering proofed helpful in a lot of other places > already. So for a larger number of rockchip socs it might be helpful > as well instead of an ever increasing unsorted list. > > Signed-off-by: Heiko Stuebner > --- > arch/arm

Re: [U-Boot] [PATCH 1/9] cosmetic: rockchip: rk3288: pinctrl: fix config symbol naming

2016-07-17 Thread Simon Glass
On 15 July 2016 at 16:17, Heiko Stuebner wrote: > The rk3288 pinctrl is very specific to this soc, so should > not hog the generic rockchip naming. > > Signed-off-by: Heiko Stuebner > --- > configs/chromebook_jerry_defconfig | 2 +- > configs/firefly-rk3288_defconfig | 2 +- > configs/rock2_de

Re: [U-Boot] [PATCH 2/9] cosmetic: rockchip: rk3036: pinctrl: fix config symbol naming

2016-07-17 Thread Simon Glass
On 15 July 2016 at 16:17, Heiko Stuebner wrote: > Rockchip socs are always named rk in all places, as also shown > by the naming of the rk3036 pinctrl file itself. > Therefore also name the config symbol according to this scheme. > > Signed-off-by: Heiko Stuebner > --- > configs/evb-rk3036_d

Re: [U-Boot] [PATCH 4/9] cosmetic: rockchip: rk3288: rename rkclk_configure_cpu

2016-07-17 Thread Simon Glass
On 15 July 2016 at 16:17, Heiko Stuebner wrote: > The function is very specific to the rk3288 in its arguments > referencing the rk3288 cru and grf and every other rockchip soc > has differing cru and grf registers. So make that function naming > explicit. > > Signed-off-by: Heiko Stuebner > ---

Re: [U-Boot] [PATCH v3 4/5] mmc: rockchip: add SDHCI driver support for rockchip soc

2016-07-17 Thread Simon Glass
Hi Kever, On 15 July 2016 at 02:42, Kever Yang wrote: > Rockchip rk3399 using arasan sdhci-5.1 controller. > This patch add the controller support to enable mmc device and tested on > rk3399 evb board. > > Signed-off-by: Kever Yang > --- > > Changes in v3: None > Changes in v2: None > > drivers

Re: [U-Boot] [PATCH v3 3/5] config: add config file for evb-rk3399

2016-07-17 Thread Simon Glass
On 15 July 2016 at 02:42, Kever Yang wrote: > This patch add basic config option for evb-rk3399 board. > > Signed-off-by: Kever Yang > --- > > Changes in v3: None > Changes in v2: None > > configs/evb-rk3399_defconfig | 32 > 1 file changed, 32 insertions(+) > c

Re: [U-Boot] [PATCH v2] rockchip: sdram: Fix register layout for Linux

2016-07-17 Thread Simon Glass
On 15 July 2016 at 10:33, John Keeping wrote: > The ChromeOS kernel reads the RAM settings from PMU_SYS_REG2 and expects > the bootloader to store the necessary information there. We're using > the same register to pass the same information between the SPL and > U-Boot but in a slightly different

Re: [U-Boot] [PATCH v3 1/5] dts: add support for rkchichip rk3399 soc

2016-07-17 Thread Simon Glass
Hi Kever, On 15 July 2016 at 02:42, Kever Yang wrote: > These files are from kernel upstream with some modification > need by uboot: > - chosen with stdout-path to uart2. Acked-by: Simon Glass Please can you fix the typo in the subject? > > Signed-off-by: Kever Yang > --- > > Changes in v3:

Re: [U-Boot] [PATCH v3 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-17 Thread Simon Glass
On 15 July 2016 at 02:42, Kever Yang wrote: > RK3399 is a SoC from Rockchip with dual-core Cortex-A72 > and qual-core Cortex-A53 CPU. It supports two USB3.0 > type-C ports and two USB2.0 EHCI ports. Other interfaces > are very like RK3288, the DRAM are 32bit width address > and support address fro

Re: [U-Boot] [PATCH 8/9] power: pmic: add Ricoh RN5T567 PMIC support

2016-07-17 Thread Simon Glass
Hi Stefan, On 14 July 2016 at 22:43, Stefan Agner wrote: > Hi Simon, > > On 2016-07-14 20:19, Simon Glass wrote: >> Hi Stefan, >> >> On 13 July 2016 at 00:10, Stefan Agner wrote: >>> On 2016-07-03 16:18, Simon Glass wrote: Hi, On 3 July 2016 at 13:33, Stefan Agner wrote: > Fr

Re: [U-Boot] [PATCH] spl: Fix compilation warnings for arm64

2016-07-17 Thread Simon Glass
Hi Michal, On 15 July 2016 at 00:48, Michal Simek wrote: > Make code 64bit aware. > > Warnings: > +../arch/arm/lib/spl.c: In function ‘jump_to_image_linux’: > +../arch/arm/lib/spl.c:63:3: warning: cast to pointer from integer of > different size [-Wint-to-pointer-cast] > +../common/spl/spl_fat.c:

Re: [U-Boot] [PATCH 2/2] x86: Add theadorable-x86-dfi-bt700 board support

2016-07-17 Thread Simon Glass
On 13 July 2016 at 00:04, Stefan Roese wrote: > This patch adds support for the BayTrail based theadorable-x86-dfi-bt700 > board which uses the DFI BT700 BayTrail Qseven SoM on a custom baseboard. > The main difference to the DFI baseboard is, that it isn't equipped > with a Super IO chip and uses

Re: [U-Boot] [PATCH v2] libfdt: Introduce new ARCH_FIXUP_FDT option

2016-07-17 Thread Simon Glass
On 15 July 2016 at 01:35, Michal Simek wrote: > Add new Kconfig option to disable arch_fixup_fdt() calls for cases where > U-Boot shouldn't update memory setup in DTB file. > One example of usage of this option is to boot OS with different memory > setup than U-Boot use. > > Signed-off-by: Michal

Re: [U-Boot] [PATCH 2/3] serial: zynq: Read information about clock from DT

2016-07-17 Thread Simon Glass
On 14 July 2016 at 07:19, Michal Simek wrote: > Read information about clock frequency from DT. > > Signed-off-by: Michal Simek > --- > > drivers/serial/serial_zynq.c | 28 +++- > 1 file changed, 27 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH 1/2] x86: Add DFI BT700 BayTrail board support

2016-07-17 Thread Simon Glass
Hi Stefan, On 13 July 2016 at 00:04, Stefan Roese wrote: > This patch adds support for the DFI BayTrail BT700 QSeven SoM installed > on the DFI Q7X-151 baseboard. The baseboard is equipped with the Nuvoton > NCT6102D Super IO chip providing the UART as console. > > Signed-off-by: Stefan Roese >

Re: [U-Boot] [PATCH 2/4] tools/env: javadoc for fw_printenv, fw_getenv and fw_parse_script

2016-07-17 Thread Simon Glass
+Marek Hi Andreas, On 16 July 2016 at 09:35, Andreas Fenkart wrote: > Hi Simon, > > I sent out a v2 of this series, you should have received by now. Some > comments in the context: > > 2016-07-09 16:39 GMT+02:00 Simon Glass : >> On 27 June 2016 at 16:06, Andreas Fenkart >> wrote: > > [snip] > >

Re: [U-Boot] [PATCH v2] efi_loader: Add debug output for efi_add_memory_map()

2016-07-17 Thread Andreas Färber
Am 17.07.2016 um 06:57 schrieb Andreas Färber: > Tracing the arguments has been helpful for pinpointing overflows. > > Cc: Alexander Graf > Signed-off-by: Andreas Färber > --- > lib/efi_loader/efi_memory.c | 3 +++ > 1 file changed, 3 insertions(+) v2 uses debug(), rebased on the DEBUG_EFI cle

[U-Boot] more "#if 0" pedantry related to moving macros in header files

2016-07-17 Thread Robert P. J. Day
my apologies for yet more pedantic nitpickery, this time related to how to properly move/locate macro definitions in header files. i notice this bit in include/mpc8xx.h (note the two tests of "#if 0"): /*--- * TBSCR - Time Bas

[U-Boot] what is with the "#if 0"ed part of ARP hdr in include/net.h?

2016-07-17 Thread Robert P. J. Day
was poking around in include/net.h, and noticed this snippet: /* * Address Resolution Protocol (ARP) header. */ struct arp_hdr { ... snip ... #define ar_sha ar_data[0] #define ar_spa ar_data[ARP_HLEN] #define ar_tha ar_data[ARP_HLEN + ARP_PLEN] #define ar_tpa

Re: [U-Boot] Running u-boot on a x86 board

2016-07-17 Thread Simon Glass
Hi, On 16 July 2016 at 23:59, Bin Meng wrote: > +Simon, ML, > > On Fri, Jul 15, 2016 at 6:48 PM, Nicolae Rosia > wrote: >> Hello, >> >> I would like to run u-boot instead of grub on an Advantech UNO-2473G >> board with a Intel ATOM CPU 3845. >> Is it possible with the current u-boot to be loade

[U-Boot] [PATCH 3/3] x86: Mention running U-Boot in 64-bit mode in the README

2016-07-17 Thread Simon Glass
This feature is not supported. Document this, and add some details on how it might be implemented. Signed-off-by: Simon Glass --- doc/README.x86 | 18 ++ 1 file changed, 18 insertions(+) diff --git a/doc/README.x86 b/doc/README.x86 index 04e7a54..a2d6994 100644 --- a/doc/README

[U-Boot] [PATCH 2/3] x86: Add a reference to README.efi

2016-07-17 Thread Simon Glass
UEFI is commonly used on x86. Add a reference to U-Boot's support for this in the x86 README. Signed-off-by: Simon Glass --- doc/README.x86 | 11 +++ 1 file changed, 11 insertions(+) diff --git a/doc/README.x86 b/doc/README.x86 index 7d694b1..04e7a54 100644 --- a/doc/README.x86 +++ b/d

[U-Boot] [PATCH 1/3] x86: Mention how to boot a 64-bit kernel from U-Boot

2016-07-17 Thread Simon Glass
The README indicates that this is not supported, but this is no-longer true. Update the text to indicate this and describe the FIT changes required. Signed-off-by: Simon Glass --- doc/uImage.FIT/kernel.its | 4 doc/uImage.FIT/x86-fit-boot.txt | 14 +- 2 files changed, 9