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.