设为首页 加入收藏

TOP

Android2.3.4在OK6410上的移植(二)
2014-11-24 13:27:24 来源: 作者: 【 】 浏览:2
Tags:Android2.3.4 OK6410 移植
*****************************************


定义芯片信息


struct s3c2410_nand_set {
unsigned int disable_ecc:1;
unsigned int flash_bbt:1;

unsigned int options;
int nr_chips;
int nr_partitions;
char *name;
int *nr_map;
struct mtd_partition *partitions;
struct nand_ecclayout *ecc_layout;
};
/***对于NANDFLASH作为平台设备的一些时序信息等
struct s3c2410_platform_nand {
/* timing information for controller, all times in nanoseconds */

int tacls; /* time for active CLE/ALE to nWE/nOE */
int twrph0; /* active time for nWE/nOE */
int twrph1; /* time for release CLE/ALE from nWE/nOE inactive */

unsigned int ignore_unset_ecc:1;

int nr_sets;
struct s3c2410_nand_set *sets;

void (*select_chip)(struct s3c2410_nand_set *,
int chip);
};


/**********************************************************************************


static struct s3c2410_platform_nand eilian6410_nand_info = {
.tacls = 25,
.twrph0 = 55,
.twrph1 = 40,
.nr_sets = ARRAY_SIZE(eilian6410_nand_sets),
.sets = eilian6410_nand_sets,
};
/************************************************
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
************************************************
*/


该代码放在static struct platform_device *eilian6410_devices[] __initdata = {上面就行


同时记得添加如下头文件


#include
#include
#include


首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Android简易时钟(animation的使.. 下一篇Android中Input型输入设备驱动原..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: