summaryrefslogtreecommitdiff
path: root/bsp/spacemit/k1/drivers/board.c
blob: bbb3a0f4bdb330414d8122e79df4ae8a4917b583 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (c) 2006-2024, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-5-1       GuEe-GUI     first version
 */

#include <setup.h>
#include <board.h>
#include <rtdevice.h>

#if defined(RT_USING_PTP) && defined(FINSH_USING_MSH)
#include <drivers/ptp.h>
#endif

void rt_hw_board_init(void)
{
    rt_hw_common_setup();
}

void rt_hw_fdt_vendor_install_early(void *fdt)
{
    int node;

    node = fdt_path_offset(fdt, "/cpus");
    fdt_setprop_u32(fdt, node, "cpu-boot-delay-us", 100);
}