quark: Introduce Quark Secure Partition
Test partition designed to have a virtual address space as small as
possible in order to test the extension ARMv8.4-TTST. This Secure
Partition doesn't have print capabilities. The only service it provides
is one that returns a magic number to verify that it has been loaded.
Change-Id: I431f6c65f2926d486836d12ddfefe05e83b0c47f
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
diff --git a/spm/quark/quark.dts b/spm/quark/quark.dts
new file mode 100644
index 0000000..a8fb4a7
--- /dev/null
+++ b/spm/quark/quark.dts
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2018-2019, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <sp_res_desc_def.h>
+
+#include "quark_def.h"
+
+/* 4 KiB pages */
+#define PAGE_SIZE U(0x1000)
+
+/dts-v1/;
+
+/ {
+ compatible = "arm,sp_rd";
+
+ attribute {
+ version = <0x00000001>;
+ sp_type = <RD_ATTR_TYPE_UP_MIGRATABLE>;
+ pe_mpidr = <0>; /* Unused */
+ runtime_el = <RD_ATTR_RUNTIME_SEL0>;
+ exec_type = <RD_ATTR_RUNTIME>;
+ panic_policy = <RD_ATTR_PANIC_ONESHOT>;
+ xlat_granule = <RD_ATTR_XLAT_GRANULE_4KB>;
+ binary_size = <QUARK_IMAGE_SIZE>;
+ load_address = <0x00000000 QUARK_IMAGE_BASE>;
+ entrypoint = <0x00000000 QUARK_IMAGE_BASE>;
+ };
+
+ memory_regions {
+ spm_buffer {
+ str = "SPM buffer";
+ base = <0x00000000 QUARK_SPM_BUF_BASE>;
+ size = <0x00000000 QUARK_SPM_BUF_SIZE>;
+ attr = <RD_MEM_NORMAL_SPM_SP_SHARED_MEM>;
+ };
+ };
+
+ notifications {
+ notification_0 {
+ attr = <0>;
+ pe = <0>;
+ };
+ };
+
+ services {
+ test_service_1 {
+ uuid = <QUARK_SERVICE1_UUID_RD>;
+
+ accessibility = <(RD_SERV_ACCESS_SECURE |
+ RD_SERV_ACCESS_EL3 |
+ RD_SERV_ACCESS_NORMAL)>;
+ request_type = <(RD_SERV_SUPPORT_BLOCKING |
+ RD_SERV_SUPPORT_NON_BLOCKING)>;
+ connection_quota = <10>;
+ sec_mem_size = <0>;
+ interrupt_num = <0>;
+ };
+ };
+};