wifi: rtw89: fw: read firmware secure information from efuse
authorPing-Ke Shih <pkshih@realtek.com>
Sun, 4 Feb 2024 01:26:25 +0000 (09:26 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 6 Feb 2024 18:06:13 +0000 (20:06 +0200)
commit5462b8505f538b00d287a6de9a0fb2be6059bfc4
treee590082756e0ccadf689ffee87d78ff363667c39
parentdedf78efd2885048ca36bc17fbd4e1c0af33f2ad
wifi: rtw89: fw: read firmware secure information from efuse

To support firmware secure boot, read secure information from efuse to
know if current hardware module can support secure boot with certain
cryptography method.

This information should be prepared before downloading firmware, so read
efuse right after power on at probe stage. The secure information includes
secure cryptography method and secure key index that are used to choose
proper key material when downloading firmware.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240204012627.9647-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/efuse.h
drivers/net/wireless/realtek/rtw89/efuse_be.c
drivers/net/wireless/realtek/rtw89/pci.c
drivers/net/wireless/realtek/rtw89/rtw8922a.c