Re: [U-Boot] [PATCH v1] env_mmc: configure environment offsets via device tree

2017-02-21 Thread Igor Grinberg
Hi Philipp, Simon, On 02/22/17 05:59, Simon Glass wrote: > Hi, > > On 20 February 2017 at 02:18, Dr. Philipp Tomsich > wrote: >> >> On 20 Feb 2017, at 08:22, Igor Grinberg wrote: >> >> That sounds too odd... >> DT's purpose is to

Re: [U-Boot] [PATCH] arm: am57xx: Update bootloader partition size

2017-02-21 Thread Felipe Balbi
Hi, Sam Protsenko writes: > From: Praneeth Bajjuri > > The current size of u-boot is already ~840 KiB. > > This patch is to increase bootloader partition size up to 1 MiB > and thereby fix flashing error like below: > > sending 'bootloader' (840

[U-Boot] Complete verified uboot example

2017-02-21 Thread Ron Brash
Hello all, I am adding verified kernel support on a board we are using and I am struggling to fully understand all of the concepts and steps required to pull everything together (on ARM, using ZImages and booting with a working DTB on 4.4.3x). I also looked at the test script inside of examples,

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-21 Thread Felipe Balbi
Hi, Lukasz Majewski writes: >> Lukasz Majewski writes: >> >> > >> drivers/usb/gadget/f_dfu.c | 2 +- >> >> > >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> > >> >> >> > >> diff --git a/drivers/usb/gadget/f_dfu.c >> >> > >>

[U-Boot] Question about bootp structure pack

2017-02-21 Thread rickou
Hi everyone, I’m using u-boot-2015.07 in one of my project based on vpac270 soc module. u-boot is well configured and build is fine without error. Gcc is v3.4.5 and glibc v2.3.6 built by crosstool 0.43 for arm-softfloat-linux-gnu My problem is when i use DHCP command to retrieve a file from my

Re: [U-Boot] [PATCH] arm: am57xx: Update bootloader partition size

2017-02-21 Thread Bajjuri, Praneeth
On 2/21/2017 3:48 PM, Felipe Balbi wrote: Hi, Sam Protsenko writes: On Tue, Feb 21, 2017 at 10:35 PM, Felipe Balbi wrote: Hi, Sam Protsenko writes: From: Praneeth Bajjuri The

Re: [U-Boot] [PATCH] arm: am57xx: Update bootloader partition size

2017-02-21 Thread Felipe Balbi
Hi, Sam Protsenko writes: > On Tue, Feb 21, 2017 at 10:35 PM, Felipe Balbi > wrote: >> >> Hi, >> >> Sam Protsenko writes: >>> From: Praneeth Bajjuri >>> >>> The current size of u-boot is

Re: [U-Boot] [PATCH] arm: am57xx: Update bootloader partition size

2017-02-21 Thread Bajjuri, Praneeth
On 2/21/2017 1:51 PM, Sam Protsenko wrote: From: Praneeth Bajjuri The current size of u-boot is already ~840 KiB. This patch is to increase bootloader partition size up to 1 MiB and thereby fix flashing error like below: sending 'bootloader' (840 KB)... OKAY [

[U-Boot] [PATCH v7 8/9] STiH410-B2260: Add device tree

2017-02-21 Thread patrice.chotard
From: Patrice Chotard This device tree has been extracted from v4.9 kernel Signed-off-by: Patrice Chotard Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- arch/arm/dts/Makefile

Re: [U-Boot] [PATCH 0/7] add support for rk3328 SoC

2017-02-21 Thread Simon Glass
Hi Kever, On 17 February 2017 at 01:07, Kever Yang wrote: > This patchset is to support rk3328 Soc, including some basic > driver like clock, pinctrl, sysreset and etc. This version > enables eMMC and sd-card boot, USB and MAC driver is not ready. > > RK3328 is a

Re: [U-Boot] [PATCH] arm: dra7xx: Update bootloader partition size

2017-02-21 Thread Bajjuri, Praneeth
On 2/21/2017 1:51 PM, Sam Protsenko wrote: The current size of U-Boot is already ~840 KiB. This patch is to increase bootloader partition size up to 1 MiB and thereby fix flashing error. Also fix U-Boot environment address on eMMC ("reserved" partition), as it's being shifted by above

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-21 Thread Felipe Balbi
Hi, Lukasz Majewski writes: >> Lukasz Majewski writes: >> >> Lukasz Majewski writes: >> >> >> > >> drivers/usb/gadget/f_dfu.c | 2 +- >> >> >> > >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> >> > >> >> >> >> > >> diff --git

[U-Boot] [PATCH v2 0/2] Add support for only one CS in fsl Quad SPI

2017-02-21 Thread Suresh Gupta
SOC’s like LS1012A has only one chip select signal out to connect with flash and the 64M flash is attached to it. On boards the same CS is connected to different flash via mux. So at one time only one flash is active and it is not possible to scan other flash at run time. Suresh Gupta (2):

[U-Boot] [PATCH v6 8/9] STiH410-B2260: Add device tree

2017-02-21 Thread patrice.chotard
From: Patrice Chotard This device tree has been extracted from v4.9 kernel Signed-off-by: Patrice Chotard Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- arch/arm/dts/Makefile

[U-Boot] [PATCH v2 1/2] spi: fsl_qspi: Add support for one chip select

2017-02-21 Thread Suresh Gupta
SOC’s like LS1012A has only one chip select signal out to connect with flash. So at one time only one flash is active and it is not possible to scan other flash at run time. Signed-off-by: Suresh Gupta --- drivers/spi/fsl_qspi.c | 5 - 1 file changed, 4 insertions(+),

Re: [U-Boot] [PATCH v2] driver: net: ldpaa: Update priv->phydev after free()

2017-02-21 Thread Er Krishna
Hi Guys, I want to understand cpu release command of u-boot and its implementation. When we do cpu release the satndalone application (may be kernel or so) starts running on particular processor. How does it happens ? Can anyone pls let me know this logic and point me in U -boot code for this

[U-Boot] [PATCH v2 2/2] armv8: dts: fsl-ls1012a: Change number of CS in SPI node

2017-02-21 Thread Suresh Gupta
LS1012A has only one chip select signal out to connect with flash Signed-off-by: Suresh Gupta --- arch/arm/dts/fsl-ls1012a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/fsl-ls1012a.dtsi b/arch/arm/dts/fsl-ls1012a.dtsi index

Re: [U-Boot] [PATCH v3] spi: ich: Configure SPI BIOS parameters

2017-02-21 Thread Stefan Roese
Hi Simon, On 22.02.2017 04:59, Simon Glass wrote: What if the board mounts a flash with a different SPI flash command set? Will this work? Frankly, I can't tell for sure but its very likely. As you might have guessed, these defines are taken from coreboot where they are usually board

Re: [U-Boot] [PATCH V2 11/20] wdog: Add the watchdog driver for MX7ULP.

2017-02-21 Thread Peng Fan
On Sun, Feb 12, 2017 at 10:25:02AM +0100, Stefano Babic wrote: > > >On 27/12/2016 11:04, Peng Fan wrote: >> From: Ye Li >> >> This driver implements the HW WATCHDOG functions. Which needs >> to set CONFIG_HW_WATCHDOG to use them. This is disabled by default for >> mx7ulp. >> >>

Re: [U-Boot] [PATCH V2 05/20] imx: mx7ulp: Add soc level initialization codes and functions

2017-02-21 Thread Peng Fan
On Sun, Feb 12, 2017 at 10:19:41AM +0100, Stefano Babic wrote: >Hi Peng, > >On 27/12/2016 11:04, Peng Fan wrote: >> Implement soc level functions to get cpu rev, reset cause, enable cache, >> etc. We will disable the wdog and init clocks in s_init at very early u-boot >> phase. >> >> Since the we

Re: [U-Boot] [PATCH v1 0/2] disk: efi: allow gap before partition entries

2017-02-21 Thread Rask Ingemann Lambertsen
On Fri, Feb 17, 2017 at 06:31:29PM +0100, Philipp Tomsich wrote: > Motivated by the the SPL layout for SD/MMC devices on Allwinner SoCs > (the SPL code needs to reside an 8K offset into the device), we add > support for leaving a gap between the MBR (LBA#0), GPT header (LBA#1) > and GPT partition

Re: [U-Boot] [PATCH v1 02/11] sunxi: add pinctrl (UCLASS_PINCTRL) support for sunxi and tie back into GPIO

2017-02-21 Thread Chen-Yu Tsai
On Tue, Feb 21, 2017 at 5:39 PM, Dr. Philipp Tomsich wrote: > Chen, It's ChenYu. :) > > On 21 Feb 2017, at 04:48, Chen-Yu Tsai wrote: > > On Sat, Feb 18, 2017 at 1:52 AM, Philipp Tomsich > wrote: > >

Re: [U-Boot] [PATCH] arm: dra7xx: Update bootloader partition size

2017-02-21 Thread Lokesh Vutla
+ jj On Wednesday 22 February 2017 01:21 AM, Sam Protsenko wrote: > The current size of U-Boot is already ~840 KiB. > > This patch is to increase bootloader partition size up to 1 MiB > and thereby fix flashing error. > > Also fix U-Boot environment address on eMMC ("reserved" partition), as >

Re: [U-Boot] [PATCH] spi: cadence_qspi_apb: Add trigger-base DT bindings from Linux

2017-02-21 Thread Vignesh R
On Tuesday 21 February 2017 10:20 PM, Rush, Jason A. wrote: > The socfpga arch uses a different value for the indaddrtrig reg than > the ahbbase address. Adopting the Linux DT bindings separates the > ahbbase and trigger-base addresses, allowing the trigger-base to be+ > set correctly on the

Re: [U-Boot] of-platdata address map decode for 64-bits

2017-02-21 Thread Simon Glass
Hi Kever, On 21 February 2017 at 06:08, Kever Yang wrote: > Hi Simon, > > On 02/14/2017 01:31 PM, Simon Glass wrote: >> >> Hi Kever, >> >> On 13 February 2017 at 01:13, Kever Yang >> wrote: >>> >>> Hi Simon, >>> >>> On 02/08/2017 01:10 PM,

Re: [U-Boot] [PATCH v1] serial: ns16550: Add fractional divider for Intel MID

2017-02-21 Thread Simon Glass
Hi Andy, On 21 February 2017 at 05:59, Andy Shevchenko wrote: > The change introduces three integer Kconfig options > SERIAL_DIV_Mmultiplier > SERIAL_DIV_Ndivisor > SERIAL_DIV_PS prescaler divisor > to set default configuration

Re: [U-Boot] rockchip: rk3288: init malloc_base, limit, ptr before spl_init

2017-02-21 Thread Simon Glass
Hi Eddie, On 21 February 2017 at 01:15, Eddie Cai wrote: > Andrew F. Davis's below patch broke rk3288 based board. that is because we > call > spl_init in board_init_f which is at very early stage. What Andrew want to fix > is calling spl_init very late. That patch

Re: [U-Boot] [PATCH v3 15/17] board: BuR: use get_nand_dev_by_index()

2017-02-21 Thread Simon Glass
On 21 February 2017 at 04:53, Hannes Schmelzer wrote: >> As part of preparation for nand DM conversion the new API has been >> introduced to remove direct access to nand_info array. So, use it here >> instead of accessing to nand_info array directly. >> >> Cc:

Re: [U-Boot] [PATCH] binman: Explicitly request python2 instead of python from env

2017-02-21 Thread Simon Glass
On 20 February 2017 at 11:41, Paul Kocialkowski wrote: > We now live in a world where python cannot be assumed to be python2. > As a matter of fact, it is no longer the default for python on many > GNU/Linux distributions. > > Running binman with python3 fails, so explicitly

Re: [U-Boot] [PATCH v3 1/2] common: image: update boot_get_fpga to support arbitrary fpga image

2017-02-21 Thread Simon Glass
Hi Dalon, On 20 February 2017 at 07:56, Dalon Westergreen wrote: > The implementation of boot_get_fpga only supported one fpga family. > This modification allows for any of the fpga devices supported by > fpga_load to be used. Can you add some docs somewhere to explain how

Re: [U-Boot] [PATCH v1] env_mmc: configure environment offsets via device tree

2017-02-21 Thread Simon Glass
Hi, On 20 February 2017 at 02:18, Dr. Philipp Tomsich wrote: > > On 20 Feb 2017, at 08:22, Igor Grinberg wrote: > > That sounds too odd... > DT's purpose is to describe the h/w... and that does not look so... > We also, have a dt

Re: [U-Boot] [PATCH] rockchip: firefly: configs: add a new config to keep non-of-platdata

2017-02-21 Thread Simon Glass
Hi Jacob, On 20 February 2017 at 03:26, Jacob Chen wrote: > The firefly config have been changed to use SPL_BACK_TO_BROM, but we also > want keep > CONFIG_SPL_OF_PLATDATA as an example. > > So add this separate defconfig to show how both way works. > > Signed-off-by:

Re: [U-Boot] dts: rk3036: add sdmmc for rk3036

2017-02-21 Thread Simon Glass
On 19 February 2017 at 23:03, Eddie Cai wrote: > rk3036 support sdmmc, add dts node to support it. > > Signed-off-by: Eddie Cai > --- > arch/arm/dts/rk3036.dtsi | 13 + > 1 file changed, 13 insertions(+) Acked-by: Simon Glass

Re: [U-Boot] Driver-model - Issue with early device_probe

2017-02-21 Thread Simon Glass
Hi Suneel, On 17 February 2017 at 17:44, Suneel Garapati wrote: > Hi All, > Request for help on the below issue. > > Hi Simon, > As I suppose it is related to driver-model in u-boot. > > One of the boards at Cavium has SPI as PCI device and I am trying to > enable

Re: [U-Boot] rockchip: tinker: configs: use correct mmc instance as boot target device

2017-02-21 Thread Simon Glass
On 19 February 2017 at 20:08, Eddie Cai wrote: > We are using wrong mmc instance as boot target device now. below Jaehoon > Chung's > patch use mmc alias which correct it. That make tinker board can not find mmc > device. So give it correct mmc device instance. > >

Re: [U-Boot] dts: rk3399: add mmc alias for rk3399

2017-02-21 Thread Simon Glass
On 19 February 2017 at 23:02, Eddie Cai wrote: > add mmc alias for rk3399 > > Signed-off-by: Eddie Cai > --- > arch/arm/dts/rk3399.dtsi | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Simon Glass

Re: [U-Boot] [PATCH v2] armv8: spl: Call spl_relocate_stack_gd for ARMv8

2017-02-21 Thread Simon Glass
Hi, On 17 February 2017 at 16:41, André Przywara wrote: > On 17/02/17 23:37, Philipp Tomsich wrote: > > Hi, > >> As part of the startup process for boards using the SPL, we need to >> call spl_relocate_stack_gd. This is needed to set up malloc with its >> DRAM buffer. > >

Re: [U-Boot] [PATCH v1] dtoc: make ScanTree recurse into subnodes

2017-02-21 Thread Simon Glass
Hi Philipp, On 17 February 2017 at 10:24, Philipp Tomsich wrote: > Previously, dtoc could only process the top-level nodes which led to > device nodes in hierarchical trees to be ignored. E.g. the mmc0 node > in the following example would be ignored, as

Re: [U-Boot] [PATCH v3] spi: ich: Configure SPI BIOS parameters

2017-02-21 Thread Simon Glass
Hi, On 13 February 2017 at 01:45, Bin Meng wrote: > Hi Stefan, > > On Fri, Feb 10, 2017 at 6:17 PM, Stefan Roese wrote: >> Hi Bin, >> >> On 10.02.2017 06:45, Bin Meng wrote: >> >> >> >> @@ -127,6 +120,44 @@ struct spi_trans { #define SPI_OPCODE_WREN

Re: [U-Boot] [PATCH v1 1/2] part_efi: support padding between the GPT header and partition entries

2017-02-21 Thread Simon Glass
Hi, On 17 February 2017 at 10:31, Philipp Tomsich wrote: > Some architectures require their SPL loader at a fixed address within > the first 16KB of the disk. To avoid an overlap with the partition > entries of the EFI partition table, the first safe offset

Re: [U-Boot] x86: SecureBoot: Bay Trail

2017-02-21 Thread Simon Glass
Hi Markus, On 20 February 2017 at 02:10, Markus Valentin wrote: > Hi, > > On Fri, 2017-02-17 at 19:58 +0800, Bin Meng wrote: >> On Fri, Feb 17, 2017 at 5:26 PM, Markus Valentin wrote: >> > >> > Hi, >> > >> > i'm implementing Secure Boot with U-Boot on a Intel Atom

Re: [U-Boot] Veyron-speedy u-boot

2017-02-21 Thread Simon Glass
Hi Tomeu, On 17 February 2017 at 03:36, Tomeu Vizoso wrote: > On 17 February 2017 at 10:18, Riley Baird wrote: >> Hi Tomeu and Simon, >> >> Thanks for giving me pointers on how the system works and how to get >> u-boot onto it. I'll try and get it

Re: [U-Boot] [PATCH] rockchip: set scan_dev_for_boot_part env for rockchip SoC

2017-02-21 Thread Simon Glass
Hi Eddie, On 17 February 2017 at 00:57, Eddie Cai wrote: > Auto write GPT table if fail to get GPT table when scan_dev_for_boot_part > > Signed-off-by: Eddie Cai > --- > arch/arm/mach-rockchip/rk3036-board.c | 20 ++- >

Re: [U-Boot] [PATCH 2/2] rsa: Fix deprecated warnings for OpenSSL 1.1.x

2017-02-21 Thread Simon Glass
On 13 February 2017 at 02:00, Jelle van der Waa wrote: > ERR_remove_thread_state is deprecated in OpenSSL 1.1.x and does not do > anything anymore. Thread initialisation and deinitialisation is now > handled by the OpenSSL library. > > Signed-off-by: Jelle van der Waa

Re: [U-Boot] [PATCH v3 01/16] dm: allow limiting pre-reloc markings to spl or tpl

2017-02-21 Thread Simon Glass
Hi Heiko, On 16 February 2017 at 17:36, Heiko Stübner wrote: > > Hi Simon, > > Am Montag, 6. Februar 2017, 07:34:54 CET schrieb Simon Glass: > > On 3 February 2017 at 08:09, Heiko Stuebner wrote: > > > Right now the u-boot,dm-pre-reloc flag will make each

Re: [U-Boot] [PATCH] Makefile: print warning if CONFIG_SYS_EXTRA_OPTIONS is used

2017-02-21 Thread Simon Glass
Hi, On 21 February 2017 at 16:16, Maxime Ripard wrote: > On Sat, Feb 18, 2017 at 03:24:53PM +0900, Masahiro Yamada wrote: >> The prompt of this option is marked "DEPRECATED" in capital letters, >> and its help clearly says: >> This option was prepared for the

Re: [U-Boot] [PATCH] Makefile: print warning if CONFIG_SYS_EXTRA_OPTIONS is used

2017-02-21 Thread Masahiro Yamada
2017-02-22 8:16 GMT+09:00 Maxime Ripard : > On Sat, Feb 18, 2017 at 03:24:53PM +0900, Masahiro Yamada wrote: >> The prompt of this option is marked "DEPRECATED" in capital letters, >> and its help clearly says: >> This option was prepared for the smooth

[U-Boot] [PATCH 2/2] arm64: booti: allow to place kernel image anywhere in physical memory

2017-02-21 Thread Masahiro Yamada
At first, the ARM64 Linux booting requirement recommended that the kernel image be placed text_offset bytes from 2MB aligned base near the start of usable system RAM because memory below that base address was unusable at that time. This requirement was relaxed by Linux commit a7f8de168ace

[U-Boot] [PATCH 1/2] arm64: booti: update "res1" field to "flags"

2017-02-21 Thread Masahiro Yamada
As Documentation/arm64/booting.txt of the latest Linux says, the field "res1" is now "flags". Signed-off-by: Masahiro Yamada --- cmd/booti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/booti.c b/cmd/booti.c index bff87a8..f65f0e7

[U-Boot] [PATCH] Revert "imx: mx7: implement reset_misc"

2017-02-21 Thread Fabio Estevam
From: Fabio Estevam Commit 9f8fa184fc1ac ("imx: mx7: implement reset_misc") says it needs to to power down lcdif to make 'reset' can pass stress test. However I see 100% of reset failures with this commit applied, so better revert it for now. This reverts commit

Re: [U-Boot] [PATCH v4 0/16] sunxi: Add support for the CHIP Pro

2017-02-21 Thread Maxime Ripard
Hi Jagan, On Tue, Feb 21, 2017 at 10:50:34AM +0530, Jagan Teki wrote: > On Mon, Jan 23, 2017 at 7:16 PM, Maxime Ripard > wrote: > > The CHIP Pro is a SoM made by NextThing Co, and that embeds a GR8 SIP, an > > AXP209 PMIC, a WiFi BT chip and a 512MB SLC NAND. >

Re: [U-Boot] [PATCH] Makefile: print warning if CONFIG_SYS_EXTRA_OPTIONS is used

2017-02-21 Thread Maxime Ripard
On Sat, Feb 18, 2017 at 03:24:53PM +0900, Masahiro Yamada wrote: > The prompt of this option is marked "DEPRECATED" in capital letters, > and its help clearly says: > This option was prepared for the smooth migration from the old > configuration to Kconfig. Since this option will be removed

Re: [U-Boot] [PATCH 0/2] Series to clean handle_XXX() in f_dfu.c

2017-02-21 Thread Lukasz Majewski
Hi Patrick, > > 1/ DFU_GETSTATE response error > > when the DFU device state is requested using libusb with DFU_GETSTATUS > a error is generated : LIBUSB_ERROR_IO > > I see the issue with my programmer tools based on dfu with libusb > and I don't understood the actual code in U-Boot >

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-21 Thread Lukasz Majewski
Hi Felipe, > > Hi, > > Lukasz Majewski writes: > >> Lukasz Majewski writes: > >> >> Lukasz Majewski writes: > >> >> >> > >> drivers/usb/gadget/f_dfu.c | 2 +- > >> >> >> > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> >> >> > >> > >>

[U-Boot] [PATCH] MCCMON6: defconfig: Move 'quiet' console parameter to 'console' env variable

2017-02-21 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- include/configs/mccmon6.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/mccmon6.h b/include/configs/mccmon6.h index b16b837..8c72455 100644 --- a/include/configs/mccmon6.h +++ b/include/configs/mccmon6.h

Re: [U-Boot] [PATCH] arm: am57xx: Update bootloader partition size

2017-02-21 Thread Sam Protsenko
On Tue, Feb 21, 2017 at 10:35 PM, Felipe Balbi wrote: > > Hi, > > Sam Protsenko writes: >> From: Praneeth Bajjuri >> >> The current size of u-boot is already ~840 KiB. >> >> This patch is to increase bootloader partition

Re: [U-Boot] [PATCH v3 10/16] rockchip: rk3188: Add clock driver

2017-02-21 Thread Simon Glass
On 21 February 2017 at 11:07, Simon Glass wrote: > Hi Heiko, > > On 18 February 2017 at 07:19, Heiko Stuebner wrote: >> Hi Simon, >> >> Am Montag, 6. Februar 2017, 07:35:12 CET schrieb Simon Glass: >>> On 3 February 2017 at 08:09, Heiko Stuebner

Re: [U-Boot] [PATCH v4 15/20] rockchip: rk3188: Add core devicetree files

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > The rk3188 shares a lot of peripherals with the rk3066 and thus > has a common include called rk3xxx.dtsi. Add both this one and > the specialized rk3188 on top of it. > > Signed-off-by: Heiko Stuebner >

Re: [U-Boot] [PATCH v4 12/20] rockchip: rk3188: Add sysreset driver

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > Driver for the sysreset of Rockchip rk3188 socs. > > Signed-off-by: Heiko Stuebner > Reviewed-by: Simon Glass > Tested-by: Kever Yang > --- >

Re: [U-Boot] [PATCH v4 06/20] rockchip: Move bootrom-related declarations to a header

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > So far spl-boards have declared the back_to_brom() function as simple > extern in the files themself. That doesn't scale well if every boards > defines this on its own. > Therefore move the declarations to a bootrom header. >

Re: [U-Boot] [PATCH v4 07/20] rockchip: mkimage: Allow encoding of loader code in spl images

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > Rockchip SoCs allow the spl code to be rc4-encoded, not only the > image header, but only newer SoCs allow this encoding to be disabled. > > The rk3188 is not part of those and requires its boot code to be > rc4-encoded with

Re: [U-Boot] [PATCH v4 20/20] rockchip: rk3188: add README.rockchip paragraph describing sd boot

2017-02-21 Thread Simon Glass
On 21 February 2017 at 11:08, Simon Glass wrote: > Hi Heiko, > > On 18 February 2017 at 11:46, Heiko Stuebner wrote: >> Building sd images for rk3188 requires more steps due to the needed split >> into TPL and SPL as loaders. Describe how to build an image for

Re: [U-Boot] [PATCH v1 1/2] sun8i: define CONFIG_PHY_GIGE for EMAC

2017-02-21 Thread Dr. Philipp Tomsich
On 21 Feb 2017, at 20:55, Maxime Ripard wrote: > > On Fri, Feb 17, 2017 at 06:47:54PM +0100, Philipp Tomsich wrote: >> +#ifdef CONFIG_SUN8I_EMAC >> +#define CONFIG_PHY_GIGE /* GMAC can use gigabit PHY >> */ >> +#endif > > It would make

Re: [U-Boot] [PATCH v4 19/20] rockchip: rk3188: Add Radxa Rock board

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > The Rock is a RK3188 based single board computer by Radxa. > Currently it still relies on the proprietary DDR init and > cannot use the generic SPL, but at least is able to boot > a linux kernel and system up to a regular

Re: [U-Boot] [PATCH v4 18/20] rockchip: rk3188: Add main, spl and tpl boards

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > The rk3188 needs 3 U-Boot stages: a tpl living in 1KB of sram, a spl > the resides in the rest of the sram and loads the regular U-Boot living > in regular ram. > > Signed-off-by: Heiko Stuebner > Tested-by:

Re: [U-Boot] [PATCH v4 17/20] rockchip: rk3188: Add sdram driver

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > The sdram controller blocks are very similar to the rk3288 in utilizing > memory scheduler, Designware uPCTL and Designware PUBL blocks, only > limited to one bank instead of two. > > There are some minimal differences when

Re: [U-Boot] [PATCH v4 16/20] rockchip: rk3188: Add core support

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > Add the core architecture code for the rk3188. > It doesn't support the SPL yet, as because of some > unknown error it doesn't start yet. > > Signed-off-by: Heiko Stuebner > Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v4 13/20] rockchip: rk3188: Add rk3066/rk3188 clock bindings

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, 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

Re: [U-Boot] [PATCH v1 2/2] sun8i: enable support for the Micrel KSZ9031 with SUN8I_EMAC

2017-02-21 Thread Dr. Philipp Tomsich
Maxime, > On 21 Feb 2017, at 20:56, Maxime Ripard > wrote: > > On Fri, Feb 17, 2017 at 06:47:55PM +0100, Philipp Tomsich wrote: >> #ifdef CONFIG_SUN8I_EMAC >> #define CONFIG_PHY_GIGE /* GMAC can use gigabit PHY >> */ >> +#define

Re: [U-Boot] [PATCH v4 11/20] rockchip: rk3188: Add pinctrl driver

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > Add a driver which supports pin multiplexing setup for the most commonly > used peripherals. > > Signed-off-by: Heiko Stuebner > Acked-by: Simon Glass > Tested-by: Kever Yang

Re: [U-Boot] [PATCH v4 10/20] rockchip: rk3188: Add header files for PMU and GRF

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, 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 > Acked-by: Simon Glass

Re: [U-Boot] [PATCH v4 09/20] rockchip: serial: Adapt rockchip of-platdata driver for rk3188

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > Add necessary structs to have the driver also work for the serial > on the rk3188. > > Signed-off-by: Heiko Stuebner > Reviewed-by: Simon Glass > Tested-by: Kever Yang

Re: [U-Boot] [PATCH v4 08/20] rockchip: mkimage: Add support rk3188 serial

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > Add the entry for the rk3188 requiring rc4-encryption of the SPL. > > Signed-off-by: Heiko Stuebner > Reviewed-by: Simon Glass > Reviewed-by: Kever Yang > --- >

Re: [U-Boot] [PATCH v4 05/20] rockchip: Move bootrom helper compilation to a hidden option

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > Right now the ROCKCHIP_SPL_BACK_TO_BROM option both triggers > compilation of the bootrom hook-code as well as enabling the > behaviour of loading the full U-Boot via the boot. > > New added socs may always need the bootrom

Re: [U-Boot] [PATCH v4 03/20] rockchip: rk3288: sdram: use constants in ddrconf table

2017-02-21 Thread Simon Glass
On 21 February 2017 at 11:08, Simon Glass wrote: > On 18 February 2017 at 11:46, Heiko Stuebner wrote: >> Use defines to describe the bit shifts used to create the >> table for ddrconf register values. >> >> Signed-off-by: Heiko Stuebner >>

Re: [U-Boot] [PATCH v4 04/20] rockchip: rk3288: sdram: style fixes from rk3188 sdram review

2017-02-21 Thread Simon Glass
On 21 February 2017 at 11:08, Simon Glass wrote: > On 18 February 2017 at 11:46, Heiko Stuebner wrote: >> The sdram IP blocks used on rk3066, rk3188 and rk3288 are very similar >> and we want to unify things once all 3 work as expected. >> Therefore try to

Re: [U-Boot] [PATCH v4 02/20] clk: rk3288: limit gpll and cpll init to SPL build

2017-02-21 Thread Simon Glass
On 21 February 2017 at 11:08, Simon Glass wrote: > On 18 February 2017 at 11:46, Heiko Stuebner wrote: >> The gpll and cpll init values are only used in rk_clk_init in the SPL >> and therefore produce compile time warnings in regular uboot builds. >> Fix that

Re: [U-Boot] [PATCH v4 01/20] dm: allow limiting pre-reloc markings to spl or tpl

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > Right now the u-boot,dm-pre-reloc flag will make each marked node > always appear in both spl and tpl. But systems needing an additional > tpl might have special constraints for each, like the spl needing to > be very tiny. >

Re: [U-Boot] [PATCH v2 6/9] arm64: rk3399: syscon addition for rk3399

2017-02-21 Thread Simon Glass
On 13 February 2017 at 02:38, Kever Yang wrote: > rk3399 has different syscon registers which may used in spl, > add to support rk3399 spl. > > Signed-off-by: Kever Yang > --- > > Changes in v2: None > Changes in v1: None > >

Re: [U-Boot] [PATCH v2 2/9] arm64: rk3399: move grf register definitions to grf_rk3399.h

2017-02-21 Thread Simon Glass
On 13 February 2017 at 02:38, Kever Yang wrote: > rk3399 grf register bit defenitions should locate in header > file, so that not only pinctrl can use it. > > Signed-off-by: Kever Yang > Reviewed-by: Simon Glass > --- > >

Re: [U-Boot] [PATCH v2 3/9] clk: rk3399: update driver for spl

2017-02-21 Thread Simon Glass
On 13 February 2017 at 02:38, Kever Yang wrote: > Add ddr clock setting, add rockchip_get_pmucru API, > and enable of-platdata support. > > Signed-off-by: Kever Yang > Reviewed-by: Simon Glass > --- > > Changes in v2: None

Re: [U-Boot] [PATCH v2 5/9] pinctrl: rk3399: add the of-platdata support

2017-02-21 Thread Simon Glass
On 13 February 2017 at 02:38, Kever Yang wrote: > Do not use the API which of-platdata not support. > > Signed-off-by: Kever Yang > Reviewed-by: Simon Glass > --- > > Changes in v2: None > Changes in v1: None > >

Re: [U-Boot] [PATCH v2 4/9] sdhci: rk3399: update driver to support of-platdata

2017-02-21 Thread Simon Glass
On 13 February 2017 at 02:38, Kever Yang wrote: > Change some API in order to enable of-platdata. > > Signed-off-by: Kever Yang > Reviewed-by: Simon Glass > --- > > Changes in v2: None > Changes in v1: None > >

Re: [U-Boot] [PATCH v1 05/11] sunxi: add module reset (UCLASS_RESET) support for sunxi

2017-02-21 Thread Maxime Ripard
On Fri, Feb 17, 2017 at 06:52:42PM +0100, Philipp Tomsich wrote: > In order to have the device model describe the module reset bits > on sunxi (well, at least for anything newer than sun6i), we need > a (rather simple) driver for 'allwinner,sun6i-a31-clock-reset' > nodes. This one (and the next

Re: [U-Boot] [PATCH v1 04/11] sun50i: dts: update DTS to avoid warnings

2017-02-21 Thread Maxime Ripard
Hi, On Fri, Feb 17, 2017 at 06:52:41PM +0100, Philipp Tomsich wrote: > Nodes that don't contain a reg-entry should not have an @xxx name > attached. To silence the dt-compiler warnings, we update the DTS. > > Signed-off-by: Philipp Tomsich Can you submit

Re: [U-Boot] [PATCH v1 02/11] sunxi: add pinctrl (UCLASS_PINCTRL) support for sunxi and tie back into GPIO

2017-02-21 Thread Maxime Ripard
Hi Philipp, On Fri, Feb 17, 2017 at 06:52:39PM +0100, Philipp Tomsich wrote: > This change adds a full device-model pinctrl driver for sunxi (tested with > sun50iw1p1) based on the support available in Linux. > > Details are: > * implements a driver for pinctrl devices and assigns

Re: [U-Boot] [PATCH v1 2/2] sun8i: enable support for the Micrel KSZ9031 with SUN8I_EMAC

2017-02-21 Thread Maxime Ripard
On Fri, Feb 17, 2017 at 06:47:55PM +0100, Philipp Tomsich wrote: > #ifdef CONFIG_SUN8I_EMAC > #define CONFIG_PHY_GIGE /* GMAC can use gigabit PHY > */ > +#define CONFIG_PHY_MICREL > +#define CONFIG_PHY_MICREL_KSZ9031 /* used on A64-uQ7 */ > #endif

Re: [U-Boot] [PATCH v1 1/2] sun8i: define CONFIG_PHY_GIGE for EMAC

2017-02-21 Thread Maxime Ripard
On Fri, Feb 17, 2017 at 06:47:54PM +0100, Philipp Tomsich wrote: > +#ifdef CONFIG_SUN8I_EMAC > +#define CONFIG_PHY_GIGE /* GMAC can use gigabit PHY > */ > +#endif It would make more sense to move that option to Kconfig, and selecting it from SUN8I_EMAC. Thanks! Maxime

[U-Boot] [PATCH] arm: am57xx: Update bootloader partition size

2017-02-21 Thread Sam Protsenko
From: Praneeth Bajjuri The current size of u-boot is already ~840 KiB. This patch is to increase bootloader partition size up to 1 MiB and thereby fix flashing error like below: sending 'bootloader' (840 KB)... OKAY [ 0.048s] writing 'bootloader'... FAILED

[U-Boot] [PATCH] arm: dra7xx: Update bootloader partition size

2017-02-21 Thread Sam Protsenko
The current size of U-Boot is already ~840 KiB. This patch is to increase bootloader partition size up to 1 MiB and thereby fix flashing error. Also fix U-Boot environment address on eMMC ("reserved" partition), as it's being shifted by above change. Signed-off-by: Sam Protsenko

Re: [U-Boot] socfpga qspi issues on SoCKit devkit

2017-02-21 Thread Dinh Nguyen
On 02/21/2017 08:02 AM, Rush, Jason A. wrote: > Marek Vasut wrote: >> On 02/20/2017 05:53 PM, Rush, Jason A. wrote: >>> Marek Vasut wrote: On 02/20/2017 05:25 AM, Vignesh R wrote: > + Marek Thanks, +CC Dinh and Ley > On Friday 17 February 2017 05:02 AM, Rush, Jason A.

Re: [U-Boot] [PATCH v1] sunxi: improve throughput in the sunxi_mmc driver

2017-02-21 Thread Dr. Philipp Tomsich
> On 21 Feb 2017, at 19:11, Dr. Philipp Tomsich > wrote: > > We’ve never seen performance problems on Linux and benchmarked at > up to ~50MByte/s on the A31-uQ7. I dug into our disti training slides from early 2015—looks like the throughput number

Re: [U-Boot] [PATCH v1 0/2] disk: efi: allow gap before partition entries

2017-02-21 Thread Dr. Philipp Tomsich
> On 21 Feb 2017, at 18:45, Maxime Ripard > wrote: > > However, I'm a bit skeptical on the /config node. First, this node > doesn't exist at all, and needs to be documented and acked by the DT > maintainers. And why would one need to change that per device?

Re: [U-Boot] [PATCH v1] sun8i_emac: configure PHY reset GPIO via DM

2017-02-21 Thread Dr. Philipp Tomsich
> On 21 Feb 2017, at 18:57, Maxime Ripard > wrote: > > On Fri, Feb 17, 2017 at 06:42:42PM +0100, Philipp Tomsich wrote: >> This ports the support for configuring a GPIO for resetting the >> Ethernet PHY (incl. such details as the reset polarity and >>

Re: [U-Boot] [PATCH v1] sunxi: improve throughput in the sunxi_mmc driver

2017-02-21 Thread Dr. Philipp Tomsich
> On 21 Feb 2017, at 19:00, Maxime Ripard > wrote: > > On Fri, Feb 17, 2017 at 06:22:45PM +0100, Philipp Tomsich wrote: >> Throughput tests have shown the sunxi_mmc driver to take over 10s to >> read 10MB from a fast eMMC device due to excessive delays in

Re: [U-Boot] [PATCH v1 0/2] disk: efi: allow gap before partition entries

2017-02-21 Thread Dr. Philipp Tomsich
Maxime, > On 21 Feb 2017, at 18:45, Maxime Ripard > wrote: > > Hi Philipp, > > On Fri, Feb 17, 2017 at 06:31:29PM +0100, Philipp Tomsich wrote: >> Motivated by the the SPL layout for SD/MMC devices on Allwinner SoCs >> (the SPL code needs to reside an 8K

Re: [U-Boot] [PATCH v4 20/20] rockchip: rk3188: add README.rockchip paragraph describing sd boot

2017-02-21 Thread Simon Glass
Hi Heiko, On 18 February 2017 at 11:46, Heiko Stuebner wrote: > Building sd images for rk3188 requires more steps due to the needed split > into TPL and SPL as loaders. Describe how to build an image for it in a > separate paragraph in the READER.rockchip file. > >

Re: [U-Boot] [PATCH v4 03/20] rockchip: rk3288: sdram: use constants in ddrconf table

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > Use defines to describe the bit shifts used to create the > table for ddrconf register values. > > Signed-off-by: Heiko Stuebner > --- > arch/arm/include/asm/arch-rockchip/ddr_rk3288.h | 8 >

Re: [U-Boot] [PATCH v4 04/20] rockchip: rk3288: sdram: style fixes from rk3188 sdram review

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > The sdram IP blocks used on rk3066, rk3188 and rk3288 are very similar > and we want to unify things once all 3 work as expected. > Therefore try to keep the rk3288 sdram driver in line by applying the > general review

Re: [U-Boot] [PATCH v4 02/20] clk: rk3288: limit gpll and cpll init to SPL build

2017-02-21 Thread Simon Glass
On 18 February 2017 at 11:46, Heiko Stuebner wrote: > The gpll and cpll init values are only used in rk_clk_init in the SPL > and therefore produce compile time warnings in regular uboot builds. > Fix that with an #ifdef. > > Signed-off-by: Heiko Stuebner > ---

  1   2   >