summaryrefslogtreecommitdiff
path: root/board/ryu/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/ryu/board.h')
-rw-r--r--board/ryu/board.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/board/ryu/board.h b/board/ryu/board.h
index 4530db90cf..8e708b97c4 100644
--- a/board/ryu/board.h
+++ b/board/ryu/board.h
@@ -11,7 +11,7 @@
/* 48 MHz SYSCLK clock frequency */
#define CPU_CLOCK 48000000
-/* the UART console is on USART2 (PA14/PA15) */
+/* the UART console is on USART2 (PD4/PD5) */
#undef CONFIG_UART_CONSOLE
#define CONFIG_UART_CONSOLE 2
@@ -19,9 +19,9 @@
#define CC_DEFAULT (CC_ALL & ~CC_MASK(CC_USBPD))
/* Optional features */
+#define CONFIG_FORCE_CONSOLE_RESUME
#define CONFIG_STM_HWTIMER32
#define CONFIG_USB_POWER_DELIVERY
-#define CONFIG_USB_PD_CUSTOM_VDM
#define CONFIG_USB_PD_DUAL_ROLE
#define CONFIG_USB_PD_FLASH_ERASE_CHECK
#define CONFIG_USB_PD_INTERNAL_COMP
@@ -31,16 +31,15 @@
#define CONFIG_HW_CRC
#define CONFIG_I2C
#define CONFIG_LID_SWITCH
+#define CONFIG_LOW_POWER_IDLE
#define CONFIG_VBOOT_HASH
-#undef CONFIG_WATCHDOG_HELP
+#define CONFIG_WATCHDOG_HELP
#undef CONFIG_TASK_PROFILING
-#undef CONFIG_CONSOLE_CMDHELP
#define CONFIG_INDUCTIVE_CHARGING
#undef CONFIG_HIBERNATE
-#define CONFIG_DEBUG_ASSERT_BRIEF
-
-/* Disable unused console command to save flash space */
-#undef CONFIG_CMD_POWERINDEBUG
+#undef CONFIG_UART_TX_DMA /* DMAC_CH7 is used by USB PD */
+#define CONFIG_UART_RX_DMA
+#define CONFIG_UART_RX_DMA_CH STM32_DMAC_USART2_RX
/*
* Pericom I2C workaround
@@ -76,6 +75,7 @@
#define I2C_PORT_EC I2C_PORT_SLAVE
#define I2C_PORT_CHARGER I2C_PORT_MASTER
#define I2C_PORT_BATTERY I2C_PORT_MASTER
+#define I2C_PORT_LIGHTBAR I2C_PORT_MASTER
/* slave address for host commands */
#ifdef HAS_TASK_HOSTCMD
@@ -85,8 +85,8 @@
#ifndef __ASSEMBLER__
/* Timer selection */
-#define TIM_CLOCK32 2
-#define TIM_ADC 3
+#define TIM_CLOCK32 5
+#define TIM_WATCHDOG 19
#include "gpio_signal.h"