[U-Boot] [PATCH v4 16/20] sunxi: enable automatic FIT build for 64-bit SoCs

2017-04-25 Thread Andre Przywara
The Allwinner SoCs with 64-bit cores use an ARM Trusted Firmware binary, which needs to be loaded alongside U-Boot proper. Set the respective Kconfig options to let them select this feature and also automatically build the FIT image. Signed-off-by: Andre Przywara Acked-by: Maxime Ripard --- Kco

[U-Boot] [PATCH v4 10/20] sunxi: A64: move SPL stack to end of SRAM A2

2017-04-25 Thread Andre Przywara
The SPL stack is usually located at the end of SRAM A1, where it grows towards the end of the SPL. For the really big AArch64 binaries the stack overwrites code pretty soon, so move the SPL stack to the end of SRAM A2, which is unused at this time. Signed-off-by: Andre Przywara Reviewed-by: Simon

[U-Boot] [PATCH v4 17/20] sunxi: Store the device tree name in the SPL header

2017-04-25 Thread Andre Przywara
From: Siarhei Siamashka This patch updates the mksunxiboot tool to optionally add the default device tree name string to the SPL header. This information can be used by the firmware upgrade tools to protect users from harming themselves by trying to upgrade to an incompatible bootloader. The pri

[U-Boot] [PATCH v4 15/20] sunxi: defconfig: add supported DT list for Pine64

2017-04-25 Thread Andre Przywara
When a board uses a FIT image to load U-Boot proper, it requires a list of supported device trees to be supplied in CONFIG_OF_LIST, from which it chooses the right one at runtime. For boards with just one possible DT (like the OrangePi PC2) this defaults to CONFIG_DEFAULT_DEVICE_TREE, but for the P

[U-Boot] [PATCH v4 11/20] sunxi: SPL: store RAM size in gd

2017-04-25 Thread Andre Przywara
The sunxi SPL was holding the detected RAM size in some local variable only, so it wasn't accessible for other functions. Store the value in gd->ram_size instead, so it can be used later on. Signed-off-by: Andre Przywara Reviewed-by: Simon Glass Acked-by: Maxime Ripard --- board/sunxi/board.c

[U-Boot] [PATCH v4 19/20] sunxi: update Pine64 README

2017-04-25 Thread Andre Przywara
With the DRAM init code and the SPL's ability to load the ATF binary as well, we can now officially get rid of the boot0 boot method, which involed a closed-source proprietary blob to be used. Rework the Pine64 README file to document how to build the firmware. Also since these instructions now cov

[U-Boot] [PATCH v4 18/20] sunxi: use SPL header DT name for FIT board matching

2017-04-25 Thread Andre Przywara
Now that we can store a DT name in the SPL header, use this string (if available) when finding the right DT blob to load for U-Boot proper. This allows a generic U-Boot (proper) image to be combined with a bunch of supported DTs, with just the SPL (possibly only that string) to be different. Eventu

[U-Boot] [PATCH v4 14/20] sunxi: 64-bit SoCs: introduce FIT generator script

2017-04-25 Thread Andre Przywara
Now that the Makefile can call a generator script to build a more advanced FIT image, let's use this feature to address the needs of Allwinner boards with 64-bit SoCs (A64 and H5). The (DTB stripped) U-Boot binary and the ATF are static, but we allow an arbitrary number of supported device trees to

Re: [U-Boot] [PATCH] power: twl4030: Add CONFIG_CMD_POWEROFF support

2017-04-25 Thread Adam Ford
On Tue, Apr 25, 2017 at 3:10 PM, Tom Rini wrote: > On Mon, Apr 24, 2017 at 01:34:43PM -0500, Adam Ford wrote: > >> With the addition of twl4030_power_off(), let's allow the 'poweroff' command >> to run this function when CONFIG_CMD_POWEROFF is enabled. >> >> Tested on a DM3730 with twl4030 PMIC. >

Re: [U-Boot] [PATCH v2] Ensure device tree DTS is compiled

2017-04-25 Thread Masahiro Yamada
2017-03-27 11:27 GMT+09:00 Simon Glass : > On 15 March 2017 at 22:11, James Balean wrote: >> Enables custom DTS files, or those not associated with a specific target, to >> be compiled into a boot image. >> >> Signed-off-by: James Balean >> Cc: Andy Shevchenko >> Cc: Simon Glass >> --- >> Chan

[U-Boot] [PATCH] clk: at91: clk-generated: Fix incorrect assignment of clock source

2017-04-25 Thread Wenyou Yang
Differentiate the generic clock source selection value from the parent clock index to fix the incorrect assignment of the generic clock source selection. Signed-off-by: Wenyou Yang --- drivers/clk/at91/clk-generated.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff

[U-Boot] [PATCH] mmc: sdhci: Fix maximum clock for programmable clock mode

2017-04-25 Thread Wenyou Yang
In the programmable clock mode, the SDCLK frequency is incorrectly assigned when the maximum clock has been assigned during probe, this causes the SDHCI not work well. In the programmable clock mode, when calculating the SDCLK Frequency Select, when the maximum clock has been assigned, it is the a

[U-Boot] [PATCH] armv8: fsl-layerscape: Add back fdt_fixup_ethernet()

2017-04-25 Thread York Sun
Commit 3f66149 dropped fdt_fixup_ethernet() from common/image-fdt.c, presuming this function is called by ft_cpu_setup(). Add such call in the mentioned function for Freescale ARMv8 Layerscape SoCs. Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 1 + 1 file changed, 1 ins

Re: [U-Boot] [RFC PATCH] ext4: Fix comparision of unsigned expression with < 0

2017-04-25 Thread Lokesh Vutla
On Tuesday 25 April 2017 11:34 PM, Tom Rini wrote: > On Tue, Apr 25, 2017 at 10:22:27AM +0530, Lokesh Vutla wrote: >> In file ext4fs.c funtion ext4fs_read_file() compares an >> unsigned expression with < 0 like below >> >> lbaint_t blknr; >> blknr = read_allocated_block(&(node->inode),

Re: [U-Boot] [PATCH v2 00/22] x86: Add ACPI S3 resume support

2017-04-25 Thread Bin Meng
Hi Stefan, On Tue, Apr 25, 2017 at 7:11 PM, Stefan Roese wrote: > Hi Bin, > > On 25.04.2017 11:34, Bin Meng wrote: > > > What do you mean by "display stays in power safe mode"? Is it a black screen, or is it just U-Boot's video output screen? >>> >>> Blank screen and the monitor d

Re: [U-Boot] [PATCH 4/6] am33xx: Provide platform data for mmc

2017-04-25 Thread Lokesh Vutla
Hi Adam, On Wednesday 26 April 2017 05:35 AM, Adam Ford wrote: > On Tue, Apr 25, 2017 at 4:10 PM, Tom Rini wrote: >> On Sat, Apr 22, 2017 at 12:20:46PM +0530, Lokesh Vutla wrote: >>> Signed-off-by: Lokesh Vutla >>> --- >>> board/ti/am335x/board.c | 32 >>> 1 fil

Re: [U-Boot] [PATCH 2/2][v4] nxp/ls2080ardb: Add QSPI-boot support

2017-04-25 Thread Priyanka Jain
> -Original Message- > From: York Sun [mailto:york@nxp.com] > Sent: Tuesday, April 25, 2017 9:34 PM > To: Priyanka Jain ; u-boot@lists.denx.de > Cc: Suresh Gupta > Subject: Re: [PATCH 2/2][v4] nxp/ls2080ardb: Add QSPI-boot support > > On 04/25/2017 03:18 AM, Priyanka Jain wrote: > >

Re: [U-Boot] [PATCH V2 1/9] omap_hsmmc: update struct hsmmc to accommodate omap3 from DT

2017-04-25 Thread Lokesh Vutla
On Monday 17 April 2017 06:39 PM, Adam Ford wrote: > This patch changes the way DM_MMC calculates offset to the base register of > MMC. Previously this was through an #ifdef but that wasn't necessary for > OMAP3. > > This patch will now add in the offset to the base address based on the > .comp

Re: [U-Boot] [PATCH 2/2][v4] nxp/ls2080ardb: Add QSPI-boot support

2017-04-25 Thread york sun
> -Original Message- > From: Priyanka Jain > Sent: Tuesday, April 25, 2017 9:36 PM > To: york sun ; u-boot@lists.denx.de > Cc: Suresh Gupta > Subject: RE: [PATCH 2/2][v4] nxp/ls2080ardb: Add QSPI-boot support > > > > > -Original Message- > > From: York Sun [mailto:york@nxp.c

[U-Boot] [PATCH v2 2/2] rtc: Add DM support to ds1307

2017-04-25 Thread Chris Packham
Add an implementation of the ds1307 driver that uses the driver model i2c APIs. Signed-off-by: Chris Packham --- Changes in v2: None drivers/rtc/Kconfig | 7 ++ drivers/rtc/ds1307.c | 196 ++- 2 files changed, 184 insertions(+), 19 deletions(

Re: [U-Boot] [PATCH v2 00/22] x86: Add ACPI S3 resume support

2017-04-25 Thread Stefan Roese
Hi Bin, On 26.04.2017 06:21, Bin Meng wrote: On Tue, Apr 25, 2017 at 7:11 PM, Stefan Roese wrote: Hi Bin, On 25.04.2017 11:34, Bin Meng wrote: What do you mean by "display stays in power safe mode"? Is it a black screen, or is it just U-Boot's video output screen? Blank screen and the m

[U-Boot] [PATCH] MAINTAINERS: Update for Keystone2 secure devices

2017-04-25 Thread Lokesh Vutla
Update Keystone2 secure device configs under "TI SYSTEM SECURITY". Without this buildman keeps complaining about the status of these boards. Signed-off-by: Lokesh Vutla --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index eadb21fb39..0962b47bf9 1

[U-Boot] [PATCH 1/2][v5] board: freescale: ls2080ardb: Update QIXIS code

2017-04-25 Thread Priyanka Jain
Update QIXIS related code to be executed only if CONFIG_FSL_QIXIS flag is enabled As per board documentation, default sysclk is 100MHz. In case QIXIS code is not enabled, update default sysclk value to 100MHz Signed-off-by: Priyanka Jain --- Changes for v4: Added changes for default sys

[U-Boot] [PATCH 2/2][v5] nxp/ls2080ardb: Add QSPI-boot support

2017-04-25 Thread Priyanka Jain
QSPI-boot is verified on LS2088ARDB RevF board with LS2088A SoC. LS2088ARDB RevF Board has limitation that QIXIS can not be access, so QIXIS flag is kept disabled Signed-off-by: Priyanka Jain Signed-off-by: Suresh Gupta --- Changes for v5: Renamed defconfig to ls2088ardb_qspi_defconfig and inc

Re: [U-Boot] [PATCH 3/6] configs: am335x_evm: Use omap2 generic spl load script

2017-04-25 Thread Lokesh Vutla
On Wednesday 26 April 2017 02:40 AM, Tom Rini wrote: > On Mon, Apr 24, 2017 at 10:23:17AM -0500, Andrew F. Davis wrote: >> On 04/22/2017 01:50 AM, Lokesh Vutla wrote: >>> No reason to use a separate load script for am33xx than using >>> omap-common load script. >>> >>> Signed-off-by: Lokesh Vutla

<    1   2