Qualcomm MPM introduction
在 Qualcomm chip 裡有一個 hardware block 名為 MPM。
在 RPM CPU halts 後,MPM 會保持在 on 的狀態用來處理 全系統 sleep process 的最後步驟。
MPM 也會保持在 on 的狀態,依據 MPM interrupt controller 設定來 monitor systen wake event。
Flow
注解
MPM supports VDD minimization , also known as VDD_CORE rentation mode, 減少 digital logic 電路的漏電流,但還可以保持 register 和 memory 的狀態。
Source Code
msm8917-pm.dtsi
qcom,mpm@601d0 {
...
qcom,gic-map = <2 216>, /* tsens_upper_lower_int */
<49 172>, /* usb1_hs_async_wakeup_irq */
<58 166>, /* usb_hs_irq */
166 是 GIC interrupt,
58 是 MPM pin,
也就是 GIC interrupt is routed to MPM pin,
在 MPM 的設定中 (Q1 有提到)
MPM 除了可以接受 GIC interrupt,
Reference
in kernel/msm-3.18/Documentation/devicetree/bindings/arm/msm/mpm.txt
24 - qcom,gic-map: Provides a mapping of how a GIC interrupt is connect to a MPM. The
25 mapping is presented in tuples. Each tuple represents a MPM pin and
26 which GIC interrupt is routed to it. Since MPM monitors interrupts
27 only during system wide low power mode, system interrupts originating
28 from other processors can be ignored and assigned an MPM pin mapping
29 of 0xff.
Questioon
Q1
MPM pin 要去那一個 document 查 ?
Q1-answer
沒有 document 查,
只有 source code,
這個寫在 evernote 裡,
Q2
GIC interrupt 是指 GPIO number 嗎?
e.g. GPIO_19
Q2-answer
GIC 可以接受多個 中斷 (GIC interrupt),
一個 system 有多個 gpio 控制器,
其中有幾隻是 gpio 控制器發出來的(GIC interrupt),
一個 gpio 控制器 有多根 gpio (GPIO number )。
Q3
從 MPM 的設定中(Q1 有提到),也可以直接接受 GPIO ?
Q3-answer
MPM 接受的中斷,除了 GPIO 外,也可以是 internal hardware 發出的。
Q4
如何得知 GIC 的所有中斷?
Q4-answer
can get the supported GIC interrupts from the below adb command,
adb root
adb shell
cat /proc/interrupts
Reference
Qualcomm document
Abbreviation
MPM
MSM Power Management
Modem Power Management
最新文章
- C# - 网络编程 之 Socket
- Python控制window进行简单的消息弹窗
- Apriori原理与实践
- 求双连通分量的详解。(根据刘汝佳的训练指南p314)
- c++ algorithm 的用法
- 树莓派配置AP模式
- android 模拟器定在了任务栏出不来了
- angularJS--神奇的$scope
- ContentType 属性 MIME
- [leetcode-561-Array Partition I]
- ( 转 ) WebApiTestClient 的使用
- apply的应用和匿名函数的封装应用
- FFmpeg使用基础
- 【二十八】xml编程(dom\xpath\simplexml)
- 爬虫模块之解决IO
- vsftpd只能连接不能上传文件问题
- Newifi2(D1) 刷入pb-boot和breed的记录
- 一:php配置注意
- 致Python初学者:Anaconda入门使用指南
- Android Studio添加文件注释头模板?