/* Set the hardware gate setting into the block. If we end up on something other than an S3C64XX, then we might need to change this to using a platform data callback, or some other mechanism.  */
static void s3c_hsotg_gate(struct platform_device *pdev, bool on)
/* Set the hardware gate setting into the block. If we end up on something other than an S3C64XX, then we might need to change this to using a platform data callback, or some other mechanism.  */
static void s3c_hsotg_gate(struct platform_device *pdev, bool on)
{
	unsigned long flags;
	u32 others;
	local_irq_save(flags);
	others = __raw_readl(S3C64XX_OTHERS);
	if (on)
		others |= S3C64XX_OTHERS_USBMASK;
	else
		others &= ~S3C64XX_OTHERS_USBMASK;
	__raw_writel(others, S3C64XX_OTHERS);
	local_irq_restore(flags);
}