2008-06-22 05:01:58 -06:00
|
|
|
/*
|
|
|
|
* Toshiba TC6393XB SoC support
|
|
|
|
*
|
|
|
|
* Copyright(c) 2005-2006 Chris Humbert
|
|
|
|
* Copyright(c) 2005 Dirk Opfer
|
|
|
|
* Copyright(c) 2005 Ian Molton <spyro@f2s.com>
|
|
|
|
* Copyright(c) 2007 Dmitry Baryshkov
|
|
|
|
*
|
|
|
|
* Based on code written by Sharp/Lineo for 2.4 kernels
|
|
|
|
* Based on locomo.c
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2008-08-10 15:32:07 -06:00
|
|
|
#ifndef MFD_TC6393XB_H
|
|
|
|
#define MFD_TC6393XB_H
|
2008-06-22 05:01:58 -06:00
|
|
|
|
|
|
|
/* Also one should provide the CK3P6MI clock */
|
|
|
|
struct tc6393xb_platform_data {
|
|
|
|
u16 scr_pll2cr; /* PLL2 Control */
|
|
|
|
u16 scr_gper; /* GP Enable */
|
|
|
|
u32 scr_gpo_doecr; /* GPO Data OE Control */
|
|
|
|
u32 scr_gpo_dsr; /* GPO Data Set */
|
|
|
|
|
|
|
|
int (*enable)(struct platform_device *dev);
|
|
|
|
int (*disable)(struct platform_device *dev);
|
|
|
|
int (*suspend)(struct platform_device *dev);
|
|
|
|
int (*resume)(struct platform_device *dev);
|
|
|
|
|
2008-08-10 15:32:07 -06:00
|
|
|
int irq_base; /* base for subdevice irqs */
|
2008-06-22 05:01:58 -06:00
|
|
|
int gpio_base;
|
2008-06-27 03:37:57 -06:00
|
|
|
|
|
|
|
struct tmio_nand_data *nand_data;
|
2008-06-22 05:01:58 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Relative to irq_base
|
|
|
|
*/
|
|
|
|
#define IRQ_TC6393_NAND 0
|
|
|
|
#define IRQ_TC6393_MMC 1
|
|
|
|
|
|
|
|
#define TC6393XB_NR_IRQS 8
|
|
|
|
|
|
|
|
#endif
|