From 8f4f5373cf8c74e1be4d8fb89d2dbbbe56f9f4ae Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Tue, 18 Nov 2025 01:06:31 +0100 Subject: [PATCH] Do not use secboot in Phy. Signed-off-by: Pol Henarejos --- src/fs/phy.c | 15 +-------------- src/fs/phy.h | 2 -- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/fs/phy.c b/src/fs/phy.c index 7913aa2..d58947a 100644 --- a/src/fs/phy.c +++ b/src/fs/phy.c @@ -48,14 +48,7 @@ int phy_serialize_data(const phy_data_t *phy, uint8_t *data, uint16_t *len) { } *p++ = PHY_OPTS; *p++ = 2; - uint16_t opts = phy->opts; - if (otp_is_secure_boot_enabled()) { - opts |= PHY_OPT_SECBOOT; - } - if (otp_is_secure_boot_locked()) { - opts |= PHY_OPT_SECLOCK; - } - p += put_uint16_t_be(opts, p); + p += put_uint16_t_be(phy->opts, p); if (phy->up_btn_present) { *p++ = PHY_UP_BTN; *p++ = 1; @@ -123,12 +116,6 @@ int phy_unserialize_data(const uint8_t *data, uint16_t len, phy_data_t *phy) { case PHY_OPTS: if (tlen == 2) { phy->opts = get_uint16_t_be(p); - if (otp_is_secure_boot_enabled()) { - phy->opts |= PHY_OPT_SECBOOT; - } - if (otp_is_secure_boot_locked()) { - phy->opts |= PHY_OPT_SECLOCK; - } p += 2; } break; diff --git a/src/fs/phy.h b/src/fs/phy.h index e918085..e8b1b9c 100644 --- a/src/fs/phy.h +++ b/src/fs/phy.h @@ -34,8 +34,6 @@ #define PHY_OPT_DIMM 0x2 #define PHY_OPT_DISABLE_POWER_RESET 0x4 #define PHY_OPT_LED_STEADY 0x8 -#define PHY_OPT_SECBOOT 0x10 -#define PHY_OPT_SECLOCK 0x20 #define PHY_CURVE_SECP256R1 0x1 #define PHY_CURVE_SECP384R1 0x2