查看: 11297|回复: 1

UBOOT

10

主题

22

回帖

21

积分

i.MX6UL通行证

director82 发表于 2013-1-17 16:30:02 | 显示全部楼层 |阅读模式
请问nand_cp.c中
int copy_uboot_to_ram(void)  
{  
     int large_block = 0;
  int i;
  vu_char id;

        NAND_ENABLE_CE();
        NFCMD_REG = NAND_CMD_READID;
        NFADDR_REG =  0x00;

  /* wait for a while */
        for (i=0; i<200; i++);
   id = NFDATA8_REG;
   id = NFDATA8_REG;

  if (id > 0x80)
    large_block = 1;
  if(id == 0xd5)
    large_block = 2;


/* read NAND Block.
  * 128KB ->240KB because of U-Boot size increase. by scsuh
  * So, read 0x3c000 bytes not 0x20000(128KB).
  */
  return nandll_read_blocks(CONFIG_SYS_PHY_UBOOT_BASE, 0x3c000, large_block);
}  


这个函数NAND_ENABLE_CE();代码在哪儿
回复

使用道具 举报

10

主题

22

回帖

21

积分

i.MX6UL通行证

楼主| director82 发表于 2013-1-17 16:45:43 | 显示全部楼层
找到了 smdk6410.h
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则