baseboard/asurada/baseboard.c: Format with clang-format
BRANCH=none
TEST=none
@@ -71,34 +71,26 @@ int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- {
- .name = "bat_chg",
+ { .name = "bat_chg",
.port = IT83XX_I2C_CH_A,
.kbps = 100,
.scl = GPIO_I2C_A_SCL,
- .sda = GPIO_I2C_A_SDA
- },
- {
- .name = "sensor",
+ .sda = GPIO_I2C_A_SDA },
+ { .name = "sensor",
.port = IT83XX_I2C_CH_B,
.kbps = 400,
.scl = GPIO_I2C_B_SCL,
- .sda = GPIO_I2C_B_SDA
- },
- {
- .name = "usb0",
+ .sda = GPIO_I2C_B_SDA },
+ { .name = "usb0",
.port = IT83XX_I2C_CH_C,
.kbps = 400,
.scl = GPIO_I2C_C_SCL,
- .sda = GPIO_I2C_C_SDA
- },
- {
- .name = "usb1",
+ .sda = GPIO_I2C_C_SDA },
+ { .name = "usb1",
.port = IT83XX_I2C_CH_E,
.kbps = 400,
.scl = GPIO_I2C_E_SCL,
- .sda = GPIO_I2C_E_SDA
- },
+ .sda = GPIO_I2C_E_SDA },
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
@@ -112,12 +104,16 @@ const struct cc_para_t *board_get_cc_tuning_parameter(enum usbpd_port port)
const static struct cc_para_t
cc_parameter[CONFIG_USB_PD_ITE_ACTIVE_PORT_COUNT] = {
{
- .rising_time = IT83XX_TX_PRE_DRIVING_TIME_1_UNIT,
- .falling_time = IT83XX_TX_PRE_DRIVING_TIME_2_UNIT,
+ .rising_time =
+ IT83XX_TX_PRE_DRIVING_TIME_1_UNIT,
+ .falling_time =
+ IT83XX_TX_PRE_DRIVING_TIME_2_UNIT,
},
{
- .rising_time = IT83XX_TX_PRE_DRIVING_TIME_1_UNIT,
- .falling_time = IT83XX_TX_PRE_DRIVING_TIME_2_UNIT,
+ .rising_time =
+ IT83XX_TX_PRE_DRIVING_TIME_1_UNIT,
+ .falling_time =
+ IT83XX_TX_PRE_DRIVING_TIME_2_UNIT,
},
};
