[libcpu][aarch64] 使用设备树对CPU进行初始化 (#8221)

This commit is contained in:
fangjianzhou
2023-11-28 14:20:11 +08:00
committed by GitHub
parent c06f4e98fc
commit 249871cbbc
23 changed files with 1101 additions and 782 deletions
-1
View File
@@ -8,7 +8,6 @@
* 2022-08-25 GuEe-GUI first version
*/
#define _GNU_SOURCE
#include <rtthread.h>
-2
View File
@@ -8,8 +8,6 @@
* 2022-08-25 GuEe-GUI first version
*/
#define _GNU_SOURCE
#include <rthw.h>
#include <rtthread.h>
+1 -2
View File
@@ -12,7 +12,7 @@
#define __OFW_INTERNAL_H__
#include <rtthread.h>
#include <posix/string.h>
#include <drivers/ofw.h>
#define OFW_PHANDLE_MIN 1
@@ -23,7 +23,6 @@
#define OFW_ROOT_NODE_ADDR_CELLS_DEFAULT 1
#define OFW_ROOT_NODE_SIZE_CELLS_DEFAULT 1
struct fdt_info
{
/* Always "/", because we save "ofw" information in root node. */
+2 -2
View File
@@ -901,12 +901,12 @@ static rt_err_t _rt_pm_device_control(rt_device_t dev,
switch (cmd)
{
case RT_PM_DEVICE_CTRL_REQUEST:
mode = (rt_uint32_t)args;
mode = (rt_uint32_t)(rt_ubase_t)args;
rt_pm_request(mode);
break;
case RT_PM_DEVICE_CTRL_RELEASE:
mode = (rt_uint32_t)args;
mode = (rt_uint32_t)(rt_ubase_t)args;
rt_pm_release(mode);
break;
}