Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame^] | 1 | From 2ab887402b9e22842d07e5f2fe1ac54518555af5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Davidson K <davidson.kumaresan@arm.com> |
| 3 | Date: Mon, 6 Jun 2022 13:24:42 +0530 |
| 4 | Subject: [PATCH 6/7] arm: total_compute: enable capsule update |
| 5 | |
| 6 | It includes: |
| 7 | * Enabling runtime capsule update |
| 8 | * Enabling efidebug command line tool |
| 9 | * Enabling the FMP driver that supports ARM PSA firmware update specification |
| 10 | * Predefining the carved out memory to be used for MM communication |
| 11 | * Enabling FF-A transport driver and adding an entry in dts |
| 12 | |
| 13 | Signed-off-by: Davidson K <davidson.kumaresan@arm.com> |
| 14 | Change-Id: I6d6c70c6fc386d6c40def800a7417c1ce4b8acf5 |
| 15 | Upstream-Status: Pending [Not submitted to upstream yet] |
| 16 | --- |
| 17 | arch/arm/dts/total_compute.dts | 7 +++++++ |
| 18 | configs/total_compute_defconfig | 5 +++++ |
| 19 | include/configs/total_compute.h | 4 ++++ |
| 20 | 3 files changed, 16 insertions(+) |
| 21 | |
| 22 | diff --git a/arch/arm/dts/total_compute.dts b/arch/arm/dts/total_compute.dts |
| 23 | index 96edacda0b..9b2cbfb452 100644 |
| 24 | --- a/arch/arm/dts/total_compute.dts |
| 25 | +++ b/arch/arm/dts/total_compute.dts |
| 26 | @@ -45,8 +45,15 @@ |
| 27 | clock-frequency = <24000000>; |
| 28 | clock-output-names = "bp:clock24mhz"; |
| 29 | }; |
| 30 | + |
| 31 | psci { |
| 32 | compatible = "arm,psci-1.0", "arm,psci-0.2"; |
| 33 | method = "smc"; |
| 34 | }; |
| 35 | + |
| 36 | + arm_ffa { |
| 37 | + compatible = "arm,ffa"; |
| 38 | + method = "smc"; |
| 39 | + status = "okay"; |
| 40 | + }; |
| 41 | }; |
| 42 | diff --git a/configs/total_compute_defconfig b/configs/total_compute_defconfig |
| 43 | index 6a375543cd..531ce41cd3 100644 |
| 44 | --- a/configs/total_compute_defconfig |
| 45 | +++ b/configs/total_compute_defconfig |
| 46 | @@ -52,3 +52,8 @@ CONFIG_SYS_FLASH_PROTECTION=y |
| 47 | CONFIG_SYS_FLASH_CFI=y |
| 48 | CONFIG_LIBAVB=y |
| 49 | CONFIG_OF_LIBFDT_OVERLAY=y |
| 50 | +CONFIG_ARM_FFA_TRANSPORT=y |
| 51 | +CONFIG_CMD_EFIDEBUG=y |
| 52 | +CONFIG_EFI_CAPSULE_FIRMWARE_ARM_PSA=y |
| 53 | +CONFIG_EFI_CAPSULE_ON_DISK=y |
| 54 | +CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y |
| 55 | diff --git a/include/configs/total_compute.h b/include/configs/total_compute.h |
| 56 | index 62bdb4f6a3..4b00f47ec6 100644 |
| 57 | --- a/include/configs/total_compute.h |
| 58 | +++ b/include/configs/total_compute.h |
| 59 | @@ -59,4 +59,8 @@ |
| 60 | #define CONFIG_SYS_FLASH_EMPTY_INFO /* flinfo indicates empty blocks */ |
| 61 | #define FLASH_MAX_SECTOR_SIZE 0x00040000 |
| 62 | |
| 63 | +/* Shared buffer used for communication between u-boot and the FWU SP */ |
| 64 | +#define FFA_SHARED_MM_BUFFER_SIZE 4 * 1024 * 1024 /* 4 MB */ |
| 65 | +#define FFA_SHARED_MM_BUFFER_ADDR (0xFCA00000) |
| 66 | + |
| 67 | #endif /* __TOTAL_COMPUTE_H */ |
| 68 | -- |
| 69 | 2.34.1 |
| 70 | |