diff options
author | Grzegorz Bernacki <bernacki@google.com> | 2023-06-14 12:01:32 +0000 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-07-06 16:16:43 +0000 |
commit | 7758b47e3be128ab8c1c3fecb63b8f0054351ee0 (patch) | |
tree | 626cdc57c8c0eb979e336af506da07b4e4ea77e0 /src/mainboard/google | |
parent | 15d75aa999709ab2006b816f7c0335b52147f945 (diff) |
drivers/tpm: Move tis_plat_irq_status to cr50 driver
tis_plat_irq_status() function is used only by Google TPM. It should
be moved to drivers/tpm/cr50.c. The name of the function was changed
to cr50_plat_irq_status().
BUG=b:277787305
TEST=Build all affected platforms
Change-Id: I78dc39f2c7b44232b06947d3dfe6afa52807ced8
Signed-off-by: Grzegorz Bernacki <bernacki@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75917
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r-- | src/mainboard/google/asurada/chromeos.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/cherry/chromeos.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/corsola/chromeos.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/geralt/chromeos.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/gru/chromeos.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/herobrine/chromeos.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/kahlee/variants/baseboard/tpm_tis.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/kukui/chromeos.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/myst/variants/baseboard/tpm_tis.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/oak/tpm_tis.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/trogdor/chromeos.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/zork/variants/baseboard/tpm_tis.c | 4 |
14 files changed, 28 insertions, 28 deletions
diff --git a/src/mainboard/google/asurada/chromeos.c b/src/mainboard/google/asurada/chromeos.c index 1aa8876ca4..d8787f63a2 100644 --- a/src/mainboard/google/asurada/chromeos.c +++ b/src/mainboard/google/asurada/chromeos.c @@ -2,8 +2,8 @@ #include <bootmode.h> #include <boot/coreboot_tables.h> +#include <drivers/tpm/cr50.h> #include <gpio.h> -#include <security/tpm/tis.h> #include "gpio.h" @@ -36,7 +36,7 @@ int get_write_protect_state(void) return !gpio_get(GPIO_WP); } -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_eint_poll(GPIO_H1_AP_INT); } diff --git a/src/mainboard/google/cherry/chromeos.c b/src/mainboard/google/cherry/chromeos.c index 301a0bc1c7..4a93ae2c73 100644 --- a/src/mainboard/google/cherry/chromeos.c +++ b/src/mainboard/google/cherry/chromeos.c @@ -2,8 +2,8 @@ #include <bootmode.h> #include <boot/coreboot_tables.h> +#include <drivers/tpm/cr50.h> #include <gpio.h> -#include <security/tpm/tis.h> #include "gpio.h" @@ -61,7 +61,7 @@ void fill_lb_gpios(struct lb_gpios *gpios) lb_add_gpios(gpios, spk_gpios, ARRAY_SIZE(spk_gpios)); } -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_eint_poll(GPIO_GSC_AP_INT); } diff --git a/src/mainboard/google/corsola/chromeos.c b/src/mainboard/google/corsola/chromeos.c index 9717f9c2e1..a1674d3c13 100644 --- a/src/mainboard/google/corsola/chromeos.c +++ b/src/mainboard/google/corsola/chromeos.c @@ -2,9 +2,9 @@ #include <bootmode.h> #include <boot/coreboot_tables.h> +#include <drivers/tpm/cr50.h> #include <ec/google/chromeec/ec.h> #include <gpio.h> -#include <security/tpm/tis.h> #include <stdbool.h> #include "gpio.h" @@ -68,7 +68,7 @@ int get_ec_is_trusted(void) return !!gpio_get(GPIO_EC_IN_RW_ODL); } -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_eint_poll(GPIO_GSC_AP_INT_ODL); } diff --git a/src/mainboard/google/geralt/chromeos.c b/src/mainboard/google/geralt/chromeos.c index a6e891703a..1144701ea3 100644 --- a/src/mainboard/google/geralt/chromeos.c +++ b/src/mainboard/google/geralt/chromeos.c @@ -2,8 +2,8 @@ #include <bootmode.h> #include <boot/coreboot_tables.h> +#include <drivers/tpm/cr50.h> #include <gpio.h> -#include <security/tpm/tis.h> #include "gpio.h" #include "panel.h" @@ -67,7 +67,7 @@ void fill_lb_gpios(struct lb_gpios *gpios) } } -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_eint_poll(GPIO_GSC_AP_INT_ODL); } diff --git a/src/mainboard/google/gru/chromeos.c b/src/mainboard/google/gru/chromeos.c index 479ca3d85d..3e57242fa3 100644 --- a/src/mainboard/google/gru/chromeos.c +++ b/src/mainboard/google/gru/chromeos.c @@ -2,8 +2,8 @@ #include <bootmode.h> #include <boot/coreboot_tables.h> +#include <drivers/tpm/cr50.h> #include <gpio.h> -#include <security/tpm/tis.h> #include "board.h" @@ -44,7 +44,7 @@ void setup_chromeos_gpios(void) } #if CONFIG(GRU_HAS_TPM2) -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_irq_status(GPIO_TPM_IRQ); } diff --git a/src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c b/src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c index 2f3e426ef9..bc4091527f 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c +++ b/src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c @@ -1,10 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ #include <boardid.h> +#include <drivers/tpm/cr50.h> #include <gpio.h> -#include <security/tpm/tis.h> -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { gpio_t irq_gpio = GPIO_85; uint32_t board_ver = board_id(); diff --git a/src/mainboard/google/herobrine/chromeos.c b/src/mainboard/google/herobrine/chromeos.c index b5631fc8b2..f17e2782f8 100644 --- a/src/mainboard/google/herobrine/chromeos.c +++ b/src/mainboard/google/herobrine/chromeos.c @@ -3,7 +3,7 @@ #include <boot/coreboot_tables.h> #include <bootmode.h> #include "board.h" -#include <security/tpm/tis.h> +#include <drivers/tpm/cr50.h> void setup_chromeos_gpios(void) { @@ -55,7 +55,7 @@ int get_ec_is_trusted(void) return 1; } -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_irq_status(GPIO_H1_AP_INT); } diff --git a/src/mainboard/google/kahlee/variants/baseboard/tpm_tis.c b/src/mainboard/google/kahlee/variants/baseboard/tpm_tis.c index 2e3cfb8d15..87b7f45dc9 100644 --- a/src/mainboard/google/kahlee/variants/baseboard/tpm_tis.c +++ b/src/mainboard/google/kahlee/variants/baseboard/tpm_tis.c @@ -1,10 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include <drivers/tpm/cr50.h> #include <gpio.h> -#include <security/tpm/tis.h> #include <variant/gpio.h> -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_interrupt_status(GPIO_9); } diff --git a/src/mainboard/google/kukui/chromeos.c b/src/mainboard/google/kukui/chromeos.c index 4c4a8bec03..13e7f4c38f 100644 --- a/src/mainboard/google/kukui/chromeos.c +++ b/src/mainboard/google/kukui/chromeos.c @@ -2,8 +2,8 @@ #include <bootmode.h> #include <boot/coreboot_tables.h> +#include <drivers/tpm/cr50.h> #include <gpio.h> -#include <security/tpm/tis.h> #include "gpio.h" @@ -33,7 +33,7 @@ int get_write_protect_state(void) return !gpio_get(GPIO_WP); } -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_eint_poll(CR50_IRQ); } diff --git a/src/mainboard/google/myst/variants/baseboard/tpm_tis.c b/src/mainboard/google/myst/variants/baseboard/tpm_tis.c index d03158db81..3641e7abd9 100644 --- a/src/mainboard/google/myst/variants/baseboard/tpm_tis.c +++ b/src/mainboard/google/myst/variants/baseboard/tpm_tis.c @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#include <security/tpm/tis.h> +#include <drivers/tpm/cr50.h> #include <gpio.h> -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_interrupt_status(GPIO_84); } diff --git a/src/mainboard/google/oak/tpm_tis.c b/src/mainboard/google/oak/tpm_tis.c index 9071869642..75c951b41f 100644 --- a/src/mainboard/google/oak/tpm_tis.c +++ b/src/mainboard/google/oak/tpm_tis.c @@ -1,11 +1,11 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include <drivers/tpm/cr50.h> #include <gpio.h> -#include <security/tpm/tis.h> #include "gpio.h" -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_eint_poll(CR50_IRQ); } diff --git a/src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c b/src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c index 7e513ef79f..b3ab49aee3 100644 --- a/src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c +++ b/src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#include <security/tpm/tis.h> +#include <drivers/tpm/cr50.h> #include <gpio.h> -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_interrupt_status(GPIO_18); } diff --git a/src/mainboard/google/trogdor/chromeos.c b/src/mainboard/google/trogdor/chromeos.c index 11b38b513d..2fe3e610e1 100644 --- a/src/mainboard/google/trogdor/chromeos.c +++ b/src/mainboard/google/trogdor/chromeos.c @@ -3,7 +3,7 @@ #include <boot/coreboot_tables.h> #include <bootmode.h> #include "board.h" -#include <security/tpm/tis.h> +#include <drivers/tpm/cr50.h> void setup_chromeos_gpios(void) { @@ -53,7 +53,7 @@ void fill_lb_gpios(struct lb_gpios *gpios) lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios)); } -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_irq_status(GPIO_H1_AP_INT); } diff --git a/src/mainboard/google/zork/variants/baseboard/tpm_tis.c b/src/mainboard/google/zork/variants/baseboard/tpm_tis.c index 97eac5db92..822349288a 100644 --- a/src/mainboard/google/zork/variants/baseboard/tpm_tis.c +++ b/src/mainboard/google/zork/variants/baseboard/tpm_tis.c @@ -1,10 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ +#include <drivers/tpm/cr50.h> #include <gpio.h> -#include <security/tpm/tis.h> #include <variant/gpio.h> -int tis_plat_irq_status(void) +int cr50_plat_irq_status(void) { return gpio_interrupt_status(GPIO_3); } |