[PATCH 03/10] smbios: Move smbios_write_type to the C file

2021-01-06 Thread Simon Glass
This type is not used outside the smbios.c file so there is no need for it to be in the header file. Move it. Signed-off-by: Simon Glass --- include/smbios.h | 10 -- lib/smbios.c | 10 ++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/smbios.h b/in

[PATCH 04/10] smbios: Use char consistently for the eos member

2021-01-06 Thread Simon Glass
At present a few of the structs use u8 instead of char. This is a string, so char is better. Update them. Signed-off-by: Simon Glass --- include/smbios.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/smbios.h b/include/smbios.h index fc69188a8fe..1cbeabf9522 10

[PATCH 06/10] smbios: Use a struct to keep track of context

2021-01-06 Thread Simon Glass
At present we pass the ofnode to each function. We also pass the 'eos' pointer for adding new strings. We don't track the current end of the string table, so have smbios_string_table_len() to find that. The code can be made more efficient if it keeps information in a context struct. This also make

[PATCH 08/10] smbios: Track the end of the string table

2021-01-06 Thread Simon Glass
Add a new member to the context struct which tracks the end of the string table. This allows us to avoid recalculating this at the end. Signed-off-by: Simon Glass --- lib/smbios.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/lib/smbios.c

[PATCH 07/10] smbios: Drop the eos parameter

2021-01-06 Thread Simon Glass
We can store this in the context and avoid passing it to each function. This makes it easier to follow and will also allow keeping track of the end of the string table (in future patches). Add an 'eos' field to the context and create a function to set it up. Signed-off-by: Simon Glass --- lib/

[PATCH 09/10] smbios: Add more options for the BIOS version string

2021-01-06 Thread Simon Glass
At present the version string is obtained from PLAIN_VERSION. Some boards may want to configure this using the device tree, since the build system can more easily insert things there after U-Boot itself is built. Add this option to the code. Also in some cases the version needs to be generated pro

[PATCH 10/10] smbios: Allow a few values to come from sysinfo

2021-01-06 Thread Simon Glass
While static configuration is useful it cannot cover every case. Sometimes board revisions are encoded in resistor straps and must be read at runtime. The easiest way to provide this information is via sysinfo, since the board can then provide a driver to read whatever is needed. Add some standar

Re: [PATCH 0/2] remoteproc: ti_k3_arm64: Program GTC FID0 register

2021-01-06 Thread Lokesh Vutla
On 07/01/21 12:50 am, Nishanth Menon wrote: > Hi, > > ARMv8's generic timer[1] picks up it's graycode from GTC. However, > the frequency of the GTC is supposed to be programmed in CNTFID0[2] > register prior to enabling the GTC in CNTCR[3] register. U-boot for K3 > is currently missing that pro

[PATCH 00/10] binman: Various minor fixes and improvement

2021-01-06 Thread Simon Glass
This series includes a number of minor fixes and improvements identified while trying out Chrome OS verified boot on it. These were not apparent without this real-world testing, but all are deficiencies in one way or another. Simon Glass (10): dtoc: binman: Drop Python 2 code patman: Correct

[PATCH 01/10] dtoc: binman: Drop Python 2 code

2021-01-06 Thread Simon Glass
Drop a few more Python 2 relics that are no-longer needed. Signed-off-by: Simon Glass --- tools/binman/fmap_util.py | 4 ++-- tools/dtoc/fdt.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/binman/fmap_util.py b/tools/binman/fmap_util.py index b03fc28fbb4

[PATCH 02/10] patman: Correct lz4 compression parameters

2021-01-06 Thread Simon Glass
At present on large files, lz4 uses a larger block size (e.g. 256KB) than the 64KB supported by the U-Boot decompression implementation. Also it is optimised for maximum compression speed, producing larger output than we would like. Update the parameters to correct these problems. Signed-off-by:

[PATCH 04/10] binman: Show the size when writing entries

2021-01-06 Thread Simon Glass
Update the log output to show the size, since this is useful information. Signed-off-by: Simon Glass --- tools/binman/control.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/binman/control.py b/tools/binman/control.py index 072417f3644..1952b2abf48 100644 --- a/to

[PATCH 03/10] binman: Update the TODO list

2021-01-06 Thread Simon Glass
Two of the items have been completed and I thought of another one. Update the list. Signed-off-by: Simon Glass --- tools/binman/README | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/binman/README b/tools/binman/README index de1eedfc3f7..a00c9026163 100644 --- a/tool

[PATCH 05/10] binman: Fix a few file comments

2021-01-06 Thread Simon Glass
Two files have the wrong comment at the top of them. Fix this. Signed-off-by: Simon Glass --- tools/binman/etype/u_boot_spl_bss_pad.py | 1 - tools/binman/etype/u_boot_spl_nodtb.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/binman/etype/u_boot_spl_bss_pad.py

[PATCH 06/10] binman: Support finding symbols in sub-sections

2021-01-06 Thread Simon Glass
At present binman only supports resolving symbols in the same section as the binary that uses it. This is quite limited because we often need to group entries into different sections. Enhance the algorithm to search the entire image for symbols. Signed-off-by: Simon Glass --- tools/binman/elf.

[PATCH 07/10] binman: Support reading an image with entry args

2021-01-06 Thread Simon Glass
Normally when an entry is created, any entry arguments it has are required to be provided, so it can actually generate its contents correctly. However when an existing image is read, Entry objects are created for each of the entries in the image. This happens as part of the process of reading the

[PATCH 08/10] binman: Allow vblock to include devicetree blobs

2021-01-06 Thread Simon Glass
At present if a devicetree blob is included in a vblock it does not deal with updates. This is because the vblock is created once at the start and does not have a method to update itself later, after all the entry contents are finalised. Fix this by adjusting how the vblock is created. Also simpl

[PATCH 10/10] binman: Allow for skip_at_start when reading entries

2021-01-06 Thread Simon Glass
The offset of an entry needs to be adjusted by its skip-at-start value. This is currently missing when reading entry data. Fix it. Signed-off-by: Simon Glass --- tools/binman/etype/section.py | 10 ++ tools/binman/ftest.py | 19 +++ tools/

[PATCH 09/10] binman: Support alignment of files

2021-01-06 Thread Simon Glass
When packing files it is sometimes useful to align the start of each file, e.g. if the flash driver can only access 32-bit-aligned data. Provides a new property to support this. Signed-off-by: Simon Glass --- tools/binman/etype/files.py | 4 tools/binman/ftest.py

[GIT PULL] TI changes for v2021.04 next

2021-01-06 Thread Lokesh Vutla
Hi Tom, Please find the PR for next branch targeted for v2021.04 release. Details about the PR are updated in the tag message. Gitlab build report: https://gitlab.denx.de/u-boot/custodians/u-boot-ti/-/pipelines/5778 The following changes since commit c15f44acf9d473f4682bfdc63b8aebd313492

<    1   2