/* Some touchscreens need hsync information from the video driver to function correctly. We export it here. Note that 'hsync_time' and the value returned from pxafb_get_hsync_time() is the  */
static void set_hsync_time(struct pxafb_info *fbi, unsigned int pcd)
/* Some touchscreens need hsync information from the video driver to function correctly. We export it here. Note that 'hsync_time' and the value returned from pxafb_get_hsync_time() is the  */
static void set_hsync_time(struct pxafb_info *fbi, unsigned int pcd)
{
	unsigned long htime;
	if ((pcd == 0) || (fbi->fb.var.hsync_len == 0)) {
		fbi->hsync_time = 0;
		return;
	}
	htime = clk_get_rate(fbi->clk) / (pcd * fbi->fb.var.hsync_len);
	fbi->hsync_time = htime;
}