首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

Davinci DM6446 Linux 内核分析——board-evm.c(5)

Davinci DM6446 Linux 内核分析——board-evm.c(5)

static __init void evm_init(void)
{
#if defined (CONFIG_MTD_DAVINCI_NOR) ||defined(CONFIG_MTD_DAVINCI_NOR_MODULE)
#if defined(CONFIG_BLK_DEV_DAVINCI) ||defined(CONFIG_BLK_DEV_DAVINCI_MODULE)
#warning IDE and NOR flash are are pin-muxed. Disable IDE orNOR.
printk(KERN_WARNING "WARNING: both IDE and NOR flash are enabled,"
"but are pin-muxed.\n\t Disable IDE or NOR support.\n");
#endif
#if defined (CONFIG_MTD_NAND_DAVINCI) ||defined(CONFIG_MTD_NAND_DAVINCI_MODULE)
#warning NAND and NOR flash are are pin-muxed. Disable NAND orNOR.
printk(KERN_WARNING "WARNING: both NAND and NOR flash are enabled,"
"but are pin-muxed.\n\t Disable NAND or NOR support.\n");
#endif
#endif

#if defined(CONFIG_BLK_DEV_DAVINCI) ||defined(CONFIG_BLK_DEV_DAVINCI_MODULE)
#if defined (CONFIG_MTD_NAND_DAVINCI) ||defined(CONFIG_MTD_NAND_DAVINCI_MODULE)
#warning IDE and NAND flash are are pin-muxed. Disable IDE orNAND.
printk(KERN_WARNING "WARNING: both IDE and NAND flash are enabled,"
"but are pin-muxed.\n\t Disable IDE or NAND support.\n");
#endif
#endif
pm_power_off = davinci_msp430_deep_sleep;
setup_mmc();
davinci_gpio_irq_setup();
platform_add_devices(davinci_evm_devices, //注册所有已定义的platform_device
ARRAY_SIZE(davinci_evm_devices));
}


extern void davinci_irq_init(void);


extern struct sys_timer davinci_timer;


MACHINE_START(DAVINCI_EVM, "DaVinci EVM")
MAINTAINER("Texas Instruments, PSP Team")
BOOT_MEM(DAVINCI_DDR_BASE, IO_PHYS, IO_VIRT) //定义了DDR2的起始物理地址,IO寄存器的起始物理地址以及IO寄存器的到虚拟地址
BOOT_PARAMS(0x80000100) //bootloader存放启动参数到起始物理地址,系统启动会从中读取各种参数
MAPIO(davinci_map_io) // IO模块初始化,定义在本文件中
INITIRQ(davinci_irq_init)
.timer = &davinci_timer,
INIT_MACHINE(evm_init)
MACHINE_END
EXPORT_SYMBOL(cpu_type)
继承事业,薪火相传
返回列表