欢迎来到天天文库
浏览记录
ID:15356403
大小:1.35 MB
页数:30页
时间:2018-08-02
《linux 3.x内核arm架构新技术变革_2013arm开发者大会》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Linux3.x内核下ARM架构新技术变革BarrySong2013ARM开发者大会1Agenda!RebuiltinfrastructureinARMLinux!Multi-platformARMkernels!big.LITTLEswitcherandscheduler!AndroidMainliningProject2RebuiltinfrastructureinARMLinux3LinusTorvaldssaidthiswholeARMthingisaf*ckingpainintheass-LinusTorvalds,M
2、ar.20114RebuiltinfrastructureinARMLinux3.x!DeviceTreebaseddriversandBSP!CommonpinctrlFramework!CommonclockFramework!CommonDMAFramework!Supportmulti-platformsARMkernel!Alotofunifiedandre-usedcodes5Devicetree!Thedevicetreeisasimpletreestructureofnodesandproperties.Propertiesarekey-value
3、pairs,andnodemaycontainbothpropertiesandchildnodes./{node1{a-string-property="Astring";a-string-list-property="firststring","secondstring";a-byte-data-property=[0x010x230x340x56];child-node1{first-child-property;second-child-property=<1>;a-string-property="Hello,world";};child-node2{};};
4、node2{an-empty-property;a-cell-property=<1234>;/*eachnumber(cell)isauint32*/child-node1{};};};6ComponentsofDeviceTree!DTS(devicetreesource)!DTC(devicetreecompiler)!DeviceTreeBlob(.dtb)!BindingDocumentation/devicetree/bindings!Bootloader#defineCONFIG_OF_LIBFDT7Platformdevices!Use.dtst
5、odescriberesourcesofplatformdevicestaticstructresourcesirfsoc_i2c0_resource[]={{.start=SIRFSOC_I2C0MOD_PA_BASE,.end=SIRFSOC_I2C0MOD_PA_BASE+SIRFSOC_I2C0MOD_SIZE-1,.flags=IORESOURCE_MEM,},{.start=IRQ_I2C0,.end=IRQ_I2C0,.flags=IORESOURCE_IRQ,},};i2c0:i2c@cc0e0000{cell-index=<0>;compatible=
6、"sirf,marco-i2c";reg=<0xcc0e00000x10000>;interrupts=<0240>;#address-cells=<1>;#size-cells=<0>;status="disabled";};8I2C&SPIclients!Legacy:i2c_board_info&spi_board_info!DT:i2c0:i2c@cc0e0000{status="okay";fpga-cpld@4d{compatible="sirf,fpga-cpld";reg=<0x4d>;};};spi1:spi@cc170000{status="oka
7、y";pinctrl-names="default";pinctrl-0=<&spi1_pins_a>;spi@0{compatible="spidev";reg=<0>;spi-max-frequency=<1000000>;};};9Commonboardfileforaseriesofboards!Don’ttouchboardfilesasweoftendidbeforein2.6!!Commonboardfile:staticconstchar*prima2_dt_match[]__initdata={"sirf,prima
此文档下载收益归作者所有