pxa270(Xscale核)的nandflash移植
来源:互联网 发布:淘宝店铺怎样引流量 编辑:程序博客网 时间:2024/05/16 10:50
一. 配置内核
<*> MemoryTechnology Device (MTD) support --->
<*> MTD concatenating support
-*- MTD partitioning support
<*> Direct char device access to MTD devices
-*- Common interface to block layer for MTD'translation layers'
<*> Caching block device access to MTD devices
<*> NAND Device Support --->
<M> Support for generic platform NAND driver
二.资源配置
static struct resource hepxa270_nand_flash_resource = {.start = 0x02000000,.end = 0x02000000 + (1 << MAX(HEPXA270_NAND_CLE, HEPXA270_NAND_ALE)),.flags = IORESOURCE_MEM,};//nandflash只作数据存储,所以只分了一个区static struct mtd_partition hepxa270_nand_flash_partitions[] = {{.name = "Application Data",.offset = 0,.size = MTDPART_SIZ_FULL}};static void hepxa270_nand_flash_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl){struct nand_chip *this = mtd->priv;if (cmd == NAND_CMD_NONE)return;if (ctrl & NAND_CLE)writeb(cmd, this->IO_ADDR_W + (1 << HEPXA270_NAND_CLE));elsewriteb(cmd, this->IO_ADDR_W + (1 << HEPXA270_NAND_ALE));}static const char *hepxa270_nand_flash_part_probe_types[] = {"cmdlinepart", NULL};static struct platform_nand_data hepxa270_nand_flash_platdata = {.chip = {.nr_chips = 1,.chip_offset = 0,.nr_partitions = ARRAY_SIZE(hepxa270_nand_flash_partitions),.partitions = hepxa270_nand_flash_partitions,.chip_delay = 25,.part_probe_types = hepxa270_nand_flash_part_probe_types,},.ctrl = {.cmd_ctrl = hepxa270_nand_flash_cmd_ctl,}};static struct platform_device hepxa270_nand_flash_device = {.name = "gen_nand",.id = 0,.num_resources = 1,.resource = &hepxa270_nand_flash_resource,.dev = {.platform_data = &hepxa270_nand_flash_platdata,},};
三,添加平台设备
static struct platform_device *hepxa270_platform_devices[] __initdata = {&hepxa270_nand_flash_device,};
- pxa270(Xscale核)的nandflash移植
- pxa270(Xscale核)的ubifs文件系统移植
- pxa270(Xscale核)的LCD移植
- Mplayer在PXA270上的移植
- 基于Intel PXA270的WinCE操作系统移植
- s3c6410(arm11核)的nandflash移植
- Qt/Embedded 2.3.10 到PXA270上的移植
- Qt-embedded-3.2.3到PXA270上的移植
- vidcat在优龙pxa270开发板上的移植
- Live555在PXA270开发板上的移植
- BOA WEB服务器在XScale上的移植
- intel xscale PXA270 porting :unsupported machine ID大杂烩
- QT4.7移植到PXA270
- NandFlash驱动和Yaffs文件系统的移植
- NandFlash驱动和Yaffs文件系统的移植
- NandFlash驱动和Yaffs文件系统的移植
- NandFlash驱动和Yaffs文件系统的移植
- pxa270的睡眠问题
- Windows Azure地缘组 (Affinity Group)
- 面向对象—09—继承、final关键字
- opencv 笔记03Core_Mask
- rqnoj-394
- android114--文件
- pxa270(Xscale核)的nandflash移植
- 第六周项目二:填空
- oracle initialization or shutdown in progress
- PendingItent
- cocos2d-x初探学习笔记(2)--重要概念及Test例子结构
- 在服务器上部署javaweb的总结
- unitY3D---(1)加入重力
- 问题求解:Bitmap中1的个数
- struts2的response的contentType设置