summaryrefslogtreecommitdiff
path: root/board/lazor
diff options
context:
space:
mode:
Diffstat (limited to 'board/lazor')
-rw-r--r--board/lazor/board.c16
-rw-r--r--board/lazor/usbc_config.c16
2 files changed, 16 insertions, 16 deletions
diff --git a/board/lazor/board.c b/board/lazor/board.c
index 8749412486..15a647b831 100644
--- a/board/lazor/board.c
+++ b/board/lazor/board.c
@@ -6,7 +6,6 @@
/* Lazor board-specific configuration */
#include "adc_chip.h"
-#include "battery_fuel_gauge.h"
#include "button.h"
#include "extpower.h"
#include "driver/accel_bma2x2.h"
@@ -30,7 +29,6 @@
#include "tablet_mode.h"
#include "task.h"
#include "usbc_config.h"
-#include "usb_mux.h"
#include "usbc_ppc.h"
#define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ## args)
@@ -326,20 +324,6 @@ void lid_angle_peripheral_enable(int enable)
}
#endif
-__override int board_get_default_battery_type(void)
-{
- /*
- * A 2S battery is set as default. If the board is configured to use
- * a 3S battery, according to its SKU_ID, return a 3S battery as
- * default. It helps to configure the charger to output a correct
- * voltage in case the battery is not attached.
- */
- if (board_get_battery_cell_type() == BATTERY_CELL_TYPE_3S)
- return BATTERY_LGC_AP18C8K;
-
- return DEFAULT_BATTERY_TYPE;
-}
-
static int base_accelgyro_config;
void motion_interrupt(enum gpio_signal signal)
diff --git a/board/lazor/usbc_config.c b/board/lazor/usbc_config.c
index 9d5b13b4a5..0cd61e613a 100644
--- a/board/lazor/usbc_config.c
+++ b/board/lazor/usbc_config.c
@@ -5,11 +5,13 @@
/* Lazor board-specific USB-C configuration */
+#include "battery_fuel_gauge.h"
#include "bc12/pi3usb9201_public.h"
#include "charge_manager.h"
#include "charge_state.h"
#include "common.h"
#include "config.h"
+#include "driver/ln9310.h"
#include "gpio.h"
#include "hooks.h"
#include "ppc/sn5s330_public.h"
@@ -168,6 +170,20 @@ const struct pi3usb9201_config_t pi3usb9201_bc12_chips[] = {
},
};
+__override int board_get_default_battery_type(void)
+{
+ /*
+ * A 2S battery is set as default. If the board is configured to use
+ * a 3S battery, according to its SKU_ID, return a 3S battery as
+ * default. It helps to configure the charger to output a correct
+ * voltage in case the battery is not attached.
+ */
+ if (board_get_battery_cell_type() == BATTERY_CELL_TYPE_3S)
+ return BATTERY_LGC_AP18C8K;
+
+ return DEFAULT_BATTERY_TYPE;
+}
+
void board_tcpc_init(void)
{
/* Only reset TCPC if not sysjump */