[U-Boot] [RESEND PATCH] usb: xhci: support 1.1 or later version

2019-11-08 Thread Chunfeng Yun
The xHCI 1.1 version also need set Transfer Type field Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 119b418..6a469e1 100644 ---

[U-Boot] [PATCH v2 36/41] common: Move board_get_usable_ram_top() out of common.h

2019-11-08 Thread Simon Glass
Move this function into init.h which seems to be designed for this sort of thing. Also update the header to declare struct global_data so that it can be included without global_data.h being needed. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-mvebu/arm64-common.c| 1 +

[U-Boot] [PATCH v2 38/41] common: Move pci_init_board() out of common.h

2019-11-08 Thread Simon Glass
This function can be dropped when all boards use driver model for PCI. For now, move it into init.h with a comment. Signed-off-by: Simon Glass --- Changes in v2: None board/armltd/integrator/pci.c | 1 + board/cavium/thunderx/thunderx.c| 1 + board/esd/vme8349/pci.c

[U-Boot] [PATCH v2 33/41] common: Move enable/disable_interrupts out of common.h

2019-11-08 Thread Simon Glass
Move these two functions into the irq_legacy.h header file. Also move interrupt_handler_t as this is used by the irq_install_handler() function. Signed-off-by: Simon Glass --- Changes in v2: None arch/arc/lib/bootm.c | 1 + arch/arm/cpu/arm11/cpu.c

[U-Boot] [PATCH v2 25/41] common: Move checkcpu() out of common.h

2019-11-08 Thread Simon Glass
This function belongs in cpu.h so move it over. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc83xx/cpu.c | 1 + arch/powerpc/cpu/mpc8xx/cpu.c| 1 + arch/sh/cpu/sh4/cpu.c| 1 +

Re: [U-Boot] [PATCH v2 00/41] common: Further reduce common.h

2019-11-08 Thread Tom Rini
On Fri, Nov 08, 2019 at 01:40:31PM -0700, Simon Glass wrote: > Hi Tom, > > On Fri, 8 Nov 2019 at 12:54, Simon Glass wrote: > > > > This series drops the size of common.h down further, by moving things out > > into existing and new header files. > > > > It is now down to about 200 lines. > > > >

Re: [U-Boot] [PATCH] gitattributes: dont treat non-text files as text

2019-11-08 Thread veeraiyan chidambaram
Dear Denk, On Fri, Nov 08, 2019 at 09:24:36AM +0100, Wolfgang Denk wrote: > Dear Veeraiyan, > > > +tools/img2brec.sh binary Agreed > This last line is obviously wrong. It is a plain shell script, > i. e. a normal text file, and it is also recognized as such: > > -> file tools/img2brec.sh >

[U-Boot] [PATCH 2/7] clk: fix error check for devm_clk_get_optional()

2019-11-08 Thread Chunfeng Yun
If skip all return error number, it may skip some real error cases, so only skip the error when the clock is not provided in DTS Signed-off-by: Chunfeng Yun --- drivers/clk/clk-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-uclass.c

Re: [U-Boot] White space cleanup

2019-11-08 Thread Wolfgang Denk
Dear Tom, In message <20191108151810.GY19317@bill-the-cat> you wrote: > > > When would be a good point of time in the release cycle to submit > > such a patch series? > > Lets see. For '//' style comments, while I personally can't bring > myself to use them, most of what we have today is

[U-Boot] [PATCH v2 16/41] common: Move serial functions out of common.h

2019-11-08 Thread Simon Glass
These functions belong in serial.h so move them over. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 1 + board/amarula/vyasa-rk3288/vyasa-rk3288.c | 1 + board/astro/mcf5373l/mcf5373l.c| 1 + board/birdland/bav335x/board.c

[U-Boot] [PATCH v2 17/41] common: Add a new lz4.h header file

2019-11-08 Thread Simon Glass
Add a header file to house the lz4 compression function. Add a comment while we are here, since it not even clear from the name what the function actuall does. Signed-off-by: Simon Glass --- Changes in v2: None common/image.c | 1 + include/common.h | 3 --- include/lz4.h | 24

[U-Boot] [PATCH v2 05/41] common: Move random-number functions into their own header

2019-11-08 Thread Simon Glass
Create a new rand.h header file and move functions into it, to reduce the size of common.h Signed-off-by: Simon Glass --- Changes in v2: None include/common.h | 6 -- include/net.h| 1 + include/rand.h | 40 lib/rand.c | 1 +

[U-Boot] [PATCH v2 13/41] common: Move env_get_ip() to net.h

2019-11-08 Thread Simon Glass
This function relates to networking, so move it out of the common.h header file. Signed-off-by: Simon Glass --- Changes in v2: None include/common.h | 4 include/net.h| 21 - 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/include/common.h

[U-Boot] [PATCH v2 07/41] crc: Fix code style with crc functions

2019-11-08 Thread Simon Glass
Some of these have a space before the bracket. Drop it to fix the style. Add some missing function comments while here. Note that u32 and u8 cannot be used here since crc.h is included on the host side. Signed-off-by: Simon Glass --- Changes in v2: None cmd/i2c.c| 2 +-

[U-Boot] [PATCH v2 29/41] common: Drop checkicache() and checkdcache()

2019-11-08 Thread Simon Glass
These are used by only one arch and only within a single file. Drop the declarations from the common file. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc8xx/cpu.c | 130 +- include/common.h | 2 - 2 files changed, 65

[U-Boot] efi_loader: pytest on sandbox

2019-11-08 Thread Heinrich Schuchardt
On 11/8/19 2:39 AM, AKASHI, Takahiro wrote: > On Fri, 8 Nov 2019 at 10:02, AKASHI, Takahiro > wrote: >> >> On Fri, 8 Nov 2019 at 09:51, Heinrich Schuchardt wrote: >>> >>> You need to change the default in Kconfig >> >> Why not enable it on sandbox? >> Otherwise, Travis is not so useful as UEFI

[U-Boot] [PATCH 3/7] clk: check valid clock by clk_valid()

2019-11-08 Thread Chunfeng Yun
Add valid check for clk->dev, it's useful when get optional clock even when the clk point is valid, but its dev will be NULL. Signed-off-by: Chunfeng Yun --- drivers/clk/clk-uclass.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/clk-uclass.c

Re: [U-Boot] [RESEND PATCH v2 12/13] davinci: omapl138-lcdk: enable driver-model in SPL

2019-11-08 Thread Bartosz Golaszewski
pt., 25 paź 2019 o 18:10 Bartosz Golaszewski napisał(a): > > czw., 26 wrz 2019 o 01:21 Faiz Abbas napisał(a): > > > > Hi, > > > > On 29/07/19 12:28 PM, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > Enable CONFIG_SPL_DM and enable the driver model for serial by defining

[U-Boot] [PATCH v2 04/41] status_led: Tidy up the code style

2019-11-08 Thread Simon Glass
There are a few whitespace problems with this code. Tidy them up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/lib/interrupts.c | 2 +- drivers/misc/status_led.c | 8 include/status_led.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff

[U-Boot] [PATCH v2 30/41] common: Move ARM cache operations out of common.h

2019-11-08 Thread Simon Glass
These functions are CPU-related and do not use driver model. Move them to cpu_legacy.h Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm926ejs/lpc32xx/cpu.c | 1 + arch/arm/cpu/armv7/cache_v7.c | 1 + arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c | 1 +

[U-Boot] [PATCH v2 34/41] common: Move command functions out of common.h

2019-11-08 Thread Simon Glass
Move these functions into the command.h header file which is a better fit. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-kirkwood/cpu.c| 1 + arch/sandbox/cpu/start.c| 1 + board/engicam/common/board.c| 1 +

[U-Boot] [PATCH v2 35/41] common: Drop board_show_dram()

2019-11-08 Thread Simon Glass
This function is not defined by any boards so the feature is not used. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None cmd/mem.c| 9 ++--- include/common.h | 9 - 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/cmd/mem.c b/cmd/mem.c index

Re: [U-Boot] [PATCH v2 00/41] common: Further reduce common.h

2019-11-08 Thread Simon Glass
Hi Tom, On Fri, 8 Nov 2019 at 14:02, Tom Rini wrote: > > On Fri, Nov 08, 2019 at 01:40:31PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 8 Nov 2019 at 12:54, Simon Glass wrote: > > > > > > This series drops the size of common.h down further, by moving things out > > > into existing and

[U-Boot] [PATCH v3] gitattributes: dont treat non-text files as text

2019-11-08 Thread Veeraiyan Chidambaram
From: Vignesh Rajendran With recent update in u-boot gitattributes all files are treated as regular text files. This creates problems with special files and repo always shows uncommitted files like below. Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git

Re: [U-Boot] [RESEND PATCH v2 12/13] davinci: omapl138-lcdk: enable driver-model in SPL

2019-11-08 Thread Bartosz Golaszewski
pt., 8 lis 2019 o 18:33 Bartosz Golaszewski napisał(a): > > pt., 8 lis 2019 o 17:14 Adam Ford napisał(a): > > > > On Fri, Nov 8, 2019 at 9:50 AM Bartosz Golaszewski > > wrote: > > > > > > pt., 25 paź 2019 o 18:10 Bartosz Golaszewski napisał(a): > > > > > > > > czw., 26 wrz 2019 o 01:21 Faiz

[U-Boot] [PATCH v2 15/41] common: Move serial_printf() to the serial header

2019-11-08 Thread Simon Glass
Move this function header to serial.h since this function is clearly related to serial. The function itself stays in console.c since we don't have a single serial file. DM and non-DM each has a separate file so we would have to either create a new common serial file, or repeat the function in both

[U-Boot] [PATCH v2 22/41] common: Move mii_init() function out of common.h

2019-11-08 Thread Simon Glass
This function belongs in mii.h so move it over. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 1 + drivers/net/fsl_mcdmafec.c | 1 + drivers/net/ldpaa_eth/ls1088a.c | 1 + drivers/net/ldpaa_eth/lx2160a.c | 1 +

[U-Boot] [PATCH v2 20/41] common: Move timer_get_us() function out of common.h

2019-11-08 Thread Simon Glass
This function belongs in time.h so move it over and update the comment style. Signed-off-by: Simon Glass --- Changes in v2: None include/common.h | 3 --- include/time.h | 7 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/common.h b/include/common.h index

[U-Boot] [PATCH v2 21/41] common: Move get_ticks() function out of common.h

2019-11-08 Thread Simon Glass
This function belongs in time.h so move it over and add a comment. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm920t/ep93xx/timer.c| 1 + arch/arm/cpu/arm920t/imx/timer.c | 1 + arch/arm/cpu/arm926ejs/armada100/timer.c | 1 +

[U-Boot] [PATCH v2 23/41] common: Move some CPU functions out of common.h

2019-11-08 Thread Simon Glass
These functions belong in cpu_legacy.h since they do not use driver model. Move them over. Don't bother adding comments since these functions should be deleted. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 1 +

[U-Boot] [PATCH v2 27/41] arm: powerpc: Tidy up code style for cache functions

2019-11-08 Thread Simon Glass
Remove the unwanted space before the bracket. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/lib/cache-cp15.c| 12 ++-- arch/microblaze/cpu/cache.c | 18 +++--- board/armltd/integrator/integrator.c | 2 +- board/cobra5272/flash.c

[U-Boot] [PATCH v2 37/41] common: Move some board functions out of common.h

2019-11-08 Thread Simon Glass
A number of board function belong in init.h with the others. Move them. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/armv8/fsl-layerscape/soc.c | 1 + arch/arm/mach-imx/mx6/opos6ul.c | 1 + arch/arm/mach-imx/mx6/soc.c

[U-Boot] [PATCH v2 26/41] common: Move some SMP functions out of common.h

2019-11-08 Thread Simon Glass
These functions belong in cpu_legacy.h so move them over. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/armv7/ls102xa/cpu.c| 1 + arch/arm/cpu/armv7/virt-v7.c| 1 + arch/arm/lib/bootm.c| 1 + arch/arm/mach-uniphier/arm32/psci.c | 1

[U-Boot] [PATCH v2 40/41] common: Drop get_endaddr()

2019-11-08 Thread Simon Glass
This is not used in U-Boot. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None include/common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/common.h b/include/common.h index e946e4d9b7..64d0cf542e 100644 --- a/include/common.h +++ b/include/common.h @@ -144,7 +144,6 @@

Re: [U-Boot] [PATCH v2 3/4] drivers: mux: mmio-based syscon mux controller

2019-11-08 Thread Jean-Jacques Hiblot
On 08/11/2019 13:16, Alexandru Marginean wrote: Hi JJ, On 11/5/2019 12:50 PM, Jean-Jacques Hiblot wrote: This adds a driver for mmio-based syscon multiplexers controlled by bitfields in a syscon register range. This is heavily based on the linux mmio-mux driver. Signed-off-by: Jean-Jacques

[U-Boot] [PATCH v2 32/41] common: Move interrupt functions into a new header

2019-11-08 Thread Simon Glass
These functions do not use driver model but are fairly widely used in U-Boot. Move them to a new irq_legacy.h header file. Signed-off-by: Simon Glass --- Changes in v2: None arch/arc/lib/interrupts.c | 1 + arch/arm/lib/interrupts.c | 1 +

[U-Boot] [PATCH v2 18/41] common: Move some time functions out of common.h

2019-11-08 Thread Simon Glass
These functions belong in time.h so move them over and add comments. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/armv7/ls102xa/timer.c| 1 + arch/arm/cpu/armv8/generic_timer.c| 1 + arch/arm/mach-imx/syscounter.c| 1 +

[U-Boot] [PATCH v2 24/41] common: Drop cpu_init()

2019-11-08 Thread Simon Glass
This function is not defined anywhere. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None include/common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/common.h b/include/common.h index 4de05032b2..ce08bfe11f 100644 --- a/include/common.h +++ b/include/common.h @@

[U-Boot] [PATCH v2 12/41] Move strtomhz() to vsprintf.h

2019-11-08 Thread Simon Glass
At present this function sits in its own file but it does not really justify it. There are similar string functions in vsprintf.h, so move it there. Also add the missing function comment. Use the vsprintf.h include file explicitly where needed. Signed-off-by: Simon Glass --- Changes in v2:

Re: [U-Boot] [RESEND PATCH v2 12/13] davinci: omapl138-lcdk: enable driver-model in SPL

2019-11-08 Thread Bartosz Golaszewski
pt., 8 lis 2019 o 17:14 Adam Ford napisał(a): > > On Fri, Nov 8, 2019 at 9:50 AM Bartosz Golaszewski > wrote: > > > > pt., 25 paź 2019 o 18:10 Bartosz Golaszewski napisał(a): > > > > > > czw., 26 wrz 2019 o 01:21 Faiz Abbas napisał(a): > > > > > > > > Hi, > > > > > > > > On 29/07/19 12:28 PM,

[U-Boot] [PATCH 5/7] clk: fixed_rate: add dummy enable() function

2019-11-08 Thread Chunfeng Yun
This is used to avoid clk_enable() return -ENOSYS. Signed-off-by: Chunfeng Yun --- drivers/clk/clk_fixed_rate.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index f51126793e..2c20eddb0b 100644 ---

[U-Boot] [PATCH 1/7] clk: mediatek: mt7629: add support for ssusbsys

2019-11-08 Thread Chunfeng Yun
The SSUSB IP's clocks come from ssusbsys module on mt7629, so add its driver Signed-off-by: Chunfeng Yun --- drivers/clk/mediatek/clk-mt7629.c | 42 +++ 1 file changed, 42 insertions(+) diff --git a/drivers/clk/mediatek/clk-mt7629.c

[U-Boot] [PATCH] gitattributes: dont treat non-text files as text

2019-11-08 Thread Veeraiyan Chidambaram
From: Vignesh Rajendran With recent update in u-boot gitattributes all files are treated as regular text files. This creates problems with special files and repo always shows uncommitted files like below. Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git

Re: [U-Boot] Issues when saving environment in RK399 RockPI 4

2019-11-08 Thread Matthias Brugger
Hi Ezequiel, On 07/11/2019 20:27, Fabio Estevam wrote: > Hi Ezequiel, > > On Thu, Nov 7, 2019 at 3:45 PM Ezequiel Garcia > wrote: >> >> I decided to test latest U-Boot, following instructions in >> doc/README.rockchip. The instructions seemed >> clear and I could build this easily. >> >>

[U-Boot] [PATCH v2 06/41] common: Drop linux/crc8.h

2019-11-08 Thread Simon Glass
We have an existing U-Boot header for the one function that this defines. Use that instead of the linux/ one. Move over the nice comment. Signed-off-by: Simon Glass --- Changes in v2: None board/theadorable/theadorable.c | 2 +- drivers/tpm/tpm2_tis_sandbox.c | 2 +-

[U-Boot] [PATCH v2 09/41] spl: bootcount: Move code out of header file

2019-11-08 Thread Simon Glass
It is not good practice to write code in a header file. If it is included multiple times then the code can cause duplicate functions. Move the bootcount_store() and bootcount_load() functions into SPL. Note: bootcount is a bit strange in that it uses driver model but does not define proper

[U-Boot] [PATCH v2 19/41] common: Move wait_ticks functions out of common.h

2019-11-08 Thread Simon Glass
This function belongs in time.h so move it over and add a comment. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/pxa/pxa2xx.c | 1 + drivers/timer/mpc83xx_timer.c | 1 + include/common.h | 1 - include/time.h| 9 + 4 files changed, 11

[U-Boot] [PATCH v2 14/41] serial: usb: Correct the usbtty_...() prototypes

2019-11-08 Thread Simon Glass
The function declarations in serial.h are not in sync with what is currently used in usbtty. Fix this by updating the header and including it, to help catch future such problems. Signed-off-by: Simon Glass --- Changes in v2: None drivers/serial/usbtty.c | 1 + include/serial.h| 18

[U-Boot] [PATCH v2 10/41] common: Move bootcount functions to their header file

2019-11-08 Thread Simon Glass
These don't need to be in common.h so move them out. Signed-off-by: Simon Glass --- Changes in v2: None board/BuR/brppt1/board.c | 1 + include/bootcount.h | 10 ++ include/common.h | 4 3 files changed, 11 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH v2 11/41] common: Move sorting functions to their own header file

2019-11-08 Thread Simon Glass
These don't need to be in common.h so move them out into a new header. Also add some missing comments. Signed-off-by: Simon Glass --- Changes in v2: None cmd/efi.c | 1 + common/bootstage.c | 1 + env/common.c| 1 + fs/yaffs2/yaffs_qsort.c | 1 +

Re: [U-Boot] [PATCH v2 00/41] common: Further reduce common.h

2019-11-08 Thread Tom Rini
On Fri, Nov 08, 2019 at 02:03:58PM -0700, Simon Glass wrote: > Hi Tom, > > On Fri, 8 Nov 2019 at 14:02, Tom Rini wrote: > > > > On Fri, Nov 08, 2019 at 01:40:31PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 8 Nov 2019 at 12:54, Simon Glass wrote: > > > > > > > > This series

Re: [U-Boot] White space cleanup

2019-11-08 Thread Tom Rini
On Fri, Nov 08, 2019 at 05:55:03PM +0100, Wolfgang Denk wrote: > Dear Tom, > > In message <20191108151810.GY19317@bill-the-cat> you wrote: > > > > > When would be a good point of time in the release cycle to submit > > > such a patch series? > > > > Lets see. For '//' style comments, while I

Re: [U-Boot] Pull request: u-boot-rockchip-20191026

2019-11-08 Thread Tom Rini
fix dependency for imx targets (2019-11-06 09:22:32 -0500) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip.git > tags/u-boot-rockchip-20191108 > > for you to fetch changes up to 08d9fe749237267bc60188fe116eb2f4ae0b18e7:

[U-Boot] [PATCH v2 08/41] crc32: Use the crc.h header for crc functions

2019-11-08 Thread Simon Glass
Drop inclusion of crc.h in common.h and use the correct header directly instead. With this we can drop the conflicting definition in fw_env.h and rely on the crc.h header, which is already included. Signed-off-by: Simon Glass --- Changes in v2: None api/api.c

[U-Boot] [PATCH v2 03/41] common: Drop global inclusion of status_led.h

2019-11-08 Thread Simon Glass
This is only used by a few files so it should not be in the common header. Move it out. Signed-off-by: Simon Glass --- Changes in v2: None board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c | 1 + board/atmel/at91sam9261ek/led.c | 1 + board/atmel/at91sam9263ek/led.c | 1 +

[U-Boot] [PATCH v2 28/41] common: Move some cache and MMU functions out of common.h

2019-11-08 Thread Simon Glass
These functions belong in cpu_legacy.h. Another option would be cache.h but that code uses driver model and we have not moved these cache functions to use driver model. Since they are CPU-related it seems reasonable to put them here. Move them over. Signed-off-by: Simon Glass --- Changes in

[U-Boot] [PATCH v2 39/41] common: Move trap_init() out of common.h

2019-11-08 Thread Simon Glass
Move this function into the init.h header file. Signed-off-by: Simon Glass --- Changes in v2: - Move trap_init() into init.h instead; update commit message arch/m68k/lib/traps.c | 1 + arch/mips/lib/traps.c | 1 + include/common.h | 1 - include/init.h| 2 ++ 4 files changed, 4

[U-Boot] [PATCH v2 31/41] arm: powerpc: Tidy up code style for interrupt functions

2019-11-08 Thread Simon Glass
Remove the unwanted space before the bracket. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm11/cpu.c | 2 +- arch/arm/cpu/arm920t/cpu.c| 2 +- arch/arm/cpu/arm926ejs/cpu.c | 2 +- arch/arm/cpu/arm946es/cpu.c | 2 +-

Re: [U-Boot] [PATCH v2 6/6] config: enable DFU over USB on Raspberry Pi4 boards

2019-11-08 Thread Matthias Brugger
Hi Marek, First of all thanks for the patch and sorry for the late response. On 24/09/2019 15:11, Marek Szyprowski wrote: > Enable support for DFU over USB. This requires to enable USB gadget, > DWC2 UDC OTG driver and DFU command. DFU entities are defined for the > following firmware objects:

Re: [U-Boot] [PATCH] board: rpi4: fix instantiating PL011 driver

2019-11-08 Thread Matthias Brugger
On 27/09/2019 07:39, Mark Dapoz wrote: > The bcm283x PL011 serial driver is hard coded to allow connections only > for UART0.  This prevents using any of the other UARTs as the U-boot > console. > > The bcm283x serial driver is updated to allow connections to any of the > PL011 devices.  The

[U-Boot] [PATCH v2 00/41] common: Further reduce common.h

2019-11-08 Thread Simon Glass
This series drops the size of common.h down further, by moving things out into existing and new header files. It is now down to about 200 lines. Changes in v2: - Move trap_init() into init.h instead; update commit message Simon Glass (41): common: Move legacy CPU functions to their own header

[U-Boot] Using kernelCI infrastructure for firmware testing

2019-11-08 Thread Patrick Rudolph
Hi folks, this is an attempt to improve firmware testing by using the infrastructure and knowledge of the kernelci community. If you think this is not the right place, please point me in the right direction. I'm a coreboot[1] developer trying to make sure that the master branch[2] doesn't

[U-Boot] [PATCH 7/7] phy: phy-mtk-tphy: make ref clock optional

2019-11-08 Thread Chunfeng Yun
If make the ref clock optional, no need refer to fixed-clock when the ref clock is always on or comes from oscillator directly. Signed-off-by: Chunfeng Yun --- drivers/phy/phy-mtk-tphy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/phy/phy-mtk-tphy.c

[U-Boot] [PATCH 6/7] phy: phy-mtk-tphy: remove the check of -ENOSYS

2019-11-08 Thread Chunfeng Yun
No need check -ENOSYS anymore after add dummy_enable() for fixed-clock. Signed-off-by: Chunfeng Yun --- drivers/phy/phy-mtk-tphy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c index 3701481256..c4fb404f20 100644

[U-Boot] [PATCH v4] gitattributes: dont treat non-text files as text

2019-11-08 Thread Veeraiyan Chidambaram
From: Vignesh Rajendran With recent update in u-boot gitattributes all files are treated as regular text files. This creates problems with special files and repo always shows uncommitted files like below. Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git

[U-Boot] Multiple ramdisks in FIT image

2019-11-08 Thread Gamble, Bradley
Hi, Apologies in advance if this isn't the right place to ask this question, but I'm not sure where else to ask! I have a FIT image that currently boots a Linux Kernel (vmlinux.bin.gz), Ramdisk (rootfs.cpio.gz) and Device Tree (platform.dtb). This works fine and my default configuration

[U-Boot] [PATCH 4/7] clk: add APIs to get (optional) clock by name without a device

2019-11-08 Thread Chunfeng Yun
Sometimes we may need get (optional) clock without a device, that means use ofnode. e.g. when the phy node has subnode, and there is no device created for subnode, in this case, we need these new APIs to get subnode's clock. Signed-off-by: Chunfeng Yun --- drivers/clk/clk-uclass.c | 28

[U-Boot] [PATCH v2 02/41] Drop CONFIG_SHOW_ACTIVITY

2019-11-08 Thread Simon Glass
This feature is not enabled by any board. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/lib/interrupts.c | 13 - common/cli_readline.c | 6 -- drivers/timer/mpc83xx_timer.c | 4 include/common.h | 4 net/net.c

[U-Boot] [PATCH v2 01/41] common: Move legacy CPU functions to their own header

2019-11-08 Thread Simon Glass
These should be moved to driver model, but in the meantime, move them out of the common header to help reduce its size. Signed-off-by: Simon Glass --- Changes in v2: None README | 2 +- arch/arm/cpu/armv8/fsl-layerscape/mp.c | 1 + arch/arm/mach-imx/mx6/mp.c

Re: [U-Boot] [BUG] U-Boot hangs on fatload, commit ee88eacbdd840199a3dec707234579fb15ddd46a

2019-11-08 Thread Heinrich Schuchardt
On 11/8/19 7:32 PM, Gray Remlin wrote: > Please excuse the noise. I would like to file a bug report against the > above commit, a quick search of www.denx.de did not > reveal how I should proceed. Please point me in the right direction. > > > Issue: > U-Boot hangs (i.e. during

[U-Boot] [PATCH v2 41/41] common: Move old EEPROM functions into a new header

2019-11-08 Thread Simon Glass
These functions do not use driver model but are still used. Move them to a new eeprom_legacy.h header file. Signed-off-by: Simon Glass --- Changes in v2: None board/atmel/common/mac_eeprom.c | 1 + board/compulab/common/eeprom.c| 1 +

Re: [U-Boot] [PATCH v2 00/41] common: Further reduce common.h

2019-11-08 Thread Simon Glass
Hi Tom, On Fri, 8 Nov 2019 at 12:54, Simon Glass wrote: > > This series drops the size of common.h down further, by moving things out > into existing and new header files. > > It is now down to about 200 lines. > > Changes in v2: > - Move trap_init() into init.h instead; update commit message >

[U-Boot] [RFC/RFT PATCH v4 3/3] image: Add compressed Image parsing support in booti.

2019-11-08 Thread Atish Patra
Add compressed Image parsing support so that booti can parse both flat and compressed Image to boot Linux. Currently, it is difficult to calculate a safe address for every board where the compressed image can be decompressed. It is also not possible to figure out the size of the compressed file as

[U-Boot] [RFC/RFT PATCH v4 2/3] image: Add a common compression type detection function.

2019-11-08 Thread Atish Patra
Currently, there is no method that can detect compression types given a file. This is very useful where a compressed kernel image is loaded directly to the memory. Inspect initial few bytes to figure out compression type of the image. It will be used in booti method for now but can be reused any

[U-Boot] [RFC/RFT PATCH v4 1/3] lib: kconfig: Add option to set BZIP2 compression method

2019-11-08 Thread Atish Patra
There is no way to select BZIP2 compression method. Add it under library/compression config where all other compression related configs are present. Signed-off-by: Atish Patra Reviewed-by: Tom Rini --- lib/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/Kconfig

[U-Boot] [PATCH] bdinfo: show multi_dtb_fit

2019-11-08 Thread Heiko Schocher
if MULTI_DTB_FIT is enabled it is helpful to display the value of gd->multi_dtb_fit in bdinfo. Signed-off-by: Heiko Schocher --- travis build: https://travis-ci.org/hsdenx/u-boot-test/builds/609100901 cmd/bdinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/bdinfo.c

Re: [U-Boot] [RFC/RFT PATCH v3 3/3] image: Add compressed Image parsing support in booti.

2019-11-08 Thread Atish Patra
On Wed, 2019-11-06 at 14:15 -0800, Atish Patra wrote: > Add compressed Image parsing support so that booti can parse both > flat and compressed Image to boot Linux. Currently, it is difficult > to calculate a safe address for every board where the compressed > image can be decompressed. It is also

[U-Boot] [PATCH] mtd: spi-nor-core: Fix static checker warnings

2019-11-08 Thread Vignesh Raghavendra
Static checker warns 'ret' variable may be used uninitialized in spi_nor_erase() and spi_nor_write() in case of zero length requests. Fix these warnings by checking for zero length requests and returning early. Reported-by: Dan Murphy Signed-off-by: Vignesh Raghavendra ---

Re: [U-Boot] [PATCH] include/env.h: Ensure ulong is defined

2019-11-08 Thread Tom Rini
On Fri, Nov 08, 2019 at 10:24:52PM +, Alistair Francis wrote: > On Thu, 2019-11-07 at 17:49 -0500, Tom Rini wrote: > > On Tue, Nov 05, 2019 at 11:30:45AM -0800, Alistair Francis wrote: > > > > > To fix these failures when building with musl: > > >include/env.h:166:1: error: unknown type

Re: [U-Boot] [PATCH] include/env.h: Ensure ulong is defined

2019-11-08 Thread Alistair Francis
On Thu, 2019-11-07 at 17:49 -0500, Tom Rini wrote: > On Tue, Nov 05, 2019 at 11:30:45AM -0800, Alistair Francis wrote: > > > To fix these failures when building with musl: > >include/env.h:166:1: error: unknown type name 'ulong'; did you > > mean 'long'? > > ensure that ulong is defined. > >

[U-Boot] [PATCH v2 2/2] rockchip: clk: fix wrong CONFIG_IS_ENABLED handling

2019-11-08 Thread Heiko Stuebner
CONFIG_IS_ENABLED() needs the config name like used in Kconfig, so without the leading CONFIG_. The clock drivers all wrongly check for CONFIG_RESET_ROCKCHIP, fix that Signed-off-by: Heiko Stuebner Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk_rk3036.c | 2 +-

[U-Boot] [PATCH v2 1/2] rockchip: clk: rv1108: remove duplicate reset init

2019-11-08 Thread Heiko Stuebner
rockchip_reset_bind() already does the needed init for the reset registers, only referenced the wrong cru structure. So we can get rid of the open-coded reset init and just fix the correct cru reference. Signed-off-by: Heiko Stuebner --- changes in v2: - drop the now unused old softreset_reg

[U-Boot] [RFC/RFT PATCH v4 0/3] Add compressed Image booting support

2019-11-08 Thread Atish Patra
This patch series extends booti to support compressed images as well. Following compressed images are supported for now. lzma, lzo, bzip2, gz. Other compression methods can easily be supported if required. The above compression methods are common ones that Linux kernel (ARM64/RISC-V) and U-Boot

[U-Boot] [PATCH] env: Access Environment in SPI flashes before relocation

2019-11-08 Thread Heiko Schocher
Enable the new Kconfig option ENV_SPI_EARLY if you want to use Environment in SPI flash before relocation. Call env_init() and than you can use env_get_f() for accessing Environment variables. Signed-off-by: Heiko Schocher --- travis build:

Re: [U-Boot] Using kernelCI infrastructure for firmware testing

2019-11-08 Thread Tom Rini
On Fri, Nov 08, 2019 at 10:35:10AM +0100, Patrick Rudolph wrote: > Hi folks, > this is an attempt to improve firmware testing by using the > infrastructure and knowledge of the kernelci community. If you think > this is not the right place, please point me in the right direction. > > I'm a

Re: [U-Boot] [PATCH 1/2] rockchip: clk: rv1108: remove duplicate reset init

2019-11-08 Thread Heiko Stuebner
Hi Kever, Am Donnerstag, 7. November 2019, 10:13:02 CET schrieb Heiko Stübner: > Am Donnerstag, 7. November 2019, 10:03:19 CET schrieb Kever Yang: > > On 2019/10/24 上午1:45, Heiko Stuebner wrote: > > > rockchip_reset_bind() already does the needed init for the reset > > > registers, only

[U-Boot] RK3399 boards (rockpi4 and rockpro64) kernel SError using upstream U-boot

2019-11-08 Thread Qu Wenruo
Hi, Although recent U-boot upstream has merged the rk3399 ram patchset to initial DDR4 properly, but strangely I can still trigger SError for RockPi4 and RockPro64 boards using upstream U-boot with upstream kernel (v5.4-rc). The dmesg is attached at the end. This is pretty easy to trigger if

Re: [U-Boot] [PATCH] tools/img2brec.sh: Delete unused tool

2019-11-08 Thread Tom Rini
On Fri, Nov 08, 2019 at 09:27:38AM -0500, Tom Rini wrote: > This script was only used on the MX1ADS board (and possibly other MX1 > platforms) to program the flash. As we no longer have any boards for > that SoC, remove this tool. > > Fixes: e570aca9474b ("mx1ads: remove board support") >

Re: [U-Boot] [PULL] u-boot-usb/master

2019-11-08 Thread Tom Rini
On Fri, Nov 08, 2019 at 11:25:42AM +0100, Marek Vasut wrote: > The following changes since commit 0f282c1876af26cc2c8c018ae6293a691561011e: > > Makefile: fix dependency for imx targets (2019-11-06 09:22:32 -0500) > > are available in the Git repository at: > >

Re: [U-Boot] [PATCH] binman: tegra: Adjust symbol calculation depending on end-at-4gb

2019-11-08 Thread Stephen Warren
On 11/7/19 9:25 AM, Stephen Warren wrote: On 11/6/19 5:22 PM, Simon Glass wrote: A recent change adjusted the symbol calculation to work on x86 but broke it for Tegra. In fact this is because they have different needs. On x86 devices the code is linked to a ROM address and the end-at-4gb

Re: [U-Boot] [PATCH v3 07/18] arm: mach-k3: am6_init: Initialize AVS class 0

2019-11-08 Thread Tom Rini
On Thu, Oct 24, 2019 at 03:00:52PM +0530, Keerthy wrote: > Initialize AVS class 0 so that mpu voltage rail is > programmed to the AVS class 0 compensated value. > > Signed-off-by: Keerthy Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH] Kconfig: ti: Make board detect EEPROM addresses depend BOARD_DETECT

2019-11-08 Thread Tom Rini
On Mon, Nov 04, 2019 at 05:05:24PM -0600, Adam Ford wrote: > There is an option to enable the board detection for TI platforms. > If this is option is not set, there is no reason to set the EEPROM > bus address or chip address. > > This patch makes both EEPROM_BUS_ADDRESS and EEPROM_CHIP_ADDRESS

Re: [U-Boot] [PATCH] configs: j721e_evm_r5_defconfig: Remove SPL multi-DTB FIT support

2019-11-08 Thread Tom Rini
On Thu, Nov 07, 2019 at 08:06:09AM -0500, Andrew F. Davis wrote: > The SPL FIT will only have one DTB, so remove support for multi-DTB. This > also removes an early access to EEPROM used to select the DTB that is not > valid in SPL at the point at which it is accessed, that always returns > false

Re: [U-Boot] [PATCH v3 04/18] misc: k3_avs: Add j721e support

2019-11-08 Thread Tom Rini
On Thu, Oct 24, 2019 at 03:00:49PM +0530, Keerthy wrote: > j721e SoCs have different OPP tables. Add support for the same. > > Note: DM Still has lot of voltages TBD hence the correct > values need to be programmed once they are published. > > Signed-off-by: Keerthy Applied to u-boot/master,

Re: [U-Boot] [PATCH v3 01/18] misc: k3_avs: add driver for K3 Adaptive Voltage Scaling Class 0

2019-11-08 Thread Tom Rini
On Thu, Oct 24, 2019 at 03:00:46PM +0530, Keerthy wrote: > From: Tero Kristo > > Adaptive Voltage Scaling is a technology used in TI SoCs to optimize > the operating voltage based on characterization data written to efuse > during production. Add a driver to support this feature for K3 line of

Re: [U-Boot] [PATCH v3 03/18] power: regulator: tps6236x: add support for tps6236x regulators

2019-11-08 Thread Tom Rini
On Thu, Oct 24, 2019 at 03:00:48PM +0530, Keerthy wrote: > From: Tero Kristo > > TPS6236x is a family of step down DC-DC converters optimized for battery > powered portable applications for a small solution size. Add a regulator > driver for supporting these devices. > > Signed-off-by: Tero

Re: [U-Boot] [PATCH v3 18/18] configs: j721e_evm_r5_defconfig: Enable AVS Class 0 & dependent configs

2019-11-08 Thread Tom Rini
On Thu, Oct 24, 2019 at 03:01:03PM +0530, Keerthy wrote: > Enable AVS Class 0 & dependent config options. > > Signed-off-by: Keerthy Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list

Re: [U-Boot] [PATCH v2 0/4] usb: host: dwc2: use driver model for PHY and CLOCK

2019-11-08 Thread Marek Vasut
On 11/8/19 3:47 PM, Patrick Delaunay wrote: > > In this serie I update the DWC2 host driver to use the device tree > information and the associated PHY and CLOCK drivers when they are > available. I'm kinda on the fence whether to add it into current release or not. The patches look generally OK

Re: [U-Boot] [PATCH v3 13/18] arm: dts: k3-j721e-r5-common-proc-board: Add VTM node

2019-11-08 Thread Tom Rini
On Thu, Oct 24, 2019 at 03:00:58PM +0530, Keerthy wrote: > Add VTM node for voltage and thermal management. For u-boot, this is needed > for supporting AVS class 0, as the efuse values for the OPPs are stored > under the VTM. > > Signed-off-by: Keerthy Applied to u-boot/master, thanks! --

Re: [U-Boot] [PATCH v3 02/18] clk: clk-ti-sci: Notify AVS driver upon setting clock rate

2019-11-08 Thread Tom Rini
On Thu, Oct 24, 2019 at 03:00:47PM +0530, Keerthy wrote: > Notify AVS driver upon setting clock rate so that voltage > is changed accordingly. > > Signed-off-by: Keerthy Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

  1   2   >