Re: [U-Boot] [PATCH 1/2] dfu: Fix up the Kconfig mess

2018-02-13 Thread Lukasz Majewski
Hi Marek, > Clean up the screaming mess of configuration options that DFU is. > It was impossible to configure DFU such that TFTP is enabled and > USB is not, this patch fixes that and assures that DFU TFTP and > DFU USB can be enabled separatelly and that the correct pieces > of code are compiled

Re: [U-Boot] [PATCH 1/1] fs: fat: avoid useless conversion when calling getcluster

2018-02-13 Thread Heinrich Schuchardt
On 02/13/2018 10:50 PM, Tuomas Tynkkynen wrote: Hi, On Tue, 13 Feb 2018 19:18:58 +0100 Heinrich Schuchardt wrote: Parameter size of function get_cluster() is of type unsigned long. It makes no sense to convert actsize to int before passing it to get_cluster as size. Signed-off-by: Heinrich S

[U-Boot] [PATCH 1/1] cmd: scsi: move CMD_SCSI to device access commands

2018-02-13 Thread Heinrich Schuchardt
Configuration option CMD_SCSI should be placed in the same submenu as CMD_SATA and CMD_MMC. Signed-off-by: Heinrich Schuchardt --- cmd/Kconfig | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 7c517493983..885712f00f3 100644 --

Re: [U-Boot] [PATCH v3] spl: unbreak CONFIG_SPL_MULTI_DTB_FIT after fixing CONFIG_OF_EMBED

2018-02-13 Thread Lokesh Vutla
On Wednesday 14 February 2018 11:14 AM, Simon Goldschmidt wrote: > With commit 9bd76b807636 ("spl: make CONFIG_OF_EMBED pass dts through > fdtgrep"), CONFIG_SPL_MULTI_DTB_FIT has been broken because > cmd_fdtgrep was now unknown in scripts/Makefile.spl after moving > it to dts/Makefile. This bug

Re: [U-Boot] [PATCH 8/8] Migrate generic bootcount to Kconfig

2018-02-13 Thread Alex Kiernan
On Tue, Feb 13, 2018 at 2:41 PM, Lukasz Majewski wrote: > Hi Alex, > >> On Mon, Feb 12, 2018 at 8:48 AM, Lukasz Majewski >> wrote: >> > Hi Alex, >> > >> >> On Sun, Feb 11, 2018 at 9:44 PM, Lukasz Majewski >> >> wrote: >> >> > On Sun, 11 Feb 2018 21:04:46 + >> >> > Alex Kiernan wrote: >> >>

[U-Boot] [PATCH v3] spl: unbreak CONFIG_SPL_MULTI_DTB_FIT after fixing CONFIG_OF_EMBED

2018-02-13 Thread Simon Goldschmidt
With commit 9bd76b807636 ("spl: make CONFIG_OF_EMBED pass dts through fdtgrep"), CONFIG_SPL_MULTI_DTB_FIT has been broken because cmd_fdtgrep was now unknown in scripts/Makefile.spl after moving it to dts/Makefile. This bug has been introduced with v2018.01. This patch moves cmd_fdtgrep from dts/M

Re: [U-Boot] [U-Boot,3/3] microblaze: bootm: Fix compiler warning

2018-02-13 Thread Tom Rini
On Mon, Feb 12, 2018 at 05:54:37PM +0800, Bin Meng wrote: > Fix build warning in arch/microblaze/lib/bootm.c with gcc 7.3.0: > > warning: this 'if' clause does not guard... [-Wmisleading-indentation] > > Signed-off-by: Bin Meng > Reviewed-by: Tom Rini > Reviewed-by: Michal Simek Applied to

Re: [U-Boot] [U-Boot,2/3] arm: omap2: Fix compiler warning

2018-02-13 Thread Tom Rini
On Mon, Feb 12, 2018 at 05:54:36PM +0800, Bin Meng wrote: > Fix build warning in arch/arm/mach-omap2/emif-common.c and > arch/arm/mach-omap2/omap4/emif.c with gcc 7.3.0: > > warning: duplicate 'const' declaration specifier > [-Wduplicate-decl-specifier] > > Signed-off-by: Bin Meng > Reviewed

Re: [U-Boot] [U-Boot, 3/3] tftp: update: Include missing cfi_flash.h header

2018-02-13 Thread Tom Rini
On Sat, Feb 10, 2018 at 04:22:07PM +0100, Marek Vasut wrote: > Add the missing header, otherwise CONFIG_SYS_MAX_FLASH_BANKS > may be undeclared. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, 1/3] video: ivybridge_igd: Fix compiler warning

2018-02-13 Thread Tom Rini
On Mon, Feb 12, 2018 at 05:54:35PM +0800, Bin Meng wrote: > Fix build warning in drivers/video/ivybridge_igd.c with gcc 7.3.0: > > warning: 'ivb_pm_gt2' defined but not used [-Wunused-const-variable=] > > Signed-off-by: Bin Meng > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! --

Re: [U-Boot] [U-Boot,1/3] cmd: fitupd: Convert CONFIG_CMD_FITUPD

2018-02-13 Thread Tom Rini
On Sat, Feb 10, 2018 at 04:22:05PM +0100, Marek Vasut wrote: > Convert the CONFIG_CMD_FITUPD symbol to Kconfig. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-

Re: [U-Boot] [U-Boot, 2/3] cmd: fitupd: Convert CONFIG_UPDATE_TFTP and co.

2018-02-13 Thread Tom Rini
On Sat, Feb 10, 2018 at 04:22:06PM +0100, Marek Vasut wrote: > Convert the CONFIG_UPDATE_TFTP and related symbols to Kconfig. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] U-Boot

2018-02-13 Thread Simon Glass
Hi Mariano, On 13 February 2018 at 15:23, Mariano Coromac wrote: > > Thank you very much. I expanded the malloc into a bigger number and now I > don't get those errors. > My remaining problem is that I can't seem to move the serial console or > console monitor (I don't know which term is better

Re: [U-Boot] [PULL] Please pull from u-boot-rockchip/master

2018-02-13 Thread Tom Rini
On Tue, Feb 13, 2018 at 04:46:53PM +0100, Dr. Philipp Tomsich wrote: > Tom, > > I have one fix and one clean-up ready for you to pull. > The travis-run for this can be found at > https://travis-ci.org/ptomsich/u-boot-rockchip/builds/340911706 > > Thanks, > Philipp. > > > The following changes

Re: [U-Boot] [PATCH] script: Make the get_default_envs.sh script working with newest u-boot

2018-02-13 Thread Tuomas Tynkkynen
Hi, On Tue, 13 Feb 2018 23:01:13 +0100 Lukasz Majewski wrote: > This commit fixes several issues: > > - After moving env related code to ./env directory the env_common.o file > is no longer present in the system (has been replaced with built-in.o). > > - Use ${OBJCOPY} if available, fallback t

Re: [U-Boot] rk3288: broken boot

2018-02-13 Thread Dr. Philipp Tomsich
Jagan, > On 13 Feb 2018, at 13:20, Jagan Teki wrote: > > On Tue, Feb 13, 2018 at 5:29 PM, Dr. Philipp Tomsich > wrote: >> I verified the build for evb-rk3288_defconfig and everything looks fine: >> >> spl/u-boot-spl.bin: file format binary >> >> >> Disassembly of section .data: >> >> 00

Re: [U-Boot] [PATCH 10/10] mmc: uniphier-sd: Add Renesas SDR104/HS200 tuning support

2018-02-13 Thread Jaehoon Chung
Hi Marek, On 02/14/2018 07:05 AM, Marek Vasut wrote: > On 02/09/2018 06:28 PM, Masahiro Yamada wrote: >> Jaehoon, >> >> 2018-02-01 0:21 GMT+09:00 Marek Vasut : >>> Add code for PHY tuning required for SDR104/HS200 support on Renesas RCar. >>> >>> Signed-off-by: Marek Vasut >>> Cc: Jaehoon Chung

Re: [U-Boot] [PATCH] script: Make the get_default_envs.sh script working with newest u-boot

2018-02-13 Thread Alex Kiernan
On Tue, Feb 13, 2018 at 10:01 PM, Lukasz Majewski wrote: > This commit fixes several issues: > > - After moving env related code to ./env directory the env_common.o file > is no longer present in the system (has been replaced with built-in.o). > > - Use ${OBJCOPY} if available, fallback to system

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Marek Vasut
On 02/13/2018 09:14 PM, York Sun wrote: > On 02/13/2018 12:09 PM, Marek Vasut wrote: >> On 02/13/2018 08:33 PM, York Sun wrote: >>> On 02/13/2018 11:16 AM, Marek Vasut wrote: On 02/13/2018 07:32 PM, York Sun wrote: > On 02/13/2018 09:38 AM, Marek Vasut wrote: >> On 02/13/2018 05:30 PM,

Re: [U-Boot] [PATCH 10/10] mmc: uniphier-sd: Add Renesas SDR104/HS200 tuning support

2018-02-13 Thread Marek Vasut
On 02/09/2018 06:28 PM, Masahiro Yamada wrote: > Jaehoon, > > 2018-02-01 0:21 GMT+09:00 Marek Vasut : >> Add code for PHY tuning required for SDR104/HS200 support on Renesas RCar. >> >> Signed-off-by: Marek Vasut >> Cc: Jaehoon Chung >> Cc: Masahiro Yamada >> --- > > > Please apply whole of t

Re: [U-Boot] U-Boot

2018-02-13 Thread Mariano Coromac
Thank you very much. I expanded the malloc into a bigger number and now I don't get those errors. My remaining problem is that I can't seem to move the serial console or console monitor (I don't know which term is better) into my flexcom1 usart. It always keep saying: No serial driver found resett

[U-Boot] [PATCH] script: Make the get_default_envs.sh script working with newest u-boot

2018-02-13 Thread Lukasz Majewski
This commit fixes several issues: - After moving env related code to ./env directory the env_common.o file is no longer present in the system (has been replaced with built-in.o). - Use ${OBJCOPY} if available, fallback to system default's objcopy if not present. - Extend the script to accept dif

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Anatolij Gustschin
Hi York, On Tue, 13 Feb 2018 16:30:58 + York Sun york@nxp.com wrote: ... > 5b93394 - Anatolij Gustschin, ag...@denx.de, 5 years ago : mpc8xxx: fix > DDR init value to use CONFIG_MEM_INIT_VALUE My small fix surely doesn't justify copyright claims on this driver, so I can't stop this change

Re: [U-Boot] [PATCH 1/1] fs: fat: avoid useless conversion when calling getcluster

2018-02-13 Thread Tuomas Tynkkynen
Hi, On Tue, 13 Feb 2018 19:18:58 +0100 Heinrich Schuchardt wrote: > Parameter size of function get_cluster() is of type unsigned long. It makes > no sense to convert actsize to int before passing it to get_cluster as > size. > > Signed-off-by: Heinrich Schuchardt > --- > fs/fat/fat.c | 8

[U-Boot] [PATCH 2/2] dfu: tftp: Fix arm64 build warnings

2018-02-13 Thread Marek Vasut
Fix two build warnings when building for arm64: drivers/dfu/dfu_tftp.c: In function ‘dfu_tftp_write’: drivers/dfu/dfu_tftp.c:59:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ret = dfu_write_from_mem_addr(dfu, (void *)addr, len);

[U-Boot] [PATCH 1/2] dfu: Fix up the Kconfig mess

2018-02-13 Thread Marek Vasut
Clean up the screaming mess of configuration options that DFU is. It was impossible to configure DFU such that TFTP is enabled and USB is not, this patch fixes that and assures that DFU TFTP and DFU USB can be enabled separatelly and that the correct pieces of code are compiled in. Signed-off-by:

Re: [U-Boot] [PATCH 1/1] fs: fat: avoid superfluous conversion calling set_cluster

2018-02-13 Thread Lukasz Majewski
On Tue, 13 Feb 2018 19:23:29 +0100 Heinrich Schuchardt wrote: > Parameter size of function set_cluster is of type unsigned long. It > makes no sense to convert actsize to int before passing it to > set_cluster as size. > > Signed-off-by: Heinrich Schuchardt > --- > fs/fat/fat_write.c | 6 -

Re: [U-Boot] [PATCH 1/1] fs: fat: avoid useless conversion when calling getcluster

2018-02-13 Thread Lukasz Majewski
On Tue, 13 Feb 2018 19:18:58 +0100 Heinrich Schuchardt wrote: > Parameter size of function get_cluster() is of type unsigned long. It > makes no sense to convert actsize to int before passing it to > get_cluster as size. > > Signed-off-by: Heinrich Schuchardt > --- > fs/fat/fat.c | 8 +---

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread York Sun
On 02/13/2018 12:09 PM, Marek Vasut wrote: > On 02/13/2018 08:33 PM, York Sun wrote: >> On 02/13/2018 11:16 AM, Marek Vasut wrote: >>> On 02/13/2018 07:32 PM, York Sun wrote: On 02/13/2018 09:38 AM, Marek Vasut wrote: > On 02/13/2018 05:30 PM, York Sun wrote: >> On 02/13/2018 04:49 AM,

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Marek Vasut
On 02/13/2018 08:33 PM, York Sun wrote: > On 02/13/2018 11:16 AM, Marek Vasut wrote: >> On 02/13/2018 07:32 PM, York Sun wrote: >>> On 02/13/2018 09:38 AM, Marek Vasut wrote: On 02/13/2018 05:30 PM, York Sun wrote: > On 02/13/2018 04:49 AM, Wolfgang Denk wrote: >> Dear York, >> >>>

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Sebastien
The changes I contributed were to the build system (which has been replaced since), so I make no license claims on this driver (or any of the u-boot code). On Tue, Feb 13, 2018 at 4:30 PM, York Sun wrote: > On 02/13/2018 04:49 AM, Wolfgang Denk wrote: > > Dear York, > > > > In message eurprd04.

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread York Sun
On 02/13/2018 11:16 AM, Marek Vasut wrote: > On 02/13/2018 07:32 PM, York Sun wrote: >> On 02/13/2018 09:38 AM, Marek Vasut wrote: >>> On 02/13/2018 05:30 PM, York Sun wrote: On 02/13/2018 04:49 AM, Wolfgang Denk wrote: > Dear York, > > In message > > you wrote: >> >

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Marek Vasut
On 02/13/2018 07:32 PM, York Sun wrote: > On 02/13/2018 09:38 AM, Marek Vasut wrote: >> On 02/13/2018 05:30 PM, York Sun wrote: >>> On 02/13/2018 04:49 AM, Wolfgang Denk wrote: Dear York, In message you wrote: > > Nobody said anything. Some addresses bounced. And

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread York Sun
On 02/13/2018 09:38 AM, Marek Vasut wrote: > On 02/13/2018 05:30 PM, York Sun wrote: >> On 02/13/2018 04:49 AM, Wolfgang Denk wrote: >>> Dear York, >>> >>> In message >>> >>> you wrote: Nobody said anything. Some addresses bounced. And most changes made out people outside Freescal

[U-Boot] Make display initialization more flexible

2018-02-13 Thread Christian Schnell
Hello, I have an A13-OLinuXino with a LCD-OLinuXino-7TS (7" touch LCD) and a LCD-OLinuXino-10 (10" LCD). I am building my own distribution using mainline U-Boot, mainline kernel and debian multistrap (stretch). My goal is to create a single distribution which supports all of the board's display

[U-Boot] [PATCH 1/1] fs: fat: avoid superfluous conversion calling set_cluster

2018-02-13 Thread Heinrich Schuchardt
Parameter size of function set_cluster is of type unsigned long. It makes no sense to convert actsize to int before passing it to set_cluster as size. Signed-off-by: Heinrich Schuchardt --- fs/fat/fat_write.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/fat/fat_wr

[U-Boot] [PATCH 1/1] fs: fat: avoid useless conversion when calling getcluster

2018-02-13 Thread Heinrich Schuchardt
Parameter size of function get_cluster() is of type unsigned long. It makes no sense to convert actsize to int before passing it to get_cluster as size. Signed-off-by: Heinrich Schuchardt --- fs/fat/fat.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fs/fat/fat.c b/

Re: [U-Boot] [PATCH v2 01/11] sunxi: Add MFD_SUN6I_PRCM kconfig entry

2018-02-13 Thread Jagan Teki
On Mon, Feb 12, 2018 at 9:56 AM, Chen-Yu Tsai wrote: > On Sun, Feb 11, 2018 at 6:18 PM, Jagan Teki wrote: >> 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 u

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Curt Brune
On Tue Feb 13 08:05, York Sun wrote: > On 02/13/2018 04:49 AM, Wolfgang Denk wrote: > > Dear York, > > > > In message > > > > you wrote: > >> > >> Nobody said anything. Some addresses bounced. And most changes made out > >> people outside Freescale/NXP are minor changes, except twice the files

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Heinrich Schuchardt
On 02/13/2018 05:30 PM, York Sun wrote: > On 02/13/2018 04:49 AM, Wolfgang Denk wrote: >> Dear York, >> >> In message >> >> you wrote: >>> >>> Nobody said anything. Some addresses bounced. And most changes made out >>> people outside Freescale/NXP are minor changes, except twice the files >>> we

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Marek Vasut
On 02/13/2018 05:30 PM, York Sun wrote: > On 02/13/2018 04:49 AM, Wolfgang Denk wrote: >> Dear York, >> >> In message >> >> you wrote: >>> >>> Nobody said anything. Some addresses bounced. And most changes made out >>> people outside Freescale/NXP are minor changes, except twice the files >>> we

Re: [U-Boot] [RESEND PATCH v2 5/7] net: phy: marvell 88e151x: Fix handling of bare RGMII interface type

2018-02-13 Thread Joe Hershberger
On Mon, Jan 15, 2018 at 4:08 AM, Mario Six wrote: > Commit 68e6eca ("net: phy: marvell 88e151x: Fix handling of RGMII > interface types") fixed the initialization of 88e151x phys, but made it > so that interfaces of type PHY_INTERFACE_MODE_RGMII had both RX and TX > delay bits cleared. The default

Re: [U-Boot] [PATCH] net: ravb: Initialize PHY in probe() once

2018-02-13 Thread Marek Vasut
On 02/13/2018 06:35 PM, Joe Hershberger wrote: > On Tue, Feb 13, 2018 at 10:29 AM, Marek Vasut wrote: >> Reset and initialize the PHY once in the probe() function rather than >> doing it over and over again is start() function. This requires us to >> keep the clock enabled while the driver is in u

Re: [U-Boot] [PATCH] net: ravb: Initialize PHY in probe() once

2018-02-13 Thread Joe Hershberger
On Tue, Feb 13, 2018 at 11:39 AM, Marek Vasut wrote: > On 02/13/2018 06:35 PM, Joe Hershberger wrote: >> On Tue, Feb 13, 2018 at 10:29 AM, Marek Vasut wrote: >>> Reset and initialize the PHY once in the probe() function rather than >>> doing it over and over again is start() function. This requir

[U-Boot] [PATCH 03/18] ARC: cache: Add support of FLUSH_N_INV d$ operations

2018-02-13 Thread Eugeniy Paltsev
As of today __dc_line_op and __dc_entire_op support only flush (OP_FLUSH) and invalidate (OP_INV) operations. Add support of flush and invalidate (OP_FLUSH_N_INV) operation which we planing to use in next patches. Signed-off-by: Eugeniy Paltsev --- arch/arc/lib/cache.c | 42 +++--

[U-Boot] [PATCH 09/18] ARC: cache: Use is_isa_arcv2() instead of CONFIG_ISA_ARCV2 ifdef

2018-02-13 Thread Eugeniy Paltsev
Use is_isa_arcv2() function instead of CONFIG_ISA_ARCV2 define check to make code clear at the same time keeping pretty much the same functionality - code in branches under "if (is_isa_arcv2())" won't be compiled if CONFIG_ISA_ARCV2 is not defined. Signed-off-by: Eugeniy Paltsev --- arch/arc/lib

[U-Boot] [PATCH 08/18] ARC: cache: allways check dcache status before entire/line operations

2018-02-13 Thread Eugeniy Paltsev
As we are planning to get rid of dozens of ifdef's in cache.c we would better check dcache status before each entire/line operation then check CONFIG_SYS_DCACHE_OFF config option. This makes the code clear. Another advantage is that the dcache entire/line functions remain functional even if we ena

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Wolfgang Denk
Dear York, In message you wrote: > > > Ask all people who contributed to that code for their explicit > > permission. Legally it is a huge difference between actively > > confirming approval and not reacting at all. ... > 1a45966 - Wolfgang Denk, w...@denx.de, 4 years, 7 months ago : Add > GPL

[U-Boot] [PATCH 04/18] ARC: introduce is_isa_X functions

2018-02-13 Thread Eugeniy Paltsev
Introduce is_isa_arcv2 and is_isa_arcompact functions. As this functions only check configuration options and return compile-time constant they can be used instead of #ifdef's to to write clear code. So we can write -->8--- if (is_isa_arcv2()) ioc_configure(); -

[U-Boot] [PATCH 11/18] ARC: cache: get rid of [slc, pae, icache, dcache]_exists global variables

2018-02-13 Thread Eugeniy Paltsev
There is the problem with current implementation if we start u-boot from ROM, as we use cache global variables before ther initialization, so these variables are overwritten when we copy .data section from ROM. So use icache_exists(), dcache_exists(), slc_exists(), pae_exists() functions which che

[U-Boot] [PATCH 16/18] ARC: cache: move pae exists check into slc_upper_region_init

2018-02-13 Thread Eugeniy Paltsev
Move pae exists check into slc_upper_region_init function itself instead of its caller as more appropriate place. Signed-off-by: Eugeniy Paltsev --- arch/arc/lib/cache.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arc/lib/cache.c b/arch/arc/lib/cache.

[U-Boot] [PATCH 15/18] ARC: implement function to cleanup caches before linux

2018-02-13 Thread Eugeniy Paltsev
Implement specialized function to clenup caches (and therefore sync I/D caches) which can be used for cleanup before linux launch instead of flush_dcache_all/invalidate_icache_all pair. It also allow us to safely invalidate L1 D$ and SLC before linux launch. Signed-off-by: Eugeniy Paltsev --- ar

[U-Boot] [PATCH 18/18] ARC: cache: add missing cache cleanup before cache disable

2018-02-13 Thread Eugeniy Paltsev
Add missing cache cleanup before cache disable: * Flush and invalidate L1 D$ before disabling. Otherwise we can lose some data when we disable L1 D$ if this data isn't flushed to next level cache. Or we can get wrong data if L1 D$ has some entries after enable which we modified when the L

[U-Boot] [PATCH 06/18] ARC: cache: move IOC initialization to separate function

2018-02-13 Thread Eugeniy Paltsev
Move IOC initialization to separate function from cache_init function. This is the preparation for the next patch when we will switch to is_isa_arcv2() function using instead of "CONFIG_ISA_ARCV2" ifdef using. Also it makes cache_init function clear. Signed-off-by: Eugeniy Paltsev --- arch/arc/

[U-Boot] [PATCH 14/18] ARC: implement function to sync I/D caches before relocation

2018-02-13 Thread Eugeniy Paltsev
As of today we call flush_dcache_all before relocation, to sync I/D caches so there are two problems: * We also flush SLC (on ARCv2) - this is overhead as SLC is shared for data and instructions. * We don't invalidate I$ - this can be dangerous if have some valid lines in I$ in relocation a

[U-Boot] [PATCH 12/18] ARC: mode cache global variables to global data struct

2018-02-13 Thread Eugeniy Paltsev
There is the problem with current implementation if we start u-boot from ROM, as we use global variables before ther initialization, so these variables are overwritten when we copy .data section from ROM. So move these cache global variables into our arch "global data" structure so that we may rea

[U-Boot] [PATCH 07/18] ARC: move BCR encodings to separate header file

2018-02-13 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- arch/arc/include/asm/arc-bcr.h | 77 ++ arch/arc/lib/cache.c | 67 +--- 2 files changed, 85 insertions(+), 59 deletions(-) create mode 100644 arch/arc/include/asm/arc-bcr.h diff

[U-Boot] [PATCH 17/18] ARC: cache: don't invalidate SLC in invalidate_icache_all

2018-02-13 Thread Eugeniy Paltsev
We don't want to invalidate SLC in invalidate_icache_all as we can lose some data from SLC (especially if L1 D$ is disabled) because SLC is shared for data and instructions. Signed-off-by: Eugeniy Paltsev --- arch/arc/lib/cache.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH 02/18] ARC: cache: remove per-line I$ operations as unused

2018-02-13 Thread Eugeniy Paltsev
__cache_line_loop function was copied from linux kernel code where per line instruction cache operations are used. In uboot we use only entire instruction cache operations, so we can drop support of per line instruction cache operations from __cache_line_loop function as __cache_line_loop is never

Re: [U-Boot] [PATCH] net: ravb: Initialize PHY in probe() once

2018-02-13 Thread Joe Hershberger
On Tue, Feb 13, 2018 at 10:29 AM, Marek Vasut wrote: > Reset and initialize the PHY once in the probe() function rather than > doing it over and over again is start() function. This requires us to > keep the clock enabled while the driver is in use. This significantly > reduces the time between tr

[U-Boot] [PATCH 13/18] ARC: move IOC enabling to compile time options

2018-02-13 Thread Eugeniy Paltsev
Use CONFIG_ARC_DBG_IOC_ENABLE Kconfig option instead of ioc_enable global variable. Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 18 arch/arc/include/asm/cache.h | 5 + arch/arc/lib/cache.c | 49 ++-- 3 fi

[U-Boot] [PATCH 05/18] ARC: flush & invalidate D$ with a single command

2018-02-13 Thread Eugeniy Paltsev
We don't implement separate flush_dcache_all intentionally as entire data cache invalidation is dangerous operation even if we flush data cache right before invalidation. There is the real example: We may hang in the next code if we store any context (like BLINK register) on stack in invalidate_dc

[U-Boot] [PATCH 10/18] ARC: cache: move slc status check into slc_entire_op and slc_rgn_op

2018-02-13 Thread Eugeniy Paltsev
As of today we check slc status before each call of __slc_rgn_op or __slc_entire_op. So move status check into __slc_rgn_op and __slc_entire_op. As we need to check status before *each* function call and we slc_entire_op and slc_rgn_op functions from different places we add this check directly int

[U-Boot] [PATCH 01/18] ARC: cache: move i$ entire operation to separate function

2018-02-13 Thread Eugeniy Paltsev
Move icache entire operation to separate function as we are planing to use it in another places (like sync_icache_dcache_all) Signed-off-by: Eugeniy Paltsev --- arch/arc/lib/cache.c | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/arch/arc/lib

[U-Boot] [PATCH 00/18] ARC: cache subsystem improvement/refactoring

2018-02-13 Thread Eugeniy Paltsev
Eugeniy Paltsev (18): ARC: cache: move i$ entire operation to separate function ARC: cache: remove per-line I$ operations as unused ARC: cache: Add support of FLUSH_N_INV d$ operations ARC: introduce is_isa_X functions ARC: flush & invalidate D$ with a single command ARC: cache: move IO

Re: [U-Boot] U-Boot

2018-02-13 Thread Simon Glass
Hi Mariano, On 13 February 2018 at 09:00, Mariano Coromac wrote: > Thanks for the info. Apparently now the console is redirected but I keep > getting these driver errors: > bind node serial@f8038200 >- attempt to match compatible string 'atmel,at91sam9260-usart' >- found match at 'serial_

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread York Sun
On 02/13/2018 08:35 AM, York Sun wrote: > On 02/13/2018 04:49 AM, Wolfgang Denk wrote: >> Dear York, >> >> In message >> >> you wrote: >>> >>> Nobody said anything. Some addresses bounced. And most changes made out >>> people outside Freescale/NXP are minor changes, except twice the files >>> we

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Ira Snyder
On Tue, Feb 13, 2018 at 8:05 AM, York Sun wrote: > On 02/13/2018 04:49 AM, Wolfgang Denk wrote: >> Dear York, >> >> In message >> >> you wrote: >>> >>> Nobody said anything. Some addresses bounced. And most changes made out >>> people outside Freescale/NXP are minor changes, except twice the fi

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread York Sun
On 02/13/2018 08:44 AM, York Sun wrote: > On 02/13/2018 08:30 AM, York Sun wrote: >> On 02/13/2018 04:49 AM, Wolfgang Denk wrote: >>> Dear York, >>> >>> In message >>> >>> you wrote: Nobody said anything. Some addresses bounced. And most changes made out people outside Freescale/N

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Joakim Tjernlund
On Tue, 2018-02-13 at 16:05 +, York Sun wrote: > > On 02/13/2018 04:49 AM, Wolfgang Denk wrote: > > Dear York, > > > > In message > > > > you wrote: > > > > > > Nobody said anything. Some addresses bounced. And most changes made out > > > people outside Freescale/NXP are minor changes, ex

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread York Sun
On 02/13/2018 08:30 AM, York Sun wrote: > On 02/13/2018 04:49 AM, Wolfgang Denk wrote: >> Dear York, >> >> In message >> >> you wrote: >>> >>> Nobody said anything. Some addresses bounced. And most changes made out >>> people outside Freescale/NXP are minor changes, except twice the files >>> we

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Alexander Merkle
Am 13.02.2018 um 17:30 schrieb York Sun: On 02/13/2018 04:49 AM, Wolfgang Denk wrote: Dear York, In message you wrote: Nobody said anything. Some addresses bounced. And most changes made out people outside Freescale/NXP are minor changes, except twice the files were moved during U-Boot stru

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread York Sun
On 02/13/2018 04:49 AM, Wolfgang Denk wrote: > Dear York, > > In message > > you wrote: >> >> Nobody said anything. Some addresses bounced. And most changes made out >> people outside Freescale/NXP are minor changes, except twice the files >> were moved during U-Boot structure change. What opti

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Peter Tyser
On Tue, 2018-02-13 at 16:05 +, York Sun wrote: > On 02/13/2018 04:49 AM, Wolfgang Denk wrote: > > > > Dear York, > > > > In message you wrote: > > > > > > > > > Nobody said anything. Some addresses bounced. And most changes made out > > > people outside Freescale/NXP are minor changes, exc

[U-Boot] [PATCH] net: ravb: Initialize PHY in probe() once

2018-02-13 Thread Marek Vasut
Reset and initialize the PHY once in the probe() function rather than doing it over and over again is start() function. This requires us to keep the clock enabled while the driver is in use. This significantly reduces the time between transfers as the PHY doesn't have to restart autonegotiation bet

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread York Sun
On 02/13/2018 04:49 AM, Wolfgang Denk wrote: > Dear York, > > In message > > you wrote: >> >> Nobody said anything. Some addresses bounced. And most changes made out >> people outside Freescale/NXP are minor changes, except twice the files >> were moved during U-Boot structure change. What opti

Re: [U-Boot] U-Boot

2018-02-13 Thread Mariano Coromac
Thanks for the info. Apparently now the console is redirected but I keep getting these driver errors: bind node serial@f8038200 - attempt to match compatible string 'atmel,at91sam9260-usart' - found match at 'serial_atmel' Error binding driver 'serial_atmel': -12 For what I understand, the d

[U-Boot] [PULL] Please pull from u-boot-rockchip/master

2018-02-13 Thread Dr. Philipp Tomsich
Tom, I have one fix and one clean-up ready for you to pull. The travis-run for this can be found at https://travis-ci.org/ptomsich/u-boot-rockchip/builds/340911706 Thanks, Philipp. The following changes since commit ebdb098c67c8fa1e9eb3d4e2f6a6a380fc222188: Prepare v2018.03-rc2 (2018-02-12

Re: [U-Boot] spl: fit: move fdt_record_loadable out of ARCH_FIXUP_FDT_MEMORY guard

2018-02-13 Thread Philipp Tomsich
> The fdt_record_loadable()-function was wedged between other functions > that were guarded by ARCH_FIXUP_FDT_MEMORY. This could lead to linker > errors on some configurations. > > With this change, fdt_record_loadable() is moved out of the > ARCH_FIXUP_FDT_MEMORY guard (plus I tried to retain al

Re: [U-Boot] [U-Boot,1/1] rockchip: gpio: remove dead code

2018-02-13 Thread Philipp Tomsich
> In the following statements > if (a) return a; if (a) return c; > the second return can never be executed. > > Identified by cppcheck. > > Signed-off-by: Heinrich Schuchardt > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > drivers/gpio/rk_gpio.c | 4 > 1 file changed,

Re: [U-Boot] [U-Boot,1/1] rockchip: gpio: remove dead code

2018-02-13 Thread Philipp Tomsich
> In the following statements > if (a) return a; if (a) return c; > the second return can never be executed. > > Identified by cppcheck. > > Signed-off-by: Heinrich Schuchardt > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > drivers/gpio/rk_gpio.c | 4 > 1 file changed,

[U-Boot] [PATCH v1 5/7] video: add support of STM32 MIPI DSI controller driver

2018-02-13 Thread yannick fertre
Add the STM32 DSI controller driver that uses the Synopsys DesignWare MIPI DSI host controller bridge. Signed-off-by: yannick fertre --- drivers/video/stm32/Kconfig | 10 + drivers/video/stm32/Makefile| 1 + drivers/video/stm32/stm32_dsi.c | 429 +++

[U-Boot] [PATCH v1 4/7] video: add MIPI DSI host controller bridge

2018-02-13 Thread yannick fertre
Add a Synopsys Designware MIPI DSI host bridge driver, based on the Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. Signed-off-by: yannick fertre --- drivers/video/Kconfig | 9 + drivers/video/Makefile | 1 + drivers/video/dw_mipi_dsi.c | 822 +

[U-Boot] [PATCH v1 4/7] video: stm32: stm32_ltdc: missing set of line interrupt position

2018-02-13 Thread yannick fertre
Set LIPCR (line interrupt position conf) register with line length. Signed-off-by: yannick fertre --- drivers/video/stm32/stm32_ltdc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index 08e0afc..6c3557b 100644 --- a/dri

[U-Boot] [PATCH v1 6/7] arm: dts: stm32: add dsi for STM32F746

2018-02-13 Thread yannick fertre
Add mipi dsi bridge node in device-tree. Signed-off-by: yannick fertre --- arch/arm/dts/stm32f746.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/stm32f746.dtsi b/arch/arm/dts/stm32f746.dtsi index e4d32bf..4ec954d 100644 --- a/arch/arm/dts/stm32f746.dtsi +++ b

[U-Boot] [PATCH v1 6/7] arm: dts: stm32: add ltdc for STM32F746

2018-02-13 Thread yannick fertre
From: Philippe CORNU Add display controller node in device-tree. Signed-off-by: yannick fertre --- arch/arm/dts/stm32f746.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/stm32f746.dtsi b/arch/arm/dts/stm32f746.dtsi index 46d148e..e4d32bf 100644 --- a/arch/arm/dts

[U-Boot] [PATCH v1 0/7] splash screen on the stm32f769 disco board

2018-02-13 Thread yannick fertre
This serie contains all patchsets needed for displaying a splash screen on the stm32f769 disco board. yannick fertre (7): video: stm32: stm32_ltdc: add bridge to display controller video: add support of MIPI DSI interface video: add support of panel OTM8009A video: add MIPI DSI host contr

[U-Boot] [PATCH v1 7/7] arm: dts: stm32: add display for STM32F769 disco board

2018-02-13 Thread yannick fertre
Enable the display controller, mipi dsi bridge & panel. Set panel display timings. Signed-off-by: yannick fertre --- arch/arm/dts/stm32f769-disco.dts | 59 1 file changed, 59 insertions(+) diff --git a/arch/arm/dts/stm32f769-disco.dts b/arch/arm/dts/stm3

[U-Boot] [PATCH v1 2/7] video: add support of MIPI DSI interface

2018-02-13 Thread yannick fertre
Mipi_display.c contains a set of dsi helpers. This file is a copy of file drm_mipi_dsi.c (linux kernel). Signed-off-by: yannick fertre --- drivers/video/Kconfig| 7 + drivers/video/Makefile | 2 + drivers/video/mipi_display.c | 809 +++ i

[U-Boot] [PATCH v1 3/7] video: stm32: stm32_ltdc: set rate of the pixel clock

2018-02-13 Thread yannick fertre
pxclk is useless to set pixel clock. Signed-off-by: yannick fertre --- drivers/video/stm32/stm32_ltdc.c | 52 ++-- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index 8d89b58

[U-Boot] [PATCH v1 3/7] video: add support of panel OTM8009A

2018-02-13 Thread yannick fertre
Support for Orise Tech otm8009a 480p dsi 2dl video mode panel. Signed-off-by: yannick fertre --- drivers/video/Kconfig | 7 + drivers/video/Makefile | 1 + drivers/video/orisetech_otm8009a.c | 316 + 3 files changed, 324 insertions

[U-Boot] [PATCH v1 7/7] arm: dts: stm32: add display for STM32F746 disco board

2018-02-13 Thread yannick fertre
Enable the display controller , panel & backlight. Set panel display timings & set the RGB data bus. Signed-off-by: yannick fertre --- arch/arm/dts/stm32f746-disco.dts | 70 1 file changed, 70 insertions(+) diff --git a/arch/arm/dts/stm32f746-disco.dts b

[U-Boot] [PATCH v1 5/7] video: stm32: stm32_ltdc: set the blending factor

2018-02-13 Thread yannick fertre
Set the blending factor regarding the pixel format Signed-off-by: yannick fertre --- drivers/video/stm32/stm32_ltdc.c | 41 ++-- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c

[U-Boot] [PATCH v1 1/7] video: stm32: stm32_ltdc: add bridge to display controller

2018-02-13 Thread yannick fertre
Manage a bridge insert between the display controller & a panel. Signed-off-by: yannick fertre --- drivers/video/stm32/stm32_ltdc.c | 107 ++- 1 file changed, 71 insertions(+), 36 deletions(-) diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm3

[U-Boot] [PATCH v1 1/7] video: stm32: stm32_ltdc: add reset

2018-02-13 Thread yannick fertre
Add reset of LTDC display controller. Signed-off-by: yannick fertre --- drivers/video/stm32/stm32_ltdc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index b417ac2..d8784f1 100644 --- a/drivers/video/stm32/st

[U-Boot] [PATCH v1 2/7] video: stm32: stm32_ltdc: update file header & footer

2018-02-13 Thread yannick fertre
Modified copyright & driver name. Signed-off-by: yannick fertre --- drivers/video/stm32/stm32_ltdc.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index d8784f1..8d89b58 100644 --- a/drive

[U-Boot] [PATCH v1 0/7] splash screen on the stm32f746 disco board

2018-02-13 Thread yannick fertre
This serie contains all patchsets needed for displaying a splash screen on the stm32f746 disco board & some display features (reset, blending & line interrupt position). Philippe CORNU (1): arm: dts: stm32: add ltdc for STM32F746 yannick fertre (6): video: stm32: stm32_ltdc: add reset vide

Re: [U-Boot] [PATCH 8/8] Migrate generic bootcount to Kconfig

2018-02-13 Thread Lukasz Majewski
Hi Alex, > On Mon, Feb 12, 2018 at 8:48 AM, Lukasz Majewski > wrote: > > Hi Alex, > > > >> On Sun, Feb 11, 2018 at 9:44 PM, Lukasz Majewski > >> wrote: > >> > On Sun, 11 Feb 2018 21:04:46 + > >> > Alex Kiernan wrote: > >> > > >> >> > >> >> That said, squashing in that change doesn't o

Re: [U-Boot] [PATCH] arm: socfpga: use imply instead of select for spi/mmc

2018-02-13 Thread Marek Vasut
On 02/13/2018 01:46 PM, Simon Goldschmidt wrote: > On 13.02.2018 13:44, Marek Vasut wrote: >> On 02/13/2018 01:41 PM, Simon Goldschmidt wrote: >>> On 13.02.2018 13:37, Marek Vasut wrote: On 02/13/2018 01:33 PM, Simon Goldschmidt wrote: > On 12.02.2018 15:54, Marek Vasut wrote: >> On 02

Re: [U-Boot] [PATCH] drivers/ddr/fsl: Dual-license DDR driver

2018-02-13 Thread Wolfgang Denk
Dear York, In message you wrote: > > Nobody said anything. Some addresses bounced. And most changes made out > people outside Freescale/NXP are minor changes, except twice the files > were moved during U-Boot structure change. What options do I have? Ask all people who contributed to that code

  1   2   >