aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2008-10-03 18:50:36 -0400
committerSamuel Ortiz <samuel@sortiz.org>2008-10-19 16:54:11 -0400
commit9e78cfe53f3c2bc1b37870697c3cde1543fefa8b (patch)
tree00b5c90b5c687b1f6d58fed7f03d3843a36dd73b /include/linux/mfd
parent51a55623565c6ca864f7cf19e87c2d4bde1c0c5e (diff)
mfd: support tmiofb cell on tc6393xb
Add support for tmiofb cell found in tc6393xb chip. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Cc: Ian Molton <spyro@f2s.com> Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/tc6393xb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mfd/tc6393xb.h b/include/linux/mfd/tc6393xb.h
index 4437736ebe19..626e448205c5 100644
--- a/include/linux/mfd/tc6393xb.h
+++ b/include/linux/mfd/tc6393xb.h
@@ -17,6 +17,8 @@
17#ifndef MFD_TC6393XB_H 17#ifndef MFD_TC6393XB_H
18#define MFD_TC6393XB_H 18#define MFD_TC6393XB_H
19 19
20#include <linux/fb.h>
21
20/* Also one should provide the CK3P6MI clock */ 22/* Also one should provide the CK3P6MI clock */
21struct tc6393xb_platform_data { 23struct tc6393xb_platform_data {
22 u16 scr_pll2cr; /* PLL2 Control */ 24 u16 scr_pll2cr; /* PLL2 Control */
@@ -33,18 +35,24 @@ struct tc6393xb_platform_data {
33 void (*teardown)(struct platform_device *dev); 35 void (*teardown)(struct platform_device *dev);
34 36
35 struct tmio_nand_data *nand_data; 37 struct tmio_nand_data *nand_data;
38 struct tmio_fb_data *fb_data;
36 39
37 unsigned resume_restore : 1; /* make special actions 40 unsigned resume_restore : 1; /* make special actions
38 to preserve the state 41 to preserve the state
39 on suspend/resume */ 42 on suspend/resume */
40}; 43};
41 44
45extern int tc6393xb_lcd_mode(struct platform_device *fb,
46 const struct fb_videomode *mode);
47extern int tc6393xb_lcd_set_power(struct platform_device *fb, bool on);
48
42/* 49/*
43 * Relative to irq_base 50 * Relative to irq_base
44 */ 51 */
45#define IRQ_TC6393_NAND 0 52#define IRQ_TC6393_NAND 0
46#define IRQ_TC6393_MMC 1 53#define IRQ_TC6393_MMC 1
47#define IRQ_TC6393_OHCI 2 54#define IRQ_TC6393_OHCI 2
55#define IRQ_TC6393_FB 4
48 56
49#define TC6393XB_NR_IRQS 8 57#define TC6393XB_NR_IRQS 8
50 58