[U-Boot] [PATCH 1/3 v2] fsl/ddr: Revise erratum a009942 and clean related erratum

2016-11-06 Thread Shengzhou Liu
- add additional function erratum_a009942_check_cpo to check if the board needs tuning CPO calibration for optimal setting. - move ERRATUM_A009942(with revision to check cpo_sample option) from fsl_ddr_gen4.c to ctrl_regs.c for reuse on all DDR4/DDR3 parts. - move ERRATUM_A008378 from fsl_ddr_g

Re: [U-Boot] [PATCH v2 1/1] cmd: pci: add option to parse and display BAR information

2016-11-06 Thread Stefan Roese
On 06.11.2016 15:31, yehu...@marvell.com wrote: > From: Yehuda Yitschak > > Currently the PCI command only allows to see the BAR register > values but not the size and actual base address. > This little extension parses the BAR registers and displays > the base, size and type of each BAR. > > Si

Re: [U-Boot] [PATCH 1/3] fsl/ddr: Revise erratum a009942 and clean related erratum

2016-11-06 Thread Shengzhou Liu
> -Original Message- > From: york sun > Sent: Friday, November 04, 2016 11:20 PM > To: Shengzhou Liu ; u-boot@lists.denx.de > Subject: Re: [PATCH 1/3] fsl/ddr: Revise erratum a009942 and clean related > erratum > > On 11/04/2016 04:18 AM, Shengzhou Liu wrote: > > - add additional function

[U-Boot] [PATCH v3 4/5] ARMv8: Setup PSCI memory and device tree

2016-11-06 Thread macro . wave . z
From: Hongbo Zhang The newly added ARMv8 PSCI needs to be initialized, be copied or reserved in right place, this patch does all the setup steps. Signed-off-by: Hongbo Zhang --- arch/arm/cpu/armv8/cpu-dt.c | 8 arch/arm/cpu/armv8/cpu.c | 22 ++ arch/arm/inc

[U-Boot] [PATCH v3 5/5] ARMv8: LS1043A: Enable LS1043A default PSCI support

2016-11-06 Thread macro . wave . z
From: Hongbo Zhang A most basic PSCI implementation with only one psci_version is added for LS1043A, this can verify the generic PSCI framework, and more platform specific implementation will be added later. Signed-off-by: Hongbo Zhang --- arch/arm/cpu/armv8/fsl-layerscape/Makefile | 1

[U-Boot] [PATCH v3 2/5] ARMv8: Add secure sections for PSCI text and data

2016-11-06 Thread macro . wave . z
From: Hongbo Zhang This patch adds secure_text, secure_data and secure_stack sections for ARMv8 to hold PSCI text and data, and it is based on the legacy implementation of ARMv7. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/config.mk| 3 ++- arch/arm/cpu/armv8/K

[U-Boot] [PATCH v3 3/5] ARMv8: Add basic PSCI framework

2016-11-06 Thread macro . wave . z
From: Hongbo Zhang This patch introduces a generic ARMv8 PSCI framework, with all functions returning a dummy ARM_PSCI_RET_NI (Not Implemented), then it is up to each platform to implement their own functions based on this framework. Signed-off-by: Hongbo Zhang --- arch/arm/cpu/armv8/Kconfig

[U-Boot] [PATCH v3 0/5] Add ARMv8 PSCI framework

2016-11-06 Thread macro . wave . z
From: Hongbo Zhang v2-v3 changes: - Drop the previous 1/6, since the previous CONFIG_ARMV8_PSCI in common parts of codes also work for generic PSCI framework, so there are 5 patches in this iteration. - Add "Reviewed-by: Tom Rini " for patches 1/5 and 2/5, which were 2/6 and 3/6. - Move config

[U-Boot] [PATCH v3 1/5] ARMv8: Enable SMC instruction

2016-11-06 Thread macro . wave . z
From: Hongbo Zhang PSCI implementation needs the SMC instruction to be enabled. Following the legacy codes pattern, no bit macro definition and bit operation are used, only the immediate data used in line is changed. Signed-off-by: Hongbo Zhang Reviewed-by: Tom Rini --- arch/arm/include/asm/m

Re: [U-Boot] [PATCH v2 2/2] arm: Set TTB XN bit in case DCACHE_OFF for LPAE mode

2016-11-06 Thread Keerthy
On Sunday 30 October 2016 05:30 PM, Marek Vasut wrote: On 10/30/2016 02:59 AM, Keerthy wrote: On Saturday 29 October 2016 11:19 PM, Marek Vasut wrote: On 10/29/2016 07:47 PM, Tom Rini wrote: On Sat, Oct 29, 2016 at 07:44:34PM +0200, Marek Vasut wrote: On 10/29/2016 07:41 PM, Tom Rini wrot

Re: [U-Boot] Rockchip USB driver

2016-11-06 Thread Simon Glass
Hi Kever, On 3 November 2016 at 18:56, Kever Yang wrote: > Hi Doug, > > Do you mean usb gadget driver or usb host driver? I mean USB host. > > The usb controller for rk3288 is very similar to rk3036, I though the driver > are working on upstream. > Let me double check. OK, thanks. I don't

Re: [U-Boot] [PATCH v7 1/2] armv8: Support loading 32-bit OS in AArch32 execution state

2016-11-06 Thread Alison Wang
> On 11/04/2016 10:12 AM, Alexander Graf wrote: > > > > > > On 04/11/2016 17:08, york sun wrote: > >> On 11/04/2016 09:53 AM, Alexander Graf wrote: > >>> > >>> > >>> On 04/11/2016 16:43, york sun wrote: > On 11/04/2016 09:32 AM, Ryan Harkin wrote: > >>> > >>> Yes, with the attached pat

Re: [U-Boot] [PATCH 2/4] mmc: sunxi: Enable 8bits bus width for sun8i

2016-11-06 Thread Chen-Yu Tsai
On Mon, Nov 7, 2016 at 1:15 AM, Maxime Ripard wrote: > On Sat, Nov 05, 2016 at 09:34:25AM +0800, Chen-Yu Tsai wrote: >> On Fri, Nov 4, 2016 at 11:18 PM, Maxime Ripard >> wrote: >> > The sun8i SoCs also have a 8 bits capable MMC2 controller. Enable the >> > support for those too. >> > >> > Signed-

Re: [U-Boot] travis-ci: Try harder to build all ARM targets

2016-11-06 Thread Tom Rini
On Sat, Nov 05, 2016 at 07:34:49PM -0400, Tom Rini wrote: > The way that we have things broken down currently allows for some > combinations of vendor or CPU to not be built. To fix this, create a > new catch-all job that excludes everything we've built elsewhere. For > the sake of simplicity we

Re: [U-Boot] buildman: Fix building based on 'options' field

2016-11-06 Thread Tom Rini
On Fri, Nov 04, 2016 at 10:59:45PM -0400, Tom Rini wrote: > The README for buildman says that we can use any field in boards.cfg to > decide what to build. However, we were not saving the options field > correctly. > > Cc: Simon Glass > Signed-off-by: Tom Rini > Acked-by: Simon Glass Applied

Re: [U-Boot] mkimage: Allow including a ramdisk in FIT auto mode

2016-11-06 Thread Tom Rini
On Fri, Nov 04, 2016 at 02:22:15PM +0100, Tomeu Vizoso wrote: > Adds -i option that allows specifying a ramdisk file to be added to the > FIT image when we are using the automatic FIT mode (no ITS file). > > This makes adding Depthcharge support to LAVA much more convenient, as > no additional co

Re: [U-Boot] wandboard: Make Ethernet functional again

2016-11-06 Thread Tom Rini
On Tue, Nov 01, 2016 at 02:58:16PM -0200, Fabio Estevam wrote: > Since commit ce412b79e7255770 ("drivers: net: phy: atheros: add separate > config for AR8031") ethernet does not work on mx6sabresd. > > This commit correctly assigns ar8031_config() as the configuration > function for AR8031 in the

Re: [U-Boot] doc: update README.arm64

2016-11-06 Thread Tom Rini
On Thu, Nov 03, 2016 at 01:01:50AM +, Andre Przywara wrote: > This file apparently hasn't seen an update in a while, so just sync > it with reality. > > Signed-off-by: Andre Przywara Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] tools: imximage: check return value when open the plugin file

2016-11-06 Thread Tom Rini
On Fri, Nov 04, 2016 at 10:33:15AM +0800, Peng Fan wrote: > Check return value when open the plugin file. > > Coverity report: > ** CID 153926: Error handling issues (NEGATIVE_RETURNS) > /tools/imximage.c: 542 in copy_plugin_code() > >ifd = open(plugin_file, O_RDONLY|O_BINARY); > >>> CID

Re: [U-Boot] armv8: define get_ticks() for the ARMv8 Generic Timer

2016-11-06 Thread Tom Rini
On Thu, Nov 03, 2016 at 12:56:25AM +, Andre Przywara wrote: > For 64-bit ARM systems we provide just a timer_read_counter() > implementation and rely on the generic non-uclass get_ticks() function > in lib/time.c to call the former. > However this function is actually not 64-bit safe, as it as

Re: [U-Boot] [U-Boot, v4, 2/2] image: Protect against overflow in unknown_msg()

2016-11-06 Thread Tom Rini
On Mon, Oct 31, 2016 at 10:21:09AM -0600, Simon Glass wrote: > Coverity complains that this can overflow. If we later increase the size > of one of the strings in the table, it could happen. > > Adjust the code to protect against this. > > Signed-off-by: Simon Glass > Reported-by: Coverity (CID

Re: [U-Boot] [U-Boot, 3/4] colibri_pxa270: drop lzma support for space reason

2016-11-06 Thread Tom Rini
On Fri, Oct 28, 2016 at 10:50:23PM +0200, Marcel Ziswiler wrote: > As the upcoming driver model integration takes up some more precious flash > space first make sure to drop expensive LZMA support. > > Signed-off-by: Marcel Ziswiler Applied to u-boot/master, thanks! -- Tom signature.asc Des

Re: [U-Boot] [PATCH 1/1] ARM: ts4600: add basic board support

2016-11-06 Thread Fabio Estevam
Hi Sebastien, On Thu, Nov 3, 2016 at 5:20 PM, Sebastien Bourdelin wrote: > +/* Extra Environment */ > +#define CONFIG_EXTRA_ENV_SETTINGS \ > + "fdt_addr=0x4100\0" \ > + "loadkernel=load mmc ${mmcdev}:${mmcpart} ${loadaddr} zImage\0" \ > + "loadfdt=load mmc ${mmcdev}:${mmcpa

[U-Boot] [PATCH v2 1/2] ext4: Allow reading files with non-zero offset, clamp read len

2016-11-06 Thread Stefan Brüns
Support was already implemented, but not hooked up. This fixes several fails in the test cases. Signed-off-by: Stefan Brüns --- v2: - update ext4fs_read(...) calls from spl_ext.c - move clamping to ext4fs_read_file(...), i.e. correct the check for offset != 0 common/spl/spl_ext.c | 8

Re: [U-Boot] [PATCH 2/4] mmc: sunxi: Enable 8bits bus width for sun8i

2016-11-06 Thread Maxime Ripard
On Sat, Nov 05, 2016 at 09:34:25AM +0800, Chen-Yu Tsai wrote: > On Fri, Nov 4, 2016 at 11:18 PM, Maxime Ripard > wrote: > > The sun8i SoCs also have a 8 bits capable MMC2 controller. Enable the > > support for those too. > > > > Signed-off-by: Maxime Ripard > > --- > > drivers/mmc/sunxi_mmc.c |

Re: [U-Boot] [PATCH 1/2] ext4: Allow reading files with non-zero offset, clamp read len

2016-11-06 Thread Stefan Bruens
On Samstag, 5. November 2016 21:22:43 CET Stephen Warren wrote: > On 11/05/2016 06:32 PM, Stefan Brüns wrote: > > Support was already implemented, but not hooked up. This fixes several > > fails in the test cases. > > > > diff --git a/fs/ext4/ext4fs.c b/fs/ext4/ext4fs.c > > > > @@ -217,21 +217,16

Re: [U-Boot] [PATCH v2 0/7] imx6: icorem6: Add framebuffer and I2C support

2016-11-06 Thread Jagan Teki
Hi Stefano, On Fri, Oct 28, 2016 at 7:27 PM, Jagan Teki wrote: > From: Jagan Teki > > This series support framebuffer and I2C on top of u-boot-imx.git with > latest u-boot.git merge. > > Changes for v2: > - Rebase on u-boot-imx.git and u-boot.git > > Jagan Teki (7): > video: Kconfig: Add VIDEO

Re: [U-Boot] [PATCH v7 0/5] net: fec_mxc: Convert to DM

2016-11-06 Thread Jagan Teki
Hi Stefano, On Thu, Oct 20, 2016 at 11:29 AM, Jagan Teki wrote: > Hi Stefano, > > On Wed, Oct 19, 2016 at 4:53 PM, Jagan Teki wrote: >> From: Jagan Teki >> >> This series convert fec_mxc to DM and tested both dm and >> non-dm code and it is on top of [1] with u-boot-imx/master >> branch. >> >>

[U-Boot] [PATCH v2 5/5] Makefile: preserve output for images that can contain HAB Blocks

2016-11-06 Thread Sven Ebenfeld
To being able to sign created binaries, we need to know the HAB Blocks for that image. Especially for the imximage type the HAB Blocks are only available during creation of the image. We want to preserve the information until we get to sign the files. In the verbose case we still get them printed o

[U-Boot] [PATCH v2 4/5] doc: imx6: add section for secure boot with SPL

2016-11-06 Thread Sven Ebenfeld
Cc: sba...@denx.de Signed-off-by: Sven Ebenfeld --- doc/README.imx6 | 48 1 file changed, 48 insertions(+) diff --git a/doc/README.imx6 b/doc/README.imx6 index 73b8b0b..add1d80 100644 --- a/doc/README.imx6 +++ b/doc/README.imx6 @@ -138,3 +138,51

[U-Boot] [PATCH v2 2/5] arm: imx: add HAB authentication of image to SPL boot

2016-11-06 Thread Sven Ebenfeld
When using HAB as secure boot mechanism on Wandboard, the chain of trust breaks immediately after the SPL. As this is not checking the authenticity of the loaded image before jumping to it. The HAB status output will not be implemented in SPL as it adds a lot of strings that are only required in d

[U-Boot] [PATCH v2 3/5] tools: mkimage: add firmware-ivt image type for HAB verification

2016-11-06 Thread Sven Ebenfeld
When we want to use Secure Boot with HAB from SPL over U-Boot.img, we need to append the IVT to the image and leave space for the CSF. Images generated as firmware_ivt can directly be signed using the Freescale code signing tool. For creation of a CSF, mkimage outputs the correct HAB Blocks for the

[U-Boot] [PATCH v2 1/5] arm: imx: remove bmode , hdmidet and dek commands from SPL

2016-11-06 Thread Sven Ebenfeld
These files are blowing up the SPL and should not be required there as the SPL delivers no command console. Because building fails for mx27 and mx31 machines with SPL build, we remove the linker flag for them from the Makefile. Nothing is built for them to be linked in that directory. Cc: sba...@d

[U-Boot] [PATCH v2 0/5] arm: imx6: Enable Secure Boot (HAB) with SPL Builds

2016-11-06 Thread Sven Ebenfeld
When trying to build U-Boot for Wandboard with Secure Boot, the build fails because it tries to compile the dekblob commands within the SPL. The dekblob command depends on the CAAM driver, which is also not required in the SPL. Additionally, this blows the SPL up to a size beyond the limit of 69Ki

[U-Boot] [PATCH v2 0/1] cmd: pci: add option to parse and display BAR information

2016-11-06 Thread yehuday
From: Yehuda Yitschak Updates to initial patch following comments from Stephan Rose I don't have access to a board with DM_PCI support so I tested only on non DM_PCI. Appreciate if someone can test on DM_PCI v1->v2: - Added support for DM_PCI - Added print of memory type and prefetchable flag

[U-Boot] [PATCH v2 1/1] cmd: pci: add option to parse and display BAR information

2016-11-06 Thread yehuday
From: Yehuda Yitschak Currently the PCI command only allows to see the BAR register values but not the size and actual base address. This little extension parses the BAR registers and displays the base, size and type of each BAR. Signed-off-by: Yehuda Yitschak --- cmd/pci.c | 95 ++

Re: [U-Boot] [PATCH] wandboard: Make Ethernet functional again

2016-11-06 Thread Fabio Estevam
Hi Tom, On Tue, Nov 1, 2016 at 2:58 PM, Fabio Estevam wrote: > Since commit ce412b79e7255770 ("drivers: net: phy: atheros: add separate > config for AR8031") ethernet does not work on mx6sabresd. > > This commit correctly assigns ar8031_config() as the configuration > function for AR8031 in the s

Re: [U-Boot] mx6sabresd: Make Ethernet functional again

2016-11-06 Thread Tom Rini
On Mon, Oct 24, 2016 at 10:22:06AM -0200, Fabio Estevam wrote: > From: Fabio Estevam > > Since commit ce412b79e7255770 ("drivers: net: phy: atheros: add separate > config for AR8031") ethernet does not work on mx6sabresd. > > This commit correctly assigns ar8031_config() as the configuration >

Re: [U-Boot] [PATCH 1/2] rpi: save firmware provided boot param for later use

2016-11-06 Thread Jonathan Liu
Hi Cédric, On 6 November 2016 at 21:06, Cédric Schieli wrote: > > 2016-11-06 1:36 GMT+01:00 Jonathan Liu : >> >> I did a similar patch without noticing you already submitted this series. >> The save_boot_params function can be written in C instead of assembly >> and placed in rpi.c. >> See >> htt

Re: [U-Boot] [PATCH] mx6sabresd: Make Ethernet functional again

2016-11-06 Thread Stefano Babic
Hi Tom, On 05/11/2016 18:41, Stefano Babic wrote: > > > On 05/11/2016 17:35, Fabio Estevam wrote: >> Hi Stefano, >> >> On Mon, Oct 24, 2016 at 10:22 AM, Fabio Estevam wrote: >>> From: Fabio Estevam >>> >>> Since commit ce412b79e7255770 ("drivers: net: phy: atheros: add separate >>> config for

Re: [U-Boot] [PATCH v3 1/3] ARM: bcm283x: Implement EFI RTS reset_system

2016-11-06 Thread Alexander Graf
On 05/11/2016 23:01, Stephen Warren wrote: On 11/02/2016 03:36 AM, Alexander Graf wrote: The rpi has a pretty simple way of resetting the whole system. All it takes is to poke a few registers at a well defined location in MMIO space. This patch adds support for the EFI loader implementation t

Re: [U-Boot] [PATCH v3 3/3] bcm2835: Reserve the spin table in efi memory map

2016-11-06 Thread Alexander Graf
On 05/11/2016 23:07, Stephen Warren wrote: On 11/02/2016 03:36 AM, Alexander Graf wrote: Firmware provides a spin table on the raspberry pi. This table shouldn't get overwritten by payloads, so we need to mark it as reserved. This is probably fine for now so, Acked-by: Stephen Warren Howev

Re: [U-Boot] [PATCH v3 1/3] ARM: bcm283x: Implement EFI RTS reset_system

2016-11-06 Thread Alexander Graf
On 05/11/2016 23:01, Stephen Warren wrote: On 11/02/2016 03:36 AM, Alexander Graf wrote: The rpi has a pretty simple way of resetting the whole system. All it takes is to poke a few registers at a well defined location in MMIO space. This patch adds support for the EFI loader implementation t

Re: [U-Boot] [PATCH 1/2] rpi: save firmware provided boot param for later use

2016-11-06 Thread Cédric Schieli
2016-11-06 3:48 GMT+01:00 Stephen Warren : > On 11/02/2016 12:06 PM, Cédric Schieli wrote: > >> At U-Boot entry point, the r2 register holds the address of the >> firmware provided boot param. Let's save it for further processing. >> > > diff --git a/board/raspberrypi/rpi/lowlevel_init.S >> b/boar

Re: [U-Boot] [PATCH 1/2] rpi: save firmware provided boot param for later use

2016-11-06 Thread Cédric Schieli
2016-11-06 1:36 GMT+01:00 Jonathan Liu : > I did a similar patch without noticing you already submitted this series. > The save_boot_params function can be written in C instead of assembly > and placed in rpi.c. > See https://lists.yoctoproject.org/pipermail/yocto/2016- > November/032934.html > fo