summaryrefslogtreecommitdiff
path: root/board/fusb307bgevb/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/fusb307bgevb/board.h')
-rw-r--r--board/fusb307bgevb/board.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/board/fusb307bgevb/board.h b/board/fusb307bgevb/board.h
index 3495f7125f..5e45b346b7 100644
--- a/board/fusb307bgevb/board.h
+++ b/board/fusb307bgevb/board.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.
*/
@@ -8,6 +8,7 @@
#ifndef __CROS_EC_BOARD_H
#define __CROS_EC_BOARD_H
+#define CONFIG_LTO
/* 48 MHz SYSCLK clock frequency */
#define CPU_CLOCK 48000000
@@ -56,11 +57,11 @@
#define PD_OPERATING_POWER_MW 15000
#define PD_MAX_VOLTAGE_MV 20000
#define PD_MAX_CURRENT_MA 3000
-#define PD_MAX_POWER_MW ((PD_MAX_VOLTAGE_MV * PD_MAX_CURRENT_MA) / 1000)
+#define PD_MAX_POWER_MW ((PD_MAX_VOLTAGE_MV * PD_MAX_CURRENT_MA) / 1000)
/* Degine board specific type-C power constants */
#define PD_POWER_SUPPLY_TURN_OFF_DELAY 250000 /* us */
-#define PD_POWER_SUPPLY_TURN_ON_DELAY 160000 /* us */
+#define PD_POWER_SUPPLY_TURN_ON_DELAY 160000 /* us */
/* I2C master port connected to the TCPC */
#define I2C_PORT_TCPC 1
@@ -69,23 +70,24 @@
#define LCD_SLAVE_ADDR 0x27
/* USB interface indexes (use define rather than enum to expand them) */
-#define USB_IFACE_STREAM 0
-#define USB_IFACE_GPIO 1
-#define USB_IFACE_SPI 2
+#define USB_IFACE_STREAM 0
+#define USB_IFACE_GPIO 1
+#define USB_IFACE_SPI 2
#define USB_IFACE_CONSOLE 3
-#define USB_IFACE_COUNT 4
+#define USB_IFACE_COUNT 4
/* USB endpoint indexes (use define rather than enum to expand them) */
#define USB_EP_CONTROL 0
-#define USB_EP_STREAM 1
-#define USB_EP_GPIO 2
-#define USB_EP_SPI 3
+#define USB_EP_STREAM 1
+#define USB_EP_GPIO 2
+#define USB_EP_SPI 3
#define USB_EP_CONSOLE 4
-#define USB_EP_COUNT 5
+#define USB_EP_COUNT 5
/* Enable control of GPIOs over USB */
#define CONFIG_USB_GPIO
+#undef CONFIG_CMD_GETTIME
#undef CONFIG_WATCHDOG_HELP
#undef CONFIG_LID_SWITCH