I.MX Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
i.MX Reference Manual Document Number: IMXLXRM Rev. L4.9.88_2.0.0-ga, 05/2018 i.MX Reference Manual, Rev. L4.9.88_2.0.0-ga, 05/2018 2 NXP Semiconductors Contents Section number Title Page Chapter 1 Introduction 1.1 Overview.........................................................................................................................................................................33 1.1.1 Software Base.................................................................................................................................................... 33 1.1.2 Features.............................................................................................................................................................. 34 1.2 Audience......................................................................................................................................................................... 37 1.2.1 Conventions....................................................................................................................................................... 38 1.2.2 Definitions, Acronyms, and Abbreviations........................................................................................................38 Chapter 2 System 2.1 Machine-Specific Layer (MSL)......................................................................................................................................43 2.1.1 Introduction........................................................................................................................................................43 2.1.2 Interrupts (Operation)........................................................................................................................................ 44 2.1.2.1 Interrupt Hardware Operation............................................................................................................44 2.1.2.2 Interrupt Software Operation (only for i.MX 6 or i.MX 7)............................................................... 44 2.1.2.3 Interrupt Features............................................................................................................................... 45 2.1.2.4 Interrupt Source Code Structure........................................................................................................ 45 2.1.2.5 Interrupt Programming Interface....................................................................................................... 45 2.1.3 Timer..................................................................................................................................................................45 2.1.3.1 Timer Software Operation................................................................................................................. 46 2.1.3.2 Timer Features................................................................................................................................... 46 2.1.3.3 Timer Programming Interface............................................................................................................46 2.1.4 Memory Map......................................................................................................................................................47 2.1.4.1 Memory Map Hardware Operation....................................................................................................47 2.1.4.2 Memory Map Software Operation (only for i.MX 6 or i.MX 7)....................................................... 47 2.1.4.3 Memory Map Features....................................................................................................................... 47 2.1.4.4 Memory Map Source Code Structure (only for i.MX 6 or i.MX 7).................................................. 47 2.1.5 IOMUX.............................................................................................................................................................. 48 i.MX Reference Manual, Rev. L4.9.88_2.0.0-ga, 05/2018 NXP Semiconductors 3 Section number Title Page 2.1.5.1 IOMUX Hardware Operation............................................................................................................ 49 2.1.5.2 IOMUX Software Operation..............................................................................................................49 2.1.5.3 IOMUX Features................................................................................................................................49 2.1.5.4 IOMUX Source Code Structure.........................................................................................................49 2.1.5.5 IOMUX Programming Interface........................................................................................................50 2.1.5.6 IOMUX Control Through GPIO Module.......................................................................................... 51 2.1.5.6.1 GPIO Hardware Operation............................................................................................. 51 2.1.5.6.1.1 Muxing Control........................................................................................ 51 2.1.5.6.1.2 PULLUP Control......................................................................................51 2.1.5.6.2 GPIO Software Operation (general)............................................................................... 52 2.1.5.6.3 GPIO Implementation.....................................................................................................52 2.1.6 General Purpose Input/Output(GPIO)............................................................................................................... 52 2.1.6.1 GPIO Software Operation..................................................................................................................52 2.1.6.1.1 API for GPIO.................................................................................................................. 52 2.1.6.2 GPIO Features....................................................................................................................................53 2.1.6.3 GPIO Module Source Code Structure................................................................................................53 2.1.6.4 GPIO Programming Interface 2......................................................................................................... 53 2.2 Anatop Regulator Driver (only for i.MX 6 or i.MX 7)...................................................................................................53 2.2.1 Introduction........................................................................................................................................................54 2.2.1.1 Hardware Operation...........................................................................................................................54 2.2.2 Software Operation............................................................................................................................................ 54 2.2.2.1 Driver Features...................................................................................................................................54 2.2.2.2 Driver Interface Details......................................................................................................................55 2.2.2.3 Regulator APIs...................................................................................................................................55 2.2.2.4 Source Code Structure....................................................................................................................... 56 2.2.2.5 Menu Configuration Options............................................................................................................. 56 2.3 Power Management........................................................................................................................................................ 56 2.3.1 Low Level Power Management (PM)................................................................................................................56 2.3.1.1 Hardware Operation...........................................................................................................................56 i.MX Reference Manual, Rev. L4.9.88_2.0.0-ga, 05/2018 4 NXP Semiconductors Section number Title Page 2.3.1.2 Software Operation............................................................................................................................ 57 2.3.1.2.1 Source Code Structure.................................................................................................... 59 2.3.1.2.2 Menu Configuration Options.......................................................................................... 59 2.3.1.2.3 Programming Interface................................................................................................... 60 2.3.2 PMIC PF Regulator............................................................................................................................................60 2.3.2.1 Introduction........................................................................................................................................60 2.3.2.1.1 Hardware Operation........................................................................................................60 2.3.2.2 Software Operation...........................................................................................................................