/* * Support functions for OMAP GPIO * * Copyright (C) 2003-2005 Nokia Corporation * Written by Juha Yrjölä <juha.yrjola@nokia.com> * * Copyright (C) 2009 Texas Instruments * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */#include<linux/init.h>#include<linux/module.h>#include<linux/interrupt.h>#include<linux/syscore_ops.h>#include<linux/err.h>#include<linux/clk.h>#include<linux/io.h>#include<linux/cpu_pm.h>#include<linux/device.h>#include<linux/pm_runtime.h>#include<linux/pm.h>#include<linux/of.h>#include<linux/of_device.h>#include<linux/gpio/driver.h>#include<linux/bitops.h>#include<linux/platform_data/gpio-omap.h>#define OMAP4_GPIO_DEBOUNCINGTIME_MASK 0xFFstructgpio_regs{u32irqenable1;u32irqenable2;u32wake_en;u32ctrl;u32oe;