summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:00:57 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-29 05:43:48 +0000
commitd5741043cfa2641ebe945142af82d97c08168d56 (patch)
treed6f1196fbe35f024f74b16a98407d8be7a1a2cbc
parentff170c675dd3339f2e351e8bbc4af41da5612608 (diff)
downloadchrome-ec-d5741043cfa2641ebe945142af82d97c08168d56.tar.gz
board/prism/board.h: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Ic1381bcbfd28bd5b7bdec52d420cb219f9420112 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3727766 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r--board/prism/board.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/board/prism/board.h b/board/prism/board.h
index 1734624752..ec77c5e7b0 100644
--- a/board/prism/board.h
+++ b/board/prism/board.h
@@ -24,15 +24,15 @@
#ifdef SECTION_IS_RW
#define CONFIG_KEYBOARD_BACKLIGHT
#define CONFIG_RGB_KEYBOARD
-#define GPIO_RGBKBD_SDB_L GPIO_SDB_L
-#define GPIO_RGBKBD_POWER GPIO_L_POWER
+#define GPIO_RGBKBD_SDB_L GPIO_SDB_L
+#define GPIO_RGBKBD_POWER GPIO_L_POWER
#define CONFIG_LED_DRIVER_IS31FL3743B
-#define SPI_RGB0_DEVICE_ID 0
-#define SPI_RGB1_DEVICE_ID 1
-#define RGB_GRID0_COL 11
-#define RGB_GRID0_ROW 6
-#define RGB_GRID1_COL 11
-#define RGB_GRID1_ROW 6
+#define SPI_RGB0_DEVICE_ID 0
+#define SPI_RGB1_DEVICE_ID 1
+#define RGB_GRID0_COL 11
+#define RGB_GRID0_ROW 6
+#define RGB_GRID1_COL 11
+#define RGB_GRID1_ROW 6
/* Enable control of SPI over USB */
#define CONFIG_SPI_CONTROLLER
@@ -74,27 +74,27 @@
/* Do not use a dedicated PSTATE bank */
#undef CONFIG_FLASH_PSTATE_BANK
-#define CONFIG_SHAREDLIB_SIZE 0
+#define CONFIG_SHAREDLIB_SIZE 0
-#define CONFIG_RO_MEM_OFF 0
-#define CONFIG_RO_STORAGE_OFF 0
-#define CONFIG_RO_SIZE (44*1024)
+#define CONFIG_RO_MEM_OFF 0
+#define CONFIG_RO_STORAGE_OFF 0
+#define CONFIG_RO_SIZE (44 * 1024)
/* EC rollback protection block */
#define CONFIG_ROLLBACK_OFF (CONFIG_RO_MEM_OFF + CONFIG_RO_SIZE)
#define CONFIG_ROLLBACK_SIZE CONFIG_FLASH_BANK_SIZE
-#define CONFIG_RW_MEM_OFF (CONFIG_ROLLBACK_OFF + CONFIG_ROLLBACK_SIZE)
-#define CONFIG_RW_STORAGE_OFF 0
-#define CONFIG_RW_SIZE (CONFIG_FLASH_SIZE_BYTES - CONFIG_RW_MEM_OFF)
+#define CONFIG_RW_MEM_OFF (CONFIG_ROLLBACK_OFF + CONFIG_ROLLBACK_SIZE)
+#define CONFIG_RW_STORAGE_OFF 0
+#define CONFIG_RW_SIZE (CONFIG_FLASH_SIZE_BYTES - CONFIG_RW_MEM_OFF)
-#define CONFIG_EC_PROTECTED_STORAGE_OFF CONFIG_RO_MEM_OFF
-#define CONFIG_EC_PROTECTED_STORAGE_SIZE CONFIG_RO_SIZE
-#define CONFIG_EC_WRITABLE_STORAGE_OFF CONFIG_RW_MEM_OFF
-#define CONFIG_EC_WRITABLE_STORAGE_SIZE CONFIG_RW_SIZE
+#define CONFIG_EC_PROTECTED_STORAGE_OFF CONFIG_RO_MEM_OFF
+#define CONFIG_EC_PROTECTED_STORAGE_SIZE CONFIG_RO_SIZE
+#define CONFIG_EC_WRITABLE_STORAGE_OFF CONFIG_RW_MEM_OFF
+#define CONFIG_EC_WRITABLE_STORAGE_SIZE CONFIG_RW_SIZE
-#define CONFIG_WP_STORAGE_OFF CONFIG_EC_PROTECTED_STORAGE_OFF
-#define CONFIG_WP_STORAGE_SIZE CONFIG_EC_PROTECTED_STORAGE_SIZE
+#define CONFIG_WP_STORAGE_OFF CONFIG_EC_PROTECTED_STORAGE_OFF
+#define CONFIG_WP_STORAGE_SIZE CONFIG_EC_PROTECTED_STORAGE_SIZE
/* The UART console is on USART1 (PA9/PA10) */
#undef CONFIG_UART_CONSOLE
@@ -123,21 +123,21 @@
#define DEFAULT_SERIALNO ""
/* USB interface indexes (use define rather than enum to expand them) */
-#undef CONFIG_HOSTCMD_EVENTS
-#define USB_IFACE_UPDATE 0
+#undef CONFIG_HOSTCMD_EVENTS
+#define USB_IFACE_UPDATE 0
#ifdef SECTION_IS_RW
#define CONFIG_HOST_INTERFACE_USB
-#define USB_IFACE_HOSTCMD 1
-#define USB_IFACE_COUNT 2
+#define USB_IFACE_HOSTCMD 1
+#define USB_IFACE_COUNT 2
#else
-#define USB_IFACE_COUNT 1
+#define USB_IFACE_COUNT 1
#endif
/* USB endpoint indexes (use define rather than enum to expand them) */
-#define USB_EP_CONTROL 0
-#define USB_EP_UPDATE 1
-#define USB_EP_HOSTCMD 2
-#define USB_EP_COUNT 3
+#define USB_EP_CONTROL 0
+#define USB_EP_UPDATE 1
+#define USB_EP_HOSTCMD 2
+#define USB_EP_COUNT 3
/* Optional features */
#define CONFIG_BOARD_PRE_INIT
@@ -192,10 +192,10 @@
#endif
/* Maximum current to draw. */
-#define MAX_CURRENT_MA 2000
+#define MAX_CURRENT_MA 2000
/* Maximum current/voltage to provide over OTG. */
-#define MAX_OTG_CURRENT_MA 2000
-#define MAX_OTG_VOLTAGE_MV 20000
+#define MAX_OTG_CURRENT_MA 2000
+#define MAX_OTG_VOLTAGE_MV 20000
#ifndef __ASSEMBLER__