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

2018-02-13 Thread Simon Goldschmidt
On 12.02.2018 15:54, Marek Vasut wrote: On 02/12/2018 03:52 PM, Simon Goldschmidt wrote: In arch/arm/Kconfig, ARCH_SOCFPGA currently selects some thins for spi flash and mmc that are not required by the hw. things ? what hw, all supported boards you mean ? Give users more freedom of choice

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:33 PM, Simon Goldschmidt wrote: > On 12.02.2018 15:54, Marek Vasut wrote: >> On 02/12/2018 03:52 PM, Simon Goldschmidt wrote: >>> In arch/arm/Kconfig, ARCH_SOCFPGA currently selects some >>> thins for spi flash and mmc that are not required by the hw. >> things ? >> >> what hw,

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

2018-02-13 Thread Lokesh Vutla
On Tuesday 13 February 2018 12:26 PM, 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] rk3288: broken boot

2018-02-13 Thread Dr. Philipp Tomsich
I verified the build for evb-rk3288_defconfig and everything looks fine: spl/u-boot-spl.bin: file format binary Disassembly of section .data: <.data>: 0: eaffb 0x4 <— this is the extra branch inserted (to be overwritten by mkimage) 4:

Re: [U-Boot] rk3288: broken boot

2018-02-13 Thread Jagan Teki
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: > > <.data>: >0:

Re: [U-Boot] About convert to LIVE DT

2018-02-13 Thread Dr. Philipp Tomsich
Kever, > On 13 Feb 2018, at 09:04, Kever Yang wrote: > > Simon, > > > On 02/12/2018 10:35 PM, Simon Glass wrote: >> Hi Kever, >> >> On 4 February 2018 at 18:00, Kever Yang wrote: >>> >>> On 02/04/2018 09:40 PM, Simon Glass wrote:

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: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/12/2018 03:52 PM, Simon Goldschmidt wrote: > In arch/arm/Kconfig, ARCH_SOCFPGA currently

Re: [U-Boot] rk3288: broken boot

2018-02-13 Thread Dr. Philipp Tomsich
Jagan, The boot0-header should insert the additional 4 bytes needed… the resulting input format to mkimage is thus compatible with how the ddr.bin images by Rockchip where originally formatted (i.e. prepadded). See arch/arm/include/asm/arch-rockchip/boot0.h for the insertion of these additional

[U-Boot] [PATCH 2/2] fix spelling of 'functions' in 2 places (was 'funtcions')

2018-02-13 Thread Simon Goldschmidt
Signed-off-by: Simon Goldschmidt --- arch/sandbox/cpu/state.c | 2 +- common/board_r.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c index 07584486db..862a71ddce 100644 ---

[U-Boot] [PATCH] arm: update Kconfig help for ENABLE_ARM_SOC_BOOT0_HOOK

2018-02-13 Thread Simon Goldschmidt
When this config is enabled, is included, but the Kconfig help says this should be a define (ARM_SOC_BOOT0_HOOK). The code for this in arch/arm/lib/vectors.s was changed on 01/02/2017 with commit ce62e57fc571 ("ARM: boot0 hook: remove macro, include whole header file"). Signed-off-by: Simon

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

2018-02-13 Thread Simon Goldschmidt
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/12/2018 03:52 PM, Simon Goldschmidt wrote: In arch/arm/Kconfig, ARCH_SOCFPGA currently selects some thins for spi flash and mmc that are not required by the

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

Re: [U-Boot] [PATCH] env: restore old env_get_char() behaviour

2018-02-13 Thread Maxime Ripard
On Fri, Feb 09, 2018 at 08:23:17PM +, Goldschmidt Simon wrote: > With multiple environments, the 'get_char' callback for env > drivers does not really make sense any more because it is > only supported by two drivers (eeprom and nvram). > > To restore single character loading for these

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

2018-02-13 Thread Simon Goldschmidt
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/12/2018 03:52 PM, Simon Goldschmidt wrote: In arch/arm/Kconfig,

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

Re: [U-Boot] U-Boot

2018-02-13 Thread Nicolas Ferre
On 12/02/2018 at 18:13, Mariano Coromac wrote: > With that one there is none, I had problems with the other one. I don't understand this sentence. > Right now I just want to know how the CONIG parameters like this one: > CONFIG_8xx_CONS_SMC1= I don't see such parameter in a sama5d2 xplained

Re: [U-Boot] [ANN] U-Boot v2018.03-rc2 released

2018-02-13 Thread Lukasz Majewski
On Mon, 12 Feb 2018 18:54:06 -0500 Tom Rini wrote: > Hey all, > > It's release day and v2018.03-rc2 is out. The big thing is that > there's some env related changes that need to be first sorted out and > tested, then pulled in. > > Other than the env fixes, I hope to pull

Re: [U-Boot] [PATCH v2 04/11] sunxi: Add SUNXI_RSB kconfig entry

2018-02-13 Thread Maxime Ripard
On Sun, Feb 11, 2018 at 03:48:53PM +0530, Jagan Teki wrote: > Add simple and meaningful kconfig option for rsb.c > instead of using MACH type on Makefile. > > Signed-off-by: Jagan Teki > --- > arch/arm/mach-sunxi/Kconfig | 10 ++ >

Re: [U-Boot] [PATCH 4/8] Convert CONFIG_BOOTCOUNT_ENV to Kconfig

2018-02-13 Thread Alex Kiernan
On Tue, Feb 13, 2018 at 9:30 AM, Lukasz Majewski wrote: > Hi Alex, > >> - Bootcount: >> - CONFIG_BOOTCOUNT_ENV >> - If no softreset save registers are found on the >> hardware >> - "bootcount" is stored in the environment. To prevent >> a >> -

Re: [U-Boot] [PATCH 2/2] arm: socfpga: use imply instead of select where applicable

2018-02-13 Thread Lukasz Majewski
On Tue, 13 Feb 2018 06:34:14 +0100 Simon Goldschmidt wrote: > Kconfig should only 'select' features that are required for an arch. > Standard features that can be disabled without breaking board support > should use 'imply' instead, to allow users to disable

Re: [U-Boot] [PATCH 0/2] arm: socfpga: Kconfig cleanups

2018-02-13 Thread Lukasz Majewski
Hi Simon, > This patchset moves CONFIG_HW_WATCHDOG from board config files to > Kconfig and changes Kconfig items that are not strictly required from > 'select' to 'imply'. Defconfigs are not affected. > > Lukasz Majewski (1): > Convert socfpga: select CONFIG_HW_WATCHDOG support for

Re: [U-Boot] [PATCH v2 0/7] sunxi: sun8i-emac: Update DT bindings

2018-02-13 Thread Maxime Ripard
On Fri, Feb 09, 2018 at 01:30:02AM +, Andre Przywara wrote: > Compared to the last post, this converts U-Boot's DTs over to use the > new binding, so that the final patch can remove support for the old > binding from U-Boot EMAC driver. > The Linux DTs can be synced in later once we solved the

Re: [U-Boot] About convert to LIVE DT

2018-02-13 Thread Kever Yang
Simon, On 02/12/2018 10:35 PM, Simon Glass wrote: > Hi Kever, > > On 4 February 2018 at 18:00, Kever Yang wrote: >> >> On 02/04/2018 09:40 PM, Simon Glass wrote: >>> Hi Kever, >>> >>> On 4 February 2018 at 00:44, Kever Yang wrote: Hi

[U-Boot] [PATCH] common: build ymodem only on need

2018-02-13 Thread Jun Nie
Build ymodem only on need to shrink spl image size. Signed-off-by: Jun Nie --- common/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/Makefile b/common/Makefile index c7bde23..0614348 100644 --- a/common/Makefile +++ b/common/Makefile @@

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

2018-02-13 Thread Alex Kiernan
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

Re: [U-Boot] [PATCH 4/8] Convert CONFIG_BOOTCOUNT_ENV to Kconfig

2018-02-13 Thread Lukasz Majewski
Hi Alex, > - Bootcount: > - CONFIG_BOOTCOUNT_ENV > - If no softreset save registers are found on the > hardware > - "bootcount" is stored in the environment. To prevent > a > - saveenv on all reboots, the environment variable > -

Re: [U-Boot] Port help for qca board

2018-02-13 Thread Clément Péron
Hi Ansuel, I made the ipq4018 works (with ethernet and spi) on 2017.07. there is a more recent version of U-boot for ipq806x here : https://source.codeaurora.org/quic/qsdk/oss/boot/u-boot-2016/ Regards, Clement 2018-02-02 1:03 GMT+01:00 Ansuel Smith : > I have source of

Re: [U-Boot] [PATCH 1/1] i2c: mvtwsi.c: Fix set speed

2018-02-13 Thread Heiko Schocher
Hello Stefan, Am 13.02.2018 um 08:27 schrieb Stefan Mavrodiev: Previous patch for this driver breaks i2c initialization. commit 8bcf12ccce89 ("i2c: mvtwsi.c: Avoid NULL dereference") If actual_speed is passed as NULL in this function: static void __twsi_i2c_init(struct mvtwsi_registers *twsi,

Re: [U-Boot] [PATCH] cmd: booti: fix invalid image address in debug message

2018-02-13 Thread Bin Chen
On 13 February 2018 at 14:10, Masahiro Yamada wrote: > With commit 6808ef9ac2a6 ("move booti_setup to arch/arm/lig/image.c"), > images->ep has not been set at this point. > > Fixes: 6808ef9ac2a6 ("move booti_setup to arch/arm/lig/image.c") > Signed-off-by:

Re: [U-Boot] rk3288: broken boot

2018-02-13 Thread Jagan Teki
On Fri, Dec 15, 2017 at 2:45 PM, Kever Yang wrote: > Hi Jagan, > > Could you enable global DEBUG and share the log? > > Thanks, > > - Kever > > > On 12/15/2017 03:08 PM, Jagan Teki wrote: >> >> Hi Philipp/Kever, >> >> Issue observed on rk3288 TPL supported board

[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

[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 ---

[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 ---

[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

[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

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

[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

[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

[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

[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

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

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

[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

[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

[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

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

[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

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: > >> > > >>

[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

[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

[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

[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

[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

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

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' >-

[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

[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

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

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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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 ---

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

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,

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

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.

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

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 >

[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

[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 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

[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

[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

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

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

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

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.

[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

[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 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

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

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

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

[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

[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

[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

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

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

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 >

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

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 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

  1   2   >