This commit is contained in:
rusefillc 2023-03-04 20:50:22 -05:00
parent 0e39ace44d
commit 2b45387eb1
3 changed files with 18 additions and 1 deletions

View File

@ -222,10 +222,15 @@
#define EFI_CAN_SUPPORT TRUE #define EFI_CAN_SUPPORT TRUE
#endif #endif
#ifndef EFI_CAN_SERIAL #if !defined(EFI_CAN_SERIAL) && EFI_CAN_SUPPORT
#define EFI_CAN_SERIAL TRUE #define EFI_CAN_SERIAL TRUE
#endif #endif
#if !defined(EFI_CAN_GPIO) && EFI_CAN_SUPPORT
// see CAN_PIN_0
#define EFI_CAN_GPIO TRUE
#endif
#define EFI_WIDEBAND_FIRMWARE_UPDATE TRUE #define EFI_WIDEBAND_FIRMWARE_UPDATE TRUE
#ifndef EFI_AUX_SERIAL #ifndef EFI_AUX_SERIAL

View File

@ -0,0 +1,10 @@
#pragma once
#include "efifeatures.h"
#if EFI_CAN_GPIO
// not number of pins but number of entities in IO module set
#define BOARD_CAN_GPIO_COUNT 1
#else
#define BOARD_CAN_GPIO_COUNT 0
#endif

View File

@ -13,6 +13,7 @@
#include "drivers/gpio/mc33972.h" #include "drivers/gpio/mc33972.h"
#include "drivers/gpio/tle8888.h" #include "drivers/gpio/tle8888.h"
#include "drivers/gpio/drv8860.h" #include "drivers/gpio/drv8860.h"
#include "drivers/gpio/can_gpio.h"
// we seem OK without L9779 here do we need those includes at all? // we seem OK without L9779 here do we need those includes at all?
#endif /* EFI_PROD_CODE */ #endif /* EFI_PROD_CODE */
@ -26,6 +27,7 @@ BOARD_TLE8888_COUNT + \
BOARD_DRV8860_COUNT + \ BOARD_DRV8860_COUNT + \
BOARD_MC33810_COUNT + \ BOARD_MC33810_COUNT + \
BOARD_L9779_COUNT + \ BOARD_L9779_COUNT + \
BOARD_CAN_GPIO_COUNT + \
0) 0)
#endif #endif