Dmitry Baryshkov | d631594 | 2008-06-22 12:01:58 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Toshiba TC6393XB SoC support |
| 3 | * |
| 4 | * Copyright(c) 2005-2006 Chris Humbert |
| 5 | * Copyright(c) 2005 Dirk Opfer |
| 6 | * Copyright(c) 2005 Ian Molton <spyro@f2s.com> |
| 7 | * Copyright(c) 2007 Dmitry Baryshkov |
| 8 | * |
| 9 | * Based on code written by Sharp/Lineo for 2.4 kernels |
| 10 | * Based on locomo.c |
| 11 | * |
| 12 | * This program is free software; you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License version 2 as |
| 14 | * published by the Free Software Foundation. |
| 15 | */ |
| 16 | |
Ian Molton | 25d6cbd | 2008-08-10 23:32:07 +0200 | [diff] [blame] | 17 | #ifndef MFD_TC6393XB_H |
| 18 | #define MFD_TC6393XB_H |
Dmitry Baryshkov | d631594 | 2008-06-22 12:01:58 +0100 | [diff] [blame] | 19 | |
| 20 | /* Also one should provide the CK3P6MI clock */ |
| 21 | struct tc6393xb_platform_data { |
| 22 | u16 scr_pll2cr; /* PLL2 Control */ |
| 23 | u16 scr_gper; /* GP Enable */ |
| 24 | u32 scr_gpo_doecr; /* GPO Data OE Control */ |
| 25 | u32 scr_gpo_dsr; /* GPO Data Set */ |
| 26 | |
| 27 | int (*enable)(struct platform_device *dev); |
| 28 | int (*disable)(struct platform_device *dev); |
| 29 | int (*suspend)(struct platform_device *dev); |
| 30 | int (*resume)(struct platform_device *dev); |
| 31 | |
Ian Molton | 25d6cbd | 2008-08-10 23:32:07 +0200 | [diff] [blame] | 32 | int irq_base; /* base for subdevice irqs */ |
Dmitry Baryshkov | d631594 | 2008-06-22 12:01:58 +0100 | [diff] [blame] | 33 | int gpio_base; |
Dmitry Baryshkov | f024ff1 | 2008-06-27 10:37:57 +0100 | [diff] [blame] | 34 | |
| 35 | struct tmio_nand_data *nand_data; |
Dmitry Baryshkov | d631594 | 2008-06-22 12:01:58 +0100 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | /* |
| 39 | * Relative to irq_base |
| 40 | */ |
| 41 | #define IRQ_TC6393_NAND 0 |
| 42 | #define IRQ_TC6393_MMC 1 |
Dmitry Baryshkov | d631594 | 2008-06-22 12:01:58 +0100 | [diff] [blame] | 43 | |
| 44 | #define TC6393XB_NR_IRQS 8 |
| 45 | |
| 46 | #endif |