Re: [PATCH v4 00/59] dm: Add programatic generation of ACPI tables (part D)

2020-09-22 Thread Bin Meng
On Wed, Sep 23, 2020 at 2:46 AM Simon Glass wrote: > > Note: This is part D of this effort. With this, Coral includes all > required ACPI tables. > > At present on x86 U-Boot supports creating ACPI (Advanced Configuration > and Power Interface) tables using the Intel ACPI Source Language (ASL) >

Re: [PATCH] cfi_flash: Fix devicetree address determination

2020-09-22 Thread Stefan Roese
Hi Simon, On 22.09.20 15:51, Simon Glass wrote: Hi Stefan, On Mon, 21 Sep 2020 at 07:28, Stefan Roese wrote: Hi Andre, (added Simon) On 18.09.20 19:45, Andre Przywara wrote: The cfi-flash driver uses an open-coded version of the generic algorithm to decode and translate multiple frames

Re: [PATCH v3 5/5] x86: video: Show information about each video device

2020-09-22 Thread Bin Meng
On Wed, Sep 23, 2020 at 11:16 AM Simon Glass wrote: > > At present the 'bdinfo' command shows the framebuffer address, but not the > address of the copy framebuffer, if present. Add support for this. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: > - Update

Re: [PATCH v2 0/5] x86: Updates to some commands

2020-09-22 Thread Bin Meng
On Wed, Sep 23, 2020 at 4:54 AM Simon Glass wrote: > > This series adds a few more features to some x86-specific commands. > > Changes in v2: > - Fix '93' typo > - Capitalise 'System' > > Simon Glass (5): > x86: hob: Add way to show a single hob entry > x86: hob: Try to show a name instead of

Re: [PATCH v2 0/5] powerpc, mpc83xx: add DM_ETH support

2020-09-22 Thread Heiko Schocher
Hi Rasmus, Am 22.09.2020 um 16:34 schrieb Rasmus Villemoes: Hi Heiko I'm struggling somewhat with getting our mpc8309-derived board converted to DM_ETH. I just get Net: No ethernet found. where I used to get Net: UEC0, UEC1, UEC2 :-( Ok, I currently have no access to the hardware, I

Re: [PATCH v2 5/5] x86: video: Show information about each video device

2020-09-22 Thread Simon Glass
Hi Bin, On Tue, 22 Sep 2020 at 14:55, Simon Glass wrote: > > At present the 'bdinfo' command shows the framebuffer address, but not the > address of the copy framebuffer, if present. Add support for this. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > (no changes since v1) >

[PATCH v3 0/5] x86: Updates to some commands

2020-09-22 Thread Simon Glass
This series adds a few more features to some x86-specific commands. Changes in v3: - Update header file to avoid build error with !DM_VIDEO Changes in v2: - Fix '93' typo - Capitalise 'System' Simon Glass (5): x86: hob: Add way to show a single hob entry x86: hob: Try to show a name instead

[PATCH v3 5/5] x86: video: Show information about each video device

2020-09-22 Thread Simon Glass
At present the 'bdinfo' command shows the framebuffer address, but not the address of the copy framebuffer, if present. Add support for this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: - Update header file to avoid build error with !DM_VIDEO cmd/bdinfo.c| 26

[PULL] u-boot-mips fixes for v2020.10

2020-09-22 Thread Daniel Schwierzeck
Hi Tom, this contains some small fixes isolated to two MIPS boards which are currently broken. Gitlab CI: https://gitlab.denx.de/u-boot/custodians/u-boot-mips/-/pipelines/4758 The following changes since commit 5949f36f083515e2bb55f1a9c9110b287fbab587: Merge branch

Re: [PATCH 3/3] doc: global data pointer

2020-09-22 Thread Daniel Schwierzeck
Am Samstag, den 19.09.2020, 18:03 +0200 schrieb Heinrich Schuchardt: > Add the description of the global data pointer to the generated HTML > documentation. > > Signed-off-by: Heinrich Schuchardt > --- > doc/develop/global_data.rst | 53 + >

Re: [PATCH 0/3] Patches to allow running u-boot on vocore2 board

2020-09-22 Thread Daniel Schwierzeck
Am Sonntag, den 20.09.2020, 18:28 +0200 schrieb Mauro Condarelli: > There are two distinct things here: > - a few small fixes specific to vocore2 board. > - fixes to SquashFS to allow compilation on 32-bit architectures. > > Mauro Condarelli (3): > Small fixes to reduce size and ensure correct

Re: [PATCH 3/3] Fix missing __udivdi3 in SquashFS implementation.

2020-09-22 Thread Daniel Schwierzeck
Am Sonntag, den 20.09.2020, 21:21 -0400 schrieb Tom Rini: > On Sun, Sep 20, 2020 at 06:29:01PM +0200, Mauro Condarelli wrote: > > > Signed-off-by: Mauro Condarelli > > --- > > fs/squashfs/sqfs.c| 45 +-- > > fs/squashfs/sqfs_inode.c | 8 +++ > >

Re: [PATCH 1/2] log: allow for message continuation

2020-09-22 Thread Simon Glass
Hi Heinrich, On Tue, 22 Sep 2020 at 13:10, Heinrich Schuchardt wrote: > > On 9/22/20 8:48 PM, Simon Glass wrote: > > Hi Heinrich, > > > > On Thu, 17 Sep 2020 at 06:19, Heinrich Schuchardt > > wrote: > >> > >> Some drivers use macro pr_cont() for continuing a message sent via printk. > >> Hence

Re: [PATCH 0/5] edison: Support for writing an xFSTK image

2020-09-22 Thread Simon Glass
Hi Bin, On Tue, 22 Sep 2020 at 01:11, Bin Meng wrote: > > Hi Simon, > > On Fri, Sep 4, 2020 at 9:28 AM Simon Glass wrote: > > > > At present it is painful to put Edison in a hardware lab because it has > > two separate recovery modes. When the board has a functioning U-Boot, DFU > > can be

Please pull u-boot-dm/next into 'next'

2020-09-22 Thread Simon Glass
Hi Tom, This is for upstream/next Build here: https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/4750 The following changes since commit 2512b3b88ba6b193c3cada7e29e386613e8f9a6b: Merge branch '2020-09-14-generic-phy-error-trace' into next (2020-09-21 16:44:16 -0400) are

[PATCH v2 3/5] x86: Allow showing details about a HOB entry

2020-09-22 Thread Simon Glass
Some HOBs include information that can be decoded. Add a -v option to the hob command, to allow this to be displayed. Add the ability to decode a resource descriptor. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Capitalise 'System' cmd/x86/hob.c | 49

[PATCH v2 2/5] x86: hob: Try to show a name instead of a GUID

2020-09-22 Thread Simon Glass
GUIDs are one of the seven evils of the computer world. They obfuscate the meaning and require people to look up long hex strings to decode it. Luckily only a miniscule fraction of the 10^38 possible GUIDs are in use. Add a way to decode the GUIDs known to U-Boot. Add a few more to the list for

[PATCH v2 1/5] x86: hob: Add way to show a single hob entry

2020-09-22 Thread Simon Glass
The 'hob' command currently lists all HOB entries. Add way to list a single entry, by index. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) cmd/x86/hob.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/cmd/x86/hob.c

[PATCH v2 4/5] x86: Add support for more than 8 MTRRs

2020-09-22 Thread Simon Glass
At present the mtrr command only support 8 MTRRs. Some SoCs have more than that. Update the implementation to support up to 10. Read the number of MTRRs dynamically instead. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) arch/x86/cpu/mtrr.c | 12

[PATCH v2 5/5] x86: video: Show information about each video device

2020-09-22 Thread Simon Glass
At present the 'bdinfo' command shows the framebuffer address, but not the address of the copy framebuffer, if present. Add support for this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) cmd/bdinfo.c | 26 +- 1 file changed, 25

[PATCH v2 0/5] x86: Updates to some commands

2020-09-22 Thread Simon Glass
This series adds a few more features to some x86-specific commands. Changes in v2: - Fix '93' typo - Capitalise 'System' Simon Glass (5): x86: hob: Add way to show a single hob entry x86: hob: Try to show a name instead of a GUID x86: Allow showing details about a HOB entry x86: Add

Re: [PATCH] gpio/mpc83xx_spisel_boot.c: include log.h

2020-09-22 Thread Tom Rini
On Mon, Sep 21, 2020 at 09:48:24AM +0200, Rasmus Villemoes wrote: > Fix build failure, it used to get this implicitly through common.h > until f7ae49fc4f (common: Drop log.h from common header). > > Signed-off-by: Rasmus Villemoes > Reviewed-by: Heiko Schocher Applied to u-boot/master,

Re: [PATCH 1/1] doc/build/gcc.rst: add missing apt-get *install*

2020-09-22 Thread Tom Rini
On Sun, Sep 20, 2020 at 12:31:47PM +0200, Heinrich Schuchardt wrote: > The install command is missing for an apt-get command. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] spi: mpc8xxx_spi.c: fix cs activate/deactivate

2020-09-22 Thread Tom Rini
On Fri, Sep 18, 2020 at 04:26:06PM +0200, Rasmus Villemoes wrote: > Somewhere between v2020.04 and v2020.07 the mpc8xxx_spi driver broke, > I'm guessing due to this hunk > > @@ -559,6 +560,8 @@ int dm_gpio_set_dir_flags(struct gpio_desc *desc, ulong > flags) > if (ret) >

Re: [PATCH v2] configs: powerpc: Don't set CONFIG_ENV_ADDR for QorIQ SPIFLASH

2020-09-22 Thread Tom Rini
On Mon, Sep 07, 2020 at 10:37:35AM +1200, Chris Packham wrote: > Setting CONFIG_ENV_ADDR to something other than 0 stops gd->env_addr > from being allocated dynamically. When the environment is in SPI we need > it to be allocated as we can't use a direct memory mapped address. > > Signed-off-by:

Re: [PATCH 1/1] disk: typo Terra Bytes

2020-09-22 Thread Tom Rini
On Thu, Sep 17, 2020 at 05:57:21PM +0200, Heinrich Schuchardt wrote: > 512 * 2^32 bytes equals 2 tebibytes. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] examples: make examples customizable

2020-09-22 Thread Tom Rini
On Tue, Sep 22, 2020 at 08:49:20PM +0200, Heinrich Schuchardt wrote: > On 9/22/20 8:42 PM, Tom Rini wrote: > > On Tue, Sep 22, 2020 at 08:03:49PM +0200, Heinrich Schuchardt wrote: > > > >> Most users don't need the standalone API examples. Distributions like Suse > >> do not supply libgcc for

Re: [PATCH 1/2] log: allow for message continuation

2020-09-22 Thread Heinrich Schuchardt
On 9/22/20 8:48 PM, Simon Glass wrote: > Hi Heinrich, > > On Thu, 17 Sep 2020 at 06:19, Heinrich Schuchardt wrote: >> >> Some drivers use macro pr_cont() for continuing a message sent via printk. >> Hence if we want to convert printk messaging to using the logging system, >> we must support

Re: [PATCH 1/3] global_data.h: convert GD_FLG_* to enum

2020-09-22 Thread Heinrich Schuchardt
On 9/22/20 8:49 PM, Simon Glass wrote: > Hi Heinrich, > > On Sat, 19 Sep 2020 at 10:05, Heinrich Schuchardt wrote: >> >> Sphinx documentation is only available for enums not for #defines. >> Anyway it is better to keep related definitions in an enum. >> >> Signed-off-by: Heinrich Schuchardt >>

Re: [PATCH 2/3] global_data.h: add Sphinx documentation

2020-09-22 Thread Simon Glass
On Sat, 19 Sep 2020 at 10:10, Heinrich Schuchardt wrote: > > Add the missing Sphinx documentation for struct global_data and > gd_board_type(). > > Signed-off-by: Heinrich Schuchardt > --- > include/asm-generic/global_data.h | 357 ++ > 1 file changed, 309

Re: [PATCH 3/3] doc: global data pointer

2020-09-22 Thread Simon Glass
On Sat, 19 Sep 2020 at 10:10, Heinrich Schuchardt wrote: > > Add the description of the global data pointer to the generated HTML > documentation. > > Signed-off-by: Heinrich Schuchardt > --- > doc/develop/global_data.rst | 53 + > doc/develop/index.rst

Re: [PATCH 2/2] test: log: test message continuation

2020-09-22 Thread Simon Glass
On Thu, 17 Sep 2020 at 06:19, Heinrich Schuchardt wrote: > > Provide a unit test checking that a continuation message will use the same > log level and log category as the previous message. > > Signed-off-by: Heinrich Schuchardt > --- > test/log/Makefile| 4 +++- > test/log/cont_test.c |

Re: [PATCH 2/4] treewide: configs: fold CONFIG_DEFAULT_CONSOLE

2020-09-22 Thread Simon Glass
On Thu, 17 Sep 2020 at 00:52, Andre Heider wrote: > > In prepartion to remove CONFIG_DEFAULT_CONSOLE, fold the current users. > > Signed-off-by: Andre Heider > --- > include/configs/odroid.h| 7 +-- > include/configs/odroid_xu3.h| 6 +- > include/configs/s5p_goni.h

Re: [PATCH 1/3] global_data.h: convert GD_FLG_* to enum

2020-09-22 Thread Simon Glass
Hi Heinrich, On Sat, 19 Sep 2020 at 10:05, Heinrich Schuchardt wrote: > > Sphinx documentation is only available for enums not for #defines. > Anyway it is better to keep related definitions in an enum. > > Signed-off-by: Heinrich Schuchardt > --- > include/asm-generic/global_data.h | 104

Re: [PATCH 3/4] Remove whitelist entry CONFIG_DEFAULT_CONSOLE

2020-09-22 Thread Simon Glass
On Thu, 17 Sep 2020 at 00:52, Andre Heider wrote: > > There're no users left. > > Signed-off-by: Andre Heider > --- > scripts/config_whitelist.txt | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH 1/1] doc/arch/sandbox.rst: reformat command line options

2020-09-22 Thread Simon Glass
On Sat, 19 Sep 2020 at 12:05, Heinrich Schuchardt wrote: > > Reformat the command line options chapter so that the command line options > clearly stand out. > > Signed-off-by: Heinrich Schuchardt > --- > doc/arch/sandbox.rst | 57 +--- > 1 file changed,

Re: [PATCH 1/1] MAINTAINERS: assign doc/arch/sandbox.rst

2020-09-22 Thread Simon Glass
On Sat, 19 Sep 2020 at 12:05, Heinrich Schuchardt wrote: > > Add doc/arch/sandbox.rst to the scope of SANDBOX. > > Signed-off-by: Heinrich Schuchardt > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Simon Glass

Re: [PATCH 1/2] log: allow for message continuation

2020-09-22 Thread Simon Glass
Hi Heinrich, On Thu, 17 Sep 2020 at 06:19, Heinrich Schuchardt wrote: > > Some drivers use macro pr_cont() for continuing a message sent via printk. > Hence if we want to convert printk messaging to using the logging system, > we must support continuation of log messages too. > > As pr_cont()

Re: [PATCH 4/4] configs: smdkv310: get rid of unused EXYNOS4_DEFAULT_UART_OFFSET

2020-09-22 Thread Simon Glass
On Thu, 17 Sep 2020 at 00:52, Andre Heider wrote: > > Unused. > > Signed-off-by: Andre Heider > --- > include/configs/smdkv310.h | 3 --- > 1 file changed, 3 deletions(-) > Reviewed-by: Simon Glass

Re: [PATCH 1/4] treewide: configs: get rid of unused CONFIG_DEFAULT_CONSOLE

2020-09-22 Thread Simon Glass
On Thu, 17 Sep 2020 at 00:52, Andre Heider wrote: > > These are all unused. > > Signed-off-by: Andre Heider > --- > This sets completely removes CONFIG_DEFAULT_CONSOLE from the tree. > Only compile time tested. > > include/configs/arndale.h | 2 -- > include/configs/espresso7420.h | 3 ---

Re: [RFC PATCH] dm: add cells_count parameter in *_count_phandle_with_args

2020-09-22 Thread Simon Glass
On Thu, 10 Sep 2020 at 10:44, Patrick Delaunay wrote: > > The cell_count argument is required when cells_name is NULL. > > This patch adds this parameter in live tree API > - of_count_phandle_with_args > - ofnode_count_phandle_with_args > - dev_count_phandle_with_args > > This parameter solves

Re: [PATCH 1/1] examples: make examples customizable

2020-09-22 Thread Heinrich Schuchardt
On 9/22/20 8:42 PM, Tom Rini wrote: > On Tue, Sep 22, 2020 at 08:03:49PM +0200, Heinrich Schuchardt wrote: > >> Most users don't need the standalone API examples. Distributions like Suse >> do not supply libgcc for cross-compiling and we cannot do without on ARMv8 >> for building examples/. >> >>

Re: [PATCH v2 1/3] global_data.h: convert GD_FLG_* to enum

2020-09-22 Thread Simon Glass
On Sun, 20 Sep 2020 at 02:04, Heinrich Schuchardt wrote: > > Sphinx documentation is only available for enums not for #defines. > Anyway it is better to keep related definitions in an enum. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > enum gd_flags must not be exposed to

Re: Question: Chromebook Flip C100p Uboot build and flash

2020-09-22 Thread Simon Glass
Hi Ning, On Mon, 14 Sep 2020 at 13:26, zhangn1...@outlook.com wrote: > > Hi, Simon > > I find a guide in mainline uboot code, which updated by you. > This guide is for chromebook_jerry, can it apply to Flip C100p (minnie)? > > If it can apply to minnie, my understanding are: > Build

[PATCH v4 59/59] acpi: Use I2cSerialBusV2() instead of I2cSerialBus()

2020-09-22 Thread Simon Glass
Use the correct name of the ACPI structure being created. Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to use I2cSerialBusV2() instead of I2cSerialBus() include/acpi/acpi_device.h | 2 +- lib/acpi/acpi_device.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)

[PATCH v4 53/59] x86: fsp: Show FSP-S or FSP-M address in fsp_get_header()

2020-09-22 Thread Simon Glass
At present this function only supports FSP-M but it is also used to read FSP-S, in which case FSP-M may be zero. Add support for showing whichever address is present in the FSP binary. Also change the debug() statements to log_debug() while here. Signed-off-by: Simon Glass Reviewed-by: Bin Meng

Re: [PATCH 1/1] examples: make examples customizable

2020-09-22 Thread Simon Glass
Hi Heinrich, On Tue, 22 Sep 2020 at 12:04, Heinrich Schuchardt wrote: > > Most users don't need the standalone API examples. Distributions like Suse > do not supply libgcc for cross-compiling and we cannot do without on ARMv8 > for building examples/. > > Make examples customizable via symbol

[PATCH v4 58/59] acpi: Add more documentation for struct acpi_gpio

2020-09-22 Thread Simon Glass
Add some documentation provided by Andy Shevchenko to describe how to use struct acpi_gpio. Signed-off-by: Simon Glass --- Changes in v4: - Add Andy's documentation to struct acpi_gpio include/acpi/acpi_device.h | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH v4 57/59] x86: coral: Update config and device tree for ACPI

2020-09-22 Thread Simon Glass
Enable new features and provide require device-tree config so that U-Boot produces the correct ACPI tables on Coral. Signed-off-by: Simon Glass --- Changes in v4: - Correct DPTF enable property - Correct compatible string for gma device Changes in v3: - Rebase to master Changes in v2: -

[PATCH v4 54/59] acpi: Use defines for field lengths

2020-09-22 Thread Simon Glass
A few fields have an open-coded length. Use the defines for this purpose instead. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) include/acpi/acpi_table.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/acpi/acpi_table.h

[PATCH v4 55/59] x86: Add a way to add to the e820 memory table

2020-09-22 Thread Simon Glass
Some boards want to reserve extra regions of memory. Add a 'chosen' property to support this. Reviewed-by: Bin Meng Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/fsp/fsp_dram.c | 17 + doc/device-tree-bindings/chosen.txt | 18 ++ 2

[PATCH v4 56/59] x86: Move include of bitops out of ACPI region

2020-09-22 Thread Simon Glass
At present linux/bitops.h is included in ACPI code. This is not needed and can cause a problem in fls64.h since BITS_PER_LONG is not defined. Move the #include into the part not used by ACPI. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v2) Changes in v2: - Add new

[PATCH v4 49/59] x86: acpi: Set the log category for x86 table generation

2020-09-22 Thread Simon Glass
This file doesn't currently have a log category. Add one so that items are logged correctly. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) arch/x86/lib/acpi_table.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/lib/acpi_table.c

[PATCH v4 52/59] x86: fsp: Add more debugging for silicon init

2020-09-22 Thread Simon Glass
If locating the FSP header hangs for whatever reason it is useful to see where it got stuck. Add a debug print. Also show the address of the FSP-S entry point as a sanity check. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) arch/x86/lib/fsp2/fsp_silicon_init.c |

[PATCH v4 51/59] x86: apl: Check low-level init in FSP-S pre-init

2020-09-22 Thread Simon Glass
If U-Boot is not running FSP-S it should not do the pre-init either. Add a condition to handle this. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/apollolake/fsp_s.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/cpu/apollolake/fsp_s.c

[PATCH v4 50/59] x86: coral: Add audio descriptor files

2020-09-22 Thread Simon Glass
Add files describing the various audio configurations supported on coral. These are passed to Linux in the ACPI tables. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Add new patch with coral audio descriptor files .../chromebook_coral/dialog-2ch-48khz-24b.dat| Bin

[PATCH v4 48/59] acpi: tpm: Add a TPM1 table

2020-09-22 Thread Simon Glass
This provides information about a v1 TPM in the system. Generate this table if the TPM is present. Add a required new bloblist type and correct the header order of one header file. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/acpi_table.c | 54

[PATCH v4 47/59] acpi: tpm: Add a TPM2 table

2020-09-22 Thread Simon Glass
This provides information about a v2 TPM in the system. Generate this table if the TPM is present. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/acpi_table.c | 74 +++ include/acpi/acpi_table.h | 11 ++ include/bloblist.h| 1

[PATCH v4 46/59] x86: Correct handling of MADT table CPUs

2020-09-22 Thread Simon Glass
At present if hyperthreading is disabled the CPU numbering is not sequential. Fix this. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/acpi_table.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/x86/lib/acpi_table.c

[PATCH v4 45/59] x86: Add a header guard to asm/acpi_table.h

2020-09-22 Thread Simon Glass
This file cannot currently be included in ASL files. Add a header guard to permit this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) arch/x86/include/asm/acpi_table.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/include/asm/acpi_table.h

[PATCH v4 43/59] x86: Notify the FSP of the 'end firmware' event

2020-09-22 Thread Simon Glass
Send this notification when U-Boot is about to boot into Linux, as requested by the FSP. Currently this causes a crash with the APL FSP, so leave it disabled for now. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/cpu.c| 15 +++

[PATCH v4 44/59] x86: Correct the assembly guard in e820.h

2020-09-22 Thread Simon Glass
This is currently in the wrong place, so including the file in the device tree fails. Fix it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) Changes in v1: - Update commit message with a comma arch/x86/include/asm/e820.h | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v4 42/59] x86: Sort the MTRR table

2020-09-22 Thread Simon Glass
At present the MTRR registers are programmed with the list the U-Boot builds up in the same order. In some cases this list may be out of order. It looks better in Linux to have the registers in order, so sort them, Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/mtrr.c | 12

[PATCH v4 39/59] tpm: cr50: Add ACPI support

2020-09-22 Thread Simon Glass
Generate ACPI information for this device so that Linux can use it correctly. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Capitalise ACPI_OPS_PTR - Update for acpi_device_write_i2c_dev() return-value change - Use acpi,ddn instead of acpi,desc drivers/tpm/cr50_i2c.c

[PATCH v4 40/59] x86: fsp: Update the FSP API with the end-firmware method

2020-09-22 Thread Simon Glass
This new method is intended to be called when UEFI shuts down the 'boot services', i.e. any lingering code in the boot loader that might be used by the OS. Add a definition for this new method and update the comments a little. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes

[PATCH v4 36/59] x86: apl: Generate CPU tables

2020-09-22 Thread Simon Glass
Add ACPI generation to the APL CPU driver. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Capitalise ACPI_OPS_PTR - Handle table generation without callbacks arch/x86/cpu/apollolake/cpu.c | 77 ++ arch/x86/lib/Makefile | 3

[PATCH v4 41/59] x86: cpu: Report address width from cpu_get_info()

2020-09-22 Thread Simon Glass
Add support for this new field in the common code used by most x86 CPU drivers. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/i386/cpu.c | 23 +++ arch/x86/cpu/intel_common/cpu.c | 1 + arch/x86/cpu/x86_64/cpu.c | 5 +

[PATCH v4 35/59] x86: apl: Add support for hostbridge ACPI generation

2020-09-22 Thread Simon Glass
Support generating a DMAR table and add a few helper routines as well. Also set up NHLT so that audio works. Signed-off-by: Simon Glass --- Changes in v4: Drop extra acpi_align() in apl_acpi_hb_write_tables() Changes in v1: - Add support for NHLT table - Capitalise ACPI_OPS_PTR - Move the

[PATCH v4 38/59] x86: apl: Drop unnecessary code in PMC driver

2020-09-22 Thread Simon Glass
We don't have CONFIG_PCI in TPL but it is present in SPL, etc. So this code is not needed. Drop it, and fix a code-style nit just above. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/apollolake/pmc.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

[PATCH v4 34/59] x86: apl: Generate required ACPI tables

2020-09-22 Thread Simon Glass
Add support for generating various ACPI tables for Apollo Lake. Add a few S3 definitions that are needed. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Drop unnecessary callbacks arch/x86/cpu/apollolake/Makefile| 1 + arch/x86/cpu/apollolake/acpi.c

[PATCH v4 37/59] x86: apl: Generate ACPI table for LPC

2020-09-22 Thread Simon Glass
Add an ACPI table for the LPC on Apollo Lake. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Capitalise ACPI_OPS_PTR arch/x86/cpu/apollolake/lpc.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/x86/cpu/apollolake/lpc.c

[PATCH v4 31/59] x86: acpi: Add support for additional Intel tables

2020-09-22 Thread Simon Glass
Apollo Lake needs to generate a few more table types used on Intel SoCs. Add support for these into the x86 ACPI code. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Move this code into an x86-specific file - Update commit message - Use OEM_TABLE_ID instead of

[PATCH v4 33/59] p2sb: Add some definitions used for ACPI

2020-09-22 Thread Simon Glass
Allow this header to be included in ASL files by adding a header guard and a few definitions that are needed. Signed-off-by: Simon Glass --- (no changes since v1) include/p2sb.h | 8 1 file changed, 8 insertions(+) diff --git a/include/p2sb.h b/include/p2sb.h index

[PATCH v4 27/59] x86: acpi: Add PCT and PTC tables

2020-09-22 Thread Simon Glass
These are needed for the CPU tables. Add them into an x86-specific file since we do not support them on sandbox, or include tests. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Split PCT and PTC tables into a separate patch arch/x86/include/asm/acpigen.h | 35

[PATCH v4 29/59] x86: acpi: Add common Intel ACPI tables

2020-09-22 Thread Simon Glass
Add various tables that are common to Intel CPUs. These functions can be used by arch-specific CPU code. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/intel_common/Makefile | 2 + arch/x86/cpu/intel_common/acpi.c | 377 +

[PATCH v4 28/59] acpi: Add more support for generating processor tables

2020-09-22 Thread Simon Glass
This adds tables relating to P-States and C-States. Signed-off-by: Simon Glass --- (no changes since v1) include/acpi/acpigen.h | 162 +++ lib/acpi/acpigen.c | 167 +++ test/dm/acpigen.c | 294 + 3 files

[PATCH v4 30/59] x86: Support Atom SoCs using SWSMISCI rather than the SWSCI

2020-09-22 Thread Simon Glass
Some Atom SoCs use SWSMISCI for SMI control. Add a Kconfig to select this. It is used on Apollo Lake. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/Kconfig| 6 ++ arch/x86/cpu/apollolake/Kconfig | 1 + 2 files changed, 7 insertions(+) diff --git

[PATCH v4 32/59] x86: apl: Allow reading hostbridge base addresses

2020-09-22 Thread Simon Glass
Add a few functions to permit reading of various useful base addresses provided by the hostbridge. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Add comments arch/x86/cpu/apollolake/hostbridge.c | 27

[PATCH v4 26/59] acpi: Add support for generating processor tables

2020-09-22 Thread Simon Glass
ACPI has a number of CPU-related tables. Add utility functions to write out the basic packages. Signed-off-by: Simon Glass --- (no changes since v1) include/acpi/acpigen.h | 39 +++ lib/acpi/acpigen.c | 55 + test/dm/acpigen.c | 106

[PATCH v4 25/59] x86: acpi: Support generation of the DBG2 table

2020-09-22 Thread Simon Glass
Add an implementation of the DBG2 (Debug Port Table 2) ACPI table. Adjust one of the header includes to be in the correct order, before adding more. Note that the DBG2 table is generic but the PCI UART is x86-specific at present since it assumes an ns16550 UART. It can be generalised later if

[PATCH v4 24/59] x86: acpi: Support generation of the HPET table

2020-09-22 Thread Simon Glass
Add an implementation of the HPET (High Precision Event Timer) ACPI table. Since this is x86-specific, put it in an x86-specific file Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Put this code in an x86-specific place and update commit message

[PATCH v4 20/59] x86: Add some definitions for SMM

2020-09-22 Thread Simon Glass
U-Boot does not support SMM (System Management Mode) at present, but needs a few definitions to correctly set up the ACPI table. Add these. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/smm.h | 27 +++ 1 file changed, 27 insertions(+)

[PATCH v4 23/59] x86: Add a few common Intel CPU functions

2020-09-22 Thread Simon Glass
Add functions to query CPU information, needed for ACPI. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Add more comments and rename cpu_get_bus_clock to cpu_get_bus_clock_khz() arch/x86/cpu/intel_common/cpu.c | 64 +++

[PATCH v4 22/59] x86: apl: Update iomap for ACPI

2020-09-22 Thread Simon Glass
Add some more definitions to the iomap. These will be used by ACPI-generation code as well as the device tree. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/arch-apollolake/iomap.h | 16 1 file changed, 16 insertions(+) diff --git

[PATCH v4 21/59] x86: apl: Add power-management definitions

2020-09-22 Thread Simon Glass
Add SCI and power-state definitions required by ACPI tables. Fix the license to match the original source file. Als update the guard on acpi_pmc.h to avoid an error when buiding ASL. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Use SHIFT and MASK for defines

[PATCH v4 14/59] dm: acpi: Use correct GPIO polarity type in acpi_dp_add_gpio()

2020-09-22 Thread Simon Glass
This function currently accepts the IRQ-polarity type. Fix it to use the GPIO type instead. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - add new patch to fix polarity type in acpi_dp_add_gpio() drivers/sound/max98357a.c | 2 +- include/acpi/acpi_dp.h| 2 +-

[PATCH v4 19/59] x86: acpi: Add a common routine to write WiFi info

2020-09-22 Thread Simon Glass
Intel WiFi chips can use a common routine to write the information needed by linux. Add an implementation of this. Enable it for coral. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Capitalise ACPI_OPS_PTR - Use acpi,ddn instead of acpi,desc arch/x86/Kconfig

[PATCH v4 18/59] x86: apl: Support writing the IntelGraphicsMem table

2020-09-22 Thread Simon Glass
This table is needed by the Linux graphics driver to handle graphics correctly. Write it to ACPI. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Capitalise ACPI_OPS_PTR - Don't build for SPL arch/x86/Kconfig | 8 +

[PATCH v4 16/59] i2c: Add a generic driver to generate ACPI info

2020-09-22 Thread Simon Glass
Many I2C devices produce roughly the same ACPI data with just things like the GPIO/interrupt information being different. This can be handled by a generic driver along with some information in the device tree. Add a generic i2c driver for this purpose. Signed-off-by: Simon Glass Reviewed-by:

[PATCH v4 17/59] x86: Add wake sources for the acpi_gpe driver

2020-09-22 Thread Simon Glass
Some devices can wake the system from sleep, e.g opening the lid on a clamshell or moving a USB mouse. Add a wake to specify this for USB devices and add the settings for Apollo Lake. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/arch-apollolake/gpe.h | 135

[PATCH v4 11/59] acpi: Add support for writing a _PRW

2020-09-22 Thread Simon Glass
A 'Power Resource for Wake' list the resources a device depends on for wake. Add a function to generate this. Signed-off-by: Simon Glass --- Changes in v4: - Correct comment for dm_test_acpi_write_prw() include/acpi/acpigen.h | 10 ++ lib/acpi/acpigen.c | 10 ++

[PATCH v4 15/59] x86: link: Allow more space for U-Boot

2020-09-22 Thread Simon Glass
The extra ACPI code increases U-Boot above it current size limit. Move the start earlier to provide space. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v2) Changes in v2: - Add new patch to allow more space for U-Boot on link configs/chromebook_link_defconfig | 2

[PATCH v4 13/59] acpi: Support generating a multi-function _DSM for devices

2020-09-22 Thread Simon Glass
Add a function to generate ACPI code for a _DSM method for a device. This includes functions for starting and ending each part of the _DSM. Signed-off-by: Simon Glass --- (no changes since v1) include/acpi/acpi_device.h | 14 + include/acpi/acpigen.h | 99

[PATCH v4 12/59] acpi: Add support for conditions and return values

2020-09-22 Thread Simon Glass
Add functions to support generating ACPI code for condition checks and return values. Signed-off-by: Simon Glass --- (no changes since v1) include/acpi/acpigen.h | 93 ++ lib/acpi/acpigen.c | 68 ++ test/dm/acpigen.c

[PATCH v4 10/59] x86: coral: Add ACPI tables for coral

2020-09-22 Thread Simon Glass
This device has a large set of ACPI tables. Bring these in from coreboot so that full functionality is available (apart from SMI). Signed-off-by: Simon Glass --- Changes in v4: - Add logging when writinge NHLT - Change table version to 3 Changes in v1: - Add NHLT audio support - Capitalise

[PATCH v4 09/59] x86: acpi: Expand the GNVS

2020-09-22 Thread Simon Glass
Expand this to 4KB so that it is possible to add custom information to it. On Chromebooks this is used to pass verified-boot information. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/acpi/global_nvs.h | 2 +- arch/x86/include/asm/intel_gnvs.h | 1 + 2 files

[PATCH v4 07/59] x86: Add a common global NVS structure

2020-09-22 Thread Simon Glass
Add the definition of this structure common to Intel devices. It includes some optional Chrome OS pieces which are used when vboot is integrated. Drop the APL version as it is basically the same. Signed-off-by: Simon Glass --- (no changes since v1) Changes in v1: - Use this file in APL

[PATCH v4 03/59] x86: acpi: apl: Add asl files for Apollo Lake

2020-09-22 Thread Simon Glass
Add Apollo Lake ASL files, taken from coreboot. Signed-off-by: Simon Glass --- (no changes since v1) .../include/asm/arch-apollolake/acpi/dptf.asl | 35 .../asm/arch-apollolake/acpi/globalnvs.asl| 41 .../include/asm/arch-apollolake/acpi/gpio.asl | 191 ++

[PATCH v4 08/59] x86: acpi: Support external GNVS tables

2020-09-22 Thread Simon Glass
At present U-Boot puts a magic number in the ASL for the GNVS table and searches for it later. Add a Kconfig option to use a different approach, where the ASL files declare the table as an external symbol. U-Boot can then put it wherever it likes, without any magic numbers or searching.

[PATCH v4 02/59] x86: acpi: Add base asl files for common x86 devices

2020-09-22 Thread Simon Glass
Add common x86 ASL files, taken from coreboot. Signed-off-by: Simon Glass Tested-by: Wolfgang Wallner --- (no changes since v1) arch/x86/include/asm/acpi/chromeos.asl| 108 + arch/x86/include/asm/acpi/cpu.asl | 25 arch/x86/include/asm/acpi/cros_gnvs.asl |

  1   2   3   >