You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2023/09/10 11:28:48 UTC
[nuttx] branch master updated (09a81017b8 -> 78c942a05a)
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
from 09a81017b8 To solve the problem of unordered setting of div & mux, after solving the problem, the frequency will be set to mux first, and then div
new 90fba56d2e timer/trustzone: set CPU frequency in tee environment
new 78c942a05a devicetree: add devicetree support for arm/arm64
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
arch/arm/src/qemu/qemu_boot.c | 8 ++++++++
arch/arm/src/qemu/qemu_timer.c | 8 +-------
2 files changed, 9 insertions(+), 7 deletions(-)
[nuttx] 01/02: timer/trustzone: set CPU frequency in tee environment
Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 90fba56d2e7008c371f6340e4983fa192024b9b0
Author: hujun5 <hu...@xiaomi.com>
AuthorDate: Fri Aug 4 10:18:50 2023 +0800
timer/trustzone: set CPU frequency in tee environment
In an implementation that supports the ARM Security Extensions, only
software executing in a Secure PL1 mode can write to CNTFRQ
Signed-off-by: hujun5 <hu...@xiaomi.com>
---
arch/arm/src/qemu/qemu_timer.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/arm/src/qemu/qemu_timer.c b/arch/arm/src/qemu/qemu_timer.c
index 582d92c3aa..ffab98cbe4 100644
--- a/arch/arm/src/qemu/qemu_timer.c
+++ b/arch/arm/src/qemu/qemu_timer.c
@@ -26,17 +26,11 @@
#include "arm_timer.h"
-/****************************************************************************
- * Pre-processor Definitions
- ****************************************************************************/
-
-#define CYCLES_PER_SEC 62500000
-
/****************************************************************************
* Public Functions
****************************************************************************/
void up_timer_initialize(void)
{
- up_alarm_set_lowerhalf(arm_timer_initialize(CYCLES_PER_SEC));
+ up_alarm_set_lowerhalf(arm_timer_initialize(0));
}
[nuttx] 02/02: devicetree: add devicetree support for arm/arm64
Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 78c942a05a3fe015712297d2994269be2acff472
Author: liaoao <li...@xiaomi.com>
AuthorDate: Mon Aug 7 15:48:21 2023 +0800
devicetree: add devicetree support for arm/arm64
Signed-off-by: liaoao <li...@xiaomi.com>
---
arch/arm/src/qemu/qemu_boot.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/src/qemu/qemu_boot.c b/arch/arm/src/qemu/qemu_boot.c
index a442a81cd6..f3992170e1 100644
--- a/arch/arm/src/qemu/qemu_boot.c
+++ b/arch/arm/src/qemu/qemu_boot.c
@@ -29,6 +29,10 @@
#include "qemu_irq.h"
#include "qemu_memorymap.h"
+#ifdef CONFIG_DEVICE_TREE
+# include <nuttx/fdt.h>
+#endif
+
/****************************************************************************
* Public Functions
****************************************************************************/
@@ -47,6 +51,10 @@ void arm_boot(void)
qemu_setupmappings();
+#ifdef CONFIG_DEVICE_TREE
+ fdt_register((FAR const char *)0x40000000);
+#endif
+
#ifdef USE_EARLYSERIALINIT
/* Perform early serial initialization if we are going to use the serial
* driver.