s5pv210-nand s5pv210-nand: failed to get clock问题
2014-02-28 22:39
477 查看
问题:移植nand flash 出现加载问题s5pv210-nand s5pv210-nand: failed to get clock问题
解决,发现是没有注册nand 的时钟
在arch/arm/mach-s5pv210/clock.c文件下
static struct clk init_clocks_off[] 结构中添加
{
.name = "nand",
.id = -1,
.parent = &clk_hclk_psys.clk,
.enable = s5pv210_clk_ip1_ctrl,
.ctrlbit = ((1 << 28) | (1 << 24)),
},
这样nand 驱动中
s3c_nand.clk = clk_get(&pdev->dev, "nand");
就可以或者时钟使能
问题2,编译时出现,nand HWECC要有ecc.strength的问题,,
解决:驱动程序中,probe函数里硬件ECC校验那一块缺少
nand->ecc.strength=17;
解决,发现是没有注册nand 的时钟
在arch/arm/mach-s5pv210/clock.c文件下
static struct clk init_clocks_off[] 结构中添加
{
.name = "nand",
.id = -1,
.parent = &clk_hclk_psys.clk,
.enable = s5pv210_clk_ip1_ctrl,
.ctrlbit = ((1 << 28) | (1 << 24)),
},
这样nand 驱动中
s3c_nand.clk = clk_get(&pdev->dev, "nand");
就可以或者时钟使能
问题2,编译时出现,nand HWECC要有ecc.strength的问题,,
解决:驱动程序中,probe函数里硬件ECC校验那一块缺少
nand->ecc.strength=17;
相关文章推荐
- grails 困扰了蛮久的问题 java.lang.IllegalStateException: Failed to invoke Servlet 2.5 getContextPath method
- failed to get the task for process 1363问题解决
- undefined reference to `clock_gettime' 链接错误问题解决(转)
- 同步出现问题Failed to get lock on destination repos
- Linux解决问题篇——ftp上传文件(使用put)时,permission denied,下载文件(使用get)时,failed to open file
- undefined reference to `clock_gettime' 链接错误问题解决
- SVN 同步出现问题Failed to get lock on destination repos
- undefined reference to `clock_gettime' 链接错误问题解决
- Ubuntu执行sudo apt-get update出现Failed to fetch.......的问题的解决
- Docker容器使用问题:Failed to get D-Bus connection: Operation not permitted
- svnsync failed to get lock on destination repos 问题解决
- 使用opencv 2.2静态库时: undefined reference to `clock_gettime' 链接错误问题解决
- svnsync failed to get lock on destination repos 问题解决
- ionic3 自定义插件安装失败问题解决 Error: Failed to get absolute path to installed module
- 解决failed to get the required adt version from sdkversion问题方法之一
- 解决Eclipse出现failed to get the required adt version from sdkversion问题的方法
- Hadoop问题集锦:rmr: failed to get server trash configuration:null.……
- uboot的nandflash启动saveenv时Writing to Nand... FAILED问题解决办法
- Mac Docker (问题)docker Failed to get D-Bus connection 报错
- undefined reference to `clock_gettime' 链接错误问题解决