嵌入式开发者社区

标题: TL138-EVM内核配置问题 [打印本页]

作者: 优雅    时间: 2014-11-26 14:54
标题: TL138-EVM内核配置问题
官方提供的默认配置da850_omapl138_tl_defconfig在System type->TI Davinci Implementations下同时选中了TI DA850/OMAP-L138/AM18X Reference Platform和DA850 SDI Develop board,最终编译时到底是board-da850-sdi.c还是board-da850-evm.c在起作用?为什么?我现在要添加一个SPI设备,应该把设备信息加到哪个文件中?
7 L9 [+ Z  x0 S! v
& P5 F9 z. v* ^3 T
作者: teddy    时间: 2014-11-27 09:54
您好!这个取决于u-boot里面使用哪个mach id,8 Z3 w0 C, Q# ^) R$ s3 d
    /* arch number of the board */
% H4 R2 z0 J4 U    gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_DA850_EVM;# k1 O2 [, a$ N3 [7 H6 g
所以是board-da850-evm.c在起作用,所以可以在board-da850-evm.c添加的设备,希望对您有用!9 J* s0 ?- A+ D1 T+ ?

作者: 优雅    时间: 2014-11-27 12:20
teddy 发表于 2014-11-27 09:54
4 N% O# Y/ b9 [5 D+ ]. S您好!这个取决于u-boot里面使用哪个mach id,
4 H: c, u$ }# K9 N5 W2 p7 y8 a0 S    /* arch number of the board */
5 s# ]9 Q$ a0 `2 c0 {! ~    gd->bd->bi_arch_n ...

2 y7 K* D; }: M& K谢谢你的回答
: o2 i  `# d3 Z2 ~+ j




欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4