Add UP button timeout to PHY.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2024-11-25 12:57:17 +01:00
parent 6a18e3aa83
commit 812f075ee4
3 changed files with 21 additions and 3 deletions

View File

@@ -24,6 +24,7 @@
#define PHY_LED_GPIO 0x4
#define PHY_LED_BTNESS 0x5
#define PHY_OPTS 0x6
#define PHY_UP_BTN 0x8
#define PHY_OPT_WCID 0x1
#define PHY_OPT_DIMM 0x2
@@ -42,14 +43,16 @@ typedef struct phy_data {
uint8_t led_gpio;
uint8_t led_brightness;
uint16_t opts;
uint8_t up_btn;
bool vidpid_present;
bool led_gpio_present;
bool led_brightness_present;
bool up_btn_present;
} phy_data_t;
#define PHY_OPT_MASK (PHY_OPT_SECURE_LOCK | PHY_OPT_SECURE_BOOT | PHY_OPT_DIMM | PHY_OPT_WCID)
#define PHY_OPT_MASK (PHY_UP_BTN | PHY_OPT_SECURE_LOCK | PHY_OPT_SECURE_BOOT | PHY_OPT_DIMM | PHY_OPT_WCID)
#define PHY_MAX_SIZE 8
#define PHY_MAX_SIZE 9
#ifndef ENABLE_EMULATION
extern int phy_serialize_data(const phy_data_t *phy, uint8_t *data, uint16_t *len);