From 9a3bde0581a574956dd57ca24683c41ac7e0edfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sat, 6 Nov 2021 16:13:15 +0200 Subject: ChromeOS: Replace with or add MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's commented in that it shall provide . Fix for ARRAY_SIZE() in bulk, followup works will reduce the number of other includes these files have. Change-Id: I2572aaa2cf4254f0dea6698cba627de12725200f Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/58996 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/mainboard/google/auron/chromeos.c | 1 + src/mainboard/google/beltino/chromeos.c | 1 + src/mainboard/google/brya/chromeos.c | 1 + src/mainboard/google/brya/variants/baseboard/brask/gpio.c | 2 +- src/mainboard/google/brya/variants/baseboard/brya/gpio.c | 2 +- src/mainboard/google/butterfly/chromeos.c | 1 + src/mainboard/google/cyan/chromeos.c | 1 + src/mainboard/google/daisy/chromeos.c | 1 + src/mainboard/google/dedede/chromeos.c | 1 + src/mainboard/google/dedede/variants/baseboard/gpio.c | 2 +- src/mainboard/google/deltaur/chromeos.c | 1 + src/mainboard/google/drallion/chromeos.c | 1 + src/mainboard/google/eve/chromeos.c | 1 + src/mainboard/google/fizz/chromeos.c | 1 + src/mainboard/google/fizz/variants/baseboard/gpio.c | 2 +- src/mainboard/google/glados/chromeos.c | 1 + src/mainboard/google/guybrush/chromeos.c | 1 + src/mainboard/google/hatch/chromeos.c | 1 + src/mainboard/google/hatch/variants/baseboard/gpio.c | 2 +- src/mainboard/google/jecht/chromeos.c | 1 + src/mainboard/google/kahlee/chromeos.c | 1 + src/mainboard/google/link/chromeos.c | 1 + src/mainboard/google/octopus/chromeos.c | 1 + src/mainboard/google/octopus/variants/baseboard/gpio.c | 2 +- src/mainboard/google/parrot/chromeos.c | 1 + src/mainboard/google/peach_pit/chromeos.c | 1 + src/mainboard/google/poppy/chromeos.c | 1 + src/mainboard/google/poppy/variants/baseboard/gpio.c | 2 +- src/mainboard/google/rambi/chromeos.c | 1 + src/mainboard/google/reef/chromeos.c | 1 + src/mainboard/google/reef/variants/baseboard/gpio.c | 2 +- src/mainboard/google/reef/variants/coral/gpio.c | 2 +- src/mainboard/google/sarien/chromeos.c | 1 + src/mainboard/google/slippy/chromeos.c | 1 + src/mainboard/google/stout/chromeos.c | 1 + src/mainboard/google/volteer/chromeos.c | 1 + src/mainboard/google/volteer/variants/baseboard/gpio.c | 2 +- src/mainboard/google/zork/chromeos.c | 1 + 38 files changed, 38 insertions(+), 10 deletions(-) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/auron/chromeos.c b/src/mainboard/google/auron/chromeos.c index 2274ff7d28..3132fd7da5 100644 --- a/src/mainboard/google/auron/chromeos.c +++ b/src/mainboard/google/auron/chromeos.c @@ -2,6 +2,7 @@ #include #include +#include #include #include #include diff --git a/src/mainboard/google/beltino/chromeos.c b/src/mainboard/google/beltino/chromeos.c index a33caca37a..c51af1ad1a 100644 --- a/src/mainboard/google/beltino/chromeos.c +++ b/src/mainboard/google/beltino/chromeos.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #define GPIO_SPI_WP 58 diff --git a/src/mainboard/google/brya/chromeos.c b/src/mainboard/google/brya/chromeos.c index e0a13b8856..bf7f9eb21f 100644 --- a/src/mainboard/google/brya/chromeos.c +++ b/src/mainboard/google/brya/chromeos.c @@ -5,6 +5,7 @@ #include #include #include +#include #include void fill_lb_gpios(struct lb_gpios *gpios) diff --git a/src/mainboard/google/brya/variants/baseboard/brask/gpio.c b/src/mainboard/google/brya/variants/baseboard/brask/gpio.c index d9cbdb0d1d..ba4bbf86f9 100644 --- a/src/mainboard/google/brya/variants/baseboard/brask/gpio.c +++ b/src/mainboard/google/brya/variants/baseboard/brask/gpio.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include #include diff --git a/src/mainboard/google/brya/variants/baseboard/brya/gpio.c b/src/mainboard/google/brya/variants/baseboard/brya/gpio.c index 73fad72480..a28f873ed9 100644 --- a/src/mainboard/google/brya/variants/baseboard/brya/gpio.c +++ b/src/mainboard/google/brya/variants/baseboard/brya/gpio.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include #include diff --git a/src/mainboard/google/butterfly/chromeos.c b/src/mainboard/google/butterfly/chromeos.c index 356e97b7b5..2de55b0dff 100644 --- a/src/mainboard/google/butterfly/chromeos.c +++ b/src/mainboard/google/butterfly/chromeos.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include "ec.h" diff --git a/src/mainboard/google/cyan/chromeos.c b/src/mainboard/google/cyan/chromeos.c index 14efdc3e4f..f0c1446160 100644 --- a/src/mainboard/google/cyan/chromeos.c +++ b/src/mainboard/google/cyan/chromeos.c @@ -5,6 +5,7 @@ #include #include #include +#include #include /* The WP status pin lives on MF_ISH_GPIO_4 */ diff --git a/src/mainboard/google/daisy/chromeos.c b/src/mainboard/google/daisy/chromeos.c index 7599295f1f..00fa126434 100644 --- a/src/mainboard/google/daisy/chromeos.c +++ b/src/mainboard/google/daisy/chromeos.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include diff --git a/src/mainboard/google/dedede/chromeos.c b/src/mainboard/google/dedede/chromeos.c index 0d75ac3cfd..e5ae163809 100644 --- a/src/mainboard/google/dedede/chromeos.c +++ b/src/mainboard/google/dedede/chromeos.c @@ -5,6 +5,7 @@ #include #include #include +#include #include void fill_lb_gpios(struct lb_gpios *gpios) diff --git a/src/mainboard/google/dedede/variants/baseboard/gpio.c b/src/mainboard/google/dedede/variants/baseboard/gpio.c index 9b3bd7062d..864bb29cf7 100644 --- a/src/mainboard/google/dedede/variants/baseboard/gpio.c +++ b/src/mainboard/google/dedede/variants/baseboard/gpio.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include /* Pad configuration in ramstage*/ diff --git a/src/mainboard/google/deltaur/chromeos.c b/src/mainboard/google/deltaur/chromeos.c index dbdb273c1a..3d17a6cfb2 100644 --- a/src/mainboard/google/deltaur/chromeos.c +++ b/src/mainboard/google/deltaur/chromeos.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/src/mainboard/google/drallion/chromeos.c b/src/mainboard/google/drallion/chromeos.c index e3a9cd3788..6122b85a5b 100644 --- a/src/mainboard/google/drallion/chromeos.c +++ b/src/mainboard/google/drallion/chromeos.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include diff --git a/src/mainboard/google/eve/chromeos.c b/src/mainboard/google/eve/chromeos.c index 73eae78dc9..7c0cc96b3b 100644 --- a/src/mainboard/google/eve/chromeos.c +++ b/src/mainboard/google/eve/chromeos.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "gpio.h" diff --git a/src/mainboard/google/fizz/chromeos.c b/src/mainboard/google/fizz/chromeos.c index a9456e48e2..5ee822c22a 100644 --- a/src/mainboard/google/fizz/chromeos.c +++ b/src/mainboard/google/fizz/chromeos.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include diff --git a/src/mainboard/google/fizz/variants/baseboard/gpio.c b/src/mainboard/google/fizz/variants/baseboard/gpio.c index c448f05527..71546aaeba 100644 --- a/src/mainboard/google/fizz/variants/baseboard/gpio.c +++ b/src/mainboard/google/fizz/variants/baseboard/gpio.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include /* Pad configuration in ramstage */ diff --git a/src/mainboard/google/glados/chromeos.c b/src/mainboard/google/glados/chromeos.c index acd4cd640a..1dff1caba6 100644 --- a/src/mainboard/google/glados/chromeos.c +++ b/src/mainboard/google/glados/chromeos.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include diff --git a/src/mainboard/google/guybrush/chromeos.c b/src/mainboard/google/guybrush/chromeos.c index 61313223fe..3e54fa4964 100644 --- a/src/mainboard/google/guybrush/chromeos.c +++ b/src/mainboard/google/guybrush/chromeos.c @@ -4,6 +4,7 @@ #include #include #include +#include #include void fill_lb_gpios(struct lb_gpios *gpios) diff --git a/src/mainboard/google/hatch/chromeos.c b/src/mainboard/google/hatch/chromeos.c index 354d8398e6..3401b82d97 100644 --- a/src/mainboard/google/hatch/chromeos.c +++ b/src/mainboard/google/hatch/chromeos.c @@ -7,6 +7,7 @@ #include #include #include +#include #include void fill_lb_gpios(struct lb_gpios *gpios) diff --git a/src/mainboard/google/hatch/variants/baseboard/gpio.c b/src/mainboard/google/hatch/variants/baseboard/gpio.c index a3cf60f3f1..f9ffcd96ec 100644 --- a/src/mainboard/google/hatch/variants/baseboard/gpio.c +++ b/src/mainboard/google/hatch/variants/baseboard/gpio.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include static const struct pad_config gpio_table[] = { diff --git a/src/mainboard/google/jecht/chromeos.c b/src/mainboard/google/jecht/chromeos.c index 5cfe9df74f..ff4cef6a60 100644 --- a/src/mainboard/google/jecht/chromeos.c +++ b/src/mainboard/google/jecht/chromeos.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include diff --git a/src/mainboard/google/kahlee/chromeos.c b/src/mainboard/google/kahlee/chromeos.c index a386dd6982..0a465c98a4 100644 --- a/src/mainboard/google/kahlee/chromeos.c +++ b/src/mainboard/google/kahlee/chromeos.c @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include #include #include #include diff --git a/src/mainboard/google/link/chromeos.c b/src/mainboard/google/link/chromeos.c index 540803ca1a..f4250cc247 100644 --- a/src/mainboard/google/link/chromeos.c +++ b/src/mainboard/google/link/chromeos.c @@ -4,6 +4,7 @@ #include #include #include +#include #include void fill_lb_gpios(struct lb_gpios *gpios) diff --git a/src/mainboard/google/octopus/chromeos.c b/src/mainboard/google/octopus/chromeos.c index d0ceabccd1..9c260ab60a 100644 --- a/src/mainboard/google/octopus/chromeos.c +++ b/src/mainboard/google/octopus/chromeos.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include diff --git a/src/mainboard/google/octopus/variants/baseboard/gpio.c b/src/mainboard/google/octopus/variants/baseboard/gpio.c index e59931710f..d16c4e1b12 100644 --- a/src/mainboard/google/octopus/variants/baseboard/gpio.c +++ b/src/mainboard/google/octopus/variants/baseboard/gpio.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include /* diff --git a/src/mainboard/google/parrot/chromeos.c b/src/mainboard/google/parrot/chromeos.c index 03b0d476f3..77aa11a626 100644 --- a/src/mainboard/google/parrot/chromeos.c +++ b/src/mainboard/google/parrot/chromeos.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include "ec.h" diff --git a/src/mainboard/google/peach_pit/chromeos.c b/src/mainboard/google/peach_pit/chromeos.c index ebbfdd3cb4..07a13a31b5 100644 --- a/src/mainboard/google/peach_pit/chromeos.c +++ b/src/mainboard/google/peach_pit/chromeos.c @@ -6,6 +6,7 @@ #include #include #include +#include #include void fill_lb_gpios(struct lb_gpios *gpios) diff --git a/src/mainboard/google/poppy/chromeos.c b/src/mainboard/google/poppy/chromeos.c index c9b91ad8b1..ff39fbf337 100644 --- a/src/mainboard/google/poppy/chromeos.c +++ b/src/mainboard/google/poppy/chromeos.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include diff --git a/src/mainboard/google/poppy/variants/baseboard/gpio.c b/src/mainboard/google/poppy/variants/baseboard/gpio.c index d7be2c693a..d3df99e44f 100644 --- a/src/mainboard/google/poppy/variants/baseboard/gpio.c +++ b/src/mainboard/google/poppy/variants/baseboard/gpio.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include /* Pad configuration in ramstage */ diff --git a/src/mainboard/google/rambi/chromeos.c b/src/mainboard/google/rambi/chromeos.c index f9a171820d..773a807f95 100644 --- a/src/mainboard/google/rambi/chromeos.c +++ b/src/mainboard/google/rambi/chromeos.c @@ -3,6 +3,7 @@ #include #include #include +#include #include /* The WP status pin lives on GPIO_SSUS_6 which is pad 36 in the SUS well. */ diff --git a/src/mainboard/google/reef/chromeos.c b/src/mainboard/google/reef/chromeos.c index a45ccdd9e0..d258678d7c 100644 --- a/src/mainboard/google/reef/chromeos.c +++ b/src/mainboard/google/reef/chromeos.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include diff --git a/src/mainboard/google/reef/variants/baseboard/gpio.c b/src/mainboard/google/reef/variants/baseboard/gpio.c index fb32b3afff..9bb3e45fe5 100644 --- a/src/mainboard/google/reef/variants/baseboard/gpio.c +++ b/src/mainboard/google/reef/variants/baseboard/gpio.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include /* diff --git a/src/mainboard/google/reef/variants/coral/gpio.c b/src/mainboard/google/reef/variants/coral/gpio.c index 807d161475..de54929d4b 100644 --- a/src/mainboard/google/reef/variants/coral/gpio.c +++ b/src/mainboard/google/reef/variants/coral/gpio.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include /* diff --git a/src/mainboard/google/sarien/chromeos.c b/src/mainboard/google/sarien/chromeos.c index 3dc9f19668..170013a7b0 100644 --- a/src/mainboard/google/sarien/chromeos.c +++ b/src/mainboard/google/sarien/chromeos.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include diff --git a/src/mainboard/google/slippy/chromeos.c b/src/mainboard/google/slippy/chromeos.c index 4fffd45b35..5453583e87 100644 --- a/src/mainboard/google/slippy/chromeos.c +++ b/src/mainboard/google/slippy/chromeos.c @@ -4,6 +4,7 @@ #include #include #include +#include #include void fill_lb_gpios(struct lb_gpios *gpios) diff --git a/src/mainboard/google/stout/chromeos.c b/src/mainboard/google/stout/chromeos.c index 07fdee3281..e68093f592 100644 --- a/src/mainboard/google/stout/chromeos.c +++ b/src/mainboard/google/stout/chromeos.c @@ -8,6 +8,7 @@ #include #include +#include #include #include "ec.h" #include diff --git a/src/mainboard/google/volteer/chromeos.c b/src/mainboard/google/volteer/chromeos.c index 5f87821393..20469d6297 100644 --- a/src/mainboard/google/volteer/chromeos.c +++ b/src/mainboard/google/volteer/chromeos.c @@ -5,6 +5,7 @@ #include #include #include +#include #include void fill_lb_gpios(struct lb_gpios *gpios) diff --git a/src/mainboard/google/volteer/variants/baseboard/gpio.c b/src/mainboard/google/volteer/variants/baseboard/gpio.c index 164e9d2507..ac8c5c2706 100644 --- a/src/mainboard/google/volteer/variants/baseboard/gpio.c +++ b/src/mainboard/google/volteer/variants/baseboard/gpio.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include /* Pad configuration in ramstage */ diff --git a/src/mainboard/google/zork/chromeos.c b/src/mainboard/google/zork/chromeos.c index cfb55a76d9..35c002d45c 100644 --- a/src/mainboard/google/zork/chromeos.c +++ b/src/mainboard/google/zork/chromeos.c @@ -4,6 +4,7 @@ #include #include #include +#include #include void fill_lb_gpios(struct lb_gpios *gpios) -- cgit v1.2.3