]>
Commit | Line | Data |
---|---|---|
d2912cb1 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
d6315949 DB |
2 | /* |
3 | * Toshiba TC6393XB SoC support | |
4 | * | |
5 | * Copyright(c) 2005-2006 Chris Humbert | |
6 | * Copyright(c) 2005 Dirk Opfer | |
7 | * Copyright(c) 2005 Ian Molton <spyro@f2s.com> | |
8 | * Copyright(c) 2007 Dmitry Baryshkov | |
9 | * | |
10 | * Based on code written by Sharp/Lineo for 2.4 kernels | |
11 | * Based on locomo.c | |
d6315949 DB |
12 | */ |
13 | ||
25d6cbd8 IM |
14 | #ifndef MFD_TC6393XB_H |
15 | #define MFD_TC6393XB_H | |
d6315949 | 16 | |
9e78cfe5 DB |
17 | #include <linux/fb.h> |
18 | ||
d6315949 DB |
19 | /* Also one should provide the CK3P6MI clock */ |
20 | struct tc6393xb_platform_data { | |
21 | u16 scr_pll2cr; /* PLL2 Control */ | |
22 | u16 scr_gper; /* GP Enable */ | |
d6315949 DB |
23 | |
24 | int (*enable)(struct platform_device *dev); | |
25 | int (*disable)(struct platform_device *dev); | |
26 | int (*suspend)(struct platform_device *dev); | |
27 | int (*resume)(struct platform_device *dev); | |
28 | ||
25d6cbd8 | 29 | int irq_base; /* base for subdevice irqs */ |
d6315949 | 30 | int gpio_base; |
1c1b6ffc DB |
31 | int (*setup)(struct platform_device *dev); |
32 | void (*teardown)(struct platform_device *dev); | |
f024ff10 DB |
33 | |
34 | struct tmio_nand_data *nand_data; | |
9e78cfe5 | 35 | struct tmio_fb_data *fb_data; |
f98a0bd0 DB |
36 | |
37 | unsigned resume_restore : 1; /* make special actions | |
38 | to preserve the state | |
39 | on suspend/resume */ | |
d6315949 DB |
40 | }; |
41 | ||
9e78cfe5 DB |
42 | extern int tc6393xb_lcd_mode(struct platform_device *fb, |
43 | const struct fb_videomode *mode); | |
44 | extern int tc6393xb_lcd_set_power(struct platform_device *fb, bool on); | |
45 | ||
d6315949 DB |
46 | /* |
47 | * Relative to irq_base | |
48 | */ | |
49 | #define IRQ_TC6393_NAND 0 | |
50 | #define IRQ_TC6393_MMC 1 | |
51a55623 | 51 | #define IRQ_TC6393_OHCI 2 |
9e78cfe5 | 52 | #define IRQ_TC6393_FB 4 |
d6315949 DB |
53 | |
54 | #define TC6393XB_NR_IRQS 8 | |
55 | ||
56 | #endif |