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?