aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2023-08-27 10:13:43 +0100
committerMarc Zyngier <maz@kernel.org>2023-08-27 10:32:57 +0100
commit345ba0375a347b0696c15df23aae3841d75bdc32 (patch)
tree9e541d6ea7627365cb6bcd590bd6ad4da8fd740c
parent1a4c59587137f6a2ebb32ecf6393110402b04d61 (diff)
downloadcs-sw-345ba0375a347b0696c15df23aae3841d75bdc32.tar.gz
Initialise all pins to .skip=true by default
Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r--m1-pd-bmc.h4
-rw-r--r--start.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/m1-pd-bmc.h b/m1-pd-bmc.h
index 616b6d8..edad800 100644
--- a/m1-pd-bmc.h
+++ b/m1-pd-bmc.h
@@ -19,7 +19,8 @@ struct gpio_pin_config {
};
enum m1_pd_bmc_pins {
- LED_G,
+ M1_BMC_PIN_START,
+ LED_G = M1_BMC_PIN_START,
I2C_SDA,
I2C_SCL,
FUSB_INT,
@@ -28,6 +29,7 @@ enum m1_pd_bmc_pins {
UART_RX,
SBU_SWAP,
SEL_USB,
+ M1_BMC_PIN_END = SEL_USB,
};
struct hw_context {
diff --git a/start.c b/start.c
index d80acdd..f3b940c 100644
--- a/start.c
+++ b/start.c
@@ -8,6 +8,9 @@
#include "FUSB302.h"
static const struct gpio_pin_config m1_pd_bmc_pin_config0[] = {
+ [M1_BMC_PIN_START ... M1_BMC_PIN_END] = {
+ .skip = true,
+ },
[LED_G] = {
.pin = 25,
.mode = GPIO_FUNC_SIO,
@@ -52,6 +55,9 @@ static const struct gpio_pin_config m1_pd_bmc_pin_config0[] = {
};
static const struct gpio_pin_config m1_pd_bmc_pin_config1[] = {
+ [M1_BMC_PIN_START ... M1_BMC_PIN_END] = {
+ .skip = true,
+ },
[LED_G] = {
.pin = 25,
.mode = GPIO_FUNC_SIO,