guo ecf2d82159
sync branch rt-smart. (#6641)
* Synchronize the code of the rt mart branch to the master branch.
  * TTY device
  * Add lwP code from rt-smart
  * Add vnode in DFS, but DFS will be re-write for rt-smart
  * There are three libcpu for rt-smart:
    * arm/cortex-a, arm/aarch64
    * riscv64

Co-authored-by: Rbb666 <zhangbingru@rt-thread.com>
Co-authored-by: zhkag <zhkag@foxmail.com>
2022-12-03 12:07:44 +08:00

71 lines
1.2 KiB
C

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <hal_clk.h>
#include "platform_resource.h"
u32 g_irq_no[] = {
94,
95,
77
};
u32 g_reg_base[] = {
0x01000000,
0x06510000,
0x06511000,
0x06504000,
};
struct clk_info_t g_clk_no[] = {
{
"clk_de0",
HAL_CLK_PERIPH_DE,
HAL_CLK_PLL_PERI1,
(hal_reset_id_t)0,
0,
0,
0,
},
{
"clk_display_top",
HAL_CLK_PERIPH_DISPLAY_TOP,
HAL_CLK_SRC_HOSC24M,
(hal_reset_id_t)0,
0,
0,
0,
},
{
"clk_tcon0",
HAL_CLK_PERIPH_TCON_LCD0,
HAL_CLK_PLL_VIDEO,
(hal_reset_id_t)0,
0,
0,
0,
},
{
"clk_mipi_dsi0",
HAL_CLK_PERIPH_MIPI_DPHY0,
HAL_CLK_PLL_VIDEO,
(hal_reset_id_t)0,
0,
0,
0,
},
{
"clk_mipi_dsi1",
HAL_CLK_PERIPH_MIPI_HOST0,
HAL_CLK_SRC_HOSC24M,
(hal_reset_id_t)0,
0,
0,
0,
},
};
u32 g_irq_no_len = sizeof(g_irq_no) / sizeof(u32);
u32 g_reg_base_len = sizeof(g_reg_base) / sizeof(u32);
u32 g_clk_no_len = sizeof(g_clk_no) / sizeof(struct clk_info_t);