AnsweredAssumed Answered

How to Enable Gated Clock for GPT in Linux User Space Driver

Question asked by Brian Yokum on Jul 2, 2018
Latest reply on Jul 10, 2018 by Brian Yokum

I am trying to implement a Linux user space driver for the GPT on the i.MX6ULL using uio_pdrv_genirq.  I have the basic driver set up, but the system locks up when I try to access the GPT registers.  I saw this same problem when I originally implemented the driver as a kernel space driver.  It was caused by the gated clock for the GPT not being enabled.  Is there a way to enable the needed clocks in the user space driver?  Is there a way to enable the clock outside the driver, perhaps through a device tree setting?  Is there a change to clk-imx6ul.c or another file that can accomplish this?

Outcomes