Re: TI boards vs. distro boot

2020-05-21 Thread Jan Kiszka
On 21.05.20 19:05, Lokesh Vutla wrote: > +Tom > > Hi Jan, > > On 19/05/20 1:05 pm, Jan Kiszka wrote: >> Hi Lokesh, >> >> seems like all boards including include/environment/ti/mmc.h will only search >> for ${boot_scripts} in the root of the target fs, not in ${boot_prefixes}. >> Known > > It se

Pull request for UEFI sub-system for efi-2020-07-rc3 (2)

2020-05-21 Thread Heinrich Schuchardt
The following changes since commit b0b13f4114d30b6756e0f6f3b5819d78de22541e: Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq (2020-05-20 08:46:56 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2020-07-rc3-2 for

Re: [PATCH 2/6] kconfig: Add support for conditional values

2020-05-21 Thread Heinrich Schuchardt
On 5/22/20 4:17 AM, Masahiro Yamada wrote: > On Fri, May 22, 2020 at 11:02 AM Simon Glass wrote: >> >> At present if an optional Kconfig value needs to be used it must be >> bracketed by #ifdef. For example, with this Kconfig setup: >> >> config WIBBLE >> bool "Support wibbles, the world n

Re: [PATCH 1/1] test: stabilize test_efi_secboot

2020-05-21 Thread Heinrich Schuchardt
On 5/21/20 11:55 AM, AKASHI Takahiro wrote: > Heinrich, > > On Thu, May 21, 2020 at 10:17:43AM +0200, Heinrich Schuchardt wrote: >> On 5/21/20 2:23 AM, AKASHI Takahiro wrote: >>> Heinrich, >>> >>> On Mon, May 11, 2020 at 03:56:56PM +0900, AKASHI Takahiro wrote: Heinrich, On Fri, May

Re: [RFC PATCH v3 3/3] rpi4: add a mapping for the PCIe XHCI controller MMIO registers (ARM 32bit)

2020-05-21 Thread Marek Szyprowski
Hi Simon, On 19.05.2020 18:47, Simon Glass wrote: > On Tue, 19 May 2020 at 06:00, Marek Szyprowski > wrote: >> On 19.05.2020 00:38, Simon Glass wrote: >>> On Mon, 18 May 2020 at 07:18, Marek Szyprowski >>> wrote: Create a non-cacheable mapping for the 0x6 physical memory region, >

Re: Issue with 'ubi part' ubi_io_read: error -74 (ECC error)

2020-05-21 Thread Heiko Schocher
Hello Jupiter, Am 19.05.2020 um 14:06 schrieb Jupiter: Thanks Richard for the response. On 5/19/20, Richard Weinberger wrote: Neither UBI nor UBIFS care about ECC. The MTD stack does. If you write something in Linux you cannot read back in u-boot a common problem is that u-boot and Linux use

Re: [PATCH v3 6/6] rockchip: Enable PCIe/M.2 on rock960 board

2020-05-21 Thread Kever Yang
Hi Jagan, On 2020/5/10 上午12:56, Jagan Teki wrote: Due to board limitation some SSD's would work on rock960 PCIe M.2 only with 1.8V IO domain. So, this patch enables grf io_sel explicitly to make PCIe/M.2 to work. Cc: Tom Cubie Signed-off-by: Jagan Teki Acked-by: Manivannan Sadhasivam --- Ch

[PATCH v2 13/13] cbfs: Don't require the CBFS size with cbfs_init_mem()

2020-05-21 Thread Simon Glass
The size is not actually used since it is present in the header. Drop this parameter. Also tidy up error handling while we are here. Signed-off-by: Simon Glass --- Changes in v2: - Rebase to master (with x86/master cherry-picked in too) arch/x86/lib/fsp2/fsp_init.c | 3 +-- fs/cbfs/cbfs.c

[PATCH v2 12/13] cbfs: Allow reading a file from a CBFS given its base addr

2020-05-21 Thread Simon Glass
Currently we support reading a file from CBFS given the address of the end of the ROM. Sometimes we only know the start of the CBFS. Add a function to find a file given that. Signed-off-by: Simon Glass --- Changes in v2: - Use void * instead of u8 * in file_cbfs_find_uncached_base() - Fix and ex

[PATCH v2 07/13] cbfs: Unify the two header loaders

2020-05-21 Thread Simon Glass
These two functions have mostly the same code. Pull this out into a common function. Also make this function zero the private data so that callers don't have to do it. Finally, update cbfs_load_header_ptr() to take the base of the ROM as its parameter, which makes more sense than passing the addre

[PATCH v2 08/13] cbfs: Use void * for the position pointers

2020-05-21 Thread Simon Glass
It doesn't make sense to use u8 * as the pointer type for accessing the CBFS since we do not access it as bytes, but via structures. Change it to void *, which allows us to avoid a cast. Signed-off-by: Simon Glass --- Changes in v2: None fs/cbfs/cbfs.c | 17 - 1 file changed, 8

[PATCH v2 11/13] cbfs: Change file_cbfs_find_uncached() to return an error

2020-05-21 Thread Simon Glass
This function currently returns a node pointer so there is no way to know the error code. Also it uses data in BSS which seems unnecessary since the caller might prefer to use a local variable. Update the function and split its body out into a separate function so we can use it later. Signed-off-

[PATCH v2 10/13] cbfs: Return the error code from file_cbfs_init()

2020-05-21 Thread Simon Glass
We may as well return the error code and use it directly in the command code. CBFS still uses its own error enum which we may be able to remove, but leave it for now. Signed-off-by: Simon Glass --- Changes in v2: None cmd/cbfs.c | 3 +-- fs/cbfs/cbfs.c | 23 +++ includ

[PATCH v2 06/13] cbfs: Adjust cbfs_load_header_ptr() to use cbfs_priv

2020-05-21 Thread Simon Glass
This function is strange at the moment in that it takes a header pointer but then accesses the cbfs_s global. Currently clients have their own priv pointer, so update the function to take that as a parameter instead. Signed-off-by: Simon Glass --- Changes in v2: None fs/cbfs/cbfs.c | 9 ++-

[PATCH v2 09/13] cbfs: Record the start address in cbfs_priv

2020-05-21 Thread Simon Glass
The start address of the CBFS is used when scanning for files. It makes sense to put this in our cbfs_priv struct and calculate it when we read the header. Update the code accordingly. Signed-off-by: Simon Glass --- Changes in v2: None fs/cbfs/cbfs.c | 44 +++--

[PATCH v2 05/13] cbfs: Adjust file_cbfs_load_header() to use cbfs_priv

2020-05-21 Thread Simon Glass
This function is strange at the moment in that it takes a header pointer but then accesses the cbfs_s global. Currently clients have their own priv pointer, so update the function to take that as a parameter instead. Signed-off-by: Simon Glass --- Changes in v2: None fs/cbfs/cbfs.c | 9 +--

[PATCH v2 03/13] cbfs: Use bool type for whether initialised

2020-05-21 Thread Simon Glass
At present this uses an int type. U-Boot now supports bool so use this instead. Also use English spelling for initialised which we are here. Signed-off-by: Simon Glass --- Changes in v2: None fs/cbfs/cbfs.c | 28 ++-- include/cbfs.h | 2 +- 2 files changed, 15 insertio

[PATCH v2 01/13] cbfs: Rename the result variable

2020-05-21 Thread Simon Glass
At present the result variable in the cbfs_priv is called 'result' as is the local variable in a few functions. Change the latter to 'ret' which is more common in U-Boot and avoids confusion. Signed-off-by: Simon Glass --- Changes in v2: None fs/cbfs/cbfs.c | 20 ++-- 1 file ch

[PATCH v2 04/13] cbfs: Adjust return value of file_cbfs_next_file()

2020-05-21 Thread Simon Glass
At present his uses a true return to indicate it found a file. Adjust it to use 0 for this, so it is consistent with other functions. Update its callers accordingling and add a check for malloc() failure in file_cbfs_fill_cache(). Signed-off-by: Simon Glass --- Changes in v2: None fs/cbfs/cbf

[PATCH v2 02/13] cbfs: Use ulong consistently

2020-05-21 Thread Simon Glass
U-Boot uses ulong for addresses but there are a few places in this driver that don't use it. Convert this driver over to follow this convention fully. Signed-off-by: Simon Glass --- Changes in v2: None fs/cbfs/cbfs.c | 9 - include/cbfs.h | 4 ++-- 2 files changed, 6 insertions(+), 7 d

[PATCH v2 00/13] x86: cbfs: Various clean-ups to CBFS implementation

2020-05-21 Thread Simon Glass
This code is very old and has not had much of a clean-up since it was written. This series aims to tidy it up to use error codes, avoid using BSS when not necessary and to add a few more features. Changes in v2: - Fix incorrect function comments - Fix s/u8/void/ in find_uncached() - Fix setting of

Re: [PATCH 12/13] cbfs: Allow reading a file from a CBFS given its base addr

2020-05-21 Thread Simon Glass
Hi Bin, On Wed, 20 May 2020 at 20:59, Bin Meng wrote: > > Hi Simon, > > On Wed, May 13, 2020 at 10:24 PM Simon Glass wrote: > > > > Currently we support reading a file from CBFS given the address of the end > > of the ROM. Sometimes we only know the start of the CBFS. Add a function > > to find

Re: Cortina Package 2 driver split up

2020-05-21 Thread Simon Glass
+U-Boot Mailing List On Thu, 21 May 2020 at 18:15, Alex Nemirovsky wrote: > > Hi All, > > Thank you for reviewing various drivers in this package. Many of the drivers > have been reviewed and should be ready for incorporation. > However, there seems to be some lone holdouts which are preventing

Re: [PATCH v5 1/2] usb: provide a device tree node to USB devices

2020-05-21 Thread Simon Glass
Hi Michael, On Thu, 21 May 2020 at 17:28, Michael Walle wrote: > > Am 2020-05-21 16:13, schrieb Bin Meng: > > On Thu, May 21, 2020 at 12:40 AM Michael Walle > > wrote: > >> > >> It is possible to specify a device tree node for an USB device. This > >> is > >> useful if you have a static USB setu

[GIT PULL] UniPhier SoC updates for v2020.07

2020-05-21 Thread Masahiro Yamada
Hi Tom, Please pull changes for v2020.07 Thanks. The following changes since commit 2fa581ba910368d0f7f995fb906d6c5e4218b594: Merge git://git.denx.de/u-boot-sh (2020-05-21 08:26:40 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-uniphier.git

[PATCH v3 5/5] patman: Avoid importing gitutil in settings

2020-05-21 Thread Simon Glass
Pass this module in so that settings does not need to import it. Signed-off-by: Simon Glass Reported-by: Stefan Bosch --- Changes in v3: - Add more patches based on testing on a dusty Ubuntu 14.04 Changes in v2: - Update gitutil as well tools/patman/main.py | 2 +- tools/patman/settings.

[PATCH v3 2/5] patman: Avoid circular dependency between command and tools

2020-05-21 Thread Simon Glass
This seems to cause problems in some cases. Split the dependency by copying the code to command. Reported-by: Stefan Bosch Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None tools/patman/command.py | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/

[PATCH v3 4/5] patman: Pass in maintainer dirs to avoid and import

2020-05-21 Thread Simon Glass
Adjust the get_maintainer module to accept a list of directories to search for the script. This avoids needing to import gitutil. Signed-off-by: Simon Glass Reported-by: Stefan Bosch --- Changes in v3: None Changes in v2: None tools/patman/get_maintainer.py | 14 +++--- tools/patman/s

[PATCH v3 3/5] patman: Use a dict in gitutil to avoid importing series

2020-05-21 Thread Simon Glass
Only a few members of this class are used and only in a test. To avoid importing the module, convert the test to use a dict. Signed-off-by: Simon Glass Reported-by: Stefan Bosch --- Changes in v3: None Changes in v2: None tools/patman/gitutil.py | 9 - 1 file changed, 4 insertions(+),

[PATCH v3 1/5] patman: Drop unnecessary import in gitutil

2020-05-21 Thread Simon Glass
The checkpatch module is not used, so drop it. Signed-off-by: Simon Glass Reported-by: Stefan Bosch --- Changes in v3: - Split out the gitutil change into a separate patch Changes in v2: None tools/patman/gitutil.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/patman/gitutil.py b

[PATCH 22/22] x86: mtrr: Enhance 'mtrr' command to list MTRRs on any CPU

2020-05-21 Thread Simon Glass
Update this command so it can list the MTRRs on a selected CPU. If '-c all' is used, then all CPUs are listed. Signed-off-by: Simon Glass --- cmd/x86/mtrr.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/cmd/x86/mtrr.c b/cmd/x86/mtrr.c index 8365a7978

[PATCH 19/22] x86: mtrr: Update the command to use the new mtrr calls

2020-05-21 Thread Simon Glass
Use the multi-CPU calls to set the MTRR values. This still supports only the boot CPU for now. Signed-off-by: Simon Glass --- cmd/x86/mtrr.c | 34 -- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/cmd/x86/mtrr.c b/cmd/x86/mtrr.c index 01197044452.

[PATCH 20/22] x86: mtrr: Restructure so command execution is in one place

2020-05-21 Thread Simon Glass
At present do_mtrr() does the 'list' subcommand at the top and the rest below. Update it to do them all in the same place so we can (in a later patch) add parsing of the CPU number for all subcommands. Signed-off-by: Simon Glass --- cmd/x86/mtrr.c | 55 +-

[PATCH 21/22] x86: mtrr: Update 'mtrr' to allow setting MTRRs on any CPU

2020-05-21 Thread Simon Glass
Add a -c option to mtrr to allow any CPU to be updated with this command. Signed-off-by: Simon Glass --- cmd/x86/mtrr.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/cmd/x86/mtrr.c b/cmd/x86/mtrr.c index fea7a437db8..8365a7978ff 100644 --- a/cmd/x86/mtr

[PATCH 16/22] x86: mtrr: Use MP calls to list the MTRRs

2020-05-21 Thread Simon Glass
Update the mtrr command to use mp_run_on_cpus() to obtain its information. Since the selected CPU is the boot CPU this does not change the result, but it sets the stage for supporting other CPUs. Signed-off-by: Simon Glass --- arch/x86/cpu/mtrr.c | 11 +++ arch/x86/include/asm/m

[PATCH 15/22] x86: mp: Add iterators for CPUs

2020-05-21 Thread Simon Glass
It is convenient to iterate through the CPUs performing work on each one and processing the result. Add a few iterator functions which handle this. These can be used by any client code. It can call mp_run_on_cpus() on each CPU that is returned, handling them one at a time. Signed-off-by: Simon Gla

[PATCH 18/22] x86: mtrr: Add support for writing to MTRRs on any CPU

2020-05-21 Thread Simon Glass
To enable support for the 'mtrr' command, add a way to perform MTRR operations on selected CPUs. This works by setting up a little 'operation' structure and sending it around the CPUs for action. Signed-off-by: Simon Glass --- arch/x86/cpu/mtrr.c | 81 ++

[PATCH 14/22] x86: mp: Park CPUs before running the OS

2020-05-21 Thread Simon Glass
With the new MP features the CPUs are no-longer parked when the OS is run. Fix this by calling a special function to park them, just before the OS is started. Signed-off-by: Simon Glass --- arch/x86/cpu/cpu.c| 5 + arch/x86/cpu/mp_init.c| 18 ++ arch/x86/include

[PATCH 13/22] x86: mp: Allow running functions on multiple CPUs

2020-05-21 Thread Simon Glass
Add a way to run a function on a selection of CPUs. This supports either a single CPU, all CPUs, just the main CPU or just the 'APs', in Intel terminology. It works by writing into a mailbox and then waiting for the CPUs to notice it, take action and indicate they are done. When SMP is not yet en

[PATCH 17/22] x86: mtrr: Update MTRRs on all CPUs

2020-05-21 Thread Simon Glass
When the boot CPU MTRRs are updated, perform the same update on all other CPUs so they are kept in sync. This avoids kernel warnings about mismatched MTRRs. Signed-off-by: Simon Glass --- arch/x86/cpu/mtrr.c | 57 + 1 file changed, 57 insertions(+)

[PATCH 10/22] x86: mp: Support APs waiting for instructions

2020-05-21 Thread Simon Glass
At present the APs (non-boot CPUs) are inited once and then parked ready for the OS to use them. However in some cases we want to send new requests through, such as to change MTRRs and keep them consistent across CPUs. Change the last state of the flight plan to go into a wait loop, accepting inst

[PATCH 11/22] global_data: Add a generic global_data flag for SMP state

2020-05-21 Thread Simon Glass
Allow keeping track of whether all CPUs have been enabled yet. This allows us to know whether other CPUs need to be considered when updating CPU-specific settings such as MTRRs on x86. Signed-off-by: Simon Glass --- include/asm-generic/global_data.h | 1 + 1 file changed, 1 insertion(+) diff -

[PATCH 09/22] x86: cpu: Remove unnecessary #ifdefs

2020-05-21 Thread Simon Glass
Drop some #ifdefs that are not needed or can be converted to compile-time checks. Signed-off-by: Simon Glass --- arch/x86/cpu/cpu.c | 58 - arch/x86/cpu/i386/cpu.c | 2 -- 2 files changed, 28 insertions(+), 32 deletions(-) diff --git a/arch/x86/cpu

[PATCH 12/22] x86: Set the SMP flag when MP init is complete

2020-05-21 Thread Simon Glass
Set this flag so we can track when it is safe to use CPUs other than the main one. Signed-off-by: Simon Glass --- arch/x86/cpu/mp_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c index c424f283807..139e9749e74 100644 --- a/arch/x86/cpu/m

[PATCH 05/22] x86: mp_init: Drop the num_cpus static variable

2020-05-21 Thread Simon Glass
This does not need to be global across all functions in this file. Pass a parameter instead. Signed-off-by: Simon Glass --- arch/x86/cpu/mp_init.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c index 4b

[PATCH 06/22] x86: mtrr: Fix 'ensable' typo

2020-05-21 Thread Simon Glass
Fix a typo in the command help. Signed-off-by: Simon Glass --- cmd/x86/mtrr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/x86/mtrr.c b/cmd/x86/mtrr.c index 084d7315f43..5d25c5802af 100644 --- a/cmd/x86/mtrr.c +++ b/cmd/x86/mtrr.c @@ -135,5 +135,5 @@ U_BOOT_CMD(

[PATCH 07/22] x86: mp_init: Set up the CPU numbers at the start

2020-05-21 Thread Simon Glass
At present each CPU is given a number when it starts itself up. While this saves a tiny amount of time by doing the device-tree read in parallel, it is confusing that the numbering happens on the fly. Move this code into mp_init() and do it at the start. Signed-off-by: Simon Glass --- arch/x86

[PATCH 08/22] x86: mp_init: Adjust bsp_init() to return more information

2020-05-21 Thread Simon Glass
This function is misnamed since it does not actually init the BSP. Also it is convenient to adjust it to return a little more information. Rename and update the function, to allow it to return the BSP CPU device and number, as well as the total number of CPUs. Signed-off-by: Simon Glass --- ar

[PATCH 04/22] x86: mp_init: Switch parameter names in start_aps()

2020-05-21 Thread Simon Glass
These parameters are named differently from elsewhere in this file. Switch them to avoid confusion. Signed-off-by: Simon Glass --- arch/x86/cpu/mp_init.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c index e77d7f

[PATCH 03/22] x86: mp_init: Avoid declarations in header files

2020-05-21 Thread Simon Glass
The functions used by the flight plan are declared in the header file but are not used in any other file. Move the flight plan steps down to just above where it is used so that we can make these function static. Signed-off-by: Simon Glass --- arch/x86/cpu/mp_init.c| 40 +++-

[PATCH 00/22] x86: Enhance MTRR functionality to support multiple CPUs

2020-05-21 Thread Simon Glass
At present MTRRs are mirrored to the secondary CPUs only once, as those CPUs are started up. But U-Boot may add more MTRRs later, e.g. if it decides that a video console must be set up. This series enhances the x86 multi-processor support to allow MTRRs to be updated at any time. It also updates t

[PATCH 01/22] x86: mp_init: Switch to livetree

2020-05-21 Thread Simon Glass
Update this code to use livetree calls instead of flat-tree. Signed-off-by: Simon Glass --- arch/x86/cpu/mp_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c index 7fde4ff7e16..c25d17c6474 100644 --- a/arch/x86/cpu/mp_in

[PATCH 02/22] x86: Move MP code into mp_init

2020-05-21 Thread Simon Glass
At present the 'flight plan' for CPUs is passed into mp_init. But it is always the same. Move it into the mp_init file so everything is in one place. Also drop the SMI function since it does nothing. If we implement SMIs, more refactoring will be needed anyway. Signed-off-by: Simon Glass --- ar

Re: [PATCH 2/6] kconfig: Add support for conditional values

2020-05-21 Thread Masahiro Yamada
On Fri, May 22, 2020 at 11:02 AM Simon Glass wrote: > > At present if an optional Kconfig value needs to be used it must be > bracketed by #ifdef. For example, with this Kconfig setup: > > config WIBBLE > bool "Support wibbles, the world needs more wibbles" > > config WIBBLE_ADDR >

[PATCH 6/6] x86: fsp: Support a warning message when DRAM init is slow

2020-05-21 Thread Simon Glass
With DDR4, Intel SOCs take quite a long time to init their memory. During this time, if the user is watching, it looks like SPL has hung. Add a message in this case. This works by adding a return code to fspm_update_config() that indicates whether MRC data was found and a new property to the devic

[PATCH] mmc: davinci_mmc: Cleanup to use dt in U-boot and static platdata in SPL

2020-05-21 Thread Faiz Abbas
Cleanup this driver to use dt in U-boot and static platdata in SPL. This requires the following steps: 1. Move all platdata assignment from probe() to ofdata_to_platdata(). This function is only called in U-boot. 2. Replicate all the platdata assignment being done in ofdata_to_platdata() in

[PATCH 5/6] x86: Avoid #ifdef with CONFIG_HAVE_ACPI_RESUME

2020-05-21 Thread Simon Glass
At present this enables a few arch-specific members of the global_data struct which are otherwise not part of the struct. As a result we have to use #ifdef in various places. The cost of always having these in the struct is small. Adjust things so that we can use compile-time code instead of #ifde

[PATCH 2/6] kconfig: Add support for conditional values

2020-05-21 Thread Simon Glass
At present if an optional Kconfig value needs to be used it must be bracketed by #ifdef. For example, with this Kconfig setup: config WIBBLE bool "Support wibbles, the world needs more wibbles" config WIBBLE_ADDR hex "Address of the wibble" depends on WIBBLE then the foll

[PATCH 4/6] coral: Enable the copy framebuffer

2020-05-21 Thread Simon Glass
Enable this feature on chromebook_coral to speed up the display. With this change, the time taken to print the environment to the display without CONFIG_CONSOLE_SCROLL_LINES is reduced from 1830ms to 62ms. Signed-off-by: Simon Glass --- configs/chromebook_coral_defconfig | 1 + 1 file changed,

[PATCH 3/6] timer: Allow delays with a 32-bit microsecond timer

2020-05-21 Thread Simon Glass
The current get_timer_us() uses 64-bit arithmetic. When implementing microsecond-level timeouts, 32-bits is plenty. Add a new function to support this. Signed-off-by: Simon Glass --- include/time.h | 11 +++ lib/time.c | 5 + 2 files changed, 16 insertions(+) diff --git a/incl

[PATCH 1/6] bootstage: Fix 'stacked' typo

2020-05-21 Thread Simon Glass
This should be 'stashed'. Fix it. Signed-off-by: Simon Glass --- include/bootstage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bootstage.h b/include/bootstage.h index f507271375..00c85fb86a 100644 --- a/include/bootstage.h +++ b/include/bootstage.h @@ -338,7 +3

[PATCH v8 2/2] board: presidio-asic: Add SPI NOR support

2020-05-21 Thread Alex Nemirovsky
Add SPI NOR support for Cortina Access Presidio Engineering Board Signed-off-by: Alex Nemirovsky CC: Jagan Teki CC: Vignesh R CC: Tom Rini --- Changes in v8: None Changes in v7: None Changes in v5: - NAND support removed from presidio-asic board DT. Changes in v3: None arch/arm/dts/ca-pre

[PATCH v8 1/2] spi: ca_sflash: Add CAxxxx SPI Flash Controller

2020-05-21 Thread Alex Nemirovsky
From: Pengpeng Chen Add SPI Flash controller driver for Cortina Access CA SoCs Signed-off-by: Pengpeng Chen Signed-off-by: Alex Nemirovsky CC: Jagan Teki CC: Vignesh R CC: Tom Rini --- Changes in v8: - No code change - Split out individual driver from Cortina Package 2 patch series to

[PATCH v8 1/2] led: led_cortina: Add CAxxx LED support

2020-05-21 Thread Alex Nemirovsky
From: Jway Lin Add Cortina Access LED controller support for CA SOCs Signed-off-by: Jway Lin Signed-off-by: Alex Nemirovsky CC: Simon Glass --- Changes in v8: - No code change - Split out individual driver from Cortina Package 2 patch series to help streamline acceptence into master Ch

[PATCH v8 2/2] board: presidio: add LED support

2020-05-21 Thread Alex Nemirovsky
From: Jway Lin Add LED support for Cortina Access Presidio Engineering Board Signed-off-by: Jway Lin Signed-off-by: Alex Nemirovsky Reviewed-by: Simon Glass CC: Simon Glass --- Changes in v8: None Changes in v7: None Changes in v4: - rename DT blink rate symbol arch/arm/dts/ca-presidio-

[PATCH v8 1/2] i2c: i2c-cortina: added CAxxxx I2C support

2020-05-21 Thread Alex Nemirovsky
From: Arthur Li Add I2C controller support for Cortina Access CA SoCs Signed-off-by: Arthur Li Signed-off-by: Alex Nemirovsky CC: Heiko Schocher Reviewed-by: Heiko Schocher CA_I2C: DT binding for I2C controller DT binding document for Cortina I2C driver --- Changes in v8: - No code c

[PATCH v8 2/2] board: presidio-asic: Add I2C support

2020-05-21 Thread Alex Nemirovsky
Add I2C board support for Cortina Access Presidio Engineering Board Signed-off-by: Alex Nemirovsky CC: Heiko Schocher Reviewed-by: Heiko Schocher --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v4: None configs/cortina_presidio-asic-emmc_defconfig | 3 +++ 1 file c

Re: [PATCH v4] net: tftp: Add client support for RFC 7440

2020-05-21 Thread rahasij
Ramon Fried-4 wrote > + if (strcmp((char *)pkt + i, "windowsize") == 0) { > + tftp_windowsize = > + simple_strtoul((char *)pkt + i + 11, > +NULL, 10); > +

[PATCH v8 1/2] mmc: ca_dw_mmc: Misc cleanup of driver

2020-05-21 Thread Alex Nemirovsky
From: Arthur Li - Rename DT compatible name - Remove uneccessary if-statement to support 8-bit buswidth - Remove redundant error msg - Use symbolic constants in switch statement Signed-off-by: Arthur Li Signed-off-by: Alex Nemirovsky CC: Peng Fan CC: Jaehoon Chung CC: Tom Rini --- Changes

[PATCH v8 2/2] board: presidio-asic: update eMMC DT information

2020-05-21 Thread Alex Nemirovsky
Change DT compatibility name to match change in driver's name. Remove unused io_ds and fifo_mode fields from DT. Signed-off-by: Alex Nemirovsky CC: Peng Fan CC: Jaehoon Chung CC: Tom Rini --- Changes in v8: None Changes in v7: - Cleanup typos in commit subject line and description Changes i

Re: [PATCH v5 1/2] usb: provide a device tree node to USB devices

2020-05-21 Thread Michael Walle
Am 2020-05-21 16:13, schrieb Bin Meng: On Thu, May 21, 2020 at 12:40 AM Michael Walle wrote: It is possible to specify a device tree node for an USB device. This is useful if you have a static USB setup and want to use aliases which point to these nodes, like on the Raspberry Pi. The nodes a

[PATCH] ARM: imx: soc: Select default TEXT_BASE for MX7

2020-05-21 Thread Marek Vasut
Select default U-Boot and SPL text base for the MX7 SoC. The U-Boot text base is picked as the one used by various MX7 boards. The SPL text base however is different. The SPL text base is set to 0x912000 instead of the usual 0x911000, that is because the 0x911000 value cannot work. Using 0x911000

[PATCH] ARM: imx: soc: Add reset for non-DM case

2020-05-21 Thread Marek Vasut
This is another in series of patches which remove ad-hoc reset_cpu() hacks from board files. This one is for iMX7, so implement default reset_cpu() there to prevent it from showing up in board files. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team Cc: Peng Fan Cc: Stefano

[PATCH] ARM: imx: soc: Switch BOARD_EARLY_INIT_F to imply on MX7

2020-05-21 Thread Marek Vasut
There are systems where board_early_init_f() is plain empty. Switch the config option from "select" to "imply", to permit user to unset the BOARD_EARLY_INIT_F if it were to be empty. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team Cc: Peng Fan Cc: Stefano Babic --- arch

[PATCH] ARM: imx: ddr: Fill in missing DDRC ZQCTLx on i.MX7

2020-05-21 Thread Marek Vasut
The iMX7 defines further DDRC ZQCTLx registers, however those were thus far missing from the list of registers and not programmed. On systems with LPDDR2 or DDR3, those registers must be programmed with correct values, otherwise the DRAM may not work. However, existing systems which worked without

[PATCH 2/2] usb: ehci-mx6: Print error code on failure

2020-05-21 Thread Marek Vasut
Print the error code if the regulator enable fails, otherwise the error message is rather useless and confusing. Signed-off-by: Marek Vasut --- drivers/usb/host/ehci-mx6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-

[PATCH 1/2] usb: ehci-mx6: Handle fixed regulators correctly

2020-05-21 Thread Marek Vasut
The regulator-fixed would return -ENOSYS when enabled/disabled, because this operation is not supported, but this is not an error e.g. on systems where the VBUS cannot be controlled, so if this is the error code reported by the regulator core, consider it a success and continue. Signed-off-by: Mar

Re: PINE64 Rock64 - How to get SPI driver working

2020-05-21 Thread Johannes Krottmayer
Hi Kever, I think you answered the wrong person. :) Okay, thanks for the suggestions. I will check the sources. There was also a missing alias in the Device-Tree source. I have added the specific alias for the SPI bus. Now I'm getting the error code -2. I'm new with U-Boot and the source code i

[PATCH] env: Convert ENV_ACCESS_IGNORE_FORCE to Kconfig

2020-05-21 Thread Marek Vasut
Convert ENV_ACCESS_IGNORE_FORCE to Kconfig, no functional change. Signed-off-by: Marek Vasut Cc: Tom Rini --- README | 4 env/Kconfig | 7 +++ scripts/config_whitelist.txt | 1 - 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/READM

Re: [PULL] u-boot-sh/master

2020-05-21 Thread Tom Rini
On Thu, May 21, 2020 at 02:12:10PM +0200, Marek Vasut wrote: > I had to update the PR... > > The following changes since commit c2279d784e35fa25ee3a9fa28a74a1ba545f8c1e: > > Merge branch '2020-05-18-reduce-size-of-common.h' (2020-05-19 10:51:43 > -0400) > > are available in the Git repository

[PATCH] checkpatch.pl: Add check for defining CONFIG_CMD_xxx via config files

2020-05-21 Thread Tom Rini
All of our cmds have a Kconfig entry. Making enabling a CMD via the config file an error to checkpatch.pl. Signed-off-by: Tom Rini --- scripts/checkpatch.pl | 6 ++ 1 file changed, 6 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index c2641bc995e8..5c0317c67fdb 1

[PATCH] Convert CONFIG_CMD_MMC to Kconfig

2020-05-21 Thread Tom Rini
This converts the following to Kconfig: CONFIG_CMD_MMC Signed-off-by: Tom Rini --- configs/bcm7260_defconfig | 1 + configs/bcm7445_defconfig | 1 + configs/gurnard_defconfig | 1 + configs/imx8mq_evk_defconfig| 1 + configs/imx8mq_phanbell_defconfig |

Re: [PATCH 1/2] serial: Add riscv_sbi console support

2020-05-21 Thread Sean Anderson
Hi, There are a couple instances where your code is not formatted in the correct style [1]. You can use tools/checkpatch.pl to help you fix these. [1] https://www.denx.de/wiki/U-Boot/CodingStyle On 5/20/20 1:33 AM, Kongou Hikari wrote: > - This patch supports debug serial and console from SBI

Re: [PATCH v1 1/3] board: ns3: add optee based bnxt fw load driver

2020-05-21 Thread Simon Glass
Hi, On Tue, 19 May 2020 at 20:15, Thomas Fitzsimmons wrote: > > Hi Rayagonda and Vikas, > > Rayagonda Kokatanur writes: > > > From: Vikas Gupta > > > > Add optee based bnxt fw load driver. > > What is "bnxt"? Maybe you could add a comment explaining what it is, or > at least expanding it if it

Re: [U-Boot] [ANN] Monthly developer call

2020-05-21 Thread Tom Rini
On Thu, May 21, 2020 at 08:24:55PM +0200, Marek Vasut wrote: > On 5/21/20 8:15 PM, Simon Glass wrote: > > Hi Marek, > > > > On Thu, 21 May 2020 at 12:14, Marek Vasut wrote: > > > >> On 5/21/20 8:09 PM, Simon Glass wrote: > >>> Hi Marek, > >> > >> Hi, > >> > >>> On Thu, 21 May 2020 at 12:06, Mare

Re: [U-Boot] [ANN] Monthly developer call

2020-05-21 Thread Marek Vasut
On 5/21/20 8:15 PM, Simon Glass wrote: > Hi Marek, > > On Thu, 21 May 2020 at 12:14, Marek Vasut wrote: > >> On 5/21/20 8:09 PM, Simon Glass wrote: >>> Hi Marek, >> >> Hi, >> >>> On Thu, 21 May 2020 at 12:06, Marek Vasut wrote: >>> On 5/21/20 7:52 PM, Simon Glass wrote: > Hi Marek, >>>

Re: [U-Boot] [ANN] Monthly developer call

2020-05-21 Thread Simon Glass
Hi Marek, On Thu, 21 May 2020 at 12:14, Marek Vasut wrote: > On 5/21/20 8:09 PM, Simon Glass wrote: > > Hi Marek, > > Hi, > > > On Thu, 21 May 2020 at 12:06, Marek Vasut wrote: > > > >> On 5/21/20 7:52 PM, Simon Glass wrote: > >>> Hi Marek, > >> > >> Hi, > >> > >>> You don't have to be signed i

Re: [U-Boot] [ANN] Monthly developer call

2020-05-21 Thread Marek Vasut
On 5/21/20 8:09 PM, Simon Glass wrote: > Hi Marek, Hi, > On Thu, 21 May 2020 at 12:06, Marek Vasut wrote: > >> On 5/21/20 7:52 PM, Simon Glass wrote: >>> Hi Marek, >> >> Hi, >> >>> You don't have to be signed in to view, just to edit. Etherpad is pretty >>> crappy IMO. >> >> Seems to work fine.

Re: [U-Boot] [ANN] Monthly developer call

2020-05-21 Thread Simon Glass
Hi Marek, On Thu, 21 May 2020 at 12:06, Marek Vasut wrote: > On 5/21/20 7:52 PM, Simon Glass wrote: > > Hi Marek, > > Hi, > > > You don't have to be signed in to view, just to edit. Etherpad is pretty > > crappy IMO. > > Seems to work fine. But maybe there is some other alternative? > > (we can

Re: [U-Boot] [ANN] Monthly developer call

2020-05-21 Thread Marek Vasut
On 5/21/20 7:52 PM, Simon Glass wrote: > Hi Marek, Hi, > You don't have to be signed in to view, just to edit. Etherpad is pretty > crappy IMO. Seems to work fine. But maybe there is some other alternative? (we can just log some irc channel?) > I believe the next one will be 3rd week of June.

Re: [U-Boot] [ANN] Monthly developer call

2020-05-21 Thread Tom Rini
On Thu, May 21, 2020 at 11:52:24AM -0600, Simon Glass wrote: > Hi Marek, > > You don't have to be signed in to view, just to edit. Etherpad is pretty > crappy IMO. > > I believe the next one will be 3rd week of June. I don't think we managed to ever have more than the first meeting. So if peopl

Re: [U-Boot] [ANN] Monthly developer call

2020-05-21 Thread Simon Glass
Hi Marek, You don't have to be signed in to view, just to edit. Etherpad is pretty crappy IMO. I believe the next one will be 3rd week of June. Regards, Simon On Thu, 21 May 2020 at 11:44, Marek Vasut wrote: > On 5/21/20 5:41 PM, Simon Glass wrote: > > Hi, > > > > On Mon, 18 Feb 2019 at 04:1

Re: [U-Boot] [ANN] Monthly developer call

2020-05-21 Thread Marek Vasut
On 5/21/20 5:41 PM, Simon Glass wrote: > Hi, > > On Mon, 18 Feb 2019 at 04:10, Marek Vasut wrote: >> >> On 2/18/19 5:00 AM, Tom Rini wrote: >>> On Mon, Feb 18, 2019 at 03:48:58AM +0100, Marek Vasut wrote: On 2/13/19 9:36 PM, Tom Rini wrote: > On Thu, Feb 14, 2019 at 02:01:02AM +0530, Jag

[rockchip] rockpro64: Enable HDMI output

2020-05-21 Thread Marcin Juszkiewicz
Enable config options and console setting like on other rk3399 boards. Signed-off-by: Marcin Juszkiewicz --- configs/rockpro64-rk3399_defconfig | 4 include/configs/rockpro64_rk3399.h | 5 + 2 files changed, 9 insertions(+) diff --git configs/rockpro64-rk3399_defconfig configs/rockp

Re: TI boards vs. distro boot

2020-05-21 Thread Lokesh Vutla
+Tom Hi Jan, On 19/05/20 1:05 pm, Jan Kiszka wrote: > Hi Lokesh, > > seems like all boards including include/environment/ti/mmc.h will only search > for ${boot_scripts} in the root of the target fs, not in ${boot_prefixes}. > Known It searches in boot partitions of SD cards and this was always

[PATCH v13 18/21] riscv: Enable cpu clock if it is present

2020-05-21 Thread Sean Anderson
The cpu clock is probably already enabled if we are executing code (though we could be executing from a different core). This patch prevents the cpu clock or its parents from being disabled. Signed-off-by: Sean Anderson Reviewed-by: Bin Meng --- This patch was previously submitted on its own as

[PATCH v13 21/21] riscv: Add Sipeed Maix support

2020-05-21 Thread Sean Anderson
The Sipeed Maix series is a collection of boards built around the RISC-V Kendryte K210 processor. This processor contains several peripherals to accelerate neural network processing and other "ai" tasks. This includes a "KPU" neural network processor, an audio processor supporting beamforming recep

[PATCH v13 20/21] doc: riscv: Add documentation for Sipeed Maix Bit

2020-05-21 Thread Sean Anderson
This patch adds documentation for the Sipeed Maix bit, and more generally for the Kendryte K210 processor. Signed-off-by: Sean Anderson --- Changes in v9: - Mark dts code block as "none" explicitly Changes in v7: - Split off into its own patch - Fix size of clint doc/board/index.rst|

[PATCH v13 19/21] riscv: Add device tree for K210 and Sipeed Maix BitM

2020-05-21 Thread Sean Anderson
Where possible, I have tried to find compatible drivers based on the layout of registers. However, many devices remain untested. All untested devices have been left disabled, but some tentative properties (such as compatible strings, and clocks, interrupts, and resets properties) have been added.

[PATCH v13 15/21] riscv: Add option to support RISC-V privileged spec 1.9

2020-05-21 Thread Sean Anderson
Some older processors (notably the Kendryte K210) use an older version of the RISC-V privileged specification. The primary changes between the old and new are in virtual memory, and in the merging of three separate counter enable CSRs. Using the new CSR on an old processor causes an illegal instru

  1   2   >