[PATCH v2 3/5] bootm: Support boot measurement

2023-01-09 Thread Eddie James
Add a configuration option to measure the boot through the bootm function. Signed-off-by: Eddie James --- boot/Kconfig| 23 ++ boot/bootm.c| 64 + cmd/bootm.c | 2 ++ include/bootm.h | 2 ++ include/image.h | 1 + 5

[PATCH v2 4/5] tpm: sandbox: Update for needed TPM2 capabilities

2023-01-09 Thread Eddie James
The driver needs to support getting the PCRs in the capabilities command. Fix various other things and support the max number of PCRs for TPM2. Signed-off-by: Eddie James --- drivers/tpm/tpm2_tis_sandbox.c | 100 - 1 file changed, 72 insertions(+), 28 deletions

[PATCH v2 5/5] test: Add sandbox TPM boot measurement

2023-01-09 Thread Eddie James
Use the sandbox TPM driver to measure some boot images in a unit test case. $ ./u-boot -T -c "ut measurement" Running 1 measurement tests Test: measure: measurement.c Failures: 0 Signed-off-by: Eddie James --- arch/sandbox/dts/test.dts | 12 +++ configs/sandbox_defconfig | 1

[PATCH v2 2/5] tpm: Support boot measurements

2023-01-09 Thread Eddie James
Add TPM2 functions to support boot measurement. This includes starting up the TPM, initializing/appending the event log, and measuring the U-Boot version. Much of the code was used in the EFI subsystem, so remove it there and use the common functions. Signed-off-by: Eddie James --- include

[PATCH v2 0/5] tpm: Support boot measurements

2023-01-09 Thread Eddie James
sandbox TPM driver Eddie James (5): tpm: Fix spelling for tpmu_ha union tpm: Support boot measurements bootm: Support boot measurement tpm: sandbox: Update for needed TPM2 capabilities test: Add sandbox TPM boot measurement arch/sandbox/dts/test.dts | 12 + boot/Kconfig

Re: [PATCH v2 5/5] test: Add sandbox TPM boot measurement

2023-01-10 Thread Eddie James
On 1/9/23 17:26, Heinrich Schuchardt wrote: On 1/10/23 00:13, Heinrich Schuchardt wrote: On 1/9/23 22:55, Eddie James wrote: Use the sandbox TPM driver to measure some boot images in a unit test case. $ ./u-boot -T -c "ut measurement" Running 1 measurement tests Test: measure: mea

Re: [PATCH v2 0/5] tpm: Support boot measurements

2023-01-10 Thread Eddie James
On 1/9/23 17:35, Heinrich Schuchardt wrote: On 1/9/23 22:55, Eddie James wrote: This series adds support for measuring the boot images more generically than the existing EFI support. Several EFI functions have been moved to the TPM layer. The series includes optional measurement from the

Re: [PATCH v2 5/5] test: Add sandbox TPM boot measurement

2023-01-10 Thread Eddie James
On 1/10/23 16:02, Heinrich Schuchardt wrote: On 1/10/23 17:38, Eddie James wrote: On 1/9/23 17:26, Heinrich Schuchardt wrote: On 1/10/23 00:13, Heinrich Schuchardt wrote: On 1/9/23 22:55, Eddie James wrote: Use the sandbox TPM driver to measure some boot images in a unit test case. $ ./u

Re: [PATCH v2 5/5] test: Add sandbox TPM boot measurement

2023-01-11 Thread Eddie James
On 1/10/23 16:37, Heinrich Schuchardt wrote: On 1/10/23 23:32, Heinrich Schuchardt wrote: On 1/9/23 22:55, Eddie James wrote: Use the sandbox TPM driver to measure some boot images in a unit test case. $ ./u-boot -T -c "ut measurement" Running 1 measurement tests Tes

[PATCH v3 1/6] tpm: Fix spelling for tpmu_ha union

2023-01-12 Thread Eddie James
tmpu -> tpmu Signed-off-by: Eddie James Reviewed-by: Ilias Apalodimas --- include/tpm-v2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tpm-v2.h b/include/tpm-v2.h index 737e57551d..85feda3e06 100644 --- a/include/tpm-v2.h +++ b/include/tpm-v2.h @@ -16

[PATCH v3 0/6] tpm: Support boot measurements

2023-01-12 Thread Eddie James
since v1: - Refactor TPM layer functions to allow EFI system to use them, and remove duplicate EFI functions. - Add test case - Drop #ifdefs for bootm - Add devicetree measurement config option - Update sandbox TPM driver Eddie James (6): tpm: Fix spelling for tpmu_ha union tpm

[PATCH v3 3/6] bootm: Support boot measurement

2023-01-12 Thread Eddie James
Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well. Signed-off-by: Eddie James --- boot/Kconfig| 23 boot/bootm.c| 70 + cmd/booti.c

[PATCH v3 5/6] test: Add sandbox TPM boot measurement

2023-01-12 Thread Eddie James
Use the sandbox TPM driver to measure some boot images in a unit test case. Signed-off-by: Eddie James --- arch/sandbox/dts/sandbox.dtsi | 14 arch/sandbox/dts/test.dts | 13 +++ configs/sandbox_defconfig | 1 + include/test/suites.h | 1 + test/boot/Makefile

[PATCH v3 4/6] tpm: sandbox: Update for needed TPM2 capabilities

2023-01-12 Thread Eddie James
The driver needs to support getting the PCRs in the capabilities command. Fix various other things and support the max number of PCRs for TPM2. Signed-off-by: Eddie James Reviewed-by: Simon Glass --- drivers/tpm/tpm2_tis_sandbox.c | 100 - 1 file changed, 72

[PATCH v3 6/6] doc: Add measured boot documentation

2023-01-12 Thread Eddie James
Briefly describe the feature and specify the requirements. Signed-off-by: Eddie James --- doc/usage/index.rst | 1 + doc/usage/measured_boot.rst | 23 +++ 2 files changed, 24 insertions(+) create mode 100644 doc/usage/measured_boot.rst diff --git a/doc/usage

[PATCH v3 2/6] tpm: Support boot measurements

2023-01-12 Thread Eddie James
Add TPM2 functions to support boot measurement. This includes starting up the TPM, initializing/appending the event log, and measuring the U-Boot version. Much of the code was used in the EFI subsystem, so remove it there and use the common functions. Signed-off-by: Eddie James --- include

Re: [PATCH v3 2/6] tpm: Support boot measurements

2023-01-13 Thread Eddie James
On 1/12/23 17:43, Simon Glass wrote: Hi Eddie, On Thu, 12 Jan 2023 at 09:16, Eddie James wrote: Add TPM2 functions to support boot measurement. This includes starting up the TPM, initializing/appending the event log, and measuring the U-Boot version. Much of the code was used in the EFI

Re: [PATCH] tpm: measure DTB in PCR1 instead of PCR0

2024-06-14 Thread Eddie James
there. There's no mention of ACPI in 3.3.4.2 PCR[1] – Host Platform Configuration. However, in Figure 6 -- PCR Mapping of UEFI Components ACPI is shown in PCR1. The general description also mentions PCR0 is for code and PCR1 is for data such as ACPI and SMBIOS. Thanks, looks correct. Reviewed

Re: [PATCH v4 2/6] tpm: Support boot measurements

2023-02-02 Thread Eddie James
On 1/26/23 01:51, Ilias Apalodimas wrote: Hi Eddie, Thanks for the cleanup! Unfortunately this doesn't compile with EFI selected, but in general it looks pretty good. Thanks, yes I forgot to remove tcg2_pcr_read On Wed, Jan 25, 2023 at 11:18:06AM -0600, Eddie James wrote: Add

[PATCH v5 1/6] tpm: Fix spelling for tpmu_ha union

2023-02-02 Thread Eddie James
tmpu -> tpmu Signed-off-by: Eddie James Reviewed-by: Ilias Apalodimas --- include/tpm-v2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tpm-v2.h b/include/tpm-v2.h index 1c644f0048..84034c1559 100644 --- a/include/tpm-v2.h +++ b/include/tpm-v2.h @@ -16

[PATCH v5 3/6] bootm: Support boot measurement

2023-02-02 Thread Eddie James
Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well. Signed-off-by: Eddie James --- Changes since v4: - Change PCR indexes for initrd and dtb Changes since v2: - Add measure state to booti and bootz. - Skip

[PATCH v5 4/6] tpm: sandbox: Update for needed TPM2 capabilities

2023-02-02 Thread Eddie James
The driver needs to support getting the PCRs in the capabilities command. Fix various other things and support the max number of PCRs for TPM2. Signed-off-by: Eddie James Reviewed-by: Simon Glass Acked-by: Ilias Apalodimas --- drivers/tpm/tpm2_tis_sandbox.c | 100

[PATCH v5 0/6] tpm: Support boot measurements

2023-02-02 Thread Eddie James
mages that should be measured Changes since v1: - Refactor TPM layer functions to allow EFI system to use them, and remove duplicate EFI functions. - Add test case - Drop #ifdefs for bootm - Add devicetree measurement config option - Update sandbox TPM driver Eddie James (6): tpm: Fix sp

[PATCH v5 5/6] test: Add sandbox TPM boot measurement

2023-02-02 Thread Eddie James
Use the sandbox TPM driver to measure some boot images in a unit test case. Signed-off-by: Eddie James Reviewed-by: Simon Glass --- Changes since v4: - Drop u8 casting in measurement test Changes since v2: - Changed reserved memory address to the top of the RAM for sandbox dts. arch

[PATCH v5 6/6] doc: Add measured boot documentation

2023-02-02 Thread Eddie James
Briefly describe the feature and specify the requirements. Signed-off-by: Eddie James --- Changes since v4: - Use bullets for the requirements list doc/usage/index.rst | 1 + doc/usage/measured_boot.rst | 23 +++ 2 files changed, 24 insertions(+) create mode

[PATCH v5 2/6] tpm: Support boot measurements

2023-02-02 Thread Eddie James
Add TPM2 functions to support boot measurement. This includes starting up the TPM, initializing/appending the event log, and measuring the U-Boot version. Much of the code was used in the EFI subsystem, so remove it there and use the common functions. Signed-off-by: Eddie James --- Changes since

Re: [PATCH v4 2/6] tpm: Support boot measurements

2023-02-02 Thread Eddie James
On 2/2/23 11:12, Simon Glass wrote: Hi Eddie / Ilias, On Thu, 2 Feb 2023 at 09:24, Eddie James wrote: On 1/26/23 01:51, Ilias Apalodimas wrote: Hi Eddie, Thanks for the cleanup! Unfortunately this doesn't compile with EFI selected, but in general it looks pretty good. Thanks,

[PATCH] i2c: ast_i2c: Remove SCL direct drive mode

2022-05-11 Thread Eddie James
SCL direct drive mode prevents communication with devices that do clock stretching, so disable. The Linux driver doesn't use this mode, and the engine can handle clock stretching. Signed-off-by: Eddie James --- drivers/i2c/ast_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 0/2] tpm: Add support for TPMv2.x I2C chips

2022-05-13 Thread Eddie James
Add a tpm driver that should support any TPMv2 compliant I2C chips, such as the NPCT75X chip. In my testing I also noticed that the timeouts weren't set before requesting the locality so I have included a fix. Eddie James (2): tpm: core: Set timeouts before requesting locality tpm

[PATCH 1/2] tpm: core: Set timeouts before requesting locality

2022-05-13 Thread Eddie James
Requesting the locality uses the timeout values, so they need to be set beforehand. Signed-off-by: Eddie James --- drivers/tpm/tpm2_tis_core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/tpm/tpm2_tis_core.c b/drivers/tpm/tpm2_tis_core.c index 51392c4584

[PATCH 2/2] tpm: add support for TPMv2.x I2C chips

2022-05-13 Thread Eddie James
Add the tpm2_tis_i2c driver that should support any TPMv2 compliant I2C chips, such as the NPCT75X chip. Signed-off-by: Eddie James --- drivers/tpm/Kconfig| 9 ++ drivers/tpm/Makefile | 1 + drivers/tpm/tpm2_tis_i2c.c | 171 + 3 files

Re: [PATCH 2/2] tpm: add support for TPMv2.x I2C chips

2022-05-23 Thread Eddie James
On 5/23/22 01:12, Ilias Apalodimas wrote: Hi Eddie, Thanks for the patch. [...] +static const struct tpm_tis_chip_data tpm_tis_std_chip_data = { + .pcr_count = 24, + .pcr_select_min = 3, +}; + +static const struct udevice_id tpm_tis_i2c_ids[] = { + { + .compa

[PATCH] arm: dts: ast2600: Add I2C pinctrl

2022-06-01 Thread Eddie James
Set the pinctrl groups for each I2C bus. These are essential to I2C operating correctly. Signed-off-by: Eddie James --- arch/arm/dts/ast2600.dtsi | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/dts/ast2600.dtsi b/arch/arm/dts/ast2600.dtsi index

[U-Boot] [PATCH] ARM: aspeed: Add SD host controller driver

2019-08-12 Thread Eddie James
Add support for the Aspeed SD host controller engine. This involves adding an MMC SDHCI driver and various additions to the clock and reset drivers for Aspeed chips. Signed-off-by: Eddie James --- arch/arm/include/asm/arch-aspeed/scu_ast2500.h | 3 + arch/arm/include/asm/gpio.h

Re: [U-Boot] [PATCH] ARM: aspeed: Add SD host controller driver

2019-08-13 Thread Eddie James
drivers for Aspeed chips. Signed-off-by: Eddie James --- arch/arm/include/asm/arch-aspeed/scu_ast2500.h | 3 + arch/arm/include/asm/gpio.h| 3 +- arch/arm/mach-aspeed/ast2500-board.c | 3 + drivers/clk/aspeed/clk_ast2500.c | 27 + drivers

[U-Boot] [PATCH v2 1/4] clk: aspeed: Add support for SD clock

2019-08-13 Thread Eddie James
Add code to enable the SD clock on the ast2500 SoC. Signed-off-by: Eddie James --- arch/arm/include/asm/arch-aspeed/scu_ast2500.h | 3 +++ drivers/clk/aspeed/clk_ast2500.c | 27 ++ drivers/pinctrl/aspeed/pinctrl_ast2500.c | 2 ++ 3 files changed, 32

[U-Boot] [PATCH v2 2/4] mmc: Add Aspeed SD controller driver

2019-08-13 Thread Eddie James
Add support for the Aspeed SD host controller engine. Signed-off-by: Eddie James --- drivers/mmc/Kconfig| 11 +++ drivers/mmc/Makefile | 1 + drivers/mmc/aspeed_sdhci.c | 78 ++ 3 files changed, 90 insertions(+) create mode 100644

[U-Boot] [PATCH v2 0/4] ARM: aspeed: Add SD host controller driver

2019-08-13 Thread Eddie James
This series adds support for the SD host controller on Aspeed ast2XXX SocS. It also enables MMC and the SD controller on the ast2500 EVB. Changes since v1: - split the patch up - Add defconfig and dts changes Eddie James (4): clk: aspeed: Add support for SD clock mmc: Add Aspeed SD

[U-Boot] [PATCH v2 4/4] ARM: dts: ast2500: Add SDHCI nodes

2019-08-13 Thread Eddie James
Add nodes for the Aspeed SD controllers with their necessary properties. Signed-off-by: Eddie James --- arch/arm/dts/ast2500-evb.dts | 14 ++ arch/arm/dts/ast2500-u-boot.dtsi | 16 2 files changed, 30 insertions(+) diff --git a/arch/arm/dts/ast2500-evb.dts b

[U-Boot] [PATCH v2 3/4] aspeed: Support SD controller on the ast2500 board

2019-08-13 Thread Eddie James
Initialize the MMC subsystem on the ast2500 board. Compile MMC and the Aspeed SD controller on the ast2500 EVB. Signed-off-by: Eddie James --- arch/arm/include/asm/gpio.h | 3 ++- arch/arm/mach-aspeed/ast2500-board.c | 3 +++ configs/evb-ast2500_defconfig| 6 ++ 3 files

Re: [U-Boot] [PATCH v2 3/4] aspeed: Support SD controller on the ast2500 board

2019-08-15 Thread Eddie James
On 8/14/19 10:23 AM, Cédric Le Goater wrote: On 13/08/2019 21:31, Eddie James wrote: Initialize the MMC subsystem on the ast2500 board. Compile MMC and the Aspeed SD controller on the ast2500 EVB. Signed-off-by: Eddie James --- arch/arm/include/asm/gpio.h | 3 ++- arch/arm/mach

Re: [U-Boot] [PATCH v2 2/4] mmc: Add Aspeed SD controller driver

2019-08-15 Thread Eddie James
On 8/14/19 10:18 AM, Cédric Le Goater wrote: On 13/08/2019 21:31, Eddie James wrote: Add support for the Aspeed SD host controller engine. It looks correct and simple enough. Some comments below. Signed-off-by: Eddie James --- drivers/mmc/Kconfig| 11 +++ drivers/mmc

[U-Boot] [PATCH v3 1/4] clk: aspeed: Add support for SD clock

2019-08-15 Thread Eddie James
Add code to enable the SD clock on the ast2500 SoC. Reviewed-by: Cédric Le Goater Signed-off-by: Eddie James --- arch/arm/include/asm/arch-aspeed/scu_ast2500.h | 3 +++ drivers/clk/aspeed/clk_ast2500.c | 27 ++ drivers/pinctrl/aspeed/pinctrl_ast2500.c

[U-Boot] [PATCH v3 3/4] configs: AST2500 EVB: Enable SD controller

2019-08-15 Thread Eddie James
Enable the MMC subsystem and the Aspeed SD controller. Also enable the use of the device tree for probing the controller. Signed-off-by: Eddie James --- configs/evb-ast2500_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/evb-ast2500_defconfig b/configs/evb

[U-Boot] [PATCH v3 0/4] ARM: Aspeed: Add SD host controller driver

2019-08-15 Thread Eddie James
in the driver probe function Changes since v1: - Split the patch up - Add defconfig and devicetree changes Eddie James (4): clk: aspeed: Add support for SD clock mmc: Add Aspeed SD controller driver configs: AST2500 EVB: Enable SD controller ARM: dts: ast2500: Add SDHCI nodes arch/arm

[U-Boot] [PATCH v3 4/4] ARM: dts: ast2500: Add SDHCI nodes

2019-08-15 Thread Eddie James
Add nodes for the Aspeed SD controllers with their necessary properties. Reviewed-by: Cédric Le Goater Signed-off-by: Eddie James --- arch/arm/dts/ast2500-evb.dts | 14 ++ arch/arm/dts/ast2500-u-boot.dtsi | 16 2 files changed, 30 insertions(+) diff --git a

[U-Boot] [PATCH v3 2/4] mmc: Add Aspeed SD controller driver

2019-08-15 Thread Eddie James
Add support for the Aspeed SD host controller engine. Signed-off-by: Eddie James --- arch/arm/include/asm/gpio.h | 3 +- drivers/mmc/Kconfig | 11 ++ drivers/mmc/Makefile| 1 + drivers/mmc/aspeed_sdhci.c | 90 + 4 files changed

[U-Boot] [PATCH v4 2/4] mmc: Add Aspeed SD controller driver

2019-08-27 Thread Eddie James
Add support for the Aspeed SD host controller engine. Signed-off-by: Eddie James Reviewed-by: Cédric Le Goater --- Changes since v3: - Rebase on master arch/arm/include/asm/gpio.h | 3 +- drivers/mmc/Kconfig | 11 ++ drivers/mmc/Makefile| 1 + drivers/mmc/aspeed_sdhci.c

Re: [U-Boot] [PATCH v3 2/4] mmc: Add Aspeed SD controller driver

2019-08-27 Thread Eddie James
support for the Aspeed SD host controller engine. Signed-off-by: Eddie James --- arch/arm/include/asm/gpio.h | 3 +- drivers/mmc/Kconfig | 11 ++ drivers/mmc/Makefile| 1 + drivers/mmc/aspeed_sdhci.c | 90 + 4 files changed, 104

Re: tcg2_platform_get_log failing to read address and size of memory-region via ofnode_get_addr_size

2024-03-27 Thread Eddie James
On 3/26/24 11:15, Tim Harvey wrote: On Tue, Mar 26, 2024 at 2:24 AM Ilias Apalodimas wrote: Hi Tim, On Tue, 26 Mar 2024 at 03:15, Tim Harvey wrote: Greetings, I'm unable to understand why tcg2_platform_get_log is failing to read a memory region. For example the following diffs: I am not

Re: tcg2_platform_get_log failing to read address and size of memory-region via ofnode_get_addr_size

2024-03-27 Thread Eddie James
On 3/26/24 11:15, Tim Harvey wrote: On Tue, Mar 26, 2024 at 2:24 AM Ilias Apalodimas wrote: Hi Tim, On Tue, 26 Mar 2024 at 03:15, Tim Harvey wrote: Greetings, I'm unable to understand why tcg2_platform_get_log is failing to read a memory region. For example the following diffs: I am not

Re: [PATCH v3 2/6] tpm: Support boot measurements

2023-01-23 Thread Eddie James
On 1/16/23 06:00, Ilias Apalodimas wrote: Hi Eddie +static inline u16 tpm2_algorithm_to_len(enum tpm2_algorithms a) +{ + switch (a) { + case TPM2_ALG_SHA1: + return TPM2_SHA1_DIGEST_SIZE; + case TPM2_ALG_SHA256: + return TPM2_SHA256_DIGEST_SIZE;

[PATCH v4 0/6] tpm: Support boot measurements

2023-01-25 Thread Eddie James
tions. - Add test case - Drop #ifdefs for bootm - Add devicetree measurement config option - Update sandbox TPM driver Eddie James (6): tpm: Fix spelling for tpmu_ha union tpm: Support boot measurements bootm: Support boot measurement tpm: sandbox: Update for needed TPM2 capabilities test

[PATCH v4 1/6] tpm: Fix spelling for tpmu_ha union

2023-01-25 Thread Eddie James
tmpu -> tpmu Signed-off-by: Eddie James Reviewed-by: Ilias Apalodimas --- include/tpm-v2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tpm-v2.h b/include/tpm-v2.h index 737e57551d..85feda3e06 100644 --- a/include/tpm-v2.h +++ b/include/tpm-v2.h @@ -16

[PATCH v4 6/6] doc: Add measured boot documentation

2023-01-25 Thread Eddie James
Briefly describe the feature and specify the requirements. Signed-off-by: Eddie James --- doc/usage/index.rst | 1 + doc/usage/measured_boot.rst | 23 +++ 2 files changed, 24 insertions(+) create mode 100644 doc/usage/measured_boot.rst diff --git a/doc/usage

[PATCH v4 3/6] bootm: Support boot measurement

2023-01-25 Thread Eddie James
Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well. Signed-off-by: Eddie James --- boot/Kconfig| 23 boot/bootm.c| 70 + cmd/booti.c

[PATCH v4 5/6] test: Add sandbox TPM boot measurement

2023-01-25 Thread Eddie James
Use the sandbox TPM driver to measure some boot images in a unit test case. Signed-off-by: Eddie James --- arch/sandbox/dts/sandbox.dtsi | 14 arch/sandbox/dts/test.dts | 13 +++ configs/sandbox_defconfig | 1 + include/test/suites.h | 1 + test/boot/Makefile

[PATCH v4 2/6] tpm: Support boot measurements

2023-01-25 Thread Eddie James
Add TPM2 functions to support boot measurement. This includes starting up the TPM, initializing/appending the event log, and measuring the U-Boot version. Much of the code was used in the EFI subsystem, so remove it there and use the common functions. Signed-off-by: Eddie James --- include

[PATCH v4 4/6] tpm: sandbox: Update for needed TPM2 capabilities

2023-01-25 Thread Eddie James
The driver needs to support getting the PCRs in the capabilities command. Fix various other things and support the max number of PCRs for TPM2. Signed-off-by: Eddie James Reviewed-by: Simon Glass --- drivers/tpm/tpm2_tis_sandbox.c | 100 - 1 file changed, 72

Re: [PATCH v4 3/6] bootm: Support boot measurement

2023-01-26 Thread Eddie James
On 1/25/23 19:41, Simon Glass wrote: Hi Eddie, On Wed, 25 Jan 2023 at 10:18, Eddie James wrote: Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well. Signed-off-by: Eddie James --- boot/Kconfig| 23

Re: [PATCH] gpio: Enable hogging support in SPL

2022-02-04 Thread Eddie James
On 2/4/22 09:24, Simon Glass wrote: Hi Eddie, On Thu, 3 Feb 2022 at 15:37, Eddie James wrote: Use the CONFIG macros to conditionally build the GPIO hogging support in either the SPL or U-Boot, or both, depending on the configuration. Also call the GPIO hog probe function in the common SPL

[PATCH v2] gpio: Enable hogging support in SPL

2022-02-07 Thread Eddie James
-by: Eddie James --- common/spl/spl.c | 4 drivers/gpio/Kconfig | 10 ++ drivers/gpio/gpio-uclass.c | 10 ++ 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index 884102bdea..36115e674d 100644 --- a/common/spl

[PATCH v3] gpio: Enable hogging support in SPL

2022-02-07 Thread Eddie James
-by: Eddie James --- Changes since v2: - change #if to if() in gpio_post_bind Changes since v1: - remove #if guards around gpio include - change #if to if() in spl board_init_r common/spl/spl.c | 4 drivers/gpio/Kconfig | 10 ++ drivers/gpio/gpio-uclass.c | 8

<    1   2