[U-Boot] [PATCH v2 0/6] pcie-layerscape: Enable PCI-LUT initialization for NXP-Chasis-2

2017-03-21 Thread Bharat Bhushan
This patch series enables PCI-LUT table initialization for NXP Chassis-2 (for example ls1043, ls1046 and LS1012) devices. As part of this, stream-ids allocation is added which is similar to Chassis-3 (ls2080a) Also this series have a minor cleanup, as stream-id definition file is given generic na

[U-Boot] [PATCH v2] pcie-layerscape: Fixup iommu-map property of pci node

2017-03-21 Thread Bharat Bhushan
This patch fixup iommu-map property on pci node to have a valid mapping of requester-id to stream-id. The requester-id to stream-id mapping is based on PCI-LUT table initialization. Signed-off-by: Bharat Bhushan --- v1->v2 - Typo error in comment about phandle of MSI node rather than iommu dri

[U-Boot] [PATCH v2 3/6] pcie-layerscape: Define stream-ids for Layerscape Chassis-2

2017-03-21 Thread Bharat Bhushan
Layerscape Chassis-2 have PCIe device, some platform devices and DPAA1 devices which will use stream-ids for iommu level isolation as they lies behind SMMU. This patch defines the stream-ids for Chassis-2 devices. stream-ids for DPAA1 are reserved for future use. Signed-off-by: Bharat Bhushan --

[U-Boot] [PATCH v2 5/6] fsl-lsch2: Use Chassis-2 streamid definition for ls1012a

2017-03-21 Thread Bharat Bhushan
As ls1012a is Chassis-2 type SOC and shares same streamid definition, this patch adds using streamids for ls1012a Signed-off-by: Bharat Bhushan --- include/configs/ls1012a_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_comm

[U-Boot] [PATCH v2 4/6] fsl-lsch2: Use Chassis-2 streamid definition for ls1046a

2017-03-21 Thread Bharat Bhushan
As ls1046a is Chassis-2 type SOC and shares same streamid definition, this patch adds using streamids for ls1046 Signed-off-by: Bharat Bhushan --- include/configs/ls1046a_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ls1046a_common.h b/include/configs/ls1046a_commo

[U-Boot] [PATCH v2 6/6] pcie-layerscape: Initialize pci-lut for NXP chasis-2 socs

2017-03-21 Thread Bharat Bhushan
From: Bharat Bhushan Layerscape Chasis-2 also uses same PCIe controller as used in Chasis-3 and have similar PCI-Lut. We need to initialize the pcie-lut for Chasis-2 also as in Chasis-3. Signed-off-by: Bharat Bhushan --- drivers/pci/pcie_layerscape_fixup.c | 4 ++-- 1 file changed, 2 insertio

[U-Boot] [PATCH v2 2/6] fsl-lsch3: Rewording to support other Chassis-3 Socs

2017-03-21 Thread Bharat Bhushan
LS2080a, LS1088a and LS2088a SOCs are based on Chassis-3 and shared same stream-id partitioning. This patch rewords the definition to support all these SOCs. Also have changes in description about iommu-map property updates in PCI node. Signed-off-by: Bharat Bhushan --- .../arm/include/asm/arch

[U-Boot] [PATCH v2 1/6] fsl-lsch3: rename ls2080a_stream_id.h to stream_id_lsch3.h

2017-03-21 Thread Bharat Bhushan
The stream ID allocation for Chasis3.0 devices, LS1088, LS2088 and LS2080, can be shared. This patch renames this accordingly. Signed-off-by: Bharat Bhushan --- .../asm/arch-fsl-layerscape/{ls2080a_stream_id.h => stream_id_lsch3.h} | 0 include/configs/ls2080a_common.h

[U-Boot] [PATCH 2/4 v3] dm: core: Add dm_remove_devices_flags() and hook it into device_remove()

2017-03-21 Thread Stefan Roese
The new function dm_remove_devices_flags() is intented for driver specific last-stage cleanup operations before the OS is started. This patch adds this functionality and hooks it into the common device_remove() function. Drivers wanting to use this feature for some last-stage removal calls, need t

Re: [U-Boot] [PATCH v2 12/20] arm: socfpga: Add pinmux for Arria 10

2017-03-21 Thread Ley Foon Tan
On Fri, Mar 10, 2017 at 9:50 AM, Marek Vasut wrote: > On 03/09/2017 01:26 AM, Ley Foon Tan wrote: >> Add pinmux support for Arria 10. >> >> Signed-off-by: Tien Fong Chee >> Signed-off-by: Ley Foon Tan >> --- >> arch/arm/mach-socfpga/Makefile | 1 + >> arch/arm/mach-socfpga/include

Re: [U-Boot] [PATCH v2 08/20] arm: socfpga: Add clock driver for Arria 10

2017-03-21 Thread Ley Foon Tan
On Fri, Mar 10, 2017 at 9:47 AM, Marek Vasut wrote: > On 03/09/2017 01:26 AM, Ley Foon Tan wrote: >> Add clock driver support for Arria 10. >> >> Signed-off-by: Tien Fong Chee >> Signed-off-by: Ley Foon Tan >> --- >> arch/arm/mach-socfpga/Makefile |3 +- >> arch/arm/mach

Re: [U-Boot] [PATCH] pcie-layerscape: Fixup iommu-map property of pci node

2017-03-21 Thread Bharat Bhushan
> -Original Message- > From: Diana Madalina Craciun > Sent: Friday, March 10, 2017 8:54 PM > To: Bharat Bhushan ; york sun > ; u-boot@lists.denx.de > Cc: Z.Q. Hou > Subject: Re: [U-Boot] [PATCH] pcie-layerscape: Fixup iommu-map property > of pci node > > On 2/24/2017 10:04 AM, Bharat Bh

Re: [U-Boot] [PATCH 2/2] net: gmac_rockchip: Add phy supply support

2017-03-21 Thread Jacob Chen
2017-03-22 2:56 GMT+08:00 Joe Hershberger : > On Wed, Mar 15, 2017 at 4:28 AM, Jacob Chen > wrote: >> Some board need a regulator for gmac phy, so add this code to handle it. >> >> Signed-off-by: Jacob Chen >> --- >> >> drivers/net/gmac_rockchip.c | 17 + >> 1 file changed, 17 i

Re: [U-Boot] [PATCHv3 3/5] fsl PPA: add support PPA image loading from NAND and SD

2017-03-21 Thread Z.Q. Hou
Hi Jaehoon, Thanks a lot for your review! - Zhiqiang > -Original Message- > From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] > Sent: 2017年3月22日 6:35 > To: Z.Q. Hou ; u-boot@lists.denx.de; > o...@buserror.net; york sun ; mingkai...@freescale.com; > s...@chromium.org; Xiaobo Xie > Subj

Re: [U-Boot] STM32F7 SD/MMC Card Driver - Testing/Review

2017-03-21 Thread Jaehoon Chung
Hi Philipp, On 03/22/2017 10:38 AM, Philipp Rossak wrote: > Hi Jaehoon, > > Thanks for that hint! > > I uploaded two logs to pastebin. > > Log [1] is a sandisk ultra 32gb sd card. This time I didn't got it work > properly. > > Log [2] is from an other 2gb sd card where I pressed the reset but

Re: [U-Boot] STM32F7 SD/MMC Card Driver - Testing/Review

2017-03-21 Thread Philipp Rossak
Hi Jaehoon, Thanks for that hint! I uploaded two logs to pastebin. Log [1] is a sandisk ultra 32gb sd card. This time I didn't got it work properly. Log [2] is from an other 2gb sd card where I pressed the reset button until I received data from CMD 17 command. Right now there are a lot o

Re: [U-Boot] STM32F7 SD/MMC Card Driver - Testing/Review

2017-03-21 Thread Jaehoon Chung
Hi Philipp, On 03/22/2017 09:27 AM, Philipp Rossak wrote: > Hey everyone, > > I'm currently working on a SD / MMC Card driver for the stm32f746g-disco > Board. You can find my actual very early work right here on my github > repository: [0] > > Currently I'm getting errors that are not reprodu

Re: [U-Boot] [GIT PULL] Please pull u-boot-mmc master

2017-03-21 Thread Tom Rini
On Tue, Mar 21, 2017 at 09:11:00PM +0900, Jaehoon Chung wrote: > Dear Tom, > > Could you pull these patches into your master branch? > > The following changes since commit d5abcf94c7123167725fc22ace342f0d455093c1: > > ti: boot: Register the MMC controllers in SPL in the same way as in u-boot

[U-Boot] STM32F7 SD/MMC Card Driver - Testing/Review

2017-03-21 Thread Philipp Rossak
Hey everyone, I'm currently working on a SD / MMC Card driver for the stm32f746g-disco Board. You can find my actual very early work right here on my github repository: [0] Currently I'm getting errors that are not reproducible: - Errors on sending different commands (happens somtimes but ra

Re: [U-Boot] [PATCH] ARM: keystone: Pass SPI MTD partition table via kernel command line

2017-03-21 Thread Tom Rini
On Tue, Mar 21, 2017 at 01:52:07PM -0500, Franklin S Cooper Jr wrote: > > > On 03/20/2017 11:57 PM, Vignesh R wrote: > > > > > > On Saturday 18 March 2017 08:04 PM, Tom Rini wrote: > And can we not move towards the "normal" method of SPL loading > the u-boot.img (or FIT) from? I gues

Re: [U-Boot] [PATCH 16/17] aspeed: Add AST2500/AST2400 compatible NIC Driver

2017-03-21 Thread Maxim Sloyko
Hi Joe, Please see responses inline, simply ACK'ed comments will be addressed in the next version. On Tue, Mar 21, 2017 at 12:32 PM, Joe Hershberger wrote: > On Thu, Mar 16, 2017 at 4:36 PM, Maxim Sloyko wrote: >> The device that Aspeed uses is basically Faraday FTGMAC100, but with >> some diff

[U-Boot] [PATCH] rockchip: rk3188: enable remap function

2017-03-21 Thread Heiko Stuebner
Most Rockchip socs have the ability to either map the bootrom or a sram area to the starting address of the cpu by flipping a bit in the GRF. Newer socs leave this untouched and mapped to the bootrom but the legacy loaders on rk3188 and before enabled the remap functionality and the current smp im

Re: [U-Boot] [PATCH 17/17] aspeed: Network Driver configuration for EVB

2017-03-21 Thread Simon Glass
On 16 March 2017 at 15:36, Maxim Sloyko wrote: > Enable Network Driver along with network related commands -- ping, dhcp, > mii -- in ast2500 Eval Board's defconfig. > > Add MAC devices' configuration to Eval Board Device Tree. > > Signed-off-by: Maxim Sloyko > > --- > > > --- > arch/arm/dts/ast

Re: [U-Boot] [PATCH 10/17] aspeed: Add P-Bus clock in ast2500 clock driver

2017-03-21 Thread Simon Glass
On 16 March 2017 at 15:36, Maxim Sloyko wrote: > Add P-Bus Clock support to ast2500 clock driver. > This is the clock used by I2C devices. > > Signed-off-by: Maxim Sloyko > --- > > arch/arm/include/asm/arch-aspeed/scu_ast2500.h | 3 ++- > drivers/clk/aspeed/clk_ast2500.c | 11

Re: [U-Boot] [PATCH 14/17] aspeed: Refactor SCU to use consistent mask & shift

2017-03-21 Thread Simon Glass
On 16 March 2017 at 15:36, Maxim Sloyko wrote: > Refactor SCU header to use consistent Mask & Shift values. > Now, consistently, to read value from SCU register, mask needs > to be applied before shift. > > Signed-off-by: Maxim Sloyko > --- > > arch/arm/include/asm/arch-aspeed/scu_ast2500.h | 12

Re: [U-Boot] [PATCH 07/17] aspeed: Refactor AST2500 RAM Driver and Sysreset Driver

2017-03-21 Thread Simon Glass
Hi Maxim, On 16 March 2017 at 15:36, Maxim Sloyko wrote: > This change switches all existing users of ast2500 Watchdog to Driver > Model based Watchdog driver. > > To perform system reset Sysreset Driver uses first Watchdog device found > via uclass_first_device call. Since the system is going to

Re: [U-Boot] [PATCH 06/17] aspeed: Device Tree configuration for Reset Driver

2017-03-21 Thread Simon Glass
On 16 March 2017 at 15:36, Maxim Sloyko wrote: > Add Reset Driver configuration to ast2500 SoC Device Tree and bindings > for various reset signals > > Signed-off-by: Maxim Sloyko > --- > > arch/arm/dts/ast2500-evb.dts | 15 +++ > arch/arm/dts/ast2500-u-boot.dtsi |

Re: [U-Boot] [PATCH 08/17] aspeed: AST2500 Pinctrl Driver

2017-03-21 Thread Simon Glass
On 16 March 2017 at 15:36, Maxim Sloyko wrote: > This driver uses Generic Pinctrl framework and is compatible with > the Linux driver for ast2500: it uses the same device tree > configuration. > > Not all pins are supported by the driver at the moment, so it actually > compatible with ast2400. In

Re: [U-Boot] [PATCH 09/17] aspeed: Enable Pinctrl Driver in AST2500 EVB

2017-03-21 Thread Simon Glass
On 16 March 2017 at 15:36, Maxim Sloyko wrote: > Enable Pinctrl Driver in AST2500 Eval Board's defconfig > > Signed-off-by: Maxim Sloyko > --- > > configs/evb-ast2500_defconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass ___ U-Bo

Re: [U-Boot] [PATCH 05/17] aspeed: Reset Driver

2017-03-21 Thread Simon Glass
Hi Maxim, On 16 March 2017 at 15:36, Maxim Sloyko wrote: > Add Reset Driver for ast2500 SoC. This driver uses Watchdog Timer to > perform resets and thus depends on it. The actual Watchdog device used > needs to be configured in Device Tree using "aspeed,wdt" property, which > must be WDT phandle

Re: [U-Boot] [PATCH 12/17] aspeed: Enable I2C in EVB defconfig

2017-03-21 Thread Simon Glass
On 16 March 2017 at 15:36, Maxim Sloyko wrote: > Enable I2C driver in ast2500 Eval Board defconfig. > Also enable i2c command. > > Signed-off-by: Maxim Sloyko > --- > > configs/evb-ast2500_defconfig | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Simon Glass ___

Re: [U-Boot] [PATCH 03/17] aspeed: Watchdog Timer Driver

2017-03-21 Thread Simon Glass
Hi Maxim, On 16 March 2017 at 15:36, Maxim Sloyko wrote: > This driver supports ast2500 and ast2400 SoCs. > Only ast2500 supports reset_mask and thus the option of resettting > individual peripherals using WDT. > > Signed-off-by: Maxim Sloyko > --- > > arch/arm/include/asm/arch-aspeed/wdt.h |

Re: [U-Boot] [PATCH 02/17] dm: Simple Watchdog uclass

2017-03-21 Thread Simon Glass
Hi Maxim, On 16 March 2017 at 15:36, Maxim Sloyko wrote: > This is a simple uclass for Watchdog Timers. It has four operations: > start, restart, reset, stop. Drivers must implement start, restart and > stop operations, while implementing reset is optional: It's default > implementation expires w

Re: [U-Boot] [PATCH 04/17] aspeed: Make SCU lock/unlock functions part of SCU API

2017-03-21 Thread Simon Glass
On 16 March 2017 at 15:36, Maxim Sloyko wrote: > Make functions for locking and unlocking SCU part of SCU API. > Many drivers need to modify settings in SCU and thus need to unlock it > first. This change makes it possible. > > Signed-off-by: Maxim Sloyko > --- > > arch/arm/include/asm/arch-aspe

Re: [U-Boot] [PATCH 01/17] aspeed: Update ast2500 Device Tree

2017-03-21 Thread Simon Glass
Hi Maxim, On 16 March 2017 at 15:36, Maxim Sloyko wrote: > Pull in the Device Tree for ast2500 from the mainline Linux kernel > > Signed-off-by: Maxim Sloyko > --- > > arch/arm/dts/ast2500.dtsi | 881 > +- > 1 file changed, 880 insertions(+), 1 delet

Re: [U-Boot] [PATCH v2] Makefile: Fix linking with modern binutils

2017-03-21 Thread Tom Rini
On Wed, Mar 22, 2017 at 09:00:58AM +1000, Nicholas Piggin wrote: > On Tue, 21 Mar 2017 11:16:50 -0400 > Tom Rini wrote: > > > On Tue, Mar 21, 2017 at 08:59:04AM -0500, Jon wrote: > > > > > Likewise tested on Fedora rawhide with: binutils-2.28-5.fc27 > > > > > > This patch allows our distro u-bo

Re: [U-Boot] [PATCHv3 3/5] fsl PPA: add support PPA image loading from NAND and SD

2017-03-21 Thread Jaehoon Chung
On 03/17/2017 05:12 PM, Zhiqiang Hou wrote: > From: Hou Zhiqiang > > Signed-off-by: Hou Zhiqiang Reviewed-by: Jaehoon Chung > --- > V3: > - Added checking for return value of mmc initialization. > - Added checking the fdt header before getting the size of PPA image. > > arch/arm/cpu/armv8

Re: [U-Boot] [PATCH 04/21] mmc: sti_sdhci: Use reset framework

2017-03-21 Thread Jaehoon Chung
On 03/18/2017 01:25 AM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Signed-off-by: Patrice Chotard Reviewed-by: Jaehoon Chung > --- > drivers/mmc/sti_sdhci.c | 31 ++- > 1 file changed, 22 insertions(+), 9 deletions(-) > > diff --git a/drivers/mmc/s

Re: [U-Boot] [PATCH 03/21] ARM: dts: stih410-family: Add missing reset_names for mmc1 node

2017-03-21 Thread Jaehoon Chung
On 03/18/2017 01:25 AM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > reset-names property is needed to use the reset > API for STi sdhci driver. > > Signed-off-by: Patrice Chotard Reviewed-by: Jaehoon Chung > --- > arch/arm/dts/stih407-family.dtsi | 1 + > 1 file changed, 1 ins

Re: [U-Boot] [PATCH 02/21] mmc: sti_sdhci: Rework sti_mmc_core_config()

2017-03-21 Thread Jaehoon Chung
On 03/18/2017 01:25 AM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Use struct udevice* as input parameter. Previous > parameters are retrieved through plat and priv data. > > This to prepare to use the reset framework. > > Signed-off-by: Patrice Chotard Reviewed-by: Jaehoon Chu

Re: [U-Boot] [PATCH] pmic: ltc3676: add regulator config function

2017-03-21 Thread Tim Harvey
On Tue, Mar 21, 2017 at 3:09 PM, Jaehoon Chung wrote: > Hi, > > On 03/21/2017 11:47 PM, Tim Harvey wrote: >> Add a convenience function for configuring the most common characteristics >> of an LTC3676 buck regulator. > > I didn't know where this is used. Hi Jaehoon, I'm going to use it for the I

Re: [U-Boot] [PATCH v2 4/7] sunxi: Add clock support for DE2/HDMI/TCON on newer SoCs

2017-03-21 Thread Jernej Škrabec
Hi, Dne torek, 21. marec 2017 ob 20:34:33 CET je Maxime Ripard napisal(a): > Hi, > > On Mon, Mar 20, 2017 at 11:01:25PM +0100, Jernej Skrabec wrote: > > diff --git a/include/configs/sun50i.h b/include/configs/sun50i.h > > index 1b7bfb6c22..146f7f4e1b 100644 > > --- a/include/configs/sun50i.h > >

Re: [U-Boot] [PATCH v4 2/3] mmc: tegra: allow disabling external clock loopback

2017-03-21 Thread Jaehoon Chung
On 03/21/2017 06:29 PM, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Introduce CONFIG_TEGRA124_MMC_DISABLE_EXT_LOOPBACK to disable the external > clock > loopback and use the internal one on SDMMC3 as per the > SDMMC_VENDOR_MISC_CNTRL_0 > register's SDMMC_SPARE1 bits being set to 0xfffd a

Re: [U-Boot] [PATCH] pmic: ltc3676: add regulator config function

2017-03-21 Thread Jaehoon Chung
Hi, On 03/21/2017 11:47 PM, Tim Harvey wrote: > Add a convenience function for configuring the most common characteristics > of an LTC3676 buck regulator. I didn't know where this is used. > > Signed-off-by: Tim Harvey > --- > drivers/power/pmic/pmic_ltc3676.c | 16 > include

Re: [U-Boot] [PATCH v4] drivers/net/phy: add fixed-phy / fixed-link support

2017-03-21 Thread Joe Hershberger
On Tue, Mar 21, 2017 at 3:19 PM, Hannes Schmelzer wrote: > From: Hannes Schmelzer > > This patch adds support for having a "fixed-link" to some other MAC > (like some embedded switch-device). > > For this purpose we introduce a new phy-driver, called "Fixed PHY". > > Fixed PHY works only with CON

Re: [U-Boot] [PATCH v2] drivers/net/phy: add fixed-phy / fixed-link support

2017-03-21 Thread Hannes Schmelzer
On 03/21/2017 09:00 PM, Joe Hershberger wrote: On Tue, Mar 21, 2017 at 2:34 PM, Hannes Schmelzer wrote: On 03/21/2017 07:26 PM, Joe Hershberger wrote: Hi Joe, many thanks for your input, i will do some rework and send v3. But a few words about my doing below. On Tue, Mar 21, 2017 at 4:30 AM,

[U-Boot] [PATCH v4] drivers/net/phy: add fixed-phy / fixed-link support

2017-03-21 Thread Hannes Schmelzer
From: Hannes Schmelzer This patch adds support for having a "fixed-link" to some other MAC (like some embedded switch-device). For this purpose we introduce a new phy-driver, called "Fixed PHY". Fixed PHY works only with CONFIG_DM_ETH enabled, since the fixed-link is described with a subnode be

Re: [U-Boot] [PATCH 19/22] x86: acpi: Turn on ACPI mode for S3

2017-03-21 Thread Simon Glass
On 16 March 2017 at 08:26, Bin Meng wrote: > Before jumping to OS waking up vector, we need turn on ACPI mode > for S3, just like what we do for a normal boot. > > Signed-off-by: Bin Meng > --- > > arch/x86/lib/acpi_s3.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Simon Glass > >

Re: [U-Boot] [PATCH 21/22] x86: minnowmax: Enable ACPI S3 resume

2017-03-21 Thread Simon Glass
On 16 March 2017 at 08:26, Bin Meng wrote: > This turns on ACPI S3 resume for minnowmax board. > > Signed-off-by: Bin Meng > --- > > configs/minnowmax_defconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass > > diff --git a/configs/minnowmax_defconfig b/configs/minnowmax_de

Re: [U-Boot] [PATCH 13/22] x86: fsp: Save stack address to CMOS for next S3 boot

2017-03-21 Thread Simon Glass
Hi Bin, On 16 March 2017 at 08:26, Bin Meng wrote: > At the end of pre-relocation phase, save the new stack address > to CMOS and use it as the stack on next S3 boot for fsp_init() > continuation function. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/cpu.c | 8 >

Re: [U-Boot] [PATCH 20/22] x86: pci: Allow conditionally run VGA rom in S3

2017-03-21 Thread Simon Glass
Hi, On 16 March 2017 at 08:26, Bin Meng wrote: > Introduce a new CONFIG_S3_VGA_ROM_RUN option so that U-Boot can > bypass executing VGA roms in S3. > > Signed-off-by: Bin Meng > --- > > arch/x86/Kconfig | 12 > drivers/pci/pci_rom.c | 14 ++ > 2 files changed, 26 i

Re: [U-Boot] [PATCH 18/22] x86: acpi: Refactor acpi_resume()

2017-03-21 Thread Simon Glass
Hi Bin, On 16 March 2017 at 08:26, Bin Meng wrote: > To do something more in acpi_resume() like turning on ACPI mode, > we need locate ACPI FADT table pointer first. But currently this > is done in acpi_find_wakeup_vector(). > > This changes acpi_resume() signature to accept ACPI FADT pointer > a

Re: [U-Boot] [PATCH 08/22] x86: fsp: Mark memory used by U-Boot as reserved in the E820 table for S3

2017-03-21 Thread Simon Glass
Hi Bin, On 16 March 2017 at 08:26, Bin Meng wrote: > U-Boot itself as well as everything that is consumed by U-Boot (like > heap, stack, dtb, etc) needs to be reserved and reported in the E820 > table when S3 resume is on. > > Signed-off-by: Bin Meng > --- > > arch/x86/Kconfig| 8 +

Re: [U-Boot] [PATCH 15/22] x86: Adjust board_final_cleanup() order

2017-03-21 Thread Simon Glass
On 16 March 2017 at 08:26, Bin Meng wrote: > Call board_final_cleanup() before write_tables(), so that anything > done in board_final_cleanup() on a normal boot path is also done > on an S3 resume path. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/cpu.c | 4 ++-- > 1 file changed, 2 insert

Re: [U-Boot] [PATCH 11/22] x86: acpi: Resume OS if resume vector is found

2017-03-21 Thread Simon Glass
Hi Bin, On 16 March 2017 at 08:26, Bin Meng wrote: > In an S3 resume path, U-Boot does everything like a cold boot except > in the last_stage_init() it jumps to the OS resume vector. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/cpu.c | 8 > arch/x86/include/asm/acpi_

Re: [U-Boot] [PATCH 14/22] x86: fsp: Mark the first 64K low memory as reserved

2017-03-21 Thread Simon Glass
On 16 March 2017 at 08:26, Bin Meng wrote: > Mark the first 64K memory as reserved as well since U-Boot uses this > memory region for things like VBIOS execution in real mode. After > kernel resumes, it checks low memory range per config option > CONFIG_X86_RESERVE_LOW which is 64K by default to s

Re: [U-Boot] [PATCH 17/22] x86: acpi: Make enter_acpi_mode() public

2017-03-21 Thread Simon Glass
Hi Bin, On 16 March 2017 at 08:26, Bin Meng wrote: > enter_acpi_mode() is useful on other boot path like S3 resume, so > make it public. > > Signed-off-by: Bin Meng > --- > > arch/x86/include/asm/acpi_table.h | 1 + > arch/x86/lib/acpi_table.c | 2 +- > 2 files changed, 2 insertions(+),

Re: [U-Boot] [PATCH 16/22] x86: apci: Change PM1_CNT register access to RMW

2017-03-21 Thread Simon Glass
On 16 March 2017 at 08:26, Bin Meng wrote: > In enter_acpi_mode() PM1_CNT register is changed to PM1_CNT_SCI_EN > directly without preserving its previous value. Update to change > the register access to read-modify-write (RMW). > > Signed-off-by: Bin Meng > --- > > arch/x86/lib/acpi_table.c | 4

Re: [U-Boot] [PATCH 12/22] x86: Add an early CMOS access library

2017-03-21 Thread Simon Glass
Hi Bin, On 16 March 2017 at 08:26, Bin Meng wrote: > This adds a library that provides CMOS (inside RTC SRAM) access > at a very early stage when driver model is not available yet. > > Signed-off-by: Bin Meng > --- > > arch/x86/include/asm/early_cmos.h | 43 + >

Re: [U-Boot] [PATCH 09/22] x86: acpi: Add wake up assembly stub

2017-03-21 Thread Simon Glass
Hi Bin, On 16 March 2017 at 08:26, Bin Meng wrote: > This adds a wake up stub before jumping to OS wake up vector. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/Makefile | 1 + > arch/x86/cpu/wakeup.S | 79 > ++ > arch/x86/include

Re: [U-Boot] [PATCH 10/22] x86: acpi: Add one API to find OS wakeup vector

2017-03-21 Thread Simon Glass
Hi Bin, On 16 March 2017 at 08:26, Bin Meng wrote: > This adds one API acpi_find_wakeup_vector() to locate OS wakeup > vector from the ACPI FACS table, to be used in the S3 boot path. > > Signed-off-by: Bin Meng > --- > > arch/x86/include/asm/acpi_table.h | 1 + > arch/x86/include/asm/tables.h

Re: [U-Boot] [PATCH 22/22] x86: Document ACPI S3 support

2017-03-21 Thread Simon Glass
On 16 March 2017 at 08:26, Bin Meng wrote: > Now that we have ACPI S3 support on Intel MinnowMax board, document > some generic information of S3 and how to test it. > > Signed-off-by: Bin Meng > > --- > > doc/README.x86 | 20 ++-- > 1 file changed, 14 insertions(+), 6 deletions(

Re: [U-Boot] [PATCH 07/22] x86: baytrail: Conditionally report S3 in the ACPI table

2017-03-21 Thread Simon Glass
On 16 March 2017 at 08:26, Bin Meng wrote: > When U-Boot is built without ACPI S3 support, it should not report > S3 in the ACPI table otherwise when kernel does STR it won't work. > > Signed-off-by: Bin Meng > --- > > arch/x86/include/asm/arch-baytrail/acpi/sleepstates.asl | 2 ++ > 1 file chan

Re: [U-Boot] [PATCH 06/22] x86: Store and display previous sleep state

2017-03-21 Thread Simon Glass
Hi Bin, On 16 March 2017 at 08:26, Bin Meng wrote: > Add one member in the global data to store previous sleep state, > and display the state during boot in print_cpuinfo(). > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/cpu.c | 6 ++ > arch/x86/include/asm/acpi_s3.h

Re: [U-Boot] [PATCH 05/22] x86: fsp: acpi: Pass different boot mode to FSP init

2017-03-21 Thread Simon Glass
On 16 March 2017 at 08:26, Bin Meng wrote: > When ACPI S3 resume is turned on, we should pass different boot mode > to FSP init instead of default BOOT_FULL_CONFIG. > > Signed-off-by: Bin Meng > --- > > arch/x86/include/asm/acpi_s3.h | 18 ++ > arch/x86/lib/fsp/fsp_common.c | 26

Re: [U-Boot] [PATCH v2] drivers/net/phy: add fixed-phy / fixed-link support

2017-03-21 Thread Joe Hershberger
On Tue, Mar 21, 2017 at 2:34 PM, Hannes Schmelzer wrote: > On 03/21/2017 07:26 PM, Joe Hershberger wrote: > Hi Joe, > > many thanks for your input, i will do some rework and send v3. > But a few words about my doing below. >> >> On Tue, Mar 21, 2017 at 4:30 AM, Hannes Schmelzer wrote: >>> >>> Fro

Re: [U-Boot] [ANN] U-Boot v2017.03 is released

2017-03-21 Thread Wolfgang Denk
Dear Tom, In message <20170313180242.GN19897@bill-the-cat> you wrote: > > I've released v2017.03 and it's now live on git and FTP and ACD (along > with PGP sig file). I apologize for the long delay - her eis finally the release statistics (full version as usual on the project page at [1]): [1]

[U-Boot] [PATCH v3] drivers/net/phy: add fixed-phy / fixed-link support

2017-03-21 Thread Hannes Schmelzer
From: Hannes Schmelzer This patch adds support for having a "fixed-link" to some other MAC (like some embedded switch-device). For this purpose we introduce a new phy-driver, called "Fixed PHY". Fixed PHY works only with CONFIG_DM_ETH enabled, since the fixed-link is described with a subnode be

Re: [U-Boot] [PATCH v2 6/7] sunxi: Disable DE2 video driver where not needed

2017-03-21 Thread Maxime Ripard
On Mon, Mar 20, 2017 at 11:01:27PM +0100, Jernej Skrabec wrote: > Because DE2 driver is enabled by default, it is nice to disable it on > all boards which don't have any video output. List of such boards is > also much shorter. > > Signed-off-by: Jernej Skrabec Acked-by: Maxime Ripard Thanks,

Re: [U-Boot] [PATCH v2 5/7] sunxi: video: Add A64/H3/H5 HDMI driver

2017-03-21 Thread Maxime Ripard
On Mon, Mar 20, 2017 at 11:01:26PM +0100, Jernej Skrabec wrote: > This commit adds support for HDMI output. > > Signed-off-by: Jernej Skrabec > Reviewed-by: Simon Glass Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-

Re: [U-Boot] [PATCH v2] drivers/net/phy: add fixed-phy / fixed-link support

2017-03-21 Thread Hannes Schmelzer
On 03/21/2017 07:26 PM, Joe Hershberger wrote: Hi Joe, many thanks for your input, i will do some rework and send v3. But a few words about my doing below. On Tue, Mar 21, 2017 at 4:30 AM, Hannes Schmelzer wrote: From: Hannes Schmelzer This patch adds support for having a "fixed-link" to som

Re: [U-Boot] [PATCH v2 4/7] sunxi: Add clock support for DE2/HDMI/TCON on newer SoCs

2017-03-21 Thread Maxime Ripard
Hi, On Mon, Mar 20, 2017 at 11:01:25PM +0100, Jernej Skrabec wrote: > diff --git a/include/configs/sun50i.h b/include/configs/sun50i.h > index 1b7bfb6c22..146f7f4e1b 100644 > --- a/include/configs/sun50i.h > +++ b/include/configs/sun50i.h > @@ -21,6 +21,8 @@ > #define GICD_BASE0x1c810

Re: [U-Boot] [PATCH v2 3/7] sunxi: video: Convert lcdc to use struct display_timing

2017-03-21 Thread Maxime Ripard
On Mon, Mar 20, 2017 at 11:01:24PM +0100, Jernej Skrabec wrote: > Video driver for older Allwinner SoCs uses cfb console framework which > in turn uses struct ctfb_res_modes to hold timing informations. However, > DM video framework uses different structure - struct display_timing. > > It makes mo

Re: [U-Boot] [PATCH v2 2/7] sunxi: video: Split out TCON code

2017-03-21 Thread Maxime Ripard
On Mon, Mar 20, 2017 at 11:01:23PM +0100, Jernej Skrabec wrote: > TCON unit has similar layout and functionality also on newer SoCs. This > commit splits out TCON code for easier reuse later. > > Signed-off-by: Jernej Skrabec Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Free Elec

Re: [U-Boot] [PATCH 16/17] aspeed: Add AST2500/AST2400 compatible NIC Driver

2017-03-21 Thread Joe Hershberger
On Thu, Mar 16, 2017 at 4:36 PM, Maxim Sloyko wrote: > The device that Aspeed uses is basically Faraday FTGMAC100, but with > some differences here and there. Since I don't have access to a properly > implemented FTGMAC100 though, I can't really test it and so I don't > feel comfortable claiming c

[U-Boot] Please separated FMan from generate NET config

2017-03-21 Thread york sun
Mingkai, I noticed during recent debug on LS1043ARDB and LS1046ARDB that the general network feature is combined with DPAA FMan. This is not correct. The fix is easy. You only need to change the Makefile in board folder to build eth.o with $(CONFIG_NET) instead of $(CONFIG_SYS_DPAA_FMAN). You

Re: [U-Boot] [PATCH 2/2] net: gmac_rockchip: Add phy supply support

2017-03-21 Thread Joe Hershberger
On Wed, Mar 15, 2017 at 4:28 AM, Jacob Chen wrote: > Some board need a regulator for gmac phy, so add this code to handle it. > > Signed-off-by: Jacob Chen > --- > > drivers/net/gmac_rockchip.c | 17 + > 1 file changed, 17 insertions(+) > > diff --git a/drivers/net/gmac_rockchip.

Re: [U-Boot] [ PATCH 2/2] net: move Broadcom SF2 driver to Kconfig

2017-03-21 Thread Joe Hershberger
On Fri, Mar 3, 2017 at 7:06 PM, Steve Rae wrote: > From: Suji Velupillai > > move to Kconfig: > CONFIG_BCM_SF2_ETH > CONFIG_BCM_SF2_ETH_GMAC > > Also modified defconfigs of all platforms that use these configs. > > Signed-off-by: Suji Velupillai > Tested-by: Suji Velupillai > Re

Re: [U-Boot] [PATCH] ARM: keystone: Pass SPI MTD partition table via kernel command line

2017-03-21 Thread Franklin S Cooper Jr
On 03/20/2017 11:57 PM, Vignesh R wrote: > > > On Saturday 18 March 2017 08:04 PM, Tom Rini wrote: And can we not move towards the "normal" method of SPL loading the u-boot.img (or FIT) from? I guess the current architecture here is confusing me. >>> This has been same for all k

Re: [U-Boot] [ PATCH 1/2] net: fix cache misaligned issue in Broadcom SF2 driver

2017-03-21 Thread Joe Hershberger
On Fri, Mar 3, 2017 at 7:06 PM, Steve Rae wrote: > From: Suji Velupillai > > Fixed cache misaligned issue in the net driver. The issue shows-up when > a call to flush_dcache_range is made with unaligned memory. The memory > must be aligned to ARCH_DMA_MINALIGN. > > Signed-off-by: Suji Velupillai

Re: [U-Boot] [PATCH v2 08/12] mvebu: a37xx: Add init for ESPRESSBin Topaz switch

2017-03-21 Thread Joe Hershberger
On Thu, Feb 16, 2017 at 5:52 AM, wrote: > From: Konstantin Porotchkin > > Implement the board-specific network init function for > ESPRESSOBin community board, setting the on-board Topaz > switch port to forward mode and allow network connection > through any of the available Etherenet ports. >

Re: [U-Boot] [PATCH v2] fdt_support: Fixup 'ethernet' aliases not ending in digits

2017-03-21 Thread Joe Hershberger
On Mon, Mar 20, 2017 at 3:04 AM, Tuomas Tynkkynen wrote: > The Raspberry Pi device tree files since Linux v4.9 have a "ethernet" > alias pointing to the on-board Ethernet device node. However, > U-Boot's fdt_fixup_ethernet() only looks at ethernet aliases ending > in digits. > > As the spec doesn'

Re: [U-Boot] [PATCH] net: link_local: Fix netmask endianness bug

2017-03-21 Thread Joe Hershberger
On Tue, Mar 14, 2017 at 2:03 PM, Sylvain Lemieux wrote: > From: Alexandre Messier > > The network mask must be stored in network order when in a > 'struct in_addr'. > > This fix removes the "gatewayip needed but not set" message on the > console when using a link-local IP setup. > > Signed-off-by

Re: [U-Boot] [PATCH v2] drivers/net/phy: add fixed-phy / fixed-link support

2017-03-21 Thread Joe Hershberger
On Tue, Mar 21, 2017 at 4:30 AM, Hannes Schmelzer wrote: > From: Hannes Schmelzer > > This patch adds support for having a "fixed-link" to some other MAC > (like some embedded switch-device). > > For this purpose we introduce a new phy-driver, called "Fixed PHY". > > Fixed PHY works only with CON

Re: [U-Boot] [U-Boot, u-boot, v4, 06/10] board: ti: am571x-idk: Update pinmux for ICSS2 Ethernet

2017-03-21 Thread Tom Rini
On Mon, Mar 13, 2017 at 03:04:29PM +0200, Roger Quadros wrote: > Use the same convention that was used for ICSS1 Ethernet > - If pin is output, set as PIN_OUTPUT > - If pin is input and external pull resistor present set as PIN_INPUT > - If pin is input and external pull resistor absent, set pull

Re: [U-Boot] [U-Boot, u-boot, v4, 10/10] net: don't override ethernet address environment

2017-03-21 Thread Tom Rini
On Mon, Mar 13, 2017 at 03:04:33PM +0200, Roger Quadros wrote: > If the ethernet address environment is set with a valid > ethernet address prevent overriding it as it is most likely > set by the user and he/she doesn't want board code to > automatically override it whatsoever. > > Signed-off-by:

Re: [U-Boot] [U-Boot, v3, 3/3] part_efi: document device-tree binding for part_efi configuration

2017-03-21 Thread Tom Rini
On Wed, Mar 01, 2017 at 09:10:41PM +0100, Philipp Tomsich wrote: > This adds documentation on the u-boot,efi-partition-entries-offset > property (which overrides CONFIG_EFI_PARTITION_ENTRIES_OFF, if > present). > > Signed-off-by: Philipp Tomsich > Reviewed-by: Simon Glass Applied to u-boot/mas

Re: [U-Boot] [PATCHv2] spl: Correct call to spl_common_init() with SPL_STACK_R_MALLOC_SIMPLE_LEN

2017-03-21 Thread Tom Rini
On Tue, Mar 21, 2017 at 07:15:01AM -0400, Tom Rini wrote: > Calls to IS_ENABLED() on a non-y/n option will always be false, even > when set. We can correct this by adding a new bool value that is set > based on the conditions required for SPL_STACK_R_MALLOC_SIMPLE_LEN to be > set instead. > > Fi

Re: [U-Boot] [U-Boot, v3] board: ns2: Add support for Broadcom Northstar 2

2017-03-21 Thread Tom Rini
On Fri, Mar 17, 2017 at 12:12:14PM -0400, Jon Mason wrote: > Add support for the Broadcom Northstar2 SoC and SVK (bcm958712k). The > BCM5871X is a series of quad-core 64-bit 2GHz ARMv8 Cortex-A57 > processors targeting a broad range of networking applications. > > Signed-off-by: Jon Mason Appl

Re: [U-Boot] [PATCH v1 41/41] arm64: mvebu: Enable CONFIG_PHY_MARVELL in Armada7k/8k-DB defconfig

2017-03-21 Thread Joe Hershberger
On Tue, Mar 21, 2017 at 9:28 AM, Stefan Roese wrote: > The Marvell PHY support is needed espescially for the A7040-DB with the > SGMII port (port 2). As without the marvell PHY driver configuration > for SGMII, ethernet won't work. > > Signed-off-by: Stefan Roese > Cc: Stefan Chulski > Cc: Kosty

Re: [U-Boot] [U-Boot, v2] Pass empty CFLAGS on invocation of libfdt/setup.py

2017-03-21 Thread Tom Rini
On Thu, Mar 16, 2017 at 03:23:55PM -0700, Max Filippov wrote: > When building u-boot tools in cross-build environment CFLAGS environment > variable set up for target is taken into an account when building code > for host. Make it empty on invocation of python. > > This fixes the following build e

Re: [U-Boot] Kconfig: Don't use RSA_FREESCALE_EXP on IMX

2017-03-21 Thread Tom Rini
On Thu, Mar 16, 2017 at 04:17:06PM -0500, George McCollister wrote: > The CAAM in IMX parts doesn't support public key hardware acceleration > (PKHA), so don't use RSA_FREESCALE_EXP. If you try to use it on IMX > (assuming you have the clocks enabled first) you will get back an > "Invalid KEY Comm

Re: [U-Boot] test-fit.py: Minor grammar/spelling/clarification tweaks

2017-03-21 Thread Tom Rini
On Mon, Mar 13, 2017 at 06:50:55AM -0400, Robert P. J. Day wrote: > * Add note that execution needs Python development package installed > * Standardize on upper case "FIT", "FDT" as necessary for clarity > * Fix "tempoerary", "linex" typos > > Signed-off-by: Robert P. J. Day > > diff --git a/t

Re: [U-Boot] [U-Boot, u-boot, v4, 02/10] ti: common: board_detect: Rename EEPROM scratch start macro

2017-03-21 Thread Tom Rini
On Mon, Mar 13, 2017 at 03:04:25PM +0200, Roger Quadros wrote: > From: Lokesh Vutla > > Non OMAP platforms i.e. Keystone will also need to use the board > EEPROM helpers so let's make the macro platform independent. > > Signed-off-by: Roger Quadros > Signed-off-by: Lokesh Vutla > Reviewed-by:

Re: [U-Boot] [U-Boot, v4, 1/3] ARM: dts: am43xx: Add u-boot specific dtsi

2017-03-21 Thread Tom Rini
On Tue, Feb 21, 2017 at 11:40:42AM +0530, Lokesh Vutla wrote: > Add u-boot specific dtsi for am43xx-gp-evm so > that it will be used for SPL. > > Reviewed-by: Tom Rini > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot, PATCHv2] da850: Add instructions to copy AIS image to NAND

2017-03-21 Thread Tom Rini
On Fri, Mar 17, 2017 at 04:55:23PM +0100, ahas...@baylibre.com wrote: > Add instructions to write an AIS image to NAND > by using the u-boot nand tools. > > Signed-off-by: Axel Haslam Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [U-Boot, u-boot, v4, 07/10] board: ti: am57xx-idk: Auto detect LCD Panel

2017-03-21 Thread Tom Rini
On Mon, Mar 13, 2017 at 03:04:30PM +0200, Roger Quadros wrote: > From: Nishanth Menon > > AM571x IDK and AM572x IDK have optional LCD Kits that can be purchased. > These can be one of OSD101T2045 or the newer OSD101T2587. The LCD panel > itself has no registers that can be used to identify the p

Re: [U-Boot] [U-Boot, u-boot, v4, 01/10] ARM: OMAP5+: GPIO: Add GPIO_TO_PIN() macro

2017-03-21 Thread Tom Rini
On Mon, Mar 13, 2017 at 03:04:24PM +0200, Roger Quadros wrote: > GPIO_TO_PIN(bank, bank_gpio) returns the GPIO index > from the GPIO bank number and bank's GPIO offset number. > > Signed-off-by: Roger Quadros > Reviewed-by: Tom Rini > Reviewed-by: Lokesh Vutla Applied to u-boot/master, thanks

Re: [U-Boot] [U-Boot, u-boot, v5, 04/10] ti: common: board_detect: commodify ethaddr environment setting code

2017-03-21 Thread Tom Rini
On Tue, Mar 14, 2017 at 03:04:19PM +0200, Roger Quadros wrote: > Keystone and OMAP platforms will need this to set ethernet > MAC addresses from board EEPROM. > > Signed-off-by: Roger Quadros > Reviewed-by: Lokesh Vutla > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom sign

Re: [U-Boot] [U-Boot, v3, 2/3] doc: move documentation for /config node into a separate file

2017-03-21 Thread Tom Rini
On Wed, Mar 01, 2017 at 09:10:40PM +0100, Philipp Tomsich wrote: > This moves the description of the /config node from README.fdt-control > into a separate file doc/device-tree-bindings/config.txt. > > Signed-off-by: Philipp Tomsich > Reviewed-by: Simon Glass Applied to u-boot/master, thanks!

  1   2   3   >