From ce137852b73347be99f14cff06d0c401faf97b50 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 12 Oct 2023 06:59:15 +0300 Subject: [PATCH] bdk: change some defines and comments --- bdk/input/joycon.c | 4 +++- bdk/soc/hw_init.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bdk/input/joycon.c b/bdk/input/joycon.c index 06354ea..efdcd75 100644 --- a/bdk/input/joycon.c +++ b/bdk/input/joycon.c @@ -43,7 +43,9 @@ #define JC_HORI_INPUT_RPT 0x00 #define JC_WIRED_CMD_GET_INFO 0x01 -#define JC_WIRED_CMD_CHRG_CFG 0x02 +#define JC_WIRED_CMD_SET_CHARGER 0x02 +#define JC_WIRED_CMD_GET_CHARGER 0x03 +#define JC_WIRED_CMD_BATT_VOLT 0x06 #define JC_WIRED_CMD_WAKE_REASON 0x07 #define JC_WIRED_CMD_HID_CONN 0x10 #define JC_WIRED_CMD_HID_DISC 0x11 diff --git a/bdk/soc/hw_init.c b/bdk/soc/hw_init.c index 0c374ca..8771275 100644 --- a/bdk/soc/hw_init.c +++ b/bdk/soc/hw_init.c @@ -367,7 +367,7 @@ void hw_init() uart_invert(DEBUG_UART_PORT, DEBUG_UART_INVERT, UART_INVERT_TXD); #endif - // Enable Dynamic Voltage and Frequency Scaling device clock. + // Enable CL-DVFS clock unconditionally to avoid issues with I2C5 sharing. clock_enable_cl_dvfs(); // Enable clocks to I2C1 and I2CPWR.