Community.nxp

Transcription

i.MX53 SABRE TABLET LinuxReference ManualPart Number: 924-76374Rev. 105/2011

How to Reach Us:Home Page:www.freescale.comWeb Support:http://www.freescale.com/supportUSA/Europe or Locations Not Listed:Freescale Semiconductor, Inc.Technical Information Center, EL5162100 East Elliot RoadTempe, Arizona 852841-800-521-6274 or 1-480-768-2130www.freescale.com/supportEurope, Middle East, and Africa:Freescale Halbleiter Deutschland GmbHTechnical Information CenterSchatzbogen 781829 Muenchen, Germany 44 1296 380 456 (English) 46 8 52200080 (English) 49 89 92103 559 (German) 33 1 69 35 48 48 (French)www.freescale.com/supportInformation in this document is provided solely to enable system and softwareimplementers to use Freescale Semiconductor products. There are no express orimplied copyright licenses granted hereunder to design or fabricate any integratedcircuits or integrated circuits based on the information in this document.Freescale Semiconductor reserves the right to make changes without further notice toany products herein. Freescale Semiconductor makes no warranty, representation orguarantee regarding the suitability of its products for any particular purpose, nor doesFreescale Semiconductor assume any liability arising out of the application or use ofany product or circuit, and specifically disclaims any and all liability, including withoutlimitation consequential or incidental damages. “Typical” parameters which may beprovided in Freescale Semiconductor data sheets and/or specifications can and dovary in different applications and actual performance may vary over time. All operatingparameters, including “Typicals” must be validated for each customer application bycustomer’s technical experts. Freescale Semiconductor does not convey any licenseJapan:Freescale Semiconductor Japan Ltd.HeadquartersARCO Tower 15F1-8-1, Shimo-Meguro, Meguro-kuTokyo 153-0064Japan0120 191014 or 81 3 5437 9125support.japan@freescale.comunder its patent rights nor the rights of others. Freescale Semiconductor products areAsia/Pacific:Freescale Semiconductor China Ltd.Exchange Building 23FNo. 118 Jianguo RoadChaoyang DistrictBeijing 100022China 86 10 5879 8000support.asia@freescale.comclaims, costs, damages, and expenses, and reasonable attorney fees arising out of,For Literature Requests Only:Freescale SemiconductorLiterature Distribution Center1-800 441-2447 or 1-303-675-2140Fax: group.comnot designed, intended, or authorized for use as components in systems intended forsurgical implant into the body, or other applications intended to support or sustain life,or for any other application in which the failure of the Freescale Semiconductor productcould create a situation where personal injury or death may occur. Should Buyerpurchase or use Freescale Semiconductor products for any such unintended orunauthorized application, Buyer shall indemnify and hold Freescale Semiconductorand its officers, employees, subsidiaries, affiliates, and distributors harmless against alldirectly or indirectly, any claim of personal injury or death associated with suchunintended or unauthorized use, even if such claim alleges that FreescaleSemiconductor was negligent regarding the design or manufacture of the part.Freescale and the Freescale logo are trademarks or registered trademarksof Freescale Semiconductor, Inc. in the U.S. and other countries. All otherproduct or service names are the property of their respective owners. Freescale Semiconductor, Inc., 2004-2011. All rights reserved.

t This BookAudience xxiConventions xxiDefinitions, Acronyms, and Abbreviations xxiSuggested Reading xxivChapter 1Introduction1.11.2Software Base . 6-1Features . 6-2Chapter 2Machine Specific Layer .32.4.42.4.52.52.5.1Interrupts . 7-1Interrupt Hardware Operation. 7-1Interrupt Software Operation . 7-2Interrupt Features. 7-2Interrupt Source Code Structure . 7-2Interrupt Programming Interface . 7-2Timer. 7-3Timer Hardware Operation . 7-3Timer Software Operation . 7-3Timer Features . 7-3Timer Source Code Structure. 7-4Memory Map . 7-4Memory Map Hardware Operation. 7-4Memory Map Software Operation. 7-4Memory Map Features. 7-4Memory Map Source Code Structure . 7-4Memory Map Programming Interface . 7-4IOMUX . 7-5IOMUX Hardware Operation . 7-5IOMUX Software Operation . 7-5IOMUX Features . 7-5IOMUX Source Code Structure. 7-6IOMUX Programming Interface. 7-6General Purpose Input/Output (GPIO) . 7-6GPIO Software Operation. 7-6i.MX53 Sabre Tablet Linux Reference Manual, Rev. 1Freescale Semiconductoriii

umberTitleAPI for GPIO. 7-6GPIO Features. 7-7GPIO Source Code Structure . 7-7GPIO Programming Interface. 7-7Chapter 3Smart Direct Memory Access (SDMA) API3.13.23.33.43.53.63.7Overview. 8-1Hardware Operation. 8-1Software Operation . 8-1Source Code Structure . 8-3Menu Configuration Options . 8-3Programming Interface . 8-4Usage Example . 8-4Chapter 4Universal Asynchronous Receiver/Transmitter (UART) 7Hardware Operation. 9-1Software Operation . 9-2Driver Features . 9-2Source Code Structure . 9-3Configuration . 9-3Menu Configuration Options . 9-3Source Code Configuration Options. 9-4Chip Configuration Options . 9-4Board Configuration Options . 9-4Programming Interface . 9-4Interrupt Requirements . 9-4Chapter 5DA9053 PMIC Driver5.15.25.35.4Hardware information. 10-1Software Drivers . 10-1Source code structure. 10-2Menu Configuration Options . 10-2Chapter 6ARC USB Driveri.MX53 Sabre Tablet Linux Reference Manual, Rev. 1ivFreescale Semiconductor

6.9.16.9.26.9.3TitlePageNumberArchitectural Overview. 11-2Hardware Operation. 11-2Software Operation . 11-2Driver Features . 11-3Source Code Structure . 11-4Menu Configuration Options . 11-5Programming Interface . 11-6Default USB Settings. 11-7USB Wakeup usage. 11-7How to enable usb wakeup system ability. 11-7What kinds of wakeup event usb support . 11-7How to close the usb child device power . 11-8Chapter 7Image Processing Unit (IPU) rdware Operation. 12-2Software Operation . 12-2IPU Frame Buffer Drivers Overview. 12-3IPU Frame Buffer Hardware Operation. 12-4IPU Frame Buffer Software Operation. 12-4Synchronous Frame Buffer Driver . 12-4Source Code Structure . 12-6Menu Configuration Options . 12-7Programming Interface . 12-9Chapter 8HDMI Driver8.18.28.38.4Hardware Operation. 13-1.Software Operation13-1Source Code Structure . 13-2Linux Menu Configuration Options . 13-2Chapter 9MXC DDC Driver9.19.1.19.1.29.2MXC DDC Driver Overview. 14-1Hardware Operation. 14-1.Software Operation14-1Source Code Structure Configuration . 14-1i.MX53 Sabre Tablet Linux Reference Manual, Rev. 1Freescale Semiconductorv

ContentsParagraphNumber9.3TitlePageNumberDriver Configuration. 14-2Chapter 10i.MX5 Dual Display10.110.210.3Hardware Operation. 15-1Software Operation . 15-1Examples. 15-3Chapter 11Video for Linux Two (V4L2) V4L2 Capture Device . 16-2V4L2 Capture IOCTLs . 16-2Use of the V4L2 Capture APIs . 16-4V4L2 Output Device. 16-5V4L2 Output IOCTLs. 16-5Use of the V4L2 Output APIs. 16-6Source Code Structure . 16-6Menu Configuration Options . 16-7V4L2 Programming Interface . 16-7Chapter 12Graphics Processing Unit (GPU)12.112.212.312.412.512.6Driver Features . 17-1Hardware Operation. 17-1Software Operation . 17-1Source Code Structure . 17-1API References . 17-2Menu Configuration Options . 17-2Chapter 13X Windows re Operation. 18-1Software Operation . 18-1X Windows Acceleration Architecture . 18-1i.MX X Driver Details . 18-3libz160 Details . 18-4EGL-X Details . 18-4i.MX53 Sabre Tablet Linux Reference Manual, Rev. 1viFreescale Semiconductor

The xorg.conf File for i.MX X Driver . 18-5Setup X Windows Acceleration. 18-6Chapter 14Video Processing Unit (VPU) Driver14.114.214.314.414.514.6Hardware Operation. 19-1Software Operation . 19-2Source Code Structure . 19-3Menu Configuration Options . 19-4Programming Interface . 19-4Defining an Application. 19-5Chapter 15Low-level Power Management (PM) Driver15.115.215.315.415.5Hardware Operation. 20-1Software Operation . 20-1Source Code Structure . 20-2Menu Configuration Options . 20-2Programming Interface . 20-2Chapter 16Dynamic Voltage Frequency Scaling (DVFS) Driver16.116.216.316.416.4.1Hardware Operation. 21-1Software Operation . 21-1Source Code Structure . 21-1Menu Configuration Options . 21-2Board Configuration Options. 21-2Chapter 17CPU Frequency Scaling (CPUFREQ) Driver17.117.217.317.3.1Software Operation . 22-1Source Code Structure . 22-1Menu Configuration Options . 22-2Board Configuration Options. 22-2Chapter 18Software Based Peripheral Domain Frequency Scalingi.MX53 Sabre Tablet Linux Reference Manual, Rev. 1Freescale Semiconductorvii

8.318.3.1TitlePageNumberSoftware based Bus Frequency Scaling. 23-1Low Power Audio Playback Mode (LPAPM) . 23-1Medium Frequency Setpoint. 23-2High Frequency Setpoint . 23-2Source Code Structure . 23-2Menu Configuration Options . 23-2Board Configuration Options. 23-2Chapter 19MAX17085 charger Driver19.119.1.119.1.219.219.3Overview. 24-1Hardware Operation. 24-1.Software Operation24-1Source Code Structure Configuration . 24-2Driver Configuration. 24-2Chapter 20ISL29023 Ambient Light Sensor Driver20.120.220.320.420.5ISL29023 Features . 25-1Driver Requirements. 25-1Driver Architecture . 25-1Driver Source Code Structure . 25-2Driver Configuration. 25-2Chapter 21Advanced Linux Sound Architecture (ALSA)System on a Chip (ASoC) Sound 21.5.221.6SoC Sound Card. 26-1Stereo Codec Features . 26-2Sound Card Information . 26-2ASoC Driver Source Architecture . 26-2Menu Configuration Options . 26-4Hardware Operation. 26-4Stereo Audio Codec . 26-4Software Operation . 26-5Sound Card Registration. 26-5Device Open . 26-5Platform Data . 26-6i.MX53 Sabre Tablet Linux Reference Manual, Rev. 1viiiFreescale Semiconductor

ContentsParagraphNumberTitlePageNumberChapter 22The Sony/Philips Digital Interface (S/PDIF) .422.522.6S/PDIF Overview. 27-1Hardware Overview. 27-1Software Overview . 27-2The ASoC layer . 27-2S/PDIF Tx Driver. 27-2Driver Design. 27-3Provided User Interface . 27-4Interrupts and Exceptions . 27-4Source Code Structure . 27-4Menu Configuration Options . 27-4Platform Data . 27-5Chapter 23Asynchronous Sample Rate Converter (ASRC) re Operation. 28-1Software Operation . 28-1Sequence for Memory to ASRC to Memory . 28-2Sequence for Memory to ASRC to Peripheral. 28-3Source Code Structure . 28-3Linux Menu Configuration Options . 28-3Platform Data . 28-3Programming Interface (Exported API and IOCTLs) . 28-3Chapter 24SPI NOR Flash Memory Technology Device (MTD) Driver24.124.224.324.424.5Hardware Operation. 29-1Software Operation . 29-2Driver Features . 29-2Source Code Structure . 29-2Menu Configuration Options . 29-3Chapter 25SATA Driver25.125.2Hardware Operation. 30-1Software Operation . 30-1i.MX53 Sabre Tablet Linux Reference Manual, Rev. 1Freescale Semiconductorix

9TitlePageNumberSource Code Structure Configuration . 30-1Linux Menu Configuration Options . 30-1Board Configuration Options. 30-1Programming Interface . 30-2Usage Example . 30-2Usage Example . 30-3SATA temperature monitor . 30-3Chapter 26MMC/SD/SDIO Host Driver26.126.226.326.426.526.626.726.8Hardware Operation. 31-1Software Operation .

i.MX53 Sabre Tablet Linux Reference Manual, Rev. 1 Freescale Semiconductor iii Contents Paragraph Number Title Page Number About This BookContents Audience xxi Conventions xxi Def