I.MX 6Dual/6Quad Linux Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
i.MX 6Dual/6Quad Linux Reference Manual Document Number: i.MX6QLXRM Rev L3.0.35_4.0.0, 05/2013 i.MX 6Dual/6Quad Linux Reference Manual, Rev. L3.0.35_4.0.0, 05/2013 2 Freescale Semiconductor, Inc. Contents Section number Title Page Chapter 1 About this Book 1.1 Audience.......................................................................................................................................................................23 1.1.1 Conventions.....................................................................................................................................................23 1.1.2 Definitions, Acronyms, and Abbreviations......................................................................................................23 Chapter 2 Machine Specific Layer (MSL) 2.1 Introduction...................................................................................................................................................................27 2.2 Interrupts (Operation)...................................................................................................................................................28 2.2.1 Interrupt Hardware Operation..........................................................................................................................28 2.2.2 Interrupt Software Operation...........................................................................................................................28 2.2.3 Interrupt Features.............................................................................................................................................29 2.2.4 Interrupt Source Code Structure......................................................................................................................29 2.2.5 Interrupt Programming Interface.....................................................................................................................29 2.3 Timer.............................................................................................................................................................................30 2.3.1 Timer Software Operation...............................................................................................................................30 2.3.2 Timer Features.................................................................................................................................................30 2.3.3 Timer Source Code Structure...........................................................................................................................31 2.3.4 Timer Programming Interface..........................................................................................................................31 2.4 Memory Map................................................................................................................................................................31 2.4.1 Memory Map Hardware Operation..................................................................................................................31 2.4.2 Memory Map Software Operation...................................................................................................................31 2.4.3 Memory Map Features.....................................................................................................................................31 2.4.4 Memory Map Source Code Structure..............................................................................................................32 2.4.5 Memory Map Programming Interface.............................................................................................................32 2.5 IOMUX.........................................................................................................................................................................32 2.5.1 IOMUX Hardware Operation..........................................................................................................................33 2.5.2 IOMUX Software Operation............................................................................................................................33 i.MX 6Dual/6Quad Linux Reference Manual, Rev. L3.0.35_4.0.0, 05/2013 Freescale Semiconductor, Inc. 3 Section number Title Page 2.5.3 IOMUX Features..............................................................................................................................................34 2.5.4 IOMUX Source Code Structure.......................................................................................................................34 2.5.5 IOMUX Programming Interface......................................................................................................................34 2.5.6 IOMUX Control Through GPIO Module........................................................................................................34 2.5.6.1 GPIO Hardware Operation.................................................................................................................35 2.5.6.1.1 Muxing Control.................................................................................................................35 2.5.6.1.2 PULLUP Control..............................................................................................................35 2.5.6.2 GPIO Software Operation (general)..................................................................................................35 2.5.6.3 GPIO Implementation........................................................................................................................35 2.5.6.4 GPIO Source Code Structure.............................................................................................................36 2.5.6.5 GPIO Programming Interface............................................................................................................36 2.6 General Purpose Input/Output(GPIO)..........................................................................................................................36 2.6.1 GPIO Software Operation................................................................................................................................36 2.6.1.1 API for GPIO.....................................................................................................................................37 2.6.2 GPIO Features..................................................................................................................................................37 2.6.3 GPIO Module Source Code Structure..............................................................................................................37 2.6.4 GPIO Programming Interface 2.......................................................................................................................38 Chapter 3 Smart Direct Memory Access (SDMA) API 3.1 Overview.......................................................................................................................................................................39 3.1.1 Hardware Operation.........................................................................................................................................39 3.1.2 Software Operation..........................................................................................................................................39 3.1.3 Source Code Structure.....................................................................................................................................40 3.1.4 Menu Configuration Options...........................................................................................................................41 3.1.5 Programming Interface....................................................................................................................................41 3.1.6 Usage Example................................................................................................................................................41 i.MX 6Dual/6Quad Linux Reference Manual, Rev. L3.0.35_4.0.0, 05/2013 4 Freescale Semiconductor, Inc. Section number Title Page Chapter 4 AHB-to-APBH Bridge with DMA (APBH-Bridge-DMA) 4.1 Overview.......................................................................................................................................................................43 4.1.1 Hardware Operation.........................................................................................................................................43 4.1.2 Software Operation..........................................................................................................................................44 4.1.3 Source Code Structure.....................................................................................................................................44 4.1.4 Menu Configuration Options...........................................................................................................................45 4.1.5 Programming Interface....................................................................................................................................45 4.1.6 Usage Example................................................................................................................................................45 Chapter 5 Image Processing Unit (IPU) Drivers 5.1 Introduction...................................................................................................................................................................47