18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This file contains the definitions for the T7L66XB 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * (C) Copyright 2005 Ian Molton <spyro@f2s.com> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci#ifndef MFD_T7L66XB_H 88c2ecf20Sopenharmony_ci#define MFD_T7L66XB_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#include <linux/mfd/core.h> 118c2ecf20Sopenharmony_ci#include <linux/mfd/tmio.h> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_cistruct t7l66xb_platform_data { 148c2ecf20Sopenharmony_ci int (*enable)(struct platform_device *dev); 158c2ecf20Sopenharmony_ci int (*suspend)(struct platform_device *dev); 168c2ecf20Sopenharmony_ci int (*resume)(struct platform_device *dev); 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci int irq_base; /* The base for subdevice irqs */ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci struct tmio_nand_data *nand_data; 218c2ecf20Sopenharmony_ci}; 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#define IRQ_T7L66XB_MMC (1) 258c2ecf20Sopenharmony_ci#define IRQ_T7L66XB_NAND (3) 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#define T7L66XB_NR_IRQS 8 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#endif 30