aboutsummaryrefslogtreecommitdiff
path: root/product/n1sdp
diff options
context:
space:
mode:
authorManoj Kumar <manoj.kumar3@arm.com>2018-10-26 10:29:38 +0530
committerdavidcunado-arm <david.cunado@arm.com>2018-10-30 16:58:33 +0000
commit71343b0efa7e2c240cd44c40acfe363c86a4b434 (patch)
treedf4f570ec6991e08af73ca26926cc77457178b39 /product/n1sdp
parent662fb5a3af724dd19ea678f7ec898090b790feae (diff)
n1sdp: add system clock and n1sdp core header files for n1sdp SCP
Change-Id: If034447f364f533c739d02c6f42420756c30684b Signed-off-by: Manoj Kumar <manoj.kumar3@arm.com>
Diffstat (limited to 'product/n1sdp')
-rw-r--r--product/n1sdp/include/n1sdp_core.h20
-rw-r--r--product/n1sdp/include/n1sdp_system_clock.h16
2 files changed, 36 insertions, 0 deletions
diff --git a/product/n1sdp/include/n1sdp_core.h b/product/n1sdp/include/n1sdp_core.h
new file mode 100644
index 00000000..6b504ca0
--- /dev/null
+++ b/product/n1sdp/include/n1sdp_core.h
@@ -0,0 +1,20 @@
+/*
+ * Arm SCP/MCP Software
+ * Copyright (c) 2018, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef N1SDP_CORE_H
+#define N1SDP_CORE_H
+
+#include <stdint.h>
+
+#define CORES_PER_CLUSTER 2
+#define NUMBER_OF_CLUSTERS 2
+
+unsigned int n1sdp_core_get_core_per_cluster_count(unsigned int cluster);
+unsigned int n1sdp_core_get_core_count(void);
+unsigned int n1sdp_core_get_cluster_count(void);
+
+#endif /* N1SDP_CORE_H */
diff --git a/product/n1sdp/include/n1sdp_system_clock.h b/product/n1sdp/include/n1sdp_system_clock.h
new file mode 100644
index 00000000..994a8501
--- /dev/null
+++ b/product/n1sdp/include/n1sdp_system_clock.h
@@ -0,0 +1,16 @@
+/*
+ * Arm SCP/MCP Software
+ * Copyright (c) 2018, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef N1SDP_SYSTEM_CLOCK_H
+#define N1SDP_SYSTEM_CLOCK_H
+
+#include <fwk_macros.h>
+
+#define CLOCK_RATE_REFCLK (100UL * FWK_MHZ)
+#define CLOCK_RATE_SYSPLLCLK (2400UL * FWK_MHZ)
+
+#endif /* N1SDP_SYSTEM_CLOCK_H */