mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
![Alek Du](/assets/img/avatar_default.png)
Moorestown has PMIC chip which contains GPIO blocks. The PMIC chip is connected to Langwell by SPI interface. So this GPIO driver will be regarded as SPI GPIO expander though the actual GPIO access is through IPC and SRAM. The SPI master contoller will probe this device driver by parsing SPIB table. Cleaned up for new IPC, GPE removed and some printk and other tidying by Alan Cox. Fixes for points noted by Matthew Garrett Signed-off-by: Alek Du <alek.du@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
15 lines
372 B
C
15 lines
372 B
C
#ifndef LINUX_INTEL_PMIC_H
|
|
#define LINUX_INTEL_PMIC_H
|
|
|
|
struct intel_pmic_gpio_platform_data {
|
|
/* the first IRQ of the chip */
|
|
unsigned irq_base;
|
|
/* number assigned to the first GPIO */
|
|
unsigned gpio_base;
|
|
/* sram address for gpiointr register, the langwell chip will map
|
|
* the PMIC spi GPIO expander's GPIOINTR register in sram.
|
|
*/
|
|
unsigned gpiointr;
|
|
};
|
|
|
|
#endif
|