最近在添加da8xx-fb驱动的设备树支持,节点interrupts属性是36,parent为intc,但是在获取中断号的函数
Int platform_get_irq(struct platform_device *dev, unsigned int num)这里返回的中断号是181,而我查阅芯片手册显示lcdc的中断号应该是36才对,在用3.2的内核(非设备树)以同样的函数打印出来的中断号也是36,请问这是怎么回事呢?用的最新am335xSDK
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
最近在添加da8xx-fb驱动的设备树支持,节点interrupts属性是36,parent为intc,但是在获取中断号的函数
Int platform_get_irq(struct platform_device *dev, unsigned int num)这里返回的中断号是181,而我查阅芯片手册显示lcdc的中断号应该是36才对,在用3.2的内核(非设备树)以同样的函数打印出来的中断号也是36,请问这是怎么回事呢?用的最新am335xSDK
这个应该怎么确认呢?因为目前驱动还存在着崩溃不稳定问题尚在调试,但试过正常启动,当时测试了一下lcd显示没问题,只是不太明白为什么中断号返回不一致。
查了一下TRM,没有181这个中断号,你再检查下,谢谢
我知道没有181这个中断号,可是该函数确实返回的是这个数值,而在同样测试3.x内核(即旧版的PDK内核)的相同函数返回结果正确。可以确定的是设备树的配置没有错误,深入代码的话可以找到确实有获取到设备树的中断号36,但后续操作不知道在哪一步将值改变了。