Re: [U-Boot] [PATCH] watchdog: omap_wdt: improve watchdog reset path

2018-03-16 Thread Alex Kiernan
On Thu, Mar 1, 2018 at 1:15 AM, Ruslan Bilovol wrote: > Remove busy looping during watchdog reset. > Each polling of W_PEND_WTGR bit ("finish posted > write") after watchdog reset takes 120-140us > on BeagleBone Black board. Current U-Boot code > has watchdog resets in

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-16 Thread Sekhar Nori
On Thursday 15 March 2018 08:31 PM, Lokesh Vutla wrote: > > > On Thursday 15 March 2018 08:01 PM, Sekhar Nori wrote: >> On Thursday 15 March 2018 07:12 PM, Sekhar Nori wrote: >>> On Thursday 15 March 2018 06:04 PM, Sekhar Nori wrote: Thanks for the patch and great description. It looks

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-16 Thread Sekhar Nori
On Thursday 15 March 2018 08:32 PM, David Lechner wrote: > On 03/15/2018 09:56 AM, Tom Rini wrote: >> On Thu, Mar 15, 2018 at 08:01:58PM +0530, Sekhar Nori wrote: >>> On Thursday 15 March 2018 07:12 PM, Sekhar Nori wrote: On Thursday 15 March 2018 06:04 PM, Sekhar Nori wrote: > Thanks for

Re: [U-Boot] [PATCH 1/4] imx: hab: Add routine to set HAB IVT address

2018-03-16 Thread Lothar Waßmann
Hi, On Fri, 9 Mar 2018 17:35:46 + Bryan O'Donoghue wrote: > This patch takes a given address applies a plus or minus offset to locate > the putative address of an IVT given a non-IVT link location. > > It then sets hab_ivt_address to allow for further logic/scripting based on > the

[U-Boot] [PATCH] rpi3_32b: Enable lan78xx driver

2018-03-16 Thread Peter Robinson
The new Raspberry Pi B 3+ has a lan78xx device attached to it. Let's add driver support in U-Boot for it. Signed-off-by: Peter Robinson --- configs/rpi_3_32b_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/rpi_3_32b_defconfig

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-16 Thread Mike Looijmans
 On 15-03-18 02:36, David Lechner wrote: commit 1601dd97edc6 ("davinci: omapl138_lcdk: increase PLL0 frequency") changed the PLL0 frequency to 456MHz, which is needed for the LCDC IP block. However, in doing so, it caused the PLLOUT clock to be outside of the allowable specifications given in

Re: [U-Boot] [PATCH v3 02/11] sunxi: Add I2C_SUN6I_P2WI kconfig entry

2018-03-16 Thread Maxime Ripard
Hi, On Wed, Mar 14, 2018 at 07:14:08PM +0530, Jagan Teki wrote: > On Wed, Mar 14, 2018 at 6:52 PM, Maxime Ripard > wrote: > > On Wed, Mar 14, 2018 at 06:29:45PM +0530, Jagan Teki wrote: > >> Add simple and meaningful kconfig option for p2wi.c > >> instead of using MACH

Re: [U-Boot] [PATCH] tools: zynqimage: Add partition read support

2018-03-16 Thread Nathan Rossi
On 16 March 2018 at 07:49, Alexander Graf wrote: > The zynqmp image format has support for inline partitions which are > used by FSBL to describe payloads that are loaded by FSBL itself. > > While we can't create images that contain partitions (yet), we should > still at least be

Re: [U-Boot] [PATCH v3 00/15] Powerpc: mpc8xx: cleanup before migration to DM model

2018-03-16 Thread Christophe LEROY
Hi Tom, If not applied already, please don't take this serie yet. While migrating drivers to DM model, it find some caveats in the way mpc8xx is initialised and it will be cleaner if I fix it in this serie rather than making new patches on top of it. Christophe Le 06/03/2018 à 13:06,

Re: [U-Boot] [PATCH v2 1/2] ARM: AM43xx: Add support for RTC only mode

2018-03-16 Thread Tero Kristo
Hi Keerthy, I think you should replace all the references in this patch for RTC only mode to RTC-only + DDR; that is more valid term of the mode implemented. For u-boot, pure rtc-only mode is a don't care, it is visible as just a normal boot-up with RTC being the boot source. In the case

Re: [U-Boot] [PATCH] tools: xilinx: Fix zynq/zynqmp image recognition

2018-03-16 Thread Michal Simek
On 15.3.2018 22:54, Alexander Graf wrote: > > > On 14.03.18 11:14, Michal Simek wrote: >> There is an issue to recognize zynq or zynqmp image because header >> checking is just the same. That's why zynqmp images are recognized as >> zynq one. >> Check unused fields which are initialized to zero

Re: [U-Boot] [PATCH] x86: zImage: pass device tree setup data to the kernel

2018-03-16 Thread Andy Shevchenko
On Thu, 2018-03-15 at 15:43 -0700, Ivan Gorinov wrote: > Make a copy of DTB data with setup_data header and insert new item > into the the setup data linked list. This doesn't explain "Why?" you are doing that. What the problem? Why it's a problem? > > Signed-off-by: Ivan Gorinov

Re: [U-Boot] [PATCHv2 1/2] ARM: dts: zynq: Update dts for Z-turn board

2018-03-16 Thread Michal Simek
On 16.3.2018 00:29, Alexander Graf wrote: > > > On 16.03.18 00:08, Anton Gerasimov wrote: >> Delete devices implemented in PL, stylistic changes. >> >> Signed-off-by: Anton Gerasimov >> --- >> arch/arm/dts/zynq-zturn-myir.dts | 62 >>

Re: [U-Boot] [PATCH] tools: xilinx: Fix zynq/zynqmp image recognition

2018-03-16 Thread Alexander Graf
> Am 16.03.2018 um 11:22 schrieb Michal Simek : > >> On 15.3.2018 22:54, Alexander Graf wrote: >> >> >>> On 14.03.18 11:14, Michal Simek wrote: >>> There is an issue to recognize zynq or zynqmp image because header >>> checking is just the same. That's why zynqmp

[U-Boot] [PATCH] Migrate CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC

2018-03-16 Thread Alex Kiernan
This converts CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC to Kconfig Signed-off-by: Alex Kiernan --- README | 3 --- common/spl/Kconfig | 7 +++ configs/am335x_shc_defconfig | 1 +

[U-Boot] [PATCH v2] tools: xilinx: Fix zynq/zynqmp image recognition

2018-03-16 Thread Michal Simek
There is an issue to recognize zynq or zynqmp image because header checking is just the same. That's why zynqmp images are recognized as zynq one. Check unused fields which are initialized to zero in zynq format (__reserved1 0x38 and __reserved2 0x44) which are initialized for zynqmp. This should

Re: [U-Boot] [PATCH] tools: xilinx: Fix zynq/zynqmp image recognition

2018-03-16 Thread Michal Simek
On 16.3.2018 11:33, Alexander Graf wrote: > > >> Am 16.03.2018 um 11:22 schrieb Michal Simek : >> >>> On 15.3.2018 22:54, Alexander Graf wrote: >>> >>> On 14.03.18 11:14, Michal Simek wrote: There is an issue to recognize zynq or zynqmp image because header

Re: [U-Boot] [PATCH 2/2] efi_loader: Optimize GOP more

2018-03-16 Thread Heinrich Schuchardt
On 03/15/2018 03:02 PM, Alexander Graf wrote: The GOP path was optimized, but still not as fast as it should be. Let's push it even further by trimming the hot path into simple 32bit load/store operations for buf->vid 32bpp operations. Signed-off-by: Alexander Graf ---

[U-Boot] [PATCH] davinci: Enable DDR_INIT for DRA8XX

2018-03-16 Thread Lokesh Vutla
Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig") converted SOC_DRA8XX to Kconfig but missed enabling DDR_INIT for SOC_DRA8XX, which broke OMAPL138 to boot. Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk builds") disabled DDR_INIT for all DA850 SoCs. This failed all DRA850

[U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX

2018-03-16 Thread Lokesh Vutla
Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig") converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for SOC_DA8XX, which broke OMAPL138 to boot. Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk builds") disabled DDR_INIT for all DA850 SoCs. This failed all DA850 boards

[U-Boot] [PATCH v4 00/11] arm: sunxi: Use proper and meaningful Kconfig entries

2018-03-16 Thread Jagan Teki
Current arch/arm/mach-sunxi/Makefile has improper build options which relies mostly on MACH_ options. This series get rid of those and added proper Kconfig options. All Kconfig entry name are re-used from Linux so-that future dm conversion on these can be meaningful. Changes for v4: - Rename

[U-Boot] [PATCH v4 03/11] sunxi: Use SUN6I_PRCM if used

2018-03-16 Thread Jagan Teki
SUN6I_PRCM is also used for SUN8I and SUN9I, so select the same on respective MACH types. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- arch/arm/mach-sunxi/Kconfig | 2 ++ arch/arm/mach-sunxi/Makefile | 2 -- 2 files changed, 2

[U-Boot] [PATCH v4 01/11] sunxi: Add SUN6I_PRCM kconfig entry

2018-03-16 Thread Jagan Teki
Add simple and meaningful kconfig option for prcm.c instead of using MACH type on Makefile. PRCM (Power/Reset/Clock Management) is considered as a Multi-Functional Device, so used the same on Kconfig definition. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard

[U-Boot] [PATCH v4 07/11] sunxi: Add DRAM_SUN4I kconfig entry

2018-03-16 Thread Jagan Teki
Add proper and simple kconfig option for dram_sun4i.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- arch/arm/mach-sunxi/Kconfig | 9 + arch/arm/mach-sunxi/Makefile | 4 +--- 2 files

[U-Boot] [PATCH v4 10/11] sunxi: Add DRAM_SUN8I_A33 kconfig entry

2018-03-16 Thread Jagan Teki
Add proper and simple kconfig option for dram_sun8i_a33.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- arch/arm/mach-sunxi/Kconfig | 7 +++ arch/arm/mach-sunxi/Makefile | 2 +- 2 files

[U-Boot] SPL dcache

2018-03-16 Thread Alex Kiernan
I was looking at the differences between the TI U-Boot tree and the upstream tree (as we've switched from one to the other) and I think the only patch which I'm picking locally which isn't in upstream is this one: [U-Boot,RFC,3/3] spl: Add support for enabling dcache

[U-Boot] [PATCH v2 1/2] ARM: AM43xx: Add support for RTC only mode

2018-03-16 Thread Keerthy
The RTC scratch register layout used is: SCRATCH0 : bits00-31 : kernel resume address SCRATCH1 : bits00-15 : RTC magic value used to detect valid config SCRATCH1 : bits16-31 : board type information populated by bootloader During the normal boot path the SCRATCH1 : bits16-31 are updated with the

[U-Boot] [PATCH v2 0/2] ARM: AM43xx: Add support for RTC only mode

2018-03-16 Thread Keerthy
Kernel stores information to the RTC_SCRATCH0 and RTC_SCRATCH1 registers for wakeup from RTC-only mode. Parse these registers during SPL boot and jump to the kernel resume vector if the device is waking up from RTC-only mode. The RTC scratch register layout used is: SCRATCH0 : bits00-31 : kernel

[U-Boot] [PATCH v2 2/2] am43xx: Do not allow EMIF to control DDR_RESET in rtconly config

2018-03-16 Thread Keerthy
From: Dave Gerlach Prevent EMIF control of DDR_RESET line on DDR3 am43xx platforms for am43xx_evm_rtconly_config. Without this DDR is unstable and can become corrupted after multiple iterations of RTC+DDR mode. Signed-off-by: Dave Gerlach [j-keer...@ti.com

Re: [U-Boot] [PATCH] davinci: Enable DDR_INIT for DRA8XX

2018-03-16 Thread Tero Kristo
On 16/03/18 10:32, Lokesh Vutla wrote: Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig") converted SOC_DRA8XX to Kconfig but missed enabling DDR_INIT for SOC_DRA8XX, which broke OMAPL138 to boot. Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk builds") disabled DDR_INIT for all

Re: [U-Boot] [PATCH] davinci: Enable DDR_INIT for DRA8XX

2018-03-16 Thread Lokesh Vutla
On Friday 16 March 2018 02:16 PM, Tero Kristo wrote: > On 16/03/18 10:32, Lokesh Vutla wrote: >> Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig") >> converted SOC_DRA8XX to Kconfig but missed enabling DDR_INIT for >> SOC_DRA8XX, which broke OMAPL138 to boot. >> >> Commit

[U-Boot] [PATCH v4 04/11] sunxi: Add SUN8I_RSB kconfig entry

2018-03-16 Thread Jagan Teki
Add simple and meaningful kconfig option for rsb.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- arch/arm/mach-sunxi/Kconfig | 10 ++ arch/arm/mach-sunxi/Makefile | 3 +-- 2 files

[U-Boot] [PATCH v4 08/11] sunxi: Add DRAM_SUN9I kconfig entry

2018-03-16 Thread Jagan Teki
Add proper and simple kconfig option for dram_sun9i.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- arch/arm/mach-sunxi/Kconfig | 7 +++ arch/arm/mach-sunxi/Makefile | 2 +- 2 files

[U-Boot] [PATCH v4 06/11] sunxi: add DRAM_SUN6I kconfig

2018-03-16 Thread Jagan Teki
Add proper and simple kconfig option for dram_sun6i.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- arch/arm/mach-sunxi/Kconfig | 7 +++ arch/arm/mach-sunxi/Makefile | 2 +- 2 files

[U-Boot] [PATCH v4 11/11] sunxi: Add DRAM_SUN8I_A83T kconfig entry

2018-03-16 Thread Jagan Teki
Add proper and simple kconfig option for dram_sun8i_a83t.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- arch/arm/mach-sunxi/Kconfig | 7 +++ arch/arm/mach-sunxi/Makefile | 2 +- 2 files

[U-Boot] [PATCH v4 05/11] sunxi: Add AXP_PMIC_BUS kconfig entry

2018-03-16 Thread Jagan Teki
Add simple and meaningful kconfig option for pmic_bus.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- arch/arm/mach-sunxi/Kconfig | 6 ++ arch/arm/mach-sunxi/Makefile | 7 +--

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-16 Thread Sekhar Nori
On Thursday 15 March 2018 08:02 PM, David Lechner wrote: > > Thanks for the tips. I've actually done exactly that (using my own SD > card). > > However, these changes affect the u-boot SPL image only. I was able to put > the regular u-boot.ais on the SD card, but I'm having troubling figuring >

Re: [U-Boot] SPL dcache

2018-03-16 Thread Alex Kiernan
On Fri, Mar 16, 2018 at 9:14 AM, Lokesh Vutla wrote: > > > On Friday 16 March 2018 02:36 PM, Alex Kiernan wrote: >> I was looking at the differences between the TI U-Boot tree and the >> upstream tree (as we've switched from one to the other) and I think >> the only patch

[U-Boot] [PATCH v4 02/11] sunxi: Add I2C_SUN6I_P2WI kconfig entry

2018-03-16 Thread Jagan Teki
Add simple and meaningful kconfig option for p2wi.c instead of using MACH type on Makefile. p2wi is an I2C controller, so used the same on kconfig definition. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard ---

[U-Boot] [PATCH v4 09/11] sunxi: Add DRAM_SUN8I_A23 kconfig entry

2018-03-16 Thread Jagan Teki
Add proper and simple kconfig option for dram_sun8i_a23.c instead of using MACH type on Makefile. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- arch/arm/mach-sunxi/Kconfig | 7 +++ arch/arm/mach-sunxi/Makefile | 2 +- 2 files

Re: [U-Boot] SPL dcache

2018-03-16 Thread Lokesh Vutla
On Friday 16 March 2018 02:36 PM, Alex Kiernan wrote: > I was looking at the differences between the TI U-Boot tree and the > upstream tree (as we've switched from one to the other) and I think > the only patch which I'm picking locally which isn't in upstream is > this one: > >

[U-Boot] [PATCH RFCv2 6/6] drivers: serial: get rid of non DM mpc8xx driver

2018-03-16 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- drivers/serial/serial.c| 2 - drivers/serial/serial_mpc8xx.c | 97 ++ include/serial.h | 1 - 3 files changed, 14 insertions(+), 86 deletions(-) diff --git

[U-Boot] [PATCH RFCv2 5/6] board: MCR3000: migrate to DM_SERIAL

2018-03-16 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/dts/mcr3000.dts | 7 +++ configs/MCR3000_defconfig| 1 + 2 files changed, 8 insertions(+) diff --git a/arch/powerpc/dts/mcr3000.dts b/arch/powerpc/dts/mcr3000.dts index ef423d73c20..5abf111dc5f 100644 ---

[U-Boot] [PATCH RFCv2 3/6] board: MCR3000: use new DM watchdog

2018-03-16 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/dts/mcr3000.dts | 3 +++ board/cssi/MCR3000/MCR3000.c | 16 configs/MCR3000_defconfig| 2 ++ include/configs/MCR3000.h| 1 + 4 files changed, 22 insertions(+) diff --git

[U-Boot] [PATCH RFCv2 2/6] drivers: watchdog: add a DM driver for the MPC8xx watchdog

2018-03-16 Thread Christophe Leroy
This patch adds a DM driver for the MPC8xx watchdog. Basically, the watchdog is enabled by default from the start and SYPCR register has to be writen once to set the timeout and/or deactivate the watchdog. Once written, it cannot be written again. It means that wdt_stop() can be called before

Re: [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX

2018-03-16 Thread Tom Rini
On Fri, Mar 16, 2018 at 02:22:12PM +0530, Lokesh Vutla wrote: > Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig") > converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for > SOC_DA8XX, which broke OMAPL138 to boot. > > Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk

Re: [U-Boot] [PATCH 1/2] ARM: dts: da850-lcdk: Sync from Linux 4.16

2018-03-16 Thread Tom Rini
On Fri, Mar 16, 2018 at 06:52:20PM +0530, Lokesh Vutla wrote: > Sync dts from Linux 4.16 and also add u-boot specific > dtsi for OMAPl138 board. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH 2/2] configs: omapl138: Enable DM and DT

2018-03-16 Thread Tom Rini
On Fri, Mar 16, 2018 at 06:52:21PM +0530, Lokesh Vutla wrote: > Enable Driver Model and Device-tree support for omapl138 board > in U-Boot. Also enable DM_SERIAL and DM_I2C. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc

[U-Boot] [PATCH 1/1] efi_loader: use __always_inline for pixel conversion

2018-03-16 Thread Heinrich Schuchardt
We optimize for size suing -Os so gcc might ignore 'inline'. Pixel conversions are called so often that we always want to inline them. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_gop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH v3 1/2] i.MX6: nand: add nandbcb update command

2018-03-16 Thread Fabio Estevam
On Wed, Mar 14, 2018 at 4:40 AM, Stefan Agner wrote: > I will post the patches next week along with some background. That would be nice! Thanks ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v4 05/16] powerpc: mpc8xx: remove get_immr() argument

2018-03-16 Thread Christophe Leroy
get_immr() is always called with 0 as an argument, so it is useless. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/cpu.c | 2 +- arch/powerpc/cpu/mpc8xx/reginfo.c | 2 +- arch/powerpc/include/asm/ppc.h| 6 ++ 3 files changed, 4 insertions(+), 6

[U-Boot] [PATCH v4 07/16] powercp: mpc8xx: move commproc.h

2018-03-16 Thread Christophe Leroy
include/commproc.h is dedicated to the 8xx, rename it cpm_8xx.h and move it into arch/powerpc/include/asm Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/cpu.c| 2 +- arch/powerpc/cpu/mpc8xx/cpu_init.c | 2 +-

[U-Boot] [PATCH v4 06/16] powerpc: mpc8xx: Change CONFIG_8xx to CONFIG_MPC8xx

2018-03-16 Thread Christophe Leroy
CONFIG_8xx doesn't mean much outside of arch/powerpc/ This patch renames it CONFIG_MPC8xx just like CONFIG_MPC85xx etc ... It also renames 8xx_immap.h to immap_8xx.h to be consistent with other file names. Signed-off-by: Christophe Leroy --- api/api_platform-powerpc.c

[U-Boot] [PATCH v4 11/16] board: MCR3000: cleanup config

2018-03-16 Thread Christophe Leroy
Some config is redundant with Kconfig. Fix it. Also remove unused configs Move SDRAM_MAX_SIZE in the only place it is used include/environment.h already defines CONFIG_ENV_SIZE from CONFIG_ENV_SECT_SIZE and defines CONFIG_ENV_ADDR as (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET) remove BOOTARGS as

[U-Boot] [PATCH RFCv2 4/6] drivers: serial: migrate mpc8xx to DM

2018-03-16 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- drivers/serial/serial_mpc8xx.c | 77 -- 1 file changed, 74 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial_mpc8xx.c b/drivers/serial/serial_mpc8xx.c index

Re: [U-Boot] dhcp command not populating dnsip environment variable

2018-03-16 Thread Duncan Hare
  On Thu, Mar 15, 2018 at 3:25 PM, Duncan Hare wrote: > In the latest version of u-boot, the dhcp command appears not to > populate the environment variable dnsip. This used to be the behaviour.  ___ The bootp.c code was changed with

Re: [U-Boot] [PATCH] lan7xxx: Require phylib

2018-03-16 Thread Joe Hershberger
On Thu, Mar 15, 2018 at 10:16 PM, Tuomas Tynkkynen wrote: > Hi, > > On Thu, 15 Mar 2018 15:10:20 +0100 > Alexander Graf wrote: > >> The lan75xx and lan78xx drivers need to drive their phy via the generic >> phylib framework. Let's reflect that dependency in

Re: [U-Boot] [PATCH 2/2] efi_loader: Optimize GOP more

2018-03-16 Thread Heinrich Schuchardt
On 03/16/2018 11:55 AM, Heinrich Schuchardt wrote: On 03/15/2018 03:02 PM, Alexander Graf wrote: The GOP path was optimized, but still not as fast as it should be. Let's push it even further by trimming the hot path into simple 32bit load/store operations for buf->vid 32bpp operations.

Re: [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX

2018-03-16 Thread Lokesh Vutla
On Friday 16 March 2018 08:44 PM, David Lechner wrote: > On 03/16/2018 03:52 AM, Lokesh Vutla wrote: >> Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig") >> converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for >> SOC_DA8XX, which broke OMAPL138 to boot. >> >> Commit

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-16 Thread David Lechner
On 03/16/2018 04:26 AM, Sekhar Nori wrote: On Thursday 15 March 2018 08:02 PM, David Lechner wrote: Thanks for the tips. I've actually done exactly that (using my own SD card). However, these changes affect the u-boot SPL image only. I was able to put the regular u-boot.ais on the SD card,

[U-Boot] [PATCH v4 03/16] powerpc: mpc8xx: get rid of the multiple PVR_ values

2018-03-16 Thread Christophe Leroy
Avoid hardcoding the PVR values in C since they are defined in processor.h At the same time, remove those multiple PVR values for 8xx and keep only one that we call PVR_8xx Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/cpu.c| 2 +-

[U-Boot] [PATCH v4 01/16] soft_i2c: cleanup - no mpc8xx support

2018-03-16 Thread Christophe Leroy
commit 907208c452999 ("powerpc: Partialy restore core of mpc8xx") didn't bring back support for I2C on the mpc8xx Signed-off-by: Christophe Leroy --- drivers/i2c/soft_i2c.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/i2c/soft_i2c.c

[U-Boot] [PATCH v4 15/16] powerpc: mpc8xx: cleaning up watchdog

2018-03-16 Thread Christophe Leroy
In preparation of migration to DM watchdog, clean up a bit. The 8xx watchdog really is a HW watchdog, so declare it as is then it goes through Kconfig And the watchdog reset doesn't mind getting interrupted, so no need to disable interrupts Signed-off-by: Christophe Leroy

Re: [U-Boot] [PATCH] usb: dwc2_udc_otg: Add gotgctl customization

2018-03-16 Thread Marek Vasut
On 03/16/2018 01:27 PM, Patrice Chotard wrote: > Allow passing in a custom configuration of the gotgctl > register via platform data. > This allows for example to override the A/B session valid signals > by setting AvalidOvEn / AvalidOvVal and BvalidOvEn / BvalidOvVal > bits in GOTGCTL reg. If

[U-Boot] [PATCH RFCv2 0/6] Beginning of migration of MPC8xx to DM model

2018-03-16 Thread Christophe Leroy
This serie is the beginning of MPC8xx migration to DM model. It applies on top of the serie "[v4] Powerpc: mpc8xx: cleanup before migration to DM model" Christophe Leroy (6): board: MCR3000: Activate CONFIG_DM and CONFIG_OF_CONTROL drivers: watchdog: add a DM driver for the MPC8xx watchdog

Re: [U-Boot] [U-Boot, PATCHv2, 2/2] Convert all of CONFIG_CONS_INDEX to Kconfig

2018-03-16 Thread Tom Rini
On Tue, Mar 06, 2018 at 07:02:27PM -0500, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_CONS_INDEX > > We have existing entries for this option in a number of places, with > different guards on them. They're also sometimes used for things not > directly inside of the

Re: [U-Boot] dm: MIGRATION: Add migration plan for DM_SPI & DM_SPI_FLASH

2018-03-16 Thread Tom Rini
On Wed, Mar 14, 2018 at 06:58:03PM +0530, Jagan Teki wrote: > Due to adding various new functionalities with SPI and SPI-FLASH > subsystems which are rounding in Mailing list for year these long > term supporting spi driver which never seen any update with > driver-model conversion. > > So added

[U-Boot] [PATCH v4 00/16] Powerpc: mpc8xx: cleanup before migration to DM model

2018-03-16 Thread Christophe Leroy
The purpose of this serie is to clean the mpc8xx code a bit prior to moving to OF and DM model. Christophe Leroy (16): soft_i2c: cleanup - no mpc8xx support powerpc: mpc8xx: harmonise initialisation of the immap local pointer powerpc: mpc8xx: get rid of the multiple PVR_ values powerpc:

[U-Boot] [PATCH v4 09/16] powerpc: mpc8xx: initialisation of initial RAM

2018-03-16 Thread Christophe Leroy
u-boot requires some RAM at startup, to store global data structure. RAM is also needed when we migrate to DM for some initial malloc This patch implements the proper init of that RAM by calling board_init_f_alloc_reserve() and board_init_f_init_reserve() Signed-off-by: Christophe Leroy

[U-Boot] [PATCH v4 04/16] powerpc: mpc8xx: make get_immr() independent of CONFIG_8xx

2018-03-16 Thread Christophe Leroy
SPRN_IMMR is defined regardless of the CPU. Therefore, there is no point in enclosing get_immr() inside a #ifdef CONFIG_8xx As it a static inline function, it will in any case only be compiled in functons using it. Signed-off-by: Christophe Leroy ---

[U-Boot] [PATCH v4 13/16] board: MCR3000: Use smaller flash sector for environment

2018-03-16 Thread Christophe Leroy
Latest versions of u-boot have increased in size and require more than the 256kb allocated to it. The MCR3000 board is equipped with an AM29LV160DB boot flash which is organised as follows: - One 16kb block - Two 8kb block - One 32kb block - Thirty one 64kb blocks At the time being, u-boot is a

[U-Boot] [PATCH v4 12/16] common: env_embedded: allow fine placement of environment object

2018-03-16 Thread Christophe Leroy
Commit 7653942b10e9e ("common/env_embedded.c: drop support for CONFIG_SYS_USE_PPCENV") dropped the .ppcenv section which was used in linking scripts to allow fine placement of embedded environment sections. This implies that GCC randomly places objects from env/embedded.o and environment is not

[U-Boot] [PATCH RFCv2 1/6] board: MCR3000: Activate CONFIG_DM and CONFIG_OF_CONTROL

2018-03-16 Thread Christophe Leroy
Add mcr3000 device tree and activate CONFIG_DM and CONFIG_OF_CONTROL Signed-off-by: Christophe Leroy --- arch/powerpc/dts/Makefile | 16 arch/powerpc/dts/mcr3000.dts | 12 board/cssi/MCR3000/u-boot.lds | 6 ++

[U-Boot] [PATCH v4 16/16] powerpc: mpc8xx: move watchdog into drivers/watchdog

2018-03-16 Thread Christophe Leroy
In preparation of DM watchdog, move basic actions into drivers/watchdog Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig| 2 +- arch/powerpc/cpu/mpc8xx/Kconfig | 4 arch/powerpc/cpu/mpc8xx/cpu.c | 12 drivers/watchdog/Makefile

Re: [U-Boot] [U-Boot, PATCHv2, 1/2] dra7xx: Always enable UART1 and UART3 in early_padconf

2018-03-16 Thread Tom Rini
On Tue, Mar 06, 2018 at 07:02:26PM -0500, Tom Rini wrote: > It is safe to always setup the pinmux for UART1 and UART3 to be used in > early_padconf and then if these pins are needed later on, they will be > re-muxed. This allows us to drop the usage of CONFIG_CONS_INDEX here. > > Cc: Lokesh

[U-Boot] [PATCH v2] x86: zImage: pass device tree setup data to the kernel

2018-03-16 Thread Ivan Gorinov
On x86 platforms, U-Boot does not provide Device Tree data to the kernel. This prevents the kernel from using the same hardware description. Make a copy of DTB data with setup_data header and insert new item into the the setup data linked list. Signed-off-by: Ivan Gorinov

[U-Boot] [PATCH] drivers: serial: remove nonexisting initialisation functions

2018-03-16 Thread Christophe Leroy
This patch removes call of serial initialisation functions that are not implemented anymore. Signed-off-by: Christophe Leroy --- drivers/serial/serial.c | 64 - include/serial.h| 31 2

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-16 Thread David Lechner
On 03/16/2018 01:26 AM, Mike Looijmans wrote: On 15-03-18 02:36, David Lechner wrote: commit 1601dd97edc6 ("davinci: omapl138_lcdk: increase PLL0 frequency") changed the PLL0 frequency to 456MHz, which is needed for the LCDC IP block. However, in doing so, it caused the PLLOUT clock to be

[U-Boot] [PATCH v4 02/16] powerpc: mpc8xx: harmonise initialisation of the immap local pointer

2018-03-16 Thread Christophe Leroy
In most places, immap local pointer is defined as immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR; In a few places, it is defined as immap_t __iomem *immap = (immap_t __iomem *)(immr & 0x); This patch replaces the few of the latest form by the other one. The

[U-Boot] [PATCH v4 08/16] powerpc: mpc8xx: redistribute data in CPM dpram

2018-03-16 Thread Christophe Leroy
Some malloc memory is needed at startup for DM model. Lets reorganise the use of the CPM dpram. The MPC866/885 dpram, we have 8kbytes dual port RAM, which is usable as: IMMR + 0x2000..0x2800: BD/Data/Microcode IMMR + 0x2800..0x2e00: BD/Data IMMR + 0x2e00..0x3800: BD/Data/Microcode IMMR +

[U-Boot] [PATCH v4 14/16] powerpc: mpc8xx: refactorise reginfo

2018-03-16 Thread Christophe Leroy
reginfo is redundant with some of the commands in immap.c, so move reginfo into that file and remove duplicated info. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/Makefile | 1 - arch/powerpc/cpu/mpc8xx/immap.c | 20 +++

[U-Boot] [PATCH v4 10/16] board: MCR3000: replace mtd->priv by mtd_to_nand()

2018-03-16 Thread Christophe Leroy
Since commit 17cb4b8f327eb ("mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_data"), mtd_to_nand() has to be used instead of mtd->priv Signed-off-by: Christophe Leroy --- board/cssi/MCR3000/nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [U-Boot] [U-Boot, U-Boot, v2, 1/2] configs: k2l: Updates u-boot env to install secure boot monitor

2018-03-16 Thread Tom Rini
On Tue, Mar 06, 2018 at 11:10:09AM -0500, Madan Srinivas wrote: > This patch updates the default u-boot env for K2L HS devices > to install the secure boot monitor and load the fitImage during > boot. > > Signed-off-by: Madan Srinivas > Acked-by: Andrew F. Davis >

Re: [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX

2018-03-16 Thread David Lechner
On 03/16/2018 10:26 AM, Lokesh Vutla wrote: On Friday 16 March 2018 08:44 PM, David Lechner wrote: On 03/16/2018 03:52 AM, Lokesh Vutla wrote: Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig") converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for SOC_DA8XX, which

[U-Boot] [PATCH] usb: dwc2_udc_otg: Add gotgctl customization

2018-03-16 Thread Patrice Chotard
Allow passing in a custom configuration of the gotgctl register via platform data. This allows for example to override the A/B session valid signals by setting AvalidOvEn / AvalidOvVal and BvalidOvEn / BvalidOvVal bits in GOTGCTL reg. Signed-off-by: Patrice Chotard ---

Re: [U-Boot] [U-Boot,v2,1/1] board: am335x: Set serial# variable

2018-03-16 Thread Tom Rini
On Wed, Feb 28, 2018 at 12:26:15AM +0200, Sam Protsenko wrote: > serial# variable is needed to show the device correctly in "fastboot > devices" output. It's useful when we have several devices (in fastboot > mode) connected to single host and want to choose which one to flash. > > We can't use

Re: [U-Boot] watchdog: omap_wdt: improve watchdog reset path

2018-03-16 Thread Tom Rini
On Thu, Mar 01, 2018 at 03:15:48AM +0200, Ruslan Bilovol wrote: > Remove busy looping during watchdog reset. > Each polling of W_PEND_WTGR bit ("finish posted > write") after watchdog reset takes 120-140us > on BeagleBone Black board. Current U-Boot code > has watchdog resets in random places and

Re: [U-Boot] [U-Boot, 3/3] clk: at91: clk-system: add set/get_rate operations

2018-03-16 Thread Tom Rini
On Fri, Feb 09, 2018 at 11:34:52AM +0800, Wenyou Yang wrote: > To support set/get the clock rate, add set/get_rate operations. > > Signed-off-by: Wenyou Yang Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[U-Boot] [PATCH 0/2] ARM: omapl138: Enable DM and DT support

2018-03-16 Thread Lokesh Vutla
Enable DM and DT support for omapl138. Logs: https://pastebin.ubuntu.com/p/9WS4qRXQR6/ Lokesh Vutla (2): ARM: dts: da850-lcdk: Sync from Linux 4.16 configs: omapl138: Enable DM and DT arch/arm/dts/da850-lcdk-u-boot.dtsi | 13 ++ arch/arm/dts/da850-lcdk.dts | 339

[U-Boot] [PATCH 1/2] ARM: dts: da850-lcdk: Sync from Linux 4.16

2018-03-16 Thread Lokesh Vutla
Sync dts from Linux 4.16 and also add u-boot specific dtsi for OMAPl138 board. Signed-off-by: Lokesh Vutla --- arch/arm/dts/da850-lcdk-u-boot.dtsi | 13 ++ arch/arm/dts/da850-lcdk.dts | 339 arch/arm/dts/da850.dtsi |

[U-Boot] [PATCH 2/2] configs: omapl138: Enable DM and DT

2018-03-16 Thread Lokesh Vutla
Enable Driver Model and Device-tree support for omapl138 board in U-Boot. Also enable DM_SERIAL and DM_I2C. Signed-off-by: Lokesh Vutla --- configs/omapl138_lcdk_defconfig | 8 ++-- include/configs/omapl138_lcdk.h | 13 +++-- 2 files changed, 17 insertions(+), 4

Re: [U-Boot] [U-Boot,1/3] clk: at91: add USB Host clock driver

2018-03-16 Thread Tom Rini
On Fri, Feb 09, 2018 at 11:34:50AM +0800, Wenyou Yang wrote: > Add USB clock driver to configure the input clock and the divider > in the PMC_USB register to generate a 48MHz and a 12MHz signal to > the USB Host OHCI. > > Signed-off-by: Wenyou Yang Applied to

Re: [U-Boot] [U-Boot,2/3] clk: at91: add PLLADIV driver

2018-03-16 Thread Tom Rini
On Fri, Feb 09, 2018 at 11:34:51AM +0800, Wenyou Yang wrote: > As said in the SAMA5D2 datasheet, the PLLA clock must be divided > by 2 by writing the PLLADIV2 bit in PMC_MCKR, if the ratio between > PCK and MCK is 3 (MDIV = 3). This is the purpose of the driver. > > Signed-off-by: Wenyou Yang

Re: [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX

2018-03-16 Thread David Lechner
On 03/16/2018 03:52 AM, Lokesh Vutla wrote: Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig") converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for SOC_DA8XX, which broke OMAPL138 to boot. Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk builds") disabled DDR_INIT for

Re: [U-Boot] [PATCH v2] x86: zImage: pass device tree setup data to the kernel

2018-03-16 Thread Andy Shevchenko
On Fri, 2018-03-16 at 19:52 +0200, Andy Shevchenko wrote: > On Fri, 2018-03-16 at 10:38 -0700, Ivan Gorinov wrote: > > On x86 platforms, U-Boot does not provide Device Tree data to the > > kernel. > > This prevents the kernel from using the same hardware description. > > > > Make a copy of DTB

Re: [U-Boot] [PATCH v2] x86: zImage: pass device tree setup data to the kernel

2018-03-16 Thread Andy Shevchenko
On Fri, 2018-03-16 at 10:38 -0700, Ivan Gorinov wrote: > On x86 platforms, U-Boot does not provide Device Tree data to the > kernel. > This prevents the kernel from using the same hardware description. > > Make a copy of DTB data with setup_data header and insert new item > into the the setup

Re: [U-Boot] [PATCH v2 1/3] spi: omap3_spi: Full dm conversion

2018-03-16 Thread Adam Ford
On Thu, Mar 15, 2018 at 12:59 AM, Jagan Teki wrote: > omap3_spi now support dt along with platform data, > respective boards need to switch into dm for the same. > > Signed-off-by: Jagan Teki > Tested-by: Adam Ford

[U-Boot] [PATCH v2 1/1] efi_loader: use __always_inline for pixel conversion

2018-03-16 Thread Heinrich Schuchardt
We optimize for size using -Os so gcc might ignore 'inline'. Pixel conversions are called so often that we always want to inline them. Signed-off-by: Heinrich Schuchardt --- v2 fix typo in commit message --- lib/efi_loader/efi_gop.c | 4 ++-- 1 file changed, 2

Re: [U-Boot] [PATCH v2] x86: zImage: pass device tree setup data to the kernel

2018-03-16 Thread Simon Glass
On 16 March 2018 at 11:38, Ivan Gorinov wrote: > > On x86 platforms, U-Boot does not provide Device Tree data to the kernel. > This prevents the kernel from using the same hardware description. > > Make a copy of DTB data with setup_data header and insert new item > into

Re: [U-Boot] [PATCH] scripts/check-config.sh: fix "command not found" error handling

2018-03-16 Thread Simon Glass
On 15 March 2018 at 04:08, Luca Ceresoli wrote: > scripts/check-config.sh exits successfully and silently without doing > any checks when the 'comm' command is not found. > > The problem triggers from the command around line 39: > > comm -23 ${suspects} ${ok}

  1   2   >