Re: [PATCH v3 03/10] lib: Makefile: build crc7.c when CONFIG_MMC_SPI

2020-01-26 Thread Jagan Teki
On Fri, Jan 24, 2020 at 1:36 PM Pragnesh Patel wrote: > > > >-Original Message- > >From: Jagan Teki > >Sent: 24 January 2020 11:58 > >To: Pragnesh Patel > >Cc: U-Boot-Denx ; Atish Patra > >; palmerdabb...@google.com; Bin Meng > >; Paul Walmsley ( Sifive) > >; Troy Benjegerdes ( Sifive)

Re: [REGRESSION] [PATCH] common: add blkcache init

2020-01-26 Thread Angelo Dureghello
Hi Marcel, thanks for reporting, the fix should be already in master, please let me know if it works on your hardware. Regards, Angleo On Mon, Jan 27, 2020 at 8:38 AM Marcel Ziswiler wrote: > > Hi Angelo > > On Tue, 2020-01-21 at 10:37 +0100, Angelo Dureghello wrote: > > From: Angelo

Re: [PATCH 1/2] clk: Move clk-gate2 to clock driver directory

2020-01-26 Thread Lukasz Majewski
Hi Sean, > On 1/26/20 3:55 PM, Lukasz Majewski wrote: > > Hi Sean > > > >> Make clk-gate2 available for use outside of imx. > >> > >> Signed-off-by: Sean Anderson > >> --- > >> drivers/clk/Makefile | 1 + > >> drivers/clk/{imx => }/clk-gate2.c | 20 > >>

Re: [GIT] Pull request: u-boot-dfu (26.01.2020)

2020-01-26 Thread Lukasz Majewski
Hi Marek, > On 1/26/20 9:26 PM, Lukasz Majewski wrote: > Hi, > > [...] > > > > > Guillermo Rodríguez (1): > > dfu: Add option to skip empty pages when flashing UBI images > > to > > Can that option be enabled/disabled at

RE: [PATCH v3 07/10] configs: fu540: Add config file for U-boot SPL

2020-01-26 Thread Pragnesh Patel
>-Original Message- >From: Anup Patel >Sent: 25 January 2020 14:12 >To: Jagan Teki >Cc: Pragnesh Patel ; Atish Patra >; Palmer Dabbelt ; U- >Boot-Denx >Subject: Re: [PATCH v3 07/10] configs: fu540: Add config file for U-boot SPL > >On Fri, Jan 24, 2020 at 12:21 PM Jagan Teki >wrote:

RE: [PATCH v3 07/10] configs: fu540: Add config file for U-boot SPL

2020-01-26 Thread Pragnesh Patel
>-Original Message- >From: Anup Patel >Sent: 27 January 2020 13:09 >To: Pragnesh Patel >Cc: Jagan Teki ; Atish Patra >; palmerdabb...@google.com; U-Boot-Denx b...@lists.denx.de> >Subject: Re: [PATCH v3 07/10] configs: fu540: Add config file for U-boot SPL > >On Mon, Jan 27, 2020 at

Re: [PATCH v3 07/10] configs: fu540: Add config file for U-boot SPL

2020-01-26 Thread Anup Patel
On Mon, Jan 27, 2020 at 12:20 PM Pragnesh Patel wrote: > > > >-Original Message- > >From: Jagan Teki > >Sent: 24 January 2020 12:21 > >To: Pragnesh Patel > >Cc: U-Boot-Denx ; Atish Patra > >; palmerdabb...@google.com; Bin Meng > >; Paul Walmsley ( Sifive) > >; Troy Benjegerdes ( Sifive)

[REGRESSION] [PATCH] common: add blkcache init

2020-01-26 Thread Marcel Ziswiler
Hi Angelo On Tue, 2020-01-21 at 10:37 +0100, Angelo Dureghello wrote: > From: Angelo Durgehello > > On m68k, block_cache list is relocated, but next and prev list > pointers are not adjusted to the relocated struct list_head address, > so the first iteration over the block_cache list hangs. >

Re: [PATCH v4 06/12] arm: mvebu: clearfog: Add option for 2.5 Gbps SFP

2020-01-26 Thread Baruch Siach
Hi Joel, On Mon, Jan 27 2020, Joel Johnson wrote: > On 2020-01-26 22:29, Baruch Siach wrote: >> On Mon, Jan 27 2020, Joel Johnson wrote: >>> While newer Linux kernels provide autoconfiguration of SFP, provide >>> an option for setting in U-Boot Kconfig for use prior to booting. >>> >>>

Re: [Patch v4 0/7] Transition of fsl qspi driver to spi-mem framework

2020-01-26 Thread Jagan Teki
Hi Kuldeep, On Mon, Jan 13, 2020 at 12:57 PM Kuldeep Singh wrote: > > This entire patch series migrate freescale qspi driver to spi-mem > framework. > > v4 version of series include removal of buildman failure on LS2080AQDS > build which was observed in cleanup patches. Also, more clear commit >

Re: [PATCH 0/3] spi-nor: Add octal mode support

2020-01-26 Thread Jagan Teki
On Mon, Jan 27, 2020 at 10:43 AM Vignesh Raghavendra wrote: > > > > On 26/01/20 10:12 pm, Jagan Teki wrote: > > On Sun, Jan 26, 2020 at 7:21 PM Jagan Teki > > wrote: > >> > >> On Thu, Dec 5, 2019 at 3:45 PM Vignesh Raghavendra wrote: > >>> > >>> This series adds Octal mode support for Micron's

Re: [PATCH v2 2/2] spi: cadence-qspi: Add direct mode support

2020-01-26 Thread Jagan Teki
On Mon, Jan 27, 2020 at 10:42 AM Vignesh Raghavendra wrote: > > Hi Jagan, > > On 26/01/20 10:13 pm, Jagan Teki wrote: > > On Fri, Jan 17, 2020 at 9:23 PM Simon Goldschmidt > > wrote: > >> > >> On Fri, Jan 17, 2020 at 2:20 PM Simon Goldschmidt > >> wrote: > >>> > >>> On Fri, Jan 17, 2020 at 2:01

Re: [PATCH] dm: i2c-gpio: add support for clock stretching

2020-01-26 Thread Heiko Schocher
Hello Michael, Am 23.01.2020 um 23:30 schrieb Michael Auchter: This adds support for clock stretching to the i2c-gpio driver. This is accomplished by switching the GPIO used for the SCL line to an input when it should be driven high, and polling on the SCL line value until it goes high

[PATCH] Consistently use nproc for counting the CPUs

2020-01-26 Thread Heinrich Schuchardt
Coreutils command nproc can be used on Linux and BSD to count the number of available CPU cores. Use this instead of relying on the parsing of the Linux specific proc file system. Signed-off-by: Heinrich Schuchardt --- board/hisilicon/hikey/build-tf.mak | 2 +- test/common.sh

Re: [PATCH v4 08/16] efi_loader: image_loader: support image authentication

2020-01-26 Thread AKASHI Takahiro
On Thu, Jan 23, 2020 at 06:41:53PM +0100, Heinrich Schuchardt wrote: > On 1/22/20 8:42 AM, AKASHI Takahiro wrote: > >Heinrich, > > > >On Wed, Jan 22, 2020 at 10:13:48AM +0900, AKASHI Takahiro wrote: > >>On Tue, Jan 21, 2020 at 08:15:06AM +0100, Heinrich Schuchardt wrote: > >>>On 1/21/20 7:12 AM,

RE: [PATCH v3 07/10] configs: fu540: Add config file for U-boot SPL

2020-01-26 Thread Pragnesh Patel
>-Original Message- >From: Jagan Teki >Sent: 24 January 2020 12:21 >To: Pragnesh Patel >Cc: U-Boot-Denx ; Atish Patra >; palmerdabb...@google.com; Bin Meng >; Paul Walmsley ( Sifive) >; Troy Benjegerdes ( Sifive) >; Anup Patel ; Sagar >Kadam >Subject: Re: [PATCH v3 07/10] configs:

Re: [PATCH] i2c: gpio: Add custom deblock sequence

2020-01-26 Thread Heiko Schocher
Hello Marek, Am 24.01.2020 um 19:12 schrieb Marek Vasut: Add custom deblock dequence for the I2C bus, needed on some devices. This sequence is issued once, when probing the driver, and is controlled by DT property, "i2c-gpio,deblock". Signed-off-by: Marek Vasut --- drivers/i2c/i2c-gpio.c |

[PATCH 1/2 v1] cmd: doc: Update command return values

2020-01-26 Thread luka . kovacic
From: Luka Kovacic Update the command return values to CMD_RET_SUCCESS and CMD_RET_FAILURE in commands documentation. Signed-off-by: Luka Kovacic --- doc/README.commands | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/README.commands b/doc/README.commands index

[PATCH 2/2 v1] cmd: gpio: Add the command return value to the help text

2020-01-26 Thread luka . kovacic
From: Luka Kovacic Adds the command return value to the help text, since pin value is returned. Cc: Luka Perkov Signed-off-by: Luka Kovacic --- cmd/gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/gpio.c b/cmd/gpio.c index eff36ab2af..e57d3fb638 100644 ---

RE: [EXT] Re: [PATCH] configs: ls1012ardb: Enable CONFIG_SYS_RELOC_GD_ENV_ADDR

2020-01-26 Thread Kuldeep Singh
Hi Priyanka, > -Original Message- > From: Schrempf Frieder > Sent: Tuesday, January 7, 2020 4:36 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: tr...@konsulko.com > Subject: [EXT] Re: [PATCH] configs: ls1012ardb: Enable > CONFIG_SYS_RELOC_GD_ENV_ADDR > > Caution: EXT Email > > On

RE: [PATCH] configs: ls1028aqds: enable mdio muxing by default

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Alex Marginean >Sent: Monday, December 2, 2019 4:28 PM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; Alexandru Marginean > >Subject: [PATCH] configs: ls1028aqds: enable mdio muxing by default > >LS1028A QDS boards have a MDIO MUX and they require the driver for

RE: [Patch v4 1/2] configs: fsl-layerscape: secure_boot: Enable setexpr command

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Udit Agarwal >Sent: Wednesday, November 20, 2019 2:21 PM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; Arun Pathak >; Ruchika Gupta ; Udit >Agarwal >Subject: [Patch v4 1/2] configs: fsl-layerscape: secure_boot: Enable setexpr >command > >setexpr command is

RE: [PATCH v2] board: fsl: lx2160a: Fix the loop in board_fix_fdt function

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Pankaj Bansal >Sent: Wednesday, January 15, 2020 11:27 AM >To: Priyanka Jain ; Meenakshi Aggarwal > >Cc: u-boot@lists.denx.de; Pankaj Bansal >Subject: [PATCH v2] board: fsl: lx2160a: Fix the loop in board_fix_fdt function > >Fix loop in board_fix_fdt that

RE: [PATCH v2] armv8: ls1028a_serdes: add a few missing serdes protocols to supported list

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Alex Marginean >Sent: Saturday, January 11, 2020 3:22 AM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; Alexandru Marginean > >Subject: [PATCH v2] armv8: ls1028a_serdes: add a few missing serdes >protocols to supported list > >These protocols are supported and

RE: [PATCH v4 1/5] board: fsl: lx2160a: free up arch_misc_init

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Alex Marginean >Sent: Saturday, January 11, 2020 4:36 AM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; Alexandru Marginean > >Subject: [PATCH v4 1/5] board: fsl: lx2160a: free up arch_misc_init > >Currently LX2 board code uses arch_misc_init to set up the board

Re: [PATCH] bootcount: make i2c version ready for DM driver

2020-01-26 Thread Heiko Schocher
Hello Holger, Am 22.01.2020 um 09:33 schrieb Holger Brunck: If the board already uses DM_I2C we need to use the dm i2c calls. Signed-off-by: Holger Brunck CC: Heiko Schocher CC: Marek Vasut --- drivers/bootcount/bootcount_i2c.c | 21 + 1 file changed, 21 insertions(+)

RE: [PATCH] drivers: net: fsl_enetc: fix SXGMII MAC configuration

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Alex Marginean >Sent: Saturday, January 11, 2020 3:02 AM >To: u-boot@lists.denx.de >Cc: Joe Hershberger >Subject: [PATCH] drivers: net: fsl_enetc: fix SXGMII MAC configuration > >Separate MAC and serdes configuration, MAC configuration must

RE: [PATCH] lx2160: Correct default environment variable

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Meenakshi Aggarwal >Sent: Friday, January 10, 2020 8:13 PM >To: u-boot@lists.denx.de; Priyanka Jain >Cc: Meenakshi Aggarwal >Subject: [PATCH] lx2160: Correct default environment variable > >Create separate "boot_scripts" and "boot_script_hdr" environment

RE: [RESEND v1 1/2] include/configs: ls1012ardb: adjust kernel_addr_r

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Biwen Li >Sent: Friday, January 10, 2020 2:46 PM >To: Priyanka Jain ; Jagdish Gediya >; Anji Jagarlmudi >Cc: Jiafei Pan ; Xiaobo Xie ; u- >b...@lists.denx.de; Biwen Li >Subject: [RESEND v1 1/2] include/configs: ls1012ardb: adjust kernel_addr_r > >The linux

Re: [PATCH v4 06/12] arm: mvebu: clearfog: Add option for 2.5 Gbps SFP

2020-01-26 Thread Joel Johnson
On 2020-01-26 22:29, Baruch Siach wrote: Hi Joel, On Mon, Jan 27 2020, Joel Johnson wrote: While newer Linux kernels provide autoconfiguration of SFP, provide an option for setting in U-Boot Kconfig for use prior to booting. Signed-off-by: Joel Johnson --- v2 changes: - fixed help

RE: [PATCH v3] armv8: fsl-layerscape: LS1044A/1048A: enable Only 1x 10GE port

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Pramod Kumar >Sent: Thursday, January 9, 2020 2:23 PM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; Pramod Kumar > >Subject: [PATCH v3] armv8: fsl-layerscape: LS1044A/1048A: enable Only 1x >10GE port > >LS1044A, LS1048A are LS1088A personalities, which support

Re: [Patch v4 1/7] spi: Transform the FSL QuadSPI driver to use the SPI MEM API

2020-01-26 Thread Vignesh Raghavendra
Hi, On 13/01/20 12:56 pm, Kuldeep Singh wrote: > To support the SPI MEM API, instead of modifying the existing U-Boot > driver, this patch adds a port of the existing Linux driver. > This also has the advantage that porting changes and fixes from Linux will > be easier. > Porting of driver left

RE: [PATCH] ARM: LS1021A: remove redundant "depends on ARCH_LS1021A"

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Masahiro Yamada >Sent: Wednesday, January 8, 2020 4:17 PM >To: u-boot@lists.denx.de >Cc: Masahiro Yamada ; Alison Wang >; Pankaj Bansal ; >Prabhakar Kushwaha ; Priyanka Jain >; Shengzhou Liu ; Tom >Rini ; Udit Agarwal >Subject: [PATCH] ARM: LS1021A: remove

RE: [PATCH v4] board/lx2160aqds: Update the DSPI status fixup

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Xiaowei Bao >Sent: Wednesday, January 8, 2020 12:00 PM >To: Priyanka Jain ; u-boot@lists.denx.de >Cc: Xiaowei Bao >Subject: [PATCH v4] board/lx2160aqds: Update the DSPI status fixup > >The dts node of the DSPI controller in kernel is spi instead of dspi, it is

[PATCH] board: lx2160aqds: Add support of new serdes protocols.

2020-01-26 Thread Vikas Singh
Add 8_10_0, 21_2_0 and 10_12_3 seredes protocols. Add the IOSLOT and the mezzanine card mapping against each serdes protocol. Signed-off-by: Vikas Singh --- board/freescale/lx2160a/eth_lx2160aqds.c | 84 +++- 1 file changed, 83 insertions(+), 1 deletion(-) diff

RE: [PATCH v2] drivers: net: fsl_enetc: Pass on primary MAC address to Linux

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Alex Marginean >Sent: Tuesday, December 10, 2019 8:26 PM >To: u-boot@lists.denx.de >Cc: Joe Hershberger ; Claudiu Manoil >; Vladimir Oltean >Subject: [PATCH v2] drivers: net: fsl_enetc: Pass on primary MAC address to >Linux > >Passes on the

RE: [PATCH v4 1/4] pci: layerscape: Common device tree fixup for NXP SoCs

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Wasim Khan >Sent: Monday, January 6, 2020 5:36 PM >To: Priyanka Jain >Cc: u-boot@lists.denx.de; Wasim Khan >Subject: [PATCH v4 1/4] pci: layerscape: Common device tree fixup for NXP >SoCs > >Add Common device tree fixup for NXP SoCs. Based on SoC and revision

RE: [PATCH] armv8: ls1012a: Make USB masters snoopable

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Ran Wang >Sent: Thursday, December 26, 2019 3:41 PM >To: Priyanka Jain >Cc: open list ; Ran Wang >Subject: [PATCH] armv8: ls1012a: Make USB masters snoopable > >Program register bit of SCFG_SNPCNFGCR_USBRDSNP and >SCFG_SNPCNFGCR_USBWRSNP to drive USB

RE: [PATCH v2 2/2] drivers: net: fsl_enetc: add write_hwaddr() for LS1028A

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Michael Walle >Sent: Friday, December 20, 2019 6:47 PM >To: u-boot@lists.denx.de >Cc: Joe Hershberger >Subject: [PATCH v2 2/2] drivers: net: fsl_enetc: add write_hwaddr() for >LS1028A > >The LS1028A SoC is special in the handling of the MAC

RE: [PATCH v2 1/2] drivers: net: fsl_enetc: use write_hwaddr()

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Michael Walle >Sent: Friday, December 20, 2019 6:47 PM >To: u-boot@lists.denx.de >Cc: Joe Hershberger >Subject: [PATCH v2 1/2] drivers: net: fsl_enetc: use write_hwaddr() > >Intead of setting the MAC address in enetc_start() use the proper

RE: [PATCH v3] board: ls1046afwry: Disable sgmii support

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Pramod Kumar >Sent: Friday, December 20, 2019 4:50 PM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; Pramod Kumar > >Subject: [PATCH v3] board: ls1046afwry: Disable sgmii support > >LS1046A SoC serdes protocol 0x3040 supports both sgmi and qsgmii, however

RE: [PATCH 1/2] pci: layerscape: Fix the disabling of Expansion ROM BAR

2020-01-26 Thread Priyanka Jain
>-Original Message- >From: Z.q. Hou >Sent: Tuesday, December 17, 2019 3:41 PM >To: u-boot@lists.denx.de; Priyanka Jain ; M.h. Lian > >Cc: Z.q. Hou >Subject: [PATCH 1/2] pci: layerscape: Fix the disabling of Expansion ROM BAR > >From: Hou Zhiqiang > >The software will still get non-zero

Re: [U-Boot Patch v1 6/7] nor: add post bfpt fix handler for is25wp256 device

2020-01-26 Thread Vignesh Raghavendra
On 24/01/20 11:58 am, Sagar Kadam wrote: > Hello Vignesh, > >> -Original Message- >> From: Vignesh Raghavendra >> Sent: Friday, January 24, 2020 10:24 AM >> To: Sagar Kadam ; u-boot@lists.denx.de >> Cc: Paul Walmsley ( Sifive) ; >> anup.pa...@wdc.com; i...@andestech.com;

Re: [PATCH v4 06/12] arm: mvebu: clearfog: Add option for 2.5 Gbps SFP

2020-01-26 Thread Baruch Siach
Hi Joel, On Mon, Jan 27 2020, Joel Johnson wrote: > While newer Linux kernels provide autoconfiguration of SFP, provide > an option for setting in U-Boot Kconfig for use prior to booting. > > Signed-off-by: Joel Johnson > > --- > > v2 changes: > - fixed help indentation > v3 changes: > -

Re: [PATCH v4 02/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-26 Thread Keerthy
On 27/01/20 10:01 am, Keerthy wrote: On 24/01/20 8:24 pm, Tom Rini wrote: On Wed, Jan 22, 2020 at 09:29:57AM +0530, Keerthy wrote: Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. Signed-off-by: Keerthy

[PATCH 108/108] x86: coral: Update config and device tree for ACPI

2020-01-26 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 --- arch/x86/dts/chromebook_coral.dts | 193 - configs/chromebook_coral_defconfig | 14 ++- 2 files changed, 199

Re: [PATCH v2 2/2] spi: cadence-qspi: Add direct mode support

2020-01-26 Thread Vignesh Raghavendra
Hi Jagan, On 26/01/20 10:13 pm, Jagan Teki wrote: > On Fri, Jan 17, 2020 at 9:23 PM Simon Goldschmidt > wrote: >> >> On Fri, Jan 17, 2020 at 2:20 PM Simon Goldschmidt >> wrote: >>> >>> On Fri, Jan 17, 2020 at 2:01 PM Vignesh Raghavendra wrote: [...] >> void

Re: [PATCH 0/3] spi-nor: Add octal mode support

2020-01-26 Thread Vignesh Raghavendra
On 26/01/20 10:12 pm, Jagan Teki wrote: > On Sun, Jan 26, 2020 at 7:21 PM Jagan Teki wrote: >> >> On Thu, Dec 5, 2019 at 3:45 PM Vignesh Raghavendra wrote: >>> >>> This series adds Octal mode support for Micron's mt35x flash. >>> Also adds Octal mode support for Cadance OSPI/QSPI controller.

[PATCH 102/108] x86: Add a layout for Chrome OS verified boot

2020-01-26 Thread Simon Glass
Add definitions for part of the vboot context used with verified boot. Signed-off-by: Simon Glass --- arch/x86/include/asm/acpi/vbnv_layout.h | 41 + 1 file changed, 41 insertions(+) create mode 100644 arch/x86/include/asm/acpi/vbnv_layout.h diff --git

[PATCH 104/108] x86: Add a header guard to asm/acpi_table.h

2020-01-26 Thread Simon Glass
This file cannot currently be included in ASL files. Add a header guard to permit this. Signed-off-by: Simon Glass --- arch/x86/include/asm/acpi_table.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/include/asm/acpi_table.h b/arch/x86/include/asm/acpi_table.h index

[PATCH 107/108] acpi: tpm: Add a TPM1 table

2020-01-26 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 --- arch/x86/lib/acpi_table.c | 52 ++-

[PATCH 105/108] x86: Correct handling of MADT table CPUs

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

[PATCH 106/108] acpi: tpm: Add a TPM2 table

2020-01-26 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 --- arch/x86/lib/acpi_table.c | 74 +++ include/acpi_table.h | 11 ++ include/bloblist.h| 1 + 3 files changed, 86

[PATCH 100/108] x86: Add a way to add to the e820 memory table

2020-01-26 Thread Simon Glass
Some boards want to reserve extra regions of memory. Add a 'chosen' property to support this. Signed-off-by: Simon Glass --- arch/x86/lib/fsp/fsp_dram.c | 16 doc/device-tree-bindings/chosen.txt | 18 ++ 2 files changed, 34 insertions(+) diff --git

[PATCH 098/108] x86: cpu: Report address width from cpu_get_info()

2020-01-26 Thread Simon Glass
Add support for this new field in the common code used by most x86 CPU drivers. Signed-off-by: Simon Glass --- arch/x86/cpu/i386/cpu.c | 23 +++ arch/x86/cpu/intel_common/cpu.c | 1 + arch/x86/include/asm/cpu.h | 9 + 3 files changed, 33 insertions(+)

[PATCH 103/108] x86: Correct the assembly guard in e802.h

2020-01-26 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 --- arch/x86/include/asm/e820.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/include/asm/e820.h b/arch/x86/include/asm/e820.h index

[PATCH 099/108] x86: Sort the MTRR table

2020-01-26 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 --- arch/x86/cpu/mtrr.c | 12 1 file

[PATCH 101/108] x86: Notify the FSP of the 'end firmware' event

2020-01-26 Thread Simon Glass
Send this notification when U-Boot is about to boot into Linux, as requested by the FSP. Signed-off-by: Simon Glass --- arch/x86/cpu/cpu.c| 15 +++ arch/x86/lib/fsp/fsp_common.c | 16 2 files changed, 31 insertions(+) diff --git a/arch/x86/cpu/cpu.c

[PATCH 096/108] tpm: cr50: Add ACPI support

2020-01-26 Thread Simon Glass
Generate ACPI information for this device so that Linux can use it correctly. Signed-off-by: Simon Glass --- drivers/tpm/cr50_i2c.c | 55 ++ 1 file changed, 55 insertions(+) diff --git a/drivers/tpm/cr50_i2c.c b/drivers/tpm/cr50_i2c.c index

[PATCH 097/108] x86: fsp: Update the FSP API with the end-firmware method

2020-01-26 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 --- arch/x86/include/asm/fsp/fsp_api.h

[PATCH 095/108] x86: apl: Drop unnecessary code in PMC driver

2020-01-26 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 --- arch/x86/cpu/apollolake/pmc.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

[PATCH 092/108] x86: acpi: Add support for additional DMAR tables

2020-01-26 Thread Simon Glass
Apollo Lake needs to generate a few more table types. Add support for these into the x86 ACPI code. Signed-off-by: Simon Glass --- arch/x86/lib/acpi_table.c | 115 ++ include/acpi_table.h | 37 2 files changed, 152 insertions(+) diff

[PATCH 093/108] x86: apl: Generate CPU tables

2020-01-26 Thread Simon Glass
Add ACPI generation to the APL CPU driver. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/cpu.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/x86/cpu/apollolake/cpu.c b/arch/x86/cpu/apollolake/cpu.c index 3ae99ccf04..0af1b0c2cb 100644 ---

[PATCH 091/108] x86: apl: Generate required ACPI tables

2020-01-26 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 --- arch/x86/cpu/apollolake/Makefile| 1 + arch/x86/cpu/apollolake/acpi.c | 437

[PATCH 094/108] x86: apl: Generate ACPI table for LPC

2020-01-26 Thread Simon Glass
Add an ACPI table for the LPC on Apollo Lake. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/lpc.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/x86/cpu/apollolake/lpc.c b/arch/x86/cpu/apollolake/lpc.c index 45b2144fc6..7c0ebf332b 100644 ---

[PATCH 087/108] x86: apl: Add a check for reading the FSP-S config

2020-01-26 Thread Simon Glass
This currently fails as two required items are commented out. Put them back in and add a check that reading the config succeeds. Both of these items need a little more work to put them in an appropriate driver at some point. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/fsp_s.c |

[PATCH 088/108] x86: apl: Store FSP-S config for later use

2020-01-26 Thread Simon Glass
Some ACPI tables need to include information from the FSP-S config. Rather than reading it again later, store a pointer to it for use by the ACPI code. The FSP-S config is read just after relocation, so can be used during this phase of U-Boot. Signed-off-by: Simon Glass ---

[PATCH 090/108] x86: apl: Add support for hostbridge ACPI generation

2020-01-26 Thread Simon Glass
Support generating a DMAR table and add a few helper routines as well. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/hostbridge.c | 104 ++ .../include/asm/arch-apollolake/systemagent.h | 6 + 2 files changed, 110 insertions(+) diff --git

[PATCH 089/108] p2sb: Add some definitions used for ACPI

2020-01-26 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 --- include/p2sb.h | 8 1 file changed, 8 insertions(+) diff --git a/include/p2sb.h b/include/p2sb.h index 93e1155dca..a25170e3d1 100644 ---

[PATCH 083/108] x86: acpi: Support generation of the HPET table

2020-01-26 Thread Simon Glass
Add an implementation of the HPET (High Precision Event Timer) ACPI table. Signed-off-by: Simon Glass --- arch/x86/lib/acpi_table.c | 54 +++ include/acpi_table.h | 32 --- 2 files changed, 77 insertions(+), 9 deletions(-) diff

[PATCH 086/108] x86: Support Atom SoCs using SWSMISCI rather than the SWSCI

2020-01-26 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 --- arch/x86/Kconfig| 6 ++ arch/x86/cpu/apollolake/Kconfig | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/x86/Kconfig

[PATCH 085/108] x86: acpi: Add common Intel ACPI tables

2020-01-26 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 --- arch/x86/cpu/intel_common/Makefile | 2 + arch/x86/cpu/intel_common/acpi.c | 441 + arch/x86/include/asm/acpi_table.h | 5 +

[PATCH 080/108] cpu: Convert the methods to use a const udevice *

2020-01-26 Thread Simon Glass
These functions should not modify the device. Convert them to const so that callers don't need to cast if they have a const udevice *. Signed-off-by: Simon Glass --- arch/nios2/cpu/cpu.c | 8 +--- arch/x86/cpu/apollolake/cpu.c| 4 ++-- arch/x86/cpu/baytrail/cpu.c

[PATCH 084/108] x86: acpi: Support generation of the DBG2 table

2020-01-26 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. Signed-off-by: Simon Glass --- arch/x86/lib/acpi_table.c | 112 +- include/acpi_table.h | 31

[PATCH 082/108] x86: Add a few common Intel CPU functions

2020-01-26 Thread Simon Glass
Add functions to query CPU information, needed for ACPI. Signed-off-by: Simon Glass --- arch/x86/cpu/intel_common/cpu.c | 59 +++ arch/x86/include/asm/cpu_common.h | 31 2 files changed, 90 insertions(+) diff --git

[PATCH 081/108] x86: apl: Update iomap for ACPI

2020-01-26 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 --- arch/x86/include/asm/arch-apollolake/iomap.h | 17 + 1 file changed, 17 insertions(+) diff --git

[PATCH 042/108] acpi: Add an acpi split command

2020-01-26 Thread Simon Glass
Add a command that shows the individual blocks of data generated by each device. This can be helpful for debugging. Signed-off-by: Simon Glass --- cmd/acpi.c | 15 +-- drivers/core/acpi.c | 18 ++ include/dm/acpi.h | 10 ++ test/dm/acpi.c |

[PATCH 079/108] x86: Add a common global NVS structure

2020-01-26 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. Signed-off-by: Simon Glass --- arch/x86/include/asm/intel_gnvs.h | 43 +++ 1 file changed, 43 insertions(+) create mode

[PATCH 078/108] x86: apl: Add power-management definitions

2020-01-26 Thread Simon Glass
Add SCI and power-state definitions required by ACPI tables. Update the guard on acpi_pmc.h to avoid an error when buiding ASL. Signed-off-by: Simon Glass --- arch/x86/include/asm/arch-apollolake/pm.h | 56 +++ include/power/acpi_pmc.h | 4 +- 2 files

[PATCH 075/108] x86: apl: Support writing the IntelGraphicsMem table

2020-01-26 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 --- arch/x86/Kconfig | 8 + arch/x86/cpu/apollolake/Kconfig| 1 + arch/x86/cpu/intel_common/Makefile | 2 +

[PATCH 076/108] x86: acpi: Add a common routine to write WiFi info

2020-01-26 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 --- arch/x86/Kconfig | 8 ++ arch/x86/cpu/intel_common/Makefile | 1 +

[PATCH 074/108] x86: Add a config for the systemagent PCIEX regions size

2020-01-26 Thread Simon Glass
Add a way to specify the required size for this region. This is used when generating ACPI tables. Signed-off-by: Simon Glass --- arch/x86/Kconfig| 18 ++ arch/x86/cpu/apollolake/Kconfig | 1 + 2 files changed, 19 insertions(+) diff --git a/arch/x86/Kconfig

[PATCH 072/108] x86: acpi: Expand the GNVS

2020-01-26 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 --- arch/x86/include/asm/acpi/global_nvs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 077/108] x86: Add some definitions for SMM

2020-01-26 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 --- arch/x86/include/asm/smm.h | 36 1 file changed, 36 insertions(+) create mode 100644

[PATCH 073/108] x86: Add wake sources for the acpi_gpe driver

2020-01-26 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 --- arch/x86/include/asm/arch-apollolake/gpe.h | 134

[PATCH 067/108] x86: acpi: apl: Add asl files for Apollo Lake

2020-01-26 Thread Simon Glass
Add Apollo Lake ASL files, taken from coreboot. Signed-off-by: Simon Glass --- .../include/asm/arch-apollolake/acpi/dptf.asl | 35 .../asm/arch-apollolake/acpi/globalnvs.asl| 41 .../include/asm/arch-apollolake/acpi/gpio.asl | 191 ++

[PATCH 071/108] x86: acpi: Support external GNVS tables

2020-01-26 Thread Simon Glass
At present U-Boot puts a magic number in the ASL for the GNVS table and searches for 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 068/108] x86: acpi: Add DPTF asl files

2020-01-26 Thread Simon Glass
Add common DPTF (Intel Dynamic Performance and Thermal Framework) files, taken from coreboot. Signed-off-by: Simon Glass --- arch/x86/include/asm/acpi/dptf/charger.asl | 65 +++ arch/x86/include/asm/acpi/dptf/cpu.asl | 186 arch/x86/include/asm/acpi/dptf/dptf.asl| 121 +

[PATCH 065/108] acpi: Add cros_ec tables

2020-01-26 Thread Simon Glass
Add ASL files for the Chrome OS EC, taken from coreboot. Signed-off-by: Simon Glass --- arch/x86/include/asm/acpi/cros_ec/ac.asl | 22 + arch/x86/include/asm/acpi/cros_ec/als.asl | 56 ++ arch/x86/include/asm/acpi/cros_ec/battery.asl | 411 +

[PATCH 069/108] x86: apl: Correct PCIE_ECAM_BASE

2020-01-26 Thread Simon Glass
This value is incorrect and causes problems booting Linux. Fix it. Signed-off-by: Simon Glass --- board/google/chromebook_coral/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/google/chromebook_coral/Kconfig b/board/google/chromebook_coral/Kconfig index

[PATCH 070/108] x86: coral: Add ACPI tables for coral

2020-01-26 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 --- board/google/chromebook_coral/Makefile| 1 + .../chromebook_coral/baseboard_dptf.asl | 71

[PATCH 066/108] x86: acpi: Add base asl files for common x86 devices

2020-01-26 Thread Simon Glass
Add common x86 ASL files, taken from coreboot. Signed-off-by: Simon Glass --- arch/x86/include/asm/acpi/chromeos.asl| 110 + arch/x86/include/asm/acpi/cpu.asl | 25 arch/x86/include/asm/acpi/cros_gnvs.asl | 29 + arch/x86/include/asm/acpi/lpc.asl

[PATCH 063/108] x86: Rename board_final_cleanup() to board_final_init()

2020-01-26 Thread Simon Glass
This function sounds like something that is called when U-Boot is about to jump to Linux. In fact it is an init function. Rename it to reduce confusion. Signed-off-by: Simon Glass --- arch/x86/cpu/coreboot/coreboot.c | 4 ++-- arch/x86/cpu/cpu.c | 8

[PATCH 061/108] x86: irq: Support flags for acpi_gpe

2020-01-26 Thread Simon Glass
This binding currently has a flags cell but it is not used. Make use of it to create ACPI tables for interrupts. Signed-off-by: Simon Glass --- arch/x86/cpu/acpi_gpe.c | 22 +++ .../interrupt-controller/x86-irq.h| 14 2 files

[PATCH 064/108] acpi: Enable ACPI table generation by default on x86

2020-01-26 Thread Simon Glass
This should ideally be used by all x86 boards in U-Boot. Enable it by default. If some boards don't use it, the cost is small. Signed-off-by: Simon Glass --- arch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/Kconfig b/arch/Kconfig index ae9c93ed7b..4454fb0f9a 100644 ---

[PATCH 056/108] i2c: Add a generic driver to generate ACPI info

2020-01-26 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 ---

[PATCH 059/108] x86: apl: Hide the p2sb on exit from U-Boot

2020-01-26 Thread Simon Glass
This confuses Linux's PCI probing so needs to be hidden when booting Linux. Add a remove() method to handle this. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/p2sb.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/x86/cpu/apollolake/p2sb.c

[PATCH 058/108] x86: apl: Support set_hide() in p2sb driver

2020-01-26 Thread Simon Glass
Add support for this new method in the driver and in the fsp-s setup. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/fsp_s.c | 27 ++- arch/x86/cpu/apollolake/p2sb.c | 30 ++ 2 files changed, 40 insertions(+), 17 deletions(-) diff

[PATCH 062/108] x86: Add debugging to table writing

2020-01-26 Thread Simon Glass
Writing tables is currently pretty opaque. Add a bit of debugging to the process so we can see what tables are written and where they start/end in memory. Signed-off-by: Simon Glass --- arch/x86/lib/tables.c | 35 ++- 1 file changed, 26 insertions(+), 9

[PATCH 060/108] pmc: Move common registers to the header file

2020-01-26 Thread Simon Glass
These registers need to be accesses from ACPI code, so move them to the header file. Signed-off-by: Simon Glass --- drivers/power/acpi_pmc/acpi-pmc-uclass.c | 9 - include/power/acpi_pmc.h | 14 ++ 2 files changed, 14 insertions(+), 9 deletions(-) diff

  1   2   3   >