立即注册
查看: 2157|回复: 3

[问题] How to change GPIO AUX Mode on MT6580 platform?

发表于 2017-6-23 12:13:15 | 显示全部楼层 |阅读模式 来自 台湾省台北市
Sorry first for I can't type chinese....><

I am trying to create a GPIO interrupt on my 6580,
At this moment I already build a module and success run it,
insert mod ok.
root@phone:/system/lib/modules # insmod handler.ko                          
root@phone:/system/lib/modules # lsmod
handler 1083 0 - Live 0x00000000 (O)


interrupt also have running..
root@phone:/proc # cat interrupts                                         
           CPU0       CPU1      
29:    2976813    2889996         -  timer
..........
260:          0          0   mt-eint  irqHandler
273:          1          0   mt-eint
FIQ:              fiq_glue
IPI0:          0          0  CPU wakeup interrupts
IPI1:          0          0  Timer broadcast interrupts
IPI2:   12454357   14488673  Rescheduling interrupts
IPI3:         62       1078  Function call interrupts
IPI4:          3       4961  Single function call interrupts
IPI5:          0          0  CPU stop interrupts
IPI6:          0          0  CPU backtrace



And also I can see the GPIO value change.
root@phone:/sys/class/gpio/gpio4 # cat value
1
root@phone:/sys/class/gpio/gpio4 # cat value                                
0


But the irqHandler still didn't call.
Then I have find the GPIO mapping information,
I want change the GPIO AUX to EINT for test,
But I don't know how, have any one know how to change it?
I will very appreciate if you can answer me or share some experence.
                                
B:GPIO3
B:GPIO3
I0:SPI_MISO
B:SIM2_SIO
O:SPI_MOSI
O:JTDO
I0:CMCSD1
I1:EINT3

B:GPIO4
B:GPIO4
O:I2S3_WS
O:SPI_CS
B:SIM1_SIO
O:URTS1
I0:MD_EINT0
I1:EINT4

B:GPIO5
B:GPIO5
O:I2S3_BCK
O:SPI_SCK
O:SIM1_SCLK
I1:UCTS1
B1:I2C_SCL2
I1:EINT5





我知道答案 回答被采纳将会获得5 RD币 已有3人回答
 楼主| 发表于 2017-6-23 13:24:25 | 显示全部楼层 来自 台湾省台北市
I answer by my self....^^
Use mt_set_gpio_mode can change AUX mode....^^
Thanks every one.
一牛网,与你一起,让工程师的生活更美好
发表于 2017-6-23 15:51:03 | 显示全部楼层 来自 广东省深圳市
点赞
发表于 2017-9-1 12:59:11 | 显示全部楼层 来自 广东省深圳市
赞起,点赞
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

合作/建议

TEL: 19168984579

工作时间:
周一到周五 9:00-11:30 13:30-19:30
  • 扫一扫关注公众号
  • 扫一扫打开小程序
Copyright © 2013-2024 一牛网 版权所有 All Rights Reserved. 帮助中心|隐私声明|联系我们|手机版|粤ICP备13053961号|营业执照|EDI证
在本版发帖搜索
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表