Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Ian Molton | 1f19201 | 2008-07-15 15:09:43 +0100 | [diff] [blame] | 2 | /* |
| 3 | * This file contains the definitions for the T7L66XB |
| 4 | * |
| 5 | * (C) Copyright 2005 Ian Molton <spyro@f2s.com> |
Ian Molton | 1f19201 | 2008-07-15 15:09:43 +0100 | [diff] [blame] | 6 | */ |
| 7 | #ifndef MFD_T7L66XB_H |
| 8 | #define MFD_T7L66XB_H |
| 9 | |
| 10 | #include <linux/mfd/core.h> |
| 11 | #include <linux/mfd/tmio.h> |
| 12 | |
| 13 | struct t7l66xb_platform_data { |
Ian Molton | 1f19201 | 2008-07-15 15:09:43 +0100 | [diff] [blame] | 14 | int (*enable)(struct platform_device *dev); |
| 15 | int (*disable)(struct platform_device *dev); |
| 16 | int (*suspend)(struct platform_device *dev); |
| 17 | int (*resume)(struct platform_device *dev); |
| 18 | |
| 19 | int irq_base; /* The base for subdevice irqs */ |
| 20 | |
| 21 | struct tmio_nand_data *nand_data; |
| 22 | }; |
| 23 | |
| 24 | |
| 25 | #define IRQ_T7L66XB_MMC (1) |
| 26 | #define IRQ_T7L66XB_NAND (3) |
| 27 | |
| 28 | #define T7L66XB_NR_IRQS 8 |
| 29 | |
| 30 | #endif |