Userspace driver and clocks

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Userspace driver and clocks

1,035 次查看
mod42
Contributor III

Hi

We have a special requirement regarding image processing which could be solved using the PXP. I wanted to write a user space IO driver to do this. My current problem is that the clock to the PXP is not enabled. I tried to use the uio_pdrv_genirq for the first tests and added the following device tree entry:

    pxp@02218000 {

        compatible = "gs-pxp";

        reg = <0x02218000 0x4000>;

        reg-names = "pxp"; /* Names of the zones */

        interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;

        clocks = <&clks IMX6SX_CLK_PXP_AXI>,

            <&clks IMX6SX_CLK_DISPLAY_AXI>;

        clock-names = "pxp-axi", "disp-axi";

        status = "okay";

    };

The uio device is created correctly but when I open the device the clock in the CCM is not ungated. Do I have to do write my own uio kernel driver when clocks have to be enabled? Or is it possible to enable clocks from user space?

标签 (2)
0 项奖励
回复
1 回复

865 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Matthias

pxp is supported only on sabresd board and for its usage one

can look at tests in  imx-test-3.10.53-1.1.0  L3.10.53_1.1.0_iMX6SX_Bundle :

i.MX 6 SoloX Linux

Best regards

igor

0 项奖励
回复