mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-21 06:23:35 +08:00
[bsp][rockchip] fixup the drivers' configure
Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
@@ -28,17 +28,17 @@
|
||||
}
|
||||
|
||||
#define GATE_NO_SET_RATE(_id, cname, pname, f, o, b, gf) \
|
||||
(void *)&(struct rockchip_clk_cell) \
|
||||
{ \
|
||||
.cell.name = cname, \
|
||||
.cell.ops = &rockchip_gate_clk_ops, \
|
||||
.cell.parent_name = pname, \
|
||||
.cell.parents_nr = 1, \
|
||||
.cell.flags = f | RT_CLK_F_SET_RATE_PARENT, \
|
||||
.id = _id, \
|
||||
.gate_offset = o, \
|
||||
.gate_shift = b, \
|
||||
.gate_flags = gf, \
|
||||
(void *)&(struct rockchip_clk_cell) \
|
||||
{ \
|
||||
.cell.name = cname, \
|
||||
.cell.ops = &rockchip_gate_clk_ops, \
|
||||
.cell.parent_name = pname, \
|
||||
.cell.parents_nr = 1, \
|
||||
.cell.flags = (f) & ~RT_CLK_F_SET_RATE_PARENT, \
|
||||
.id = _id, \
|
||||
.gate_offset = o, \
|
||||
.gate_shift = b, \
|
||||
.gate_flags = gf, \
|
||||
}
|
||||
|
||||
extern const struct rt_clk_ops rockchip_gate_clk_ops;
|
||||
|
||||
@@ -1115,6 +1115,7 @@ static rt_err_t append_rk8xx_regulator(struct rk8xx *rk8xx, struct rt_ofw_node *
|
||||
rgp = &rk8xx_reg->parent;
|
||||
rgp->ops = rk8xx_reg->desc->ops;
|
||||
rgp->param = &rk8xx_reg->param;
|
||||
rgp->supply_name = rgp->param->name;
|
||||
rgp->dev = &rk8xx_reg->device;
|
||||
|
||||
rgp->dev->ofw_node = np;
|
||||
|
||||
@@ -252,7 +252,31 @@ CONFIG_DFS_USING_POSIX=y
|
||||
CONFIG_DFS_USING_WORKDIR=y
|
||||
CONFIG_DFS_FD_MAX=512
|
||||
CONFIG_RT_USING_DFS_V2=y
|
||||
# CONFIG_RT_USING_DFS_ELMFAT is not set
|
||||
CONFIG_RT_USING_DFS_ELMFAT=y
|
||||
|
||||
#
|
||||
# elm-chan's FatFs, Generic FAT Filesystem Module
|
||||
#
|
||||
CONFIG_RT_DFS_ELM_CODE_PAGE=437
|
||||
CONFIG_RT_DFS_ELM_WORD_ACCESS=y
|
||||
# CONFIG_RT_DFS_ELM_USE_LFN_0 is not set
|
||||
# CONFIG_RT_DFS_ELM_USE_LFN_1 is not set
|
||||
# CONFIG_RT_DFS_ELM_USE_LFN_2 is not set
|
||||
CONFIG_RT_DFS_ELM_USE_LFN_3=y
|
||||
CONFIG_RT_DFS_ELM_USE_LFN=3
|
||||
CONFIG_RT_DFS_ELM_LFN_UNICODE_0=y
|
||||
# CONFIG_RT_DFS_ELM_LFN_UNICODE_1 is not set
|
||||
# CONFIG_RT_DFS_ELM_LFN_UNICODE_2 is not set
|
||||
# CONFIG_RT_DFS_ELM_LFN_UNICODE_3 is not set
|
||||
CONFIG_RT_DFS_ELM_LFN_UNICODE=0
|
||||
CONFIG_RT_DFS_ELM_MAX_LFN=255
|
||||
CONFIG_RT_DFS_ELM_DRIVES=4
|
||||
CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512
|
||||
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
|
||||
# CONFIG_RT_DFS_ELM_REENTRANT is not set
|
||||
CONFIG_RT_DFS_ELM_USE_EXFAT=y
|
||||
# end of elm-chan's FatFs, Generic FAT Filesystem Module
|
||||
|
||||
CONFIG_RT_USING_DFS_DEVFS=y
|
||||
# CONFIG_RT_USING_DFS_ROMFS is not set
|
||||
CONFIG_RT_USING_DFS_PTYFS=y
|
||||
|
||||
@@ -170,6 +170,21 @@
|
||||
#define DFS_USING_WORKDIR
|
||||
#define DFS_FD_MAX 512
|
||||
#define RT_USING_DFS_V2
|
||||
#define RT_USING_DFS_ELMFAT
|
||||
|
||||
/* elm-chan's FatFs, Generic FAT Filesystem Module */
|
||||
|
||||
#define RT_DFS_ELM_CODE_PAGE 437
|
||||
#define RT_DFS_ELM_WORD_ACCESS
|
||||
#define RT_DFS_ELM_USE_LFN_3
|
||||
#define RT_DFS_ELM_USE_LFN 3
|
||||
#define RT_DFS_ELM_LFN_UNICODE_0
|
||||
#define RT_DFS_ELM_LFN_UNICODE 0
|
||||
#define RT_DFS_ELM_MAX_LFN 255
|
||||
#define RT_DFS_ELM_DRIVES 4
|
||||
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
|
||||
#define RT_DFS_ELM_USE_EXFAT
|
||||
/* end of elm-chan's FatFs, Generic FAT Filesystem Module */
|
||||
#define RT_USING_DFS_DEVFS
|
||||
#define RT_USING_DFS_PTYFS
|
||||
#define RT_USING_DFS_PROCFS
|
||||
|
||||
Reference in New Issue
Block a user