mini6410的u-boot-2010.12的移植 《二》
boards.cfg文件中增加mini6410的平台定义: 修改arch/arm/cpu/arm1176/start.S文件: =================================================================================== ==================================================================================== 添加: /* ?* We are done. Do not return,instead branch to second part of board ?* initialization,now running from RAM. ?*/ #ifdef CONFIG_NAND_SPL /*check boot status */ #define MEM_CFG_STAT 0x7E00F12C ldrr1,=MEM_CFG_STAT/* address of reg ?MEM_CFG_STAT*/ ldrr0,[r1] mov r1,#0x60 andr1,r0,r1/*r1 = MEM_CFG_STAT & CFG_BOOT_LOC */ cmpr1,#0x60/*Internal ROM*/ beqboot_from_irom cmpr1,#0x00/*Stepping Stone area in NFCON*/ beqboot_from_nand breset boot_from_irom: /*MINI6410 boot from Internal ROM-->MMC boot*/ #if defined(CONFIG_MINI6410_LED) /* R/W,Pull-up disable register */ movr1,#ELFIN_GPIO_BASE_8BIT addr1,r1,#ELFIN_GPK_BASE_8BIT ldrr2,=0x22222111 strr2,[r1,#GPKCON0_OFFSET_8BIT] ldrr2,=0x0000AAAA strr2,#GPKPUD_OFFSET_8BIT] ldrr2,=0x0000ff7f strr2,#GPKDAT_OFFSET_8BIT] #endif bmmc_boot_copy boot_from_nand: /*MINI6410 boot from Nand Flash*/ #if defined(CONFIG_MINI6410_LED) /* R/W,=0x0000ffff strr2,#GPKDAT_OFFSET_8BIT] #endif bnand_boot #else ldrr0,_board_init_r_ofs adrr1,_start addlr,r1 add ? ? lr,lr,r9 /* setup parameters for board_init_r */ movr0,r5/* gd_t */ movr1,r6/* dest_addr */ /* jump to it ... */ movpc,lr (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |