On 8/28/2026 7:27 PM, Richard Genoud (TI) wrote:
> From: Prasanth Babu Mantena <[email protected]>
> 
> Extend the access to SRAM region of ATF to TIFS as well. This is
> needed for TIFS for encryption and decryption of ATF as a part of
> low power mode sequence. TIFS encrypts the ATF while entering into
> low power mode and decrypts it back while resuming back.
> So, giving permissions for TIFS to access this region.
> 
> Signed-off-by: Prasanth Babu Mantena <[email protected]>
> Co-developed-by: Richard Genoud (TI) <[email protected]>
> Signed-off-by: Richard Genoud (TI) <[email protected]>
> ---
>  arch/arm/dts/k3-binman.dtsi | 7 ++++++-
>  arch/arm/dts/k3-security.h  | 1 +
>  2 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/dts/k3-binman.dtsi b/arch/arm/dts/k3-binman.dtsi
> index ad127663d03b..1cf417ed7dcd 100644
> --- a/arch/arm/dts/k3-binman.dtsi
> +++ b/arch/arm/dts/k3-binman.dtsi
> @@ -475,7 +475,12 @@
>                                       FWCTRL_CACHE)>;
>               permissions = <((FWPRIVID_ARMV8 << FWPRIVID_SHIFT) |
>                                               FWPERM_SECURE_PRIV_RWCD |
> -                                             FWPERM_SECURE_USER_RWCD)>;
> +                                             FWPERM_SECURE_USER_RWCD)>,
> +                                     <((FWPRIVID_TIFS << FWPRIVID_SHIFT) |
> +                                             FWPERM_SECURE_PRIV_RWCD |
> +                                             FWPERM_SECURE_USER_RWCD |
> +                                             FWPERM_NON_SECURE_PRIV_RWCD |
> +                                             FWPERM_NON_SECURE_USER_RWCD)>;

LGTM, to give TIFS access.


>               start_address = <0x0 CONFIG_K3_ATF_LOAD_ADDR>;
>               end_address = <0x0 (CONFIG_K3_ATF_LOAD_ADDR + 
> CONFIG_K3_ATF_RESERVED_SIZE - 1)>;
>       };
> diff --git a/arch/arm/dts/k3-security.h b/arch/arm/dts/k3-security.h
> index 33609caa8fb5..3e066bca6ad7 100644
> --- a/arch/arm/dts/k3-security.h
> +++ b/arch/arm/dts/k3-security.h
> @@ -7,6 +7,7 @@
>  #define DTS_ARM64_TI_K3_FIREWALL_H
>  
>  #define FWPRIVID_ALL    0xc3
> +#define FWPRIVID_TIFS   0xca
>  #define FWPRIVID_ARMV8  1
>  #define FWPRIVID_SHIFT  16
>  

Reply via email to