summaryrefslogtreecommitdiff
path: root/baseboard/ite_evb
diff options
context:
space:
mode:
Diffstat (limited to 'baseboard/ite_evb')
-rw-r--r--baseboard/ite_evb/baseboard.c21
-rw-r--r--baseboard/ite_evb/baseboard.h2
-rw-r--r--baseboard/ite_evb/build.mk2
-rw-r--r--baseboard/ite_evb/usb_pd_pdo.c7
-rw-r--r--baseboard/ite_evb/usb_pd_pdo.h2
-rw-r--r--baseboard/ite_evb/usb_pd_policy.c9
6 files changed, 21 insertions, 22 deletions
diff --git a/baseboard/ite_evb/baseboard.c b/baseboard/ite_evb/baseboard.c
index 00459b12bc..70f50f054b 100644
--- a/baseboard/ite_evb/baseboard.c
+++ b/baseboard/ite_evb/baseboard.c
@@ -1,4 +1,4 @@
-/* Copyright 2020 The Chromium OS Authors. All rights reserved.
+/* Copyright 2020 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -42,8 +42,10 @@ const struct fan_rpm fan_rpm_0 = {
};
const struct fan_t fans[] = {
- { .conf = &fan_conf_0,
- .rpm = &fan_rpm_0, },
+ {
+ .conf = &fan_conf_0,
+ .rpm = &fan_rpm_0,
+ },
};
BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS);
@@ -123,11 +125,9 @@ __override struct keyboard_scan_config keyscan_config = {
#if defined(CONFIG_SPI_FLASH_PORT)
/* SPI devices */
const struct spi_device_t spi_devices[] = {
- [CONFIG_SPI_FLASH_PORT] = {
- .port = CONFIG_SPI_FLASH_PORT,
- .div = 0,
- .gpio_cs = -1
- },
+ [CONFIG_SPI_FLASH_PORT] = { .port = CONFIG_SPI_FLASH_PORT,
+ .div = 0,
+ .gpio_cs = -1 },
};
const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices);
#endif
@@ -139,9 +139,8 @@ static void board_init(void)
DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
/* Wake-up pins for hibernate */
-const enum gpio_signal hibernate_wake_pins[] = {
- GPIO_POWER_BUTTON_L, GPIO_LID_OPEN
-};
+const enum gpio_signal hibernate_wake_pins[] = { GPIO_POWER_BUTTON_L,
+ GPIO_LID_OPEN };
const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins);
/*
diff --git a/baseboard/ite_evb/baseboard.h b/baseboard/ite_evb/baseboard.h
index 23b3f80fba..e16e708078 100644
--- a/baseboard/ite_evb/baseboard.h
+++ b/baseboard/ite_evb/baseboard.h
@@ -1,4 +1,4 @@
-/* Copyright 2020 The Chromium OS Authors. All rights reserved.
+/* Copyright 2020 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
diff --git a/baseboard/ite_evb/build.mk b/baseboard/ite_evb/build.mk
index 507222e6b3..38a49ff8b6 100644
--- a/baseboard/ite_evb/build.mk
+++ b/baseboard/ite_evb/build.mk
@@ -1,5 +1,5 @@
# -*- makefile -*-
-# Copyright 2020 The Chromium OS Authors. All rights reserved.
+# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
diff --git a/baseboard/ite_evb/usb_pd_pdo.c b/baseboard/ite_evb/usb_pd_pdo.c
index 24cbc8b996..0da735e458 100644
--- a/baseboard/ite_evb/usb_pd_pdo.c
+++ b/baseboard/ite_evb/usb_pd_pdo.c
@@ -1,4 +1,4 @@
-/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+/* Copyright 2021 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -7,8 +7,9 @@
#include "usb_pd.h"
#include "usb_pd_pdo.h"
-#define PDO_FIXED_FLAGS (PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP |\
- PDO_FIXED_UNCONSTRAINED | PDO_FIXED_COMM_CAP)
+#define PDO_FIXED_FLAGS \
+ (PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP | PDO_FIXED_UNCONSTRAINED | \
+ PDO_FIXED_COMM_CAP)
const uint32_t pd_src_pdo[] = {
PDO_FIXED(5000, 1500, PDO_FIXED_FLAGS),
diff --git a/baseboard/ite_evb/usb_pd_pdo.h b/baseboard/ite_evb/usb_pd_pdo.h
index ce3300cc7d..4b19ca32d3 100644
--- a/baseboard/ite_evb/usb_pd_pdo.h
+++ b/baseboard/ite_evb/usb_pd_pdo.h
@@ -1,4 +1,4 @@
-/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+/* Copyright 2021 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
diff --git a/baseboard/ite_evb/usb_pd_policy.c b/baseboard/ite_evb/usb_pd_policy.c
index b5462bd1e2..71af9d2b1c 100644
--- a/baseboard/ite_evb/usb_pd_policy.c
+++ b/baseboard/ite_evb/usb_pd_policy.c
@@ -1,4 +1,4 @@
-/* Copyright 2020 The Chromium OS Authors. All rights reserved.
+/* Copyright 2020 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -20,8 +20,8 @@
#include "usb_mux.h"
#include "usb_pd_pdo.h"
-#define CPRINTF(format, args...) cprintf(CC_USBPD, format, ## args)
-#define CPRINTS(format, args...) cprints(CC_USBPD, format, ## args)
+#define CPRINTF(format, args...) cprintf(CC_USBPD, format, ##args)
+#define CPRINTS(format, args...) cprints(CC_USBPD, format, ##args)
int pd_is_max_request_allowed(void)
{
@@ -62,7 +62,6 @@ void pd_power_supply_reset(int port)
board_pd_vbus_ctrl(port, 0);
}
-
__override int pd_check_data_swap(int port, enum pd_data_role data_role)
{
/* Always allow data swap: we can be DFP or UFP for USB */
@@ -107,7 +106,7 @@ __override void svdm_exit_dp_mode(int port)
}
__override int pd_custom_vdm(int port, int cnt, uint32_t *payload,
- uint32_t **rpayload)
+ uint32_t **rpayload)
{
/* Return length 0, means nothing needn't tx */
return 0;