没有合适的资源?快使用搜索试试~ 我知道了~
首页i.MX Linux开发指南:MSL与中断管理详解
本文档是i.MXLinux® Reference Manual,版本为Rev.0,10/2016,由NXPSemiconductors提供,主要针对Freescale i.MX系列处理器的Linux驱动及应用开发提供详尽的参考。该手册旨在帮助开发者深入了解i.MX架构下的系统操作、中断处理、以及特定于3780/MX2842芯片的特性。
1. **关于本书**
- 该书面向的是硬件工程师、软件开发人员以及系统集成者,特别关注那些在i.MX平台上进行Linux开发和优化的读者。
- 书中遵循特定的术语和约定(Conventions),如定义、缩写和首字母大写的专用术语,以确保一致性。
2. **介绍**
- **软件基础**:章节详细介绍了i.MX Linux的软件环境,可能包括内核支持、板级支持包( BSP)、以及必要的驱动库。
- **功能概述**:阐述了i.MX平台的主要特点,比如多核架构、嵌入式处理单元(IPU)和视频处理单元(VPU)等,这些都是开发过程中不可或缺的部分。
3. **机器特定层(MSL)**
- MSL是文档的核心部分,它为开发人员提供了与硬件交互的桥梁,特别是中断管理。
- **中断处理**:这部分详细描述了中断硬件操作流程,包括如何触发中断、中断处理机的响应机制,以及中断处理的软件部分。还介绍了不同中断源的结构和编程接口,例如3780/MX2842的实现细节。
- **定时器**:作为一个关键组件,章节讲解了硬件定时器的工作原理,以及如何在软件中配置和使用它们。
4. **中断管理**
- 对于3780/MX2842这样的具体型号,手册提供了中断硬件操作的详细介绍,强调了软件操作步骤和功能需求。
- 代码结构示例和中断单元测试展示了实际开发中的实现策略,有助于开发人员理解和实现中断处理逻辑。
i.MXLinux Reference Manual是一份全面的指南,它不仅覆盖了i.MX系列Linux平台的基础,还深入探讨了中断管理和定时器等核心功能,对硬件和软件开发者调试、优化和设计i.MX平台上的应用程序至关重要。通过阅读这本书,开发者可以更好地利用i.MX处理器的特性,提高系统的性能和稳定性。
Section number Title Page
29.3.1 Sequence for Memory to ASRC to Memory................................................................................................. 236
29.3.2 Sequence for Memory to ASRC to Peripheral...............................................................................................236
29.4 Source Code Structure.................................................................................................................................................. 236
29.4.1 Linux Menu Configuration Options...............................................................................................................237
29.5 Devicetree Binding....................................................................................................................................................... 237
29.5.1 Programming Interface (Exported API and IOCTLs)....................................................................................238
29.6 Unit Test........................................................................................................................................................................239
29.6.1 Memory-to-ASRC-to-Peripheral................................................................................................................... 239
29.6.2 Memory-to-ASRC-to-Memory...................................................................................................................... 240
Chapter 30
The Sony/Philips Digital Interface (S/PDIF) Driver
30.1 Introduction...................................................................................................................................................................243
30.1.1 S/PDIF Overview...........................................................................................................................................243
30.1.2 Hardware Overview....................................................................................................................................... 244
30.1.3 Software Overview........................................................................................................................................ 245
30.1.4 The ASoC layer..............................................................................................................................................245
30.2 S/PDIF Tx Driver..........................................................................................................................................................245
30.2.1 Driver Design.................................................................................................................................................246
30.2.2 Provided User Interface................................................................................................................................. 246
30.3 S/PDIF Rx Driver......................................................................................................................................................... 247
30.3.1 Driver Design.................................................................................................................................................248
30.3.2 Provided User Interface................................................................................................................................. 248
30.4 Source Code Structure ................................................................................................................................................. 250
30.5 Menu Configuration Options........................................................................................................................................251
30.6 Device Tree Bindings................................................................................................................................................... 251
30.7 Interrupts and Exceptions............................................................................................................................................. 251
30.8 Unit Test Preparation.................................................................................................................................................... 252
30.8.1 Tx test step..................................................................................................................................................... 252
30.8.2 Rx test step.....................................................................................................................................................252
i.MX Linux® Reference Manual, Rev. 0, 10/2016
16 NXP Semiconductors
Section number Title Page
Chapter 31
SPI NOR Flash Memory Technology Device (MTD) Driver
31.1 Introduction...................................................................................................................................................................255
31.1.1 Hardware Operation.......................................................................................................................................255
31.1.2 Software Operation........................................................................................................................................ 256
31.1.3 Driver Features...............................................................................................................................................256
31.1.4 Source Code Structure................................................................................................................................... 257
31.1.5 Menu Configuration Options......................................................................................................................... 257
31.1.6 Unit Test.........................................................................................................................................................257
Chapter 32
MMC/SD/SDIO Host Driver
32.1 Revision History........................................................................................................................................................... 259
32.2 Introduction...................................................................................................................................................................260
32.2.1 Hardware Operation.......................................................................................................................................261
32.2.2 Software Operation........................................................................................................................................ 263
32.3 Driver Features..............................................................................................................................................................265
32.3.1 Source Code Structure................................................................................................................................... 266
32.3.2 Menu Configuration Options......................................................................................................................... 267
32.3.3 Devicetree Binding........................................................................................................................................ 268
32.3.4 How to add a SDHC slot support...................................................................................................................269
32.3.5 Programming Interface.................................................................................................................................. 270
32.3.6 Loadable Module Operations.........................................................................................................................270
32.4 Unit Test........................................................................................................................................................................271
Chapter 33
NAND GPMI Flash Driver
33.1 Introduction...................................................................................................................................................................275
33.1.1 Hardware Operation.......................................................................................................................................275
33.2 Software Operation....................................................................................................................................................... 275
33.2.1 Basic Operations: Read/Write........................................................................................................................276
33.2.2 Backward Compatibility................................................................................................................................ 276
i.MX Linux® Reference Manual, Rev. 0, 10/2016
NXP Semiconductors 17
Section number Title Page
33.2.3 Error Correction............................................................................................................................................. 277
33.2.4 Boot Control Block Management.................................................................................................................. 277
33.2.5 Bad Block Handling.......................................................................................................................................278
33.2.6 Special NAND supporting............................................................................................................................. 278
33.3 Source Code Structure.................................................................................................................................................. 278
33.3.1 Menu Configuration Options......................................................................................................................... 278
Chapter 34
SATA Driver
34.1 Hardware Operation......................................................................................................................................................281
34.1.1 Software Operation........................................................................................................................................ 281
34.1.2 Source Code Structure Configuration............................................................................................................281
34.1.3 Linux Menu Configuration Options...............................................................................................................282
34.1.4 Board Configuration Options.........................................................................................................................282
34.2 Programming Interface................................................................................................................................................. 282
34.2.1 Usage Example2............................................................................................................................................ 282
34.2.2 Usage Example.............................................................................................................................................. 283
34.2.3 SATA temperature monitor........................................................................................................................... 284
Chapter 35
Inter-IC (I2C) Driver
35.1 Introduction...................................................................................................................................................................285
35.1.1 I2C Bus Driver Overview.............................................................................................................................. 285
35.1.2 I2C Device Driver Overview......................................................................................................................... 286
35.1.3 Hardware Operation.......................................................................................................................................286
35.2 Software Operation....................................................................................................................................................... 286
35.2.1 I2C Bus Driver Software Operation...............................................................................................................287
35.2.2 I2C Device Driver Software Operation......................................................................................................... 287
35.3 Driver Features..............................................................................................................................................................287
35.3.1 Source Code Structure................................................................................................................................... 288
35.3.2 Menu Configuration Options......................................................................................................................... 288
i.MX Linux® Reference Manual, Rev. 0, 10/2016
18 NXP Semiconductors
Section number Title Page
35.3.3 Programming Interface.................................................................................................................................. 288
35.3.4 Interrupt Requirements.................................................................................................................................. 288
35.4 Unit Test........................................................................................................................................................................289
Chapter 36
Enhanced Configurable Serial Peripheral Interface (ECSPI) Driver
36.1 Introduction...................................................................................................................................................................291
36.1.1 Hardware Operation.......................................................................................................................................291
36.2 Software Operation....................................................................................................................................................... 292
36.2.1 SPI Sub-System in Linux OS.........................................................................................................................292
36.2.2 Software Limitations......................................................................................................................................292
36.2.3 Standard Operations.......................................................................................................................................293
36.2.4 ECSPI Synchronous Operation......................................................................................................................293
36.2.5 SPI-NOR Access............................................................................................................................................293
36.3 Driver Features..............................................................................................................................................................293
36.3.1 Source Code Structure................................................................................................................................... 294
36.3.2 Menu Configuration Options......................................................................................................................... 294
36.3.3 Programming Interface.................................................................................................................................. 294
36.3.4 Interrupt Requirements.................................................................................................................................. 295
36.4 Unit Test........................................................................................................................................................................295
36.5 Device-Specific Information.........................................................................................................................................296
Chapter 37
FlexCAN Driver
37.1 Revision History........................................................................................................................................................... 297
37.2 Driver Overview........................................................................................................................................................... 298
37.2.1 Hardware Operation.......................................................................................................................................299
37.2.2 Software Operation........................................................................................................................................ 299
37.2.3 Source Code Structure................................................................................................................................... 300
37.2.4 Linux Menu Configuration Options...............................................................................................................301
37.3 Unit Test........................................................................................................................................................................302
i.MX Linux® Reference Manual, Rev. 0, 10/2016
NXP Semiconductors 19
Section number Title Page
Chapter 38
Media Local Bus Driver
38.1 Revision History........................................................................................................................................................... 303
38.2 Introduction...................................................................................................................................................................304
38.2.1 MLB Device Module..................................................................................................................................... 304
38.2.2 Supported Features.........................................................................................................................................305
38.2.3 MLB Driver Overview...................................................................................................................................306
38.3 MLB Driver.................................................................................................................................................................. 306
38.3.1 MLB Driver Architecture...............................................................................................................................306
38.3.2 Software Operation........................................................................................................................................ 307
38.4 Driver Files................................................................................................................................................................... 309
38.5 Menu Configuration Options........................................................................................................................................309
38.6 Unit Test........................................................................................................................................................................309
38.6.1 Preparation..................................................................................................................................................... 310
38.6.2 Test Steps....................................................................................................................................................... 310
38.6.3 Cases.............................................................................................................................................................. 311
Chapter 39
CHIPIDEA USB Driver
39.1 Revision History........................................................................................................................................................... 313
39.2 Introduction...................................................................................................................................................................314
39.2.1 Architectural Overview..................................................................................................................................315
39.3 Hardware Operation......................................................................................................................................................315
39.3.1 Software Operation........................................................................................................................................ 315
39.3.2 Source Code Structure................................................................................................................................... 316
39.3.3 Menu Configuration Options......................................................................................................................... 316
39.3.4 Loadable module support...............................................................................................................................317
39.3.5 System WakeUp.............................................................................................................................................317
39.3.6 USB Wakeup Usage.......................................................................................................................................317
39.3.7 How to Close the USB Child Device Power..................................................................................................318
i.MX Linux® Reference Manual, Rev. 0, 10/2016
20 NXP Semiconductors
剩余428页未读,继续阅读
2014-11-19 上传
2018-01-20 上传
2018-03-07 上传
2019-11-11 上传
2018-01-28 上传
2018-11-22 上传
2018-07-06 上传
120 浏览量
allew
- 粉丝: 1
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于RGB空间的彩色图像处理GUI设计.pdf
- RapidWebSpherePortletFactory
- 物流信息系统的设计与实现
- 高速串行背板总线的仿真设计
- ssh框架集成的详细说明
- 基于模糊神经网络的多传感器自适应
- 模糊神经网络信息融合在移动机器人的应用
- FIFO算法的c++实现
- 运筹案例分析详细车车
- 二叉树的遍历代码(递归)
- VB与单片机之间通信-RS232
- 让CPU占用率曲线听你指挥
- 用c++解决饮料供货的问题
- 《ajax框架:dwr与ext》实战
- pci_cust_tutorial.pdf
- O' Reilly - Practical C Programming 3rd Edition
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功