[PATCH v2 14/17] cmd: add "efidebug capsule" command

2020-06-16 Thread AKASHI Takahiro
"efidebug capsule" is more or less a debugging utility. efidebug capsule update: invoke UpdateCapsule against data on memory efidebug capsule show: show a capsule header efidebug capsule result: dump a capsule result variable Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 235

[PATCH v2 12/17] dfu: add dfu_write_by_alt()

2020-06-16 Thread AKASHI Takahiro
This function is a variant of dfu_write_by_name() and takes a DFU alt setting number for dfu configuration. It will be utilised to implement UEFI capsule management protocol for raw image in a later commit. Signed-off-by: AKASHI Takahiro --- drivers/dfu/dfu_alt.c | 47

[PATCH v2 07/17] efi_loader: define UpdateCapsule api

2020-06-16 Thread AKASHI Takahiro
In this commit, skeleton functions for capsule-related API's are added under CONFIG_EFI_UPDATE_CAPSULE configuration. Detailed implementation for a specific capsule type will be added in the succeeding patches. Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 12 +++

[PATCH v2 10/17] efi_loader: capsule: support firmware update

2020-06-16 Thread AKASHI Takahiro
A capsule tagged with the guid, EFI_FIRMWARE_MANAGEMENT_CAPSULE_ID_GUID, is handled as a firmware update object. What efi_update_capsule() basically does is to load any firmware management protocol (or fmp) drivers contained in a capsule, find out an appropriate fmp driver and then invoke its

[PATCH v2 09/17] efi_loader: capsule: add memory range capsule definitions

2020-06-16 Thread AKASHI Takahiro
Memory range capsule gives us a way to notify that some memory regions should be left untouched across the next reset. See UEFI specification, section 8.5.3. Since how we should handle this kind of capsule is totally up to the system, no implementation will be added in this commit.

[PATCH v2 11/17] efi_loader: add firmware management protocol for FIT image

2020-06-16 Thread AKASHI Takahiro
In this commit, a very simple firmware management protocol driver is implemented. It will take a common FIT image firmware in a capsule file and apply the data using dfu backend storage drivers via update_fit() interface. So "dfu_alt_info" variable should be properly set to specify a device and

[PATCH v2 08/17] efi_loader: capsule: add capsule_on_disk support

2020-06-16 Thread AKASHI Takahiro
Capsule data can be loaded into the system either via UpdateCapsule runtime service or files on a file system (of boot device). The latter case is called "capsules on disk", and actual updates will take place at the next boot time. In this commit, we will support capsule on disk mechanism.

[PATCH v2 15/17] tools: add mkeficapsule command for UEFI capsule update

2020-06-16 Thread AKASHI Takahiro
This is a utility mainly for test purpose. mkeficapsule -f: create a test capsule file for FIT image firmware Having said that, you will be able to customize the code to fit your specific requirements for your platform. Signed-off-by: AKASHI Takahiro --- tools/Makefile | 3 +

[PATCH v2 17/17] test/py: add a test for uefi firmware update capsule of raw image

2020-06-16 Thread AKASHI Takahiro
The test can run on sandbox build and it attempts to execute a firmware update via a capsule-on-disk, using a raw image capsule, CONFIG_EFI_CAPSULE_RAW. To run this test successfully, you need configure U-Boot specifically; See test_capsule_firmware.py for requirements, and hence it won't run on

[PATCH v2 13/17] efi_loader: add firmware management protocol for raw image

2020-06-16 Thread AKASHI Takahiro
In this commit, a very simple firmware management protocol driver is implemented. It will take a binary image in a capsule file and apply the data using dfu backend storage drivers via dfu_write_by_alt() interface. So "dfu_alt_info" variable should be properly set to specify a device and location

[PATCH v2 06/17] efi_loader: add option to initialise EFI subsystem early

2020-06-16 Thread AKASHI Takahiro
If this option, CONFIG_EFI_SETUP_EARLY, is enabled, the initialisation of UEFI subsystem will be done as part of U-Boot initialisation. Please note that this option won't be enabled explicitly by users, instead, should be enabled implicitly by other configuration options. Specifically, this

[PATCH v2 03/17] dfu: rename dfu_tftp_write() to dfu_write_by_name()

2020-06-16 Thread AKASHI Takahiro
This function is essentially independent from tffp, and will also be utilised in implementing UEFI capsule update in a later commit. So just give it a more generic name. In addition, a new configuration option, CONFIG_DFU_ALT, was introduced so that the file will be compiled with different

[PATCH v2 04/17] common: update: add a generic interface for FIT image

2020-06-16 Thread AKASHI Takahiro
The main purpose of this patch is to separate a generic interface for updating firmware using DFU drivers from "auto-update" via tftp. This function will also be used in implementing UEFI capsule update in a later commit. Signed-off-by: AKASHI Takahiro --- common/Kconfig | 16 +++

Re: [PATCH v2 0/2] gpio: Add a managed API

2020-06-16 Thread Simon Glass
Hi Pratyush, On Mon, 8 Jun 2020 at 12:05, Pratyush Yadav wrote: > > Hi Simon, > > On 01/06/20 08:45AM, Simon Glass wrote: > > Hi Pratyush, > > > > On Mon, 1 Jun 2020 at 05:22, Pratyush Yadav wrote: > > > > > > On 31/05/20 08:08AM, Simon Glass wrote: > > > > Hi Pratyush, > > > > > > > > On Fri,

Re: [PATCH 1/1] sandbox: make RAM size configurable

2020-06-16 Thread Simon Glass
On Sun, 7 Jun 2020 at 10:47, Heinrich Schuchardt wrote: > > Up to now the RAM size of the sandbox is hard coded as 128 MiB. This does > not allow testing the correct handling of addresses outside the 32bit > range. 128 MiB is also rather small when tracing functions where the trace > is written

Re: [PATCH v2 01/10] pinctrl: Add pinmux property support to pinctrl-generic

2020-06-16 Thread Simon Glass
Hi Sean, On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: > > The pinmux property allows for smaller and more compact device trees, > especially when there are many pins which need to be assigned individually. > Instead of specifying an array of strings to be parsed as pins and a > function

Re: [PATCH v2 02/10] test: pinmux: Add test for pin muxing

2020-06-16 Thread Simon Glass
Hi Sean, On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: > > This extends the pinctrl-sandbox driver to support pin muxing, and adds a > test for that behaviour. The test is done in C and not python (like the > existing tests for the pinctrl uclass) because it needs to call >

[PATCH v2 16/17] test/py: add a test for efi firmware update capsule of FIT image

2020-06-16 Thread AKASHI Takahiro
The test can run on sandbox build and it attempts to execute a firmware update via a capsule-on-disk, using a FIT image capsule, CONFIG_EFI_CAPSULE_FIT. To run this test successfully, you need configure U-Boot specifically; See test_capsule_firmware.py for requirements, and hence it won't run on

Re: [PATCH v2] i2c: eeprom: Use reg property instead of offset and size

2020-06-16 Thread Simon Glass
Hi Michal, On Tue, 16 Jun 2020 at 07:53, Michal Simek wrote: > > > > On 16. 06. 20 15:43, Simon Glass wrote: > > On Mon, 15 Jun 2020 at 07:41, Michal Simek wrote: > >> > >> Remove adhoc dt binding for fixed-partition definition for i2c eeprom. > >> fixed-partition are using reg property instead

Re: [PATCH v3 5/6] sandbox: Enable memio operations in board_init

2020-06-16 Thread Simon Glass
Hi Pratyush, On Thu, 11 Jun 2020 at 13:45, Pratyush Yadav wrote: > > initr_dm_devices() is called somewhere after board_init(). It can be > used by drivers to initialize devices to some default bootup state. > Those devices might use mmio read/write operations to perform the > initialization. >

Re: [PATCH v3 4/6] cmd: Add a mux command

2020-06-16 Thread Simon Glass
On Thu, 11 Jun 2020 at 13:45, Pratyush Yadav wrote: > > This command lets the user list, select, and deselect mux controllers > introduced with the mux framework on the fly. It has 3 subcommands: > list, select, and deselect. > > List: Lists all the mux present on the system. The muxes are listed

Re: [PATCH] test_sleep.py: make sleep time and margin configurable

2020-06-16 Thread Simon Glass
Hi Stephen, On Mon, 8 Jun 2020 at 11:25, Stephen Warren wrote: > > On 6/8/20 11:12 AM, Simon Glass wrote: > > Hi Stephen, > > > > On Mon, 8 Jun 2020 at 10:43, Stephen Warren wrote: > >> > >> On 6/7/20 7:45 AM, Simon Glass wrote: > >>> On Thu, 4 Jun 2020 at 09:24, Heiko Schocher wrote: > >

Re: [PATCH v3 4/5] test/dm: fdtdec: Corect a typo in dm_test_fdtdec_set_carveout()

2020-06-16 Thread Simon Glass
On Tue, 9 Jun 2020 at 23:36, Bin Meng wrote: > > From: Bin Meng > > It should be "writable". > > Signed-off-by: Bin Meng > --- > > (no changes since v1) > > test/dm/fdtdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass

Re: [RFC PATCH 1/4] common/image.c: image_decomp: put IH_COMP_XXX cases inside ifndef USE_HOSTCC

2020-06-16 Thread Simon Glass
Hi Rasmus, On Fri, 12 Jun 2020 at 05:02, Rasmus Villemoes wrote: > > When building host tools, the CONFIG_GZIP etc. symbols are not defined > anyway, so this does not (should not) change anything [1]. However, > since the host tools also don't include linux/kconfig.h, one cannot > use the

Re: Raspberry PI 4 and U-boot

2020-06-16 Thread Simon Glass
Hi Duncan, On Mon, 15 Jun 2020 at 11:31, Duncan Hare wrote: > > Is there U-Boot with Ethernet available in U-Boot for the Raspberry PI 4? > > If not is u-boot without Ethernet available for the Raspberry Pi 4, and and > interface spec available for the and Pi 4 Ethernet driver? > > I have read

Re: [PATCH v2 9/9] test: sandbox: add test for erase command

2020-06-16 Thread Simon Glass
On Tue, 16 Jun 2020 at 01:41, Patrick Delaunay wrote: > > Add test for the erase command tested on ENV in EXT4. > > Signed-off-by: Patrick Delaunay > --- > > (no changes since v1) > > configs/sandbox64_defconfig| 1 + > configs/sandbox_defconfig | 1 + >

Re: [PATCH v2 5/9] sandbox: support the change of env location

2020-06-16 Thread Simon Glass
On Tue, 16 Jun 2020 at 01:40, Patrick Delaunay wrote: > > Add support of environment location with a new sandbox command > 'env_loc'. > > When the user change the environment location with the command > 'env_loc ' the env is reinitialized and saved; > the GD_FLG_ENV_DEFAULT flag is also updated.

Re: [PATCH v3 03/15] configs: ns3: enable clock subsystem

2020-06-16 Thread Simon Glass
On Wed, 10 Jun 2020 at 04:41, Rayagonda Kokatanur wrote: > > Enable clock subsystem for ns3. > > Signed-off-by: Rayagonda Kokatanur > --- > configs/bcm_ns3_defconfig | 2 ++ > 1 file changed, 2 insertions(+) It feels like I have already reviewed some of these patches. Can you check if you

Re: [PATCH v3 3/5] test/dm: fdtdec: Add the missing gd declaration

2020-06-16 Thread Simon Glass
On Tue, 9 Jun 2020 at 23:36, Bin Meng wrote: > > From: Bin Meng > > Add DECLARE_GLOBAL_DATA_PTR since it is referenced in the test codes. > > Signed-off-by: Bin Meng > --- > > (no changes since v1) > > test/dm/fdtdec.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass You

Re: [PATCH] i2c: eeprom: Use reg property instead of offset and size

2020-06-16 Thread Simon Glass
Hi Michal, On Wed, 10 Jun 2020 at 07:18, Michal Simek wrote: > > Remove adhoc dt binding for fixed-partition definition for i2c eeprom. > fixed-partition are using reg property instead of offset/size pair. > > Signed-off-by: Michal Simek > --- > > Just build tested - ge_bx50v3_defconfig >

[PATCH v2 00/17] efi_loader: add capsule update support

2020-06-16 Thread AKASHI Takahiro
Summary === 'UpdateCapsule' is one of runtime services defined in UEFI specification and its aim is to allow a caller (OS) to pass information to the firmware, i.e. U-Boot. This is mostly used to update firmware binary on devices by instructions from OS. While 'UpdateCapsule' is a runtime

[PATCH v2 01/17] common: update_tftp: remove unnecessary build check

2020-06-16 Thread AKASHI Takahiro
Logically, the current update_tftp() should and does compile and work correctly even without satisfying the following condition: > #if defined(CONFIG_UPDATE_TFTP) && !defined(CONFIG_MTD_NOR_FLASH) > #error "CONFIG_UPDATE_TFTP and !CONFIG_MTD_NOR_FLASH needed for > legacy behaviour" > #endif It

[PATCH v2 02/17] dfu: add a hidden reverse-dependency on UPDATE_TFTP

2020-06-16 Thread AKASHI Takahiro
DFU_OVER_TFTP support on "dfu" command relies on update_tftp() being available. Just explicitly add this dependency. Signed-off-by: AKASHI Takahiro --- drivers/dfu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dfu/Kconfig b/drivers/dfu/Kconfig index

[PATCH v2 05/17] dfu: export dfu_list

2020-06-16 Thread AKASHI Takahiro
This variable will be utilized to enumerate all dfu entities for UEFI capsule firmware update in a later commit. Signed-off-by: AKASHI Takahiro --- drivers/dfu/dfu.c | 2 +- include/dfu.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/dfu/dfu.c

Re: [PATCH v3 1/6] drivers: Add a new framework for multiplexer devices

2020-06-16 Thread Simon Glass
On Thu, 11 Jun 2020 at 13:45, Pratyush Yadav wrote: > > From: Jean-Jacques Hiblot > > Add a new subsystem that handles multiplexer controllers. The API is the > same as in Linux. > > Signed-off-by: Jean-Jacques Hiblot > Signed-off-by: Pratyush Yadav > --- > drivers/Kconfig | 2

Re: [PATCH v2 02/10] test: pinmux: Add test for pin muxing

2020-06-16 Thread Sean Anderson
On 6/16/20 11:11 PM, Simon Glass wrote: > Hi Sean, > > On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: >> >> This extends the pinctrl-sandbox driver to support pin muxing, and adds a >> test for that behaviour. The test is done in C and not python (like the >> existing tests for the pinctrl

Re: [PATCH v2 2/2] test: gpio: Add tests for the managed API

2020-06-16 Thread Simon Glass
On Fri, 29 May 2020 at 15:38, Pratyush Yadav wrote: > > From: Jean-Jacques Hiblot > > Add a test to verify that GPIOs can be acquired/released using the managed > API. Also check that the GPIOs are released when the consumer device is > removed. > > Signed-off-by: Jean-Jacques Hiblot > --- >

Re: [PATCH v2 08/10] led: gpio: Default to using node name if label is absent

2020-06-16 Thread Sean Anderson
On 6/16/20 11:11 PM, Simon Glass wrote: > On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: >> >> This more closely mirrors Linux's behaviour, and will make it easier to >> transition to using function+color in the future. >> >> Signed-off-by: Sean Anderson >> --- >> This patch was previously

Re: [PATCH v2 05/10] gpio: dw: Fix warnings about casting int to pointer

2020-06-16 Thread Simon Glass
On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: > > Change the type of gpio_dwabp_platdata.base from fdt_addr_t to a void > pointer, since we pass it to readl. > > Signed-off-by: Sean Anderson > Reviewed-by: Bin Meng > --- > This patch was previously submitted as part of >

Re: [RFC PATCH 1/1] gpio: Handle NULL pointers gracefully

2020-06-16 Thread Simon Glass
Hi Pratyush, On Mon, 8 Jun 2020 at 06:37, Pratyush Yadav wrote: > > On 01/06/20 11:08AM, Simon Glass wrote: > > Hi Pratyush, > > > > On Fri, 29 May 2020 at 16:04, Pratyush Yadav wrote: > > > > > > Prepare the way for a managed GPIO API by handling NULL pointers without > > > crashing or

Re: [PATCH v2 08/10] led: gpio: Default to using node name if label is absent

2020-06-16 Thread Simon Glass
On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: > > This more closely mirrors Linux's behaviour, and will make it easier to > transition to using function+color in the future. > > Signed-off-by: Sean Anderson > --- > This patch was previously submitted as part of >

Re: [PATCH v3 2/6] dm: board: complete the initialization of the muxes in initr_dm()

2020-06-16 Thread Simon Glass
On Thu, 11 Jun 2020 at 13:45, Pratyush Yadav wrote: > > From: Jean-Jacques Hiblot > > This will probe the multiplexer devices that have a "u-boot,mux-autoprobe" > property. As a consequence they will be put in their idle state. > > Signed-off-by: Jean-Jacques Hiblot > Signed-off-by: Pratyush

Re: [PATCH 1/1] doc: random number generation

2020-06-16 Thread Simon Glass
On Sat, 13 Jun 2020 at 04:59, Heinrich Schuchardt wrote: > > Add random number generation APIs to the HTML documentation. > Fix style issues. > > Signed-off-by: Heinrich Schuchardt > --- > MAINTAINERS | 1 + > doc/api/index.rst | 1 + > doc/api/rng.rst | 17 + >

Re: [PATCH v3 3/6] drivers: mux: mmio-based syscon mux controller

2020-06-16 Thread Simon Glass
Hi Pratyush, On Thu, 11 Jun 2020 at 13:45, Pratyush Yadav wrote: > > From: Jean-Jacques Hiblot > > 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

Re: [PATCH v2 2/2] test: reset: Add tests for the managed API

2020-06-16 Thread Simon Glass
On Fri, 12 Jun 2020 at 06:08, Pratyush Yadav wrote: > > From: Jean-Jacques Hiblot > > The tests are basically the same as for the regular API. Except that > the reset are initialized using the managed API, and no freed manually. > > Signed-off-by: Jean-Jacques Hiblot > Signed-off-by: Pratyush

Re: [PATCH v3 02/15] arm: cpu: armv8: add L3 memory flush support

2020-06-16 Thread Simon Glass
On Wed, 10 Jun 2020 at 04:41, Rayagonda Kokatanur wrote: > > Add L3 memory flush support for NS3. > > Signed-off-by: Rayagonda Kokatanur > --- > arch/arm/cpu/armv8/Makefile | 1 + > arch/arm/cpu/armv8/bcmns3/Makefile | 5 ++ > arch/arm/cpu/armv8/bcmns3/lowlevel.S | 90

Re: [PATCH v3 5/5] test/dm: fdtdec: Add tests for fdtdec_add_reserved_memory()

2020-06-16 Thread Simon Glass
On Tue, 9 Jun 2020 at 23:36, Bin Meng wrote: > > From: Bin Meng > > This adds a test case to test the functionality of the fdtdec API > fdtdec_add_reserved_memory(). > > Signed-off-by: Bin Meng > --- > > Changes in v3: > - correct typo in the comments, and some minor rewording > >

Re: [PATCH v3 01/15] board: ns3: add support for Broadcom Northstar 3

2020-06-16 Thread Simon Glass
On Wed, 10 Jun 2020 at 04:41, Rayagonda Kokatanur wrote: > > Add support for Broadcom Northstar 3 SoC. > NS3 is a octo-core 64-bit ARMv8 Cortex-A72 processors > targeting a broad range of networking applications. > > Signed-off-by: Rayagonda Kokatanur > --- > arch/arm/Kconfig | 10

Re: [Uboot-stm32] [PATCH 2/2] dts: ARM: stm32mp15: add OP-TEE node in u-boot DTSI

2020-06-16 Thread Patrice CHOTARD
Hi On 6/5/20 9:24 AM, Patrick Delaunay wrote: > From: Etienne Carriere > > Add OP-TEE firmware node in stm32mp15 U-Boot DTSI. This node is > needed since commit [1] that changed U-Boot/stm32mp15 to detect > OP-TEE availability by probing the resource instead of relying on > U-Boot configuration.

Re: [PATCH 1/2] board: stm32mp1: fix handling of DT OP-TEE reserved memory nodes

2020-06-16 Thread Patrice CHOTARD
Hi On 6/5/20 9:24 AM, Patrick Delaunay wrote: > From: Etienne Carriere > > Fix the sequence in stm32mp1 fdt.c that disables OP-TEE resources > defined in FDT when U-boot detects OP-TEE firmware is not present. > > Before this change, helper function stm32_fdt_disable_optee() > set property

RE: [PATCH v4 4/4] test: env: add test for env info sub-command

2020-06-16 Thread Patrick DELAUNAY
Hi Stephen, > From: Stephen Warren > Sent: mardi 16 juin 2020 00:09 > > On 6/15/20 8:01 AM, Patrick Delaunay wrote: > > Add a pytest for testing the env info sub-command: > > > > test_env_info: test command with several option > > > > test_env_info_quiet: test the result of the sub-command with

[PATCHv3 0/6] omap4/omap5: convert to DM model

2020-06-16 Thread Tero Kristo
Hi, This is a combined series of both omap4/omap5 DM conversion in one. The main change across all the boards in this version is to drop SPI support completely. SPI is only available on expansion headers on the omap4 panda / omap5 uevm boards, and it is impossible for the authors of the patches

Re: [RESEND PATCH] usb: max3420: add the gadget driver

2020-06-16 Thread Lukasz Majewski
Hi Jassi, > ... a polite ping, Lukasz. The only excuse for so long lack of my response are my personal issues caused by the covid-19. Sorry for that.. > > On Sun, Jun 7, 2020 at 3:59 PM wrote: > > > > From: Jassi Brar > > > > MAX3420 implements FullSpeed USB Device over SPI. > > Another

[PATCH v2 3/9] env: correctly handle result in env_init

2020-06-16 Thread Patrick Delaunay
Don't return error with ret=-ENOENT when the optional ops drv->init is absent but only if env_driver_lookup doesn't found driver. This patch correct an issue for the code if (!env_init()) env_load() When only ext4 is supported (CONFIG_ENV_IS_IN_EXT4), as the backend env/ext4.c doesn't

[PATCH v2 0/9] env: ext4: corrections and add test for env in ext4

2020-06-16 Thread Patrick Delaunay
Hi, V2 is only a rebase and adaptation of the serie [1]. In this serie, I add sandbox test with CONFIG_ENV_IS_NOWHERE activated with other location: at least one CONFIG_ENV_IS_IN_... is defined and ENV_IS_IN_DEVICE is automatically defined. To test this feature, I activate and test

[PATCH v2 8/9] env: ext4: add support of command env erase

2020-06-16 Thread Patrick Delaunay
Add support of opts erase for env in ext4, this opts is used by command 'env erase'. This command only fill the env file (CONFIG_ENV_EXT4_FILE) with 0, the CRC and the saved environment becomes invalid. Signed-off-by: Patrick Delaunay --- Changes in v2: - use CONFIG_IS_ENABLED to set .erase

[PATCH v2 4/9] sandbox: activate env in ext4 support

2020-06-16 Thread Patrick Delaunay
The default environment is still used with "ENVL_NOWHERE" indicated by the weak function env_get_location() and activated by CONFIG_ENV_IS_NOWHERE. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- (no changes since v1) board/sandbox/sandbox.c| 12

[PATCH v2 5/9] sandbox: support the change of env location

2020-06-16 Thread Patrick Delaunay
Add support of environment location with a new sandbox command 'env_loc'. When the user change the environment location with the command 'env_loc ' the env is reinitialized and saved; the GD_FLG_ENV_DEFAULT flag is also updated. When the user set the same env location, the environment is

[PATCH v2 6/9] test: environment in ext4

2020-06-16 Thread Patrick Delaunay
Add basic test to persistent environment in ext4: save and load in host ext4 file 'uboot.env'. On first execution an empty EXT4 file system is created in persistent data dir: env.ext4.img. Signed-off-by: Patrick Delaunay --- (no changes since v1) test/py/tests/test_env.py | 87

[PATCH v2 1/9] env: add absolute path at CONFIG_ENV_EXT4_FILE

2020-06-16 Thread Patrick Delaunay
Add the absolute path to the default value of CONFIG_ENV_EXT4_FILE = "/uboot.env". This patch avoid the error : Saving Environment to EXT4... File System is consistent Please supply Absolute path Signed-off-by: Patrick Delaunay --- For information, it is the value used today by all the

[PATCH v2 2/9] env: ext4: set gd->env_valid

2020-06-16 Thread Patrick Delaunay
Add a missing initialization of gd->env_valid in env_ext4_load as it is already done in some other env device. Set gd->env_valid = ENV_VALID in env_ext4_save() and env_ext4_load(). This patch allows to have a correct information in 'env info' command. Signed-off-by: Patrick Delaunay --- (no

[PATCH v2 7/9] env: ext4: introduce new function env_ext4_save_buffer

2020-06-16 Thread Patrick Delaunay
Split the function env_ext4_save to prepare the erase support. Signed-off-by: Patrick Delaunay --- (no changes since v1) env/ext4.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/env/ext4.c b/env/ext4.c index ac9f126bec..027a721b69 100644 ---

[PATCH v2 9/9] test: sandbox: add test for erase command

2020-06-16 Thread Patrick Delaunay
Add test for the erase command tested on ENV in EXT4. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + configs/sandbox_spl_defconfig | 1 +

[PATCHv3 6/6] omap5: uevm: convert to device model

2020-06-16 Thread Tero Kristo
Convert omap5 uevm board to device model. Signed-off-by: Tero Kristo --- v3: * dropped SPI support arch/arm/dts/omap5-u-boot.dtsi | 42 ++ board/ti/omap5_uevm/evm.c | 78 +- configs/omap5_uevm_defconfig | 13 -- 3 files changed, 62

[PATCHv3 3/6] omap4: Copy device tree from Linux 5.7.y for SDP4430

2020-06-16 Thread Tero Kristo
From: Peter Ujfalusi Copy all device tree files required for omap4 sdp4430 support from mainline Linux. Signed-off-by: Peter Ujfalusi Signed-off-by: Tero Kristo --- arch/arm/dts/omap4-sdp-es23plus.dts | 14 + arch/arm/dts/omap4-sdp.dts | 713 2 files

[PATCHv3 4/6] omap4: sdp: convert to device model

2020-06-16 Thread Tero Kristo
From: Peter Ujfalusi Convert omap4 sdp to device model. Signed-off-by: Peter Ujfalusi Signed-off-by: Tero Kristo --- v3: * dropped SPI support arch/arm/dts/Makefile | 4 board/ti/sdp4430/sdp.c | 12 configs/omap4_sdp4430_defconfig | 12 +--- 3

[PATCHv3 2/6] omap4: panda: convert to device model

2020-06-16 Thread Tero Kristo
Convert omap4 panda to device model. Signed-off-by: Tero Kristo --- v3: * dropped SPI support v2: * dropped some apparently dead USB EHCI init code, this was just causing a compile time warning. arch/arm/dts/Makefile | 4 +++ arch/arm/dts/omap4-u-boot.dtsi | 39

Re: [PATCH v3 20/35] acpi: Support writing a GPIO

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v3 20/35] acpi: Support writing a GPIO > > Allowing writing out a reference to a GPIO within the ACPI output. This > can be used by ACPI code to access a GPIO at runtime. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > -

RE: [PATCH 1/2] board: stm32mp1: fix handling of DT OP-TEE reserved memory nodes

2020-06-16 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 5 juin 2020 09:24 > > From: Etienne Carriere > > Fix the sequence in stm32mp1 fdt.c that disables OP-TEE resources defined in > FDT when U-boot detects OP-TEE firmware is not present. > > Before this change, helper function

RE: [PATCH 2/2] dts: ARM: stm32mp15: add OP-TEE node in u-boot DTSI

2020-06-16 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 5 juin 2020 09:25 > > From: Etienne Carriere > > Add OP-TEE firmware node in stm32mp15 U-Boot DTSI. This node is needed > since commit [1] that changed U-Boot/stm32mp15 to detect OP-TEE availability > by probing the resource instead of relying on

Re: [PATCH v3 05/35] acpi: Support generation of ACPI code

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v3 05/35] acpi: Support generation of ACPI code > > Add a new file to handle generating ACPI code programatically. This is > used when information must be dynamically added to the tables, e.g. the > SSDT. > > Initial support is just

Re: [PATCH v2 04/25] x86: mp_init: Switch parameter names in start_aps()

2020-06-16 Thread Wolfgang Wallner
Hi Simon, > -"Simon Glass" schrieb: - > Betreff: [PATCH v2 04/25] x86: mp_init: Switch parameter names in start_aps() > > These parameters are named differently from elsewhere in this file. Switch > them to avoid confusion. > > Also add comments to this function. > > Signed-off-by:

Re: [PATCH v2 10/25] x86: mp: Support APs waiting for instructions

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 10/25] x86: mp: Support APs waiting for instructions > > 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

Re: [PATCH v2 13/25] x86: mp: Allow running functions on multiple CPUs

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 13/25] x86: mp: Allow running functions on multiple CPUs > > 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

Re: [PATCH v3 21/35] acpi: Support copying properties from device tree to ACPI

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v3 21/35] acpi: Support copying properties from device tree > to ACPI > > Some drivers in Linux support both device tree and ACPI. U-Boot itself > uses Linux device-tree bindings for its own configuration but does not use > ACPI. >

[PATCH u-boot v2 0/4] r8152: support more chips

2020-06-16 Thread Hayes Wang
v2: For patch #1, replace u32 with u8 for rtl_reset_bmu(). For patch #3, use USB_BP(n) to replace USB_BP_0 ~ USB_BP_7. Write the registers in bulk for rtl_clear_bp(). For patch #4, add a macro for the magic value. Remove type casts. Write the register in bulk, if it is possible. Reduce indent.

[PATCH u-boot v2 2/4] eth/r8152: reset PHY after setting it

2020-06-16 Thread Hayes Wang
Some settings of PHY have to work after resetting PHY. Signed-off-by: Hayes Wang --- drivers/usb/eth/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/eth/r8152.c b/drivers/usb/eth/r8152.c index 041cb22dd3..7f988543a1 100644 --- a/drivers/usb/eth/r8152.c

[PATCH u-boot v2 3/4] eth/r8152: modify rtl_clear_bp function

2020-06-16 Thread Hayes Wang
The original rtl_clear_bp() is used to clear the firmware of both PLA and USB MCU. The new one could clear the firmware of PLA or USB independently. It is unnecessary to clear firmware, if there is no one to be updated. Besides, clear the firmware by writing the relative registers in bulk.

Re: [PATCH v2 20/25] x86: mtrr: Add support for writing to MTRRs on any CPU

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 20/25] x86: mtrr: Add support for writing to MTRRs on any > CPU > > 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

Re: [PATCH v2 24/25] x86: mp: Add more comments to the module

2020-06-16 Thread Wolfgang Wallner
Hi Simon, > -"Simon Glass" schrieb: - > Betreff: [PATCH v2 24/25] x86: mp: Add more comments to the module > > Add a description of how this module works and also some missing function > comments. Great to see more documenation :) > > Drop struct cpu_map since it is not used. > >

[PULL] Pull request: u-boot-stm32 for v2020.07= u-boot-stm32-20200616

2020-06-16 Thread Patrick DELAUNAY
287be3294af6179782f8a561afca427620504581: Merge branch '2020-06-15-misc-bugfixes' (2020-06-15 11:24:42 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-stm.git tags/u-boot-stm32-20200616 for you to fetch changes up

Re: [PATCH v2 17/25] x86: Don't enable SMP in SPL

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 17/25] x86: Don't enable SMP in SPL > > SMP should be set up in U-Boot where possible, not SPL. Disable it in SPL. > For 64-bit U-Boot we should find a way to allow SMP operations in U-Boot, > but this is somewhat more

Re: [PATCH v2 18/25] x86: coral: Update the memory map

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 18/25] x86: coral: Update the memory map > > This currently excludes the temporary memory used to start up the APs. > Add it. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add new patch to add AP_DEFAULT_BASE to

Re: [PATCH v3 29/35] acpi: Support ordering SSDT data by device

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v3 29/35] acpi: Support ordering SSDT data by device > > Add a /chosen property to control the order in which the data appears > in the SSDT. This allows matching up U-Boot's output from a dump of the > known-good data obtained from

Re: [PATCH v3 32/35] x86: Allow devices to write to DSDT

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v3 32/35] x86: Allow devices to write to DSDT > > Call the new core function to inject ASL programmatically into the DSDT. > This is made up of fragments generated by devices that have the > inject_dsdt() method. The normal, compiled

Re: [PATCH v3 30/35] x86: Allow devices to write an SSDT

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v3 30/35] x86: Allow devices to write an SSDT > > Call the new core function to write the SSDT. This is made up of fragments > generated by devices that have the fill_ssdt() method. > > Signed-off-by: Simon Glass > --- > > Changes

[PATCH 1/1] spl: fix ext4fs_mount return code handling

2020-06-16 Thread Heiko Thiery
From: Thomas Schaefer - Despite other ext4 filesystem functions, ext4fs_mount returns 0 in case of error. - This leads to u-boot crash in case that an SD card with valid partition table but without ext4 filesystem created in a partition is found on SD card. - Fix this by returning a proper

[PATCH 1/1] spl: fix ext4fs_mount return code handling

2020-06-16 Thread Heiko Thiery
From: Thomas Schaefer - Despite other ext4 filesystem functions, ext4fs_mount returns 0 in case of error. - This leads to u-boot crash in case that an SD card with valid partition table but without ext4 filesystem created in a partition is found on SD card. - Fix this by returning a proper

[PATCH v3] arm: socfpga: add board support for ic-automation moritz III

2020-06-16 Thread Nico Becker
Changes for v3: - Resend via git send-email Changes for v2: - Coding Style cleanup Signed-off-by: Nico Becker --- arch/arm/dts/Makefile | 3 +- ...ocfpga_cyclone5_ica_moritz_iii-u-boot.dtsi | 45 ++ .../dts/socfpga_cyclone5_ica_moritz_iii.dts | 123

Re: [PATCH 1/2] board: amlogic: move boards doc into doc/board/amlogic

2020-06-16 Thread Neil Armstrong
Hi, On 16/06/2020 06:35, Anand Moon wrote: > Hi Neil, > > On Thu, 11 Jun 2020 at 19:20, Neil Armstrong wrote: >> >> Move the natural text Amlogic board README files to doc/board/amlogic >> into reStructuredText and : >> - add reStructuredText markup for bash code >> - fix secondary titles

[PATCH u-boot v2 1/4] eth/r8152: reset bmu after disabling Tx/Rx

2020-06-16 Thread Hayes Wang
Reset bmu after disabling Tx/Rx. This is used to clear the FIFO of Tx/Rx. The remained data may be transferred after Tx/Rx is re-enabled. And it results in garbage data. Signed-off-by: Hayes Wang --- drivers/usb/eth/r8152.c | 14 ++ drivers/usb/eth/r8152.h | 7 ++- 2 files

[PATCH u-boot v2 4/4] eth/r8152: support RTL8153B/RTL8154B

2020-06-16 Thread Hayes Wang
This is used to support RTL8153B and RTL8154B. Signed-off-by: Hayes Wang --- drivers/usb/eth/r8152.c| 207 - drivers/usb/eth/r8152.h| 41 +++- drivers/usb/eth/r8152_fw.c | 170 ++ 3 files changed, 414 insertions(+), 4

Re: [PATCH v3 12/35] acpi: Support generation of SPI descriptor

2020-06-16 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v3 12/35] acpi: Support generation of SPI descriptor > > Add a function to write a SPI descriptor to the generated ACPI code. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Make acpi_device_write_spi() static > - Add

Re: [PATCH v4 4/5] dm: pci: Assign controller device node to root bridge

2020-06-16 Thread Nicolas Saenz Julienne
On Tue, 2020-06-16 at 07:43 -0600, Simon Glass wrote: > Hi Nicolas, > > On Fri, 12 Jun 2020 at 10:47, Nicolas Saenz Julienne > wrote: > > There is no distinction in DT between the PCI controller device and the > > root bridge, whereas such distinction exists from dm's perspective. Make > > sure

Re: [PATCH 1/1] spl: fix ext4fs_mount return code handling

2020-06-16 Thread Tom Rini
On Tue, Jun 16, 2020 at 01:59:03PM +0200, Heiko Thiery wrote: > From: Thomas Schaefer > > - Despite other ext4 filesystem functions, ext4fs_mount returns > 0 in case of error. > - This leads to u-boot crash in case that an SD card > with valid partition table but without ext4 filesystem

Re: [PATCH 2/2] hack to boot with 2020.01

2020-06-16 Thread Tom Rini
On Tue, Jun 16, 2020 at 04:27:22PM +0200, Oliver Graute wrote: > As proposed here: > > https://lists.denx.de/pipermail/u-boot/2020-January/396749.html > > Both of my imx8qm boards (Advantech and Congatec) aren't booting > 2020.01 without this change. Whats the proper way to fix this on my side?

Re: [PATCH v2 12/23] logicpd: Drop omap3 zoom1

2020-06-16 Thread Nishanth Menon
On 23:45-20200613, Jagan Teki wrote: > On Wed, May 27, 2020 at 6:27 PM Jagan Teki wrote: > > > > OF_CONTROL, DM_SPI and other driver model migration deadlines > > are expired for this board. > > > > Drop it. > > > > Cc: Nishanth Menon > > Any comments? I think this should be fine. OMAP3 ES1.0

Re: [PATCH] checkpatch: fix a false check against wchar/utf-16 string

2020-06-16 Thread Tom Rini
On Tue, Jun 16, 2020 at 02:43:07PM +0900, AKASHI Takahiro wrote: > UEFI subsystem uses utf-16 string, but checkpatch.pl complains > about any occurrences of L"xxx" which is definitely legal. > So just suppress this kind of warning. > Precautiously, we will check u"xxx" as well. > >

[PATCH] checkpatch.pl: Fully re-sync with v5.7

2020-06-16 Thread Tom Rini
While commit 048a648298b1 ("checkpatch.pl: Update to v5.7") largely re-syncs us with checkpatch.pl from v5.7 there are a number of things missing still. Re-copy the script and again take care to keep our allowed debug prints and now localized checks intact. Fixes: 048a648298b1 ("checkpatch.pl:

Re: [PATCH 01/10] dtoc: add support to scan drivers

2020-06-16 Thread Simon Glass
Hi Walter, On Fri, 12 Jun 2020 at 11:38, Walter Lozano wrote: > > > On 11/6/20 23:22, Simon Glass wrote: > > Hi Walter, > > > > On Thu, 11 Jun 2020 at 13:07, Walter Lozano > > wrote: > >> Hi Simon, > >> > >> On 11/6/20 14:22, Simon Glass wrote: > >>> Hi Walter, > >>> > >>> On Thu, 11 Jun 2020

  1   2   3   >