Re: [U-Boot] [PATCH] ARM: aspeed: Add SD host controller driver

2019-08-12 Thread Peng Fan
> Subject: [U-Boot][PATCH] ARM: aspeed: Add SD host controller driver > > Add support for the Aspeed SD host controller engine. This involves adding an > MMC SDHCI driver and various additions to the clock and reset drivers for > Aspeed chips. > > Signed-off-by: Eddie James > --- > arch/arm/inc

Re: [U-Boot] [U-BOOT PATCH v1] riscv: sifive: fu540: set serial environment variable from otp

2019-08-12 Thread Sagar Kadam
Hi Bin, On Mon, Aug 12, 2019 at 8:43 PM Bin Meng wrote: > > On Mon, Aug 12, 2019 at 10:58 PM Sagar Shrikant Kadam > wrote: > > > > This patch sets the serial# environment variable by reading the > > board serial number from the OTP memory region. > > > > Signed-off-by: Sagar Shrikant Kadam > >

Re: [U-Boot] Booting Linux kernel on x86_64

2019-08-12 Thread Ryan Wilkins
> On Aug 12, 2019, at 9:05 PM, Bin Meng wrote: > > Did you enable CONFIG_FB_VESA in the kernel? > I added that in today and it worked. I had EFI FB support compiled in but I didn’t have FB VESA so this was preventing me to seeing any output on the screen which led me to believe that u-boo

Re: [U-Boot] Booting Linux kernel on x86_64

2019-08-12 Thread Bin Meng
Hi Ryan, On Tue, Aug 13, 2019 at 8:23 AM Bin Meng wrote: > > Hi Ryan, > > On Tue, Aug 13, 2019 at 12:48 AM Ryan Wilkins > wrote: > > > > > > > > > On Aug 10, 2019, at 8:42 AM, Andy Shevchenko > > > wrote: > > > > > > You may try to enable 'earlyprintk=efi' (newer kernels have different > > > a

Re: [U-Boot] [PATCH 14/15] rockchip: rk3399: Add bootcount support【请注意,邮件由u-boot-boun...@lists.denx.de代发】

2019-08-12 Thread Kever Yang
On 2019/8/12 下午8:16, Kever Yang wrote: Hi Jagan, On 2019/7/29 下午3:47, Jagan Teki wrote: Add bootcount support for Rockchip rk3399. The bootcount value is preserved in PMU_SYS_REG0 register, PMU_SYS_REG0 has been used by other case in Rockchip, we don't Please ignore this mail, I mixing

Re: [U-Boot] [RFC PATCH] rockchip, Makefile: add u-boot-tpl-with-spl.img target

2019-08-12 Thread Kever Yang
On 2019/8/12 下午9:05, Matwey V. Kornilov wrote: вс, 11 авг. 2019 г. в 22:10, Mark Kettenis : From: "Matwey V. Kornilov" Date: Sun, 11 Aug 2019 11:06:02 +0300 Many Rockchip platforms require the same u-boot deploy procedure when TPL and SPL both enabled. The following examples are taken from d

Re: [U-Boot] Booting Linux kernel on x86_64

2019-08-12 Thread Bin Meng
Hi Ryan, On Tue, Aug 13, 2019 at 12:48 AM Ryan Wilkins wrote: > > > > > On Aug 10, 2019, at 8:42 AM, Andy Shevchenko > > wrote: > > > > You may try to enable 'earlyprintk=efi' (newer kernels have different > > approach, i.e. 'earlycon=efifb') and also add 'keep_bootcon' to see if > > the proble

[U-Boot] [PATCH] ARM: omapl138_lcdk: Enable USB

2019-08-12 Thread Adam Ford
The OMAPL138-lcdk has two USB controllers which are currently disabled. This patch enables them. Signed-off-by: Adam Ford diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 26b4950f8f..db0ccfb68f 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl1

[U-Boot] [PATCH] ARM: aspeed: Add SD host controller driver

2019-08-12 Thread Eddie James
Add support for the Aspeed SD host controller engine. This involves adding an MMC SDHCI driver and various additions to the clock and reset drivers for Aspeed chips. Signed-off-by: Eddie James --- arch/arm/include/asm/arch-aspeed/scu_ast2500.h | 3 + arch/arm/include/asm/gpio.h

[U-Boot] [PATCH 3/3] configs: Rename environment variable fit_bootfile to name_fit

2019-08-12 Thread Andrew F. Davis
Like we did with 'fit_loadaddr' to 'addr_fit', the variable 'fit_bootfile' contains a name and so should be prefixed with name_. Make this change here. Signed-off-by: Andrew F. Davis --- include/configs/ti_armv7_common.h| 4 ++-- include/configs/ti_armv7_keystone2.h | 13 + 2 fi

[U-Boot] [PATCH 2/3] configs: Rename environment variable fit_loadaddr to addr_fit

2019-08-12 Thread Andrew F. Davis
This is the first part of a larger effort I would like to propose to unify and simplify the default set of environment variables. When many early environment variables were named there were fewer images being loaded, usually just a kernel. At this time names like 'loadaddr' would suffice. Now we h

[U-Boot] [PATCH 1/3] configs: Remove unneeded overlay_files environment variable

2019-08-12 Thread Andrew F. Davis
The variable 'name_overlays' serves the same purpose. Remove 'overlay_files' and use 'name_overlays' everywhere. Signed-off-by: Andrew F. Davis --- include/configs/am65x_evm.h | 5 ++--- include/configs/j721e_evm.h | 6 ++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/includ

Re: [U-Boot] [PATCH 1/1] network: set timeline for CONFIG_DM_ETH conversion

2019-08-12 Thread Joe Hershberger
On Fri, Aug 9, 2019 at 5:11 PM Heinrich Schuchardt wrote: > > The driver model has been supported for network drivers since 2015. It is > time to convert the remaining boards. Set July 2020 as a timeline. > > Signed-off-by: Heinrich Schuchardt Acked-by: Joe Hershberger _

[U-Boot] [PATCH] mmc: mtk-sd: Add MT8183 SoC support

2019-08-12 Thread Fabien Parent
Add support for the MT8183 in the MediaTek MMC driver. Signed-off-by: Fabien Parent --- drivers/mmc/mtk-sd.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 780d3069eb..220bc09164 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mm

Re: [U-Boot] [RFC PATCH] rockchip, Makefile: add u-boot-tpl-with-spl.img target

2019-08-12 Thread Chris Webb
Mark Kettenis wrote: [Simon Glass wrote:] Well, for producing an image that works. E.g. producing a full image (TPL, SPL and U-Boot) for an SD card - it would be nice to have u-boot-rockchip.sd.bin or something like that. True. That'd be an image you write at certain offset I suppose s

Re: [U-Boot] [PATCH] travis.yml: change Ubuntu version to xenial

2019-08-12 Thread Ramon Fried
On Mon, Aug 12, 2019 at 7:55 PM Tom Rini wrote: > > On Mon, Aug 12, 2019 at 07:53:07PM +0300, Ramon Fried wrote: > > On Mon, Aug 12, 2019 at 7:41 PM Tom Rini wrote: > > > > > > On Wed, Jul 17, 2019 at 08:24:18PM +0300, Ramon Fried wrote: > > > > > > > > > > > > On July 17, 2019 7:42:30 PM GMT+03:

[U-Boot] [PATCH v2] travis.yml: change Ubuntu version to xenial

2019-08-12 Thread Ramon Fried
trusty is getting old, move to xenial (16.04) to get updated gcc and other tools. Signed-off-by: Ramon Fried --- v2: update llvm-toolchain also to xenial .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index d330dda5b1..59d2e97fe0 1

Re: [U-Boot] [PATCH 1/1] network: set timeline for CONFIG_DM_ETH conversion

2019-08-12 Thread Simon Glass
On Fri, 9 Aug 2019 at 16:10, Heinrich Schuchardt wrote: > > The driver model has been supported for network drivers since 2015. It is > time to convert the remaining boards. Set July 2020 as a timeline. > > Signed-off-by: Heinrich Schuchardt > --- > Makefile | 11 ++

Re: [U-Boot] [RFC PATCH] rockchip, Makefile: add u-boot-tpl-with-spl.img target

2019-08-12 Thread Simon Glass
Hi Mark, On Mon, 12 Aug 2019 at 10:56, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Mon, 12 Aug 2019 10:45:46 -0600 > > > > Hi Mark, > > > > On Sun, 11 Aug 2019 at 12:53, Mark Kettenis wrote: > > > > > > > From: Simon Glass > > > > Date: Sun, 11 Aug 2019 12:37:13 -0600 > > > > > > >

Re: [U-Boot] [RFC PATCH] rockchip, Makefile: add u-boot-tpl-with-spl.img target

2019-08-12 Thread Mark Kettenis
> From: Simon Glass > Date: Mon, 12 Aug 2019 10:45:46 -0600 > > Hi Mark, > > On Sun, 11 Aug 2019 at 12:53, Mark Kettenis wrote: > > > > > From: Simon Glass > > > Date: Sun, 11 Aug 2019 12:37:13 -0600 > > > > > > Hi, > > > > > > On Sun, 11 Aug 2019 at 07:51, Chris Webb wrote: > > > > > > > > M

Re: [U-Boot] [PATCH] travis.yml: change Ubuntu version to xenial

2019-08-12 Thread Tom Rini
On Mon, Aug 12, 2019 at 07:53:07PM +0300, Ramon Fried wrote: > On Mon, Aug 12, 2019 at 7:41 PM Tom Rini wrote: > > > > On Wed, Jul 17, 2019 at 08:24:18PM +0300, Ramon Fried wrote: > > > > > > > > > On July 17, 2019 7:42:30 PM GMT+03:00, Tom Rini > > > wrote: > > > >On Wed, Jul 17, 2019 at 07:37:

Re: [U-Boot] [PATCH] travis.yml: change Ubuntu version to xenial

2019-08-12 Thread Ramon Fried
On Mon, Aug 12, 2019 at 7:41 PM Tom Rini wrote: > > On Wed, Jul 17, 2019 at 08:24:18PM +0300, Ramon Fried wrote: > > > > > > On July 17, 2019 7:42:30 PM GMT+03:00, Tom Rini wrote: > > >On Wed, Jul 17, 2019 at 07:37:23PM +0300, Ramon Fried wrote: > > >> > > >> > > >> On July 17, 2019 4:29:04 PM GM

Re: [U-Boot] [PATCH] core: ofnode: do not assert if node not valid in ofnode_get_name()【请注意,邮件由s...@google.com代发】

2019-08-12 Thread Simon Glass
Hi Kever, On Sun, 11 Aug 2019 at 22:34, Kever Yang wrote: > > Hi Simon, > > > Who is suppose to apply this patch, it's delegate to Philipp now, > should I take it? I will leave that to you two. Regards, Simon > > > Thanks, > > - Kever > > On 2019/7/25 上午3:48, Simon Glass wrote: > > On Thu

Re: [U-Boot] Booting Linux kernel on x86_64

2019-08-12 Thread Ryan Wilkins
> On Aug 10, 2019, at 8:42 AM, Andy Shevchenko > wrote: > > You may try to enable 'earlyprintk=efi' (newer kernels have different > approach, i.e. 'earlycon=efifb') and also add 'keep_bootcon' to see if > the problem is at the beginning or ending stages of boot process. > > > > -- > With B

Re: [U-Boot] [RFC PATCH] rockchip, Makefile: add u-boot-tpl-with-spl.img target

2019-08-12 Thread Simon Glass
Hi Mark, On Sun, 11 Aug 2019 at 12:53, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Sun, 11 Aug 2019 12:37:13 -0600 > > > > Hi, > > > > On Sun, 11 Aug 2019 at 07:51, Chris Webb wrote: > > > > > > Matwey V. Kornilov wrote: > > > > > > > Here, we introduce generic u-boot-tpl-with-spl.i

Re: [U-Boot] [PATCH] travis.yml: change Ubuntu version to xenial

2019-08-12 Thread Tom Rini
On Wed, Jul 17, 2019 at 08:24:18PM +0300, Ramon Fried wrote: > > > On July 17, 2019 7:42:30 PM GMT+03:00, Tom Rini wrote: > >On Wed, Jul 17, 2019 at 07:37:23PM +0300, Ramon Fried wrote: > >> > >> > >> On July 17, 2019 4:29:04 PM GMT+03:00, Tom Rini > >wrote: > >> >On Mon, Jul 15, 2019 at 03:2

Re: [U-Boot] [PATCH v1 0/4] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-08-12 Thread Lukasz Majewski
Hi Adam, > On Mon, Aug 12, 2019 at 2:08 AM Lukasz Majewski wrote: > > > > This patch series introduces new SPL and TPL specific Kconfig > > entries for DM_SPI* options. Such change allows using the spi > > driver in SPL/TPL or U-Boot proper. > > > > First two patches - related to ls10{42}* NXP so

[U-Boot] [PATCH 1/2] gitlab-ci: Add USER environment variable to buildman/patman tests

2019-08-12 Thread Tom Rini
The way that some of the tests here are designed, they expect USER to be set in the environment. This is not the case in the docker images, so set a reasonable value. Signed-off-by: Tom Rini --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml

[U-Boot] [PATCH 2/2] gitlab-ci: Consolidate some testsuite jobs

2019-08-12 Thread Tom Rini
We do not need to split binman, buildman, dtoc and patman test suite runs into 3 jobs. Instead, run them as a single job. Signed-off-by: Tom Rini --- .gitlab-ci.yml | 42 +++--- 1 file changed, 15 insertions(+), 27 deletions(-) diff --git a/.gitlab-ci.yml b/

Re: [U-Boot] [U-BOOT PATCH v1] riscv: sifive: fu540: set serial environment variable from otp

2019-08-12 Thread Bin Meng
On Mon, Aug 12, 2019 at 10:58 PM Sagar Shrikant Kadam wrote: > > This patch sets the serial# environment variable by reading the > board serial number from the OTP memory region. > > Signed-off-by: Sagar Shrikant Kadam > Reviewed-by: Anup Patel > --- > board/sifive/fu540/fu540.c | 18 ++

[U-Boot] [PATCH v4 3/3] board: puma: Use rockchip_* helpers to setup cpuid and macaddr

2019-08-12 Thread Rohan Garg
We should use the shared helpers to setup the necessary parts Signed-off-by: Rohan Garg --- .../puma_rk3399/puma-rk3399.c | 108 +++--- 1 file changed, 18 insertions(+), 90 deletions(-) diff --git a/board/theobroma-systems/puma_rk3399/puma-rk3399.c b/board/theobrom

[U-Boot] [PATCH v4 2/3] rockchip: rk3399: Enable CONFIG_MISC_INIT_R for the Rock PI 4

2019-08-12 Thread Rohan Garg
This enables us to set a static MAC address Signed-off-by: Rohan Garg --- configs/rock-pi-4-rk3399_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/rock-pi-4-rk3399_defconfig b/configs/rock-pi-4-rk3399_defconfig index 14ae39a561..602be5a928 100644 --- a/configs/rock-pi-4-r

[U-Boot] [PATCH v4 1/3] rockchip: rk3399: derive ethaddr from cpuid

2019-08-12 Thread Rohan Garg
Generate a MAC address based on the cpuid available in the efuse block: Use the first 6 byte of the cpuid's SHA256 hash and set the locally administered bits. Also ensure that the multicast bit is cleared. The MAC address is only generated and set if there is no ethaddr present in the saved enviro

[U-Boot] [U-BOOT PATCH v1] riscv: sifive: fu540: set serial environment variable from otp

2019-08-12 Thread Sagar Shrikant Kadam
This patch sets the serial# environment variable by reading the board serial number from the OTP memory region. Signed-off-by: Sagar Shrikant Kadam Reviewed-by: Anup Patel --- board/sifive/fu540/fu540.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/boar

[U-Boot] [U-BOOT PATCH v1] set serial environment variable

2019-08-12 Thread Sagar Shrikant Kadam
This patch sets serial environment variable by reading the OTP memory region of FU540-C000 SoC which is mounted on HiFive Unleashed A00 board. The patch is based on master branch of[1] [1] https://gitlab.denx.de/u-boot/custodians/u-boot-riscv Following is the result: U-Boot 2019.10-rc1-03748-ga

Re: [U-Boot] [U-BOOT PATCH] riscv: sifive: fu540: set serial environment variable from otp

2019-08-12 Thread Sagar Kadam
Hi Bin, On Mon, Aug 12, 2019 at 2:34 PM Bin Meng wrote: > > On Mon, Aug 12, 2019 at 2:42 PM Sagar Shrikant Kadam > wrote: > > > > This patch sets the serial# environment variable by reading the > > board serial number from the OTP memory region. > > > > Signed-off-by: Sagar Shrikant Kadam > > -

Re: [U-Boot] [PATCH v2 2/3] arm: mvebu: clearfog: set uboot image SD card offset

2019-08-12 Thread Baruch Siach
Hi Stefan, On Mon, Aug 12, 2019 at 03:14:16PM +0200, Stefan Roese wrote: > On 06.08.19 08:20, Stefan Roese wrote: > > On 29.07.19 09:12, Baruch Siach wrote: > > > Armada 38x ROM skips the first SD card offset when loading SPL. This > > > affects the location of the main U-Boot image. SPL MMC code

Re: [U-Boot] [PATCH v2 1/3] spl: mmc: support uboot image offset on main partition

2019-08-12 Thread Baruch Siach
Hi Stefan, On Mon, Aug 12, 2019 at 03:13:58PM +0200, Stefan Roese wrote: > On 06.08.19 08:15, Stefan Roese wrote: > > On 29.07.19 09:12, Baruch Siach wrote: > > > On Armada 38x platforms the ROM code loads SPL from offset 0 of eMMC > > > hardware boot partitions. When there are no boot partitions

Re: [U-Boot] [U-BOOT PATCH] riscv: sifive: fu540: set serial environment variable from otp

2019-08-12 Thread Sagar Kadam
Hi Anup, On Mon, Aug 12, 2019 at 1:00 PM Anup Patel wrote: > > On Mon, Aug 12, 2019 at 12:12 PM Sagar Shrikant Kadam > wrote: > > > > This patch sets the serial# environment variable by reading the > > board serial number from the OTP memory region. > > > > Signed-off-by: Sagar Shrikant Kadam >

Re: [U-Boot] [PATCH] cmd: avb: Fix requested partitions list

2019-08-12 Thread Eugeniu Rosca
Hi all, On Mon, Aug 12, 2019 at 02:13:55PM +0300, Igor Opaniuk wrote: [..] > Current snapshot of libavb in U-boot is a bit out-dated (~2 years) and > before introducing patches that can leverage new features from the mainline > libavb(taking into account that you're referring to Jul 30, 2019 patch

Re: [U-Boot] [PATCH 00/11] Aquantia PHY driver updates to reduce FW dependency

2019-08-12 Thread Alex Marginean
On 8/8/2019 7:45 PM, Alex Marginean wrote: The main purpose of this patch series is to allow the AQR driver to run on a larger number of boards without having to use a custom aquantia FW on each of them. Configuration points that are exclusively controlled by PHY firmware are not configured base

[U-Boot] [PATCH v2 10/11] doc: bindings: Aquantia PHY node binding

2019-08-12 Thread Alex Marginean
A couple of optional properties have been introduced for Aquantia PHY allowing the driver to set up wiring related configuration points that are otherwise driven by firmware. Signed-off-by: Alex Marginean --- doc/device-tree-bindings/net/aquantia-phy.txt | 25 +++ 1 file changed,

[U-Boot] [PATCH v2 11/11] drivers: net: fsl_enetc: use XFI, USXGMII interface type macros

2019-08-12 Thread Alex Marginean
Apply 10G PCS init for USXGMII, XFI interface types. Signed-off-by: Alex Marginean --- drivers/net/fsl_enetc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c index 928d071815..ec0ac8b606 100644 --- a/drivers/net/fsl_enetc.c +++ b/drivers/n

Re: [U-Boot] [PATCH v1 0/4] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-08-12 Thread Adam Ford
On Mon, Aug 12, 2019 at 2:08 AM Lukasz Majewski wrote: > > This patch series introduces new SPL and TPL specific Kconfig entries for > DM_SPI* options. Such change allows using the spi driver in SPL/TPL or > U-Boot proper. > > First two patches - related to ls10{42}* NXP soc fix some issues with >

[U-Boot] [PATCH v2 08/11] drivers: net: aquantia: use SI and LI status in loop waiting for link up

2019-08-12 Thread Alex Marginean
In some cases the link on the system interface of the aquantia PHY comes up after the link on line interface. The link state loop only checks the line side, which may result in first packet sent being lost. Use aquantia_link_is_up instead, which checks both system and line side on gen 2/3 PHYs to

[U-Boot] [PATCH v2 07/11] drivers: net: aquantia: set SMBus addr based on DT property

2019-08-12 Thread Alex Marginean
Aquantia PHYs have a SMBus interface mostly used for debug. The addresses on this interface are normally set up by PHY firmware, but depending on the board they may end up not being unique. Add an optional DT property used to change SMBus address if needed. Signed-off-by: Alex Marginean --- dr

[U-Boot] [PATCH v2 05/11] drivers: net: aquantia: set up SI protocol based on interface type

2019-08-12 Thread Alex Marginean
If PHY is not ready for data by the time _config is called, reconfigure the PHY system interface to use the proper protocol based on phydev->interface, just in case the defaults set by PHY firmware don't match current configuration. Signed-off-by: Alex Marginean --- drivers/net/phy/aquantia.c |

[U-Boot] [PATCH v2 04/11] drivers: net: aquantia: add PHY generation information

2019-08-12 Thread Alex Marginean
Uses the data field in phy_driver structure to identify the PHY generation. This is useful for custom configuration as non-generic PHY registers are not 100% compatible between generations. Signed-off-by: Alex Marginean --- drivers/net/phy/aquantia.c | 11 +++ 1 file changed, 11 insertio

[U-Boot] [PATCH v2 09/11] doc: bindings: add bindings document for PHY nodes

2019-08-12 Thread Alex Marginean
It defines that PHY nodes must be children on MDIO bus nodes and defines the only required property in U-Boot, reg. This property along with the example provided are copied over from Linux. Signed-off-by: Alex Marginean --- doc/device-tree-bindings/net/phy.txt | 24 1 f

[U-Boot] [PATCH v2 02/11] include: phy: add data field for private driver data

2019-08-12 Thread Alex Marginean
This is useful to carry custom information between the driver structure associated with a specific HW and the driver code. Signed-off-by: Alex Marginean --- include/phy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/phy.h b/include/phy.h index f4530faeb9..58455d6493 100644 ---

[U-Boot] [PATCH v2 06/11] drivers: net: aquantia: set MDI reversal based on DT property

2019-08-12 Thread Alex Marginean
MDI pins up to the RJ45 connector may be reversed on the board and the default PHY configuration applied by firmware may or may not match that. Add an optional DT property to configure MDI reversal for this case. Signed-off-by: Alex Marginean --- drivers/net/phy/aquantia.c | 39 +

[U-Boot] [PATCH v2 03/11] drivers: net: aquantia: use XFI, USXGMII interface types

2019-08-12 Thread Alex Marginean
The PHY supports XFI and USXGMII, the notable difference being that USX AN is enabled for USXGMII. Legacy code uses XGMII for any 10G proto and detects whether USX AN should be enabled or not using a PHY status register. Keep that functionality too, so we don't break existing drivers. Signed-off

[U-Boot] [PATCH v2 00/11] Aquantia PHY driver updates to reduce FW dependency

2019-08-12 Thread Alex Marginean
The main purpose of this patch series is to allow the AQR driver to run on a larger number of boards without having to use a custom aquantia FW on each of them. Configuration points that are exclusively controlled by PHY firmware are not configured based on phydev->interface as well as new DT node

[U-Boot] [PATCH v2 01/11] include: phy: define XFI and USXGMII interface types

2019-08-12 Thread Alex Marginean
Drivers currently use XGMII for XFI and USXGMII and, where needed, use other information to identify the actual protocol on the board. With these two defined drivers can now rely on DT phy-mode property. Signed-off-by: Alex Marginean --- include/phy_interface.h | 4 1 file changed, 4 inser

Re: [U-Boot] [PATCH v2 2/3] arm: mvebu: clearfog: set uboot image SD card offset

2019-08-12 Thread Stefan Roese
Hi Baruch, On 06.08.19 08:20, Stefan Roese wrote: On 29.07.19 09:12, Baruch Siach wrote: Armada 38x ROM skips the first SD card offset when loading SPL. This affects the location of the main U-Boot image. SPL MMC code now supports U-Boot image offset based on run-time detection of the boot part

Re: [U-Boot] [PATCH v2 1/3] spl: mmc: support uboot image offset on main partition

2019-08-12 Thread Stefan Roese
Hi Baruch, On 06.08.19 08:15, Stefan Roese wrote: On 29.07.19 09:12, Baruch Siach wrote: On Armada 38x platforms the ROM code loads SPL from offset 0 of eMMC hardware boot partitions. When there are no boot partitions (i.e. SD card) the ROM skips the first sector that usually contains the (logi

Re: [U-Boot] [RFC PATCH] rockchip, Makefile: add u-boot-tpl-with-spl.img target

2019-08-12 Thread Matwey V. Kornilov
вс, 11 авг. 2019 г. в 22:10, Mark Kettenis : > > > From: "Matwey V. Kornilov" > > Date: Sun, 11 Aug 2019 11:06:02 +0300 > > > > Many Rockchip platforms require the same u-boot deploy procedure > > when TPL and SPL both enabled. > > > > The following examples are taken from doc/README.rockchip > >

Re: [U-Boot] [PATCH 1/1] cmd/bdinfo: sandbox: print the relocation offset

2019-08-12 Thread Bin Meng
Hi Heinrich, On Mon, Aug 12, 2019 at 7:17 PM Heinrich Schuchardt wrote: > > On 8/12/19 6:07 AM, Bin Meng wrote: > > On Sat, Aug 10, 2019 at 5:35 AM Heinrich Schuchardt > > wrote: > >> > >> On the sandbox provide the relocation offset. This value can be used for > >> debugging with GDB using the

Re: [U-Boot] [PATCH 14/15] rockchip: rk3399: Add bootcount support

2019-08-12 Thread Kever Yang
Hi Jagan, On 2019/7/29 下午3:47, Jagan Teki wrote: Add bootcount support for Rockchip rk3399. The bootcount value is preserved in PMU_SYS_REG0 register, PMU_SYS_REG0 has been used by other case in Rockchip, we don't recommend to use it, the PMUGRF_OS_REG3 is still reserved now, could you use i

[U-Boot] [PATCH] rockchip: ram: rk3399: fix setting for some type of dram

2019-08-12 Thread Kever Yang
We need to store all the ram related cap/map info back to register after all the init has been done in case some of register was reset during the process. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- drivers/ram/rockchip/sdram_rk3399.c | 3 +++ 1 file changed, 3 insertions(+) diff

[U-Boot] Please pull u-boot-marvell/master

2019-08-12 Thread Stefan Roese
Hi Tom, please pull the first Marvell patches in this merge window with the following changes: - Various improvements to Keymile boards - mostly DT conversation (Pascal & Holger) - Removal of now unsupported Keymile boards (Pasca

Re: [U-Boot] [PATCH u-boot-marvell 1/1] pci: pci_mvebu: set BAR0 after memory space is set

2019-08-12 Thread Stefan Roese
On 07.08.19 15:01, Marek Behún wrote: The non-DM version of this driver used to set BAR0 register after the calls to pci_set_region. I found out that for some strange reason the ath10k driver in kernel fails to work if this is done the other way around. I know that Linux's driver should not depen

[U-Boot] verified boot against a chain of public keys

2019-08-12 Thread Patrick Doyle
I am about to embark on the task of adding support for importing and using multiple keys in the verified boot process. Does u-boot already support this? Has anybody (else) thought about it? Basically, I would like to add the ability to import a public key into u-boot, which must be signed by the

Re: [U-Boot] [PATCH u-boot-marvell 1/1] arm: mvebu: turris_omnia: update defconfig

2019-08-12 Thread Stefan Roese
On 16.07.19 15:50, Marek Behún wrote: Add Macronis SPI flash support - some Omnia routers are shipped with this SPI flash chip. Also add the memtest command to defconfig. Signed-off-by: Marek Behún Applied to: u-boot-marvell/master. Thanks, Stefan ___

Re: [U-Boot] [PATCH] ARM: configs: Enable DM_ETH for SBx81LIFKW and SBx81LIFXCAT

2019-08-12 Thread Stefan Roese
On 10.07.19 11:00, Chris Packham wrote: The mvgbe driver supports DM_ETH so switch these boards to using it. Signed-off-by: Chris Packham Applied to: u-boot-marvell/master. Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.

[U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190812

2019-08-12 Thread Neil Armstrong
'master' of git://git.denx.de/u-boot-sh (2019-08-10 17:57:58 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic.git tags/u-boot-amlogic-20190812 for you to fetch changes up to eb1677250d704b93169a58114a74424c7bfa495a: confi

Re: [U-Boot] [PATCH 0/9] km: Kconfig and driver model implementations

2019-08-12 Thread Stefan Roese
On 09.07.19 09:28, Pascal Linder wrote: This series of patches contains the driver model implementation for the UART and Ethernet interface on KM Kirkwood boards. Moreover, the conversion from header files to Kconfig has been advanced. Finally, three now unmaintained boards are removed in order t

Re: [U-Boot] [PATCH 1/1] cmd/bdinfo: sandbox: print the relocation offset

2019-08-12 Thread Heinrich Schuchardt
On 8/12/19 6:07 AM, Bin Meng wrote: On Sat, Aug 10, 2019 at 5:35 AM Heinrich Schuchardt wrote: On the sandbox provide the relocation offset. This value can be used for debugging with GDB using the `add-symbol-file u-boot ' command. Signed-off-by: Heinrich Schuchardt --- cmd/bdinfo.c | 1 +

Re: [U-Boot] [PATCH] cmd: avb: Fix requested partitions list

2019-08-12 Thread Igor Opaniuk
Hi Sam, On Fri, Aug 9, 2019 at 7:16 PM Sam Protsenko wrote: > > The requested_partitions[] array should contain only boot partitions. > Usually it's only 'boot' partition, as can be seen in [1]. Also, seems > like the requested_partitions[] are only used when there is no 'vbmeta' > partition [2],

[U-Boot] [PATCH v1 0/4] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-08-12 Thread Lukasz Majewski
This patch series introduces new SPL and TPL specific Kconfig entries for DM_SPI* options. Such change allows using the spi driver in SPL/TPL or U-Boot proper. First two patches - related to ls10{42}* NXP soc fix some issues with defining the DM_SPI* defines in .h file instead of Kconfig. This se

[U-Boot] Pull request: u-boot-riscv/master

2019-08-12 Thread uboot
Hi Tom, Please pull some riscv updates: - Fix sifive serial y-modem transfer. - Access CSRs using CSR numbers. - Update doc sifive-fu540 - Support big endian hosts and target. - Support SPL and OpenSBI (FW_DYNAMIC firmware) boot. https://travis-ci.org/rickchen36/u-boot-riscv/builds/570682542 Th

Re: [U-Boot] [PATCH] riscv: cpu: Skip unavailable hart in the get_count() op

2019-08-12 Thread Rick Chen
Hi Lukas > > From: Auer, Lukas [mailto:lukas.a...@aisec.fraunhofer.de] > > Sent: Thursday, August 08, 2019 10:04 PM > > To: bmeng...@gmail.com > > Cc: Rick Jian-Zhi Chen(陳建志); u-boot@lists.denx.de > > Subject: Re: [PATCH] riscv: cpu: Skip unavailable hart in the get_count() op > > > > Hi Bin, > >

Re: [U-Boot] [PATCH 1/3] net: add dm_eth_phy_connect helper to link eth/PHY based on DT

2019-08-12 Thread Alex Marginean
On 8/7/2019 7:08 PM, Alex Marginean wrote: The helper is useful for platforms that link ethernet interfaces and PHYs in device tree using current bindings. Drivers could do this directly, but the code is generic enough and helps keep drivers simpler. Signed-off-by: Alex Marginean --- include

[U-Boot] [PATCH v2 2/3] doc: bindings: add mdio-handle property to ethernet nodes

2019-08-12 Thread Alex Marginean
Adds an optional mdio-handle property which identifies a MDIO bus which can be scanned to find the relevant PHY. The property is ignored if phy-handle is also present. Signed-off-by: Alex Marginean --- Changes in v2: none doc/device-tree-bindings/net/ethernet.txt | 2 ++ 1 file changed, 2 ins

[U-Boot] [PATCH v2 3/3] drivers: net: fsl_enetc: use dm_eth_phy_connect helper

2019-08-12 Thread Alex Marginean
Uses the new dm_eth_phy_connect helper to connect to the PHY to simplify the code. Signed-off-by: Alex Marginean --- Changes in v2: - don't use phy pointer if NULL drivers/net/fsl_enetc.c | 52 +++-- drivers/net/fsl_enetc.h | 1 + 2 files changed, 1

[U-Boot] [PATCH v2 1/3] net: add dm_eth_phy_connect helper to link eth/PHY based on DT

2019-08-12 Thread Alex Marginean
The helper is useful for platforms that link ethernet interfaces and PHYs in device tree using current bindings. Drivers could do this directly, but the code is generic enough and helps keep drivers simpler. The patch also adds dm_mdio_phy_scan useful to scan a MDIO bus for PHYs. Signed-off-by: A

Re: [U-Boot] [U-BOOT PATCH] riscv: sifive: fu540: set serial environment variable from otp

2019-08-12 Thread Bin Meng
On Mon, Aug 12, 2019 at 2:42 PM Sagar Shrikant Kadam wrote: > > This patch sets the serial# environment variable by reading the > board serial number from the OTP memory region. > > Signed-off-by: Sagar Shrikant Kadam > --- > board/sifive/fu540/fu540.c | 18 ++ > 1 file changed,

[U-Boot] [PATCH] imx: Add support for i.MX28 based XEA board

2019-08-12 Thread Lukasz Majewski
From: Mans Rullgard This patch introduces support for i.MX28 based XEA board. This board supports DM/DTS in U-Boot proper as well as DM aware drivers in SPL (u-boot.sb). More detailed information regarding usage of it can be found in ./board/liebherr/xea/README file. U-Boot SPL 2019.10-rc1-0023

Re: [U-Boot] [PATCH v2 5/7] boards: meson: add g12a sei510

2019-08-12 Thread Neil Armstrong
On 06/08/2019 17:43, Neil Armstrong wrote: > From: Jerome Brunet > > The SEI510 board is based on the Amlogic S905X2 SoC > from the Amlogic G12A SoC family. > > The board has the following specifications : > - Amlogic S905X2 ARM Cortex-A53 quad-core SoC > - XGB DDR4 SDRAM > - 10/100 Ethernet (In

Re: [U-Boot] [U-BOOT PATCH] riscv: sifive: fu540: set serial environment variable from otp

2019-08-12 Thread Anup Patel
On Mon, Aug 12, 2019 at 12:12 PM Sagar Shrikant Kadam wrote: > > This patch sets the serial# environment variable by reading the > board serial number from the OTP memory region. > > Signed-off-by: Sagar Shrikant Kadam > --- > board/sifive/fu540/fu540.c | 18 ++ > 1 file changed,

[U-Boot] [PATCH 5/5] mmc: Convert mxsmmc eMMC driver for i.MX2{38} to DM/DTS

2019-08-12 Thread Lukasz Majewski
This patch converts the mxsmmc driver to support DM/DTS. Moreover, it is also possible to use it in early SPL with SPL_OF_PLATDATA enabled. Signed-off-by: Lukasz Majewski --- drivers/mmc/mxsmmc.c | 439 +++ 1 file changed, 369 insertions(+), 70

[U-Boot] [PATCH 2/5] dts: imx28: Remove #include "imx28.dtsi" from imx28-u-boot.dtsi file

2019-08-12 Thread Lukasz Majewski
After this change it is possible to use imx28--u-boot.dtsi with the imx28-u-boot.dtsi explicitly included without breaking setup from imx28-.dts file. The problem is that the imx28.dtsi included in a wrong place overrides the changes made in imx28-.dts. As a result some devices are "disabled" in t

[U-Boot] [PATCH 3/5] spi: fix: Call mxs_reset_block() during DM/DTS probe

2019-08-12 Thread Lukasz Majewski
Without this change the DM/DTS version of mxs_spi driver doesn't reset the SPI IP block in probe. As a result this driver (when used solely on U-Boot proper) relies on reset performed by mxs spi driver in SPL. In the use case where eMMC is used in SPL as a boot primary device, the mxs_reset_block(

[U-Boot] [PATCH 4/5] spi: Add support for SPL_OF_PLATDATA to mxs_spi.c driver

2019-08-12 Thread Lukasz Majewski
After this patch the mxs_spi.c DM/DTS driver can be used at early SPL to read payload from SPI-NOR memories. It was necessary to adjust its name to 'fsl_imx_2{38}_spi' to match requirements for SPL_OF_PLATDATA usage. Signed-off-by: Lukasz Majewski --- drivers/spi/mxs_spi.c | 34 +++

[U-Boot] [PATCH 1/5] doc: fix: Replace SPL_OF_PLATDATA with OF_PLATDATA in examples

2019-08-12 Thread Lukasz Majewski
The of-plat.rst file till this change has been using #if CONFIG_IS_ENABLED(SPL_OF_PLATDATA) it its examples. This is at best misleading as SPL_OF_PLATDATA is always defined when we want to use this SPL tinification feature (also in U-Boot proper). As a result the OF_PLATDATA SPL specific code is a

[U-Boot] [PATCH v1 2/4] spi: Move DM_SPI_FLASH to Kconfig (for NXP's ls1043a)

2019-08-12 Thread Lukasz Majewski
This patch fixes issue with defining the DM_SPI_FLASH in the configs/include/ instead of enabling this option in Kconfig. The problem is that CONFIG_IS_ENABLED(DM_SPI_FLASH) shows false as there is no DM_SPI_FLASH=y in .config (but the define is set in u-boot.cfg). As a result conversion of DM_SP

[U-Boot] [PATCH v1 4/4] spi: Convert CONFIG_DM_SPI* to CONFIG_$(SPL_TPL_)DM_SPI*

2019-08-12 Thread Lukasz Majewski
This change allows more fine tuning of driver model based SPI support in SPL and TPL. It is now possible to explicitly enable/disable the DM_SPI support in SPL and TPL via Kconfig option. Before this change it was necessary to use: /* SPI Flash Configs */ #if defined(CONFIG_SPL_BUILD)

[U-Boot] [PATCH v1 3/4] spi: Move DM_SPI_FLASH and SPI_FLASH_DATAFLASH to Kconfig (for ls1021aXXX)

2019-08-12 Thread Lukasz Majewski
This patch moves the CONFIG_DM_SPI_FLASH and CONFIG_SPI_FLASH_DATAFLASH to be defined in Kconfig, not in board specific header file (include/configs/.h). Before this change the CONFIG_DM_SPI_FLASH was not set in .config (so it was not possible to use CONFIG_IS_ENABLED(DM_SPI_FLASH) in SPI DM/DTS c

[U-Boot] [PATCH v1 1/4] kconfig: Update comment regarding CONFIG_IS_ENABLED(FOO) for TPL

2019-08-12 Thread Lukasz Majewski
This patch adds some commit info for CONFIG_IS_ENABLED(FOO) when used in TPL context. Signed-off-by: Lukasz Majewski --- include/linux/kconfig.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/kconfig.h b/include/linux/kconfig.h index fbfc7188b8..3a2da738c4 100644 --- a/incl