mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
[libcpu][aarch64] 使用设备树对CPU进行初始化 (#8221)
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
* 2022-08-25 GuEe-GUI first version
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <rtthread.h>
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
* 2022-08-25 GuEe-GUI first version
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <rthw.h>
|
||||
#include <rtthread.h>
|
||||
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user