欢迎来到天天文库
浏览记录
ID:16506020
大小:77.00 KB
页数:16页
时间:2018-08-10
《uboot第二阶段代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、/**(C)Copyright2002-2006*WolfgangDenk,DENXSoftwareEngineering,wd@denx.de.**(C)Copyright2002*SysgoReal-TimeSolutions,GmbH*MariusGroeger**SeefileCREDITSforlistofpeoplewhocontributedtothis*project.**Thisprogramisfreesoftware;youcanredistributeitand/o
2、r*modifyitunderthetermsoftheGNUGeneralPublicLicenseas*publishedbytheFreeSoftwareFoundation;eitherversion2of*theLicense,or(atyouroption)anylaterversion.**Thisprogramisdistributedinthehopethatitwillbeuseful,*butWITHOUTANYWARRANTY;withouteventheimpliedwarrantyof*MERCHANTABILITYorFITNE
3、SSFORAPARTICULARPURPOSE.Seethe*GNUGeneralPublicLicenseformoredetails.**YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense*alongwiththisprogram;ifnot,writetotheFreeSoftware*Foundation,Inc.,59TemplePlace,Suite330,Boston,*MA02111-1307USA*//**TomatchtheU-BootuserinterfaceonARMplatf
4、ormstotheU-Boot*standard(asonPPCplatforms),somemessageswithdebugcharacter*areremovedfromthedefaultU-Bootbuild.**DefineDEBUGhereifyouwantadditionalinfoasshownbelow*printeduponstartup:**U-Bootcode:00F00000->00F3C774BSS:->00FC3274*IRQStack:00ebff7c*FIQStack:00ebef7c*/#include5、>#include#include#include#include#include#include#include#include#include#include#ifdefCONFIG_BITBANGMII#include#endif#ifdefCONFIG_DRIVER_SMC91111#include"../drivers6、/net/smc91111.h"#endif#ifdefCONFIG_DRIVER_LAN91C96#include"../drivers/net/lan91c96.h"#endifDECLARE_GLOBAL_DATA_PTR;ulongmonitor_flash_len;#ifdefCONFIG_HAS_DATAFLASHexternintAT91F_DataflashInit(void);externvoiddataflash_print_info(void);#endif#ifndefCONFIG_IDENT_STRING#defineCONFIG_7、IDENT_STRING""#endifconstcharversion_string[]=U_BOOT_VERSION"("U_BOOT_DATE"-"U_BOOT_TIME")"CONFIG_IDENT_STRING;#ifdefCONFIG_DRIVER_RTL8019externvoidrtl8019_get_enetaddr(uchar*addr);#endif#ifdefined(CONFIG_HARD_I2C)8、9、defined(CONFIG_SOFT_I2C)#include#endif/*******************10、**************************
5、>#include#include#include#include#include#include#include#include#include#include#ifdefCONFIG_BITBANGMII#include#endif#ifdefCONFIG_DRIVER_SMC91111#include"../drivers
6、/net/smc91111.h"#endif#ifdefCONFIG_DRIVER_LAN91C96#include"../drivers/net/lan91c96.h"#endifDECLARE_GLOBAL_DATA_PTR;ulongmonitor_flash_len;#ifdefCONFIG_HAS_DATAFLASHexternintAT91F_DataflashInit(void);externvoiddataflash_print_info(void);#endif#ifndefCONFIG_IDENT_STRING#defineCONFIG_
7、IDENT_STRING""#endifconstcharversion_string[]=U_BOOT_VERSION"("U_BOOT_DATE"-"U_BOOT_TIME")"CONFIG_IDENT_STRING;#ifdefCONFIG_DRIVER_RTL8019externvoidrtl8019_get_enetaddr(uchar*addr);#endif#ifdefined(CONFIG_HARD_I2C)
8、
9、defined(CONFIG_SOFT_I2C)#include#endif/*******************
10、**************************
此文档下载收益归作者所有